/* ═══════════════════════════════════════════════════════════
   RESTRICTED RP — clean theme
   Fonts:  Chakra Petch (headings) · Inter (body)
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #0b0e0f;
  --bg-2: #0e1114;
  --surface: #11151b;
  --surface-2: #161b22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f0;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --accent: #e11d2e;
  --accent-2: #ff3b4a;
  --accent-soft: rgba(225, 29, 46, 0.12);
  --success: #4ade80;
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1200px;
  --heading: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 15.5px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--heading); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-family: var(--heading); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent; transition: 0.18s ease; white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.btn-outline { background: transparent; color: var(--accent-2); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-soft:hover { border-color: var(--border-strong); }
.btn-lg { padding: 14px 24px; font-size: 13.5px; }
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ───────── Header ───────── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: 0.25s; background: linear-gradient(180deg, rgba(11,14,15,0.85), rgba(11,14,15,0)); }
.header.solid { background: rgba(11,14,15,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--heading); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav { display: flex; gap: 6px; justify-content: center; }
.nav a { position: relative; padding: 8px 14px; font-family: var(--heading); font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); opacity: 0.8; transition: 0.15s; }
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; color: var(--accent-2); }
.nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.header-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: var(--radius); width: 42px; height: 42px; }
.menu-toggle svg { width: 20px; height: 20px; }
.page-offset { height: 76px; }

/* ───────── Hero ───────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 140px 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("../img/hero-bg.jpg") center / cover no-repeat; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease; }
.hero-slide.on { opacity: 1; animation: kenburns 8s ease-in-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.16); } }
@media (prefers-reduced-motion: reduce) { .hero-slide.on { animation: none; } }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(55% 55% at 50% 52%, rgba(11,14,15,0.38), rgba(11,14,15,0.05) 100%), linear-gradient(180deg, rgba(11,14,15,0.45) 0%, rgba(11,14,15,0.15) 35%, rgba(11,14,15,0.25) 65%, rgba(11,14,15,0.85) 90%, var(--bg) 100%); }
.hero .container { position: relative; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.hero .logo-big { width: 120px; height: 120px; object-fit: contain; margin-bottom: 28px; filter: drop-shadow(0 12px 32px rgba(0,0,0,0.6)); }
.pills { display: inline-flex; gap: 0; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(11,14,15,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 30px; overflow: hidden; }
.pills span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; font-family: var(--heading); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.pills span + span { border-left: 1px solid var(--border); }
.pills b { color: var(--text); font-weight: 700; }
.pills .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.hero h1 { font-size: clamp(34px, 4.8vw, 60px); font-weight: 700; line-height: 1.05; margin-bottom: 22px; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.hero h1 span { color: var(--accent-2); }
.hero p { color: #d1d5db; font-size: clamp(15px, 1.3vw, 17px); max-width: 640px; margin: 0 auto 32px; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: var(--text-3); font-family: var(--heading); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(180deg, var(--text-3), transparent); }

/* ───────── Sections ───────── */
.section { padding: 100px 0; }
.section.tight { padding-top: 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-family: var(--heading); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.section-head h2, .page-head h1 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 14px; }
.section-head h2 span { color: var(--accent-2); }
.section-head p { color: var(--text-2); font-size: 16.5px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; transition: 0.2s ease; position: relative; }
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 20px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.card ul { color: var(--text-2); font-size: 14px; padding-left: 18px; margin: 0 0 20px; }

/* Feature tiles */
.tile { padding: 0; overflow: hidden; background: var(--surface); }
.tile-art { position: relative; height: 150px; display: grid; place-items: center; border-bottom: 1px solid var(--border); background: radial-gradient(60% 120% at 50% 100%, var(--accent-soft), transparent 70%), var(--bg-2); overflow: hidden; }
.tile-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 28px 28px; opacity: 0.45; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.tile-art svg { position: relative; width: 64px; height: 64px; color: var(--accent-2); padding: 16px; box-sizing: content-box; border-radius: 22px; background: var(--accent-soft); border: 1px solid rgba(225,29,46,0.3); transition: transform 0.3s ease; }
.tile:hover .tile-art svg { transform: translateY(-3px) scale(1.04); }
.tile .body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span { font-family: var(--heading); font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; }
.tile.wide { grid-column: span 2; }
.tile.wide .tile-art { height: 170px; }

