/* CivLive website. Brand: the channel art (dusk sky, green valley, pixel sprites, bold yellow type
   with an ink outline). Links to YouTube are plain text: no YouTube logo, red or play icon. */
:root {
  color-scheme: dark;
  --bg: #0d1220; --bg2: #121a2c; --panel: #172036; --line: rgba(255, 255, 255, 0.1);
  --fg: #eef0f4; --muted: #a6afc4; --gold: #ffd630; --gold-dim: #e9b923; --ink: #0c0a10;
  --sky: #2a4690; --dusk: #f6a95a; --grass: #5f9e48; --azure: #4a8ceb; --emerald: #46be6e;
  --display: Anton, Impact, 'Arial Narrow Bold', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--gold); color: var(--ink); padding: 6px 10px; }

/* ---------- type ---------- */
.display, h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 12px; }
h3 { font-size: 1.12rem; margin: 0 0 6px; }
.outlined { color: var(--gold); -webkit-text-stroke: 0; text-shadow:
  3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
  2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 5px 6px 0 var(--ink); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(13, 18, 32, 0.88); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.6rem; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand span { color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--fg); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--gold); }
.nav .yt { color: var(--gold); text-decoration: underline; }
@media (max-width: 720px) {
  .site-head .wrap { height: auto; flex-wrap: wrap; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: 0; width: 100%; gap: 18px; overflow-x: auto; white-space: nowrap; font-size: 0.9rem; }
}

/* ---------- buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 6px; font-weight: 700; text-decoration: none;
  background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--ink); border: 2px solid var(--ink); }
.btn:hover { background: #fff; color: var(--ink); }
.btn.ghost { background: rgba(12, 10, 16, 0.55); color: var(--fg); border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.textlink { font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 720px); display: flex; align-items: center; overflow: hidden;
  background: #314a8a url('img/hero.jpg') center 72% / cover no-repeat; image-rendering: pixelated; }
.hero::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.35) 0%, rgba(13, 18, 32, 0.05) 45%, rgba(13, 18, 32, 0.15) 75%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 48px; padding-bottom: 140px; text-align: center; image-rendering: auto; }
.hero h1 { font-size: clamp(4rem, 15vw, 9rem); margin: 0; line-height: 0.95; }
.hero .tagline { font-family: var(--display); font-size: clamp(1.25rem, 3.2vw, 2rem); color: #fff; margin: 14px 0 0;
  text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 3px 4px 0 var(--ink); letter-spacing: 0.02em; }
.hero .sub { max-width: 620px; margin: 16px auto 0; color: #fff; font-size: 1.08rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.hero .actions { justify-content: center; }
.hero .when { margin-top: 18px; font-size: 0.95rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.hero .when strong { color: var(--gold); }

/* ---------- sections ---------- */
.band { padding: 88px 0; }
.band.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { max-width: 720px; margin-bottom: 40px; }

/* the ladder */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: step; }
.ladder li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 12px 16px; text-align: center; }
.ladder li:not(:last-child)::after { content: '›'; position: absolute; right: -10px; top: 38px; color: var(--gold); font-weight: 700; font-size: 1.3rem; z-index: 1; }
.ladder img { width: 48px; height: 48px; margin: 0 auto 10px; }
.ladder strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.02em; }
.ladder span { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
@media (max-width: 960px) {
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .ladder li:not(:last-child)::after { display: none; }
  .ladder li { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; text-align: left; align-items: center; padding: 12px; }
  .ladder img { width: 40px; height: 40px; margin: 0; grid-row: span 2; }
}
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }

