/* Turquoise Play landing. Marketing brand tokens, not the Sandbox Design System: this page is the public site's look.
   The header and footer styles live in their own partials (_marketing_nav.html, _marketing_footer.html). */
/* GT Standard comes from pit-viper's consumer theme (linked in _layout.html). It has no GT Standard L 400, which the
   tile and menu body text use, so that one face is bundled here. */
@font-face { font-family: "GT Standard L"; src: url("fonts/GT-Standard-L-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --white: #ffffff;
  --bg-white: #fdfdfc;
  --warm-accent: #f8f7f1;
  --dark-green: #1a3e3a;
  --dark-green-80: rgba(26, 62, 58, .8);
  --dark-green-60: rgba(26, 62, 58, .6);
  --dark-green-10: rgba(26, 62, 58, .1);
  --text-primary: #1a3a39;
  --text-secondary: rgba(26, 58, 57, .8);
  --text-tertiary: rgba(26, 58, 57, .6);
  --main-primary: #073a46;
  --stroke-light: #e7e7e7;
  --card-border: rgba(17, 18, 18, .1);
  --font-l: "GT Standard L", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-m: "GT Standard M", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --content: 1200px;
  --gutter: max(24px, calc((100vw - var(--content)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* pit-viper-consumer.css sets body line-height 1.5, link weight 500 and img max-width 100%; this page keeps the prototype's metrics. */
body { margin: 0; background: var(--white); color: var(--text-primary); font-family: var(--font-m); line-height: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, p { margin: 0; }
/* a:hover only drops the underline pit-viper-consumer.css puts on :where(a):hover; it must not set color or weight, or it
   would outrank .cta__btn, .mk-nav__cta and friends on hover */
a { color: inherit; font-weight: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: none; }
:focus-visible { outline: 2px solid var(--main-primary); outline-offset: 2px; }
.page { position: relative; overflow-x: clip; }

.section-head { display: flex; flex-direction: column; gap: 8px; padding-inline: 8px; min-width: 0; }
.section-head__title { font-family: var(--font-l); font-weight: 500; font-size: 36px; line-height: 1.1; color: var(--dark-green); }
.section-head__sub { font-size: 14px; line-height: 1.35; letter-spacing: -.14px; color: var(--text-secondary); }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }

/* Hero: the title's letters rise and flash in turn, then toys fly from the pointer while it is over the title (play.js) */
.hero { --stagger: 55ms; --rise: .52s; --settle: .48s; --settle-lag: .38s; position: relative; overflow: hidden; display: flex;
  flex-direction: column; align-items: center; gap: clamp(24px, 3.5vh, 32px);
  padding: calc(72px + 50px) 24px 50px; text-align: center; }   /* 50px below the 72px header, which floats over the hero (.mk-nav) */
.hero__emoji-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__emoji-layer .emoji { position: absolute; top: 0; left: 0; max-width: none; -webkit-user-select: none; user-select: none; will-change: transform, opacity; }
.hero__title, .hero__lede { position: relative; z-index: 1; }
.hero__title { max-width: 960px; text-wrap: balance; font-family: var(--font-l); font-weight: 500; font-size: 62px; line-height: 1; letter-spacing: -.62px;
  color: var(--text-primary); touch-action: manipulation; }
.word { display: inline-block; white-space: nowrap; }
/* The second line, "comes to play.", breaks as one; its last word turns through the words in routes.py ROTATE (play.html). The
   rotor is a one-cell grid holding every word unseen (.sizer), so it is always as wide as the longest and "comes to"
   never moves; the words sit at its left edge, and the outgoing and incoming ones share the cell while they swap. */
.title-line { display: block; white-space: nowrap; }
.word--rotor { display: inline-grid; justify-items: start; }
.word--rotor > * { grid-area: 1 / 1; }
.sizer { visibility: hidden; }
.sizer i { display: inline-block; font-style: normal; }   /* letter boxes, as the words are set, so the widths match exactly */
.face { display: inline-block; }
.face--out { animation: face-out .32s ease-in both; }
@keyframes face-out { to { opacity: 0; transform: translateY(-.35em); } }
.letter { display: inline-block;
  animation: letter-rise var(--rise) cubic-bezier(.22, 1, .36, 1) both, letter-settle var(--settle) ease-in-out both;
  animation-delay: calc(var(--i) * var(--stagger)), calc(var(--i) * var(--stagger) + var(--settle-lag)); }
.hero__lede { max-width: 760px; text-wrap: balance; font-size: 20px; line-height: 1.4; letter-spacing: .2px; color: var(--text-secondary);
  animation: lede-in .8s ease-out 2.1s both; }
/* Why games?: the site's small white button (as .tile__go), under the lede; it opens dialog.why */
.why-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--stroke-light); border-radius: 6px; background: var(--white); font-family: var(--font-m); font-weight: 500;
  font-size: 15px; line-height: 1.4; letter-spacing: -.14px; color: var(--dark-green); cursor: pointer;
  transition: background .15s ease; animation: lede-in .8s ease-out 2.3s both; }
.why-btn:hover { background: var(--warm-accent); }
@keyframes letter-rise { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: translateY(0); } }
@keyframes letter-settle { from { color: var(--flash); } to { color: var(--text-primary); } }
@keyframes lede-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Transparency Tycoon call to action */
.cta { display: flex; flex-direction: column; gap: 24px; padding: 0 var(--gutter) 120px; }
.cta__head { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta__title-wrap { display: flex; flex-direction: column; gap: 12px; max-width: 641px; font-family: var(--font-l); font-weight: 500; }
.cta__eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-l); font-weight: 500; font-size: 16px; line-height: 1.5;
  color: var(--dark-green-60); }
.cta__title { font-family: var(--font-l); font-weight: 500; font-size: 36px; line-height: 1.1; color: var(--dark-green); }
.cta__copy { flex-shrink: 0; width: 445px; font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--dark-green-80); text-wrap: pretty; }
.cta__line { display: block; }   /* one sentence group per line, so the break never lands mid-sentence */
.cta__media { position: relative; }
/* The Tycoon title screen's look over the loop: its vignette and its wordmark, centered, with the game's drop shadow and
   drop-in (play.html starts it the first time the banner scrolls into view) */
