/* RainyPvP. Deep navy, electric blue, icy cyan, a little red. Unbounded for display, Barlow for text. */
:root {
  --bg: #050a1a;
  --bg-2: #081128;
  --panel: #0c1734;
  --panel-2: #10204a;
  --line: rgba(127, 170, 255, .14);
  --line-2: rgba(127, 170, 255, .26);
  --text: #e8eeff;
  --muted: #93a2cc;
  --faint: #7a89b8;
  --blue: #2a63f2;
  --blue-hi: #1f55e6;
  --light: #c3d0f5;
  --white: #ffffff;
  --red-soft: #ff8592;
  --cyan: #7fe7ff;
  --red: #ff3b4e;
  --vip: #5fe39a; --elite: #5088ff; --supreme: #b98bff; --champion: #ff3b4e; --nitro: #ff7ad9;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --r: 14px;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
::selection { background: rgba(42, 99, 242, .55); color: var(--white); }
html { scrollbar-color: var(--panel-2) var(--bg); accent-color: var(--blue); caret-color: var(--cyan); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
code { font: 600 .92em/1 ui-monospace, monospace; background: rgba(127, 231, 255, .1); color: var(--cyan); padding: 3px 6px; border-radius: 6px; }

.logo { display: inline-flex; align-items: center; gap: .45em; }
.logo .wordmark { height: auto; }
.ic { flex: none; }
.head { image-rendering: pixelated; border-radius: 4px; flex: none; }

/* ---------- Buttons and chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 10px;
  font: 700 15px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-hi); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(8, 17, 40, .5); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn .ic { margin-right: -4px; }

.ip-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(5, 10, 26, .6); font: 600 14px/1 var(--body); color: var(--text); transition: border-color .15s; }
.ip-chip:hover { border-color: var(--cyan); }
.ip-chip .ic { color: var(--muted); }
.ip-chip .ip-count { color: var(--muted); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line-2); }
.ip-chip.big { height: 50px; padding: 0 18px; font-size: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.live-dot.on { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 78, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 59, 78, 0); } }

.label { font: 700 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.tag { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(47, 107, 255, .16); color: var(--cyan); }
.tag.red { background: rgba(255, 59, 78, .14); color: var(--red-soft); }

/* ---------- Top bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(5, 10, 26, .9); backdrop-filter: blur(12px); transition: opacity .2s; }
.bar.solid::before, .nav-open .bar::before { opacity: 1; }
.bar.solid, .nav-open .bar { border-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: 28px; max-width: calc(1440px); margin: 0 auto; height: 68px; padding: 0 var(--gut); }
.brand { display: flex; color: inherit; }
.brand:hover { text-decoration: none; }
.bar nav { display: flex; gap: 4px; margin: 0 auto; }
.bar nav a { padding: 10px 12px; border-radius: 6px; color: var(--muted); font: 600 14px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.bar nav a:hover { color: var(--text); text-decoration: none; }
.bar nav a[aria-current] { color: var(--white); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.bar nav .nav-store { display: none; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
@media (max-width: 1180px) { .ip-chip .ip-count { display: none; } }
@media (max-width: 1040px) {
  .bar nav { position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gut) 20px; background: var(--bg); max-height: calc(100svh - 68px); overflow-y: auto; border-bottom: 1px solid var(--line); display: none; }
  .bar nav.open { display: flex; }
  .bar nav a { padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .bar nav a[aria-current] { box-shadow: none; color: var(--cyan); }
  .bar nav .nav-store { display: block; color: var(--cyan); border: 0; }
  .menu-btn { display: inline-flex; }
  .bar-end { margin-left: auto; }
  .bar-store { display: none; }
}
@media (max-width: 520px) { .bar .ip-chip .ip-addr { display: none; } .bar .ip-chip { padding: 0 12px; } }

/* ---------- Atmosphere: a screenshot graded navy, fog, rain ---------- */
.scene { position: relative; isolation: isolate; overflow: hidden; }
.scene > picture, .scene > .shot { position: absolute; inset: 0; z-index: -3; }
.scene .shot-bg, .scene .shot { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.72) contrast(1.05); }
.scene::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(5, 10, 26, .55) 0%, rgba(5, 10, 26, .15) 35%, rgba(5, 10, 26, .55) 72%, var(--bg) 100%),
              radial-gradient(120% 70% at 50% 40%, rgba(47, 107, 255, .16), transparent 60%),
              linear-gradient(90deg, rgba(5, 10, 26, .5), transparent 30%, transparent 70%, rgba(5, 10, 26, .5)); }