/* screenshots */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shots figure { margin: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.shots figure:first-child { grid-column: 1 / -1; }
.shots img { width: 100%; height: auto; }
.shots figcaption { padding: 12px 16px 14px; font-size: 0.9rem; color: var(--muted); }
.shots figcaption strong { color: var(--fg); }
.almanac { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 860px) { .shots, .almanac { grid-template-columns: 1fr; } }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; text-decoration: none; color: var(--fg); transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--fg); }
.card img { width: 40px; height: 40px; margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .more { display: inline-block; margin-top: 12px; color: var(--gold); font-weight: 700; font-size: 0.9rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }

/* chat commands */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.cmdlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmdlist li { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: baseline; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.cmdlist li span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 480px) { .cmdlist li { grid-template-columns: 1fr; gap: 2px; } }
code { font: 600 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--gold); background: rgba(255, 214, 48, 0.08); border: 1px solid rgba(255, 214, 48, 0.2); padding: 1px 6px; border-radius: 4px; }

/* promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promises div { border-top: 3px solid var(--gold); padding-top: 14px; }
.promises p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* closing call to action */
.cta { position: relative; text-align: center; padding: 110px 0 120px; background: #314a8a url('img/hero.jpg') center 80% / cover no-repeat; image-rendering: pixelated; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 18, 32, 0.25) 40%, rgba(13, 18, 32, 0.45) 100%); }
.cta .wrap { position: relative; image-rendering: auto; }
.cta .actions { justify-content: center; }
.cta p { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }

/* ---------- inner pages ---------- */
.page-head { padding: 64px 0 28px; border-bottom: 1px solid var(--line);
  background: radial-gradient(1200px 300px at 70% -60px, rgba(246, 169, 90, 0.18), transparent), var(--bg); }
.page-head .lead { margin: 0; }
.prose { max-width: 760px; padding: 40px 0 88px; }
.prose h2 { font-size: 1.9rem; margin: 48px 0 10px; }
.prose h3 { color: var(--gold); margin-top: 26px; }
.prose li { margin: 5px 0; }
.prose .tag { color: var(--muted); }
.faq dt { font-weight: 700; margin-top: 22px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* ---------- the rules guide ---------- */
.guide-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow-y: auto; padding: 36px 0; font-size: 0.92rem; }
.toc summary { color: var(--muted); text-transform: uppercase; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; cursor: pointer; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 2px 0; }
.toc a { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.toc a img { width: 18px; height: 18px; flex: none; }
.toc a:hover, .toc a.on { background: var(--panel); color: var(--gold); }
.rules { max-width: 780px; padding: 36px 0 88px; }
.rules .lede { font-size: 1.1rem; border-left: 3px solid var(--gold); padding-left: 16px; }
.rules section { scroll-margin-top: 76px; border-top: 1px solid var(--line); margin-top: 44px; }
.rules h2 { display: flex; align-items: center; gap: 14px; font-size: 2rem; margin: 30px 0 10px; }
.rules h2 img { width: 36px; height: 36px; flex: none; }
.rules h3 { font-size: 1.05rem; margin: 26px 0 6px; color: var(--gold); }
.rules .note { color: var(--muted); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.rules table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rules th, .rules td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.rules tr:last-child td { border-bottom: 0; }
.rules th { color: var(--muted); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--bg2); }
.rules tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.rules table.compact td:first-child, .rules table.cmds td:first-child { white-space: nowrap; font-weight: 600; }
.rules ul.cols { columns: 2; column-gap: 32px; padding-left: 1.2em; }
.rules ul.cols li { break-inside: avoid; }
@media (max-width: 900px) {
  .guide-wrap { display: block; }
  .toc { position: static; max-height: none; padding: 20px 0 0; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; }
  .rules { padding-top: 12px; }
  .rules table.compact td:first-child, .rules table.cmds td:first-child { white-space: normal; }
  .rules ul.cols { columns: 1; }
}
@media (max-width: 480px) { .toc ol { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #0a0e19; padding: 48px 0 40px; font-size: 0.92rem; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h4 { margin: 0 0 10px; color: var(--fg); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 6px 0; }
.site-foot a { color: var(--fg); text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot .brand { font-size: 1.4rem; margin-bottom: 10px; }
.site-foot p { margin: 6px 0; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }

/* additions */
.textlink.onart { color: var(--gold); font-size: 1.05rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.textlink.onart:hover { color: #fff; }
.almanac img { border-radius: 10px; border: 1px solid var(--line); }
.cta h2 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
.cmdlist code { white-space: nowrap; }
@media (max-width: 720px) { .nav a[href='index.html'] { display: none; } .nav { gap: 16px; } }

/* ---------- live status ---------- */
@media (max-width: 720px) { .nav { flex-wrap: wrap; overflow: visible; white-space: normal; row-gap: 4px; } }
.small { font-size: 0.88rem; }
.onair { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.onair::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.onair.live { color: #7ee08a; }
.onair.live::before { background: #0ca30c; box-shadow: 0 0 0 4px rgba(12, 163, 12, 0.25); }
.status { padding: 32px 20px 88px; }
.stale main.status { opacity: 0.7; }
.notice { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 8px; margin-bottom: 24px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.tile .tl { display: block; color: var(--muted); font-size: 0.82rem; }
.tile strong { display: block; font-size: 1.7rem; line-height: 1.2; font-weight: 700; }
.tile .ts { display: block; color: var(--muted); font-size: 0.78rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.sblock { margin-top: 56px; }
.sblock.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sblock.two > div { min-width: 0; }
@media (max-width: 900px) { .sblock.two { grid-template-columns: 1fr; } }
.shead h2 { font-size: 1.8rem; margin-bottom: 4px; }
.shead p { margin: 0 0 16px; max-width: 720px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .charts { grid-template-columns: 1fr; } }
.chart { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 16px 10px; min-width: 0; }
.chart.bare { padding: 16px; }
.chart figcaption { font-weight: 700; margin-bottom: 8px; }
.plot { position: relative; height: 300px; }
.plot.short { height: 220px; }
.plot.tall { height: 420px; }
.tview summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 6px; font-variant-numeric: tabular-nums; }
table.mini th, table.mini td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: right; }
table.mini th:first-child, table.mini td:first-child { text-align: left; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.peoples { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.peoples th { text-align: left; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 12px; background: var(--bg2); white-space: nowrap; }
table.peoples td { padding: 9px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
table.peoples .n { text-align: right; font-variant-numeric: tabular-nums; }
.prow { cursor: pointer; }
.prow:hover, .prow:focus-visible { background: rgba(255, 214, 48, 0.06); outline: none; }
.prow[aria-expanded='true'] { background: rgba(255, 214, 48, 0.08); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; vertical-align: 0; }
.pdetail td { white-space: normal; background: var(--bg2); }
.pdetail dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 6px 0; max-width: 900px; }
.pdetail dt { color: var(--muted); }
.pdetail dd { margin: 0; }
@media (max-width: 600px) { .pdetail dl { grid-template-columns: 1fr; } .pdetail dt { margin-top: 6px; } }
ol.plain, ul.plain { list-style: none; margin: 0; padding: 0; }
ol.plain li, ul.plain li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.when { display: inline-block; min-width: 80px; color: var(--gold); font-size: 0.82rem; font-weight: 700; margin-right: 10px; }
.chronicle { max-height: 560px; overflow-y: auto; padding-right: 6px; }
.rel li { display: flex; gap: 10px; align-items: baseline; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.tag.war { background: rgba(208, 59, 59, 0.2); color: #f08a8a; }
.tag.long { background: rgba(144, 133, 233, 0.18); color: #b9b1f2; }
.story h3, .legend h3 { margin: 10px 0 6px; }
.story .stakes { color: var(--fg); margin: 0 0 8px; }
.story p, .legend p { font-size: 0.92rem; }
.legend.villain { border-color: rgba(208, 59, 59, 0.35); }
.deeds { margin: 6px 0 0; padding-left: 1.1em; font-size: 0.88rem; color: var(--muted); }
.hv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 520px) { .hv { grid-template-columns: 1fr; } }
.firsts { columns: 2; column-gap: 28px; }
.firsts li { break-inside: avoid; }
.privacy-note { margin-top: 56px; }
