:root {
  color-scheme: light;
  --ink: #18372d;
  --muted: #5b776a;
  --pond: #c9f4d5;
  --pond-deep: #93ddb0;
  --green: #1d7251;
  --green-dark: #14563d;
  --cream: #fffdf4;
  --lilac: #ded4ff;
  --coral: #ff806f;
  --line: rgba(24, 55, 45, .13);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--pond);
  color: var(--ink);
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 7% 4%, rgba(255,255,255,.52), transparent 28rem),
    var(--pond);
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--cream); border-radius: 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 .67rem/1.1 'DM Mono', monospace; letter-spacing: .09em; }
.brand img { width: 43px; height: 43px; }
.brand strong { font-size: .9rem; letter-spacing: .14em; }
.social-link, .text-link { color: var(--green-dark); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.social-link { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; }

.hero { min-height: 320px; display: flex; align-items: center; justify-content: space-between; padding: 28px 5.5% 46px; }
.hero-copy { max-width: 670px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font: 500 .69rem/1.3 'DM Mono', monospace; letter-spacing: .12em; }
.online-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #ff806f; box-shadow: 0 0 0 4px rgba(255,128,111,.14); vertical-align: 1px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(2.7rem, 6vw, 5.35rem); line-height: .99; letter-spacing: -.065em; font-weight: 800; }
h1 span { color: var(--green); }
.intro { max-width: 520px; margin-bottom: 0; color: #3c5c4e; font-size: clamp(1rem, 1.5vw, 1.13rem); line-height: 1.65; }
.hero-sticker { position: relative; width: 190px; height: 190px; flex: 0 0 190px; display: grid; place-items: center; margin: 0 5% 0 24px; border: 1px solid rgba(24,55,45,.12); border-radius: 48% 52% 45% 55%; background: rgba(255,253,244,.55); transform: rotate(4deg); }
.hero-sticker img { width: 150px; height: 150px; }
.hero-sticker span { position: absolute; right: -13px; bottom: 15px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 2rem; background: var(--lilac); font: 500 .72rem 'DM Mono', monospace; transform: rotate(-8deg); }

.game-section { margin: 0 auto 74px; }
.game-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 4px 16px; }
.game-heading .eyebrow { margin-bottom: 8px; }
.game-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -.04em; }
.daily-prompt { max-width: 300px; margin: 0 0 3px; color: var(--muted); font-size: .9rem; line-height: 1.45; text-align: right; }
.game-frame { padding: 16px; border: 1px solid rgba(24,55,45,.12); border-radius: 25px; background: var(--cream); box-shadow: 0 16px 50px rgba(34,93,65,.1); }
.game-topline { display: grid; grid-template-columns: 100px 1fr 100px; align-items: center; padding: 4px 8px 14px; }
.game-topline > div:not(.round-label) { display: flex; flex-direction: column; gap: 1px; }
.stat-label { color: var(--muted); font: 500 .58rem 'DM Mono', monospace; letter-spacing: .1em; }
.game-topline strong { font: 500 1.25rem 'DM Mono', monospace; font-variant-numeric: tabular-nums; }
.time-stat { align-items: flex-end; }
.time-stat small { margin-left: 2px; color: var(--muted); font-size: .7rem; }
.round-label { color: var(--muted); font: 400 .68rem 'DM Mono', monospace; text-align: center; }
.canvas-wrap { position: relative; overflow: hidden; border-radius: 16px; background: #a9e9cf; }
#game-canvas { display: block; width: 100%; height: clamp(250px, 48vw, 440px); touch-action: pan-y; }
.canvas-prompt, .result-panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.canvas-prompt { gap: 8px; background: rgba(201,244,213,.38); pointer-events: none; }
.canvas-prompt[hidden], .result-panel[hidden] { display: none; }
.prompt-kicker, .result-kicker { color: var(--green-dark); font: 500 .63rem 'DM Mono', monospace; letter-spacing: .14em; }
.canvas-prompt strong { font-size: clamp(1.65rem, 4vw, 2.55rem); letter-spacing: -.045em; }
.canvas-prompt > span:last-child { color: #355c4d; font-size: .9rem; }
.result-panel { gap: 9px; color: var(--ink); background: rgba(255,253,244,.92); backdrop-filter: blur(6px); }
.result-panel > strong { max-width: 520px; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.05; letter-spacing: -.045em; }
.result-panel > span:not(.result-kicker):not(.share-feedback) { color: var(--muted); }
.share-feedback { max-width: 620px; min-height: 1.1em; color: var(--green); font-size: .78rem; overflow-wrap: anywhere; }

.game-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px 1px; }
.controls-hint { margin: 0; color: var(--muted); font-size: .8rem; }
.control-buttons { display: flex; align-items: center; gap: 9px; }
.button, .move-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button:hover, .move-button:hover { transform: translateY(-2px); }
.button:active, .move-button:active { transform: translateY(1px); }
.button:focus-visible, .move-button:focus-visible, a:focus-visible { outline: 3px solid #9676ee; outline-offset: 3px; }
.button-play { min-width: 160px; padding: 0 20px; color: white; background: var(--green); }
.button-play:hover { background: var(--green-dark); }
.button-light { min-height: 42px; margin-top: 2px; padding: 0 16px; background: var(--pond); }
.move-button { width: 48px; min-height: 46px; border: 1px solid var(--line); background: white; font-size: 1.2rem; touch-action: manipulation; }
.game-disclaimer { margin: 11px 8px 0; color: var(--muted); font-size: .72rem; }

.collectibles { position: relative; display: flex; align-items: center; gap: clamp(22px, 5vw, 64px); overflow: hidden; min-height: 230px; margin-bottom: 58px; padding: 34px clamp(24px, 6vw, 74px); border: 1px solid rgba(24,55,45,.1); border-radius: 24px; background: var(--lilac); }
.collectible-art { position: relative; display: grid; width: 145px; height: 145px; flex: 0 0 145px; place-items: center; border-radius: 50%; background: rgba(255,253,244,.62); }
.collectible-art img { width: 112px; height: 112px; }
.star { position: absolute; color: #8367d3; }
.star-one { top: 2px; left: 18px; font-size: 1.5rem; }
.star-two { right: 5px; bottom: 16px; font-size: 1.8rem; }
.collectible-copy { max-width: 620px; padding-right: 80px; }
.collectible-copy .eyebrow { margin-bottom: 9px; color: #7056bd; }
.collectible-copy h2 { margin-bottom: 10px; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.05em; }
.collectible-copy h2 span { color: #7056bd; }
.collectible-copy p:not(.eyebrow) { max-width: 560px; margin-bottom: 12px; color: #51486e; font-size: .94rem; line-height: 1.58; }
.text-link { font-size: .87rem; }
.coming-badge { position: absolute; top: 24px; right: 25px; padding: 8px 10px; border: 1px solid rgba(112,86,189,.24); border-radius: 2rem; color: #7056bd; background: rgba(255,253,244,.45); font: 500 .57rem 'DM Mono', monospace; letter-spacing: .08em; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 0 4px 32px; color: #557465; font: 400 .68rem 'DM Mono', monospace; }

@media (max-width: 700px) {
  .wrap { width: min(100% - 28px, 540px); }
  .site-header { height: 72px; }
  .brand img { width: 38px; height: 38px; }
  .hero { min-height: 295px; align-items: flex-start; padding: 35px 4px 28px; }
  .hero-sticker { position: absolute; top: 105px; right: 8px; width: 96px; height: 96px; margin: 0; opacity: .9; }
  .hero-sticker img { width: 86px; height: 86px; }
  .hero-sticker span { right: -10px; bottom: 0; padding: 6px 10px; font-size: .62rem; }
  .hero-copy { position: relative; z-index: 1; }
  h1 { max-width: 470px; padding-right: 18px; font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .intro { max-width: 390px; padding-right: 30px; font-size: .94rem; }
  .game-section { margin-bottom: 50px; }
  .game-heading { display: block; padding: 0 3px 13px; }
  .game-heading h2 { max-width: 420px; }
  .daily-prompt { max-width: none; margin-top: 8px; font-size: .82rem; text-align: left; }
  .game-frame { padding: 10px; border-radius: 20px; }
  .game-topline { grid-template-columns: 68px 1fr 62px; padding: 3px 4px 10px; }
  .round-label { font-size: .57rem; }
  #game-canvas { height: clamp(250px, 74vw, 360px); }
  .game-controls { display: block; padding-top: 10px; }
  .controls-hint { margin-bottom: 9px; text-align: center; font-size: .72rem; }
  .control-buttons { display: grid; grid-template-columns: 48px 1fr 48px; gap: 7px; }
  .button-play { min-width: 0; width: 100%; padding-inline: 10px; }
  .move-button { width: 48px; }
  .collectibles { gap: 17px; min-height: 0; margin-bottom: 42px; padding: 56px 19px 24px; border-radius: 20px; }
  .collectible-art { width: 88px; height: 88px; flex-basis: 88px; }
  .collectible-art img { width: 74px; height: 74px; }
  .collectible-copy { padding-right: 0; }
  .collectible-copy h2 { font-size: 1.43rem; }
  .collectible-copy p:not(.eyebrow) { font-size: .82rem; }
  .collectible-copy .eyebrow { font-size: .57rem; }
  .coming-badge { top: 14px; right: 15px; font-size: .5rem; }
  .site-footer { font-size: .6rem; }
}

@media (max-width: 410px) {
  .wrap { width: calc(100% - 22px); }
  .social-link { font-size: .75rem; }
  .hero-sticker { right: 0; width: 78px; height: 78px; }
  .hero-sticker img { width: 72px; height: 72px; }
  .intro { padding-right: 0; }
  .collectibles { align-items: flex-start; }
  .collectible-art { width: 66px; height: 66px; flex-basis: 66px; }
  .collectible-art img { width: 60px; height: 60px; }
  .collectible-copy h2 { font-size: 1.3rem; }
}

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