/* Dead Road: Tactical Squad website: the game's look (gfx/Palette.kt): dusk asphalt, slate panels, gold and
   red, Nunito ExtraBold for headings. Dark only, like the game. No inline styles anywhere (CSP style-src 'self');
   logical properties throughout. */
@font-face {
  font-family: "Nunito Game";
  src: url("fonts/nunito_extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --asphalt: #14161C;
  --asphalt-2: #1C1F27;
  --panel: #252A35;
  --panel-soft: rgba(37, 42, 53, 0.82);
  --slate: #3A4254;
  --ink: #F1EEE6;
  --ink-soft: #B9BFCC;
  --line: rgba(241, 238, 230, 0.14);
  --gold: #F5C542;
  --gold-deep: #C9921E;
  --red: #D6453D;
  --green: #4CAF50;
  --blue: #3F7FD0;
  --hazard: repeating-linear-gradient(-45deg, #F5C542 0 14px, #1C1F27 14px 28px);
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  --head: "Nunito Game", "Nunito", ui-rounded, "SF Pro Rounded", var(--script), sans-serif;
  --script: system-ui;
  --measure: 64ch;
}
:lang(ja) { --script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP"; }
:lang(zh-Hans) { --script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC"; }
:lang(zh-Hant) { --script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC"; }
:lang(ko) { --script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR"; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--asphalt); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); overflow-x: hidden;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, var(--script), "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(214, 69, 61, 0.22), transparent 70%),
    radial-gradient(ellipse 70% 40% at 85% 12%, rgba(245, 197, 66, 0.12), transparent 70%),
    linear-gradient(180deg, #221E26 0%, var(--asphalt) 38%, var(--asphalt) 100%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #FFE08A; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; }
:lang(ja) h1, :lang(ja) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(ko) h1, :lang(ko) h2 { font-family: var(--script), sans-serif; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--panel); color: var(--ink); padding: 8px 12px; border-radius: 10px; z-index: 30; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* Hub band and header ---------------------------------------------------------------------- */
.hubbar { background: rgba(0, 0, 0, 0.35); border-bottom: 1px solid var(--line); }
.hubbar-in { max-width: 1120px; margin: 0 auto; padding: 8px 20px; }
.top { position: relative; max-width: 1120px; margin: 0 auto; padding: 12px 20px 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.25rem; }
.brand img { border-radius: 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.nav a { padding: 6px 12px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--asphalt); background: var(--gold); }
.tag { font-size: 0.7em; padding: 1px 6px; border-radius: 6px; background: var(--slate); color: var(--ink); margin-inline-start: 4px; vertical-align: middle; }
.lang-menu summary {
  list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { box-shadow: inset 0 0 0 2px var(--gold); }
.lang-menu ul {
  position: absolute; inset-inline-end: 16px; top: calc(100% - 4px); z-index: 20;
  width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px;
  margin: 0; padding: 10px; list-style: none;
  background: var(--panel); border-radius: 18px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.lang-menu li a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-menu li a:hover { background: var(--asphalt-2); }
.lang-menu li a[aria-current="true"] { color: var(--gold); background: var(--asphalt); }

/* Layout and buttons ----------------------------------------------------------------------- */
main { max-width: 1120px; margin: 0 auto; padding: 8px 16px 56px; }
section { margin: 56px 0; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 26px 0 0; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 14px; font-family: var(--head); font-weight: 800; font-size: 1.05rem;
  text-decoration: none; color: #fff; background: linear-gradient(180deg, #5CC060, #3E9842);
  box-shadow: 0 4px 0 #2B6E2F, 0 10px 24px rgba(0, 0, 0, 0.4); transition: transform 0.12s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn-soft { background: linear-gradient(180deg, #4C8EDE, #3570BC); box-shadow: 0 4px 0 #24508A, 0 10px 24px rgba(0, 0, 0, 0.4); }
.btn-hub { padding: 6px 14px; font-size: 0.9rem; border-radius: 999px; color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.btn-hub:hover { color: var(--gold); }
.soon {
  display: inline-block; padding: 12px 22px; border-radius: 14px; font-family: var(--head); font-weight: 800;
  color: var(--asphalt); background: var(--gold); position: relative;
  box-shadow: 0 4px 0 var(--gold-deep), 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Hero ------------------------------------------------------------------------------------- */
.hero { display: grid; gap: 28px; align-items: center; margin-top: 28px; }
.hero-emblem { width: 120px; margin-bottom: 14px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)); }
.hero h1 { text-shadow: 0 3px 0 #000, 0 0 30px rgba(214, 69, 61, 0.35); }
.lead { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); color: var(--ink); margin: 0 0 0.8em; max-width: var(--measure); }
.hero .lead { color: var(--ink-soft); }
.hero-art { justify-self: center; }
.phone { margin: 0; width: min(300px, 72vw); border: 7px solid #2B303C; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 2px #000; transform: rotate(2deg); }
.hero-icon { width: min(280px, 60vw); border-radius: 48px; box-shadow: var(--shadow); }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.2fr 1fr; }
  .hero-emblem { width: 150px; }
}

/* Intro and the class parade ---------------------------------------------------------------- */
.intro { max-width: 760px; margin-inline: auto; text-align: center; }
.intro .lead { margin-inline: auto; }
.parade { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 0; padding: 0; list-style: none; }
.parade img { width: 72px; height: 72px; padding: 8px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 620px) { .parade img { width: 88px; height: 88px; } }

/* Feature cards (the listing's sections) --------------------------------------------------- */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 48px 0; }
.feature {
  margin: 0; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--panel-soft);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow); position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--hazard); }
.feature-icon { width: 56px; height: 56px; margin-bottom: 10px; }
.feature h2 { font-size: 1.15rem; letter-spacing: 0.02em; color: var(--gold); }
.feature p, .feature ul { margin: 0; color: var(--ink-soft); }
.feature ul { padding-inline-start: 1.1em; }
.feature li { margin: 4px 0; }

/* Chapters --------------------------------------------------------------------------------- */
.chapters h2, .shots h2 { text-align: center; }
.chapter-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; padding: 0; list-style: none; }
.chapter-strip figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.chapter-strip img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.chapter-strip figcaption { padding: 10px 14px 12px; font-weight: 800; font-family: var(--head); }
.chapter-n { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }

/* Screenshots ------------------------------------------------------------------------------ */
.shot-strip {
  display: flex; gap: 18px; margin: 0; padding: 8px 4px 20px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.shot-strip li { flex: 0 0 min(220px, 62vw); scroll-snap-align: center; }
.shot-strip figure { margin: 0; }
.shot { border: 6px solid #2B303C; border-radius: 26px; box-shadow: var(--shadow); background: var(--asphalt); }
.shot-strip figcaption { margin-top: 12px; text-align: center; font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
@media (min-width: 1100px) { .shot-strip { justify-content: center; } .shot-strip li { flex-basis: 168px; } }

/* Outro ------------------------------------------------------------------------------------ */
.outro {
  display: grid; justify-items: center; text-align: center; padding: 44px 24px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(245, 197, 66, 0.16), transparent 70%), var(--panel-soft);
  border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line);
}
.outro::before, .outro::after { content: ""; position: absolute; inset-inline: 0; height: 10px; background: var(--hazard); }
.outro::before { top: 0; }
.outro::after { bottom: 0; }
.outro-line { margin: 0; max-width: var(--measure); font-weight: 700; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); }
.outro .cta { justify-content: center; }

/* Legal and support pages ------------------------------------------------------------------ */
.prose { max-width: 780px; margin: 32px auto; padding: 30px clamp(18px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--panel-soft); box-shadow: inset 0 0 0 1px var(--line); }
.prose h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
.prose h2 { margin-top: 1.8em; color: var(--gold); font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-inline-start: 1.3em; }
.updated { color: var(--ink-soft); margin-top: -0.3em; }
.table { overflow-x: auto; margin: 1em 0; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.95rem; }
th, td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--gold); font-weight: 800; }
code { font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--asphalt); }
.notfound { text-align: center; }
.notfound .hero-emblem { margin-inline: auto; }
.notfound .cta { justify-content: center; }

/* Footer ----------------------------------------------------------------------------------- */
.foot { max-width: 1120px; margin: 0 auto; padding: 26px 20px 40px; color: var(--ink-soft); text-align: center; border-top: 1px solid var(--line); font-size: 0.95rem; }
.foot p { margin: 6px 0; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .phone { transform: none; } }
