/* AirGames — roma-online.net. One stylesheet, no framework. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2?v=3100e775e8") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-600.woff2?v=61efc27ceb") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0d18;
  --panel: #121729;
  --raised: #1a2038;
  --line: #262d4a;
  --line-soft: #1c2240;
  --text: #e8ecf8;
  --muted: #8b93b0;
  --soft: #b9c0d8;
  --cyan: #19d3f5;
  --blue: #3b6cff;
  --purple: #9b4dff;
  --online: #3ddc84;
  --away: #f5a524;
  --danger: #ff6b81;
  --grad: linear-gradient(100deg, #19d3f5 0%, #3b6cff 50%, #9b4dff 100%);
  --grad-btn: linear-gradient(100deg, #3561e6 0%, #6a52ec 55%, #8c45e6 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
picture img { width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.022em; font-weight: 760; text-wrap: balance; }
ul { padding: 0; margin: 0; list-style: none; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(59, 108, 255, .45); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .8125rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 1.1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.display { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: -0.02em; }
.lede { font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3rem); color: var(--soft); line-height: 1.55; max-width: 38em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.375rem; margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.125rem; margin: 1.8rem 0 .6rem; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose a, .link { color: #8fe9fb; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .link:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h); padding: 0 1.45em; border-radius: 12px;
  font: inherit; font-size: 1rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -12px rgba(59, 108, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(110, 90, 255, .85), 0 0 0 1px rgba(25, 211, 245, .5), inset 0 1px 0 rgba(255, 255, 255, .22); transform: translateY(-1px); }
.btn-secondary { background: rgba(232, 236, 248, .06); color: var(--text); border-color: rgba(232, 236, 248, .18); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(232, 236, 248, .11); border-color: rgba(232, 236, 248, .32); }
.btn-small { --h: 40px; padding: 0 1.05em; font-size: .9375rem; border-radius: 10px; }
.btn-large { --h: 58px; font-size: 1.0625rem; padding: 0 1.7em; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; color: var(--text); text-decoration: none; }
.text-link span[aria-hidden] { transition: transform .2s ease; }
.text-link:hover span[aria-hidden] { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .text-link span[aria-hidden] { transition: none; } .btn:hover { transform: none; } }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.page-other .site-header, .page-news .site-header, .page-download .site-header, .page-signup .site-header, .page-account .site-header { position: relative; border-bottom: 1px solid var(--line-soft); background: rgba(10, 13, 24, .9); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 1.1875rem; letter-spacing: -0.02em; }
.brand img { width: 40px; height: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 4px; margin-right: 12px; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 9px; text-decoration: none; font-weight: 550; font-size: .96875rem; color: var(--soft); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--text); background: rgba(232, 236, 248, .06); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(232, 236, 248, .08); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(232, 236, 248, .16); background: rgba(10, 13, 24, .5); }
.menu summary::-webkit-details-marker { display: none; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .2s ease, opacity .2s; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
.menu[open] .menu-bars { background: transparent; }
.menu[open] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 9px; text-decoration: none; font-weight: 550; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--raised); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu { display: block; }
  .header-row { height: 68px; }
}
@media (max-width: 380px) { .nav-cta { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 880px); display: flex; align-items: center; padding: 120px 0 88px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art picture, .hero-art img { width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 13, 24, .97) 0%, rgba(10, 13, 24, .9) 32%, rgba(10, 13, 24, .45) 62%, rgba(10, 13, 24, .2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 24, 0) 28%),
    linear-gradient(180deg, rgba(10, 13, 24, .65) 0%, rgba(10, 13, 24, 0) 22%); }
.hero-inner { max-width: 640px; }
.hero-wordmark { width: min(360px, 72vw); margin: 0 0 22px -10px; filter: drop-shadow(0 10px 40px rgba(59, 108, 255, .35)); }
.hero .display { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .9375rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--cyan); }
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: flex-end; padding: 0 0 56px; flex-direction: column; }
  .hero-art { position: relative; inset: auto; width: 100%; height: 300px; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 300px), rgba(10, 13, 24, .2) calc(100% - 160px), rgba(10, 13, 24, .55) 100%); }
  .hero-inner { margin-top: -96px; }
  .hero-wordmark { width: 240px; margin-left: -6px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* the inner pages' heroes */