/* Faction cards */
.faction { padding: 0; overflow: hidden; }
.faction .faction-top { height: 3px; background: var(--accent); }
.faction .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.faction .tag { font-family: var(--heading); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.faction .tag.open { color: var(--success); }
.faction h3 { margin-bottom: 10px; }
.faction p { flex: 1; margin-bottom: 18px; }
.faction .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.faction:hover .meta { color: var(--accent-2); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.stat b { display: block; font-family: var(--heading); font-size: 36px; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.stat b em { color: var(--accent-2); font-style: normal; }
.stat span { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--heading); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; }
.step .num { counter-increment: step; font-family: var(--heading); font-size: 13px; font-weight: 700; color: var(--accent-2); letter-spacing: 0.12em; margin-bottom: 16px; }
.step .num::before { content: "Step " counter(step, decimal-leading-zero); text-transform: uppercase; }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--bg); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--accent-2); }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: 80px 32px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(225,29,46,0.25), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.cta p { color: var(--text-2); max-width: 540px; margin: 0 auto 30px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--heading); font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 20px; font-weight: 400; transition: 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); font-size: 14.5px; padding: 0 0 18px; }

/* ───────── Page header ───────── */
.page-head { padding: 150px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 0%, rgba(225,29,46,0.16), transparent 70%); pointer-events: none; }
.page-head > * { position: relative; }
.page-head p { color: var(--text-2); font-size: 16.5px; max-width: 640px; margin: 0 auto; }

/* ───────── Rules ───────── */
.rules-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; padding: 20px 0 100px; align-items: start; }
.rules-side { position: sticky; top: 100px; }
.search { position: relative; margin-bottom: 16px; }
.search input { width: 100%; padding: 12px 12px 12px 40px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }
.toc a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.toc a:hover { color: var(--text); background: var(--surface); }
.toc a.active { color: var(--text); background: var(--surface-2); }
.rules-notice { margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 13.5px; color: var(--text-2); }
.rules-notice b { color: var(--text); }

