:root {
  color-scheme: light;
  --paper: #fff9d9;
  --ink: #29220f;
  --muted: #5f5432;
  --orange: #ff4a00;
  --lime: #d7ff00;
  --yellow: #ffdf00;
  --line: rgba(41, 34, 15, .24);
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
::selection { color: var(--ink); background: var(--lime); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.skip-link {
  position: absolute; z-index: 20; top: 12px; left: 12px; padding: 10px 14px;
  border-radius: 8px; background: var(--ink); color: white; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer { width: min(1280px, calc(100% - 80px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.site-header { height: 92px; border-bottom: 1px solid var(--line); }
.wordmark { display: block; flex: 0 0 auto; width: 116px; line-height: 0; }
.wordmark img { display: block; width: 100%; height: auto; }
.opening-tag, .header-link { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.opening-tag { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.status-dot { width: 9px; aspect-ratio: 1; background: var(--lime); border: 1px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 4px rgba(215,255,0,.26); }
.header-link { text-decoration: none; padding: 11px 0 11px 12px; border-bottom: 2px solid var(--orange); }
.header-link svg, .primary-link svg, .form-row button svg { width: 15px; height: 15px; margin-left: 5px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

.hero { position: relative; width: min(1280px, calc(100% - 80px)); min-height: 665px; margin: 0 auto; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 18px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: 70px 0 80px 26px; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 560px; margin-bottom: 22px; font: 600 clamp(60px, 7vw, 96px)/.91 var(--display); letter-spacing: -.055em; }
h1 b { color: var(--orange); font-weight: inherit; }
.mobile-title { display: none; }
.intro { max-width: 370px; color: #554b53; font-size: 17px; line-height: 1.6; margin-bottom: 28px; }
.primary-link { display: inline-flex; align-items: center; gap: 23px; min-height: 54px; padding: 0 21px; border-radius: 8px 20px 9px 18px; background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.primary-link:hover { transform: translateY(-3px) rotate(-1deg); }
.tiny-note { margin: 11px 0 0 3px; color: var(--muted); font-size: 12px; }

.playroom { position: relative; align-self: center; overflow: hidden; isolation: isolate; border: 2px solid var(--ink); border-radius: 19px; background: var(--yellow); box-shadow: 0 13px 32px rgba(73,51,0,.16); }
.felt-world { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.puff-layer { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.orbit-note { position: absolute; z-index: 3; top: 16px; right: 16px; padding: 9px 13px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; transform: rotate(4deg); }
.game-panel { position: relative; z-index: 3; display: flex; gap: 15px; align-items: center; width: 100%; padding: 12px 15px; background: var(--lime); border-top: 2px solid var(--ink); color: var(--ink); }
.game-copy { display: grid; gap: 3px; }
.game-title { font: 600 17px var(--display); }
.game-status { color: #433500; font-size: 12px; }
.wool-balls { display: flex; gap: 8px; padding-left: 12px; border-left: 1px solid rgba(41,34,15,.28); }
.wool-ball { flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; transition: transform .2s ease, filter .2s ease; box-shadow: 0 3px 8px rgba(41,34,15,.2); }
.wool-ball:hover { transform: translateY(-4px) scale(1.08); }
.wool-ball:active { transform: scale(.9); }
.wool-ball:disabled { cursor: default; opacity: .52; }
.wool-ball-lime { background: var(--lime); }
.wool-ball-yellow { background: var(--yellow); }
.wool-ball-orange { background: var(--orange); }
.replay-button { margin-left: auto; border: 2px solid var(--ink); padding: 9px 12px; border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 700; cursor: pointer; }
.falling-puff { position: absolute; left: var(--drop-x); top: 3%; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 9px rgba(41,34,15,.25); animation: puff-drop .82s cubic-bezier(.16,.72,.28,1) forwards; }
.puff-lime { background: var(--lime); }
.puff-yellow { background: var(--yellow); }
.puff-orange { background: var(--orange); }
.playroom.is-dancing .felt-world { animation: flock-wiggle .72s cubic-bezier(.2,.9,.3,1) both; transform-origin: 50% 80%; }
@keyframes puff-drop { 0% { transform: translateY(-25px) rotate(0) scale(.7); opacity: 0; } 12% { opacity: 1; } 82% { transform: translateY(var(--fall-distance, 340px)) rotate(450deg) scale(1); opacity: 1; } 100% { transform: translateY(var(--fall-distance, 340px)) rotate(540deg) scale(.82); opacity: 0; } }
@keyframes flock-wiggle { 0%, 100% { transform: rotate(0) scale(1); } 18% { transform: rotate(-2deg) scale(1.015); } 40% { transform: rotate(2deg) translateY(-5px); } 66% { transform: rotate(-1.4deg) translateY(2px); } 84% { transform: rotate(.8deg); } }

.waitlist { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: 48px; min-height: 280px; padding: 53px max(8vw, calc((100% - 1120px) / 2)); background: var(--lime); }
.waitlist::before { content: ""; position: absolute; width: 370px; height: 370px; right: -110px; top: -210px; border-radius: 50%; border: 1px solid rgba(255,74,0,.35); box-shadow: 0 0 0 24px rgba(255,74,0,.08), 0 0 0 48px rgba(255,74,0,.06); }
h2 { margin-bottom: 12px; font: 600 clamp(37px, 4.3vw, 53px)/.96 var(--display); letter-spacing: -.04em; }
.waitlist-intro > p:last-child { max-width: 390px; margin: 0; color: #413900; font-size: 14px; line-height: 1.55; }
.signup-form { position: relative; z-index: 1; }
.signup-form > label:first-child { display: block; margin: 0 0 8px 2px; font-size: 12px; font-weight: 700; }
.form-row { display: flex; gap: 8px; }
.form-row input { flex: 1; min-width: 0; height: 54px; padding: 0 17px; border: 1.5px solid var(--ink); border-radius: 8px 15px 8px 15px; background: var(--paper); color: var(--ink); }
.form-row input::placeholder { color: #625939; opacity: 1; }
.form-row button { min-height: 54px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 8px 15px 8px 15px; background: var(--orange); color: #140d00; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.form-row button:hover { transform: translateY(-2px); background: var(--yellow); }
.form-row button:disabled { cursor: wait; opacity: .7; transform: none; }
.form-message { min-height: 21px; margin: 10px 0 0 2px; color: #413900; font-size: 12px; line-height: 1.5; }
.form-message[data-state="error"] { color: #7d2200; font-weight: 700; }
.form-message[data-state="success"] { color: #314000; font-weight: 700; }
.honey-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.waitlist-star { position: absolute; right: 7.5%; bottom: 17px; width: 42px; color: var(--orange); fill: currentColor; transform: rotate(-12deg); }

.site-footer { min-height: 94px; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.footer-mark { color: var(--ink); text-decoration: none; font: 600 17px var(--display); letter-spacing: -.04em; }
.footer-mark span { vertical-align: top; font: 10px var(--body); }
.back-to-top { font-weight: 600; }

@media (max-width: 860px) {
  .site-header, .site-footer, .hero { width: min(100% - 40px, 680px); }
  .hero { min-height: unset; grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .hero-copy { padding: 45px 6px 10px; }
  h1 { font-size: clamp(62px, 13vw, 96px); }
  .playroom { width: 100%; margin-top: 8px; }
  .waitlist { padding: 44px 24px 54px; grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 520px) {
  .site-header { width: calc(100% - 32px); height: 75px; }
  .opening-tag { max-width: 145px; font-size: 11px; line-height: 1.4; }
  .status-dot { flex: 0 0 8px; }
  .header-link { font-size: 11px; }
  .hero { width: calc(100% - 32px); padding-top: 0; }
  .hero-copy { padding-top: 23px; }
  h1 { margin-bottom: 16px; font-size: clamp(52px, 14vw, 67px); line-height: .87; }
  .desktop-title { display: none; }
  .mobile-title { display: inline; }
  .intro { max-width: 330px; margin-bottom: 19px; font-size: 14px; }
  .primary-link { min-height: 49px; }
  .tiny-note { margin-top: 8px; }
  .tiny-note { display: none; }
  .wordmark { width: 82px; }
  .opening-tag { display: none; }
  .header-link { font-size: 11px; }
  .game-panel { gap: 8px; padding: 10px; }
  .game-title { font-size: 14px; }
  .game-status { max-width: 180px; font-size: 12px; }
  .wool-balls { gap: 5px; padding-left: 8px; }
  .wool-ball { width: 40px; height: 40px; }
  .waitlist { margin-top: 28px; padding-inline: 20px; }
  .form-row { flex-direction: column; }
  .form-row button { width: 100%; }
  .site-footer { width: calc(100% - 32px); min-height: 80px; gap: 10px; }
  .site-footer p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