.scene::after { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(16, 40, 110, .28); mix-blend-mode: color; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Home hero ---------- */
.hero { min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 40px; }
.hero-main { text-align: center; display: grid; justify-items: center; gap: 22px; margin: auto 0; padding: 40px 0 56px; }
.hero-logo { display: grid; justify-items: center; gap: 22px; }
.hero-logo .emblem { width: auto; height: clamp(96px, 12vw, 156px); }
.hero-logo .wordmark { width: min(640px, 84vw); height: auto; }
.hero-tag { font: 500 clamp(17px, 1.6vw, 21px)/1.4 var(--body); color: var(--light); max-width: 36ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-cta .btn-blue .ip { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .85; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .3); }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; color: var(--muted); font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

.ticker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tick { display: flex; gap: 16px; align-items: center; min-height: 92px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(8, 17, 40, .72); backdrop-filter: blur(10px); color: var(--text); transition: border-color .15s, transform .15s; }
a.tick:hover { border-color: var(--line-2); text-decoration: none; transform: translateY(-2px); }
.tick-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 107, 255, .16); color: var(--cyan); flex: none; }
.tick .label { display: block; margin-bottom: 7px; font-size: 11px; color: var(--muted); }
.tick strong { display: block; font: 700 16px/1.25 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tick small { color: var(--muted); font-size: 14px; }
.tick > .ic:last-child { margin-left: auto; color: var(--faint); }
.tick > span:nth-child(2) { min-width: 0; }
@media (max-width: 860px) { .ticker { grid-template-columns: 1fr; } .tick { min-height: 76px; } }

/* ---------- Sections ---------- */
.sec { padding: clamp(52px, 6.5vw, 88px) 0; position: relative; }
.sec.tint { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.sec-title { font-size: clamp(28px, 4vw, 46px); max-width: 18ch; }
.sec-lede { color: var(--muted); max-width: 52ch; margin-top: 14px; font-size: 18px; }

/* Modes: four cards over the world */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.mode { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); min-height: 300px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.mode img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.75); transition: transform .6s ease; }
.mode::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 10, 26, .1) 20%, rgba(5, 10, 26, .92) 85%), linear-gradient(0deg, rgba(16, 40, 110, .35), rgba(16, 40, 110, .35)); }
.mode:hover img { transform: scale(1.04); }
.mode-top { position: absolute; top: 24px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: center; }
.mode-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(5, 10, 26, .6); border: 1px solid var(--line-2); color: var(--cyan); }
.mode h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; }
.mode p { color: var(--light); max-width: 44ch; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } .mode { min-height: 250px; padding: 22px; } .mode-top { left: 22px; right: 22px; top: 20px; } }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs button { white-space: nowrap; flex: none; padding: 10px 16px; border-radius: 6px; font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-pressed="true"], .tabs button[aria-selected="true"] { background: var(--blue); color: var(--white); }

