/* Aethernia – dark crimson & gold theme (matches the key art) */
@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-latin-ext.woff2") format("woff2");
  font-weight: 400 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0908;
  --bg-2: #140e0c;
  --surface: rgba(30, 21, 18, 0.82);
  --surface-2: #2a1d18;
  --border: rgba(216, 180, 106, 0.16);
  --border-strong: rgba(216, 180, 106, 0.35);
  --text: #eee5d8;
  --muted: #a99a8b;
  --gold: #dcb76e;
  --gold-2: #b98c3e;
  --crimson: #b8281f;
  --crimson-2: #8a1a14;
  --ok-bg: rgba(64, 120, 60, 0.18); --ok-text: #a9d99f;
  --err-bg: rgba(184, 40, 31, 0.18); --err-text: #f2a394;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --display: "Cinzel", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.6 var(--sans);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(184, 40, 31, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(220, 183, 110, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-attachment: fixed;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #f0d08c; text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 48px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .04em; color: var(--gold); margin: 0 0 14px; line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.muted { color: var(--muted); font-size: .93rem; }

/* --- header ------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 9, 8, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .12em; color: var(--gold); }
.logo:hover { text-decoration: none; color: #f0d08c; }
.logo img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
nav.main a, nav.main .link { color: var(--text); padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
nav.main a:hover, nav.main .link:hover { background: rgba(220, 183, 110, 0.08); color: var(--gold); text-decoration: none; }
nav.main a.active { color: var(--gold); }
nav.main .btn { padding: 7px 16px; color: #fff; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--sans); letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, var(--crimson), var(--crimson-2));
  border: 1px solid rgba(255, 140, 120, 0.25); border-radius: 10px; padding: 11px 20px;
  cursor: pointer; text-decoration: none; box-shadow: 0 6px 18px rgba(184, 40, 31, 0.28);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(184, 40, 31, 0.38); }
.btn:active { transform: translateY(0); }
.btn.gold { background: linear-gradient(180deg, #e3c27c, var(--gold-2)); color: #1b120d; border-color: rgba(255, 230, 170, 0.4); box-shadow: 0 6px 18px rgba(220, 183, 110, 0.22); }
.btn.gold:hover { color: #1b120d; }
.btn.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--gold); box-shadow: none; }
.btn.ghost:hover { background: rgba(220, 183, 110, 0.08); color: var(--gold); }
.btn.big { padding: 15px 28px; font-size: 1.05rem; border-radius: 12px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer; }
.link.danger { color: var(--err-text); }
.danger-btn { background: linear-gradient(180deg, #9e2018, #6d140f); }
form.inline { display: inline; margin: 0; }

/* --- hero ------------------------------------------------------------------ */
.hero { position: relative; border-bottom: 1px solid var(--border); background: #000; }
.hero picture img { width: 100%; height: auto; aspect-ratio: 8 / 3; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(180deg, transparent, var(--bg-2)); pointer-events: none; }
.hero-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: -36px; padding: 0 16px; }
.hero-tagline { text-align: center; color: var(--muted); margin: 18px auto 0; max-width: 640px; padding: 0 16px; }

/* --- cards & layout ---------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { margin: 0; }
.feature .icon { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 14px; margin: 34px 0 16px; }
.section-title h2 { margin: 0; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }

/* --- news -------------------------------------------------------------------- */
.news { position: relative; overflow: hidden; }
.news::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--crimson), transparent); }
.news h2 { font-size: 1.3rem; }
.news .meta { color: var(--muted); font-size: .88rem; margin: -6px 0 12px; }

