/* chanceinfinite.com: one stylesheet for the home page, the invite landing (/i/<CODE>) and the 404 page.
   Every URL in here is absolute, because /i/<CODE> is served by a rewrite and a relative path would resolve under /i/.

   The poster identity, calmed: violet #A755F7 and amber #FE9F1F grounds with the poster sunburst, Sora 800 display
   type with the black die-cut edge, the app's sprites as stickers. The die-cut edge is used on display type, store
   badges, the QR sticker, poster frames, the live card, the winner tickets and the invite code ticket only.
   Contrast rule: reading text is near-black on violet and amber, or sits in a dark well.
   White body text is never set on violet (4.0:1) or amber (2.1:1). */

/* Sora = the poster display face, Hanken Grotesk = the app's own UI face: the app's variable fonts, latin subset. */
@font-face { font-family: 'Sora'; src: url('/fonts/sora-var.woff2') format('woff2-variations'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-var.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }

:root {
  --violet: #A755F7; --violet-ray: #B066FA; --violet-2: #9242E2;
  --amber: #FE9F1F; --amber-ray: #FFAD3A;
  --ink: #16101F;                 /* reading text on violet (5.6:1) and amber (9.6:1) */
  --edge: #000;                   /* the die-cut edge */
  --card: #17111F; --card-2: #0E0A16;
  --well: #1C1228; --well-2: #261938;
  --night: #120C1B; --foot: #0E0915;
  --text-d: #EFEAF6; --muted-d: #B9AECB; --violet-text: #CBA6F5;
  --pool: #3FD06A;
  --cream: #FFF6E8;
  --gut: 32px; --max: 1240px;
  --sora: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --ui: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }   /* the live script hides and shows parts with the hidden attribute */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }   /* the sticky bar never covers an anchor */
body { font-family: var(--ui); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--violet);
       -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: lining-nums; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.num { font-variant-numeric: lining-nums tabular-nums; }