/* Podium */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 14px; align-items: end; max-width: 760px; margin: 0 auto 18px; }
.step { position: relative; display: grid; justify-items: center; gap: 10px; padding: 26px 14px 0; border-radius: var(--r) var(--r) 0 0; border: 1px solid var(--line); border-bottom: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--text); text-align: center; overflow: hidden; }
.step:hover { text-decoration: none; border-color: var(--line-2); }
.step .head { width: 64px; height: 64px; border-radius: 8px; box-shadow: 0 0 0 4px rgba(5, 10, 26, .6); }
.step .who { font: 700 15px/1.2 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step .val { color: var(--muted); font-weight: 600; font-size: 15px; }
.step .place { width: 100%; display: grid; place-items: center; font: 900 54px/1 var(--display); color: rgba(127, 231, 255, .22); padding: 14px 0 18px; margin-top: 6px; border-top: 1px solid var(--line); }
.step.p1 { border-color: rgba(127, 231, 255, .4); background: linear-gradient(180deg, rgba(47, 107, 255, .35), var(--panel) 75%); }
.step.p1 .head { width: 84px; height: 84px; box-shadow: 0 0 0 4px var(--cyan); }
.step.p1 .place { color: var(--cyan); font-size: 72px; padding-bottom: 30px; }
.step.p2 .place { padding-bottom: 10px; }
.step.p3 .place { padding-bottom: 0; }
.step.empty { min-height: 140px; }
.rows { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 8px; }
.rows li { display: grid; grid-template-columns: 40px 32px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.rows .pos { font: 800 15px/1 var(--display); color: var(--faint); }
.rows a { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .v { font-weight: 700; color: var(--cyan); }
.board-foot { display: flex; justify-content: center; margin-top: 26px; }
@media (max-width: 600px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .panel-head h2, .panel-head h3 { font-size: 18px; }
  .panel { padding: 20px; }
  .podium { gap: 8px; }
  .step { padding-top: 18px; }
  .step .head { width: 44px; height: 44px; }
  .step.p1 .head { width: 56px; height: 56px; }
  .step .who { font-size: 12px; }
  .step .val { font-size: 13px; }
  .step .place { font-size: 38px; } .step.p1 .place { font-size: 48px; }
  .rows li { grid-template-columns: 28px 28px 1fr auto; gap: 10px; padding: 10px 14px; }
}

/* Panels and tables */
.panel { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); padding: 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h2, .panel-head h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 0 12px 12px; }
.table td { padding: 12px; border-top: 1px solid var(--line); }
.table .who { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; min-width: 0; }
.table .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .r { text-align: right; }
.table .v { color: var(--cyan); font-weight: 700; }
.table tr:hover td { background: rgba(127, 170, 255, .04); }
.zone { color: var(--muted); }
.empty-note { color: var(--muted); padding: 18px 0 4px; }

.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news-list a { display: block; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); }
.news-list a:hover { border-color: var(--line-2); text-decoration: none; }
.news-list strong { display: block; font: 700 16px/1.3 var(--display); margin: 10px 0 6px; }
.news-list p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--faint); font-size: 14px; font-weight: 500; }