.rule-section { margin-bottom: 64px; scroll-margin-top: 110px; }
.rule-section h2 { font-size: 30px; display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.rule-section h2 .idx { font-size: 13px; color: var(--accent-2); letter-spacing: 0.1em; }
.rule-section .intro { color: var(--text-2); margin-bottom: 22px; font-size: 15px; max-width: 700px; }
.rule { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.rule:last-child { border-bottom: 1px solid var(--border); }
.rule .rid { font-family: var(--heading); font-weight: 700; font-size: 13px; color: var(--accent-2); padding-top: 3px; }
.rule h4 { font-family: var(--body); font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.rule p { color: var(--text-2); font-size: 14.5px; }
.rule .penalty { display: inline-block; margin-top: 10px; font-family: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.rule .penalty.high { background: var(--accent-soft); color: var(--accent-2); }
.rule mark { background: var(--accent-soft); color: var(--accent-2); border-radius: 3px; padding: 0 2px; }
.empty { padding: 44px; text-align: center; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); font-size: 14px; }

/* ───────── Store ───────── */
.store-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0 24px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font-family: var(--heading); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.store-bar .spacer { flex: 1; }
.cart-btn { position: relative; }
.cart-btn .count { position: absolute; top: -8px; right: -8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 10px; }

.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 100px; }
.package { padding: 0; overflow: hidden; }
.package .thumb { aspect-ratio: 16 / 9; background: radial-gradient(100% 80% at 100% 0%, rgba(225,29,46,0.18), transparent 60%), var(--surface-2); display: grid; place-items: center; color: var(--text-3); position: relative; overflow: hidden; }
.package .thumb img { width: 100%; height: 100%; object-fit: cover; }
.package .thumb svg { width: 40px; height: 40px; opacity: 0.35; }
.package .thumb .badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-family: var(--heading); font-weight: 700; font-size: 11px; padding: 4px 9px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; }
.package .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.package .cat { font-family: var(--heading); font-weight: 700; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.package h3 { font-size: 19px; margin: 0; }
.package .desc { color: var(--text-2); font-size: 14px; flex: 1; max-height: 4.4em; overflow: hidden; }
.package .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.package .price { font-family: var(--heading); font-weight: 700; font-size: 22px; }
.package .price small { font-size: 12px; color: var(--text-3); margin-left: 4px; font-family: var(--body); font-weight: 500; }
.package .price .was { font-size: 14px; color: var(--text-3); text-decoration: line-through; margin-right: 8px; font-weight: 500; }

.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; height: 340px; border-radius: var(--radius-lg); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 14px; margin-bottom: 24px; }
.notice.warn { border-color: rgba(225,29,46,0.35); color: var(--text); }
.notice b { color: var(--accent-2); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-2); }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.65); opacity: 0; pointer-events: none; transition: 0.2s; z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 100%; background: var(--bg-2); border-left: 1px solid var(--border); transform: translateX(100%); transition: 0.25s cubic-bezier(.2,.8,.2,1); z-index: 90; display: flex; flex-direction: column; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 20px; }
.drawer-body { flex: 1; overflow: auto; padding: 10px 22px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item .ci-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.cart-item .ci-name small { display: block; color: var(--text-3); font-weight: 400; font-size: 12.5px; }
.cart-item .qty { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cart-item .qty button { width: 26px; height: 26px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 6px; }
.cart-item .ci-price { font-family: var(--heading); font-weight: 700; font-size: 16px; min-width: 70px; text-align: right; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--border); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total span:first-child { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-family: var(--heading); font-weight: 700; }
.total span:last-child { font-family: var(--heading); font-weight: 700; font-size: 24px; }
.drawer-foot .btn { width: 100%; }
.drawer-foot .hint { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 12px; }
.icon-btn { background: none; border: 0; color: var(--text-2); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 12px 18px; font-size: 14px; opacity: 0; transition: 0.25s; z-index: 100; pointer-events: none; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Footer ───────── */
.footer { border-top: 1px solid var(--border); padding: 64px 0 28px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 48px; }
.footer .brand { margin-bottom: 16px; }
.footer p { color: var(--text-2); font-size: 14px; max-width: 320px; }
.footer h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 14.5px; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .grid-3, .grid-4, .packages, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rules-layout { grid-template-columns: 1fr; gap: 28px; }
  .rules-side { position: static; }
  .toc { display: flex; gap: 6px; overflow: auto; padding-bottom: 6px; }
  .toc a { white-space: nowrap; }
  .rules-notice { display: none; }
}
@media (max-width: 720px) {
  .header .container { grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; }
  body.nav-open .nav { display: flex; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions .btn-ghost { display: none; }
  .hero { min-height: auto; padding: 130px 0 90px; }
  .grid-2, .grid-3, .grid-4, .packages, .steps { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr; gap: 4px; }
  .pills { flex-direction: column; border-radius: 14px; }
  .pills span + span { border-left: 0; border-top: 1px solid var(--border); }
}

/* Package description bullets (from Tebex HTML) */
.package .desc-list { margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14px; flex: 1; display: grid; gap: 5px; align-content: start; }
.package .desc-list li { position: relative; padding-left: 16px; }
.package .desc-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Transparent package art: fit inside the thumb with padding */
.package .thumb.contain { padding: 18px 22px; background: radial-gradient(70% 70% at 50% 60%, rgba(255,255,255,0.05), transparent 70%), var(--surface-2); }
.package .thumb.contain img { object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.55)); }

/* ═════════════ Rules page v2 ═════════════ */
.rules-head { padding-bottom: 40px; }
.rules-search { position: relative; max-width: 640px; margin: 30px auto 0; }
.rules-search input { width: 100%; padding: 16px 48px 16px 50px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15.5px; outline: none; box-shadow: 0 10px 40px rgba(0,0,0,0.35); }
.rules-search input:focus { border-color: var(--accent); }
.rules-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.rules-search .clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 20px; line-height: 1; }
.rules-meta { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--text-3); }
.rules-meta b { color: var(--text-2); font-weight: 600; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.cat { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: 0.18s; }
.cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.cat-icon svg { width: 20px; height: 20px; }
.cat-num { font-family: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--text-3); }
.cat h3 { font-size: 16.5px; margin: 2px 0 6px; }
.cat p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cat-count { font-family: var(--heading); font-weight: 700; font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }

.legend { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-2); }
.legend-title { font-family: var(--heading); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-right: 6px; }
.legend-text { margin-right: 14px; }

