/* Flag Conquest site. Plain CSS, no external fonts. */
:root {
  --bg: #0f0e14;
  --bg-2: #17151f;
  --bg-3: #221f2d;
  --line: #34304a;
  --text: #ece8dc;
  --muted: #b3aec2;
  --gold: #e3c55b;
  --gold-dark: #8a6a24;
  --link: #f0d77d;
  --red: #c8423a;
  --gutter: 16px;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { color: var(--gold); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(1.6rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--gold); color: #111; padding: 8px 12px; }

/* top bar */
.topbar { background: var(--bg-2); border-bottom: 2px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; }
.nav ul { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav ul a:hover { color: var(--gold); }

/* hero */
.hero-band {
  height: 400px;
  background: #4f8fc0 url("../img/hero-1920.png") center 78% / 1920px 620px no-repeat;
  image-rendering: pixelated;
  border-bottom: 4px solid #000;
}
.hero-text { text-align: center; padding-top: 28px; padding-bottom: 12px; }
.logo { margin: 0 auto 18px; width: 640px; }
.logo-sm { width: 320px; margin: 24px 0 8px; }
.hero h1 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); max-width: 30ch; margin: 0 auto .6em; }
.lede { font-size: 1.2rem; color: var(--text); max-width: 46em; }
.hero .lede { margin: 0 auto 1.2em; }
.cta-row { margin: 8px 0 8px; }
.cta-sub { color: var(--muted); font-size: 1rem; }

/* buttons: square, chunky, like the game's UI */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #1a1405;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 20px;
  border: 3px solid #000;
  box-shadow: inset 0 -4px 0 var(--gold-dark), 0 4px 0 #000;
  margin: 0 8px 10px 0;
  line-height: 1.25;
}
.btn:hover { background: #f2d978; color: #000; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--gold-dark), 0 2px 0 #000; }
.btn-big { font-size: 1.35rem; padding: 18px 28px; }
.btn-ghost { background: var(--bg-3); color: var(--gold); box-shadow: inset 0 -4px 0 #000, 0 4px 0 #000; border-color: var(--gold-dark); }
.btn-ghost:hover { background: var(--line); color: #fff; }

/* sections */
.block { padding-top: 40px; padding-bottom: 8px; }
.page { padding-bottom: 40px; }
.small, .meta { color: var(--muted); font-size: .92rem; }
.steam-widget { max-width: 646px; }
.steam-widget iframe { display: block; width: 100%; height: 190px; border: 0; background: var(--bg-2); }
.noframe { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.video { margin: 0; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 3px solid #000; }
.video figcaption { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.steps { padding-left: 1.3em; max-width: 46em; }
.steps li { margin-bottom: .7em; }
.steps strong { color: var(--gold); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shot { margin: 0; }
.shot a { display: block; border: 3px solid #000; background: #000; }
.shot img { width: 100%; aspect-ratio: 16 / 9; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* press kit */
.facts { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { overflow-wrap: anywhere; min-width: 0; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--gold); font-weight: 700; }
.placeholder { background: var(--red); color: #fff; font-weight: 800; padding: 1px 8px; font-family: ui-monospace, Consolas, monospace; }
.quote { background: var(--bg-2); border-left: 4px solid var(--gold); padding: 16px 20px; max-width: 48em; }
.quote.long p:last-child { margin-bottom: 0; }
.quote h3 { margin-top: 1em; }
.dl-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; }
.dl-grid.art { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.dl-grid p { font-size: .95rem; margin: 8px 0 0; overflow-wrap: anywhere; }
.dl-art > a { display: flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1px solid var(--line); padding: 8px; height: 240px; }
.dl-grid > li { min-width: 0; }
.dl-art img { max-height: 220px; width: auto; max-width: 100%; min-width: 0; object-fit: contain; }
.dl-art.k-logo > a { background: #2b2838; }
.dl-shot .shot a { border-width: 2px; }
.dl-clips { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.dl-clip { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; background: var(--bg-2); border: 1px solid var(--line); padding: 12px; }
.dl-clip img { width: 240px; aspect-ratio: 16 / 9; }
.dl-clip p { margin: 0 0 6px; }

/* dev diary */
.diary { max-width: 820px; }
.diary header { margin: 32px 0 16px; }
.kicker { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; margin-bottom: .4em; }
.diary h2 { margin-top: 1.4em; }
.diary figure { margin: 20px 0 24px; }
.diary figure a { display: block; border: 3px solid #000; background: #000; }
.diary-cta { margin-top: 32px; padding-top: 20px; border-top: 2px solid var(--line); }
.notfound { min-height: 50vh; }

/* footer */
.foot { margin-top: 48px; background: var(--bg-2); border-top: 2px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: .95rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0 0 12px; }
.foot p { margin: 0; max-width: 52em; }

@media (max-width: 1100px) {
  .dl-grid.art { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shots, .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .hero-band { height: 248px; background-image: url("../img/hero-768.png"); background-size: 768px 248px; }
  .logo { width: 320px; }
  .lede { font-size: 1.08rem; }
  .btn-big { font-size: 1.15rem; padding: 16px 18px; display: block; margin-right: 0; }
  .shots { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; gap: 8px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .dl-grid, .dl-grid.art { grid-template-columns: 1fr; }
  .dl-clip { grid-template-columns: 1fr; }
  .dl-clip img { width: 100%; }
  .nav { padding-top: 8px; padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}

/* click-to-play block */
.play-box { position: relative; max-width: var(--max); aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--line); overflow: hidden; }
.play-poster { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.play-go { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); white-space: nowrap; }
.play-go:active { transform: translateX(-50%) translateY(2px); }
.play-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; max-width: none; }
.play-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; }
.winter-only { display: none; margin: 0 0 10px; color: var(--gold); }
html.winter .winter-only { display: block; }
.wl-fixed { display: none; }
@media (min-width: 1000px) { .wl-fixed { display: inline-block; position: fixed; right: 16px; bottom: 16px; z-index: 6; padding: 10px 14px; font-size: .95rem; } }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
/* legal pages (text is the game's own, word for word) */
.legal { max-width: 760px; padding-top: 24px; }
.legal h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
.legal h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; color: var(--gold); }
.legal .updated { color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }
.legal table { border-collapse: collapse; width: 100%; margin: 0 0 .9rem; font-size: .95rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.legal ol, .legal ul { padding-left: 1.3rem; }
.legal footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
[hidden] { display: none !important; }
