/* Nukkad to Nation: guide and info pages. Same material as the game: painted boards, tin plates, tape-ball yellow. */
@font-face { font-family: "Teko"; font-weight: 600; font-display: swap; src: url(assets/fonts/teko-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap; src: url(assets/fonts/mukta-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Mukta"; font-weight: 600; font-display: swap; src: url(assets/fonts/mukta-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Mukta"; font-weight: 700; font-display: swap; src: url(assets/fonts/mukta-latin-700-normal.woff2) format("woff2"); }
:root {
  --bg: #0d211d; --surface: #13302a; --surface-2: #183a33; --line: #25493f; --fg: #f2f0e6; --muted: #a8bcb2; --faint: #6f8a7f;
  --accent: #ffd23f; --accent-press: #c99a10; --ink: #172a24; --accent-text: #ffd23f; --red: #e5484d; --board: #10241f; --paint: #f1e7c6;
  --display: "Teko", "Arial Narrow", Impact, sans-serif; --body: "Mukta", "Segoe UI", Arial, sans-serif; color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #eef2ea; --surface: #fff; --surface-2: #f6f8f2; --line: #d8dfcf; --fg: #10261f; --muted: #4c6157; --faint: #85978c; --accent-text: #8a6200; color-scheme: light; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

/* header */
.site-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-top .in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fg); font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.brand .to { background: var(--red); color: #fff; font-size: .85rem; padding: 3px 5px 1px; border-radius: 3px; transform: rotate(-6deg); display: inline-block; }
.brand .gl { color: var(--accent-text); }
.site-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.site-nav a:hover { color: var(--fg); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--fg); background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.play { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1; padding: 9px 16px 6px 26px; border-radius: 6px; color: var(--ink); white-space: nowrap;
  background: linear-gradient(104deg, transparent 0 11px, rgba(16,30,25,.78) 11px 14px, transparent 14px 18px, rgba(16,30,25,.78) 18px 20px, transparent 20px), var(--accent); box-shadow: 0 3px 0 var(--accent-press); }
.play:hover { color: var(--ink); filter: brightness(1.05); }
.play:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-press); }
@media (max-width: 860px) { .site-top .in { flex-wrap: wrap; gap: 8px 12px; } .site-nav { order: 3; width: 100%; margin: 0 -6px; } .site-top .play { margin-left: auto; font-size: 1.1rem; } }

/* page */
main { max-width: 820px; margin: 0 auto; padding: 34px 16px 64px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
.crumbs a { color: var(--muted); }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: .98; margin: 0 0 12px; letter-spacing: .005em; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1.05; margin: 44px 0 10px; text-wrap: balance; scroll-margin-top: 80px; }
h3 { font-size: 1.12rem; line-height: 1.3; margin: 26px 0 6px; scroll-margin-top: 80px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.25em; }
li { margin: 4px 0; }
.lede { font-size: 1.15rem; color: var(--fg); }
.meta { color: var(--muted); font-size: .9rem; }
.tldr { background: var(--board); color: #f2f0e6; border-radius: 8px; padding: 16px 20px 6px; margin: 22px 0 26px; box-shadow: 0 2px 0 rgba(0,0,0,.3); position: relative; }
.tldr::before { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 3px; background: var(--accent); }
.tldr b.k { display: block; font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--paint); margin-bottom: 4px; }
.tldr ul { margin: 0 0 10px; }
.tldr a { color: #f2f0e6; }
.toc { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 22px 0; }
.toc b { display: block; font-size: .9rem; color: var(--muted); }
.toc ol { margin: 6px 0 0; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
figure { margin: 22px 0 26px; }
figure img { border-radius: 8px; box-shadow: 0 2px 0 rgba(0,0,0,.3); background: var(--board); }
figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.wide { margin-left: calc(-1 * min(150px, (100vw - 820px) / 2)); margin-right: calc(-1 * min(150px, (100vw - 820px) / 2)); }
@media (max-width: 1100px) { .wide { margin-left: 0; margin-right: 0; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; color: var(--muted); font-weight: 700; }
.tablewrap { overflow-x: auto; }
kbd { font: 700 .78rem/1.6 var(--body); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; white-space: nowrap; }
.note { background: var(--surface); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.note b:first-child { color: var(--accent-text); }
details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 10px 28px 10px 0; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 6px; font-family: var(--display); font-size: 1.7rem; color: var(--accent-text); }
details.faq[open] summary::after { content: "\2212"; }
details.faq .a { padding: 0 0 10px; }
.cta { background: var(--board); color: #f2f0e6; border-radius: 8px; padding: 22px; margin: 40px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta b { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1; display: block; }
.cta span { color: #a9bab1; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.cards a { display: block; text-decoration: none; background: var(--surface); border-radius: 8px; padding: 14px 16px; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.cards a b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.05; margin-bottom: 4px; }
.cards a span { color: var(--muted); font-size: .92rem; }
.cards a:hover { box-shadow: 0 0 0 2px var(--accent); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0 20px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; }
.log { border-left: 2px solid var(--line); padding-left: 18px; }
.log h2 { margin-top: 30px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .in { max-width: 1120px; margin: 0 auto; padding: 28px 16px 36px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 22px; font-size: .92rem; }
.site-foot b { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.site-foot a { display: block; text-decoration: none; padding: 2px 0; }
.site-foot a:hover { text-decoration: underline; }
.site-foot p { color: var(--muted); margin: 8px 0 0; }
@media (max-width: 760px) { .site-foot .in { grid-template-columns: 1fr 1fr; } .site-foot .in > div:first-child { grid-column: 1 / -1; } }