.cta__brand { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(14, 26, 34, 0.1), rgba(14, 26, 34, 0.55)); }
.cta__wordmark { display: block; width: min(50%, 600px); height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45)); }
.cta__brand--wait .cta__wordmark { opacity: 0; }
.cta__brand--in .cta__wordmark { animation: tycoon-drop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes tycoon-drop { from { transform: translateY(-40px) scale(1.1); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cta__brand--wait .cta__wordmark { opacity: 1; } .cta__brand--in .cta__wordmark { animation: none; } }
.cta__img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 434; object-fit: cover; border-radius: 12px; }
.cta__btn { position: absolute; right: 26px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px;
  border: 1px solid rgba(18, 19, 19, .05); border-radius: 6px; background: var(--white); opacity: .9; font-weight: 500; font-size: 16px;
  line-height: 1.4; letter-spacing: -.24px; color: var(--dark-green); white-space: nowrap; transition: opacity .15s ease; }
.cta__btn:hover { opacity: 1; }
/* The Tycoon character (walker.js): it walks the ledges of the two sections and can be picked up and set down. The
   layer rides the page, so the sprite scrolls with what it stands on; the canvas over the window draws the landing dust.
   Held, it swings from the spot the pointer has it by. Pixel art, so no smoothing. */
.walker-layer { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 6; }
.walker { position: absolute; top: 0; left: 0; width: 21.75px; height: 45px; background-repeat: no-repeat; image-rendering: pixelated;
  cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; will-change: transform; transition: opacity .15s ease; }
.walker.is-held { cursor: grabbing; }
.walker-shadow { position: absolute; top: 0; left: 0; width: 26px; height: 8px; margin: -4px 0 0 -13px; border-radius: 50%;
  background: rgba(0, 0, 0, .28); opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.walker-fx { position: fixed; inset: 0; z-index: 7; width: 100%; height: 100%; pointer-events: none; }

/* Dailies carousel */
.daily { display: flex; flex-direction: column; gap: 24px; padding: 50px var(--gutter); }   /* the Tycoon banner's width (.cta) */
.daily__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.daily__track { --fade-l: 0px; --fade-r: 0px; padding: 6px 0 28px; margin-block: -6px -28px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent); }
.daily__track--before { --fade-l: 48px; }
.daily__track--after { --fade-r: 48px; }   /* room for the tiles' hover lift and shadow, which the scroller would clip */
.arrows { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.arrows__btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--stroke-light); border-radius: 9999px; background: var(--bg-white); transition: background .15s ease, opacity .15s ease; }
.arrows__btn:hover:not(:disabled) { background: var(--warm-accent); }
.arrows__btn:disabled { opacity: .5; cursor: default; }
/* three and a half tiles across the track (the content width, between the gutters), so the fourth sits half past the
   edge and says there's more; never wider than the design's 383.5px */
