/* Zillville site. Colours follow the in-game palettes (ThemePalettes): sodium gold accent on night asphalt. */
:root {
  --bg: #0d0b10;
  --bg-alt: #15121a;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.10);
  --text: #ede4d1;
  --muted: #a49c8f;
  --gold: #f2bd70;
  --gold-deep: #c98a2e;
  --sky: #94d1fa;
  --ember: #f78f52;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3, h4 { font-family: Oswald, Impact, sans-serif; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(28px, 4.5vw, 44px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
code { background: var(--panel); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }

/* Pixel art: whole-number scaling, never smoothed. */
.hero-logo, .nav-logo img, .footer img, .hero, .zone, .final { image-rendering: pixelated; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 820px; }

/* Announcement bar */
.announce {
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 8px 16px; font-size: 14px;
  background: linear-gradient(90deg, #2a1a0c, #3b2610, #2a1a0c);
  border-bottom: 1px solid rgba(242, 189, 112, .25);
}
.announce a { color: var(--text); text-decoration: none; }
.announce a:hover { color: var(--gold); }
.announce-tag { background: var(--gold); color: #1a1208; font-weight: 600; font-size: 12px; padding: 1px 8px; border-radius: 99px; text-transform: uppercase; }
.announce-link { color: var(--gold) !important; font-weight: 600; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 8px max(16px, calc((100% - var(--wrap)) / 2 + 16px));
  background: rgba(13, 11, 16, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-logo img { width: 112px; height: auto; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.btn span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn small { font-weight: 400; font-size: 13px; opacity: .8; }
.btn-gold { background: linear-gradient(180deg, #f8cd86, var(--gold-deep)); color: #1a1208; box-shadow: 0 6px 24px rgba(242, 160, 60, .25); }
.btn-gold:hover { box-shadow: 0 10px 32px rgba(242, 160, 60, .4); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-small { padding: 8px 18px; font-size: 15px; }
.btn-big { padding: 14px 24px; font-size: 17px; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 860px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 56px 16px 72px;
  background: linear-gradient(180deg, rgba(13,11,16,.3), rgba(13,11,16,.6) 62%, #0d0b10), var(--art) center / cover no-repeat;
}
.hero-inner { max-width: 860px; }
.badge { display: inline-block; border: 1px solid rgba(242, 189, 112, .5); color: var(--gold); padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: rgba(0,0,0,.35); }
.hero-logo { width: min(674px, 92%); height: auto; margin: 20px auto 12px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.hero h1 { font-size: clamp(22px, 3.4vw, 34px); text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.lead { font-size: clamp(16px, 2vw, 19px); color: #d9d0bf; max-width: 640px; margin: 0 auto 28px; text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.platforms { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.platforms li { font-size: 13px; padding: 4px 12px; border-radius: 99px; background: rgba(0,0,0,.45); border: 1px solid var(--line); color: var(--muted); }
.platforms li.on { color: var(--text); border-color: rgba(242, 189, 112, .5); }
.platforms em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sky); margin-left: 4px; }

/* The download button shows the visitor's OS icon (site.js sets data-os); the other systems link below it. */
.os-icon { display: none; }
[data-download]:not([data-os]) .os-windows, [data-os="windows"] .os-windows, [data-os="macos"] .os-macos, [data-os="linux"] .os-linux { display: block; }
.other-os { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.other-os a { color: var(--text); }
.other-os a:hover { color: var(--gold); }

.smartscreen p + p { margin-top: 6px; }
.smartscreen { margin: 22px auto 0; max-width: 560px; text-align: left; font-size: 14px; background: rgba(0,0,0,.5); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; }
.smartscreen summary { cursor: pointer; color: var(--muted); }
.smartscreen p { margin: 10px 0 2px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 6px; }
.section-lead { color: var(--muted); max-width: 720px; font-size: 17px; }

/* Trailer */
.trailer { position: relative; margin: 28px 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.trailer video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.trailer-tag { position: absolute; left: 12px; bottom: 12px; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: var(--muted); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: rgba(242, 189, 112, .4); transform: translateY(-3px); }
.card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.card h3 { margin: 16px 18px 6px; }
.card p { margin: 0 18px 18px; color: var(--muted); font-size: 15px; }

/* News */
.news { display: grid; gap: 16px; margin-top: 24px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.post:first-child { border-color: rgba(242, 189, 112, .45); }
.post-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.post-head h3 { margin: 0; }
.post time { color: var(--muted); font-size: 14px; }
.post-latest { background: var(--gold); color: #1a1208; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; text-transform: uppercase; }
.post ul { margin: 0; padding-left: 20px; color: #d6cdbd; }
.post li { margin: 3px 0; }
.news-more summary { cursor: pointer; color: var(--gold); font-weight: 600; margin-top: 4px; }
.news-more .news { margin-top: 16px; }

/* City zones */
.zones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 32px 0; }
.zone {
  position: relative; min-height: 260px; padding: 16px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(13,11,16,.05), rgba(13,11,16,.92) 70%), var(--art) center / cover no-repeat;
}
.zone h3 { margin-bottom: 4px; }
.zone p { margin: 0; font-size: 14px; color: #cfc6b5; }
.zone-lv { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: rgba(0,0,0,.65); color: var(--gold); }
.zone-soon { background: repeating-linear-gradient(135deg, #17141c 0 14px, #1b1720 14px 28px); border-style: dashed; }
.zone-soon .zone-lv { color: var(--sky); }
.map-shot { margin: 0 auto; max-width: 640px; }
.map-shot img { border-radius: var(--radius); border: 1px solid var(--line); }
.map-shot figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Fair play + FAQ */
.fair { list-style: none; padding: 0; margin: 20px 0 56px; display: grid; gap: 10px; }
.fair li { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 6px; padding: 12px 16px; color: var(--muted); }
.fair strong { color: var(--text); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); }

/* Final CTA */
.final { padding: 110px 0; text-align: center; background: linear-gradient(180deg, var(--bg), rgba(13,11,16,.55) 30%, rgba(13,11,16,.55) 70%, var(--bg)), var(--art) center / cover no-repeat; }
.final h2 { font-size: clamp(32px, 6vw, 60px); text-shadow: 0 4px 20px rgba(0,0,0,.8); margin-bottom: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: #0a080c; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer img { width: 112px; height: auto; margin-bottom: 10px; }
.footer h4 { font-size: 15px; color: var(--muted); }
.footer a { display: block; color: var(--text); text-decoration: none; margin: 4px 0; font-size: 15px; }
.footer a:hover { color: var(--gold); }
.copyright { font-size: 13px; margin-top: 32px; }

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .zone-soon { grid-column: span 2; min-height: 140px; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-logo { margin-right: auto; }
  .cards, .zones { grid-template-columns: 1fr; }
  .zone-soon { grid-column: auto; }
  .zone { min-height: 200px; }
  .section { padding: 64px 0; }
  .btn-big { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Legal pages (privacy.html, terms.html, legal.html). */
.legal { padding-top: 40px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 4px; }
.legal h2 { font-size: 22px; margin-top: 36px; color: var(--gold); }
.legal h3 { font-size: 16px; margin-top: 22px; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin: 4px 0; }
.legal a { word-break: break-word; }
.footer .copyright a { display: inline; margin: 0; font-size: inherit; color: var(--muted); text-decoration: underline; }
.footer .copyright a:hover { color: var(--gold); }
.legal + .footer { padding-top: 8px; }
