@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&display=swap');

/* TankForge pages. The frame (ground, panels, text, lines, links, buttons, footer) is Dave on Duty:
   the tokens below plus /dodgames/extras.css, which loads after this sheet and adds the effects.
   TankForge keeps its own voice inside its own content: the gold stencil of Barlow Condensed for
   the title, the tagline, its card and battle-mode headings and the numbered plates. */
:root {
  color-scheme: dark;
  /* Dave on Duty frame */
  --bg: #04060d;
  --bg-2: #0d142b;
  --panel: #111a36;
  --ink: #e8ecff;
  --ink-2: #9aa5c9;
  --ink-3: #8a95bb;
  --line: rgba(148, 163, 255, .14);
  --line-2: rgba(148, 163, 255, .24);
  --link: #8fd8ff;
  --link-2: #c3ecff;
  --violet: #8b93ff;
  --head: 'Sora', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* TankForge, inside its own content */
  --gold: #e2b86f;
  --green: #63e6aa;
  --stencil: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 16px; background: var(--link); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
/* the game's stencil: its title, tagline, and the headings of its own cards */
.hero h1, .tagline, .card h3, .mode h3 { font-family: var(--stencil); font-weight: 600; line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--link); font: 700 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; }

.masthead { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; text-decoration: none; }
.masthead nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.masthead nav a { color: var(--ink-2); text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current='page'] { color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: 'head art' 'body art'; column-gap: 64px; padding: 72px 0 80px; }
.hero-head { grid-area: head; align-self: end; }
.hero-body { grid-area: body; }
.hero-art { grid-area: art; align-self: center; margin: 0; }
.hero-art img { width: 100%; border: 1px solid var(--line); border-radius: 20px; }
.app-icon { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 11px; }
.hero h1 { font-size: clamp(64px, 9vw, 116px); letter-spacing: .015em; }
.hero h1 span { color: var(--gold); }
.tagline { margin: 8px 0 0; color: var(--gold); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: .05em; }
.lead { max-width: 35em; margin: 28px 0 30px; color: var(--ink-2); font-size: 17.5px; }
.release { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.release-mark { color: var(--green); font-size: 26px; line-height: 1; }
.release small { display: block; color: var(--ink-3); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.release strong { font-size: 16px; font-weight: 600; }
a.release { color: inherit; text-decoration: none; transition: border-color .2s; }
a.release:hover { border-color: var(--green); }
.fine { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 13px; }

.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: end; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { max-width: 40em; margin: 0 0 8px; color: var(--ink-2); font-size: 16.5px; }

/* TankForge's own cards: stencil headings and a gold numbered plate */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.card { padding: 28px 28px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.num { display: inline-block; padding: 2px 8px 1px; border: 1px solid rgba(226, 184, 111, .5); border-radius: 4px; color: var(--gold); font: 700 14px/1.3 var(--stencil); letter-spacing: .2em; }
.card h3 { margin: 16px 0 10px; font-size: 28px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mode { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.mode h3 { margin-bottom: 8px; color: var(--gold); font-size: 25px; letter-spacing: .04em; }
.mode p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.note { margin: 22px 0 0; padding: 17px 20px; border-left: 3px solid #818cf8; border-radius: 0 12px 12px 0; background: var(--bg-2); color: var(--ink-2); font-size: 14px; }
.note strong { color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.gallery img { width: 100%; }
.gallery figcaption { margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.gallery figcaption strong { display: block; color: var(--ink); font-weight: 600; }

.help { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.help h2 { margin-bottom: 18px; font-size: clamp(30px, 3.6vw, 42px); }
.help p { margin: 0 0 22px; color: var(--ink-2); }
.contact { color: var(--link); font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(143, 216, 255, .5); padding-bottom: 4px; overflow-wrap: anywhere; }
.contact:hover { color: var(--link-2); border-color: var(--link-2); }
.links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.links a:hover strong { color: var(--link); }
.links strong { display: block; font-size: 16.5px; font-weight: 600; }
.links small { display: block; color: var(--ink-2); font-size: 13.5px; }
.links .arrow { color: var(--violet); }

.doc { max-width: 800px; margin: 0 auto; padding: 60px 0 88px; }
.doc h1 { margin-bottom: 24px; font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.doc-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 36px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); font-size: 15px; }
.doc-meta dt { color: var(--ink-3); }
.doc-meta dd { margin: 0; }
.doc h2 { margin: 54px 0 14px; font-size: clamp(24px, 2.8vw, 30px); }
.doc h3 { margin: 28px 0 8px; font: 600 17px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
.doc p, .doc li, .doc td { color: var(--ink-2); }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--violet); }
.doc strong, .doc .ui { color: var(--ink); font-weight: 600; }
.doc a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--link-2); }
.doc .lede { color: var(--ink); font-size: 18.5px; }
.toc { margin: 0 0 8px; padding: 18px 24px 16px; border: 1px solid var(--line); border-radius: 14px; }
.doc .toc h2 { margin: 0 0 10px; color: var(--link); font: 700 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.doc .note { margin: 24px 0; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: linear-gradient(92deg, #818cf8 0%, #22d3ee 100%); color: #04101f; font-weight: 700; text-decoration: none; }
.doc-foot { margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: 'head' 'art' 'body'; padding: 56px 0 64px; }
  .hero-art { margin: 32px 0 30px; }
  .section-head, .help { grid-template-columns: 1fr; gap: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 86px; flex-wrap: wrap; gap: 12px; padding: 18px 0; }
  .masthead nav { flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; }
  .hero { padding: 40px 0 52px; }
  .hero h1 { font-size: clamp(44px, 13.5vw, 64px); overflow-wrap: normal; }
  .hero-art { margin: 26px 0 24px; }
  .hero-art img { border-radius: 14px; }
  .lead { margin-top: 0; font-size: 16.5px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2, .help h2 { font-size: 29px; }
  .cards, .mode-grid { grid-template-columns: 1fr; gap: 12px; }
  .card, .mode { padding: 22px; }
  .gallery { gap: 22px 12px; }
  .gallery a { border-radius: 12px; }
  .gallery figcaption { font-size: 13px; }
  .doc { padding: 40px 0 64px; }
  .doc h1 { font-size: 36px; }
  .doc-meta { grid-template-columns: 1fr; gap: 0; padding: 14px 18px; }
  .doc-meta dd { margin-bottom: 8px; }
  .toc ol { columns: 1; }
  .footer { padding: 26px 0 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
