/* Gangster City — gangster.vn
   Onyx + brass. Phông: Archivo ExtraBold (tiêu đề), Be Vietnam Pro (nội dung). */

@font-face {
  font-family: "GC Text";
  src: url("/assets/fonts/BeVietnamPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GC Text";
  src: url("/assets/fonts/BeVietnamPro-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "GC Display";
  src: url("/assets/fonts/Archivo-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --onyx: #0f0e0e;
  --onyx-2: #151312;
  --panel: #1a1816;
  --panel-2: #211e1b;
  --line: #34302a;
  --line-2: #4a4339;
  --paper: #f4efe6;
  --paper-2: #e4dccd;
  --muted: #b3ab9d;
  --gold: #ebc579;
  --gold-2: #f5d593;
  --brass: #c9a15a;
  --brass-deep: #8a6526;
  --ink: #20190e;
  --red: #e2323f;
  --ok: #7fd49a;
  --err-bg: #331f1e;
  --err: #ffb5aa;
  --edge: clamp(16px, 5vw, 96px);
  --wide: 1240px;
  --radius: 6px;
  --display: "GC Display", "Arial Black", Arial, sans-serif;
  --text: "GC Text", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--onyx);
  color: var(--paper);
  font: 400 16px/1.6 var(--text);
  overflow-x: hidden;
}
main { flex: 1 0 auto; display: block; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: Consolas, "Cascadia Mono", "SFMono-Regular", Menlo, monospace; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--ink); font-weight: 600;
  border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ink); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 14, 14, .9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; margin-right: auto; }
.brand img { width: 60px; height: auto; display: block; }
.brand span {
  font: 800 17px/1 var(--display); letter-spacing: .02em; text-transform: uppercase;
}
.brand span b { color: var(--gold); font-weight: 800; }
.brand:hover { color: var(--paper); }
.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: transparent; color: var(--paper); font: 600 14px var(--text); cursor: pointer;
}
.nav-toggle .bars { width: 16px; height: 10px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--paper-2); text-decoration: none; font-size: 15px; font-weight: 600; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--paper); background: var(--panel); }
.site-nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav .nav-cta a { background: var(--gold); color: var(--ink); margin-left: 6px; border-radius: var(--radius); box-shadow: none; }
.site-nav .nav-cta a:hover { background: var(--gold-2); color: var(--ink); }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: none; }
.nav-user { color: var(--gold); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--onyx-2); border-bottom: 1px solid var(--line); }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--edge) 16px; gap: 2px; }
  .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 10px; }
  .site-nav a { display: flex; min-height: 48px; padding: 0 12px; font-size: 16px; }
  .js .site-nav.open { box-shadow: 0 18px 40px rgba(0,0,0,.6); }
  .site-nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--gold); }
  .site-nav .nav-cta a { margin: 8px 0 0; justify-content: center; }
  .brand span { font-size: 15px; }
  .brand img { width: 52px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 52px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 16px/1.3 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn .arrow { font: 400 20px/1 Arial, sans-serif; }
.btn-primary { background: var(--gold); border-color: #efcd8a; color: var(--ink); }
.btn-primary:hover { background: var(--gold-2); color: var(--ink); }
.btn-secondary { background: rgba(15, 14, 14, .55); border-color: var(--line-2); color: var(--paper); }
.btn-secondary:hover { border-color: var(--gold); color: var(--paper); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--paper); min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-block { width: 100%; }
.link-btn {
  appearance: none; border: 0; background: none; padding: 4px 2px; cursor: pointer;
  color: var(--gold); font: 600 14px/1.5 var(--text); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
}
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* ---------- Common type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brass); font: 600 12px/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display {
  font: 800 clamp(34px, 5.2vw, 64px)/.98 var(--display); letter-spacing: -.035em; text-transform: uppercase;
}
.display em { font-style: normal; color: var(--gold); }
.lede { color: var(--paper-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 60ch; }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); max-width: 760px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.hero-scene {
  position: absolute; z-index: -2; inset: 0 0 0 26%;
  background: #141210 url("/assets/img/city-night.webp") 60% 70% / cover no-repeat;
  animation: arrive 7s ease-out both;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--onyx) 6%, var(--onyx) 24%, rgba(15,14,14,.94) 33%, rgba(15,14,14,.55) 48%, rgba(15,14,14,.06) 70%),
    linear-gradient(0deg, rgba(10,9,9,.96), rgba(10,9,9,.1) 38%, transparent 78%, rgba(10,9,9,.35));
}
.hero::after { /* đường viền đồng thau dọc */
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: var(--edge);
  width: 1px; background: linear-gradient(180deg, transparent, rgba(201,161,90,.35) 30%, rgba(201,161,90,.35) 70%, transparent);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: end; gap: 40px;
  padding-top: clamp(48px, 9vh, 110px); padding-bottom: clamp(40px, 8vh, 88px);
}
.hero-copy { padding-left: clamp(0px, 2vw, 32px); }
.hero-mark { width: clamp(110px, 11vw, 168px); display: block; margin-bottom: clamp(28px, 6vh, 64px); }
.hero-location { color: #e1d5be; font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .06em; margin-bottom: 14px; }
.hero h1 {
  margin-left: -.04em;
  font: 800 clamp(58px, min(11vw, 16vh), 176px)/.8 var(--display);
  letter-spacing: -.065em; text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--gold); margin-top: .08em; }
