/* sooplaa.com: the landing page around the game (Sooplaa.Web/wwwroot/index.html and its es/tr/ru
   copies, generated from Sooplaa.Web/Landing). Drawn in the app's own language - Luckiest Guy over
   Poppins, paper, ink and the app's red - so pressing Play opens the same thing.

   Two stylesheets share this document. This one loads with the page; Css/Sooplaa.css, MudBlazor and
   the component styles are injected by js/site.sooplaa.js the first time the game starts, and stay.
   So every rule here that the app's CSS also sets globally (html, body, p, a, headings) is scoped to
   html.lp or .site, and the app's sheets are inserted ahead of this one so a tie goes to the page. *Failure mode:* an unscoped
   `p { margin: 0 }` here loses to nothing, but the app's `p { color: var(--black) }` arrives later
   and turns every paragraph on the ink sections black the moment someone has played once. The
   app's `html, body { height: 100%; overflow: hidden }` would also stop the page scrolling after the
   game is put away; html.lp undoes it while the stage is closed. */
:root {
  /* the app's own palette (Sooplaa.Web/wwwroot/Css/Sooplaa.css) */
  --red: #D72018;
  --red-dark: #A8140E;
  --paper: #FAF6F2;
  --paper-2: #EFE6DA;
  --ink: #1C1C1C;
  --outer: #1B1B1B;
  --ink-2: #4A433D;
  --muted: #7A6F65;

  /* one colour per kind of night */
  --date: #F8C3CD;
  --party: #FFD23F;
  --friends: #A8C9FF;
  --work: #BDE4C6;
  --family: #FFC497;

  --display: "Luckiest Guy", "Arial Black", system-ui, sans-serif;
  --ui: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --edge: 3px solid var(--ink);      /* cards, the table, buttons */
  --edge-ui: 2px solid var(--ink);   /* small controls */
  --lift: 6px 6px 0 var(--ink);
  --lift-sm: 4px 4px 0 var(--ink);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --pop: cubic-bezier(.3, 1.5, .5, 1);
  --swing: cubic-bezier(.65, 0, .25, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html.lp { -webkit-text-size-adjust: 100%; overflow-x: clip; overflow-y: visible; height: auto; max-height: none; }
html.lp body { margin: 0; padding: 0; display: block; height: auto; max-height: none; overflow-x: clip; overflow-y: visible;
               background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--ui); letter-spacing: normal; }
html.lp.playing, html.lp.playing body { height: 100%; overflow: hidden; }
/* :where() keeps these at element weight, so every class rule below still beats them. They win
   against the app's bare element rules on order instead: site.sooplaa.js inserts the app's
   stylesheets before this one. */
:where(.site) :is(h1, h2, h3) { font-family: var(--display); font-weight: 400; line-height: .95; margin: 0; letter-spacing: .01em; text-wrap: balance; }
:where(.site) p { margin: 0; color: inherit; line-height: inherit; font-family: inherit; text-wrap: pretty; }
/* Css/Sooplaa.css sets Poppins on every p, span, li, label and button directly. Without this, once
   the game has been opened once, every span in the page (the headline, the logo, the card labels)
   drops the display face. *Failure mode seen in testing:* the hero headline in Poppins. */
:where(.site) :is(span, li, label, small, b, strong, em) { font-family: inherit; }
:where(.site) small, .pick-label, .numbers span { text-wrap: balance; }
:where(.site) a { color: inherit; }
:where(.site) button { font: inherit; color: inherit; cursor: pointer; }
/* MudBlazor's base reset arrives with the game and gives every button centred content: on the card
   buttons in "Pick a card" (display: grid) that collapsed the column to its content and halved the
   cards. Buttons here set their own alignment where they want it. Same for its body letter-spacing. */
:where(.site) button { align-items: normal; justify-content: normal; vertical-align: baseline; user-select: auto; -webkit-user-select: auto; }
:where(.site) :focus-visible { outline: 3px solid var(--party); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
svg.suit { width: 1em; height: 1em; fill: currentColor; flex: none; }
.eyebrow { font: 700 13px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 14px;
  border: var(--edge); border-radius: 999px; padding: 15px 28px;
  font: 400 22px/1 var(--display); letter-spacing: .02em; text-decoration: none;
  box-shadow: var(--lift-sm); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.red { background: var(--red); color: var(--paper); }
.btn.paper { background: var(--paper); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
.btn .go { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--paper); display: grid; place-items: center; margin-right: -12px; }
.btn.red .go { background: var(--paper); color: var(--red); }
.btn .go svg { width: 13px; height: 13px; margin-left: 2px; }
/* Start pressed before the game has drawn its first screen (site.sooplaa.js): the button waits,
   its arrow token turning, instead of the page showing a loading screen. */
.waiting { cursor: progress; }
.waiting .go svg { display: none; }
.waiting .go::after { content: ""; width: 42%; height: 42%; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ======================= HERO: the game's own sheet, exactly one screen =======================
   One sheet, the box the game's own sheet has (Css/Sooplaa.css .paper-container: 90% wide, at
   most 1200px, 16px off the edges, 8px on phones, 12px corners), with the game's header in it:
   the cup top left, the header icons top right in 44px buttons, ink as the game draws them
   (Layout/NavMenu.razor). Before Start the sheet is the card table - red felt with an ink edge
   on the paper ground, with the pitch on it
   and the live deck dealt beside it, running off the sheet's foot on phones. Type is paper on
   red, so the cards are the only colour that moves, and Start (paper here, red everywhere else
   on the page) is the one solid object on the table.
   On Start (site.sooplaa.js, html.entering) the ground turns the game's dark and the sheet the
   game's paper while what is on it fades, and then the game is shown in exactly that box, so
   the sheet is what becomes the game. Closing plays it backwards.
   *Keep in step with the game:* if its frame or header icons change, change these. */
.hero {
  height: 100vh; height: 100svh; min-height: 560px;   /* exactly the screen, as the game's own frame is */
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 16px;
  background-color: var(--paper); color: var(--ink);
}
.sheet {
  width: 90%; max-width: 1200px; min-width: 300px; height: 100%; margin: 0 auto; padding: 8px; border-radius: 12px;
  position: relative; overflow: hidden; color: var(--paper); border: var(--edge); box-shadow: var(--lift);
  background-color: var(--red); background-image: radial-gradient(rgba(0,0,0,.1) 1.5px, transparent 1.7px); background-size: 22px 22px;
  /* One column exactly the sheet's width. Left as an auto track it grew to the header's content
     and took the pitch and Play past the screen's edge with it (*seen* in Spanish at 360px when
     the header still had "Iniciar sesión"). */
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
}
.hero, .sheet { transition: background-color .24s ease, box-shadow .24s ease; }
.sheet > * { transition: opacity .16s ease; }
html.entering .hero { background-color: var(--outer); }
html.entering .sheet { background-color: var(--paper); background-image: none; box-shadow: 0 0 0 var(--ink); }
html.entering .sheet > * { opacity: 0; }
/* The game's header: a 56px band from the sheet's top edge, 4px in from its sides. */
.top { display: flex; align-items: center; height: 48px; margin: -4px -4px 0; position: relative; z-index: 6; }
/* the same square hover tile as the icons; 4px in, so the cup sits where the game's does */
.logo { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 0 4px; padding: 2px; border-radius: 12px; text-decoration: none;
        background: transparent; background-clip: content-box; transition: background-color .15s; }
.logo img { width: 36px; height: 36px; }
/* the name is the hero's headline; the wordmark stays as the link's name for screen readers */
.logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Ink, as the game draws them, straight on the red; under the pointer a paper tile shaped like the
   game's grey hover tile. The tile is 40px inside the 44px button
   (padding + content-box), which keeps the icons exactly where the game's are and leaves a gap
   between neighbours. */
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 2px; border: 0; border-radius: 12px;
            background: transparent; background-clip: content-box; color: var(--ink); transition: background-color .15s; }
.icon-btn:hover, .langs[open] > .icon-btn, .logo:hover { background-color: var(--paper); }
.hicon { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hicon text { fill: currentColor; stroke: none; font: 700 10px Arial, Helvetica, sans-serif; }
/* filled with paper inside their ink outlines, so they read on the red felt (the game's own are unfilled) */
.hicon .hf { fill: var(--paper); }

.hero-stage { min-height: 0; margin: 0 -8px -8px; }   /* out to the sheet's edges: the deck runs off them */
.table {
  position: relative; height: 100%; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; color: var(--paper);
}
.pitch { padding: clamp(32px, 4.4vw, 72px); padding-right: 12px; display: grid; justify-items: start; position: relative; z-index: 4; }
/* The headline: the name, big, then what it is - a plain line and the words that land on a yellow
   sticker, slapped on a moment after the headline rises, tilted like a card dealt onto the table.
   The sticker always gets a line of its own: left to wrap, a nowrap sticker can push the table
   past the screen's edge. Sizes go by height too, so a short wide window never pushes the steps
   and Play into the deck. Landing/build.py tag_scale shrinks the sticker where the words run long. */
.hero h1 { display: grid; justify-items: start; gap: 0; }
.hero h1 > span { animation: rise .7s var(--pop) both; }
/* an ink outline round the name, drawn under the fill (paint-order) so the letters keep their weight */
.hero h1 .mast { font-size: min(clamp(72px, 8.4vw, 124px), 15vh); line-height: .8; letter-spacing: .015em; text-shadow: 6px 6px 0 var(--ink);
                 -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; }
.hero h1 .pitchline { display: flex; flex-direction: column; align-items: flex-start; margin-top: .8em;
                      font: 700 clamp(19px, 1.8vw, 27px)/1.2 var(--ui); letter-spacing: -.005em; animation-delay: .1s; }
.sticker { display: inline-block; white-space: nowrap; margin: .24em 0 0 .05em; padding: .12em .2em .03em; color: var(--ink);
           background: var(--party); border: 4px solid var(--ink); border-radius: .2em; box-shadow: 5px 5px 0 var(--ink);
           text-shadow: none; transform: rotate(-3deg); transform-origin: 10% 60%; animation: stick .5s .45s var(--pop) both; }
.pitchline .sticker { font: 400 calc(min(clamp(36px, 4.1vw, 60px), 7.6vh) * var(--tag, 1))/1 var(--display); }
@keyframes stick { from { opacity: 0; transform: rotate(-14deg) scale(.55); } }
@keyframes rise { from { opacity: 0; transform: translateY(.35em) rotate(-2deg); } }
/* How to play: an ordered list of three steps, each a verb and its object in two spans ("Add" /
   "names"). Class-scoped throughout: MudBlazor's reset and Sooplaa.css arrive with the game and
   style bare ol and li. The plain form, one line with a yellow diamond between the beats, is
   what phones on their side get (no height for more); everywhere else it is the numbered strip. */
.sub { --sub-pt: 0px; margin: 30px 0 0; padding: var(--sub-pt) 0 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
       font: 600 clamp(17px, 1.45vw, 21px)/1.4 var(--ui); animation: rise .6s .35s var(--pop) both; }
.sub li { display: inline-flex; align-items: center; margin: 0; padding: 0; white-space: nowrap; font: inherit; color: inherit; }
.sub li > span + span { margin-left: .27em; }   /* the word space: a flex row drops the space between the spans */
/* after each beat, not before the next: if the line wraps, a diamond ends the first line instead of starting the second */
.sub li:not(:last-child)::after { content: ""; width: 8px; height: 8px; margin-left: 14px; border-radius: 1px; background: var(--party); transform: rotate(45deg); }
/* The numbered strip: three equal columns, each a yellow token over the verb over its object,
   joined by a dashed path from token to token like moves on a board. Every step is exactly two
   short lines in every language, so nothing wraps mid-phrase, and the longest word (Russian
   "Передавайте") gets a full third of the width. Left-aligned under a left-aligned headline;
   centred on phones, where the strip spans the screen. */
@media (orientation: portrait), (min-height: 521px) {
  .sub { --token: 30px; --gap: 14px; width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
         gap: 0 var(--gap); counter-reset: step; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.22; position: relative; isolation: isolate; }
  .sub::before { content: ""; position: absolute; z-index: -1; top: calc(var(--sub-pt) + var(--token) / 2 - 1px);
                 left: calc(var(--token) / 2); right: calc((100% - 2 * var(--gap)) / 3 - var(--token) / 2);
                 border-top: 2px dashed rgba(250, 246, 242, .5); }
  .sub li { counter-increment: step; display: grid; justify-items: start; align-content: start; min-width: 0; white-space: nowrap; }
  .sub li::before { content: counter(step); width: var(--token); height: var(--token); margin-bottom: 8px; padding-top: 3px; border-radius: 50%;
                    display: grid; place-items: center; background: var(--party); color: var(--ink); border: var(--edge-ui);
                    box-shadow: 2px 2px 0 var(--ink); font: 400 17px/1 var(--display); }
  .sub li > span + span { margin-left: 0; }
  .sub li:not(:last-child)::after { content: none; }
}
/* The proof under Play: three ticks. Turns into one line of text ("Game in progress ...") when a
   game is waiting (site.sooplaa.js). */
.proof { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.proof span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.proof span::before { content: ""; width: 17px; height: 17px; flex: none; border-radius: 50%; background: var(--paper)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3L9.6 3.6' fill='none' stroke='%23D72018' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; animation: rise .6s .45s var(--pop) both; }
/* The terms the button's tap accepts: fine print, right under it. */
:where(.site) .terms-note { margin: -2px 0 0; font-size: 12px; font-weight: 500; line-height: 1.35; opacity: .88; text-wrap: balance; }
.terms-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cta .btn { font-size: clamp(26px, 2.4vw, 32px); padding: 18px 34px; box-shadow: var(--lift); white-space: nowrap; }
.cta small { font-size: 14.5px; font-weight: 600; }

/* the live deck: deals itself, can be swiped, and re-deals by kind of night */
.deal { position: relative; height: 100%; min-height: 0; container-type: size; }   /* the deck sizes to whichever of its column's height or width runs out first */
.deck { position: absolute; left: 50%; top: calc(50% - 26px); transform: translate(-50%, -50%); height: min(100cqh - 140px, 640px, (100cqw - 96px) * 1.28); aspect-ratio: 5 / 6.4; }
.pcard {
  position: absolute; inset: 0; background: var(--c, #fff); color: var(--ink);
  border: var(--edge); border-radius: 18px; box-shadow: var(--lift);
  padding: 9% 9% 7%; display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none;
}
.hcard { touch-action: pan-y; cursor: grab; transition: transform .5s var(--pop), background-color .3s; }
.hcard:active { cursor: grabbing; }
.hcard[data-pos="0"] { transform: rotate(-2deg); z-index: 3; }
.hcard[data-pos="1"] { transform: translate(5%, 2%) rotate(5deg); z-index: 2; }
.hcard[data-pos="2"] { transform: translate(-5%, 4%) rotate(-8deg); z-index: 1; }
.hcard[data-pos="1"] > *, .hcard[data-pos="2"] > * { visibility: hidden; }
.corner { position: absolute; line-height: 0; font-size: clamp(16px, 1.8vw, 22px); }
.corner.tl { top: 7%; left: 6%; }
.corner.br { bottom: 7%; right: 6%; transform: rotate(180deg); }
/* The top row: the suit and the card type side by side, centred on each other (a suit placed on
   its own drifted above the pill). Starts 3% left of the padding, where the suit used to sit. */
.ctop { display: flex; align-items: center; gap: 6%; margin-left: -3%; }
.ctop .corner { position: static; }
.ctop .kind { margin-left: 0; }
.kind { align-self: flex-start; margin-left: 12%; font: 400 clamp(12px, 1.1vw, 14px)/1 var(--display); letter-spacing: .08em; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 11px 4px; }
.pcard .q { font: 700 clamp(17px, 1.9vw, 25px)/1.25 var(--ui); margin-block: auto; padding: 10px 0; text-wrap: pretty; letter-spacing: -.01em; }
.cnote { font-size: clamp(11px, 1vw, 13px); font-weight: 600; color: var(--ink-2); margin-right: 14%; }

.suits { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.suits button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--paper); background: transparent; color: var(--paper); display: grid; place-items: center; font-size: 16px; transition: background .2s, color .2s, transform .2s var(--pop); }
.suits button:hover { transform: translateY(-3px); }
.suits button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }


/* Phones held upright: the game's phone frame (8px of dark ground, the sheet edge to edge inside
   it) with the table filling the sheet, and the pitch first: the name, what it is, three steps,
   Play. The deck is the background, dealt on the felt below Play and running off the table's
   foot, so it fills whatever the pitch leaves without ever pushing Play down, and the cut-off
   card says there is more below. The suit buttons go; the five kinds of night are the very next
   section. */
@media (max-width: 860px) and (orientation: portrait) {
  .hero { min-height: 540px; padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px; }
  .sheet { width: calc(100% - 16px); box-shadow: var(--lift-sm); }
  /* the pitch's side margins on the sheet, narrower than the page's gutters */
  .table { --gutter-l: 16px; --gutter-r: 16px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr);
           align-items: stretch; max-height: none; }
  .pitch { display: contents; }
  .hero h1, .sub, .cta { grid-column: 1; padding-left: var(--gutter-l); padding-right: var(--gutter-r); position: relative; z-index: 4; }
  /* The pitch, top to bottom: the name, what it is, three steps, Play, proof. Its total height is
     what places the deck below it, so a change here moves the deck: keep the sum as it is. */
  .hero h1 { grid-row: 1; padding-top: 28px; }
  .hero h1 .mast { font-size: clamp(56px, 17.5vw, 88px); text-shadow: 5px 5px 0 var(--ink); -webkit-text-stroke-width: 6px; }
  .hero h1 .pitchline { margin-top: 14px; font-size: clamp(17px, 4.7vw, 20px); }
  .sticker { margin: .26em 0 0 .06em; padding: .14em .22em .04em; border-width: 3px; border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); }
  .pitchline .sticker { font-size: calc(clamp(28px, 8.4vw, 38px) * var(--tag, 1)); }
  /* the strip spans the screen here: centred columns, the path from the first token's centre to the last's */
  .sub { --token: 28px; --gap: 8px; --sub-pt: 18px; grid-row: 2; margin: 0; max-width: none; font-size: clamp(14px, 3.85vw, 15.5px); line-height: 1.2; text-align: center; }
  .sub::before { left: calc(var(--gutter-l) + (100% - var(--gutter-l) - var(--gutter-r)) / 6);
                 right: calc(var(--gutter-r) + (100% - var(--gutter-l) - var(--gutter-r)) / 6); }
  .sub li { justify-items: center; }
  .sub li::before { margin-bottom: 7px; font-size: 16px; }
  /* Start: full width, the arrow token pinned to its end and the label on one line, centred in the
     room left of it. Landing/build.py play_scale shrinks the labels that run long ("Empezar
     partida", "Oyunu başlat", "Начать игру"): left to wrap they turned the button into two lines. */
  .cta { grid-row: 3; margin: 0; padding-top: 20px; flex-direction: column; align-items: stretch; gap: 12px; }
  .cta .btn { position: relative; min-height: 62px; padding: 14px 60px 12px 18px; white-space: nowrap; font-size: calc(27px * var(--play, 1)); box-shadow: var(--lift-sm); }
  .cta .btn .go { position: absolute; right: 10px; top: 50%; width: 42px; height: 42px; margin: -21px 0 0; }
  /* one line of three ticks in every language down to 360px: the table is the sheet's width less its frame */
  .cta small { text-align: center; font-size: 12.5px; }
  :where(.site) .terms-note { margin: 0; text-align: center; font-size: 11px; }
  .proof { justify-content: center; gap: 4px 10px; }
  .proof span { gap: 5px; }
  .proof span::before { width: 15px; height: 15px; background-size: 9px; }
  .deal { grid-row: 4; grid-column: 1; height: auto; }
  .deck { top: 36px; left: 50%; transform: translateX(-50%) rotate(-4deg); width: min(76vw, 340px); height: auto; max-width: none; }
  /* The card runs off the screen's foot here, so its middle is not on screen: the question
     starts right under the top row instead of centred in the card. */
  .pcard .q { font-size: clamp(16px, 4.6vw, 21px); margin-block: 16px auto; }
  /* less padding on the hero's card, so its question still starts high enough to read */
  .hcard { padding: 6% 7% 5%; }
  .hcard .q { margin-top: 8px; }
  .suits { display: none; }
}
/* Short phones (most of them, once the browser's bars are counted): shrink the name, never drop
   the proof line, which is the reason to press Play. */
@media (max-width: 860px) and (orientation: portrait) and (max-height: 700px) {
  .hero h1 { padding-top: 20px; }
  .hero h1 .mast { font-size: clamp(50px, 15.5vw, 62px); }
  .hero h1 .pitchline { margin-top: 10px; font-size: 16px; }
  .pitchline .sticker { font-size: calc(clamp(24px, 7.4vw, 30px) * var(--tag, 1)); }
  .sub { --token: 25px; --sub-pt: 12px; font-size: 13.5px; }
  .sub li::before { margin-bottom: 5px; font-size: 14px; }
  .cta { padding-top: 14px; gap: 9px; }
  .deck { top: 32px; }
  .cta .btn { min-height: 56px; padding-block: 12px 10px; font-size: calc(24px * var(--play, 1)); }
  .cta .btn .go { width: 38px; height: 38px; margin-top: -19px; right: 8px; }
  .cta small { font-size: 11.5px; }
}
/* Phones on their side keep the desktop table, scaled down to fit a short screen. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; padding-block: 8px; }
  .sheet { box-shadow: var(--lift-sm); }
  /* the pitch gets the wider share here: it has five lines to fit in a short sheet, the deck none */
  .table { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
  .pitch { padding: 12px 8px 12px 24px; }
  .hero h1 .mast { text-shadow: 4px 4px 0 var(--ink); -webkit-text-stroke-width: 5px; }
  .hero h1 .pitchline { margin-top: 8px; font-size: 14px; }
  .sticker { border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
  .sub { margin-top: 10px; font-size: 12px; gap: 4px 8px; }
  .sub li:not(:last-child)::after { width: 6px; height: 6px; margin-left: 8px; }
  .cta { margin-top: 10px; gap: 4px; }
  .cta .btn { font-size: 20px; padding: 8px 18px; gap: 10px; box-shadow: var(--lift-sm); }
  .cta .btn .go { width: 30px; height: 30px; margin-right: -8px; }
  :where(.site) .terms-note { margin: 2px 0 0; font-size: 10px; }
  .cta small { font-size: 11px; }
  .proof { gap: 2px 12px; }
  .proof span::before { width: 14px; height: 14px; background-size: 9px; }
  /* the deck's column is narrow here: a smaller question so it stays on the card, and no suit
     buttons over it (the five kinds of night are the next section, as on phones held upright) */
  .deck { height: calc(100% - 28px); top: 50%; }
  .pcard .q { font-size: 13px; padding: 4px 0; }
  .kind { font-size: 10px; padding: 4px 8px 3px; }
  .cnote { font-size: 9.5px; }
  .suits { display: none; }
}

/* ======================= SPARKS ======================= */
.spark { padding-block: clamp(84px, 13vh, 140px); }
.spark h2 { font-size: clamp(40px, 5.4vw, 72px); }
.spark .line { margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 40ch; }

/* pick a card: five face-down cards that flip */
.picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.pick { border: 0; background: none; padding: 0; text-align: left; perspective: 1000px; display: grid; gap: 14px; }
/* Dealt, not filed: every card lands at its own angle and a little off the line, like a hand
   tossed onto the table. The angle is on the card (--r), the nudge on the whole pick (translate),
   so the label travels with its card. Hovering straightens a card, as if someone picked it up. */
.pick:nth-child(1) { --r: -6deg; translate: 0 14px; }
.pick:nth-child(2) { --r: 4deg;  translate: 0 -10px; }
.pick:nth-child(3) { --r: -2.5deg; translate: 0 22px; }
.pick:nth-child(4) { --r: 7deg;  translate: 0 -4px; }
.pick:nth-child(5) { --r: -4deg; translate: 0 16px; }
.flip { position: relative; aspect-ratio: 5 / 6.6; transform: rotate(var(--r, 0deg)); transition: transform .25s var(--pop); }
.pick:hover .flip { transform: translateY(-6px) rotate(0); }
.flip-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--swing); }
.pick[aria-pressed="true"] .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: var(--edge); border-radius: 16px; box-shadow: var(--lift-sm); }
.face.back {
  background-color: var(--paper); display: grid; place-items: center;
  background-image: radial-gradient(rgba(215,32,24,.22) 2px, transparent 2.4px), radial-gradient(rgba(215,32,24,.22) 2px, transparent 2.4px);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
  box-shadow: inset 0 0 0 9px var(--paper), inset 0 0 0 12px var(--red), var(--lift-sm);
}
.face.back img { width: 46%; max-width: 92px; }
.face.front { transform: rotateY(180deg); background: var(--c); color: var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.face.front .kind { margin-left: 0; font-size: 11px; }
.face.front .q { font: 700 clamp(13px, 1.25vw, 16px)/1.3 var(--ui); margin-block: auto; text-wrap: balance; }
.pick-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.pick-label .suit { color: var(--red); }
/* Page rhythm: every section takes a different ground from its neighbours, so the page visibly
   turns over as it scrolls: paper hero (red table) / ink picks / sand listens / red numbers /
   paper price / ink final. Shadows follow the ground: ink on light grounds, red on ink. */
.band-ink { background-color: var(--ink); color: var(--paper);
  background-image: radial-gradient(rgba(250,246,242,.06) 1.5px, transparent 1.7px); background-size: 24px 24px; }
.band-ink h2 { text-shadow: 4px 4px 0 var(--red); }
.band-ink .face { box-shadow: 5px 5px 0 var(--red); }
.band-ink .face.back { box-shadow: inset 0 0 0 9px var(--paper), inset 0 0 0 12px var(--red), 5px 5px 0 var(--red); }
.band-ink .pick-label .suit { color: var(--c); }
@media (max-width: 860px) {
  .spark { padding-block: 72px; }
  .spark .line { margin-top: 12px; }
  /* All five at once, no sideways scrolling: two across, the fifth centred on its own row. Taller
     than the old carousel, and nothing is hidden off the edge. */
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 32px; }
  .pick { gap: 10px; }
  .pick:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  /* scattered across the screen: sideways as well as up and down, steeper angles than on desktop */
  .picks { gap: 18px 14px; }
  .pick:nth-child(1) { --r: -8deg; translate: -4px 0; }
  .pick:nth-child(2) { --r: 6deg;  translate: 6px 30px; }
  .pick:nth-child(3) { --r: 5deg;  translate: 10px -4px; }
  .pick:nth-child(4) { --r: -7deg; translate: -8px 24px; }
  .pick:nth-child(5) { --r: -3deg; translate: 18px 6px; }
  .pick-label { font-size: 14px; }
}

