/* Clover Case site. Deep felt green, warm cream, a gold hairline; type is Bricolage Grotesque, set bold. The Noodle Pop page swaps in its own font (Fredoka) in noodle-pop/np.css. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-stretch: 100%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin.woff2") format("woff2"); font-weight: 400 800; font-stretch: 100%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --night: #08110c; --felt: #0d1c13; --felt2: #12281b; --cream: #f4eee1; --paper: #ebe3d1; --ink: #14221a; --gold: #d6b25c; --gold2: #f1d998; --mute-d: #93a698; --mute-l: #5c6a5f; --line-d: rgba(214,178,92,.28); --line-l: rgba(20,34,26,.16);
  --serif: "Bricolage Grotesque", system-ui, sans-serif; --sans: "Bricolage Grotesque", system-ui, sans-serif; --ease: cubic-bezier(.19,.8,.22,1); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; font-family: var(--sans); color: var(--cream); background: var(--night); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; } a { color: inherit; }
::selection { background: var(--gold); color: var(--night); }

/* shared pieces */
.wrap { width: min(100% - 2 * clamp(22px, 6vw, 96px), 1360px); margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(18px, 3vh, 34px); font: 500 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.center .eyebrow { justify-content: center; } .center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.on-cream .eyebrow { color: #8a6a1c; }
.d { margin: 0; font: 400 clamp(46px, 7.2vw, 128px)/.96 var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.d em { font-style: italic; color: var(--gold2); letter-spacing: -.01em; } .on-cream .d em { color: #2f7a43; }
.d.m { font-size: clamp(38px, 5.2vw, 88px); } .d.s { font-size: clamp(30px, 3.4vw, 54px); line-height: 1.02; }
.p { margin: clamp(18px, 2.6vh, 30px) 0 0; max-width: 31em; font: 400 clamp(16px, 1.25vw, 20px)/1.55 var(--sans); letter-spacing: -.006em; color: var(--mute-d); text-wrap: pretty; }
.on-cream { background: var(--cream); color: var(--ink); } .on-cream .p { color: var(--mute-l); }
.btn { display: inline-flex; align-items: center; gap: .7em; padding: 1.05em 1.7em; border-radius: 99px; font: 600 14px/1 var(--sans); letter-spacing: .02em; text-decoration: none; background: var(--cream); color: var(--night);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 18px 40px -18px rgba(214,178,92,.65); transition: transform .5s var(--ease), background .3s, box-shadow .5s var(--ease); }
.btn:hover { transform: translateY(-2px); background: var(--gold2); box-shadow: 0 26px 50px -18px rgba(214,178,92,.9); }
.btn svg { width: 1.15em; height: 1.15em; }
.on-cream .btn { background: var(--ink); color: var(--cream); box-shadow: 0 18px 40px -20px rgba(20,34,26,.7); } .on-cream .btn:hover { background: #1f3a2a; }
.text-link { font: 500 14px/1 var(--sans); letter-spacing: .02em; text-decoration: none; padding-bottom: 5px; border-bottom: 1px solid var(--line-d); transition: border-color .3s, color .3s; }
.text-link:hover { border-color: var(--gold); color: var(--gold2); } .on-cream .text-link { border-color: var(--line-l); } .on-cream .text-link:hover { color: #2f7a43; border-color: #2f7a43; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* header */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .5s, backdrop-filter .5s, border-color .5s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(8,17,12,.72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-color: rgba(214,178,92,.16); }
.nav-in { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; font: 400 24px/1 var(--serif); letter-spacing: -.01em; }
.brand svg { width: 22px; height: 22px; color: var(--gold); }
.nav a.l { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #c9d3c9; transition: color .3s; } .nav a.l:hover { color: var(--gold2); }
.nav .get { padding: .85em 1.35em; border-radius: 99px; border: 1px solid var(--line-d); font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--gold2); transition: background .3s, color .3s; }
.nav .get:hover { background: var(--gold2); color: var(--night); }

/* 1. hero */
.hero { position: relative; background: var(--night); --p: 1; --t1: 0; --t2: 1; --glow: .25; --open: 1; --hint: 0; --base: 1; --lid: 0deg; --lidA: 1; --closed: 0; --seam: 0; --lift: 0; }
.hero.live { height: 300vh; }
.stage { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  background: radial-gradient(90% 70% at 68% 56%, #1a3a27 0%, #10241a 36%, var(--night) 78%); }
.hero.live .stage { position: sticky; top: 0; }
.bloom { position: absolute; left: 68%; top: 58%; width: 78vh; height: 78vh; transform: translate(-50%, -50%) scale(calc(.7 + var(--glow) * .5)); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,214,120,calc(var(--glow) * .62)), rgba(214,160,60,calc(var(--glow) * .22)) 45%, transparent 72%); mix-blend-mode: screen; }
.product { position: absolute; right: clamp(-40px, 2vw, 60px); top: 50%; width: min(70vw, 128vh); aspect-ratio: 1920 / 1536; transform: translateY(-50%); right: -9vw; }
.product canvas, .product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product .shut { opacity: calc(1 - var(--open)); transform: scale(calc(1 - var(--open) * .04)); }
.product .wide { opacity: var(--open); transform: scale(calc(.94 + var(--open) * .06)); }
.product.seq img { display: none; }
.product::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 6%; height: 16%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); z-index: -1; filter: blur(12px); }
.words { position: absolute; z-index: 3; left: clamp(22px, 6vw, 96px); top: 50%; width: min(40vw, 760px); }
.words .d { font-size: clamp(46px, 6.3vw, 116px); }
.words { transform: translateY(-50%); } .heads { display: grid; } .heads > div { grid-area: 1 / 1; }
.ask { align-self: end; opacity: var(--t1); transform: translateY(calc((1 - var(--t1)) * -40px)); }
.yes { opacity: var(--t2); transform: translateY(calc((1 - var(--t2)) * 40px)); }
.hero.done .yes, .hero:not(.live) .yes { pointer-events: auto; }
.yes .row { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: clamp(26px, 4.4vh, 46px); }
.rail { position: absolute; z-index: 3; left: clamp(22px, 6vw, 96px); right: clamp(22px, 6vw, 96px); bottom: 34px; display: flex; align-items: center; gap: 18px; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #7f9385; }
.rail i { flex: 1; height: 1px; background: rgba(255,255,255,.12); position: relative; } .rail i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.rail .hint { opacity: var(--hint); } .rail .legal { opacity: calc(1 - var(--hint)); letter-spacing: .04em; text-transform: none; font-size: 11px; max-width: 46ch; line-height: 1.4; text-align: right; }

/* the hero product: the game's own painted case, in the game's own layout (lid above, base below, hands at the bottom) */
.product.game { right: auto; left: 72%; top: auto; bottom: -6vh; width: auto; height: 98vh; aspect-ratio: 1320 / 2346; transform-origin: 50% 100%; transform: translateX(-50%) translateY(calc(var(--lift) * -1%)) scale(calc(1.56 - var(--base) * .56)); perspective: 1900px; perspective-origin: 50% 47%; }
.hero .rail { right: 52vw; } .hero .rail .legal { text-align: left; }
.product.game::after { display: none; }
.product.game img { object-fit: fill; }
.g-base { opacity: var(--base); } .g-closed { opacity: var(--closed); } .g-seam { opacity: var(--seam); mix-blend-mode: screen; }
.g-lid { opacity: var(--lidA); transform-origin: 50% 47.23%; transform: rotateX(var(--lid)); backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; }
.hero .bloom { left: 72%; top: 66%; }
.shot { width: auto; max-width: 100%; max-height: 88vh; margin: 0 auto; filter: drop-shadow(0 50px 50px rgba(0,0,0,.45)); } .on-cream .shot { filter: drop-shadow(0 40px 40px rgba(20,34,26,.28)); }
.trio.four { grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 7vh, 80px); }

/* sections */
.sec { position: relative; padding: clamp(84px, 12vh, 150px) 0; overflow: hidden; }
.center { text-align: center; } .center .p { margin-left: auto; margin-right: auto; }
.dark { background: var(--felt); } .darker { background: var(--night); }
.reveal { opacity: 0; transform: translateY(46px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.on, .no-js .reveal { opacity: 1; transform: none; }
.float { will-change: transform; transform: translate3d(0, var(--fy, 0px), 0); }

.creed { font: 400 clamp(30px, 4.3vw, 72px)/1.08 var(--serif); letter-spacing: -.018em; max-width: 19em; margin: 0 auto; text-wrap: balance; }
.creed em { font-style: italic; color: #2f7a43; }

.pieces { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(50px, 9vh, 110px); border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l); }
.pieces div { aspect-ratio: 1; display: grid; place-items: center; border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); position: relative; transition: background .5s; }
.pieces div:hover { background: rgba(255,255,255,.55); } .pieces img { width: 62%; max-height: 62%; object-fit: contain; transition: transform .7s var(--ease); filter: drop-shadow(0 14px 14px rgba(20,34,26,.2)); } .pieces div:hover img { transform: translateY(-8px) scale(1.06); }
.pieces span { position: absolute; left: 12px; top: 11px; font: 500 10px/1 var(--sans); letter-spacing: .16em; color: #9a917d; }

.duo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 90px); align-items: center; } .duo.flip > :first-child { order: 2; }
.big-n { font: 400 clamp(150px, 25vw, 430px)/.8 var(--serif); letter-spacing: -.05em; margin: 0 0 0 -.04em; background: linear-gradient(170deg, #fbeab8 8%, var(--gold) 46%, #8d6a22 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 10vh, 120px); border-top: 1px solid var(--line-d); }
.facts div { padding: 30px 26px 0 0; } .facts b { display: block; font: 400 clamp(40px, 4.4vw, 68px)/1 var(--serif); color: var(--gold2); } .facts span { display: block; margin-top: 10px; font: 500 11.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute-d); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 54px); margin-top: clamp(50px, 9vh, 110px); align-items: end; }
.trio figure { margin: 0; } .trio img { width: 100%; filter: drop-shadow(0 40px 40px rgba(20,34,26,.22)); transition: transform .9s var(--ease); } .trio figure:hover img { transform: translateY(-12px); }
.dark .trio img, .darker .trio img { filter: drop-shadow(0 40px 50px rgba(0,0,0,.5)); }
.trio figcaption { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--line-l); display: flex; justify-content: space-between; align-items: baseline; text-align: left; font: 400 clamp(24px, 2.2vw, 34px)/1 var(--serif); }
.dark .trio figcaption, .darker .trio figcaption { border-color: var(--line-d); } .trio figcaption small { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute-l); } .dark .trio small, .darker .trio small { color: var(--mute-d); }

.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 70px); max-width: 1040px; margin: clamp(50px, 9vh, 110px) auto 0; }
.phone { padding: 9px; border-radius: 13.5% / 6.4%; background: linear-gradient(145deg, #3a4a3f, #101a14 40%, #2a372e); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 80px -30px rgba(0,0,0,.8); }
.phone img { width: 100%; border-radius: 11.5% / 5.4%; } .phones figure { margin: 0; } .phones figure:nth-child(2) { margin-top: 60px; }
.phones figcaption { margin-top: 22px; font: 500 11.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute-d); text-align: center; }

.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(30px, 6vw, 100px); margin-top: clamp(40px, 7vh, 80px); }
.qa div { border-top: 1px solid var(--line-l); padding: 30px 0 34px; } .qa h3 { margin: 0 0 12px; font: 400 clamp(24px, 2.1vw, 32px)/1.1 var(--serif); letter-spacing: -.01em; } .qa p { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--mute-l); max-width: 34em; }