.hero-tagline { margin-top: clamp(20px, 3vh, 30px); max-width: 46ch; color: var(--paper-2); font-size: clamp(16px, 1.35vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 36px); }
.hero-actions .btn { min-width: 220px; }

@keyframes arrive { from { transform: scale(1.04); } to { transform: scale(1); } }

/* ---------- Status card ---------- */
.status-card {
  position: relative; padding: 22px 22px 20px;
  background: rgba(21, 19, 18, .86);
  border: 1px solid var(--line-2); border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.status-card h2 { font: 600 12px/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.status-state { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 600; font-size: 17px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status-card[data-state="online"] .status-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(127,212,154,.16); animation: pulse 2.4s ease-in-out infinite; }
.status-card[data-state="error"] .status-dot { background: #d6884f; }
.status-count { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.status-count strong { font: 800 clamp(44px, 4.4vw, 60px)/.9 var(--display); letter-spacing: -.04em; color: var(--paper); }
.status-count span { color: var(--muted); font-size: 15px; }
.status-track { height: 4px; margin-top: 14px; background: #4a4339; border-radius: 3px; overflow: hidden; }
.status-fill { height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.status-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.status-meta code { color: var(--paper-2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(127,212,154,0); } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding: 28px 28px 8px 0; counter-increment: step; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(step); display: block; margin-bottom: 18px;
  font: 800 clamp(44px, 5vw, 72px)/.85 var(--display); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--brass);
}
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--muted); }
.steps a { font-weight: 600; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.feature {
  grid-column: span 2; position: relative; overflow: hidden;
  min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.feature.wide { grid-column: span 3; }
.feature::before {
  content: attr(data-index); position: absolute; top: 18px; right: 22px;
  font: 800 13px/1 var(--display); letter-spacing: .14em; color: var(--brass);
}
.feature::after {
  content: ""; position: absolute; left: 26px; top: 26px; width: 34px; height: 34px;
  border: 1px solid var(--brass); transform: rotate(45deg) scale(.7); opacity: .7;
}
.feature h3 { font: 800 clamp(22px, 2vw, 28px)/1.05 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.feature p { color: var(--muted); font-size: 15px; }
.feature.accent { background: linear-gradient(160deg, #2a2219, var(--panel) 60%); border-color: #5a4a30; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: var(--radius);
}
.news-card .tag { align-self: flex-start; padding: 3px 9px; border: 1px solid var(--brass-deep); color: var(--gold); font: 600 11px/1.5 var(--text); letter-spacing: .14em; text-transform: uppercase; border-radius: 3px; }
.news-card[data-kind="event"] { border-left-color: var(--red); }
.news-card h3 { font-size: 20px; }
.news-card p { color: var(--muted); font-size: 15px; }
.news-empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.tips { margin-top: 36px; padding: 24px; background: var(--onyx-2); border: 1px solid var(--line); border-radius: var(--radius); }
.tips h3 { font: 600 12px/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tips li { position: relative; padding-left: 22px; color: var(--paper-2); }
.tips li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Discord / CTA band ---------- */
.band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: clamp(28px, 4vw, 52px); border: 1px solid #5a4a30; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 100% 0%, rgba(235,197,121,.14), transparent 55%), var(--panel);
}
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page header (subpages) ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--onyx) 30%, rgba(15,14,14,.7) 60%, rgba(15,14,14,.25)),
    linear-gradient(0deg, var(--onyx), transparent 60%),
    #141210 url("/assets/img/city-night-760.webp") 80% 72% / cover no-repeat;
}
.page-head .wrap { padding-top: clamp(40px, 7vw, 92px); padding-bottom: clamp(32px, 5vw, 64px); display: grid; gap: 16px; }

/* ---------- Download ---------- */
.dl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.dl-card { padding: 26px; background: var(--panel); border: 1px solid var(--line-2); border-top: 2px solid var(--gold); border-radius: var(--radius); display: grid; gap: 18px; }
.dl-card h2 { font: 800 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.dl-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.dl-facts dt { color: var(--muted); }
.dl-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.badge-soon { display: inline-flex; justify-self: start; padding: 4px 10px; border-radius: 3px; background: #2c261d; color: var(--gold); font: 600 12px/1.5 var(--text); letter-spacing: .12em; text-transform: uppercase; }
.hash-box { display: grid; gap: 8px; }
.hash-box code {
  display: block; padding: 12px; background: var(--onyx); border: 1px solid var(--line-2); border-radius: 4px;
  color: var(--paper-2); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; user-select: all;
}
.hash-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hash-row span { color: var(--muted); font-size: 13px; }
.prose { display: grid; gap: 16px; max-width: 72ch; }
.prose h2 { font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--display); text-transform: uppercase; letter-spacing: -.02em; margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 8px; }
.prose p, .prose li { color: var(--paper-2); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose code { background: var(--panel-2); padding: 2px 6px; border-radius: 3px; font-size: .92em; }
.prose pre { margin: 0; padding: 14px; background: var(--onyx-2); border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { color: var(--brass); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.spec-table tbody th { color: var(--paper); font-weight: 600; width: 32%; }
.spec-table td { color: var(--paper-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font: 400 22px/1 Arial, sans-serif; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 18px 18px; display: grid; gap: 10px; color: var(--paper-2); }
details.faq ol, details.faq ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* ---------- Account forms ---------- */
.account {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: calc(100vh - 65px);
}
.account-scene {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  padding: clamp(28px, 5vw, 80px);
  background: #141210 url("/assets/img/city-night.webp") 64% 72% / cover no-repeat;
}
.account-scene::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,14,14,.2) 30%, rgba(15,14,14,.75) 70%, var(--onyx));
}
.account-scene .loc { color: #e1d5be; font-size: 14px; letter-spacing: .06em; }
.account-scene .big { font: 800 clamp(48px, 6.4vw, 110px)/.96 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.account-scene .big span { display: block; color: var(--gold); }
.account-scene p.note { color: var(--paper-2); max-width: 40ch; }
.account-panel { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 72px) var(--edge); background: var(--onyx-2); border-left: 1px solid var(--line); }
.sheet { width: 100%; max-width: 440px; }
.progress { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: p; }
.progress li { counter-increment: p; padding-top: 10px; border-top: 2px solid var(--line-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.progress li::before { content: counter(p) ". "; }
.progress li[aria-current="step"] { border-color: var(--gold); color: var(--gold); }
.progress li.done { border-color: var(--brass-deep); color: var(--paper-2); }
.sheet header { margin-bottom: 26px; }
.sheet h1 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.04em; }
.sheet header p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.sheet header strong { color: var(--paper); overflow-wrap: anywhere; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: #e4ded4; font-weight: 600; font-size: 14px; }
.field input {
  width: 100%; height: 48px; padding: 0 14px;
  background: #211f1e; color: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
  font: 400 16px/1.5 var(--text);
}
.field input:hover { border-color: #5d5447; }
.field input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field input[readonly] { background: transparent; color: #e0d2b9; }
.field input[aria-invalid="true"] { border-color: #e2786b; }
.field input.code { font: 600 22px/1 Consolas, "Cascadia Mono", monospace; letter-spacing: .4em; text-align: center; }
.field small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.field .field-error { color: var(--err); font-size: 13px; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.alert { padding: 11px 14px; border-left: 2px solid; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; border-radius: 0 4px 4px 0; }
.alert-error { color: var(--err); background: var(--err-bg); }
.alert-notice { color: #dfd8ca; background: #282522; border-color: var(--brass); }
.alert-success { color: #cfeedd; background: #1c2a22; border-color: var(--ok); }
.alert:empty { display: none; }
.sheet footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.signed-in { display: grid; gap: 18px; }
.signed-in .who {
  display: flex; align-items: center; gap: 14px; padding: 16px; background: #24211d; border-left: 2px solid var(--gold);
}
.signed-in .who .avatar {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--onyx); border: 1px solid var(--brass); color: var(--gold); font: 800 18px/1 var(--display); text-transform: uppercase;
}
.signed-in .who strong { display: block; font-size: 18px; overflow-wrap: anywhere; }
.signed-in .who span { color: var(--muted); font-size: 13px; }
.done-mark { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); transform: rotate(45deg); margin: 6px 0 24px 6px; }
.done-mark span { transform: rotate(-45deg); font-size: 24px; }

/* ---------- Rules ---------- */
.rules-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.rules-toc { position: sticky; top: 88px; display: grid; gap: 4px; font-size: 14px; }
.rules-toc a { color: var(--muted); text-decoration: none; padding: 6px 0 6px 12px; border-left: 1px solid var(--line-2); }
.rules-toc a:hover { color: var(--gold); border-color: var(--gold); }
.draft-note { padding: 14px 16px; border: 1px dashed var(--brass); border-radius: var(--radius); color: var(--paper-2); background: #1d1914; font-size: 14px; }
.rules { counter-reset: sec; }
.rules section { counter-increment: sec; padding: 28px 0; border-top: 1px solid var(--line); }
.rules section:first-of-type { border-top: 0; padding-top: 0; }
.rules h2 { display: flex; align-items: baseline; gap: 14px; font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--display); text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 14px; }
.rules h2::before { content: counter(sec, decimal-leading-zero); color: var(--brass); font-size: .7em; letter-spacing: .06em; }
.rules ol { margin: 0; padding-left: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
.rules ol > li { counter-increment: r; position: relative; padding-left: 46px; color: var(--paper-2); }
.rules ol > li::before { content: counter(sec) "." counter(r); position: absolute; left: 0; top: 1px; color: var(--brass); font: 600 13px/1.6 Consolas, monospace; }
.rules table { margin: 4px 0 8px; }
.rules p { color: var(--paper-2); margin-bottom: 12px; }
.rules strong { color: var(--paper); }
.rules dfn { font-style: normal; color: var(--gold); font-weight: 600; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 65px); display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; }
.lost::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--onyx) 25%, rgba(15,14,14,.5)), linear-gradient(0deg, var(--onyx), transparent 50%),
    #141210 url("/assets/img/city-night.webp") 70% 72% / cover no-repeat;
}
.lost .code404 { font: 800 clamp(110px, 22vw, 300px)/.8 var(--display); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1.5px var(--brass); }
.lost .wrap { display: grid; gap: 18px; padding-top: 48px; padding-bottom: 48px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: #0b0a0a; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.site-footer img { width: 84px; display: block; margin-bottom: 14px; }
.site-footer h2 { font: 600 12px/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 4px 0; color: var(--paper-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; }
.site-footer .legal a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .status-card { max-width: 460px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.wide { grid-column: span 1; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-layout { grid-template-columns: 1fr; }
  .dl-card { order: -1; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-toc { position: static; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-scene { inset: 0 0 40% 0; background-position: 72% 60%; }
  .hero::before { background: linear-gradient(0deg, var(--onyx) 42%, rgba(15,14,14,.9) 56%, rgba(15,14,14,.3) 80%, rgba(15,14,14,.45)); }
  .hero::after { display: none; }
  .hero-copy { padding-left: 0; }
  .hero-mark { margin-bottom: 120px; width: 104px; }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 200px; }
  .news-grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .band .actions .btn { width: 100%; }
  .account { grid-template-columns: 1fr; min-height: 0; }
  .account-scene { min-height: 160px; padding: 24px var(--edge); }
  .account-scene .big { font-size: 40px; }
  .account-scene p.note, .account-scene .loc { display: none; }
  .account-panel { border-left: 0; padding-top: 32px; padding-bottom: 48px; align-items: flex-start; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
  .spec-table tbody th { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .field input, .status-card, .feature, .news-card { border: 1px solid CanvasText; }
}

/* Tiện ích nhỏ (thay cho style nội tuyến để thân thiện CSP) */
.band .display, .band .lede { margin-top: 12px; }
.fine { color: var(--muted); font-size: 13px; }
.btn-ghost.btn-block { justify-content: center; }
h1[tabindex="-1"]:focus, main:focus { outline: none; }
@media (min-width: 1021px) { .dl-card { position: sticky; top: 88px; } }
