/* TwoRoadsDayZ — charcoal, amber and gold. Restrained motion, sharp corners, weathered metal. */
@font-face { font-family: Anton; src: url(/fonts/Anton-Regular.ttf) format('truetype'); font-display: swap; }
:root {
  --bg: #0f0f10; --bg2: #161618; --panel: #1c1c1f; --line: #2c2c31; --line2: #3a3a40;
  --text: #e9e6df; --muted: #a29d93; --amber: #e8892b; --gold: #f2c14e; --red: #e5484d; --green: #3fb46a;
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --body: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px; --r: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(232,137,43,.08), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, .display, .h4, .h5, .h6 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1.1; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); } h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); } h3, .h4 { font-size: 1.3rem; } .h5 { font-size: 1.1rem; } .h6 { font-size: .95rem; color: var(--muted); }
p { margin: 0 0 1em; }
code, .mono { font-family: Consolas, 'Cascadia Mono', Menlo, monospace; font-size: .92em; }
code { background: #000; border: 1px solid var(--line); padding: .1em .4em; border-radius: var(--r); color: var(--gold); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; } .narrow { max-width: 780px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--amber); color: #000; padding: 8px 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(12,12,13,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: .5; }
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.brand b { color: var(--amber); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 0; margin-left: auto; flex-wrap: nowrap; white-space: nowrap; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 9px; font-size: .88rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--gold); border-bottom-color: var(--amber); }
.nav-sep { width: 1px; height: 24px; background: var(--line2); margin: 0 8px; }
.nav-account { display: flex !important; align-items: center; gap: 8px; } .nav-account img { border-radius: 50%; border: 1px solid var(--amber); }
.nav-admin { color: var(--amber) !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); width: 44px; height: 40px; padding: 10px; cursor: pointer; }
.nav-toggle i { display: block; height: 2px; background: var(--text); margin: 4px 0; }
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #0c0c0d; flex-direction: column; align-items: stretch; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; } .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); } .nav-sep { display: none; }
}

/* Buttons, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--line2); border-radius: var(--r);
  font: 600 .9rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text); background: transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--amber); border-color: var(--amber); color: #120c05; }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.btn-ghost:hover { border-color: var(--amber); color: var(--gold); }
.btn-danger { border-color: var(--red); color: #ffb3b5; } .btn-sm { min-height: 34px; padding: 6px 12px; font-size: .78rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.copied { background: var(--green); border-color: var(--green); color: #031; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.badge { display: inline-block; font: 700 .7rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border: 1px solid; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.badge-released { color: var(--green); border-color: rgba(63,180,106,.5); } .badge-testing { color: var(--gold); border-color: rgba(242,193,78,.5); }
.badge-development { color: var(--amber); border-color: rgba(232,137,43,.5); } .badge-experimental { color: #c79cff; border-color: #6b4fa0; } .badge-planned { color: var(--muted); border-color: var(--line2); }
.ver { font-size: .8rem; color: var(--muted); }
.tag { display: inline-block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; margin-right: 8px; border: 1px solid var(--line2); color: var(--muted); }
.tag-ingame { color: var(--green); border-color: rgba(63,180,106,.5); } .tag-concept { color: var(--gold); border-color: rgba(242,193,78,.4); }
.chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--line2); color: var(--text); text-decoration: none; font-size: .85rem; } .chip.on { border-color: var(--amber); color: var(--gold); }

/* Status */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(0,0,0,.55); border: 1px solid var(--line2); font-size: .9rem; color: var(--text); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.pill-online i { background: var(--green); box-shadow: 0 0 0 4px rgba(63,180,106,.18); } .pill-offline i { background: var(--red); }
.status-big .pill { font-size: 1.1rem; padding: 10px 16px; }
.spark { display: flex; gap: 2px; height: 34px; align-items: stretch; margin: 10px 0 4px; } .spark i { flex: 1; background: var(--line2); } .spark .up { background: var(--green); } .spark .down { background: var(--red); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.94) 0%, rgba(10,10,11,.7) 42%, rgba(10,10,11,.1) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-in { position: relative; padding-top: 80px; padding-bottom: 64px; width: 100%; }
.hero-in > * { max-width: 620px; }
.display { font-size: clamp(3.4rem, 10vw, 7rem); line-height: .92; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.eyebrow a { color: var(--amber); }
.lead { font-size: 1.2rem; color: #f0ebe1; } .hero .lead { font-family: Georgia, serif; font-style: italic; color: var(--gold); }
.hero-copy { color: #d6d0c4; }
.hero-status { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .hero-status a { text-decoration: none; }
.ip { font-size: 1rem; } .ip.big { font-size: 1.4rem; display: inline-block; padding: 8px 12px; }

/* Sections */
.band { padding: 72px 0; } .band-dark { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-art { padding: 0; } .page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #151517, var(--bg)); } .page-head.slim { padding: 36px 0 20px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .split, .grid-3 { grid-template-columns: 1fr; gap: 28px; } .band { padding: 48px 0; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--amber); padding: 22px; margin-bottom: 16px; }
.panel.danger { border-top-color: var(--red); } .sticky { position: sticky; top: 84px; }
.stack > * + * { margin-top: 16px; }
.notice { border-left: 3px solid var(--amber); background: rgba(232,137,43,.08); padding: 12px 16px; } .notice-strong { border-left-color: var(--gold); background: rgba(242,193,78,.1); }

/* Highlights & cards */
.highlights { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.highlights li { background: var(--bg); padding: 22px; } .highlights h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: .3em; } .highlights p { margin: 0; color: var(--muted); font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--amber); transform: translateY(-2px); color: var(--text); }
.card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; } .card-body { padding: 18px; } .card-body h3 { margin: .5em 0 .3em; } .card-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-mark { aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; padding: 20px; font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; color: var(--amber);
  background: repeating-linear-gradient(135deg, #1a1a1c 0 12px, #1e1e21 12px 24px); border-bottom: 1px solid var(--line); }
.media { margin: 0; } .media img { border: 1px solid var(--line); } .media figcaption { font-size: .82rem; color: var(--muted); padding: 8px 0; }
.gallery-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: none; padding: 0; } .gallery-4 .media figcaption { padding: 8px 12px; background: var(--bg2); }
@media (max-width: 900px) { .gallery-4 { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .gallery .media:first-child { grid-column: 1 / -1; }

/* Lists */
.ticks { list-style: none; padding: 0; } .ticks li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 10px; height: 2px; background: var(--amber); }
.warn li { color: #f3d9a8; }
.steps { counter-reset: s; list-style: none; padding: 0; } .steps > li { counter-increment: s; position: relative; padding: 0 0 22px 58px; }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -4px; font-family: var(--display); font-size: 1.8rem; color: var(--amber); }
.steps.compact > li { padding: 0 0 8px 40px; } .steps.compact > li::before { font-size: 1.2rem; top: 0; }
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--line2); margin-left: 6px; } .timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--amber); }
.timeline h3 { font-size: 1.05rem; color: var(--gold); margin-bottom: .2em; } .timeline p { margin: 0; color: #d3cdc2; }
.rules { list-style: none; padding: 0; counter-reset: r; } .rules li { counter-increment: r; padding: 18px 0 18px 64px; position: relative; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 14px; font-family: var(--display); font-size: 2.4rem; color: var(--amber); } .rules h2 { font-size: 1.3rem; margin-bottom: .2em; } .rules p { margin: 0; color: #d3cdc2; }
.modlist { list-style: none; padding: 0; columns: 1; } .modlist li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.news { list-style: none; padding: 0; } .news a { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); } .news a span:last-child { color: var(--muted); }
.channels { list-style: none; padding: 0; } .channels li { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); } .channels span { color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; } .board .col { background: var(--panel); border: 1px solid var(--line); padding: 18px; } .board h2 { font-size: 1.1rem; }
.board ul { padding-left: 18px; margin: 0; } .board li { margin-bottom: 8px; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }
details { border: 1px solid var(--line); background: var(--panel); margin-bottom: 8px; } summary { cursor: pointer; padding: 14px 18px; font-weight: 600; } details > *:not(summary) { padding: 0 18px; } details[open] summary { color: var(--gold); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; } .facts dt { color: var(--muted); } .facts dd { margin: 0; }
.specs, .table { width: 100%; border-collapse: collapse; margin: 12px 0; } .specs th, .specs td, .table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 40%; } .table thead th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 700px) { .table { display: block; overflow-x: auto; } }