/* --- forms ------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 540px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form label.check input { margin-top: 4px; accent-color: var(--crimson); }
.form input:not([type=checkbox]), .form textarea {
  font: inherit; color: var(--text); background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(220, 183, 110, 0.15); }
.inline-form { flex-direction: row; max-width: none; }
.inline-form input { flex: 1; min-width: 0; }
.auth-card { max-width: 560px; margin: 0 auto 18px; }
.auth-card .form { max-width: none; }

/* --- messages ---------------------------------------------------------------- */
.flash { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid transparent; }
.flash.ok { background: var(--ok-bg); color: var(--ok-text); border-color: rgba(169, 217, 159, 0.2); }
.flash.err { background: var(--err-bg); color: var(--err-text); border-color: rgba(242, 163, 148, 0.2); }
.flash ul { margin: 0; padding-left: 18px; }
.ok-text { color: var(--ok-text); }
.err-text { color: var(--err-text); }

/* --- tables ------------------------------------------------------------------ */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--gold); font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .06em; }
tbody tr:hover { background: rgba(220, 183, 110, 0.04); }
td:first-child, th:first-child { width: 2.8em; }
.card table { display: block; overflow-x: auto; }
.card table.kv th, .card table.kv td:first-child { width: 9em; }
.rank-1 td:first-child { color: #f3cf7a; font-weight: 700; }
.rank-2 td:first-child { color: #cfd6de; font-weight: 700; }
.rank-3 td:first-child { color: #d49a6a; font-weight: 700; }

/* --- download ---------------------------------------------------------------- */
.download-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.download-hero p { margin: 0; }
.download-hero .size { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #1b120d;
  background: linear-gradient(180deg, #e3c27c, var(--gold-2));
}
.req td:first-child { width: 11em; color: var(--muted); }

/* --- admin ------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 999px; color: var(--muted); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; }
.tabs a:hover { color: var(--gold); text-decoration: none; border-color: var(--border-strong); }
.tabs a.active { color: #1b120d; background: linear-gradient(180deg, #e3c27c, var(--gold-2)); border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { margin: 0; padding: 16px 18px; }
.stat-value { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--gold); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .88rem; }
.badge { display: inline-block; font-size: .72rem; padding: 2px 9px; border-radius: 999px; background: var(--crimson); color: #fff; vertical-align: middle; font-family: var(--sans); letter-spacing: .04em; }

/* --- documents --------------------------------------------------------------- */
.doc { max-width: 880px; margin: 0 auto 18px; }
.doc h2 { margin-top: 26px; }
.doc table td, .doc table th { vertical-align: top; }
.doc table td:first-child { width: auto; }

/* --- footer ------------------------------------------------------------------ */
.foot { border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.35); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 22px; color: var(--muted); font-size: .9rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .hero-actions { margin-top: 12px; }
  .download-hero { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .inline-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.note { margin-top: 14px; }
h1.center { text-align: center; }
/* --- admin: security ---------------------------------------------------------- */
.sec-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.tabs.small { margin: 0; }
.tabs.small a { padding: 6px 12px; font-size: .85rem; }
.daychart { width: 100%; height: auto; }
.daychart .bar { fill: var(--crimson); }
.daychart .bar:hover { fill: #d8463a; }
.daychart .val { fill: var(--gold); font: 600 12px var(--sans); text-anchor: middle; }
.daychart .lbl { fill: var(--muted); font: 11px var(--sans); text-anchor: middle; }
.daychart .axis { stroke: var(--border-strong); }
.sev { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.sev-1 { background: #7d8a96; }
.sev-2 { background: var(--gold); }
.sev-3 { background: #e0483c; box-shadow: 0 0 0 3px rgba(224, 72, 60, 0.2); }
.type-cell, .nowrap { white-space: nowrap; }
td.type-cell, td.ip-cell { width: auto; }
.ip-cell { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88rem; }
.muted-badge { background: var(--surface-2); color: var(--muted); }
.sec-filter { margin-bottom: 14px; }
.sec-filter select { font: inherit; color: var(--text); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.sec-help { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 10px 18px; margin: 0 0 14px; }
.sec-help dt { font-weight: 600; color: var(--text); }
.sec-help dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .sec-help { grid-template-columns: 1fr; } .sec-help dd { margin-bottom: 8px; } }
/* --- news: categories, article -------------------------------------------------- */
.tabs .count { display: inline-block; min-width: 1.5em; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: .75rem; background: rgba(0, 0, 0, 0.3); text-align: center; }
.news h2 a { color: var(--gold); }
.news h2 a:hover { color: #f0d08c; }
.news .meta { margin: 0 0 8px; }
.news .body { margin: 0 0 10px; }
.news .more { font-weight: 600; font-size: .92rem; }
.article { padding: 28px; }
.article h1 { margin-bottom: 18px; }
.article .body { font-size: 1.04rem; line-height: 1.75; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.badge.cat-news { background: #6d4b22; }
.badge.cat-update { background: #2f5a6e; }
.badge.cat-event { background: var(--crimson); }
.section-link { margin-left: auto; font-size: .92rem; white-space: nowrap; order: 2; }
.section-title:has(.section-link)::after { order: 1; }

/* --- events ---------------------------------------------------------------------- */
.event { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.event h3 { margin: 4px 0 0; }
.event .ev-when { margin: 0; color: var(--muted); font-size: .92rem; }
.event .ev-desc { margin: 6px 0 0; }
.ev-status { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.ev-status.live { background: rgba(184, 40, 31, 0.25); color: #ff9c8f; box-shadow: 0 0 0 1px rgba(255, 120, 100, 0.35); }
.ev-status.soon { background: rgba(220, 183, 110, 0.14); color: var(--gold); }
.ev-status.past { background: var(--surface-2); color: var(--muted); }
.ev-running { border-color: rgba(255, 120, 100, 0.35); background: linear-gradient(160deg, rgba(184, 40, 31, 0.18), var(--surface) 55%); }
.ev-past { opacity: .75; }
.grid2.tight { gap: 14px; }
.form select { font: inherit; color: var(--text); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.event .ev-effect { margin: 0; font-weight: 600; color: var(--gold); font-size: .92rem; }
textarea.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; }

/* --- forum --- */
.forum-search { display: flex; gap: 8px; }
.forum-search input { min-width: 220px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font: inherit; }
th.num, td.num { text-align: right; width: 6em; white-space: nowrap; }
.forum-cats td:first-child, .ftopics td:first-child, .forum-cats th:first-child, .ftopics th:first-child { width: auto; }
.fcat { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.flast { min-width: 170px; }
.fpost { padding: 0; overflow: hidden; }
.fpost-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--border); background: rgba(0, 0, 0, 0.18); }
.fbody { padding: 16px 18px; overflow-wrap: anywhere; line-height: 1.6; }
.fbody .fimg img { max-height: 520px; width: auto; height: auto; margin: 8px 0; border-radius: 8px; border: 1px solid var(--border); }
.fpost-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; padding: 8px 18px 12px; border-top: 1px solid var(--border); font-size: .9rem; }
.fpost-tools summary { cursor: pointer; color: var(--gold); }
.fpost-tools details[open] { flex-basis: 100%; }
.fstaff { border-color: rgba(220, 183, 110, 0.45); }
.fhidden { opacity: .55; }
.staff-badge { background: linear-gradient(180deg, #c49a4a, #8a6526); }
.fstatus { background: var(--surface-2); color: var(--text); }
.fstatus-accepted, .fstatus-done, .fstatus-fixed { background: #2f6b3c; color: #fff; }
.fstatus-dev, .fstatus-test, .fstatus-fixing, .fstatus-investigating, .fstatus-review { background: #2f5a6e; color: #fff; }
.fstatus-rejected, .fstatus-cannot_reproduce { background: #5a3a36; color: #fff; }
.fvote { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fvote strong { font-family: var(--display); font-size: 1.6rem; color: var(--gold); }
.ftitle { margin: 0; }
.form.wide { max-width: none; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pager a, .pager .cur { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); }
.pager .cur { background: var(--surface-2); color: var(--gold); }

/* --- item shop --- */
.shop-balance strong { font-family: var(--display); font-size: 1.4rem; color: var(--gold); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.shop-item { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.shop-item p { flex: 1; margin: 0; }
.shop-buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.shop-buy .price { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 1.15rem; }
.shop-buy .price small { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .75rem; }
.shop-confirm { border-color: rgba(220, 183, 110, 0.5); }
.shop-admin-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--border); }
.shop-admin-row label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.shop-admin-row input, .shop-admin-row select, .shop-admin-row textarea { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font: inherit; }
.shop-admin-row .sar-desc { grid-column: 1 / -1; }
.shop-admin-row .sar-id { grid-column: 1 / -1; color: var(--gold); }
.shop-admin-row .sar-check { flex-direction: row; align-items: center; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.shop-tabs a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; background: var(--surface); }
.shop-tabs a.active { border-color: var(--gold); color: var(--gold); }
.shop-head { display: flex; gap: 12px; align-items: flex-start; flex: 1; }
.shop-head h3 { margin: 0 0 6px; }
.shop-head p { margin: 0; font-size: .9rem; }
.shop-icon { width: 48px; height: auto; flex: none; image-rendering: pixelated; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: 6px; padding: 4px; }
.shop-buy { flex-direction: column; align-items: stretch; }
.shop-buy select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font: inherit; }
.shop-prices { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.shop-prices label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.shop-prices strong { color: var(--gold); }
.shop-confirm-row { display: flex; gap: 14px; align-items: flex-start; }
.premium-card { border-color: rgba(220, 183, 110, 0.55); background: linear-gradient(135deg, rgba(220, 183, 110, 0.10), transparent 60%), var(--surface); }
.premium-perks { margin: 0 0 10px; padding-left: 20px; line-height: 1.7; }
.shop-item-premium { border-color: rgba(220, 183, 110, 0.55); }
.badge.premium-badge { background: linear-gradient(135deg, #c9a24f, #8a6a2a); color: #1a1408; font-weight: 700; }
.shop-admin-row .sar-id { display: flex; align-items: center; gap: 10px; }
.shop-admin-row .sar-id .shop-icon { width: 32px; }

/* --- launch / pre-registration --- */
.launch-box { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 24px; align-items: center;
  border-color: rgba(220, 183, 110, 0.55); background: linear-gradient(135deg, rgba(220, 183, 110, 0.12), transparent 55%), var(--surface); }
.launch-count { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.launch-count strong { font-family: var(--display); color: var(--gold); font-size: 1.2rem; }
.countdown { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.launch-text h2 { margin-top: 0; }
.launch-text ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
.notify-form { display: flex; flex-wrap: wrap; gap: 8px; }
.notify-form input { flex: 1 1 220px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; }
.small { font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge.founder-badge { background: linear-gradient(135deg, #6c8fd6, #3b5aa0); color: #fff; }
@media (max-width: 720px) { .launch-box { grid-template-columns: 1fr; } }
/* --- two-factor authentication --- */
.tfa-setup { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.tfa-qr { background: #fff; padding: 8px; border-radius: 8px; line-height: 0; }
.tfa-qr svg { width: 200px; height: 200px; }
.tfa-secret { font-size: 1.05rem; letter-spacing: .06em; word-break: break-all; }
.tfa-codes pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 1.05rem; line-height: 1.7; }
.badge.ok-badge { background: #2f6e3c; }
/* --- support tickets --- */
.ticket-msg.staff { border-color: rgba(220, 183, 110, 0.5); background: linear-gradient(135deg, rgba(220, 183, 110, 0.08), transparent 60%), var(--surface); }
.ticket-body { white-space: normal; line-height: 1.6; overflow-wrap: anywhere; }
.ticket-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ticket-files img { max-width: 220px; max-height: 160px; border-radius: 6px; border: 1px solid var(--border); }
.badge.ticket-open { background: #8a5a12; }
.badge.ticket-answered { background: #2f6e3c; }
.badge.ticket-closed { background: var(--surface-2); color: var(--muted); }