/* Ranks */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rank { --c: var(--blue); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.rank::after { content: ""; position: absolute; inset: 0 0 auto; height: 140px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, transparent), transparent); pointer-events: none; }
.rank .tier { font: 700 11px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.rank h3 { font-size: 24px; color: var(--c); }
.rank p { color: var(--muted); font-size: 15px; }
.rank .price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font: 700 15px/1.2 var(--display); color: var(--text); }
.rank .price small { display: block; font: 500 13px/1.3 var(--body); color: var(--faint); margin-top: 4px; }
.rank.vip { --c: var(--vip); } .rank.elite { --c: var(--elite); } .rank.supreme { --c: var(--supreme); } .rank.champion { --c: var(--champion); } .rank.nitro { --c: var(--nitro); }
@media (max-width: 1080px) { .ranks { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .ranks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .ranks { grid-template-columns: 1fr; } }

/* Join guide */
.join { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(47, 107, 255, .16); color: var(--cyan); font: 800 14px/1 var(--display); }
.steps b { color: var(--white); }
.steps .copy { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0; padding: 5px 10px; border-radius: 6px; background: rgba(127, 231, 255, .12); color: var(--cyan); font: 700 15px/1 var(--body); }
.steps .copy:hover { background: rgba(127, 231, 255, .2); }
.join-shot { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 3.4; }
.join-shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.8); }
.join-shot figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(5, 10, 26, .82); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.join-shot figcaption strong { display: block; font: 700 15px/1.2 var(--display); }
.join-shot figcaption small { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } .join-shot { aspect-ratio: 16 / 10; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.faq details { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font: 700 15px/1.35 var(--display); letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font: 600 22px/0.8 var(--body); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* Closing band */
.cta { text-align: center; padding: clamp(80px, 12vw, 150px) 0; }
.cta .emblem { width: auto; height: 64px; margin: 0 auto 26px; }
.cta h2 { font-size: clamp(30px, 5vw, 58px); max-width: 16ch; margin: 0 auto; }
.cta p { color: var(--light); margin: 16px auto 30px; max-width: 46ch; font-size: 18px; }
.cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.page-head { padding: 150px 0 56px; min-height: 380px; display: flex; align-items: flex-end; }
.page-head h1 { font-size: clamp(34px, 6vw, 68px); }
.page-head .lede { color: var(--light); font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-top: 16px; }
.page-body { padding-top: 8px; padding-bottom: clamp(64px, 9vw, 110px); display: grid; gap: 20px; }

.search { display: flex; gap: 10px; min-width: 0; }
.page-body > * { min-width: 0; }
.search .field { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted); }
.search .field:focus-within { border-color: var(--cyan); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: var(--text); font: 500 17px var(--body); outline: none; }
.search .btn { min-height: 52px; }

.profile { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.profile .head { width: 96px; height: 96px; border-radius: 10px; }
.profile h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 10px; overflow-wrap: anywhere; }
.profile .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 0; }
.stat-grid div { min-width: 0; padding: 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.stat-grid dt { font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.stat-grid dd { margin: 0; font: 800 clamp(17px, 4.6vw, 22px)/1.15 var(--display); overflow-wrap: anywhere; }
@media (max-width: 700px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.roster a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); min-width: 0; }
.roster a:hover { border-color: var(--line-2); text-decoration: none; }
.roster span { min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster small { display: block; color: var(--muted); font-weight: 500; font-size: 14px; }
.roster .role { color: var(--cyan); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; margin-top: 4px; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.rules li::before { content: counter(r, decimal-leading-zero); font: 800 22px/1 var(--display); color: var(--cyan); padding-top: 3px; }
.rules h3 { font-size: 18px; margin-bottom: 8px; }
.rules p { color: var(--muted); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .pkg-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bg-2); }
.card .price { font: 800 22px/1 var(--display); color: var(--cyan); }
.card .desc { color: var(--muted); font-size: 15px; }
.card .desc p + p { margin-top: 8px; }

.post { padding: clamp(22px, 3vw, 34px); border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.post h2 { font-size: clamp(22px, 3vw, 30px); margin: 14px 0 8px; }
.post .text { white-space: pre-line; color: var(--light); margin-top: 18px; max-width: 70ch; }
.post img { border-radius: 10px; margin-top: 18px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; gap: 14px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.facts .tick-ic { width: 42px; height: 42px; }
.facts b { display: block; font: 700 15px/1.3 var(--display); margin-bottom: 6px; color: var(--text); }
.facts span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: #040817; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-main p { color: var(--muted); margin: 18px 0 20px; max-width: 38ch; }
.foot-main > a:hover { text-decoration: none; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot nav h2 { font: 700 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.foot nav a { color: var(--light); font-weight: 500; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-main { grid-column: 1 / -1; } }

/* ---------- Toast and entrances ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 14px 20px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 600; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.js .hero [data-rise], .js .page-head [data-rise] { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes rise { from { opacity: .001; transform: translateY(18px); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero [data-rise], .js .page-head [data-rise] { animation: none; }
  .live-dot.on { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
@media (max-width: 600px) { .table .gap { display: none; } .table td, .table th { padding-left: 8px; padding-right: 8px; } }

/* Discord */
.discord-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 10, 26, .6); color: var(--light); transition: border-color .15s, color .15s; }
.discord-btn:hover { border-color: var(--cyan); color: var(--white); text-decoration: none; }
.foot-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-cta .btn { min-height: 50px; }
.help { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.help h2 { font-size: 20px; margin-bottom: 6px; }
