/* Lantern Keeper website. One stylesheet for every page. The game's own palette and pixel fonts (self-hosted, OFL). */
@font-face { font-family: "Jersey 10"; src: url("fonts/Jersey10.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #0a0f24; --bg2: #0d1430; --surface: #121a3a; --surface2: #18224a; --line: #26305a; --line2: #34407a;
  --text: #e8eaf6; --muted: #b3b9d8; --dim: #8a91b8;
  --gold: #ffcf66; --gold2: #ffb938; --ember: #ff8a3d; --sky: #7cc8ff; --rose: #e8616d; --mint: #7be0b0; --violet: #b49cff;
  --display: "Jersey 10", system-ui, sans-serif; --pixel: "Jersey 10", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 16px; --r-sm: 10px; --wrap: 1180px; --pad: clamp(16px, 4vw, 32px);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45); --glow: 0 0 0 1px rgba(255, 207, 102, .35), 0 10px 40px rgba(255, 185, 56, .18);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe3a3; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-family: var(--pixel); font-size: 1.5rem; font-weight: 400; letter-spacing: .3px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1a1406; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(10, 15, 36, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-head.scrolled { background: rgba(10, 15, 36, .94); border-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.65rem; letter-spacing: .5px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--pixel); font-size: 1.28rem; line-height: 1; padding: 9px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #1d1405; background: linear-gradient(180deg, #ffd977, var(--gold2)); padding: 8px 16px; }
.menu-btn { display: none; margin-left: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line2); border-radius: 12px; width: 46px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 880px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--pad) 18px; background: rgba(10, 15, 36, .98); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font: 400 1.32rem/1 var(--pixel); letter-spacing: .3px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: linear-gradient(180deg, #ffd977, var(--gold2)); color: #1d1405; box-shadow: 0 8px 28px rgba(255, 185, 56, .28), inset 0 -3px 0 rgba(120, 70, 0, .25); }
.btn-primary:hover { color: #1d1405; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 185, 56, .38), inset 0 -3px 0 rgba(120, 70, 0, .25); }
.btn-ghost { background: rgba(18, 26, 58, .7); color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 1.2rem; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 90px) 0 clamp(40px, 7vw, 80px); isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -2; background: radial-gradient(1200px 600px at 70% 30%, #1d2a66 0%, transparent 60%), radial-gradient(900px 500px at 10% 0%, #16204d 0%, transparent 55%), linear-gradient(180deg, #080c1e 0%, #0e1638 55%, #0a0f24 100%); }
.hero-stars { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1.2px 1.2px at 28% 62%, #fff6 50%, transparent 51%), radial-gradient(1.6px 1.6px at 46% 12%, #fff9 50%, transparent 51%), radial-gradient(1.2px 1.2px at 64% 38%, #fff5 50%, transparent 51%), radial-gradient(1.5px 1.5px at 82% 20%, #fff8 50%, transparent 51%), radial-gradient(1.1px 1.1px at 92% 66%, #fff5 50%, transparent 51%), radial-gradient(1.3px 1.3px at 6% 80%, #fff6 50%, transparent 51%), radial-gradient(1.2px 1.2px at 55% 85%, #fff4 50%, transparent 51%); }
@media (prefers-reduced-motion: no-preference) { .hero-stars { animation: twinkle 6s ease-in-out infinite alternate; } }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 400 1.15rem/1 var(--pixel); letter-spacing: .4px; color: var(--gold); background: rgba(255, 207, 102, .1); border: 1px solid rgba(255, 207, 102, .3); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.4rem); line-height: .95; margin-bottom: .3em; text-shadow: 0 4px 30px rgba(255, 207, 102, .25); }
.hero h1 span { color: var(--gold); }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 36em; margin-bottom: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding: 0; list-style: none; font: 1.18rem var(--pixel); color: var(--muted); }
.badges li { display: flex; align-items: center; gap: 7px; }
.badges svg { width: 18px; height: 18px; color: var(--mint); }
.hero-art { position: relative; min-height: 420px; }
.screen-desktop { border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); box-shadow: var(--shadow), 0 0 80px rgba(255, 207, 102, .12); background: var(--bg2); }
.screen-desktop .bar { display: flex; gap: 6px; padding: 9px 12px; background: #0b1130; border-bottom: 1px solid var(--line); }
.screen-desktop .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3668; }
.phone { position: absolute; right: -6px; bottom: -36px; width: 36%; min-width: 150px; max-width: 230px; border-radius: 30px; padding: 7px; background: #05081a; border: 1px solid #2c3668; box-shadow: var(--shadow); }
.phone img { border-radius: 24px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { min-height: 0; margin: 10px 18px 40px 0; } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto clamp(30px, 5vw, 54px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.kicker { display: block; font: 400 1.15rem var(--pixel); color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }

/* the loop */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.loop li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 20px; counter-increment: step; }
.loop li::before { content: counter(step); position: absolute; top: -14px; left: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1d1405; font: 400 1.2rem/30px var(--pixel); text-align: center; }
.loop .ic { width: 44px; height: 44px; color: var(--gold); margin: 6px 0 12px; }
.loop p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .loop { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.stats li { text-align: center; padding: 22px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.stats b { display: block; font: 400 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); color: var(--gold); }
.stats span { color: var(--muted); font: 1.2rem var(--pixel); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats li:last-child { grid-column: span 2; } }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 9vw, 110px); }
.feature.flip .feature-media { order: 2; }
.feature h3 { font: 400 clamp(1.9rem, 3.6vw, 2.6rem)/1.1 var(--display); color: var(--text); margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 1.07rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--gold); }
.feature-media { position: relative; }
.shot { border-radius: 14px; border: 1px solid var(--line2); box-shadow: var(--shadow); overflow: hidden; background: var(--bg2); }
.shots-phones { display: flex; gap: 14px; justify-content: center; }
.shots-phones .shot { width: min(44%, 250px); border-radius: 22px; }
.shots-phones .shot:nth-child(2) { margin-top: 40px; }
.tag { display: inline-block; font: 400 1.08rem/1.2 var(--pixel); letter-spacing: .4px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.tag.gold { background: rgba(255, 207, 102, .12); color: var(--gold); } .tag.sky { background: rgba(124, 200, 255, .12); color: var(--sky); }
.tag.rose { background: rgba(232, 97, 104, .14); color: #ff9aa2; } .tag.mint { background: rgba(123, 224, 176, .12); color: var(--mint); }
.tag.violet { background: rgba(180, 156, 255, .14); color: var(--violet); } .tag.ember { background: rgba(255, 138, 61, .13); color: #ffad78; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } }

/* region strip */
.regions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 0; padding: 0; list-style: none; }
.regions li { font: 1.12rem var(--pixel); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.regions li b { color: var(--gold); font-weight: 600; margin-right: 6px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .ic { width: 38px; height: 38px; color: var(--gold); margin-bottom: 14px; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--gold); transform: translateY(-3px); color: inherit; }

/* promise */
.promise { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: radial-gradient(700px 300px at 0% 0%, rgba(255, 207, 102, .12), transparent 70%), var(--surface); border: 1px solid var(--line2); border-radius: 24px; padding: clamp(26px, 5vw, 54px); }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; background: rgba(10, 15, 36, .5); border: 1px solid var(--line); padding: 14px 16px; border-radius: 14px; }
.promise li svg { width: 24px; height: 24px; flex: none; color: var(--mint); }
.promise li b { display: block; font: 400 1.3rem/1.2 var(--pixel); }
.promise li span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; gap: 12px; }
.gallery button { padding: 0; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--bg2); cursor: zoom-in; position: relative; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 3; aspect-ratio: 16 / 10; }
.gallery .tall { grid-column: span 2; aspect-ratio: 9 / 16; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery .wide { grid-column: span 2; } .gallery .tall { grid-column: span 1; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(4, 6, 16, .92); }
.lb-in { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 12px 16px; }
.lb-in img { max-width: min(96vw, 1440px); max-height: calc(100vh - 140px); width: auto; border-radius: 12px; box-shadow: var(--shadow); }
.lb-cap { color: var(--muted); margin-top: 12px; text-align: center; padding: 0 60px; }
.lb-btn { position: fixed; background: rgba(18, 26, 58, .9); color: var(--text); border: 1px solid var(--line2); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 12px; right: 12px; } .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); } .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* platforms */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
.platform { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; }
.platform svg { width: 30px; height: 30px; color: var(--sky); margin-bottom: 6px; }
.platform b { font: 400 1.3rem/1.2 var(--pixel); }
.platform span { color: var(--muted); font-size: .9rem; }
a.platform:hover { border-color: var(--gold); color: var(--text); }