.tile { display: flex; align-items: center; gap: 16px; flex: 0 0 clamp(300px, calc((100vw - 2 * var(--gutter) - 48px) / 3.5), 383.5px); min-width: 0; padding: 11px; overflow: hidden;
  border: 1px solid var(--card-border); border-radius: 10px; background: var(--white);
  transition: transform .25s var(--dr-ease), box-shadow .25s var(--dr-ease), border-color .25s; }
.tile:hover { border-color: rgba(17, 18, 18, .25); }   /* .dr-card:hover (daily-art.css) adds Daily Rounds' lift and shadow */
.tile__thumb { position: relative; flex-shrink: 0; width: 100px; height: 100px; overflow: hidden; border-radius: 6px; }
.tile__img { position: absolute; max-width: none; }
.tile__img--contain { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tile__img--inset { top: 12%; left: 6%; width: 88%; height: 76%; object-fit: contain; }
.tile__text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.tile__title { font-family: var(--font-l); font-weight: 500; font-size: 20px; line-height: 1.4; letter-spacing: .2px; color: var(--text-primary); }
/* what the game is: one line from 1440px wide, a second where the tile is narrower (phones, small windows), never cut short of that */
.tile__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-family: var(--font-l);
  font-size: 14px; line-height: 1.4; letter-spacing: -.14px; color: var(--text-tertiary); }
.tile__meta { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-top: 4px; }
.tile__stat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-l); font-size: 16px; line-height: 1.5;
  letter-spacing: -.16px; color: var(--text-tertiary); white-space: nowrap; }
/* Play, or Results once today's puzzle is done in this browser (play.js). A label, not a control: the whole tile is the link. */
/* the site's white button, as on the Tycoon banner (.cta__btn), at tile size */
.tile__go { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 5px 10px 5px 14px;
  border: 1px solid var(--stroke-light); border-radius: 6px; background: var(--white); font-family: var(--font-m);
  font-weight: 500; font-size: 14px; line-height: 1.4; letter-spacing: -.14px; color: var(--dark-green); white-space: nowrap;
  transition: background .15s ease; }
.tile:hover .tile__go { background: var(--warm-accent); }
.tile__go--done, .tile:hover .tile__go--done { padding: 0; border: 0; background: none; font-family: var(--font-l); font-weight: 400; font-size: 16px;
  line-height: 1.5; letter-spacing: -.16px; color: var(--text-secondary); }

/* The dailies' tile art: Daily Rounds' own card art and hover moments (daily-art.js and daily-art.css, copied from that
   app). This only scales it into the 100px thumb: scale() shrinks the look, not the box, so each piece is pinned to the
   thumb's center and scaled from there. */
.tile__art { position: absolute; inset: 0; }
.tile__art > * { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--fit, 1)); }
.tile__art .dr-miniflap { --fit: .52; }
.tile__art .dr-deal { --fit: .48; margin-top: 4px; color: var(--app-lu); }
.tile__art .dr-miniradar { --fit: .76; }
.tile__art .dr-minilift { --fit: .62; }

/* Lower banner: the AskTQ buddy over a dark card at the foot of the page */
.more { padding: 0 var(--gutter) 120px; }
.more__card { display: flex; align-items: flex-start; justify-content: center; gap: 22px; padding: 80px 24px; border-radius: 6px;
  background: #073843; color: var(--white); }
.more__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 493px; min-width: 0; }
.more__buddy { flex: none; display: block; width: 24px; height: 24px; }
.more__title { max-width: 340px; font-family: var(--font-l); font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: .28px; color: var(--white); }
.more__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 445px; min-width: 0;
  padding-top: 36px; }   /* the buddy (24px) and its 12px gap: the copy's top lines up with the title's, the buddy sits above both */