/* it listens: one card, three buttons */
.listens { background: var(--paper-2); }
.listen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.listen-demo { display: grid; gap: 16px; justify-items: stretch; max-width: 520px; width: 100%; justify-self: center; }
.lcard { position: relative; aspect-ratio: auto; min-height: 250px; transform: rotate(-1.5deg); transition: transform .35s var(--swing), opacity .35s, background-color .3s; }
.lcard.swap { transform: translateX(26px) rotate(4deg); opacity: 0; }
.lcard .q { font-size: clamp(20px, 2.4vw, 30px); }
.tag { position: absolute; top: -16px; right: 18px; background: var(--ink); color: var(--paper); font: 400 15px/1 var(--display); letter-spacing: .04em; padding: 9px 14px 7px; border-radius: 999px; transform: rotate(3deg) scale(0); transition: transform .35s var(--pop); }
.tag.on { transform: rotate(3deg) scale(1); }
/* The game's pace dial, drawn as Sooplaa.Web's PaceControl draws it: one bordered track with
   three segments, hotter on the left, so it reads as one dial and not three votes. Only the
   chosen segment shows its colour, because the choice stands until the group changes it. */
.pace { display: flex; border: var(--edge-ui); border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 var(--ink); overflow: hidden; }
.pace button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 8px 6px; border: 0; border-right: 2px solid var(--ink); background: transparent; font: 700 14px/1.1 var(--ui); white-space: nowrap; transition: background-color .12s; }
.pace button:last-child { border-right: 0; }
.pace button:hover:not([aria-checked="true"]) { background: rgba(0,0,0,.06); }
.pace .e { font-size: 22px; line-height: 1; filter: grayscale(.7); opacity: .55; transition: filter .12s, opacity .12s; }
.pace [aria-checked="true"] .e { filter: none; opacity: 1; }
.pace [aria-checked="true"].hotter { background: rgba(255,96,0,.18); }
.pace [aria-checked="true"].steady { background: rgba(0,0,0,.1); }
.pace [aria-checked="true"].cooler { background: rgba(0,140,255,.16); }
@media (max-width: 860px) { .listen-grid { grid-template-columns: 1fr; gap: 44px; } }

