:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-deep: #070c16;
  --surface: #111827;
  --surface-soft: #172033;
  --line: #273449;
  --text: #f3f4f6;
  --muted: #a9b4c7;
  --accent: #2563eb;
  --accent-strong: #3b82f6;
  --premium: #7c3aed;
  --premium-soft: #a78bfa;
  --warning: #fca5a5;
  --warning-line: #7f1d1d;
  --success: #4ade80;
  --max: 1180px;
  --radius: 18px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 2%, rgb(37 99 235 / 17%), transparent 29rem),
    radial-gradient(circle at 12% 30%, rgb(124 58 237 / 10%), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: #93c5fd; text-underline-offset: 0.18em; }
a:hover { color: #bfdbfe; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(55 65 81 / 80%);
  background: rgb(7 12 22 / 88%);
  backdrop-filter: blur(16px);
}
.header-inner, .container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.45rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.site-nav { scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a, .language-link { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0.45rem 0.75rem; border-radius: 0.65rem; color: #cbd5e1; text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"], .language-link:hover { background: var(--surface-soft); color: #fff; }
.language-link { margin-left: 0.35rem; border: 1px solid var(--line); }

main { overflow: hidden; }
.hero { padding: 5.5rem 0 3.25rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(22rem, 0.97fr); gap: 3.5rem; align-items: center; }
.eyebrow { margin: 0 0 0.9rem; color: #93c5fd; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -0.035em; }
h1 { max-width: 13ch; font-size: clamp(2.65rem, 6vw, 5.25rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: 1.25rem; }
.lead { max-width: 43rem; margin: 1.35rem 0 0; color: #c5cfde; font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.button { min-height: 3.1rem; display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1.15rem; border: 1px solid transparent; border-radius: 0.75rem; background: var(--accent); color: #fff; text-decoration: none; font-weight: 750; }
.button:hover { background: var(--accent-strong); color: #fff; }
.button.secondary { border-color: var(--line); background: rgb(17 24 39 / 80%); color: #e5e7eb; }
.button.secondary:hover { background: var(--surface-soft); }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: -1.1rem; z-index: -1; border-radius: 2rem; background: linear-gradient(135deg, rgb(37 99 235 / 28%), rgb(124 58 237 / 12%)); filter: blur(1.5rem); }
.hero-media picture, .hero-media img { width: 100%; }
.hero-media img { border: 1px solid #334155; border-radius: var(--radius); box-shadow: 0 2rem 5rem rgb(0 0 0 / 40%); }
.hero-screens { position: relative; aspect-ratio: 1.22; padding: 0.75rem 3.5rem 4rem 0; }
.hero-screens::before { content: ""; position: absolute; inset: 8% 0 6% 4%; z-index: -1; border-radius: 2rem; background: linear-gradient(135deg, rgb(37 99 235 / 30%), rgb(124 58 237 / 17%)); filter: blur(1.7rem); }
.hero-screen { overflow: hidden; border: 1px solid #40516c; border-radius: 0.8rem; background: #0b1220; box-shadow: 0 1.8rem 4rem rgb(0 0 0 / 48%); }
.hero-screen picture, .hero-screen img { display: block; width: 100%; }
.hero-screen img { height: auto; }
.hero-screen-primary { transform: rotate(-1deg); }
.hero-screen-secondary { position: absolute; right: 0; bottom: 0; width: 60%; z-index: 2; transform: rotate(1.5deg); border-color: #60728f; }
.hero-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.85rem; color: var(--muted); font-size: 0.9rem; }
.status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0.25rem rgb(74 222 128 / 10%); }

.fact-strip { margin-bottom: 1.5rem; padding: 1rem 1.15rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgb(17 24 39 / 72%); }
.fact { display: flex; gap: 0.7rem; align-items: center; color: #dbe5f3; font-weight: 600; }
.fact-mark { color: #60a5fa; font-size: 1.25rem; }

.section { padding: 4.5rem 0; }
.section.compact { padding: 2rem 0 4rem; }
.section-head { max-width: 47rem; margin-bottom: 2rem; }
.section-head p { margin: 0.85rem 0 0; color: var(--muted); font-size: 1.08rem; }
.grid-2, .grid-3 { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgb(23 32 51 / 93%), rgb(17 24 39 / 93%)); }
.card p { margin: 0.75rem 0 0; color: var(--muted); }
.card ul, .card ol { margin: 1rem 0 0; padding-left: 1.25rem; }
.card li + li { margin-top: 0.45rem; }
.card.premium { border-color: #6d4bc1; background: linear-gradient(155deg, rgb(74 33 122 / 48%), rgb(17 24 39 / 95%)); }
.badge { display: inline-flex; align-items: center; min-height: 1.65rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--premium); color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.soon { background: #334155; color: #dbe5f3; }

.warning { padding: 1.3rem 1.45rem; border: 1px solid var(--warning-line); border-radius: var(--radius); background: linear-gradient(135deg, rgb(127 29 29 / 32%), rgb(17 24 39 / 95%)); }
.warning h2, .warning h3 { color: var(--warning); }
.warning p { margin: 0.7rem 0 0; color: #fee2e2; }

.video-section { padding-top: 4rem; }
.video-frame {
  overflow: hidden;
  border: 1px solid #40516c;
  border-radius: var(--radius);
  background: #070c16;
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 35%);
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #070c16; }


.page-hero { padding: 4rem 0 2.25rem; }
.page-hero h1 { max-width: 17ch; font-size: clamp(2.4rem, 5vw, 4.5rem); }
.prose { max-width: 52rem; }
.prose p, .prose li { color: #c5cfde; }
.prose h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.prose h3 { margin-top: 1.75rem; }
.prose code { padding: 0.12rem 0.38rem; border-radius: 0.4rem; background: #1f2937; color: #e5e7eb; }
.step-list { counter-reset: steps; display: grid; gap: 0.8rem; padding: 0; list-style: none; }
.step-list li { position: relative; min-height: 3rem; padding: 0.8rem 1rem 0.8rem 4rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--surface); }
.step-list li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 1rem; top: 0.8rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.feature-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--surface); }
.feature-table th, .feature-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.feature-table th { background: var(--surface-soft); color: #dbeafe; }
.feature-table tr:last-child td { border-bottom: 0; }
.check { color: var(--success); font-weight: 800; }
.muted { color: var(--muted); }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; color: #f3f4f6; font-weight: 700; }
details p { margin: -0.25rem 0 1.15rem; color: #c5cfde; }
.contact-list { display: grid; gap: 0.8rem; padding: 0; list-style: none; }
.contact-list a, .contact-list span { min-height: 3.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--surface); color: #fff; text-decoration: none; }
.contact-list a:hover { background: var(--surface-soft); }

.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-grid { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; padding: 2.3rem 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-grid p { max-width: 34rem; margin: 0.7rem 0 0; color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: 0.45rem; }
.footer-links strong { margin-bottom: 0.25rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.fine-print { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; padding: 1rem 0 1.5rem; border-top: 1px solid #182235; color: #738197; font-size: 0.88rem; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding: 0.7rem 0; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .language-link { margin-left: auto; }
  .hero { padding-top: 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { max-width: 44rem; }
  .hero-screens { width: min(100%, 48rem); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner, .container, .footer-grid, .fine-print { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand span { font-size: 0.95rem; }
  .site-nav a { padding-inline: 0.65rem; }
  .hero { padding: 2.75rem 0 2rem; }
  h1 { font-size: clamp(2.3rem, 13vw, 3.6rem); }
  .actions .button { width: 100%; }
  .fact-strip, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.2rem 0; }
  .hero-screens { aspect-ratio: 1.08; padding: 0.3rem 1.4rem 3.2rem 0; }
  .hero-screen-secondary { width: 66%; }
  .feature-table { display: block; overflow-x: auto; }
  .hero-grid > * { min-width: 0; }
  .nowrap { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* 03.10: the game name never breaks across lines; the line under the heading names both games. */
.nowrap { white-space: nowrap; }
.hero-games { margin: 0.9rem 0 0; color: #93c5fd; font-size: 1.15rem; font-weight: 600; }
/* 03.10: a section opened by a link (#steamos, #steam-deck) starts below the fixed header, not under it. */
[id] { scroll-margin-top: 5.5rem; }
@media (max-width: 960px) { [id] { scroll-margin-top: 8.5rem; } } /* the header wraps into two rows */

/* 07.10: "How it works" on the home page (illustrations without text; captions in HTML). */
.how-diagram img, .how-does img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.how-steps { margin: 1.25rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.45rem; color: #c5cfde; }
.how-steps li::marker { color: var(--accent-strong); font-weight: 750; }
.how-subtitle { margin: 2.25rem 0 1rem; font-size: 1.25rem; }
.how-does-text { margin-top: 1rem; }
.how-does-text p { margin: 0; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--surface); color: #dbe3ef; }
.how-yes { border-left: 3px solid #22c55e !important; }
.how-no { border-left: 3px solid #ef4444 !important; }
.how-risk { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* 07.10: feature illustrations on the Features page. */
.feature-art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.feature-art { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.feature-art img { width: 100%; height: auto; display: block; aspect-ratio: 8 / 5; object-fit: cover; }
.feature-art figcaption { display: grid; gap: 0.2rem; padding: 0.85rem 1rem 1rem; }
.feature-art figcaption span { color: var(--muted); font-size: 0.95rem; }
.feature-art-wide { grid-column: 1 / -1; }
.feature-art-wide img { aspect-ratio: auto; object-fit: contain; }