/* news */
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.news-item .ver { font: 400 2rem/1 var(--display); color: var(--gold); }
.news-item .ver small { display: block; font: .85rem var(--body); color: var(--dim); margin-top: 6px; }
.news-item p { margin: 0; color: var(--muted); }
.news-item h3 { margin-bottom: 6px; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq details[open] { border-color: var(--line2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; font: 400 1.32rem/1.2 var(--pixel); letter-spacing: .3px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--display); color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* call to action band */
.cta { text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 55%, rgba(255, 207, 102, .13), transparent 72%); }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4rem); }
.cta .btn-row { justify-content: center; }

/* page header (inner pages) */
.page-head { padding: clamp(44px, 7vw, 80px) 0 clamp(20px, 4vw, 36px); background: radial-gradient(900px 340px at 50% -10%, #1d2a66, transparent 70%); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin-bottom: .2em; }
.page-head p { color: var(--muted); font-size: 1.12rem; max-width: 46em; }
.page { padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }

/* downloads */
.rec { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center; padding: 26px; border-radius: 20px; background: linear-gradient(135deg, rgba(255, 207, 102, .12), rgba(18, 26, 58, .9) 60%); border: 1px solid rgba(255, 207, 102, .4); box-shadow: var(--glow); margin-bottom: 34px; }
.rec svg.big { width: 56px; height: 56px; color: var(--gold); }
.rec h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 4px; }
.rec p { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .rec { grid-template-columns: 1fr; text-align: left; } .rec svg.big { display: none; } }
.dl-group { margin-top: 38px; padding: 0; }
.dl-group > h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dl-group > h2 svg { width: 30px; height: 30px; color: var(--sky); }
.dl-group > p { color: var(--muted); margin-bottom: 14px; }
.dl-list { display: grid; gap: 10px; }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.dl b { font: 400 1.3rem/1.2 var(--pixel); }
.dl .meta { color: var(--dim); font-size: .88rem; overflow-wrap: anywhere; }
.dl .meta .nw { white-space: nowrap; }
.dl .meta button { background: none; border: 0; color: var(--sky); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl .btn { width: 100%; } }
.note { border-left: 3px solid var(--gold); background: rgba(255, 207, 102, .07); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--muted); }
.note b { color: var(--text); }