/* Keys */
.controls { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.controls li { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; }
.key { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; font: 700 1rem/1 var(--body); color: #f6eee0;
  background: linear-gradient(180deg, #3a3833, #24231f); border: 1px solid #55524a; border-bottom-width: 4px; border-radius: 6px; box-shadow: 0 2px 0 #000, inset 0 1px 0 rgba(255,255,255,.12); }
.key-wide { min-width: 64px; font-size: .8rem; text-transform: uppercase; }
.academy article { margin-bottom: 36px; } .academy .num { color: var(--amber); margin-right: 12px; }

/* Forms */
.form { display: grid; gap: 14px; } label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: #0b0b0c; border: 1px solid var(--line2); border-radius: var(--r); padding: 10px 12px; width: 100%; }
input[type=checkbox] { width: auto; } textarea.mono { font-size: .85rem; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); outline: none; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; } .row-actions form { margin: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; } .subnav a { color: var(--text); text-decoration: none; } .subnav a:hover { color: var(--gold); }
.stat { font-family: var(--display); font-size: 2.4rem; margin: 0; color: var(--gold); text-transform: uppercase; } .stat span { font-size: 1rem; color: var(--muted); }
.state { font-size: .8rem; padding: 3px 8px; border: 1px solid var(--line2); } .state-open { color: var(--green); border-color: rgba(63,180,106,.5); } .state-failed { color: var(--red); }

/* Ticket thread */
.thread { list-style: none; padding: 0; } .msg { background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 10px; max-width: 88%; }
.msg.mine { margin-left: auto; border-color: rgba(232,137,43,.45); } .msg.sys { max-width: 100%; border-style: dashed; color: var(--muted); } .msg.pending { opacity: .7; }
.msg-text { white-space: pre-wrap; word-break: break-word; } .msg-meta { margin-bottom: 4px; }
.prose p { color: #ddd7cc; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #0b0b0c; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; } .footer-grid a:not(.brand) { display: block; color: var(--text); text-decoration: none; padding: 3px 0; } .footer-grid a:hover { color: var(--gold); }
.slogan { font-family: var(--display); color: var(--amber); font-size: 1.4rem; text-transform: uppercase; margin: 12px 0 2px; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .card:hover { transform: none; } }