/* special powers: what the ⚡ in the game's top bar opens */
.band-ink .line { color: var(--paper); opacity: .88; }
.powers .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: center; }
.powers .note { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--party); }
.power-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.power { background: var(--party); color: var(--ink); border: var(--edge); border-radius: 18px; padding: 24px 24px 22px; box-shadow: 6px 6px 0 var(--red);
         display: grid; gap: 10px; align-content: start; transform: rotate(-1.5deg); }
.power:nth-child(2) { transform: rotate(1.5deg); background: var(--date); }
.power .bolt { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-size: 22px; }
.power h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: .02em; }
.power p { font-weight: 600; font-size: 16px; }
.power .gate { justify-self: start; margin-top: 4px; font: 700 12.5px/1 var(--ui); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 10px; background: var(--paper); }
@media (max-width: 960px) { .powers .wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .power-cards { grid-template-columns: 1fr; gap: 20px; } }

/* the three numbers */
.numbers { background-color: var(--red); color: var(--paper); padding-block: clamp(64px, 10vh, 100px);
  background-image: radial-gradient(rgba(0,0,0,.09) 1.5px, transparent 1.7px); background-size: 24px 24px; }
.numbers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.numbers li { display: grid; gap: 6px; }
.numbers b { font: 400 clamp(56px, 7vw, 96px)/.9 var(--display); color: var(--paper); font-weight: 400; text-shadow: 4px 4px 0 var(--ink); }
.numbers span { font-size: 17px; font-weight: 600; }
@media (min-width: 761px) { .numbers ul { grid-template-columns: repeat(3, auto); justify-content: space-between; } }
@media (max-width: 760px) { .numbers ul { grid-template-columns: 1fr 1fr; gap: 36px 20px; } .numbers li:first-child { grid-column: 1 / -1; } }   /* "1 phone for the whole group" gets its own row */