.sister { display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); padding: clamp(34px, 5vw, 64px); border: 1px solid var(--line-d); border-radius: 28px; background: linear-gradient(120deg, rgba(255,255,255,.04), transparent 60%); }
.sister img { width: clamp(96px, 11vw, 150px); border-radius: 23%; flex: none; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); } .sister .p { margin-top: 12px; }
.sister .text-link { margin-left: auto; flex: none; }

.finale { text-align: center; padding-bottom: clamp(60px, 9vh, 110px); background: radial-gradient(70% 60% at 50% 58%, #183624 0%, var(--felt) 45%, var(--night) 85%); }
.finale img { width: min(74vw, 880px); margin: clamp(10px, 3vh, 40px) auto 0; filter: drop-shadow(0 60px 60px rgba(0,0,0,.55)); }
.finale .row { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: clamp(26px, 4vh, 44px); flex-wrap: wrap; }
.foot { background: var(--night); color: #7f9385; font: 400 12.5px/1.6 var(--sans); padding: 44px 0 54px; border-top: 1px solid rgba(214,178,92,.14); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 0 0 22px; } .foot a { text-decoration: none; color: #b9c6bb; } .foot a:hover { color: var(--gold2); } .foot p { margin: 0 0 8px; max-width: 86ch; }

@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .nav a.l { display: none; } .nav-in { height: 62px; }
  .stage { background: radial-gradient(110% 60% at 50% 68%, #1a3a27 0%, #10241a 40%, var(--night) 80%); }
  .product { right: auto; left: 50%; top: auto; bottom: 5vh; width: min(132vw, 70vh); transform: translateX(-50%); } .bloom { left: 50%; top: 68%; width: 100vw; height: 100vw; }
  .words { top: 12vh; transform: none; width: auto; right: clamp(22px, 6vw, 96px); text-align: center; } .ask { transform: translateY(calc((1 - var(--t1)) * -30px)); } .yes { transform: translateY(calc((1 - var(--t2)) * 30px)); }
  .product.game { left: 50%; bottom: -5vh; height: 66vh; width: auto; } .hero .rail { display: none; } .hero .bloom { left: 50%; top: 70%; } .trio.four { grid-template-columns: 1fr 1fr; gap: 30px 18px; } .shot { max-height: 70vh; }
  .words .eyebrow { justify-content: center; } .yes .row { justify-content: center; gap: 18px 24px; margin-top: 22px; } .yes .p { display: none; }
  .rail .legal { display: none; } .hero .rail { right: clamp(22px, 6vw, 96px); }
  .pieces { grid-template-columns: repeat(3, 1fr); } .duo, .duo.flip { grid-template-columns: 1fr; } .duo.flip > :first-child { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; } .trio { grid-template-columns: 1fr; gap: 60px; } .phones { grid-template-columns: 1fr; max-width: 270px; } .phones figure:nth-child(2) { margin-top: 0; }
  .qa { grid-template-columns: 1fr; } .sister { flex-direction: column; text-align: center; } .sister .text-link { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float { transform: none; } }
/* the game art ends at the wrists: fade the cut instead of showing a hard edge */


/* ---- Clover Case type: one bold grotesque. Headings at 800, running text at 500; emphasis is colour, not italic. ---- */
.cc { font-weight: 500; font-optical-sizing: auto; }
.cc .d { font-weight: 800; font-size: clamp(40px, 5.6vw, 96px); line-height: 1.02; letter-spacing: -.03em; text-shadow: 0 .055em 0 rgba(0,0,0,.4); } .cc.cc .on-cream .d { text-shadow: none; }
.cc .d em, .cc .creed em { font-style: normal; letter-spacing: inherit; }
.cc .d.m { font-size: clamp(32px, 4.2vw, 70px); } .cc .d.s { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.18; }
.cc .words .d { font-size: clamp(44px, 6vw, 108px); line-height: 1; }
.cc .creed { font-weight: 700; font-size: clamp(24px, 3vw, 50px); line-height: 1.2; letter-spacing: -.025em; max-width: 22em; }
.cc .big-n { font-weight: 800; font-size: clamp(120px, 19vw, 330px); line-height: .9; letter-spacing: -.05em; margin-left: 0; }
.cc .eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .14em; line-height: 1.3; }
.cc .p { font-weight: 500; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; letter-spacing: -.005em; max-width: 34em; }
.cc .btn { font-size: 15px; font-weight: 700; letter-spacing: 0; padding: 1.05em 1.6em; border-radius: 12px; } .cc .text-link { font-size: 15px; font-weight: 700; letter-spacing: 0; padding-bottom: 6px; }
.cc .brand { font-size: 21px; font-weight: 800; letter-spacing: -.02em; } .cc .nav a.l { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; } .cc .nav .get { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; border-radius: 10px; padding: .95em 1.3em; }
.cc .rail { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; } .cc .rail .legal { font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.45; }
.cc .facts b { font-weight: 800; font-size: clamp(34px, 3.6vw, 56px); letter-spacing: -.03em; } .cc .facts span { font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; }
.cc .trio figcaption { font-weight: 800; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -.02em; } .cc .trio figcaption small { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; } .cc .phones figcaption { font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.cc .qa h3 { font-weight: 800; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px; } .cc .qa p { font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.6; max-width: 34em; }
.cc .foot { font-size: 13.5px; line-height: 1.7; }
@media (max-width: 899px), (max-aspect-ratio: 1/1) { .cc .words .d { font-size: clamp(34px, 10vw, 50px); } .cc .d { font-size: clamp(32px, 9vw, 46px); } .cc .d.m { font-size: clamp(27px, 7.4vw, 38px); } .cc .creed { font-size: clamp(21px, 5.6vw, 28px); } .cc .big-n { font-size: 30vw; } }

/* single pieces, wall of boards, ball close-ups: the game's pixels stay hard-edged */
.cc .pieces img { image-rendering: pixelated; width: auto; max-width: 70%; max-height: 54%; filter: drop-shadow(0 10px 0 rgba(20,34,26,.12)); }
.cc .pieces span { font-size: 11px; font-weight: 700; }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 16px); }
.wall img { width: 100%; border-radius: 10px; box-shadow: 0 0 0 2px #3f9149, 0 0 0 5px #17361c, 0 18px 30px -10px rgba(0,0,0,.6); }
.trio img.tile { border-radius: 14px; image-rendering: pixelated; box-shadow: 0 0 0 2px #3f9149, 0 0 0 6px #17361c, 0 30px 50px -20px rgba(0,0,0,.7); filter: none; margin-bottom: 22px; }
.finale { padding-bottom: 0; } .finale img { margin-bottom: 0; filter: none; }
.sec.on-cream[style*="padding-top:0"] { padding-top: 0; }
@media (max-width: 899px), (max-aspect-ratio: 1/1) { .wall { grid-template-columns: 1fr 1fr; } .cc .p { font-size: 16px; } .cc .qa p { font-size: 15.5px; } }

/* ---- text pages (FAQ, How to play) ---- */
.page-top { position: relative; padding: clamp(140px, 22vh, 230px) 0 clamp(60px, 9vh, 110px); background: radial-gradient(90% 120% at 80% 100%, #1a3a27 0%, #10241a 40%, var(--night) 80%); }
.page-top .d { max-width: 22em; } .page-top .p { color: #c9d6cb; max-width: 40em; } .page-top .p strong { color: var(--gold2); font-weight: 700; }
.article { padding-top: clamp(60px, 9vh, 110px); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 380px); gap: clamp(40px, 6vw, 110px); align-items: start; }
.prose h2 { margin: 2.6em 0 0; padding-top: 1.5em; border-top: 1px solid var(--line-l); font: 800 clamp(23px, 2.1vw, 32px)/1.15 var(--serif); letter-spacing: -.025em; } .prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 2em 0 0; font: 800 clamp(18px, 1.45vw, 22px)/1.3 var(--serif); letter-spacing: -.015em; color: #2f7a43; }
.prose p, .prose li, .prose td, .prose th { font: 500 clamp(16px, 1.2vw, 18px)/1.65 var(--sans); letter-spacing: -.003em; color: #3c4a40; }
.prose p { margin: 1.1em 0 0; max-width: 46em; } .prose ul { margin: 1.1em 0 0; padding: 0; list-style: none; max-width: 46em; } .prose li { padding-left: 1.8em; position: relative; margin-top: .7em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7em; height: .7em; border-radius: 50%; background: #2fb24c; box-shadow: inset -.16em -.16em 0 rgba(0,0,0,.22); }
.prose strong { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 62%, rgba(214,178,92,.45) 0); }
.prose a { color: #2f7a43; text-decoration: none; border-bottom: 2px solid rgba(47,122,67,.35); } .prose a:hover { border-color: #2f7a43; }
.prose table { width: 100%; margin-top: 1.6em; border-collapse: collapse; } .prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px 12px 0; border-bottom: 1px solid var(--line-l); line-height: 1.5; } .prose th { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.aside { position: sticky; top: 100px; text-align: center; } .aside img { width: 100%; filter: drop-shadow(0 30px 30px rgba(20,34,26,.25)); }
.aside-in { border-top: 1px solid var(--line-l); padding-top: 22px; } .aside h2 { margin: 0; font: 800 20px/1.25 var(--serif); letter-spacing: -.02em; } .aside p { margin: 8px 0 18px; font: 500 14.5px/1.5 var(--sans); color: var(--mute-l); }
/* keyboard focus */
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold2); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 899px), (max-aspect-ratio: 1/1) { .cols { grid-template-columns: 1fr; } .aside { position: static; max-width: 300px; margin: 0 auto; } .prose table { display: block; overflow-x: auto; } .prose th, .prose td { min-width: 9em; } }

/* ---- the one job of the page: the App Store button, on screen from the first second, with a code to scan from a computer ---- */
.cta { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); flex-wrap: wrap; margin-top: clamp(24px, 4vh, 42px); }
.cc .btn.big { font-size: clamp(16px, 1.25vw, 19px); font-weight: 800; padding: 1.15em 1.7em; background: var(--gold2); box-shadow: 0 5px 0 #8d6a22, 0 26px 50px -18px rgba(214,178,92,.8); }
.cc .btn.big:hover { background: #fff3c9; transform: translateY(-2px); box-shadow: 0 7px 0 #8d6a22, 0 30px 56px -18px rgba(214,178,92,.95); } .cc .btn.big:active { transform: translateY(3px); box-shadow: 0 2px 0 #8d6a22; }
.qr { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 400 9px/1.9 var(--sans); color: var(--mute-d); text-align: left; }
.qr img { width: 78px; height: 78px; border-radius: 8px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line-d); }
.fine { margin: 22px 0 0; font: 400 9px/1.8 var(--sans); letter-spacing: .04em; color: #7f9385; }
.finale .cta { justify-content: center; }
@media (max-width: 899px), (max-aspect-ratio: 1/1) { .qr { display: none; } .cta { justify-content: center; margin-top: 18px; } .fine { margin-top: 14px; } }

/* ---- one playable level (play.js) ---- */

/* ---- the giant App Store button ---- */
.cc .btn.giant { display: flex; justify-content: center; gap: .8em; width: min(100%, 860px); margin: clamp(34px, 6vh, 64px) auto 0; padding: 1.15em 1em 1em; border-radius: 22px; font-size: clamp(16px, 2.6vw, 34px); line-height: 1.3; background: var(--gold2); color: var(--night); box-shadow: 0 8px 0 #8d6a22, 0 40px 80px -24px rgba(214,178,92,.9); text-align: left; }
.cc .btn.giant svg { width: 1.8em; height: 1.8em; flex: none; } .cc .btn.giant small { display: block; font-size: .42em; letter-spacing: .04em; opacity: .7; margin-top: .5em; }
.cc .btn.giant:hover { background: #fff3c9; transform: translateY(-3px); box-shadow: 0 11px 0 #8d6a22, 0 46px 90px -24px rgba(214,178,92,1); } .cc .btn.giant:active { transform: translateY(5px); box-shadow: 0 3px 0 #8d6a22; }

/* ---- Clover Case small print and the playable level, sized for the new type ---- */
.cc .qr { font: 500 13px/1.45 var(--sans); } .cc .fine { font: 600 13px/1.5 var(--sans); letter-spacing: .02em; }
.cc .btn.giant { font-weight: 800; font-size: clamp(21px, 3.1vw, 42px); line-height: 1.08; letter-spacing: -.02em; padding: .85em 1em .8em; }
.cc .btn.giant small { font-size: .42em; font-weight: 700; letter-spacing: .02em; margin-top: .35em; }
@media (max-width: 899px), (max-aspect-ratio: 1/1) { .cc .btn.giant { font-size: clamp(17px, 4.9vw, 24px); gap: .6em; } }

/* 1. opening screen with the playable level (play.js + cc-logic.js): a normal one-screen hero, no scroll pinning.
   Words on the left, the app's own welcome round on the right; stacked on a phone. */
.hero.hp, .hero.hp.live { height: auto; }
.hero.hp .stage { position: relative; height: auto; min-height: 100vh; min-height: 100svh; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 80px); padding: 92px clamp(22px, 5vw, 96px) 36px; }
.hero.hp .words { position: relative; z-index: 3; left: auto; right: auto; top: auto; transform: none; width: auto; }
.cc .hero.hp .words .d { font-size: clamp(40px, 4.9vw, 92px); line-height: 1; }
.hero.hp .words .p { margin-top: clamp(14px, 2vh, 22px); }
.hero.hp .bloom { left: 72%; top: 50%; }
.try { position: relative; z-index: 3; text-align: center; user-select: none; -webkit-user-select: none; }
.try .tm { min-height: 1.6em; margin: 0 auto 10px; font: 700 clamp(15px, 1.15vw, 18px)/1.4 var(--sans); color: var(--gold2); }
.tcase { position: relative; width: min(100%, 760px); margin: 0 auto; padding: clamp(8px, 1.2vw, 18px); border-radius: clamp(16px, 2vw, 30px);
  background: linear-gradient(160deg, #2f7a45, #1c5230 55%, #133b23); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -4px 0 rgba(0,0,0,.35), 0 0 0 2px #0c2416, 0 30px 60px -24px rgba(0,0,0,.8); }
.tb { display: grid; grid-template-columns: repeat(11, 1fr); gap: clamp(2px, .35vw, 6px); padding: clamp(5px, .8vw, 12px); border-radius: clamp(10px, 1.3vw, 20px); background: #0f2e1b; box-shadow: inset 0 4px 12px rgba(0,0,0,.6); touch-action: none; }
.tb .h { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #071a0e 0 55%, #0b2415 75%); box-shadow: inset 0 3px 5px rgba(0,0,0,.7); display: grid; }
.tb .h.pv { background: radial-gradient(circle, rgba(241,217,152,.55) 0 45%, #0b2415 70%); box-shadow: 0 0 0 2px rgba(241,217,152,.6); }
.try .b, .tg .b { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.85) 0 9%, transparent 22%),
  radial-gradient(circle at 42% 38%, color-mix(in srgb, var(--c) 70%, white) 0, var(--c) 42%, color-mix(in srgb, var(--c) 55%, black) 100%); box-shadow: 0 2px 3px rgba(0,0,0,.45); }
.tb [data-p] { cursor: grab; } .tb [data-p] .b { animation: tpop .25s var(--ease); }
@keyframes tpop { from { transform: scale(.7); } }
.tt { --m: clamp(20px, 2.6vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(10px, 2vw, 32px); min-height: calc(var(--m) * 3.2); margin: clamp(10px, 1.8vh, 20px) auto 0; }
.tp { display: grid; gap: 3px; padding: 6px; border: 2px dashed transparent; border-radius: 14px; background: none; cursor: grab; touch-action: none; transition: transform .2s var(--ease); }
.tp span, .tg span { display: grid; }
.tp.on { border-color: rgba(241,217,152,.55); background: rgba(241,217,152,.06); } .tp:hover { transform: translateY(-2px); }
.dragging, .dragging * { cursor: grabbing !important; user-select: none; }
.tg { position: fixed; left: 0; top: 0; z-index: 99; display: grid; pointer-events: none; filter: drop-shadow(0 14px 14px rgba(0,0,0,.5)); }
.tc { display: flex; justify-content: center; gap: 10px; margin-top: clamp(8px, 1.4vh, 16px); }
.tc button { font: 700 15px/1 var(--sans); color: var(--cream); background: rgba(255,255,255,.06); border: 1px solid var(--line-d); border-radius: 12px; padding: .85em 1.3em; cursor: pointer; }
.tc button:hover:not(:disabled) { background: rgba(241,217,152,.14); } .tc button:disabled { opacity: .35; cursor: default; }
.try .th { margin: 10px auto 0; font: 500 13px/1.5 var(--sans); color: var(--mute-d); }
.tw { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(6,16,10,.62); font: 800 clamp(34px, 5vw, 76px)/1 var(--sans); letter-spacing: -.02em; color: var(--gold2);
  text-shadow: 0 .06em 0 #5a4313; opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .35s, transform .5s var(--ease); }
.won .tw { opacity: 1; transform: none; }
.cc-won .hero .btn.big, .cc-won .btn.giant { animation: tglow 1.4s ease-in-out infinite; }
@keyframes tglow { 50% { box-shadow: 0 5px 0 #8d6a22, 0 0 0 9px rgba(241,217,152,.28), 0 26px 70px -10px rgba(241,217,152,1); transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .cc-won .hero .btn.big, .cc-won .btn.giant { animation: none; } }
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .hero.hp .stage { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: 22px; min-height: 0; padding: 84px 14px 40px; }
  .hero.hp .words { text-align: center; } .hero.hp .words .p { display: none; }
  .cc .hero.hp .words .d { font-size: clamp(36px, 10.5vw, 54px); }
  .hero.hp .bloom { left: 50%; top: 72%; }
  .tcase { padding: 6px; border-radius: 14px; } .tb { padding: 4px; gap: 2px; }
  .tt { --m: clamp(20px, 6vw, 34px); }
}
