/* Lana shop: the multi-game home page and the per-game pages. Neutral charcoal palette. */
:root {
  color-scheme: dark;
  --bg: #121212;
  --band: #0e0e0e;
  --card: #1a1a1a;
  --raised: #1f1f1f;
  --text: #f2f2f2;
  --text-2: #e6e6e6;
  --text-3: #bdbdbd;
  --muted: #a8a8a8;
  --faint: #8f8f8f;
  --button: #e6e6e6;
  --line: rgba(255,255,255,.06);
  --line-2: rgba(255,255,255,.1);
  --live: #4ade80;
  --dev: #f5c542;
  --plan: #a8a8a8;
  --display: "Instrument Serif", Georgia, serif;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--text-2); text-decoration: none; }
a:hover { color: #fff; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; }
h1 em, h2 em, .display em { font-style: italic; }
:focus-visible { outline: 2px solid var(--text-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--button); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.s-live { color: var(--live); } .s-dev { color: var(--dev); } .s-plan { color: var(--plan); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border: 0; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--button); color: var(--bg); }
.btn-light:hover { color: var(--bg); background: #fff; }
.btn-ghost { color: var(--text); background: rgba(18,18,18,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.btn svg { width: 14px; height: 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* Nav: quiet row, not sticky */
.nav { position: relative; z-index: 3; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; color: var(--text); margin-right: auto; }
.brand img { width: 26px; height: 26px; }
.nav nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.nav nav a { color: #cfcfcf; }
.nav nav a[aria-current] { color: var(--text); }
.signin { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text); background: rgba(18,18,18,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

/* Section heads */
.sec { padding-top: 112px; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.head h2, .head-c h2 { font-size: 60px; line-height: 1; letter-spacing: -.01em; }
.head p { margin: 12px 0 0; color: var(--muted); }
.head-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 36px; }
.head-c h2 { font-size: 56px; }
.head-c p, .head-c > span { margin: 0; color: var(--muted); }
.card { border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }

/* Grain overlay */
.grain { position: relative; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 83% 68%, rgba(0,0,0,.25) 0 1px, transparent 1px 4px); }

/* FAQ */
.faq details { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding-top: 10px; color: var(--muted); line-height: 1.6; }

/* Game tiles (library and More games) */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.game { display: flex; flex-direction: column; isolation: isolate; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px rgba(255,255,255,.07); color: var(--text); transition: transform .35s var(--ease), box-shadow .3s; }
a.game:hover { transform: translate3d(0, -3px, 0); color: var(--text); box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 24px 50px rgba(0,0,0,.4); }
.game .art { position: relative; display: block; height: 200px; }
.game .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The colour copy of a card's screenshot, shown while the card is hovered or focused. */
.art-c { opacity: 0; transition: opacity .45s var(--ease); }
/* The text area below the art sits on top (z-index, 1px overlap) and covers any row of the fading colour copy
   that the browser draws past the art's edge. The card moves as one prepared layer (no re-drawing at in-between pixel positions while it lifts), so its
   edges, ring and the fading copy stay aligned on every display scaling. */
.game .art, .prod-art, .tile-art { overflow: hidden; }
.game, .prod, button.tile { will-change: transform; transform: translate3d(0, 0, 0); backface-visibility: hidden; }
.game:hover .art-c, .game:focus-visible .art-c, .prod:hover .art-c, .prod:focus-visible .art-c, .tile:hover .art-c, .tile:focus-visible .art-c { opacity: 1; }
.game .art::after { content: ""; position: absolute; inset: -1px; background: linear-gradient(180deg, rgba(18,18,18,0) 40%, rgba(18,18,18,.9) 100%); }
.game .state { position: absolute; z-index: 1; top: 14px; right: 14px; padding: 5px 10px; background: rgba(18,18,18,.8); font-size: 11px; }
.game .name { position: absolute; z-index: 1; left: 18px; bottom: 14px; font-weight: 700; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.game .body { position: relative; z-index: 1; margin-top: -1px; background: var(--card); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.game .tags { color: var(--muted); font-size: 14px; }
.game .row { display: flex; justify-content: space-between; align-items: center; }
.game .price { font-size: 20px; font-weight: 600; }
.game .price small { font-size: 13px; color: var(--faint); font-weight: 400; }
.game .go { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; }
.game .go svg { width: 16px; height: 16px; }

/* Footer */
.foot { border-top: 1px solid rgba(255,255,255,.07); background: transparent; }
.foot .wrap { padding-top: 72px; display: flex; flex-direction: column; gap: 56px; }
.cta { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding: 28px 32px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
.cta .display { font-family: var(--display); font-size: 36px; line-height: 1; }
.cta p { margin: 6px 0 0; color: var(--muted); }
.foot-main { display: flex; flex-wrap: wrap; gap: 48px 64px; justify-content: space-between; }
.foot-brand { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; gap: 18px; }
.foot-brand .brand { font-size: 20px; margin: 0; }
.foot-brand .brand img { width: 28px; height: 28px; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.sys { align-self: flex-start; padding: 8px 14px; font-size: 13px; background: rgba(74,222,128,.1); color: var(--live); }
.sys:hover { color: var(--live); }
.cols { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 32px; font-size: 14px; }
.cols div { display: flex; flex-direction: column; gap: 12px; }
.cols a { color: var(--text-3); }
.cols a:hover { color: #fff; }
.base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; color: var(--faint); }
.base span span { padding: 5px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.base > span:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
.base .soon { color: #707070; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .sec { padding-top: 80px; }
  .head h2, .head-c h2 { font-size: 44px; }
  .nav { gap: 12px; padding-top: 20px; }
  .nav nav { gap: 14px; font-size: 13px; }
  .signin { padding: 8px 14px; font-size: 13px; }
  .cta { padding: 24px; }
}

/* Product picker dialog */
.s-bad { color: #f87171; }
.picker { width: min(1100px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 22px; background: #161616; color: var(--text); box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 40px 120px rgba(0,0,0,.7); overflow: auto; }
.picker::backdrop { background: rgba(8,8,8,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.picker[open] { animation: pickIn .35s var(--ease); }
.picker[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes pickIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.picker header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 18px 20px 18px 26px; background: rgba(22,22,22,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.picker h2 { font-size: 30px; line-height: 1; }
.picker-count { margin-right: auto; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); font: 11px var(--mono); color: var(--muted); }
.picker-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--text-2); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.picker-x:hover { background: rgba(255,255,255,.12); }
.picker-x svg { width: 16px; height: 16px; }
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 20px; }
.prods.one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.prod { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px rgba(255,255,255,.07); color: var(--text); transition: transform .3s var(--ease), box-shadow .25s; }
a.prod:hover { transform: translate3d(0, -3px, 0); color: var(--text); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 20px 40px rgba(0,0,0,.45); }
.prod-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.prod-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-art::after { content: ""; position: absolute; inset: -1px; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(18,18,18,.55), rgba(18,18,18,.15)), linear-gradient(180deg, rgba(18,18,18,0) 55%, rgba(18,18,18,.85) 100%); }
.prod-title { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: 0 18px; text-align: center; font-weight: 700; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.prod-game { position: absolute; z-index: 1; left: 14px; top: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(18,18,18,.75); font: 11px var(--mono); color: var(--text-3); }
.prod-body { position: relative; z-index: 1; margin-top: -1px; background: var(--card); display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.prod-body b { font-size: 16px; font-weight: 600; }
.prod-st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.prod-st .dot { width: 6px; height: 6px; }
.prod-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.prod-price { font-size: 20px; font-weight: 600; }
.prod-price small { font-size: 13px; font-weight: 400; color: var(--faint); }
.prod-stock { font-size: 12px; font-weight: 600; color: var(--faint); }
.prod.off .prod-art img { opacity: .75; }
.picker-note { margin: 0; padding: 0 26px 22px; font-size: 13px; color: var(--muted); }
.picker-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .picker h2 { font-size: 24px; } .prods { padding: 14px; grid-template-columns: 1fr; } .picker header { padding: 14px 14px 14px 18px; } }
@media (prefers-reduced-motion: reduce) { .picker[open], .picker[open]::backdrop { animation: none; } }
.picker-in:focus { outline: none; }

/* Legal pages (Terms, Privacy) */
.doc-hero { padding: 64px 0 8px; text-align: center; }
.doc-hero h1 { font-size: clamp(48px, 7vw, 84px); line-height: .95; letter-spacing: -.02em; }
.doc-hero p { margin: 14px auto 0; max-width: 560px; color: var(--muted); }
.doc-hero .updated { display: inline-block; margin-top: 18px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); font: 500 11.5px var(--mono); color: var(--faint); letter-spacing: .04em; }
.doc-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 980px; margin: 28px auto 0; }
.doc-toc a { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); }
.doc-toc a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.doc { max-width: 760px; margin: 0 auto; padding: 40px 0 96px; display: flex; flex-direction: column; gap: 14px; }
.doc section { scroll-margin-top: 24px; padding: 26px 28px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.doc h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; font-family: var(--font); font-size: 18px; font-weight: 600; }
.doc h2 span { font: 500 12px var(--mono); color: var(--faint); }
.doc p, .doc li { margin: 0; color: var(--text-3); font-size: 15px; line-height: 1.7; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 10px; }
.doc ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.doc li::marker { color: var(--faint); }
.doc b { color: var(--text-2); font-weight: 600; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.doc .intro { padding: 0 4px 6px; color: var(--muted); font-size: 15.5px; line-height: 1.7; text-align: center; }
@media (max-width: 720px) { .doc section { padding: 22px 20px; } .doc-hero { padding-top: 44px; } }

/* Feature list (product pages and dashboard): numbered rows that open in place, one at a time. */
.fi { border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; interpolate-size: allow-keywords; }
.fi-g + .fi-g { border-top: 1px solid var(--line); }
.fi-g[hidden] { display: none; }
.fi-g summary { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto 14px; align-items: center; gap: 14px; padding: 17px 22px; cursor: pointer; list-style: none; transition: background .2s; }
.fi-g summary::-webkit-details-marker { display: none; }
.fi-g summary:hover { background: rgba(255,255,255,.02); }
.fi-g summary:focus-visible { outline: 2px solid var(--text-2); outline-offset: -2px; border-radius: 12px; }
.fi-n { font: 500 12px var(--mono); color: var(--faint); transition: color .2s; }
.fi-t { font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.fi-peek { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--faint); transition: opacity .2s; }
.fi-c { font: 500 11.5px var(--mono); color: var(--faint); }
.fi-x { position: relative; width: 14px; height: 14px; }
.fi-x::before, .fi-x::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6.25px; height: 1.5px; border-radius: 2px; background: var(--muted); transition: transform .3s var(--ease); }
.fi-x::after { transform: rotate(90deg); }
.fi-g[open] .fi-n { color: var(--text); }
.fi-g[open] .fi-peek { opacity: 0; }
.fi-g[open] .fi-x::after { transform: rotate(0deg); }
.fi-g::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.fi-g[open]::details-content { block-size: auto; }
.fi-g > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 28px; margin: 0; padding: 0 22px 20px 66px; list-style: none; }
.fi-long .fi-g > ul { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fi-g > ul > li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.fi-g > ul > li svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 3px; color: var(--live); opacity: .8; }
.fi-more { display: block; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font: 500 13.5px var(--font); cursor: pointer; transition: color .2s, background .2s; }
.fi-more:hover { color: var(--text); background: rgba(255,255,255,.02); }
/* Changelog rows: a date instead of the number, no count. */
.fi-log .fi-g summary { grid-template-columns: 96px auto minmax(0, 1fr) 14px; }
.fi-log .fi-n { white-space: nowrap; }
.fi-new { margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(74,222,128,.12); color: var(--live); font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.fi-body { padding: 0 22px 20px 132px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.fi-body p { margin: 0 0 8px; }
.fi-body b { color: var(--text-2); font-weight: 600; }
.fi-body ul { display: grid; gap: 4px; margin: 2px 0 10px; padding: 0; list-style: none; }
.fi-body li { position: relative; padding-left: 16px; color: var(--text-2); }
.fi-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.fi-body code { font: 12.5px var(--mono); color: var(--text-2); }
.fi-body > :last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .fi-log .fi-g summary { grid-template-columns: minmax(0, 1fr) 14px; row-gap: 4px; }
  .fi-log .fi-n { grid-column: 1; grid-row: 1; }
  .fi-log .fi-t { grid-column: 1; grid-row: 2; }
  .fi-log .fi-x { grid-column: 2; grid-row: 1 / span 2; }
  .fi-body { padding: 0 18px 18px; }
  .fi-g summary { grid-template-columns: 26px minmax(0, 1fr) auto 14px; padding: 16px 18px; }
  .fi-t { white-space: normal; }
  .fi-peek { display: none; }
  .fi-g > ul, .fi-long .fi-g > ul { grid-template-columns: 1fr; padding: 0 18px 18px 58px; }
}
