/* DemonRoad — dark crimson & gold */
:root {
  --bg: #0a0708; --bg2: #100b0c; --panel: #150f10; --panel2: #1b1314; --line: #2d2022; --line2: #46302a;
  --text: #e9e1dc; --muted: #9a8c88; --gold: #d9b45f; --gold2: #f3d98b; --red: #b3201f; --red2: #7d1414; --green: #7fd36b; --blue: #6aa8ff; --warn: #ffb347;
  --radius: 14px; --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(179, 32, 31, .16), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(217, 180, 95, .06), transparent 60%); }
main { flex: 1; }
a { color: var(--gold2); text-decoration: none; } a:hover { color: #fff; text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: .02em; line-height: 1.2; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); } h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); } h3 { font-size: 1.2rem; } h4 { font-size: 1rem; color: var(--gold); }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; } .container.narrow { width: min(620px, 100% - 40px); } .center { text-align: center; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .gold { color: var(--gold2); } .ok { color: var(--green); } .warn { color: var(--warn); }

/* ---- Top bar ---- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(10, 7, 8, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 80px; width: min(1400px, 100% - 40px); }
.brand img { height: 62px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); padding: 8px 10px; border-radius: 9px; font-weight: 500; font-size: .93rem; letter-spacing: .01em; white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; } .nav a.active { color: var(--gold2); }
.nav a.nav-battle-card { position: relative; color: #ffe184; font-weight: 600; text-shadow: 0 0 10px rgba(255, 218, 112, .65), 0 0 20px rgba(255, 218, 112, .35); box-shadow: 0 0 10px rgba(255, 218, 112, .08); animation: battle-nav-glow 3.2s ease-in-out infinite; }
.nav-battle-card::before, .nav-battle-card::after, .nav-battle-spark { position: absolute; font-size: 9px; line-height: 1; pointer-events: none; color: #fff0bd; opacity: .6; text-shadow: 0 0 6px #ffcd58; animation: battle-nav-sparkle 3.6s ease-in-out infinite; }
.nav-battle-card::before, .nav-battle-card::after { content: '✦'; }
.nav-battle-card::before { top: 3px; right: 9px; } .nav-battle-card::after { bottom: 3px; left: 8px; animation-delay: -1.2s; }
.nav-battle-spark { top: 1px; left: 31%; animation-delay: -2.4s; }
.nav a.nav-battle-card:hover, .nav a.nav-battle-card.active { color: #fff0b7; background: rgba(217, 180, 95, .08); }
@keyframes battle-nav-glow { 50% { text-shadow: 0 0 8px rgba(255, 235, 169, .95), 0 0 18px rgba(255, 218, 112, .8), 0 0 32px rgba(255, 198, 72, .5); box-shadow: 0 0 18px rgba(255, 218, 112, .2); } }
@keyframes battle-nav-sparkle { 50% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 5px #ffe184); } }
.nav-sep { width: 1px; height: 22px; background: var(--line2); margin: 0 8px; }
.dp-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(217, 180, 95, .12); border: 1px solid rgba(217, 180, 95, .35); color: var(--gold2) !important; }
.dp-chip img { width: 16px; height: 16px; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; } .burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 10px; font: 600 .95rem var(--font); letter-spacing: .02em; cursor: pointer; border: 1px solid #e0a43d;
  background: linear-gradient(180deg, #c42b27 0%, #8a1616 100%); color: #fff !important; box-shadow: 0 6px 20px rgba(179, 32, 31, .35), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); text-decoration: none; box-shadow: 0 10px 28px rgba(179, 32, 31, .5), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-sm { padding: 6px 14px; font-size: .85rem; border-radius: 8px; } .btn-lg { padding: 15px 32px; font-size: 1.05rem; } .btn-block { width: 100%; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line2); box-shadow: none; color: var(--text) !important; } .btn-ghost:hover { border-color: var(--gold); background: rgba(217, 180, 95, .08); box-shadow: none; }
.btn-danger { background: linear-gradient(180deg, #5a1010, #3b0a0a); border-color: #8a2a2a; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; min-height: 460.8px; display: grid; align-items: center; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: .55; z-index: -3; filter: saturate(1.1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 7, 8, .25) 0%, rgba(10, 7, 8, .55) 60%, var(--bg) 100%), radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(10, 7, 8, .75) 100%); }
.hero-glow { position: absolute; width: 700px; height: 700px; left: 50%; top: 50%; transform: translate(-50%, -55%); background: radial-gradient(circle, rgba(179, 32, 31, .35), transparent 65%); z-index: -2; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; transform: translate(-50%, -55%) scale(1.08); } }
.hero-art { position: absolute; bottom: -2%; z-index: -1; max-height: 90%; max-width: 38vw; width: auto; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .8)); pointer-events: none; animation: float 7s ease-in-out infinite; }
.hero-art-l { left: max(-40px, calc(50% - 760px)); opacity: .95; } .hero-art-r { right: max(-40px, calc(50% - 780px)); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-in { text-align: center; padding: 80px 0 90px; min-width: 0; }
.eyebrow { display: inline-block; font: 600 .78rem var(--font); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero-title { font-size: clamp(2rem, 10.2vw, 7rem); max-width: 100%; font-weight: 900; margin: 0; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d6 0%, #e8c46a 45%, #9b6a1e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(179, 32, 31, .7)); }
.hero-sub { font: 500 1.2rem var(--display); letter-spacing: .5em; text-transform: uppercase; color: #e8d5c0; margin: 4px 0 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 8px 18px; border-radius: 999px; background: rgba(10, 7, 8, .7); border: 1px solid var(--line2); font-size: .9rem; backdrop-filter: blur(6px); }
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: #777; } .status-pill.up .dot { background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2s infinite; } .status-pill.down .dot { background: #d44; }
.status-pill .sep { color: var(--line2); } @keyframes blink { 50% { opacity: .45; } }

/* ---- Legacy band ---- */
.legacy { padding: 56px 0 24px; background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.legacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.legacy-stat { text-align: center; padding: 26px 12px; border: 1px solid var(--line2); border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(217, 180, 95, .07), rgba(179, 32, 31, .05)); }
.legacy-stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.legacy-stat .num { font: 900 clamp(1.7rem, 3.4vw, 2.7rem) var(--display); color: var(--gold2); letter-spacing: .03em; }
.legacy-stat .lbl { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.legacy-copy { max-width: 860px; margin: 0 auto; text-align: center; } .legacy-copy p { color: #d1c5bf; font-size: 1.04rem; } .legacy-copy strong { color: #fff; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); } .chip-gold { color: #1a0f05; background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: var(--gold); font-weight: 700; }

/* ---- Sections / cards ---- */
.section { padding: 34px 0 70px; background: var(--bg2); } .section-head { margin-bottom: 18px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.card h3, .card h4 { margin-top: 0; }
.news h3 { margin-bottom: 4px; } .news .meta { color: var(--gold); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.side { position: sticky; top: 88px; display: grid; gap: 0; }
.quick { display: block; padding: 16px 20px; margin-bottom: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(179, 32, 31, .22), rgba(217, 180, 95, .06)); border: 1px solid var(--line2); color: #fff; transition: .15s; }
.quick:hover { transform: translateX(3px); border-color: var(--gold); text-decoration: none; } .quick span { display: block; font: 700 1.05rem var(--display); } .quick small { color: var(--muted); }
.quick-card { color: inherit; display: block; } .quick-card:hover { border-color: var(--gold); text-decoration: none; }
.kv { list-style: none; margin: 0; padding: 0; } .kv li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; } .kv li:last-child { border: 0; }
.kv span { color: var(--muted); } .kv b { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; } .kv img { height: 14px; vertical-align: middle; }
.kv.big li { font-size: 1.05rem; } .kv.big b { color: var(--gold2); }

/* ---- Content pages ---- */
.page { padding: 48px 0 80px; } .page-head { margin-bottom: 26px; } .page-head h1 { margin-bottom: 6px; }
.prose { color: #d9cfca; } .prose > * { max-width: 100%; } .prose img { border-radius: 10px; margin: 8px 0; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.2em; } .prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .25em 0; }
.prose table, .tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose table, .prose td, .prose th { border: 0 !important; }
.prose table { background: transparent !important; border-radius: 10px; overflow: hidden; } .prose tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
.prose td, .prose th { padding: 9px 12px !important; background: transparent !important; color: var(--text) !important; font-family: inherit !important; font-size: inherit !important; font-weight: 500 !important; border-bottom: 1px solid var(--line) !important; }
.prose font[color] { font-weight: 600; } .prose center { display: block; text-align: center; } .prose hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.prose .nk-box, .prose .nk-box-3, .prose .container, .prose .news-content { all: unset; display: block; }
.prose .nk-gap-1, .prose .nk-gap-2, .prose .nk-gap-3, .prose .nk-gap-4 { height: 12px; }
.prose .nk-title, .prose .nk-sub-title { font-family: var(--display); color: #fff; } .prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose iframe { max-width: 100%; border: 0; border-radius: 10px; } .prose iframe[src*="youtube"] { width: 100%; max-width: 560px; height: auto; aspect-ratio: 16 / 9; }
details.acc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; overflow: hidden; transition: border-color .15s; }
details.acc[open] { border-color: var(--line2); }
details.acc > summary { list-style: none; cursor: pointer; padding: 14px 18px 14px 44px; font: 600 1rem var(--display); letter-spacing: .02em; color: #fff; position: relative; }
details.acc > summary::-webkit-details-marker { display: none; } details.acc > summary::before { content: '▸'; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); transition: transform .15s; }
details.acc[open] > summary::before { transform: translateY(-50%) rotate(90deg); } details.acc > summary:hover { background: rgba(255, 255, 255, .03); }
details.acc .acc-body { padding: 4px 22px 20px; text-align: left; }
details.acc .acc-body[align="center"], .acc-body[align=center] { text-align: center; }

/* ---- Tables ---- */
.tbl-wrap { overflow-x: auto; padding: 0; }
.tbl th { text-align: left; font: 600 .74rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line2); background: rgba(0, 0, 0, .25); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); } .tbl tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.tbl .c { text-align: center; width: 44px; } .tbl .r { text-align: right; } .tbl .ic { width: 46px; padding: 9px 6px; text-align: center; } .tbl .ic img { height: 18px; width: auto; max-width: 34px; object-fit: contain; vertical-align: middle; } .tbl .ic img.native { height: auto; width: auto; max-width: none; }
.rank tr.top1 td:first-child { color: #ffd761; font-weight: 800; } .rank tr.top2 td:first-child { color: #d8dde6; font-weight: 800; } .rank tr.top3 td:first-child { color: #d9955b; font-weight: 800; }
.tbl.rank tbody tr.top1 td { background: rgba(255, 215, 97, .09); }
.tbl.rank tbody tr.top2 td { background: rgba(216, 221, 230, .09); }
.tbl.rank tbody tr.top3 td { background: rgba(217, 149, 91, .09); }

/* ---- Forms ---- */
.form-card { padding: 32px; } .form-card h1 { font-size: 1.7rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; } .field label, label.lbl { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field small { color: var(--muted); display: block; margin-top: 5px; font-size: .78rem; }
input, select, textarea { width: 100%; background: #0e0909; border: 1px solid var(--line2); color: var(--text); padding: 11px 14px; border-radius: 10px; font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 95, .18); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 18px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.form-foot { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.alert { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); margin-bottom: 16px; font-size: .92rem; }
.alert ul { margin: 0; padding-left: 1.1em; } .alert-err { border-color: #7d2a2a; background: rgba(179, 32, 31, .14); color: #ffc9c4; } .alert-ok { border-color: #2d6a2d; background: rgba(60, 160, 60, .13); color: #c7f2c0; }
.note { font-size: .85rem; margin: 6px 0 16px; } .note.danger { color: #ff7a7a; } .note.ok { color: var(--green); } .note.info { color: #8fd0ff; }
.err-code { font: 900 7rem var(--display); color: transparent; background: linear-gradient(180deg, #e8c46a, #7d1414); -webkit-background-clip: text; background-clip: text; line-height: 1; }

/* ---- Download / profile / ranking tabs ---- */
.dl { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; } .dl-actions { display: grid; gap: 10px; justify-items: stretch; min-width: 280px; }
.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: radial-gradient(600px 200px at 100% 0, rgba(179, 32, 31, .25), transparent), var(--panel); }
.profile-head h1 { margin: 0 0 4px; } .profile-dp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .dp-big { font: 900 1.8rem var(--display); color: var(--gold2); display: flex; align-items: center; gap: 8px; margin-right: 8px; } .dp-big small { font-size: .8rem; color: var(--muted); }
.char > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 1.1rem; } .char > summary::-webkit-details-marker { display: none; }
.char-name { font: 700 1.2rem var(--display); color: #fff; } .char-body { margin-top: 18px; }
.stat-list { list-style: none; margin: 0 0 20px; padding: 0; max-width: 520px; }
.stat-list li { display: flex; align-items: center; gap: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin-bottom: 6px; }
.stat-list .ico { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; }
.stat-list .ico img { max-width: 28px; max-height: 28px; width: auto; height: auto; }
.stat-list .lbl { color: var(--muted); } .stat-list b { margin-left: auto; color: var(--gold2); font-size: 1.05rem; } .sub-h { margin: 22px 0 10px; } .dso { padding: 4px 0; color: #737373; display: flex; align-items: center; gap: 8px; } .dso.done { color: #97c322; font-weight: 600; }
.rank-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.rank-tabs button, .seg a { background: transparent; border: 1px solid var(--line2); color: var(--text); padding: 8px 18px; border-radius: 999px; cursor: pointer; font: 500 .9rem var(--font); }
.rank-tabs button:hover, .seg a:hover { border-color: var(--gold); text-decoration: none; } .rank-tabs button.on, .seg a.on { background: linear-gradient(180deg, #c42b27, #8a1616); border-color: var(--gold); color: #fff; }
.rewards { margin: 4px 0 14px; color: var(--muted); font-size: .92rem; line-height: 1.7; } .rewards b { color: var(--gold2); font-weight: 600; } .rewards .line { display: block; }
.rank-pane { display: none; } .rank-pane.on { display: block; } .seg { display: flex; gap: 8px; margin-top: 10px; }
.rank-single { width: calc((100% - 18px) / 2); margin-inline: auto; }
.rank-wide { width: min(760px, 100%); }
.rank-single th, .rank-single td { overflow-wrap: anywhere; }
.ach-groups { display: grid; gap: 12px; margin: 18px 0 24px; }
.ach-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.ach-icons { display: flex; flex: 0 0 auto; gap: 6px; }
.ach-icons img { width: 32px; height: 32px; object-fit: contain; }
.ach-group > span { color: var(--muted); font-size: .9rem; }

/* ---- Footer / FAB ---- */
.footer { background: #070506; border-top: 1px solid var(--line); padding: 48px 0 26px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; } .footer h4 { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; } .footer a { display: block; color: var(--muted); padding: 3px 0; font-size: .92rem; } .footer a:hover { color: #fff; }
.footer-logo { height: 38px; margin-bottom: 12px; } .partner { max-width: 180px; opacity: .85; } .copy { text-align: center; color: #5f5350; font-size: .82rem; margin: 34px 0 0; }
.fab { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 40; }
.fab-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(21, 15, 16, .9); color: var(--gold2); font-size: 1.15rem; cursor: pointer; backdrop-filter: blur(6px); transition: .15s; }
.fab-btn:hover { border-color: var(--gold); transform: translateY(-2px); } #totop { opacity: 0; pointer-events: none; } #totop.show { opacity: 1; pointer-events: auto; }

/* ---- Responsive ---- */
@media (max-width: 1060px) { .two-col { grid-template-columns: 1fr; } .side { position: static; } .hero-art { opacity: .35; } }
@media (max-width: 1160px) {
  .burger { display: block; } .topbar-in { height: 66px; } .brand img { height: 50px; }
  .nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; background: rgba(10, 7, 8, .97); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s; max-height: calc(100vh - 66px); overflow: auto; }
  .nav.open { transform: none; } .nav a { padding: 12px 8px; } .nav-sep { display: none; }
}
@media (max-width: 900px) {
  .rank-single { width: 100%; }
  .legacy-grid { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dl { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 403.2px; } .hero-in { padding: 64px 0 72px; } .hero-art-l { display: none; }
}
@media (max-width: 640px) {
  .rank-wide { padding-inline: 16px; }
  .rank-wide th, .rank-wide td { padding-inline: 8px; }
}
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hero-title { letter-spacing: .03em; } .hero-sub { letter-spacing: .3em; font-size: 1rem; } .footer-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } .legacy-stat .num { font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- Support dialog ---- */
.fab-wide { width: auto; border-radius: 22px; padding: 0 16px; font: 600 .85rem var(--font); }
dialog.modal { border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); color: var(--text); padding: 0; max-width: 440px; width: calc(100% - 40px); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.modal-in { padding: 26px 28px; } .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---- Legacy accordion markup that lives inside stored news HTML (Bootstrap-style panels) ---- */
.news-body .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; overflow: hidden; }
.news-body .panel-heading a { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.news-body .panel-heading a:hover { background: rgba(255, 255, 255, .04); }
.news-body .panel-heading a::after { content: '▸'; margin-left: auto; color: var(--gold); transition: transform .15s; }
.news-body .panel-heading a.open::after { transform: rotate(90deg); }
.news-body .panel-heading img { border-radius: 4px; height: 18px; width: auto; margin: 0 !important; }
.news-body .panel-collapse { padding: 0 22px 14px; }
.news-body .panel-collapse.collapse:not(.show) { display: none; }

/* ---- "NEW" tag in accordion titles ---- */
.new-tag { color: #ff3b30; font-weight: 800; letter-spacing: .06em; }

.turnstile-field{max-width:100%;overflow:hidden}.cf-turnstile{max-width:100%}
