/* K€T4M1N website — one stylesheet, no framework. Dark only. */

:root {
  color-scheme: dark;
  --bg: #0a0912;
  --bg-2: #100f1b;
  --panel: #15142a;
  --panel-2: #1b1a33;
  --panel-3: #232142;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eeedfa;
  --muted: #9c9abb;
  --faint: #6e6c8e;
  --accent: #9d6bff;
  --accent-2: #ff5aa8;
  --accent-3: #4dd2ff;
  --good: #5af0a0;
  --warn: #ffd54a;
  --bad: #ff6b8a;
  --common: #b8b8d0;
  --rare: #4dd2ff;
  --epic: #b56bff;
  --legendary: #ffb02e;
  --mythic: #ff3b5c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --maxw: 1160px;
  --font: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(157, 107, 255, 0.18), transparent 60%),
    radial-gradient(800px 480px at 92% 4%, rgba(255, 90, 168, 0.12), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, canvas, svg { max-width: 100%; display: block; }
a { color: var(--accent-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.9em; background: rgba(255, 255, 255, 0.07); padding: 0.1em 0.45em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── navigation ─────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 18, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--text); letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a { color: var(--muted); padding: 8px 13px; border-radius: 9px; font-weight: 550; font-size: 0.95rem; transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(157, 107, 255, 0.16); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 1.2rem; }

/* ── buttons ────────────────────────────────────────────────────── */

.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 0.97rem; cursor: pointer; color: var(--text);
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #7a4dff 55%, var(--accent-2)); box-shadow: 0 10px 28px -10px rgba(157, 107, 255, 0.75); color: #fff; }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(157, 107, 255, 0.95); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6b77f5; }
.btn-sm { --h: 36px; padding: 0 15px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 30px; font-size: 1.05rem; border-radius: 14px; }
.btn[disabled], .btn.disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── hero ───────────────────────────────────────────────────────── */

.hero { position: relative; padding: 84px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 99px; background: rgba(157, 107, 255, 0.14); border: 1px solid rgba(157, 107, 255, 0.35); color: #cdb6ff; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 22px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 60%, var(--warn)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; margin: 18px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; color: var(--faint); font-size: 0.9rem; }
.hero-art { position: relative; aspect-ratio: 1 / 1.05; }
.stage {
  position: absolute; inset: 0; border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(157, 107, 255, 0.22), transparent 62%), linear-gradient(160deg, #1b1936, #11101f);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); overflow: hidden;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-label { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stage-label b { font-size: 1.05rem; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; opacity: 0.6; animation: twinkle var(--d, 4s) ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.08; transform: scale(0.6); } }

/* ── sections ───────────────────────────────────────────────────── */

.section { padding: 76px 0; }
.section-tight { padding: 44px 0; }
.section-head { max-width: 46em; margin-bottom: 38px; }
.section-head .kicker, .case-info .kicker { color: var(--accent); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover { border-color: var(--border-strong); }
.feature .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; background: linear-gradient(135deg, rgba(157, 107, 255, 0.28), rgba(255, 90, 168, 0.2)); border: 1px solid rgba(157, 107, 255, 0.4); }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.stats-band { background: linear-gradient(90deg, rgba(157, 107, 255, 0.1), rgba(255, 90, 168, 0.08)); border-block: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; padding: 34px 0; }
.stat b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 20px; left: 24px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; background: var(--accent); color: #fff; }

/* ── tags, chips, rarity ────────────────────────────────────────── */

.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid currentColor; }
.r-common { color: var(--common); } .r-rare { color: var(--rare); } .r-epic { color: var(--epic); } .r-legendary { color: var(--legendary); } .r-mythic { color: var(--mythic); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.88rem; font-weight: 600; padding: 7px 14px; border-radius: 99px; cursor: pointer; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong); color: var(--muted); transition: all 0.15s; }
.chip:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.chip[aria-pressed="true"], .chip.on { color: #fff; background: rgba(157, 107, 255, 0.28); border-color: var(--accent); }

/* ── shop ───────────────────────────────────────────────────────── */

.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.toolbar-row > label { color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; min-width: 74px; }
.banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--radius); margin-bottom: 24px; background: linear-gradient(100deg, rgba(255, 176, 46, 0.16), rgba(255, 90, 168, 0.12)); border: 1px solid rgba(255, 176, 46, 0.35); }
.banner .b-text { flex: 1; min-width: 220px; }
.banner b { color: var(--legendary); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.item { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.item:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.item .pic { aspect-ratio: 1.25 / 1; background: radial-gradient(90% 90% at 50% 18%, rgba(157, 107, 255, 0.18), rgba(10, 9, 18, 0.2)), #0d0c18; position: relative; display: grid; place-items: center; }
.item .pic canvas { width: 100%; height: 100%; }
.item .pic .glyph { font-size: 3.2rem; font-weight: 800; }
.item .pic .swatch { width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #000; }
.item .badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; }
.item .meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item .meta h3 { margin: 0; font-size: 1.03rem; }
.item .meta .col { color: var(--faint); font-size: 0.84rem; }
.item .meta .desc { color: var(--muted); font-size: 0.88rem; flex: 1; margin-top: 4px; }
.item .price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; font-weight: 750; }
.item .price .coins { color: var(--warn); }
.item .price s { color: var(--faint); font-weight: 500; margin-right: 6px; font-size: 0.88rem; }
.item .price .src { color: var(--muted); font-weight: 600; font-size: 0.86rem; }
.item.out { opacity: 0.62; }
.pill { font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--border-strong); backdrop-filter: blur(6px); }
.pill.weekly { color: var(--legendary); border-color: rgba(255, 176, 46, 0.6); }
.pill.lv { color: var(--bad); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ── tables / leaderboards ──────────────────────────────────────── */

.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 13px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); width: fit-content; max-width: 100%; margin-bottom: 22px; }
.tab { font: inherit; font-weight: 650; font-size: 0.92rem; padding: 9px 16px; border-radius: 9px; cursor: pointer; color: var(--muted); background: transparent; border: none; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--panel-3); color: #fff; box-shadow: inset 0 0 0 1px var(--border-strong); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); }
th { color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
td.rank { width: 64px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
tr.top1 td.rank { color: var(--legendary); } tr.top2 td.rank { color: #d8dbe6; } tr.top3 td.rank { color: #d99a6c; }
td.val { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
th.val { text-align: right; }
.who { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 650; }
.who:hover { text-decoration: none; color: var(--accent-3); }
.who img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; background: #000; }

/* ── player profile ─────────────────────────────────────────────── */

.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 28px; border-radius: 22px; background: linear-gradient(135deg, rgba(157, 107, 255, 0.16), rgba(255, 90, 168, 0.08)), var(--panel); border: 1px solid var(--border-strong); }
.profile-head .avatar { width: 112px; height: 112px; border-radius: 22px; image-rendering: pixelated; background: #000; border: 2px solid var(--border-strong); }
.profile-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.online { font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(90, 240, 160, 0.14); color: var(--good); border: 1px solid rgba(90, 240, 160, 0.4); }
.online.off { background: rgba(255, 255, 255, 0.05); color: var(--faint); border-color: var(--border-strong); }
.level-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.level-badge { font-weight: 800; font-size: 1.05rem; color: var(--epic); }
.progress { flex: 1; min-width: 180px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 0.8s cubic-bezier(.2, .8, .2, 1); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 22px; }
.stat-card { padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.stat-card span { color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.stat-card b { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 4px; }
.ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ach { padding: 14px 16px; border-radius: 12px; background: rgba(255, 213, 74, 0.07); border: 1px solid rgba(255, 213, 74, 0.28); }
.ach b { color: var(--warn); }
.ach small { display: block; color: var(--faint); }
.loadout { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.loadout .slot { padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); text-align: center; }
.loadout .slot canvas { width: 100%; aspect-ratio: 1.2 / 1; background: #0d0c18; border-radius: 9px; }
.loadout .slot small { color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 0.7rem; display: block; margin-top: 8px; }
.search { display: flex; gap: 10px; max-width: 460px; }
.search input { flex: 1; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); font: inherit; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157, 107, 255, 0.25); }

/* ── download / prose ───────────────────────────────────────────── */

.os-card { display: flex; flex-direction: column; gap: 12px; }
.os-card .os { font-size: 1.15rem; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.os-card .soon { color: var(--faint); font-size: 0.9rem; }
.launcher-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.launcher { padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); }
.launcher b { display: block; }
.launcher span { color: var(--muted); font-size: 0.88rem; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; color: var(--muted); }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
details { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details .answer { padding: 0 20px 18px; color: var(--muted); }
.release { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); margin-bottom: 16px; }
.release header { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.release h3 { margin: 0; font-size: 1.3rem; }
.release ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.release li { margin-bottom: 0.35em; }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #0c0b16; border: 1px solid var(--border-strong); font-family: var(--mono); font-size: 0.9rem; overflow-x: auto; }

/* ── footer ─────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--border); background: rgba(8, 7, 14, 0.7); margin-top: 60px; padding: 46px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); padding: 4px 0; font-size: 0.94rem; }
.footer a:hover { color: var(--text); text-decoration: none; }
.footer .legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.84rem; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ── states ─────────────────────────────────────────────────────── */

.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 37%, rgba(255, 255, 255, 0.04) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius); min-height: 220px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--panel-3); border: 1px solid var(--border-strong); padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transition: all 0.25s; z-index: 80; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ── responsive ─────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 12px 22px 20px; background: rgba(10, 9, 18, 0.97); border-bottom: 1px solid var(--border); margin: 0; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .profile-head h1, .level-row { justify-content: center; }
  .hero { padding-top: 48px; }
  .section { padding: 54px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── icons, dialog, misc additions ─────────────────────────────── */

svg.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.2em; }
.feature .icon svg.i { width: 24px; height: 24px; color: #e5d6ff; }
.btn svg.i { width: 1.1em; height: 1.1em; }
dialog { border: 1px solid var(--border-strong); border-radius: 22px; background: var(--panel); color: var(--text); padding: 0; width: min(880px, calc(100vw - 28px)); max-height: calc(100vh - 28px); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9); overflow: auto; }
dialog::backdrop { background: rgba(5, 4, 12, 0.72); backdrop-filter: blur(5px); }
.dlg { display: grid; grid-template-columns: 1.1fr 1fr; }
.dlg .view { position: relative; min-height: 380px; background: radial-gradient(100% 80% at 50% 10%, rgba(157, 107, 255, 0.2), transparent), #0c0b17; }
.dlg .view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dlg .info { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 10px; }
.dlg .info h2 { margin: 0; font-size: 1.7rem; }
.dlg .close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.45); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.dlg .close:hover { background: rgba(255, 255, 255, 0.12); }
.dlg dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.dlg dt { color: var(--faint); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; padding-top: 2px; }
.dlg dd { margin: 0; }
.hint { color: var(--faint); font-size: 0.86rem; }
.kbd-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cmd { font-family: var(--mono); font-size: 0.9rem; background: #0c0b16; border: 1px solid var(--border-strong); border-radius: 9px; padding: 7px 12px; display: inline-block; }
.callout { padding: 16px 20px; border-radius: 12px; border: 1px solid rgba(77, 210, 255, 0.35); background: rgba(77, 210, 255, 0.07); color: var(--muted); }
.callout b { color: var(--text); }
.callout.warn { border-color: rgba(255, 213, 74, 0.4); background: rgba(255, 213, 74, 0.07); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cfg-table td:first-child { font-family: var(--mono); font-size: 0.86rem; color: var(--muted); word-break: break-word; }
.cfg-table td:last-child { font-family: var(--mono); font-size: 0.86rem; word-break: break-word; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mt { margin-top: 22px; }
.mb { margin-bottom: 22px; }
.hidden { display: none !important; }
.spacer { height: 12px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.podium .pod { padding: 22px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.podium .pod:nth-child(1) { order: 2; border-color: rgba(255, 176, 46, 0.5); background: linear-gradient(180deg, rgba(255, 176, 46, 0.12), var(--panel)); transform: translateY(-8px); }
.podium .pod:nth-child(2) { order: 1; }
.podium .pod:nth-child(3) { order: 3; }
.podium .pod img { width: 64px; height: 64px; border-radius: 14px; image-rendering: pixelated; background: #000; }
.podium .pod b.val { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.podium .pod .place { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.podium .pod:nth-child(1) .place { color: var(--legendary); }
@media (max-width: 760px) {
  .dlg { grid-template-columns: 1fr; }
  .dlg .view { min-height: 300px; }
  .split { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium .pod:nth-child(n) { order: 0; transform: none; }
}
.dlg .view .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.dlg .view .fallback .pic { width: 70%; background: none; aspect-ratio: auto; }
.dlg .view .fallback .pic .glyph { font-size: 6rem; }
.dlg .view .fallback .pic .swatch { width: 140px; height: 140px; font-size: 3rem; border-radius: 34px; }
.h2-size { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.select { height: 46px; padding: 0 38px 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239c9abb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); font: inherit; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157, 107, 255, 0.25); }
.select option { background: #15142a; color: var(--text); }
.stage-card { position: relative; aspect-ratio: 1 / 1.1; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, rgba(157, 107, 255, 0.2), transparent 62%), linear-gradient(160deg, #1b1936, #11101f); border: 1px solid var(--border-strong); overflow: hidden; }
.stage-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-caption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
#code { text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--mono); }
.center-row { justify-content: center; }

.stage-tools { margin-top: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stage-tools .select { height: 36px; font-size: 0.86rem; padding: 0 30px 0 12px; border-radius: 10px; background-color: rgba(10, 9, 18, 0.7); }

/* ── cases ──────────────────────────────────────────────────────── */

.r-bg-common { background: var(--common); } .r-bg-rare { background: var(--rare); } .r-bg-epic { background: var(--epic); } .r-bg-legendary { background: var(--legendary); } .r-bg-mythic { background: var(--mythic); }
.case-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
.case-card { --ac: #b56bff; position: relative; display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  background: radial-gradient(90% 80% at 50% 12%, color-mix(in srgb, var(--ac) 30%, transparent), transparent 70%), var(--panel); transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.case-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.case-card[aria-selected="true"] { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac), 0 18px 44px -18px var(--ac); }
.case-card .cc-pic { aspect-ratio: 1 / 0.92; position: relative; }
.case-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-card .cc-meta { padding: 10px 14px 13px; display: flex; flex-direction: column; gap: 2px; }
.case-card .cc-meta b { font-size: 1rem; }
.coins { color: var(--warn); font-weight: 700; font-size: 0.9rem; } .free { color: var(--good); font-weight: 700; font-size: 0.9rem; }

.case-stage { --ac: #b56bff; }
.case-top { display: grid; grid-template-columns: minmax(260px, 0.9fr) 1.3fr; gap: 30px; align-items: center; padding: 22px; border-radius: 22px; border: 1px solid var(--border-strong);
  background: radial-gradient(70% 90% at 22% 40%, color-mix(in srgb, var(--ac) 26%, transparent), transparent 70%), linear-gradient(160deg, #1b1936, #11101f); }
.crate-view { position: relative; aspect-ratio: 1 / 0.95; }
.crate-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-info h2 { margin-bottom: 0.2em; }
.case-price { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 14px; } .case-price .coins, .case-price .free { font-size: 1.25rem; }
.sub { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; }
.odds-bar { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; }
.odds-bar .ob { display: block; min-width: 6px; }
.odds-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 0.88rem; }
.odds-legend .ol { display: inline-flex; align-items: center; gap: 6px; } .odds-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.case-actions .hint { max-width: 300px; }
.drops-title { margin-top: 34px; }

.tile { --rc: var(--common); position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 9px; border-radius: 12px; border: 1px solid var(--border); text-align: center; cursor: default;
  background: radial-gradient(90% 70% at 50% 20%, color-mix(in srgb, var(--rc) 26%, transparent), transparent 75%), var(--panel); box-shadow: inset 0 -3px 0 var(--rc); }
.drop-grid .tile { cursor: pointer; transition: transform 0.15s, border-color 0.15s; } .drop-grid .tile:hover { transform: translateY(-3px); border-color: var(--rc); }
.t-common { --rc: var(--common); } .t-rare { --rc: var(--rare); } .t-epic { --rc: var(--epic); } .t-legendary { --rc: var(--legendary); } .t-mythic { --rc: var(--mythic); }
.tile .tpic { width: 84px; height: 84px; display: grid; place-items: center; } .tile .tpic img { width: 84px; height: 84px; image-rendering: auto; }
.tile .tname { font-size: 0.82rem; font-weight: 650; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; }
.tile .tchance { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.drop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }

.reel { position: relative; overflow: hidden; margin-top: 22px; height: 176px; border-radius: 16px; border: 1px solid var(--border-strong); background: #0c0b17; }
.reel[hidden] { display: none; }
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 2; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, #0c0b17, transparent); } .reel::after { right: 0; background: linear-gradient(270deg, #0c0b17, transparent); }
.reel-strip { position: absolute; left: 0; top: 12px; display: flex; gap: 8px; will-change: transform; }
.reel-tile { flex: 0 0 128px; height: 152px; }
.reel-tile.won { transform: scale(1.04); box-shadow: inset 0 -3px 0 var(--rc), 0 0 28px -4px var(--rc); border-color: var(--rc); }
.reel-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--warn); box-shadow: 0 0 14px var(--warn); z-index: 3; }
.reel-result { margin-top: 14px; } .reel-result[hidden] { display: none; }
.reel-result .rr { --rc: var(--common); display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--rc); background: radial-gradient(80% 120% at 0 50%, color-mix(in srgb, var(--rc) 24%, transparent), transparent 70%), var(--panel); }
.reel-result .rr b { font-size: 1.25rem; }

.drop-feed { display: flex; flex-direction: column; gap: 8px; }
.drop-row { --rc: var(--common); display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); border-left: 3px solid var(--rc); background: var(--panel); color: var(--text); text-decoration: none; }
.drop-row:hover { text-decoration: none; border-color: var(--rc); }
.drop-row img { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; }
.drop-row .dr-text { flex: 1; min-width: 0; } .drop-row .dr-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.8rem; color: var(--muted); }
.rules ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 10px; } .rules li { color: var(--muted); } .rules li b { color: var(--text); }
.scrap-line { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-left: 4px; } .scrap-line .sc b { color: var(--warn); margin-left: 2px; }

@media (max-width: 980px) { .case-picker { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .case-picker { grid-template-columns: repeat(2, 1fr); }
  .case-top { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .crate-view { max-width: 340px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .case-card, .drop-grid .tile { transition: none; } }

/* ── account chip, login, buttons (v2.2) ────────────────────────── */

.acct { display: flex; align-items: center; gap: 8px; }
.acct-name { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; font-size: 0.92rem; padding: 4px 10px 4px 5px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.acct-name:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); }
.acct-name img { width: 24px; height: 24px; border-radius: 6px; image-rendering: pixelated; background: #000; }
.coinchip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 10px; border-radius: 10px; font-size: 0.92rem; color: var(--warn); background: rgba(255, 213, 74, 0.1); border: 1px solid rgba(255, 213, 74, 0.35); }
.coinchip:hover { text-decoration: none; background: rgba(255, 213, 74, 0.18); }
.coinchip b { font-variant-numeric: tabular-nums; }
.coinchip i { font-style: normal; font-weight: 800; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--warn); color: #1b1300; line-height: 1; }
.cdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, var(--warn) 55%, #c98a00); box-shadow: 0 0 10px rgba(255, 213, 74, 0.55); flex: none; }
.cdot.big { width: 26px; height: 26px; }
.btn-gold { background: linear-gradient(135deg, #ffd54a, #ffb02e 60%, #ff8a3d); color: #231600; box-shadow: 0 10px 28px -10px rgba(255, 176, 46, 0.7); }
.btn-gold:hover { box-shadow: 0 14px 34px -10px rgba(255, 176, 46, 0.95); }
.field { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: #0d0c18; color: var(--text); font: inherit; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157, 107, 255, 0.25); }
.lbl { display: block; margin: 16px 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 700; }
.form-error { color: var(--bad); min-height: 1.4em; margin: 8px 0 0; font-size: 0.9rem; }
dialog.small { width: min(480px, calc(100vw - 28px)); }
.login { padding: 28px 28px 24px; }
.login h2 { margin-bottom: 0.4em; }
.login-code { margin: 16px 0 10px; padding: 16px; text-align: center; font-family: var(--mono); font-size: 2.2rem; font-weight: 800; letter-spacing: 0.18em; border-radius: 14px; background: #0c0b17; border: 1px dashed var(--accent); color: #fff; text-shadow: 0 0 22px rgba(157, 107, 255, 0.8); }
.login-steps { padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.login-steps b { color: var(--text); }
.callout.good { border-color: rgba(90, 240, 160, 0.45); background: rgba(90, 240, 160, 0.08); }
.noscroll { overflow: hidden; }
.narrow { max-width: 620px; }
.skeleton.tall { min-height: 420px; }
.pill.owned { color: var(--good); border-color: rgba(90, 240, 160, 0.6); }
.owned-line { color: var(--muted); margin: 0; }
.owned-line b { color: var(--good); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.buy .form-error { flex-basis: 100%; margin: 0; }
.style-pic { width: auto; max-width: 100%; height: auto; border-radius: 18px; box-shadow: 0 10px 34px -10px rgba(0, 0, 0, 0.8); image-rendering: auto; }
.dlg .view .fallback .pic .style-pic { width: 70%; max-width: 300px; }

/* ── coin shop ──────────────────────────────────────────────────── */

.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 20px 20px; border-radius: 18px; text-align: center; border: 1px solid var(--border-strong);
  background: radial-gradient(90% 60% at 50% 0%, rgba(255, 213, 74, 0.16), transparent 70%), var(--panel); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.pack:hover { transform: translateY(-4px); border-color: rgba(255, 213, 74, 0.55); box-shadow: 0 22px 50px -22px rgba(255, 176, 46, 0.55); }
.pack.tagged { border-color: rgba(255, 176, 46, 0.6); }
.pack h3 { margin: 0; }
.pk-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 99px; background: linear-gradient(135deg, #ff5a8a, #ffb02e); color: #1a0b00; white-space: nowrap; }
.pk-coins { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 2px; color: var(--warn); }
.pk-coins b { font-size: 2.1rem; font-variant-numeric: tabular-nums; line-height: 1; }
.pk-coins span:last-child { color: var(--muted); font-size: 0.95rem; }
.pk-bonus { font-size: 0.86rem; font-weight: 700; color: var(--good); }
.pk-bonus.first { color: var(--warn); }
.pk-bonus.none { color: var(--faint); font-weight: 600; }
.pk-blurb { flex: 1; font-size: 0.9rem; margin: 6px 0; }
.pk-per { font-size: 0.78rem; color: var(--faint); margin-bottom: 8px; }
.consent { margin: 8px 0 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--muted); font-size: 0.92rem; }
.check input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.checks { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.spend { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.spend:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-3px); }
.spend .more { color: var(--accent-3); font-weight: 650; margin-top: auto; padding-top: 6px; }

/* ── cases: the real thing ──────────────────────────────────────── */

.case-card .cc-tag { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 99px; background: var(--ac); color: #0b0612; }
.case-card.locked { opacity: 0.7; filter: saturate(0.6); }
.controls { margin-top: 18px; }
.controls .case-actions { margin-top: 12px; }
.chips.bulk { display: flex; flex-wrap: wrap; gap: 8px; }
.pity { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 0.86rem; color: var(--muted); background: rgba(181, 107, 255, 0.1); border: 1px solid rgba(181, 107, 255, 0.28); }
.pity:empty { display: none; }
.streak { margin: 12px 0 0; color: var(--legendary); }
.streak .hint { color: var(--faint); }
.hint.wallet b { color: var(--warn); }
.pulse { margin: 0 0 10px; }
.pulse b { color: var(--text); }

.unbox { --rc: var(--common); position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: auto; padding: 20px; opacity: 0; transition: opacity 0.22s; background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--rc) 22%, #0a0912), #05040b 78%); }
.unbox.in { opacity: 1; }
.rv-rays { position: fixed; inset: -50%; background: repeating-conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--rc) 20%, transparent) 0deg 6deg, transparent 6deg 24deg); animation: rvSpin 28s linear infinite; pointer-events: none; mask-image: radial-gradient(circle at 50% 50%, #000 5%, transparent 40%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 5%, transparent 40%); }
.rank-0 .rv-rays { opacity: 0.25; } .rank-1 .rv-rays { opacity: 0.55; }
.rv-glow { position: fixed; left: 50%; top: 42%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 45%, transparent), transparent 66%); animation: rvPulse 2.4s ease-in-out infinite; pointer-events: none; }
.rv-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
.rv-card { position: relative; z-index: 2; width: min(560px, 100%); text-align: center; animation: rvPop 0.9s cubic-bezier(0.2, 1.35, 0.3, 1) both; }
.rank-3 .rv-card, .rank-4 .rv-card { animation: rvPop 0.9s cubic-bezier(0.2, 1.35, 0.3, 1) both, rvShake 0.7s 0.2s ease-in-out; }
.rv-rarity { display: inline-block; font-weight: 900; letter-spacing: 0.3em; font-size: 0.95rem; padding: 6px 18px; border-radius: 99px; color: #0b0612; background: var(--rc); box-shadow: 0 0 34px color-mix(in srgb, var(--rc) 70%, transparent); }
.rank-4 .rv-rarity { animation: rvFlash 0.9s ease-in-out infinite; }
.rv-pic { width: min(380px, 78vw); aspect-ratio: 1 / 1; margin: 18px auto 6px; border-radius: 26px; background: radial-gradient(80% 80% at 50% 25%, color-mix(in srgb, var(--rc) 24%, transparent), rgba(10, 9, 18, 0.55)); border: 2px solid var(--rc); box-shadow: 0 0 60px -6px color-mix(in srgb, var(--rc) 65%, transparent), inset 0 0 40px -18px var(--rc); display: grid; place-items: center; overflow: hidden; position: relative; }
.rank-3 .rv-pic, .rank-4 .rv-pic { width: min(440px, 82vw); }
.rv-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-pic canvas.style-pic { position: static; width: 70%; height: auto; max-width: 300px; }
.rv-pic .glyph { font-size: 7rem; } .rv-pic .swatch { width: 160px; height: 160px; border-radius: 38px; font-size: 3.4rem; }
.rv-pic .badges { display: none; }
.rv-name { margin: 8px 0 2px; font-size: clamp(1.7rem, 4.5vw, 2.5rem); text-shadow: 0 0 30px color-mix(in srgb, var(--rc) 70%, transparent); }
.rv-sub { margin: 0 0 8px; font-weight: 700; } .rv-sub.new { color: var(--good); } .rv-sub.dup { color: var(--warn); }
.rv-pity, .rv-streak, .rv-ach { margin: 4px 0; font-size: 0.92rem; color: var(--legendary); }
.rv-results { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 6px; }
.rv-mini { --rc: var(--common); width: 62px; height: 62px; border-radius: 10px; border: 2px solid var(--rc); background: rgba(10, 9, 18, 0.7); display: grid; place-items: center; position: relative; }
.rv-mini img { width: 52px; height: 52px; }
.rv-mini.dup::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--warn); }
.center-row { justify-content: center; }
@keyframes rvSpin { to { transform: rotate(360deg); } }
@keyframes rvPulse { 0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes rvPop { 0% { transform: scale(0.15) translateY(40px); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rvShake { 0%, 100% { translate: 0 0; } 20% { translate: -7px 3px; } 40% { translate: 6px -4px; } 60% { translate: -4px 2px; } 80% { translate: 3px -2px; } }
@keyframes rvFlash { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.7); } }

/* ── account ────────────────────────────────────────────────────── */

.acct-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 26px 30px; margin-bottom: 26px; border-radius: 22px; border: 1px solid var(--border-strong); background: radial-gradient(70% 120% at 12% 20%, rgba(157, 107, 255, 0.2), transparent 70%), linear-gradient(160deg, #1b1936, #11101f); }
.acct-skin { height: 160px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6)); }
.acct-main h1 { margin: 0 0 6px; }
.acct-level { display: flex; align-items: baseline; gap: 12px; }
.xpbar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 8px 0 4px; max-width: 420px; }
.xpbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.acct-wallet { text-align: right; }
.big-coins { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--warn); }
.big-coins b { font-size: 2.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tab-body { min-height: 200px; }
.quest { padding: 16px 18px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); }
.quest.done { border-color: rgba(90, 240, 160, 0.4); }
.quest .q-top { display: flex; justify-content: space-between; gap: 12px; }
.status { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.status.s-paid { color: var(--good); background: rgba(90, 240, 160, 0.12); }
.status.s-pending { color: var(--warn); background: rgba(255, 213, 74, 0.12); }
.status.s-refunded, .status.s-disputed, .status.s-failed, .status.s-mismatch { color: var(--bad); background: rgba(255, 107, 138, 0.12); }

@media (max-width: 760px) {
  .nav-cta { display: flex; margin-left: auto; }
  .nav-cta > .btn-primary { display: none; }
  .menu-btn { margin-left: 8px; }
  .acct-name span { display: none; }
  .acct-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px 18px; }
  .acct-skin { height: 120px; }
  .acct-wallet { text-align: center; } .big-coins { justify-content: center; }
  .xpbar { margin-left: auto; margin-right: auto; }
  .row { justify-content: center; }
}
