/* voxbarrage.com: dark, in the game's colors (yellow of the menus, orange of the logo's glow). Phone first. */
:root {
  color-scheme: dark;
  --bg: #0f1116;
  --surface: #181b23;
  --surface-2: #20242e;
  --line: #2c313d;
  --text: #e8eaf0;
  --muted: #9aa1b2;
  --accent: #ffd23f;
  --accent-ink: #1a1400;
  --fire: #ff7a1a;
  --radius: 14px;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Rubik, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font-size: clamp(26px, 5vw, 40px); font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; }
h2::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 12px; background: linear-gradient(90deg, var(--accent), var(--fire)); border-radius: 2px; }
h2.sub { margin-top: 56px; font-size: clamp(22px, 4vw, 30px); }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.icon { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; border: 0; font: 700 16px/1.2 Rubik, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn small { display: block; font-weight: 500; font-size: 13px; opacity: .8; margin-top: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 24px rgba(255, 210, 63, .25); padding: 14px 22px; }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(255, 210, 63, .4); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-small { padding: 9px 14px; font-size: 14px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-play { background: var(--accent); color: var(--accent-ink); padding: 8px 16px; font-size: 14px; }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top)); background: linear-gradient(rgba(15, 17, 22, .85), rgba(15, 17, 22, 0)); transition: background .2s; }
.top.solid { background: rgba(15, 17, 22, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; letter-spacing: .04em; margin-right: auto; }
.brand img { border-radius: 7px; }
.brand span { display: none; }
.nav { display: none; gap: 22px; }
.nav a, .lang { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover, .lang:hover { color: var(--text); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 22, .1) 0%, rgba(15, 17, 22, .35) 45%, rgba(15, 17, 22, .97) 100%), linear-gradient(90deg, rgba(15, 17, 22, .7), rgba(15, 17, 22, 0) 60%); }
.hero-body { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 96px var(--gutter) 40px; }
.logo { width: min(100%, 560px); filter: drop-shadow(0 6px 30px rgba(255, 122, 26, .35)); }
.tagline { margin-top: 10px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; font-size: 13px; color: var(--accent); }
.lead { margin-top: 14px; max-width: 34em; font-size: 17px; color: #d5d8e0; }
.cta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.cta .btn { justify-content: center; }
.chip { display: inline-block; margin-top: 18px; padding: 4px 10px; border-radius: 99px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }

/* Sections */
.section { max-width: 1180px; margin: 0 auto; padding: 64px var(--gutter); }
.section-lead { margin-top: 16px; max-width: 46em; color: var(--muted); font-size: 17px; }
.features { display: grid; gap: 14px; margin-top: 32px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .icon { width: 34px; height: 34px; padding: 6px; border-radius: 9px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--fire)); }
.feature h3 { margin-top: 14px; }
.feature p { margin-top: 8px; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; margin: 28px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.shot { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; scroll-snap-align: start; background: var(--surface); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.04); }
.shot span { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 6px; font: 700 13px Rubik, sans-serif; color: var(--text); background: rgba(15, 17, 22, .75); }

/* Maps and modes */
.maps { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.map { display: grid; grid-template-columns: 112px 1fr; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map img { width: 100%; height: 100%; object-fit: cover; }
.map-body { padding: 12px 14px; }
.map-body p:last-child { margin-top: 6px; font-size: 14px; color: #c4c8d2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.modes { display: grid; gap: 12px; margin-top: 28px; }
.mode { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--accent); }
.mode p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Downloads */
.platforms { display: grid; gap: 14px; margin-top: 28px; }
.platform { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.platform .icon { width: 36px; height: 36px; color: var(--text); }
.platform h3 { margin-top: 12px; font-size: 20px; }
.platform p { margin-top: 4px; font-size: 14px; }
.platform-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.platform.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.soon { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--accent); background: rgba(255, 210, 63, .1); }
.note { margin-top: 16px; color: var(--muted); }
.note a { color: var(--accent); font-weight: 700; text-decoration: none; }
.req { margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--surface-2); }
.req p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* News */
.news { display: grid; gap: 10px; margin-top: 28px; }
.release { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.release summary { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.release summary::-webkit-details-marker { display: none; }
.release summary::after { content: '+'; margin-left: auto; font-weight: 700; color: var(--muted); }
.release[open] summary::after { content: '−'; }
.release-v { font-weight: 900; font-size: 18px; color: var(--accent); }
.release ul { margin: 0; padding: 0 18px 16px 36px; color: #c4c8d2; font-size: 15px; }
.release li { margin-bottom: 6px; }
.btn-more { margin-top: 14px; }

/* Closing call */
.final { text-align: center; }
.final h2::after { margin-left: auto; margin-right: auto; }
.final p { margin: 14px 0 24px; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot img { border-radius: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Picture viewer */
.viewer { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.viewer::backdrop { background: rgba(5, 6, 9, .9); }
.viewer img { max-width: 96vw; max-height: 92vh; border-radius: 10px; }
.viewer .close { position: fixed; top: 12px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; font-size: 28px; color: var(--text); background: rgba(255, 255, 255, .12); cursor: pointer; }

/* Wider phones held sideways and up */
@media (min-width: 600px) {
  .brand span { display: inline; }
  .cta { flex-direction: row; flex-wrap: wrap; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-auto-columns: 46%; }
  .maps { grid-template-columns: repeat(2, 1fr); }
  .map { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .map img { aspect-ratio: 4 / 3; height: auto; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(3, 1fr); }
}
/* Phones sideways: short screens get a hero that fits without scrolling. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; align-items: center; }
  .hero-body { padding-top: 64px; padding-bottom: 20px; }
  .logo { width: 300px; }
  .lead { font-size: 15px; margin-top: 8px; max-width: 30em; }
  .cta { margin-top: 14px; }
  .chip { display: none; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .nav { display: flex; margin-right: 12px; }
  .hero-body { padding-bottom: 80px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; margin: 28px 0 0; padding: 0; overflow: visible; }
  .gallery .shot:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery .shot:first-child img { height: 100%; }
  .maps { grid-template-columns: repeat(3, 1fr); }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 96px var(--gutter); }
}
@media (min-width: 1200px) { .maps { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } html { scroll-behavior: auto; } }