/* price: two lines, two buttons */
/* heading left, plans right: the same split as It listens, so the row uses the full width */
.price-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { background: #fff; border: var(--edge); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--lift); }
.plan.plus { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--red); }
.plan h3 { font-size: 30px; letter-spacing: .02em; }
.amount { font: 400 50px/1 var(--display); }
.amount small { font: 500 16px var(--ui); opacity: .7; margin-left: 4px; }
.plan p.what { margin-bottom: 18px; }
.plan .btn { margin-top: auto; font-size: 20px; }
.plan.plus .btn { border-color: var(--paper); box-shadow: 4px 4px 0 var(--red); }
.fine { font-size: 13px; opacity: .7; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; gap: 20px; } .plan { padding: 24px; } .amount { font-size: 44px; } }

/* final */
/* No room kept for the Play pill at the very bottom: it steps aside once the final Play is on screen
   and stays down over the footer ([data-dock-avoid] on .foot), so the page can end right after the
   fine print. */
.final { padding-block: clamp(84px, 13vh, 140px) calc(36px + env(safe-area-inset-bottom, 0px)); }
.final .big { font: 400 clamp(84px, 16vw, 230px)/.85 var(--display); text-shadow: 6px 6px 0 var(--red); }
@media (min-width: 861px) { .final .big { white-space: nowrap; font-size: min(205px, 17.5vw); } }
.final .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; }
.final .row p { font-size: 20px; font-weight: 500; text-wrap: balance; }
.final .btn { font-size: 28px; padding: 18px 34px; border-color: var(--red); box-shadow: 0 6px 0 var(--red-dark); }
.final .btn:hover { box-shadow: 0 8px 0 var(--red-dark); } .final .btn:active { box-shadow: 0 2px 0 var(--red-dark); }
/* The terms line under the final Play wraps to the button's own width (width 0 + min-width 100%
   keeps it from widening the column). .final .row p would otherwise make it 20px. */