.penalty { display: inline-flex; align-items: center; font-family: var(--heading); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.penalty.warn { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.penalty.ban { background: rgba(249, 115, 22, 0.14); color: #fb923c; }
.penalty.high { background: var(--accent-soft); color: var(--accent-2); }
.penalty.none { background: var(--surface-2); color: var(--text-3); border-color: var(--border); }

.rules-layout { padding-top: 40px; }
.toc a { display: flex; align-items: center; gap: 10px; }
.toc-num { font-family: var(--heading); font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 0.1em; }
.toc a.active .toc-num { color: var(--accent-2); }

.rule-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 24px; overflow: hidden; }
.rule-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 26px 28px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.rule-head-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.rule-head-icon svg { width: 22px; height: 22px; }
.rule-head-num { display: block; font-family: var(--heading); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }
.rule-section h2 { font-size: 22px; margin: 0 0 6px; display: block; }
.rule-section .intro { margin: 0; font-size: 14.5px; }
.rule-list { padding: 4px 28px 10px; }
.rule { grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--border); }
.rule:first-child { border-top: 0; }
.rule:last-child { border-bottom: 0; }
.rule .rid { display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--heading); font-weight: 700; font-size: 12.5px; color: var(--text); }
.rule h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }
.rule p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.rule .penalty { margin-top: 2px; }
.result-count { font-size: 13px; color: var(--text-3); margin: 0 0 14px; }

.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.term { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
.term b { font-family: var(--heading); font-size: 16px; font-weight: 700; color: var(--accent-2); margin-right: 8px; }
.term small { font-size: 12.5px; color: var(--text-3); }
.term p { margin-top: 6px; font-size: 14px; color: var(--text-2); }

.to-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); font-size: 18px; opacity: 0; pointer-events: none; transition: 0.2s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent-2); }

@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .glossary { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cat-grid { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr; gap: 8px; }
  .rule .penalty { justify-self: start; }
  .rule-head { padding: 20px; }
  .rule-list { padding: 4px 20px 10px; }
  .legend-text { display: none; }
}

/* ═════════════ Streamers ═════════════ */
.streamers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.streamer { padding: 24px; gap: 14px; }
.streamer-top { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--border-strong); }
.avatar.initials { display: grid; place-items: center; font-family: var(--heading); font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 40) 70% 30%)); }
.streamer-id { flex: 1; min-width: 0; }
.streamer-id h3 { font-size: 18px; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.handle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.handle svg { width: 15px; height: 15px; }
.streamer-char { font-family: var(--heading); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.streamer p { font-size: 14px; color: var(--text-2); flex: 1; }
.streamer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.socials { display: flex; gap: 6px; }
.socials span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.socials span:hover { color: var(--text); }
.socials svg { width: 15px; height: 15px; }
.feat-badge { font-family: var(--heading); font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); background: var(--accent-soft); padding: 4px 8px; border-radius: 999px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--heading); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 9px; border-radius: 999px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.streamer.is-live { border-color: rgba(225,29,46,0.45); box-shadow: 0 0 0 1px rgba(225,29,46,0.2), 0 10px 40px rgba(225,29,46,0.12); }
.live-head { display: inline-flex; align-items: center; gap: 8px; font-family: var(--heading); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin: 6px 0 14px; }
.live-head .live-dot { background: var(--accent); }
.live-grid { margin-bottom: 36px; }
.live-summary { font-size: 13px; color: var(--text-2); }
@media (max-width: 1000px) { .streamers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .streamers { grid-template-columns: 1fr; } }

/* ═════════════ Rules page v3: doc switch + rich rules ═════════════ */
.doc-switch { display: inline-flex; gap: 6px; padding: 6px; margin: 26px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.doc-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 24px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-family: var(--heading); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; transition: 0.15s; }
.doc-tab small { font-family: var(--body); font-weight: 500; font-size: 11.5px; color: var(--text-3); }
.doc-tab:hover { color: var(--text); }
.doc-tab.active { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(225,29,46,0.3); }
.doc-tab.active small { color: rgba(255,255,255,0.8); }
.rules-head p#doc-intro { max-width: 760px; }

.rlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.rlist li { position: relative; padding-left: 24px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.rlist li::before { position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 5px; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.rlist.no li::before { content: "✕"; background: var(--accent-soft); color: var(--accent-2); }
.rlist.ok li::before { content: "✓"; background: rgba(74,222,128,0.14); color: var(--success); }
.rlist.dot li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); top: 7px; left: 5px; }
.rlist + .rlist { margin-top: 10px; }
@media (min-width: 900px) { .rlist.no, .rlist.ok { grid-template-columns: 1fr 1fr; column-gap: 20px; } .rlist.no li, .rlist.ok li { break-inside: avoid; } }

.rnote { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--text); line-height: 1.55; }