.page-hero { position: relative; isolation: isolate; padding: 170px 0 110px; overflow: hidden; }
.page-hero .hero-art img { object-position: 50% 50%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 13, 24, .95) 0%, rgba(10, 13, 24, .78) 40%, rgba(10, 13, 24, .25) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 24, 0) 40%),
    linear-gradient(180deg, rgba(10, 13, 24, .7) 0%, rgba(10, 13, 24, 0) 25%); }
.game-title { font-family: var(--serif); font-weight: 600; letter-spacing: .08em; font-size: clamp(3.2rem, 2rem + 6vw, 6.5rem); line-height: 1; margin: 0 0 18px; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.game-title.oc { font-family: var(--font); font-weight: 800; letter-spacing: -0.04em; }
.game-title.oc b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lede { margin-bottom: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .875rem; font-weight: 550; color: var(--soft); background: rgba(18, 23, 41, .72); border: 1px solid var(--line); backdrop-filter: blur(6px); }
@media (max-width: 760px) {
  .page-hero { padding: 0 0 48px; display: flex; flex-direction: column; }
  .page-hero .hero-art { position: relative; height: 260px; }
  .page-hero::before { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 260px), rgba(10, 13, 24, .1) calc(100% - 120px), rgba(10, 13, 24, .55) 100%); }
  .page-hero .wrap { margin-top: -60px; }
}

/* simple page header (news, download, legal) */
.page-head { padding: 72px 0 40px; }
.page-head .lede { margin-top: 16px; }
@media (max-width: 760px) { .page-head { padding: 44px 0 28px; } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .lede { margin: 14px 0 0; }
.band { background: linear-gradient(180deg, var(--bg), #0d1120 30%, #0d1120 70%, var(--bg)); }

/* ---------- live strip ---------- */
.live { position: relative; z-index: 2; margin-top: -40px; }
.live-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.live-grid > * { background: var(--panel); padding: 26px 28px; }
.live-grid.one { grid-template-columns: 1fr; }
.live-label { font-size: .8125rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.online-count { display: flex; align-items: center; gap: 14px; }
.online-count strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.online-count span { color: var(--soft); line-height: 1.35; }
.pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--online); flex: none; box-shadow: 0 0 12px rgba(61, 220, 132, .7); }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--online); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }
.live .text-link { margin-top: 14px; font-size: .9375rem; }
.news-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-mini a { display: block; text-decoration: none; padding: 2px 0; }
.news-mini h3 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; margin: 6px 0 0; transition: color .15s; }
.news-mini a:hover h3 { color: #8fe9fb; }
.news-mini .meta { font-size: .8125rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.live-news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
@media (max-width: 900px) {
  .live-grid { grid-template-columns: 1fr; }
  .news-mini { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) { .live { margin-top: 0; } .live-grid > * { padding: 22px; } }

/* ---------- game cards ---------- */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-decoration: none; box-shadow: var(--shadow); }
.game-card .card-art { position: absolute; inset: 0; z-index: -2; }
.game-card .card-art picture, .game-card .card-art img { width: 100%; height: 100%; }
.game-card .card-art img { object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.game-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 13, 24, .98) 0%, rgba(10, 13, 24, .88) 34%, rgba(10, 13, 24, .2) 70%, rgba(10, 13, 24, .05) 100%); }
.game-card:hover .card-art img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .game-card .card-art img { transition: none; } .game-card:hover .card-art img { transform: none; } }
.game-card .card-body { padding: 34px 34px 32px; }
.game-card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.game-card h3 { font-size: 2.6rem; margin-bottom: 10px; }
.game-card h3.serif { font-family: var(--serif); font-weight: 600; letter-spacing: .08em; }
.game-card p { color: var(--soft); max-width: 30em; }
.game-card .ticks { margin: 18px 0 24px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--soft); font-size: .96875rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); transform-origin: center; }
.game-card .text-link { color: var(--text); }
.game-card:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }
@media (max-width: 900px) { .games { grid-template-columns: 1fr; } .game-card { min-height: 520px; } }
@media (max-width: 480px) { .game-card { min-height: 500px; } .game-card .card-body { padding: 24px 22px; } .game-card h3 { font-size: 2.1rem; } }