:focus-visible { outline: 4px solid #fff; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { left: 12px; }

/* die-cut display type */
.dc { font-family: var(--sora); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.02;
      -webkit-text-stroke: 0.13em var(--edge); paint-order: stroke fill; text-shadow: 0.03em 0.06em 0 var(--edge); text-wrap: balance; }
.dc .l { display: block; }
@supports not (paint-order: stroke) {
  .dc { -webkit-text-stroke: 0; text-shadow: -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000, 0 4px 0 #000; }
}
.h2 { font-size: 60px; }
.lead { font-size: 19px; font-weight: 500; max-width: 560px; }
.eyebrow { font: 800 13px/1.2 var(--sora); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.cut { box-shadow: 0 0 0 4px var(--edge), 6px 8px 0 4px var(--edge); }

/* grounds with the poster sunburst */
.g-violet { background: var(--violet); background-image: repeating-conic-gradient(from 0deg at 80% 42%, var(--violet) 0deg 7.5deg, var(--violet-ray) 7.5deg 15deg); }
.g-amber { background: var(--amber); background-image: repeating-conic-gradient(from 0deg at 18% 60%, var(--amber) 0deg 7.5deg, var(--amber-ray) 7.5deg 15deg); }
.g-night { background: var(--night); color: var(--text-d); }
.band { padding: 96px 0; position: relative; }

/* ---------------------------------------------------------------- shared top bar
   Sticky at every width, so "Get the app" is always one tap away.
   Phone: one row, 58 px, brand + "Get the app" + a no-JS Menu. */
.bar { position: sticky; top: 0; z-index: 30; background: var(--violet); box-shadow: 0 3px 0 var(--edge); }
.bar .wrap { display: flex; align-items: center; gap: 26px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 21px/1 var(--sora); letter-spacing: -0.02em;
         color: #fff; -webkit-text-stroke: 5px var(--edge); paint-order: stroke fill; white-space: nowrap; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 0 0 3px var(--edge); }
.bar .desk { display: flex; gap: 24px; margin-left: auto; }
.bar .desk a { font-weight: 700; font-size: 15.5px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.bar .desk a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.getbtn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; background: #fff; color: #000; border-radius: 12px;
          font: 800 15px/1 var(--sora); text-decoration: none; white-space: nowrap;
          box-shadow: 0 0 0 3px var(--edge), 3px 4px 0 3px var(--edge); }
.getbtn:hover { transform: translate(-1px, -1px); }
.menu { display: none; }
.under-bar { padding-top: 0; }

/* ---------------------------------------------------------------- store badges + QR sticker */
.get { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 14px; border-radius: 12px; background: #000; color: #fff;
         text-decoration: none; box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--edge), 5px 6px 0 3px var(--edge); transition: transform .12s; }
.badge:hover { transform: translate(-1px, -2px); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.05; }
.badge small { font-size: 11.5px; font-weight: 600; }
.badge b { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.qr { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 9px 14px 9px 9px;
      box-shadow: 0 0 0 3px var(--edge), 5px 6px 0 3px var(--edge); }
.qr img { width: 78px; height: 78px; }
.qr p { font-size: 13.5px; line-height: 1.3; font-weight: 600; max-width: 110px; }
.qr p b { display: block; font-weight: 800; }
.fine { margin-top: 18px; font-size: 14px; font-weight: 600; max-width: 580px; }
.fine a { font-weight: 800; }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 28px; align-items: center; padding-top: 18px; padding-bottom: 44px; }
.hero h1 { font-size: 74px; margin: 16px 0 18px; }
.hero .lead { margin-bottom: 26px; }
.stage { position: relative; height: 580px; }
.stage .posters { position: absolute; inset: 0; }
.stage .poster { position: absolute; width: 238px; aspect-ratio: 640 / 1387; border-radius: 24px; overflow: hidden; background: var(--violet); }
.stage .poster img { width: 100%; height: 100%; object-fit: cover; }
.stage .p-back { left: 2%; top: 26px; transform: rotate(-8deg); }
.stage .p-front { right: 3%; top: 0; transform: rotate(6deg); width: 250px; }
.stage .spark { position: absolute; width: 24px; color: #fff; }
/* The card covers poster 1's frozen in-app prize and countdown, so the only figures a visitor reads are the card's.
   min-height keeps that cover in every state of the card, including the neutral one with no countdown. */
.stage .live { position: absolute; left: 7%; right: 9%; top: 170px; z-index: 3; min-height: 316px; }
/* Without a countdown (the neutral text, a closed contest, between contests) that min-height leaves room to spare:
   it is split above and below the headline instead of sitting in one empty band over the link. */
@media (min-width: 761px) { .stage .live:has(.cd[hidden]) .live-top { margin-bottom: auto; } }

/* the live prize card: pool, countdown, players, Watch it live. The HTML ships neutral text; /chance-live.js fills it. */
.live { display: flex; flex-direction: column; background: var(--card); color: var(--text-d); border-radius: 22px; padding: 20px 24px 18px;
        box-shadow: 0 0 0 4px var(--edge), 6px 8px 0 4px var(--edge), inset 0 0 0 2px rgba(203, 166, 245, .16); }
.live-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 800 13px/1 var(--sora); letter-spacing: .12em; text-transform: uppercase; color: var(--violet-text); }
.live-top .on { color: var(--pool); }
.live-top .off { color: var(--amber); }
.live-pool { font: 800 76px/1 var(--sora); color: var(--pool); letter-spacing: -.03em; margin: 14px 0 4px; }
.live-pool.word { font-size: 52px; line-height: 1.04; margin: 18px 0 10px; text-wrap: balance; }
.live-k { font: 600 14px/1.35 var(--ui); color: var(--muted-d); text-wrap: pretty; }
.cd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 14px; }
.cd div { background: var(--card-2); border-radius: 12px; padding: 10px 4px 9px; text-align: center; }
.cd b { display: block; font: 800 30px/1 var(--sora); color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.cd small { font: 600 12px/1 var(--ui); color: var(--muted-d); }
.live-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; font: 600 14.5px/1.4 var(--ui); margin-top: auto; padding-top: 4px; }
.live-foot b { color: #fff; }
.live-foot a { color: #fff; font-weight: 800; text-underline-offset: 3px; }

/* the record strip under the hero */
.strip { background: var(--night); color: var(--text-d); position: relative; z-index: 4; }
.strip .wrap { display: grid; grid-template-columns: auto auto 1fr auto; gap: 34px; align-items: center; min-height: 82px; }
.strip .tag { font: 800 13px/1 var(--sora); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.strip .big { font: 800 24px/1.1 var(--sora); letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.strip .item { font-size: 15.5px; color: #D9CCEB; }
.strip .item b { color: #fff; }
.strip a.more { font-weight: 800; color: var(--amber); text-decoration: none; white-space: nowrap; }
.strip a.more:hover { text-decoration: underline; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.step { background: var(--well); color: #EDE5F7; border-radius: 22px; padding: 28px 28px 30px; }
.step .n { width: 52px; height: 52px; border-radius: 50%; background: var(--amber); color: #000; display: flex; align-items: center; justify-content: center;
           font: 800 24px/1 var(--sora); box-shadow: 0 0 0 3px var(--edge), 3px 4px 0 3px var(--edge); margin-bottom: 20px; }
.step h3 { font: 800 24px/1.15 var(--sora); letter-spacing: -0.02em; color: #fff; margin-bottom: 8px; }
.step p { font-size: 16px; color: #CFC2E2; }
.also { margin-top: 26px; font-size: 15.5px; font-weight: 600; max-width: 820px; }

/* feature rows */
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cards { display: flex; gap: 28px; justify-content: center; }
.card { width: 250px; aspect-ratio: 640 / 1387; border-radius: 24px; overflow: hidden; flex: none; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card.t1 { transform: rotate(-4deg); margin-top: 44px; }
.card.t2 { transform: rotate(4deg); }
.note { margin-top: 22px; font-size: 15.5px; font-weight: 600; max-width: 520px; }
.note a { font-weight: 800; }

/* winners */
.tickets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 46px; }
.tk { background: var(--amber); color: #000; border-radius: 16px; padding: 16px 18px 18px; position: relative; box-shadow: 0 0 0 3px var(--edge), 5px 6px 0 3px var(--edge);
      -webkit-mask: radial-gradient(circle 10px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
              mask: radial-gradient(circle 10px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat; }
.tk .c { font: 800 12px/1.2 var(--sora); letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.tk .who { font: 800 20px/1.15 var(--sora); letter-spacing: -0.02em; margin: 14px 0 2px; overflow-wrap: anywhere; }
.tk .ent { font-size: 13.5px; font-weight: 600; }
.tk .amt { font: 800 38px/1 var(--sora); letter-spacing: -0.03em; padding-top: 12px; margin-top: 12px; border-top: 2px dashed rgba(0,0,0,.45); }
.tk .amt small { font: 700 13px/1 var(--ui); letter-spacing: 0; margin-left: 3px; }   /* the <small> starts with a space, so copied text reads "$100 draw Nov 22" */
.tk.now { background: #fff; }
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.proofs a { background: var(--well-2); border-radius: 16px; padding: 20px 24px; text-decoration: none; color: #EDE5F7; display: block; }
.proofs a b { display: block; font: 800 19px/1.2 var(--sora); color: #fff; margin-bottom: 6px; }
.proofs a span { font-size: 15px; color: var(--muted-d); }
.proofs a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.sub-d { font-size: 19px; color: #CFC2E2; max-width: 640px; margin-top: 18px; }

/* closer */
.closer-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.legalbox { margin-top: 30px; background: var(--cream); border-radius: 16px; padding: 18px 22px; font-size: 14.5px; line-height: 1.55; max-width: 760px;
            box-shadow: 0 0 0 3px var(--edge), 5px 6px 0 3px var(--edge); }
.legalbox b { font-weight: 800; }
.legalbox a { font-weight: 800; }
.stickers { position: relative; height: 400px; }
.stickers img { position: absolute; filter: drop-shadow(5px 7px 0 rgba(0,0,0,.9)); }

/* ---------------------------------------------------------------- invite page */
.inv { position: relative; overflow: hidden; }
.inv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; padding-top: 34px; padding-bottom: 84px; }
.inv h1 { font-size: 66px; margin: 14px 0 16px; }
.inv .lead { margin-bottom: 26px; }
.codetk { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 520px;
          background: var(--amber); border-radius: 20px; padding: 18px 20px 18px 26px; box-shadow: 0 0 0 4px var(--edge), 6px 8px 0 4px var(--edge);
          flex-wrap: wrap; row-gap: 12px; }   /* a code of wide letters (MMMWWW) drops the button below rather than overflow */
.codetk::before, .codetk::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--violet); box-shadow: inset 0 0 0 4px var(--edge); }
.codetk::before { left: -13px; clip-path: inset(0 0 0 50%); }
.codetk::after { right: -13px; clip-path: inset(0 50% 0 0); }
.codetk .lbl { font: 800 12px/1 var(--sora); letter-spacing: .14em; text-transform: uppercase; color: #2A1600; }
.codetk .code { font: 800 54px/1 var(--sora); letter-spacing: .08em; color: #fff; -webkit-text-stroke: 9px var(--edge); paint-order: stroke fill; margin-top: 10px; white-space: nowrap; }
.copy { appearance: none; cursor: pointer; flex: none; background: #fff; color: #000; border: 0; border-radius: 12px; font: 800 15px/1 var(--sora); padding: 14px 16px;
        box-shadow: 0 0 0 3px var(--edge), 3px 4px 0 3px var(--edge); }
.copy[data-done="1"] { background: #DFF8E7; }
.copied { min-height: 20px; margin-top: 12px; font-size: 14px; font-weight: 700; }
.inv .get { margin-top: 22px; }
.inv .badge.alt { background: #fff; color: #000; box-shadow: inset 0 0 0 2px #000, 0 0 0 3px var(--edge), 5px 6px 0 3px var(--edge); }
.side { display: grid; gap: 22px; }
.panel { background: var(--card); color: var(--text-d); border-radius: 22px; padding: 24px 26px; box-shadow: 0 0 0 4px var(--edge), 6px 8px 0 4px var(--edge); }
.panel h2 { font: 800 21px/1.2 var(--sora); color: #fff; letter-spacing: -0.01em; margin-bottom: 14px; }
.isteps { list-style: none; display: grid; gap: 12px; }
.isteps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 16px; color: #DCD2EA; }
.isteps li b { color: #fff; }
.isteps .n { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #000; display: flex; align-items: center; justify-content: center; font: 800 16px/1 var(--sora); }
.gets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gets div { background: var(--card-2); border-radius: 14px; padding: 14px 16px; }
.gets b { display: block; font: 800 12px/1.2 var(--sora); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.gets p { font-size: 15px; color: #DCD2EA; }
.panel .small { margin-top: 12px; font-size: 14px; color: var(--muted-d); }
.nocode .codetk, .nocode .copied, .nocode .copyrow { display: none; }

/* ---------------------------------------------------------------- 404 */
.lost { position: relative; overflow: hidden; }
.lost-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 110px; min-height: 640px; }
.lost h1 { font-size: 88px; margin: 14px 0 22px; }
.lost p.lead { max-width: 520px; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 20px; background: #fff; color: #000; border-radius: 14px; text-decoration: none;
       font: 800 16px/1 var(--sora); box-shadow: 0 0 0 3px var(--edge), 4px 5px 0 3px var(--edge); }
.btn.dark { background: var(--card); color: #fff; }
.btn:hover { transform: translate(-1px, -2px); }
.lost .stickers { height: 460px; }
.lost-live { margin-top: 34px; font-size: 15.5px; font-weight: 600; }
.lost-live a { font-weight: 800; white-space: nowrap; }

/* ---------------------------------------------------------------- shared footer */
.foot { background: var(--foot); color: var(--muted-d); padding: 64px 0 40px; font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot h4 { font: 800 12.5px/1 var(--sora); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { color: #E6DCF2; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .fb p { max-width: 460px; margin-top: 14px; font-size: 14.5px; }
.foot .social { display: flex; gap: 10px; margin-top: 18px; }
.foot .social a { width: 38px; height: 38px; border-radius: 10px; background: #1E1529; display: grid; place-items: center; }
.foot .social svg { width: 18px; height: 18px; fill: #E6DCF2; }
.foot .fl { margin-top: 44px; padding-top: 22px; border-top: 1px solid #2A1E3A; font-size: 13px; color: #9C8FB2; }
.foot .fl a { color: #E6DCF2; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1100px) {
  :root { --gut: 24px; }
  .hero-grid, .row2, .closer-grid, .inv-grid, .lost-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 580px; max-width: 560px; }
  .tickets { grid-template-columns: repeat(3, 1fr); }
  .strip .wrap { grid-template-columns: 1fr auto; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
  .lost .stickers { display: none; }
  .lost-grid { min-height: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  /* the strip reads in order: the tag and the totals on the first row, the latest winner and the link on the second */
  .strip .wrap { grid-template-columns: auto 1fr auto; grid-template-areas: "tag big big" "item item more"; align-items: baseline; }
  .strip .tag { grid-area: tag; }
  .strip .big { grid-area: big; }
  .strip .item { grid-area: item; }
  .strip a.more { grid-area: more; }
  .stage .p-back { left: 6%; }   /* keeps the tilted back poster and its edge inside the page at 761 to 1100 px */
}
@media (max-width: 900px) {
  .bar .wrap { height: 58px; gap: 10px; }
  .bar .desk { display: none; }
  .brand { font-size: 18px; gap: 10px; -webkit-text-stroke: 4px var(--edge); }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .getbtn { margin-left: auto; height: 38px; padding: 0 13px; font-size: 14px; border-radius: 10px; box-shadow: 0 0 0 3px var(--edge), 2px 3px 0 3px var(--edge); }
  main [id] { scroll-margin-top: 70px; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary svg { width: 20px; height: 20px; }
  .menu[open] summary { background: #000; }
  .menu nav { position: absolute; left: 0; right: 0; top: 100%; margin-top: 3px; background: var(--ink); padding: 8px var(--gut) 16px; display: grid; box-shadow: 0 6px 0 rgba(0,0,0,.35); }
  .menu nav a { color: #fff; text-decoration: none; font: 700 17px/1 var(--ui); padding: 14px 0; border-bottom: 1px solid #2E2340; }
  .menu nav a:last-child { border-bottom: 0; }
}
/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .band { padding: 60px 0; }
  .h2 { font-size: 38px; }
  .lead { font-size: 16.5px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .12em; }

  .hero-grid { padding-top: 16px; padding-bottom: 0; gap: 0; }
  .hero h1 { font-size: 44px; margin: 10px 0 12px; }
  .hero .lead { margin-bottom: 18px; }
  .badges { gap: 10px; flex-wrap: nowrap; }
  .badge { height: 50px; padding: 0 12px 0 10px; gap: 8px; box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--edge), 3px 4px 0 3px var(--edge); }
  .badge svg { width: 22px; height: 22px; }
  .badge small { font-size: 10.5px; }
  .badge b { font-size: 17px; }
  .qr { display: none; }
  .fine { font-size: 13px; margin-top: 14px; }

  .stage { height: auto; max-width: none; margin-top: 20px; display: grid; }
  .stage .posters { position: relative; height: 104px; grid-row: 1; }
  .stage .live { position: relative; left: auto; right: auto; top: auto; bottom: auto; grid-row: 2; padding: 18px 18px 16px; min-height: 0; }
  .live-pool.word { font-size: 40px; margin: 14px 0 8px; }
  .stage .poster { width: 172px; border-radius: 18px; }
  .stage .p-back { left: 4%; top: 22px; }
  .stage .p-front { right: 4%; top: 0; width: 180px; }
  .stage .spark { display: none; }
  .live-pool { font-size: 60px; margin-top: 12px; }
  .cd b { font-size: 27px; }
  .live-foot { font-size: 14px; }

  .strip .wrap { grid-template-columns: 1fr; gap: 6px; padding-top: 18px; padding-bottom: 20px; }
  .strip .big { font-size: 21px; white-space: normal; }
  .strip .item { font-size: 14.5px; }

  .steps { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .step { padding: 20px 18px; display: grid; grid-template-columns: 48px 1fr; gap: 2px 14px; border-radius: 18px; }
  .step .n { width: 46px; height: 46px; font-size: 21px; margin: 0; grid-row: span 2; }
  .step h3 { font-size: 20px; }
  .step p { font-size: 15px; }
  .also { font-size: 14.5px; }

  .row2 { gap: 30px; }
  .cards { gap: 16px; justify-content: center; }
  .card { width: 44%; border-radius: 18px; }
  .card.t1 { margin-top: 28px; }
  .row2.invite .cards { order: 2; }
  .row2.invite .card { width: 56%; }

  .tickets { grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 30px; }
  .tk { padding: 13px 13px 15px; }
  .tk.now { grid-column: 1 / -1; }
  .tk .c { font-size: 10.5px; letter-spacing: .08em; }
  .tk .who { font-size: 16px; margin-top: 10px; }
  .tk .ent { font-size: 12.5px; }
  .tk .amt { font-size: 30px; }
  .proofs { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .proofs a { padding: 16px 18px; }
  .sub-d { font-size: 16.5px; }

  .closer-grid .stickers { display: none; }
  .legalbox { font-size: 14px; padding: 16px 18px; box-shadow: 0 0 0 3px var(--edge), 3px 4px 0 3px var(--edge); }

  .inv-grid { padding-top: 18px; padding-bottom: 56px; gap: 36px; }
  .inv h1 { font-size: 38px; margin: 10px 0 10px; }
  .inv .lead { margin-bottom: 18px; font-size: 16px; }
  .codetk { padding: 14px 14px 14px 20px; border-radius: 16px; box-shadow: 0 0 0 4px var(--edge), 4px 6px 0 4px var(--edge); }
  .codetk .code { font-size: 38px; -webkit-text-stroke: 7px var(--edge); margin-top: 8px; letter-spacing: .06em; }
  .copy { font-size: 14px; padding: 12px 13px; }
  .copied { margin-top: 8px; min-height: 0; }
  .inv .get { margin-top: 16px; }
  .inv .badges { flex-wrap: wrap; }
  .inv .badge { flex: 1 1 auto; justify-content: center; }
  .panel { padding: 20px 18px; border-radius: 18px; box-shadow: 0 0 0 4px var(--edge), 4px 6px 0 4px var(--edge); }
  .gets { grid-template-columns: 1fr; }

  .lost-grid { padding-top: 34px; padding-bottom: 64px; }
  .lost h1 { font-size: 50px; }
  .lost .stickers { display: block; height: 150px; order: -1; margin-bottom: -6px; }
  .lost .stickers img { display: none; }
  .lost .stickers img:first-child { display: block; width: 220px !important; left: 0 !important; top: 8px !important; }
  .btn { height: 48px; font-size: 15px; padding: 0 16px; }
  .btns { gap: 14px; }

  .fgrid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .fgrid .fb { grid-column: 1 / -1; }
  .foot h4 { font-size: 11.5px; letter-spacing: .07em; }
  .foot { padding: 48px 0 32px; }
}
@media (max-width: 400px) {
  .bar .wrap { gap: 8px; }
  .brand { font-size: 16.5px; gap: 8px; -webkit-text-stroke: 3.5px var(--edge); }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .getbtn { padding: 0 11px; font-size: 13.5px; }
  .menu summary { width: 38px; }
}
@media (max-width: 380px) {
  /* winner tickets, two per row: the date sits under the contest number on every ticket instead of splitting it,
     and a long name fits on one line */
  .tk { padding: 12px 11px 14px; }
  .tk:not(.now) .c { flex-direction: column; gap: 2px; }
  .tk .c span { white-space: nowrap; }
  .tk .who { font-size: 14px; letter-spacing: -0.03em; }
}
@media (max-width: 359px) {
  .bar .brand img { display: none; }   /* below 360 px the full name and "Get the app" only fit without the icon */
}
@media (max-width: 370px) {
  .brand { font-size: 15.5px; }
  /* the invite code ticket: code and Copy button stay on one row down to 320 px */
  .codetk { gap: 10px; padding: 12px 12px 12px 18px; }
  .codetk .code { font-size: 31px; -webkit-text-stroke: 6px var(--edge); letter-spacing: .04em; }
  .copy { font-size: 13px; padding: 11px 10px; }
  .badge { padding: 0 10px 0 8px; }
  .badge b { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge, .btn, .getbtn { transition: none; }
  .badge:hover, .btn:hover, .getbtn:hover { transform: none; }
}