.rtable { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.rrow { display: grid; grid-template-columns: minmax(140px, 0.9fr) 1.6fr; gap: 12px; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.rrow:first-child { border-top: 0; }
.rrow:nth-child(even) { background: var(--surface-2); }
.rk { color: var(--text-2); font-weight: 500; }
.rv { color: var(--text); }

.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.tier { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.tier .rtable { margin-top: 10px; border: 0; }
.tier .rrow { padding: 8px 10px; background: transparent; border-top: 1px solid var(--border); grid-template-columns: 110px 1fr; }
.tier .rrow:nth-child(even) { background: transparent; }
.tier-head { display: flex; align-items: center; gap: 10px; }
.tier-head b { font-family: var(--heading); font-size: 15px; }
.tier-badge { font-family: var(--heading); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: #fff; }
.rule.has-tiers { grid-template-columns: 52px 1fr; }

@media (max-width: 720px) {
  .doc-switch { display: flex; width: 100%; }
  .doc-tab { flex: 1; padding: 10px 8px; }
  .tiers { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: 1fr; gap: 2px; }
}

/* Discord hubs */
.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: 0.18s; }
.hub:hover { border-color: #5865f2; transform: translateY(-2px); }
.hub-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(88,101,242,0.14); color: #8b94ff; flex: none; }
.hub-icon svg { width: 20px; height: 20px; }
.hub h3 { font-size: 16px; margin-bottom: 4px; }
.hub p { font-size: 13.5px; color: var(--text-2); }
.hub.main { border-color: rgba(225,29,46,0.4); }
.hub.main .hub-icon { background: var(--accent-soft); color: var(--accent-2); }
@media (max-width: 1000px) { .hubs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .hubs { grid-template-columns: 1fr; } }

/* Red "read this first" notice on a rule set */
.doc-notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-lg); background: linear-gradient(90deg, rgba(225,29,46,0.22), rgba(225,29,46,0.08)); border: 1px solid rgba(225,29,46,0.55); color: var(--text); font-size: 15px; line-height: 1.55; }
.doc-notice[hidden] { display: none; }
.doc-notice svg { width: 22px; height: 22px; flex: none; color: var(--accent-2); margin-top: 2px; }
.doc-notice b { color: var(--accent-2); font-family: var(--heading); margin-right: 4px; }

/* ═════════════ Gallery ═════════════ */
.masonry { columns: 3; column-gap: 16px; }
.masonry .shot { break-inside: avoid; margin: 0 0 16px; }
.shot { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.4s ease; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; font-size: 13.5px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75)); opacity: 0; transition: 0.25s; }
.shot:hover figcaption { opacity: 1; }
.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 14px; }
.photo-strip .shot:first-child { grid-row: span 2; }
.photo-strip .shot { cursor: pointer; }
.photo-strip .shot figcaption { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,6,8,0.94); display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 92vw); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox figcaption { font-size: 14px; color: var(--text-2); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong); color: var(--text); width: 48px; height: 48px; border-radius: 12px; font-size: 28px; line-height: 1; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.12); }
.lb-close { top: 20px; right: 20px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
@media (max-width: 1000px) { .masonry { columns: 2; } .photo-strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .photo-strip .shot:first-child { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 720px) { .masonry { columns: 1; } .photo-strip { grid-template-columns: 1fr; } .photo-strip .shot:first-child { grid-column: auto; } .lb-nav { display: none; } }

/* Live stat pills in the hero */
.pills.live span { gap: 8px; padding: 9px 18px; }
.pills.live b { font-size: 14px; color: var(--text); }
.pills.live em { font-style: normal; font-weight: 500; font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-2); }
.pills.live .dot.off { background: var(--text-3); box-shadow: none; }

/* Photo tile tops */
.tile-art.photo { height: 190px; background-size: cover; background-repeat: no-repeat; border-bottom: 1px solid var(--border); }
.tile-art.photo::before { background: linear-gradient(180deg, rgba(11,14,15,0) 40%, rgba(11,14,15,0.85) 100%); mask-image: none; -webkit-mask-image: none; opacity: 1; }
.tile.wide .tile-art.photo { height: 220px; }
.tile:hover .tile-art.photo { background-size: cover; }