/* ---------- launcher features ---------- */
.launcher { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 32px; margin-top: 40px; }
.feature h3 { font-size: 1.125rem; margin: 16px 0 8px; letter-spacing: -0.015em; }
.feature p { color: var(--muted); font-size: .96875rem; margin: 0; }
.icon-tile { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.icon-tile svg { width: 24px; height: 24px; color: var(--text); }
@media (max-width: 960px) { .launcher { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; gap: 26px; } }

/* the launcher illustration */
.mock { position: relative; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(25, 211, 245, .04); overflow: hidden; font-size: .875rem; }
.mock::after { content: ""; position: absolute; inset: -1px; border-radius: 18px; pointer-events: none; background: linear-gradient(135deg, rgba(25, 211, 245, .35), transparent 30%, transparent 70%, rgba(155, 77, 255, .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.mock-bar img { width: 26px; }
.mock-bar b { font-size: .8125rem; letter-spacing: .06em; }
.mock-bar .dots { margin-left: auto; display: flex; gap: 8px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--raised); display: block; }
.mock-body { display: grid; grid-template-columns: minmax(0, 1fr) 190px; min-height: 360px; }
.mock-main { position: relative; isolation: isolate; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.mock-main picture { position: absolute; inset: 0; z-index: -2; }
.mock-main picture img { width: 100%; height: 100%; object-fit: cover; }
.mock-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 13, 24, .95), rgba(10, 13, 24, .1) 70%); }
.mock-main .mock-game { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .08em; margin-bottom: 4px; }
.mock-main .mock-ver { color: var(--muted); font-size: .75rem; margin-bottom: 12px; }
.mock-play { display: inline-flex; align-items: center; justify-content: center; width: 150px; height: 42px; border-radius: 10px; background: var(--grad-btn); font-weight: 700; letter-spacing: .06em; font-size: .875rem; box-shadow: 0 8px 26px -10px rgba(59, 108, 255, .9); }
.mock-side { border-left: 1px solid var(--line-soft); padding: 14px 12px; background: #0f1324; }
.mock-me { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: .8125rem; background: var(--raised); position: relative; flex: none; }
.avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #0f1324; background: var(--muted); }
.avatar.on::after { background: var(--online); } .avatar.away::after { background: var(--away); }
.mock-group { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 2px 8px; }
.friend { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.friend b { display: block; font-weight: 600; font-size: .8125rem; line-height: 1.2; }
.friend small { display: block; color: var(--muted); font-size: .71875rem; line-height: 1.3; }
.friend small.g { color: #7fe3a9; }
.mock-caption { margin-top: 14px; font-size: .8125rem; color: var(--muted); text-align: center; }
@media (max-width: 520px) { .mock-body { grid-template-columns: 1fr; } .mock-side { border-left: 0; border-top: 1px solid var(--line-soft); } .mock-main { min-height: 220px; } }

/* ---------- CTA band ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(155, 77, 255, .25), transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(25, 211, 245, .18), transparent 55%), var(--panel); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--soft); margin: 0; max-width: 34em; }

/* ---------- split rows (game pages) ---------- */
.rows { display: grid; gap: clamp(64px, 8vw, 112px); }
.row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.row:nth-child(even) .row-art { order: 2; }
.row-art { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel); }
.row-art img { aspect-ratio: 16 / 10; object-fit: cover; }
.row-text .num { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--cyan); margin-bottom: 14px; display: block; }
.row-text h3 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.25rem); margin-bottom: 16px; letter-spacing: -0.028em; }
.row-text p { color: var(--soft); }
.row-text .ticks { margin-top: 18px; display: grid; gap: 8px; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row:nth-child(even) .row-art { order: 0; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); grid-column: span 4; }
.gallery a.wide { grid-column: span 8; }
.gallery a.half { grid-column: span 6; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.gallery a.wide img { aspect-ratio: auto; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font-size: .875rem; font-weight: 550; background: linear-gradient(0deg, rgba(10, 13, 24, .9), transparent); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery a:hover img { transform: none; } }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery a, .gallery a.half { grid-column: span 1; } .gallery a.wide { grid-column: span 2; } .gallery a.wide img { aspect-ratio: 16 / 10; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .gallery a, .gallery a.wide { grid-column: span 1; } }

dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 7, 14, .94); color: var(--text); }
dialog.lightbox::backdrop { background: rgba(5, 7, 14, .9); }
.lightbox-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 24px; gap: 14px; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox p { margin: 0; color: var(--soft); font-size: .9375rem; text-align: center; }
.lightbox button { position: absolute; top: 14px; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox .lb-close { right: 14px; }
.lightbox .lb-prev { right: 118px; } .lightbox .lb-next { right: 66px; }

/* ---------- requirements ---------- */
.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.req-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.req-card h3 { font-size: 1.125rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.req-card .pill { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--raised); color: var(--soft); }
.req-card .pill.rec { background: rgba(59, 108, 255, .2); color: #b8c8ff; }
.req-card dl { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); }
.req-card dt, .req-card dd { padding: 11px 0; border-top: 1px solid var(--line-soft); margin: 0; font-size: .96875rem; }
.req-card dt { color: var(--muted); font-weight: 550; }
.note { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: rgba(25, 211, 245, .07); border: 1px solid rgba(25, 211, 245, .22); color: var(--soft); font-size: .96875rem; }
.note svg { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-top: 1px; }
.note p { margin: 0; }
.note strong { color: var(--text); }
@media (max-width: 760px) { .req { grid-template-columns: 1fr; } .req-card { padding: 22px; } .req-card dl { grid-template-columns: 104px minmax(0, 1fr); } }

/* ---------- news ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { font: inherit; font-size: .9375rem; font-weight: 600; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--soft); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.filters button:hover { color: var(--text); border-color: #3a4270; }
.filters button[aria-pressed="true"] { color: #fff; background: var(--grad-btn); border-color: transparent; }
.news-list { display: grid; gap: 20px; max-width: 860px; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); scroll-margin-top: 24px; }
.news-item:target { border-color: rgba(25, 211, 245, .55); box-shadow: 0 0 0 3px rgba(25, 211, 245, .12); }
.news-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; font-size: .875rem; color: var(--muted); }
.news-item h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.news-item h2 a { text-decoration: none; }
.news-item h2 a:hover { color: #8fe9fb; }
.news-item .body { color: var(--soft); }
.news-item .body ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.news-item .body li { margin: .3em 0; }
.news-item .body > :last-child { margin-bottom: 0; }
.news-item .news-img { margin: 0 0 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--raised); color: var(--soft); }
.badge.roma { background: rgba(214, 120, 70, .16); color: #f2b48e; }
.badge.openciv { background: rgba(25, 211, 245, .13); color: #8fe9fb; }
.badge.airgames { background: rgba(155, 77, 255, .16); color: #cfaefc; }
.badge.patch { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.state { max-width: 860px; padding: 48px 32px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.state h2 { font-size: 1.25rem; color: var(--text); margin-bottom: 8px; }
.state p { margin: 0 auto; max-width: 30em; }
.state .btn { margin-top: 20px; }
.skeleton { display: grid; gap: 20px; max-width: 860px; }
.skeleton div { height: 168px; border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--panel) 30%, var(--raised) 50%, var(--panel) 70%); background-size: 300% 100%; animation: shimmer 1.6s ease-in-out infinite; border: 1px solid var(--line-soft); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton div { animation: none; } }

/* ---------- download ---------- */
.dl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.dl-card { position: relative; overflow: hidden; background: radial-gradient(110% 120% at 100% 0%, rgba(155, 77, 255, .22), transparent 55%), radial-gradient(100% 120% at 0% 100%, rgba(25, 211, 245, .14), transparent 55%), var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); min-height: 300px; }
.dl-card h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 10px; }
.dl-card .lede { font-size: 1.0625rem; margin-bottom: 26px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .9375rem; color: var(--muted); }
.dl-meta b { color: var(--text); font-weight: 600; }
.hash { margin-top: 18px; font-size: .8125rem; color: var(--muted); word-break: break-all; }
.hash code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--soft); font-size: .78125rem; }
.dl-games { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.dl-games li { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; color: var(--soft); }
.dl-games li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.steps { counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 36px; color: var(--soft); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 750; font-size: .9375rem; color: var(--text); background: linear-gradient(var(--raised), var(--raised)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.steps strong { color: var(--text); display: block; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); }
.side-card h2 { font-size: 1.25rem; margin-bottom: 20px; }
.smartscreen { margin-top: 24px; }
.smartscreen h2 { font-size: 1.25rem; margin-bottom: 12px; }
.smartscreen p { color: var(--soft); }
.kbd { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); font-size: .875em; font-weight: 600; color: var(--text); white-space: nowrap; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 38px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: .96875rem; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; }
.field .hint { display: block; font-size: .8125rem; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.input-wrap { position: relative; }
.field input { width: 100%; height: 50px; padding: 0 14px; border-radius: 11px; border: 1px solid #2c3458; background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.field input:hover { border-color: #3a4372; }
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 211, 245, .18); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .err { display: block; color: #ff9aaa; font-size: .84375rem; margin-top: 7px; font-weight: 500; }
.input-wrap input { padding-right: 76px; }
.reveal { position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--raised); color: var(--soft); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.reveal:hover { color: var(--text); }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-size: .9375rem; background: rgba(255, 107, 129, .1); border: 1px solid rgba(255, 107, 129, .35); color: #ffc2cc; }
.form-alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-foot { margin: 18px 0 0; font-size: .875rem; color: var(--muted); text-align: center; }
.success { text-align: left; }
.success .check { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(61, 220, 132, .14); color: var(--online); margin-bottom: 18px; }
.success .check svg { width: 28px; height: 28px; }
.success h2 { margin-bottom: 10px; }
.success p { color: var(--soft); }
.benefits { display: grid; gap: 22px; margin-top: 34px; }
.benefits li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.benefits h3 { font-size: 1.0625rem; margin: 2px 0 4px; }
.benefits p { color: var(--muted); margin: 0; font-size: .9375rem; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } .form-shell .form-card { order: -1; } }

/* ---------- 404 ---------- */
.lost { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .code { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 850; letter-spacing: -0.06em; line-height: 1; margin-bottom: 10px; }
.lost .lede { margin: 18px auto 32px; }
.lost .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line-soft); background: #080b14; padding: 64px 0 28px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand p { margin-top: 14px; max-width: 22em; }
.site-footer h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer nav li { margin: 8px 0; }
.site-footer nav a { color: var(--soft); text-decoration: none; overflow-wrap: anywhere; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .875rem; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- entrance motion (restrained; none when reduced) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
  .hero-art img, .page-hero .hero-art img { animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .js .reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal-on-scroll.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ---------- small additions ---------- */
.gallery figure { margin: 0; height: 100%; }
.req-more { margin: 16px 0 0; font-size: .9375rem; }
.row-art-panel { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: clamp(20px, 4vw, 48px); background: radial-gradient(90% 120% at 100% 0%, rgba(155, 77, 255, .22), transparent 60%), radial-gradient(90% 120% at 0% 100%, rgba(25, 211, 245, .16), transparent 60%), var(--panel); }
.turn-panel { width: min(380px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
.turn-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.turn-head b { font-size: 1.0625rem; }
.turn-head small { margin-left: auto; color: var(--muted); font-size: .8125rem; }
.turn-game { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 10px; }
.turn-game span { font-weight: 600; font-size: .9375rem; }
.turn-game small { color: var(--muted); font-size: .8125rem; }
.turn-game.mine { background: var(--raised); }
.turn-game.mine small { color: #8fe9fb; }

/* ---------- refinements after the first look ---------- */
.section { padding: clamp(64px, 7vw, 104px) 0; }
.h2 + .lede, .display + .lede { margin-top: 16px; }
.hero-inner { max-width: 700px; }
.hero .display { font-size: clamp(2.6rem, 1.5rem + 3.9vw, 4.4rem); }
@media (min-width: 901px) { .live-grid:not(.one) { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }
.live-news-head .text-link { margin-top: 0; }
.online-count span { max-width: 9.5em; }
.news-mini .meta time { flex-basis: 100%; }
.mock-me b { display: block; font-weight: 600; font-size: .8125rem; line-height: 1.2; }
.mock-me small { display: block; font-size: .71875rem; color: #7fe3a9; }
@media (max-width: 900px) {
  .game-card { min-height: 0; justify-content: flex-start; }
  .game-card .card-art { position: relative; inset: auto; height: 240px; z-index: 0; }
  .game-card::before { inset: 0 0 auto; height: 240px; background: linear-gradient(0deg, var(--panel) 0%, rgba(18, 23, 41, 0) 55%); z-index: 1; }
  .game-card .card-body { position: relative; z-index: 2; margin-top: -40px; }
}
.gallery { grid-auto-rows: clamp(200px, 24vw, 340px); }
.gallery picture { height: 100%; }
.gallery img, .gallery a.wide img { height: 100%; aspect-ratio: auto; }
@media (max-width: 860px) {
  .gallery { grid-auto-rows: auto; }
  .gallery img, .gallery a.wide img { aspect-ratio: 16 / 10; height: auto; }
}
@media (min-width: 861px) { .row:nth-child(even) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.oc-hero::before { background: linear-gradient(90deg, rgba(10, 13, 24, .92) 0%, rgba(10, 13, 24, .55) 42%, rgba(10, 13, 24, 0) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 24, 0) 35%); }
.oc-hero .hero-art img { object-position: 70% 40%; }
@media (max-width: 760px) { .oc-hero::before { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 260px), rgba(10, 13, 24, 0) calc(100% - 140px)); } }
.steps { list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .form-shell > div:last-child { order: -1; } }
@media (max-width: 760px) {
  .page-hero .hero-art { height: 340px; }
  .page-hero::before { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 340px), rgba(10, 13, 24, .15) calc(100% - 170px), rgba(10, 13, 24, .6) 100%); }
  .oc-hero::before { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) calc(100% - 340px), rgba(10, 13, 24, 0) calc(100% - 170px)); }
  .page-hero .wrap { margin-top: -70px; }
}

/* ---------- shorter copy ---------- */
.section-title { margin-bottom: clamp(28px, 3.5vw, 44px); }
.launcher .h2 { margin-bottom: 8px; }
.features { margin-top: 32px; }
.game-card { min-height: 480px; }
.game-card h3 { margin-bottom: 12px; }
.game-card p { margin-bottom: 22px; }
.row-text h3 { margin-bottom: 14px; }
.row-text p { font-size: 1.0625rem; max-width: 30em; }
.req-one { grid-template-columns: minmax(0, 560px); }
.req-foot { margin: 20px 0 0; font-size: .96875rem; }
.steps li { min-height: 36px; padding-top: 5px; }
.steps-foot { margin: 22px 0 0; font-size: .9375rem; }
.smartscreen p { margin: 0; }
.lost-actions { margin-top: 28px; }
.page-head { padding-bottom: 32px; }
.form-shell { grid-template-columns: minmax(0, 480px); }
@media (max-width: 900px) { .game-card { min-height: 0; } }
.dl-card h2 { margin-bottom: 22px; } .dl-card .lede { margin-bottom: 22px; }
.form-card [data-state] > p { color: var(--soft); }
.form-card [data-state] > h2 { margin-bottom: 10px; outline: none; }
.form-card [data-state] > p:last-child { margin-bottom: 0; }
.working { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--soft); }
.working .spinner { border-color: rgba(232, 236, 248, .25); border-top-color: var(--cyan); }
