@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Nunito', 'Trebuchet MS', sans-serif;
  background: #101a19;
  color: #f4f0e8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --mint: #bce8a7;
  --muted: #a5b4a7;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 37%, rgba(47, 88, 67, .37), transparent 43rem),
    radial-gradient(ellipse at 50% 100%, rgba(92, 64, 74, .14), transparent 35rem),
    #101a19;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(224, 242, 213, .12) .7px, transparent .7px);
  background-size: 7px 7px;
  content: '';
  opacity: .13;
  pointer-events: none;
}

.page-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header { z-index: 1; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c9d8c7;
  font: 11px 'DM Mono', monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow-dot, .frame-topline b {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #c1e88e;
  box-shadow: 0 0 12px rgba(193, 232, 142, .8);
}

h1 {
  margin: 9px 0 2px;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-shadow: 0 4px 35px rgba(156, 211, 137, .17);
}

h1 span { color: var(--mint); font-weight: 700; font-style: italic; }

.site-header p {
  max-width: 540px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.game-scene {
  position: relative;
  width: min(100%, 1000px);
  margin: 34px auto 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.scene-glow {
  position: absolute;
  z-index: -1;
  width: 75%;
  height: 74%;
  border-radius: 50%;
  background: rgba(134, 193, 128, .11);
  filter: blur(58px);
}

.scene-tree, .scene-flower, .side-sign, .firefly { position: absolute; pointer-events: none; }

.scene-tree { z-index: -1; width: clamp(94px, 17vw, 190px); height: auto; opacity: .82; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .36)); }
.tree-left { left: 3%; bottom: 2%; transform: rotate(-5deg); }
.tree-right { right: 2%; bottom: 0; width: clamp(112px, 20vw, 225px); transform: rotate(4deg); }

.scene-flower { z-index: -1; width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 6px #101a19); }
.flower-one { left: 13%; bottom: 11%; transform: rotate(-15deg); }
.flower-two { right: 13%; bottom: 12%; transform: rotate(12deg) scale(.82); }

.game-frame {
  width: min(700px, 100%);
  padding: 10px;
  border: 1px solid rgba(201, 220, 192, .42);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(40, 57, 49, .98), rgba(22, 31, 29, .98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, .56), 0 0 0 5px rgba(204, 230, 189, .035), 0 0 55px rgba(161, 211, 141, .12);
}

.frame-topline {
  height: 23px;
  padding: 0 3px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a8b9a9;
  font: 9px 'DM Mono', monospace;
  letter-spacing: .09em;
}

.frame-topline span:first-child { display: flex; align-items: center; gap: 8px; }
.frame-topline b { width: 6px; height: 6px; }

#main {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  background: #101810;
}

canvas { display: block; width: 100% !important; height: auto !important; }

.side-sign {
  z-index: -1;
  top: 48%;
  width: 110px;
  padding: 9px 8px 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(215, 197, 130, .58);
  border-radius: 3px;
  color: #e2d49d;
  background: #343729;
  box-shadow: 3px 5px 0 rgba(0, 0, 0, .25);
  font: 8px 'DM Mono', monospace;
  letter-spacing: .04em;
  transform: rotate(-5deg);
}

.side-sign i { font-size: 17px; font-style: normal; }
.sign-left { left: max(1%, calc(50% - 480px)); }
.sign-right { right: max(1%, calc(50% - 480px)); top: 65%; transform: rotate(5deg); }

.firefly { z-index: -1; width: 5px; height: 5px; border-radius: 50%; background: #d8f69a; box-shadow: 0 0 12px 3px rgba(216, 246, 154, .54); animation: float 4s ease-in-out infinite; }
.firefly-one { left: 20%; top: 20%; }
.firefly-two { right: 19%; top: 26%; animation-delay: -1.5s; }
.firefly-three { right: 27%; bottom: 7%; animation-delay: -2.5s; }

@keyframes float { 50% { transform: translate(8px, -13px); opacity: .45; } }

.page-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #a9b7aa;
  font-size: 12px;
  text-align: center;
}

.page-footer strong { color: #e0e9dc; font: 11px 'DM Mono', monospace; }
.footer-mark { color: #c2e9a4; font-size: 16px; }
.footer-divider { color: #667568; }

@media (max-width: 760px) {
  .page-shell { padding: 32px 16px 18px; }
  .site-header p { max-width: 440px; font-size: 14px; }
  .game-scene { margin-top: 25px; }
  .game-frame { padding: 7px; border-radius: 10px; }
  .scene-tree { opacity: .46; }
  .tree-left { left: -4%; bottom: -5%; }
  .tree-right { right: -5%; bottom: -4%; }
  .side-sign { display: none; }
}

@media (max-width: 480px) {
  .page-shell { padding: 26px 10px 16px; }
  .eyebrow { font-size: 9px; }
  .site-header p { padding: 0 8px; font-size: 13px; }
  .game-scene { margin-top: 20px; }
  .game-frame { padding: 5px; }
  .frame-topline { height: 20px; font-size: 8px; }
  .scene-flower { width: 30px; height: 30px; }
  .flower-one { left: 5%; bottom: 8%; }
  .flower-two { right: 5%; bottom: 9%; }
  .page-footer { max-width: 330px; gap: 7px; margin-top: 18px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