/* prose (privacy, terms, support) */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #cdd1ea; }
.prose li { margin: .4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line2); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface2); font: 400 1.15rem var(--pixel); }
.table-wrap { overflow-x: auto; }
.summary { background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: 18px 22px; margin: 1em 0 1.5em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.toc a { display: inline-block; font: 1.12rem/1.2 var(--pixel); padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--gold); }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: #070b1b; padding: 48px 0 32px; color: var(--muted); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h2 { font: 400 1.25rem var(--pixel); color: var(--text); margin: 0 0 12px; letter-spacing: .5px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--gold); }
.foot-brand p { margin: 12px 0 0; max-width: 30em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: .88rem; color: var(--dim); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }

/* reveal on scroll (only when motion is welcome and the script runs) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (forced-colors: active) { .btn, .card, .shot, .platform, .dl { border: 1px solid CanvasText; } }
@media print { .site-head, .site-foot, .skip, .menu-btn { display: none !important; } body { background: #fff; color: #000; } a { color: #000; } }

/* tables in the legal pages become one card per row on phones (the column names come from data-label) */
@media (max-width: 640px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr:has(th) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 6px 14px; margin: 0 0 12px; }
  .prose td { border: 0; padding: 6px 0; }
  .prose td[data-label]::before { content: attr(data-label); display: block; font: 400 1rem var(--pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
}

/* ---------- 0.29: button states (hover, press, keyboard focus, disabled, busy) ---------- */
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary:active, .btn-ghost:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transform: none !important; transition: none; } }