.more__copy { font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: rgba(255, 255, 255, .8); }
.more__link { display: inline-flex; align-items: center; gap: 4px; padding-block: 6px; font-size: 16px; line-height: 1.4;
  letter-spacing: -.16px; color: #36c5ba; }
.more__link:hover { text-decoration: underline; }

/* Under construction (soon.html): a /play/ game page that is not public yet, in static/platform/forbidden.html's shape */
.soon { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 160px 24px 120px;
  background: var(--warm-accent); text-align: center; }
.soon__card { display: flex; flex-direction: column; align-items: center; max-width: 600px; }
.soon__icon { margin-bottom: 32px; }
.soon__title { margin-bottom: 12px; font-family: var(--font-l); font-weight: 500; font-size: 40px; line-height: 1.1;
  letter-spacing: .14px; color: var(--text-primary); }
.soon__copy { font-size: 20px; line-height: 1.4; letter-spacing: .14px; color: var(--text-primary); text-wrap: balance; }
.soon__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; padding: 12px 16px; border-radius: 6px;
  background: linear-gradient(180deg, #2c6a7d, #18323a 29.167%); color: var(--white); font-weight: 500; font-size: 16px; line-height: 1.2;
  opacity: .9; transition: opacity .15s; }
.soon__back:hover { opacity: 1; }

/* Password gate (gate.html) and its inputs, also used by the staff control */
.gate__buddy { display: block; width: fit-content; margin-bottom: 4px; }
.gate { display: flex; justify-content: center; padding: 200px 24px 160px; }
.gate__card { display: flex; flex-direction: column; gap: 12px; width: min(420px, 100%); }
.gate__title { font-family: var(--font-l); font-weight: 500; font-size: 40px; line-height: 1.1; color: var(--dark-green); }
.gate__copy { margin-bottom: 12px; font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--dark-green-80); }
.gate__label { font-weight: 500; font-size: 14px; line-height: 1.3; letter-spacing: -.14px; color: var(--dark-green); }
.gate__input { width: 100%; padding: 12px 14px; border: 1px solid var(--stroke-light); border-radius: 6px; background: var(--bg-white);
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--text-primary); }
.gate__input:focus-visible { outline: 2px solid var(--main-primary); outline-offset: 0; }
.gate__input[aria-invalid="true"] { border-color: #c4341b; }
.gate__error { font-size: 14px; line-height: 1.35; color: #c4341b; }
.gate__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 12px 16px;
  border: 1.5px solid #183a36; border-radius: 6px; background: linear-gradient(180deg, #1c4045, #18323a 29.167%); font-weight: 500;
  font-size: 16px; line-height: 1.4; letter-spacing: -.24px; color: var(--white); }
.gate__btn:hover { background: linear-gradient(180deg, #31636a, #18323a 29.167%); }

/* A public game's page (game.html, game.js): the prototype's game view (GamePage, ShareDialog, FeedbackDialog) without
   its account prompt. The game runs in the stage's frame. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Tight above the stage, so a laptop's browser window fits a whole game without going fullscreen: the bar's 72px, the
   title row and 16px under the stage come to 148px, the rest of the window is the stage's. */
.game { max-width: 1440px; margin-inline: auto; padding: 76px 18px 80px; }
.game__staff { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 14px; }
.game__staff span { margin-left: auto; }

.game__head { position: relative; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 12px;
  padding-inline: 24px; }
.game__title { font-family: var(--font-l); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--text-primary); }
.game__actions { display: flex; align-items: center; gap: 7.7px; }
.game__full { margin-left: auto; gap: 8.8px; padding-inline: 17.6px 22px; }   /* the stage's top right corner */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4.4px; height: 44px;
  min-width: 44px; padding: 8.8px 17.6px; border: 1.1px solid var(--stroke-light); border-radius: 9999px; background: var(--bg-white);
  font-weight: 500; font-size: 17.6px; line-height: 1.4; letter-spacing: -.264px; color: var(--text-primary);
  transition: background .15s ease, border-color .15s ease; }
.pill:hover { background: var(--warm-accent); }
.pill--icon { width: 44px; padding: 0; }
.pill--count { min-width: 80.3px; }
.pill--liked, .pill--liked:hover { border-color: #f0384d59; background: #fff3f4; }
/* A tooltip under each button: on hover after a beat, and at once on keyboard focus */
.pill[data-tip]::before, .pill[data-tip]::after { position: absolute; left: 50%; opacity: 0; pointer-events: none;
  background: var(--dark-green); transition: opacity .14s ease, transform .14s ease; }
.pill[data-tip]::after { content: attr(data-tip); top: calc(100% + 10px); z-index: 20; padding: 6px 10px; border-radius: 6px;
  font-family: var(--font-m); font-weight: 500; font-size: 13px; line-height: 1.2; letter-spacing: -.13px; color: var(--white);
  white-space: nowrap; transform: translate(-50%, 4px); }
.pill[data-tip]::before { content: ""; top: calc(100% + 6px); z-index: 21; width: 8px; height: 8px; border-radius: 1px;
  transform: translate(-50%, 4px) rotate(45deg); }
.pill[data-tip]:focus-visible::before, .pill[data-tip]:focus-visible::after { opacity: 1; }
.pill[data-tip]:focus-visible::after { transform: translate(-50%); }
.pill[data-tip]:focus-visible::before { transform: translate(-50%) rotate(45deg); }
@media (hover: hover) {
  .pill[data-tip]:hover::before, .pill[data-tip]:hover::after { opacity: 1; transition-delay: .3s; }
  .pill[data-tip]:hover::after { transform: translate(-50%); }
  .pill[data-tip]:hover::before { transform: translate(-50%) rotate(45deg); }
}
.heart { stroke: #121313; transition: fill .15s ease, stroke .15s ease, transform .15s ease; }
.pill--count:hover .heart:not(.heart--on) { transform: scale(1.12); }
.heart--on { fill: #f0384d; stroke: #f0384d; }
.heart--pop { animation: heart-pop .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes heart-pop { 0% { transform: scale(1); } 25% { transform: scale(.7); } 60% { transform: scale(1.4) rotate(-8deg); }
  to { transform: scale(1) rotate(0); } }
.count { display: inline-block; font-variant-numeric: tabular-nums; }
.count--bump { animation: count-in .3s ease-out; }
@keyframes count-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stage { position: relative; width: 100%; height: clamp(480px, calc(100dvh - 148px), 900px); overflow: hidden; border-radius: 12px;
  background: #0f2325; }
.stage__frame { display: block; width: 100%; height: 100%; border: 0; }
/* A hairline drawn over the frame's edge, so a white game reads as a framed stage and the dark loading background never
   shows as arcs in the rounded corners. */
.stage:not(.stage--full)::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--stroke-light); border-radius: inherit;
  pointer-events: none; }
.stage--full { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100dvh; border-radius: 0; }
.stage__exit { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; border-radius: 9999px; background: rgba(15, 35, 37, .7); color: var(--white); }
.stage__exit:hover { background: rgba(15, 35, 37, .9); }
.stage__exit[hidden] { display: none; }
/* A phone has one view: the game fills the screen and a menu floats over its top left corner (the way back, like, share,
   feedback). No bar and no exit, so the whole screen is the game's. */
.stage__menu { display: none; }
.stage--phone .stage__exit { display: none; }
.stage--full.stage--phone { height: 100vh; height: 100dvh; }
.stage--phone .stage__menu { display: block; }
.stage__burger { position: absolute; z-index: 3; top: max(6px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9999px; background: rgba(15, 35, 37, .78); color: var(--white); box-shadow: 0 2px 8px rgba(15, 35, 37, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stage__burger::before { content: ""; position: absolute; inset: -6px; }   /* a 46px target around the 34px button, the size of the games' sound buttons */
.stage__burger[aria-expanded="true"] { background: #0f2325; }
.stage__scrim { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(15, 35, 37, .32); }
.stage__scrim[hidden], .stage__sheet[hidden] { display: none; }
.stage__sheet { position: absolute; z-index: 3; top: calc(max(6px, env(safe-area-inset-top)) + 42px); left: max(8px, env(safe-area-inset-left));
  display: flex; flex-direction: column; width: min(260px, calc(100% - 16px)); max-height: calc(100% - 56px); overflow-y: auto; padding: 6px;
  border: 1px solid var(--stroke-light); border-radius: 14px; background: var(--bg-white); box-shadow: 0 12px 32px rgba(15, 35, 37, .28); }
.stage__sheet-name { padding: 8px 10px 6px; font-family: var(--font-l); font-weight: 500; font-size: 13px; color: var(--text-secondary); }
.stage__item { display: flex; align-items: center; gap: 12px; flex: none; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 9px;
  background: none; font: inherit; font-weight: 500; font-size: 16px; letter-spacing: -.16px; text-align: left; text-decoration: none;
  color: var(--text-primary); }
.stage__item:active { background: var(--warm-accent); }
.stage__item-count { margin-left: auto; font-weight: 400; color: var(--text-secondary); }
.stage__item--staff { padding-left: 44px; font-weight: 400; font-size: 15px; }
@media (max-height: 500px) {   /* a phone on its side: the items sit two across, so the menu never runs past the screen */
  .stage__sheet { flex-direction: row; flex-wrap: wrap; width: min(440px, calc(100% - 16px)); }
  .stage__sheet-name { width: 100%; }
  .stage__item { width: 50%; }
}
html.play-full, html.play-full body { overscroll-behavior: none; }
/* A phone's game is the whole page. Nothing else stays laid out under it, so the keyboard has no page to scroll the
   game away on, and what shows under the stage (Safari's see-through bars, the strip a shrunk stage leaves above the
   keys) is the game's own background, which game.js reads from the frame, never the page's nav or footer. */
html.play-full:has(.stage--phone), html.play-full:has(.stage--phone) body { background: var(--play-stage-bg, var(--white)); }
html.play-full:has(.stage--phone) .page > :not(main), html.play-full:has(.stage--phone) .game > :not(.stage) { display: none; }

dialog.feedback, dialog.why { width: min(596px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 40px;
  overflow-y: auto; border: 1px solid var(--dark-green-10); border-radius: 10px; background: var(--white); color: var(--dark-green); }
dialog.feedback { width: min(560px, calc(100vw - 32px)); }
dialog.feedback[open], dialog.why[open] { animation: dialog-in .18s ease-out; }
dialog.why[open] { display: flex; flex-direction: column; gap: 20px; }
.why__lead { font-size: 18px; line-height: 1.45; color: var(--text-secondary); }
dialog.feedback::backdrop, dialog.why::backdrop { background: #12242366; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog__close { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 32px;
  height: 32px; padding: 0; border: 0; border-radius: 9999px; background: transparent; color: var(--dark-green-60); }
.dialog__close:hover { background: var(--warm-accent); color: var(--dark-green); }
.dialog__title { font-family: var(--font-l); font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: .28px; color: var(--dark-green); }
.dialog__submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px;
  border: 1.5px solid #183a36; border-radius: 6px; background: linear-gradient(180deg, #1c4045, #18323a 29.167%);
  font-family: var(--font-m); font-weight: 500; font-size: 16px; line-height: normal; letter-spacing: -.24px; color: var(--white); }
.dialog__submit:hover { background: linear-gradient(180deg, #31636a, #18323a 29.167%); }
.dialog__submit:disabled { opacity: .7; cursor: progress; }
.feedback__form, .feedback__done { display: flex; flex-direction: column; gap: 24px; }
.feedback__done[hidden], .feedback__form[hidden] { display: none; }
.feedback__head { display: flex; flex-direction: column; gap: 12px; }
.feedback__intro { font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--text-secondary); }
.feedback__types { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.feedback__label { padding: 0; font-weight: 500; font-size: 16px; line-height: 1.4; letter-spacing: -.24px; color: var(--text-primary); }
.feedback__types .feedback__label { margin-bottom: 10px; }
.feedback__optional { margin-left: 6px; font-weight: 400; font-size: 14px; letter-spacing: -.14px; color: var(--text-tertiary); }
.feedback__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 8px 16px; border: 1px solid var(--stroke-light); border-radius: 9999px; background: var(--bg-white);
  font-family: var(--font-m); font-weight: 500; font-size: 14px; line-height: 1.3; letter-spacing: -.14px; color: var(--text-secondary);
  transition: background .15s ease, color .15s ease; }
.chip:hover:not([aria-pressed="true"]) { background: var(--warm-accent); }
.chip[aria-pressed="true"] { border-color: var(--main-primary); background: var(--main-primary); color: var(--white); }
.feedback__field { display: flex; flex-direction: column; gap: 7px; }
.box { position: relative; border: 1.5px solid var(--dark-green-10); border-radius: 6px; background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease; }
.box:focus-within { border-color: var(--main-primary); box-shadow: 0 0 0 3px #073a461f; }
.box--error, .box--error:focus-within { border-color: #c4314b; }
.box--error:focus-within { box-shadow: 0 0 0 3px #c4314b24; }
.box__input { display: block; width: 100%; min-height: 140px; padding: 12px 16px 36px; border: 0; outline: 0; resize: vertical;
  background: transparent; font-family: var(--font-m); font-size: 16px; line-height: 1.5; letter-spacing: -.16px; color: var(--text-primary); }
.box__input::placeholder { color: var(--text-tertiary); }
.box__count { position: absolute; right: 14px; bottom: 10px; font-size: 13px; line-height: 1; letter-spacing: -.13px;
  color: var(--text-tertiary); pointer-events: none; }
.box__count--near { color: #b4540a; }
.feedback__error { font-size: 14px; line-height: 1.3; letter-spacing: -.14px; color: #c4314b; }

@media (prefers-reduced-motion: reduce) { .letter, .hero__lede, .why-btn, .heart--pop, .count--bump { animation: none; } }
@media (max-width: 960px) {
  .gate { padding-block: 140px 100px; }
  .cta__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta__copy { width: auto; max-width: 445px; }
  .more__card { flex-direction: column; gap: 32px; padding: 64px 48px; }
  .more__lead, .more__body { width: auto; max-width: 493px; }
  .more__body { padding-top: 0; }
}
@media (max-width: 640px) {
  .section-head { padding-inline: 0; }   /* phones: the heads line up with the tiles and cards under them */
  .section-head__title { font-size: 28px; }
  .hero { gap: 24px; }
  .hero__title { font-size: 40px; letter-spacing: -.4px; }
  .hero__lede { font-size: 17px; }
  .gate { padding-block: 110px 64px; }
  .gate__title { font-size: 30px; }
  .soon { padding-block: 110px 64px; }
  .soon__title { font-size: 30px; }
  .soon__copy { font-size: 18px; }
  .cta { padding-block: 0 72px; }
  .cta__title { font-size: 28px; }
  .cta__img { aspect-ratio: 4 / 3; }
  .cta__btn { right: 12px; bottom: 12px; }
  .cta__wordmark { width: 78%; }
  .daily__head { align-items: flex-end; gap: 12px; }   /* the arrows stay: they say there are more dailies than the one on screen */
  .arrows__btn { width: 44px; height: 44px; }
  /* the row runs to the screen's edges with no fade, so a tile is whole when it lands and the next one peeks in */
  .daily__track { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    -webkit-mask-image: none; mask-image: none; }
  .tile { flex-basis: min(300px, calc(100vw - 2 * var(--gutter))); }
  .tile__desc { font-size: 13px; }
  .tile__stat { font-size: 14px; }   /* room for the Play button, which the narrower tile was clipping */
  .tile__go { padding: 5px 12px; }
  .tile__go img { display: none; }   /* no arrow in the Play button here: with it the button ran past the tile's edge */
  .more { padding-bottom: 72px; }
  .more__card { padding: 40px 24px; }
}
@media (max-width: 640px) {
  .game { padding: 96px 12px 48px; }
  .game__head { padding-inline: 4px; gap: 12px; }
  .stage { height: calc(100dvh - 200px); min-height: 420px; }
  dialog.feedback, dialog.why { padding: 28px 20px; }
  .dialog__title { font-size: 24px; }
}