.final-cta { display: flex; flex-direction: column; gap: 12px; }
.final .row .terms-note { width: 0; min-width: 100%; margin: 0; font-size: 13px; text-align: center; }
/* the terms line under each plan's button, after its fine print, aligned with it */
:where(.site) .plan .terms-note { margin: 0; font-size: 11.5px; opacity: .72; text-align: left; text-wrap: pretty; }
/* The footer proper: brand, then four columns, then the fine print. */
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px;
        margin-top: 88px; padding-top: 52px; border-top: 2px solid rgba(250,246,242,.16); }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 30px/1 var(--display); letter-spacing: .02em; }
.foot-mark { width: 54px; height: 54px; flex: none; display: grid; place-items: center; }   /* the cup straight on the ink, no disc */
.foot-mark img { width: 48px; height: 48px; margin-top: -3px; }
.foot-brand > p { margin-top: 16px; max-width: 24ch; font-weight: 500; opacity: .82; }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(250,246,242,.35); transition: background-color .15s, border-color .15s, transform .15s var(--pop); }
.social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.foot-col { display: grid; align-content: start; justify-items: start; gap: 12px; }
.site .foot-col h3 { font: 700 12.5px/1 var(--ui); letter-spacing: .15em; text-transform: uppercase; color: var(--party); margin-bottom: 6px; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 500; text-decoration: none; opacity: .85; }
.foot-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-col a[aria-current="page"] { color: var(--party); opacity: 1; }
.foot-col .suit { color: var(--c); font-size: 14px; }
.legal { margin-top: 52px; padding-top: 22px; border-top: 2px solid rgba(250,246,242,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; opacity: .72; }
.legal a { text-decoration: none; } .legal a:hover { text-decoration: underline; }
@media (max-width: 960px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ======================================================================
   THE DOCK: Play, once the hero's own Play has scrolled away, until the final one comes up.
   Between the two, a Play button is always on screen. Under the pill, the terms line on an ink
   chip, so it reads on every ground the pill crosses.
   ====================================================================== */
.dock-bar {
  position: fixed; z-index: 60; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 7px; width: max-content; max-width: calc(100vw - 32px);
  transform: translate(-50%, 150%); opacity: 0; pointer-events: none;
  transition: transform .45s var(--pop), opacity .25s;
}
.dock-bar.show { transform: translate(-50%, 0); opacity: 1; }
.dock-bar.show > * { pointer-events: auto; }
:where(.site) .dock-bar .terms-note { margin: 0; padding: 4px 11px; border-radius: 12px; background: var(--ink); color: var(--paper);
  font-size: 11px; opacity: 1; text-align: center; }
.dock {
  display: flex; align-items: center; gap: 14px; height: 66px; padding: 2px 9px 0 28px;
  background: var(--red); color: var(--paper); border: 3px solid var(--ink); border-radius: 999px;
  font: 400 26px/1 var(--display); letter-spacing: .02em; box-shadow: var(--lift); white-space: nowrap;
}
.dock.on-red { background: var(--paper); color: var(--ink); }
.dock .go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--red); margin-top: -2px; }
.dock.on-red .go { background: var(--red); color: var(--paper); }
.dock .go svg { width: 16px; height: 16px; margin-left: 3px; }
html.playing .dock-bar { visibility: hidden; }
@media (max-width: 560px) {
  .dock-bar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  :where(.site) .dock-bar .terms-note { font-size: 10px; padding: 3px 9px; }
  .dock { height: 58px; font-size: 22px; padding-left: 24px; box-shadow: var(--lift-sm); }
  .dock .go { width: 40px; height: 40px; }
}