/* ---------- status labels (compat.json) ---------- */
.status { display: inline-block; vertical-align: middle; font: 600 .74rem/1 var(--body); letter-spacing: .4px; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.st-supported { color: var(--mint); background: rgba(123, 224, 176, .1); }
.st-partial { color: var(--sky); background: rgba(124, 200, 255, .1); }
.st-experimental { color: var(--violet); background: rgba(180, 156, 255, .1); }
.st-untested { color: var(--gold); background: rgba(255, 207, 102, .08); }
.st-unsupported { color: var(--dim); background: transparent; }

/* ---------- each download's details ---------- */
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin: 34px 0 0; scroll-margin-top: 90px; }
.dl-main { min-width: 0; }
.dl-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 4px; font-size: .9rem; }
.dl-facts div { display: flex; gap: 6px; }
.dl-facts dt { color: var(--dim); }
.dl-facts dd { margin: 0; color: var(--text); }
.dl .hash { background: none; border: 0; color: var(--sky); cursor: pointer; font: .88rem ui-monospace, Consolas, monospace; padding: 0; text-decoration: underline; }
.dl-note { margin: 4px 0; color: var(--muted); font-size: .92rem; }
.rec-act { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 680px) { .rec-act .btn { width: 100%; } }
.prev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prev-list li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.small { font-size: .88rem; }

/* ---------- the compatibility table (a card per row on phones) ---------- */
.compat table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compat th, .compat td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.compat th { font: 400 1.12rem var(--pixel); color: var(--muted); }
.legend { display: grid; gap: 8px; margin: 16px 0 6px; }
.legend div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: start; }
.legend dd { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) {
  .compat thead { display: none; }
  .compat tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .compat td { display: block; border: 0; padding: 3px 0; }
  .compat td[data-label]::before { content: attr(data-label) ": "; color: var(--dim); font-size: .85rem; }
  .compat td[data-label="Platform"]::before { content: none; }
  .legend div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- service status ---------- */
.svc-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.svc { display: grid; grid-template-columns: auto minmax(150px, auto) 1fr; gap: 10px; align-items: baseline; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.svc .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); align-self: center; }
.svc-up .dot { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.svc-down .dot { background: var(--rose); }
.svc-off .dot, .svc-unknown .dot { background: var(--dim); }
.svc-info .dot { background: var(--sky); }
.svc span:last-child { color: var(--muted); }
@media (max-width: 560px) { .svc { grid-template-columns: auto 1fr; } .svc span:last-child { grid-column: 2; } }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(18, 26, 58, .92); border: 2px solid var(--line2); color: var(--gold); box-shadow: var(--shadow); text-decoration: none; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { border-color: var(--gold); }
.to-top[hidden] { display: none; }
@media (forced-colors: active) { .status, .to-top, .svc { border: 1px solid CanvasText; } }

/* ---------- press kit logos ---------- */
.press-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 1em 0; }
.press-logos figure { margin: 0; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.press-logos img { width: 100%; height: 120px; object-fit: contain; padding: 18px; }
.press-logos .icon img { height: 160px; }
.press-logos .on-dark img { background: #0a0f24; }
.press-logos .on-light img { background: #f4efe2; }
.press-logos figcaption { padding: 8px 12px; font-size: .88rem; color: var(--muted); background: var(--surface); }

/* ---------- the hero video ---------- */
.hero-video { position: relative; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg2); }
.vid-toggle { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(10, 15, 36, .78); color: var(--text); font: 400 1.05rem/1 var(--pixel); cursor: pointer; }
.vid-toggle svg { width: 16px; height: 16px; color: var(--gold); }
.vid-toggle:hover { border-color: var(--gold); }
.vid-toggle[hidden] { display: none; }
@media (max-width: 560px) { .vid-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .vid-toggle { padding: 8px 12px; } }

/* ---------- patch notes on the News page ---------- */
.notes { margin-top: 10px; }
.notes summary { cursor: pointer; color: var(--gold); font: 400 1.15rem var(--pixel); min-height: 32px; display: inline-flex; align-items: center; }
.notes h4 { margin: 12px 0 4px; font: 400 1.15rem var(--pixel); color: var(--text); }
.notes ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.notes li { margin: 3px 0; }

/* older computers and devices (0.29) */
.older-list{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));margin:16px 0}
.older-item{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.older-list .older-item h3{margin:0 0 8px;font:700 1.1rem/1.3 var(--body);color:var(--gold);text-transform:none;letter-spacing:0}
.older-item ol{margin:0;padding-left:1.2rem;line-height:1.55}.older-item li{margin:4px 0}
.older-item .muted{margin:10px 0 0;font-size:.9rem}
