/* Plague X public site. System fonts only; green accent. */
:root {
  --bg: #0F1013;
  --bg-deep: #0C0D10;
  --surface: #17191E;
  --surface-2: #22252C;
  --line: #23262D;
  --line-2: #2E323B;
  --line-3: #3A3F49;
  --text: #ECEEF2;
  --text-2: #C7CBD3;
  --muted: #B9BEC8;
  --dim: #8C93A0;
  --accent: #4ADE80;
  --accent-ink: #06170C;
  --link: #6EE7A0;
  --link-hover: #A7F3C4;
  --warn: #E8B33C;
  --danger: #F2715E;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.section { padding-top: 56px; padding-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.h3 { font-size: 20px; margin: 4px 0 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: 3px; }
.brand:hover { color: var(--text); }
.logo-mark { width: 28px; height: 32px; }
.logo-body { fill: var(--accent); }
.logo-cut { stroke: var(--bg); stroke-width: 14; }
.logo-fuse { fill: var(--text); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.main-nav > a:not(.btn) { padding: 12px 12px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav > a:not(.btn):hover { color: var(--text); }

.lang-menu { position: relative; margin: 0 4px; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 14px; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { fill: none; stroke: var(--muted); stroke-width: 1.3; }
.lang-list { position: absolute; inset-inline-end: 0; top: 52px; min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; display: flex; flex-direction: column; }
.lang-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; }
.lang-list a:hover, .lang-list a.current { background: var(--surface-2); color: var(--text); }
.lang-list a.current::after { content: "✓"; margin-inline-start: auto; color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; border: none; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 800; letter-spacing: .5px; cursor: pointer; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; margin-inline-start: 4px; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 18px; text-transform: uppercase; letter-spacing: 1.5px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-3); font-weight: 600; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-dark { background: var(--accent-ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.link-btn { background: none; border: none; padding: 0; min-height: 44px; color: var(--link); font-weight: 600; cursor: pointer; }
.link-btn:disabled { color: var(--dim); cursor: default; }
.muted-link { color: var(--muted); font-weight: 400; }

/* hero */
.hero { position: relative; overflow: hidden; background: #15171B; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; padding-top: 112px; padding-bottom: 88px; }
.hero-box { max-width: 600px; padding: 36px; background: var(--bg); border-radius: 12px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { margin: 0; font-size: clamp(40px, 7vw, 68px); line-height: .98; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.lead { margin: 0; font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.status { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-on { background: #12261A; color: #7EE2A0; }
.status-on .dot { background: #5BD18A; }
.status-off { background: #2A1614; color: #F5A497; }
.status-off .dot { background: var(--danger); }
.status-unknown { background: var(--surface-2); color: var(--muted); }
.status-unknown .dot { background: var(--dim); }

/* sections, cards */
.page-head { padding-top: 56px; display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { margin: 0; font-size: clamp(36px, 6vw, 52px); line-height: 1; font-weight: 900; text-transform: uppercase; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 36px; font-weight: 900; text-transform: uppercase; }
.section-head a { font-weight: 600; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.news-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; }
.news-card:hover { color: var(--text); border-color: var(--line-3); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.news-title { font-weight: 700; font-size: 19px; line-height: 1.3; }
.news-summary { font-size: 15px; color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--muted); color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.pinned { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; padding: 18px 20px; border-radius: 8px; background: #2A1614; border: 1px solid var(--danger); color: var(--text); text-decoration: none; }
.pinned:hover { color: var(--text); }
.pinned > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pinned-title { font-weight: 700; }
.pinned-summary { font-size: 14px; color: #D9C3BF; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

.band { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.band-text { flex: 1 1 420px; min-width: 0; }
.band h2 { margin: 0 0 6px; font-size: 40px; line-height: 1; font-weight: 900; text-transform: uppercase; }
.band p { margin: 0; color: #0F3A20; }
.band-meta { margin-top: 6px !important; font-size: 14px; }
.hash { display: block; margin-top: 8px; padding: 12px; background: var(--bg); border-radius: 6px; font-family: var(--mono); font-size: 13px; word-break: break-all; }

/* article */
.article { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.article h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.article-art { border-radius: var(--radius); }
.back { text-decoration: none; font-weight: 600; }
.prose { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.prose p { margin: 0 0 1em; }

/* forms */
.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.support-form { max-width: 760px; }
.two-col > .card { flex: 1 1 380px; min-width: 0; max-width: 640px; }
.form { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.form h2 { margin: 0; font-size: 26px; font-weight: 900; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row > .field { flex: 1 1 200px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea, .ticket-reply textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; }
.field textarea, .ticket-reply textarea { line-height: 1.6; resize: vertical; }
.field input[type=file] { padding: 12px; }
.help { font-size: 13px; color: var(--dim); margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.row-end { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.row-rev { flex-direction: row-reverse; justify-content: flex-start; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 6px; background: #2A1614; border: 1px solid #5A2A24; color: #F5B3A8; font-size: 14px; }
.step { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.code-input { font-family: var(--mono); font-size: 32px !important; letter-spacing: 12px; text-align: center; }
.code-sent { margin: 0; color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.warn { color: var(--warn); }
.closed-card h2 { margin: 8px 0; font-size: 30px; text-transform: uppercase; }
.done-card h2 { margin: 0 0 8px; }
.done-card:focus { outline: none; }
.quick { margin-top: 8px; }

/* tickets */
.ticket { padding: 0; }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-open { background: var(--surface-2); color: var(--text-2); }
.badge-answered { background: #16303A; color: #7FD3E0; }
.badge-closed { background: var(--surface-2); color: var(--dim); }
.msgs { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 85%; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.msg-player { align-self: flex-end; background: var(--surface-2); border-radius: 10px 10px 2px 10px; }
.msg-staff { align-self: flex-start; background: #12261A; border: 1px solid #22573A; border-radius: 10px 10px 10px 2px; }
.msg-meta { font-size: 12px; color: var(--muted); }
.msg-staff .msg-meta { color: var(--link-hover); }
.msg-body p { margin: 0 0 .6em; }
.msg-body p:last-child { margin: 0; }
.msg-file { font-size: 14px; }
.ticket-reply { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ticket-reply label { font-weight: 600; color: var(--text-2); font-size: 14px; }
.ticket-closed, .ticket-note { padding: 0 24px 20px; margin: 0; }

/* footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; color: var(--dim); font-size: 14px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-row a { color: var(--muted); text-decoration: none; }
.footer-row a:hover { color: var(--text); }

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hero-inner { padding-top: 48px; padding-bottom: 48px; }
  .hero-box { padding: 24px; }
  .band { padding: 28px; }
  .band h2, .section-head h2 { font-size: 30px; }
  .form { padding: 22px; }
  .msg { max-width: 100%; }
  .header-row { position: relative; }
  .brand { min-height: 40px; font-size: 21px; }
  .main-nav { width: 100%; justify-content: space-between; }
  .main-nav > a:not(.btn) { padding: 12px 6px; }
  .main-nav > .btn-small { position: absolute; top: 12px; inset-inline-end: 16px; min-height: 40px; padding: 0 14px; }
  .lang-menu { margin: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-row nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.legal .prose h2 { margin: 32px 0 8px; font-size: 20px; font-weight: 800; }