/* ======================================================================
   THE STAGE: the game. #app inside it is the real Blazor app, mounted once and never unmounted:
   closing the stage only hides it, so Play returns to the same card and turn. Everything inside
   is styled by the app's own CSS. The stage stands in for the body the app was written for
   (Sooplaa.css: a dark, full-height column with the paper sheet centred in it).
   ====================================================================== */
#stage { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; align-items: center;
         height: 100vh; height: 100dvh; background: var(--outer); color: var(--ink);
         padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
html.playing #stage { display: flex; }
/* On sooplaa.com the page says these, so the game does not say them again:
   - the legal row (Layout/AppFooter.razor, and the loading shell's copy): the page's footer
     carries the links;
   - the terms notice above Welcome's buttons (Pages/Welcome.razor .welcome-terms): it is under
     Start Game, which is where the visitor accepts it.
   The installed app and play.sooplaa.com have no page around the game: there both stay, because
   Paddle's review wants the links reachable without signing in, and starting a game there records
   the acceptance (EnsureConsentAsync) that the notice describes. */
html:not(.app-only) #stage .app-footer,
html:not(.app-only) #stage .welcome-terms { display: none; }
#stage > #app { flex: 1 1 auto; min-height: 0; }
/* Installed apps and play.sooplaa.com: no landing page, only the game, exactly as before. */
html.app-only .site { display: none !important; }
html.app-only body { background: var(--outer); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* the language menu in the header: the four landing pages */
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; }
.langs > summary::-webkit-details-marker { display: none; }
.langs nav { color: var(--ink); position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; display: grid; min-width: 150px; padding: 6px;
             background: var(--paper); border: var(--edge-ui); border-radius: 14px; box-shadow: var(--lift-sm); }
.langs a { padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: 15px; text-decoration: none; }
.langs a:hover { background: var(--paper-2); }
.langs a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* The game opening with the page (route.sooplaa.js adds "cold"): keep the landing page out of
   sight so it does not flash up first, and keep the stage hidden until the app's own stylesheets
   have arrived (site.sooplaa.js adds "app-styled"), so the loading shell never shows unstyled. */
html.cold body { background: var(--outer); }
html.cold .site { visibility: hidden; }
html.playing:not(.app-styled) #stage { visibility: hidden; }

/* "And more...": the powers the page does not name, drawn as a card still face down - the back
   every card in the game has, paper with red dots. */
.power.more { background-color: var(--paper);
  background-image: radial-gradient(rgba(215,32,24,.18) 2px, transparent 2.4px), radial-gradient(rgba(215,32,24,.18) 2px, transparent 2.4px);
  background-size: 22px 22px; background-position: 0 0, 11px 11px; }
.power.more .bolt { color: var(--paper); font: 400 24px/1 var(--display); padding-top: 3px; }

