@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b1017;
  --surface: #121a24;
  --surface-2: #1a2432;
  --border: #243245;
  --text: #e9f1fa;
  --muted: #94a7bd;
  --accent: #8fd3ff;
  --accent-2: #d9f1ff;
  --accent-text: #06202e;
  --green: #4cd184;
  --red: #ff6b6b;
  --blue: #6fa8ff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(143, 211, 255, 0.08), transparent 70%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .card .title, .stat .value, .total .amount, .price {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 16px 60px; position: relative; z-index: 1; }
canvas.snow { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
header.site .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--text); text-decoration: none; }
header.site .brand .logo { width: 30px; height: 30px; flex: 0 0 auto; }
header.site .brand small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 0.85rem; }
header.site { position: relative; }
header.site nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
header.site nav a { color: var(--muted); font-size: 0.95rem; line-height: 1; }
header.site nav a:hover, header.site nav a.current { color: var(--text); text-decoration: none; }
header.site .header-right { display: flex; align-items: center; gap: 14px; margin-left: 18px; }
header.site #auth-slot { display: inline-flex; align-items: center; }
header.site #auth-slot:empty { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn svg path { transition: transform 0.2s, opacity 0.2s; transform-origin: 12px 12px; }
.menu-btn.open .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn.open .l2 { opacity: 0; }
.menu-btn.open .l3 { transform: translateY(-5px) rotate(-45deg); }

.ticker { position: relative; overflow: hidden; margin: -28px 0 24px; padding: 8px 0; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--bg) 0%, transparent 6%, transparent 94%, var(--bg) 100%); font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: ticker var(--dur, 40s) linear infinite; }
.ticker-track.static { animation: none; }
.ticker-track.static .ticker-seq[aria-hidden] { display: none; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-seq { display: flex; }
.ticker .tk { display: inline-flex; align-items: center; gap: 6px; padding: 0 22px; border-right: 1px solid var(--border); }
.ticker .tk strong { color: var(--text); font-weight: 600; }
.ticker .tk a { color: var(--accent); }
.ticker .tk .ic { opacity: 0.8; }
.ticker .tk .when { color: var(--muted); opacity: 0.7; font-size: 0.75rem; margin-left: 2px; }
.ticker + .ticker.deals { margin-top: -24px; background: linear-gradient(90deg, var(--bg) 0%, transparent 6%, transparent 94%, var(--bg) 100%), linear-gradient(180deg, rgba(245, 184, 74, 0.08), rgba(245, 184, 74, 0.02)); border-bottom-color: rgba(245, 184, 74, 0.25); }
.ticker.deals .tk { color: var(--text); text-decoration: none !important; border-right-color: rgba(245, 184, 74, 0.25); }
.ticker.deals .tk .tag { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0b1017; background: #f5b84a; padding: 2px 7px; border-radius: 999px; margin-right: 4px; }
.ticker.deals .tk strong { color: #fff; }
.ticker.deals .tk .raffle { color: #f5b84a; font-weight: 600; }
.ticker.deals .tk:hover .raffle { text-decoration: underline; }
.deal-line { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: #f5b84a; background: rgba(245, 184, 74, 0.12); border: 1px solid rgba(245, 184, 74, 0.3); border-radius: 8px; padding: 5px 9px; margin-top: 4px; }
.deal-line .tag { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0b1017; background: #f5b84a; padding: 1px 6px; border-radius: 999px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ticker { margin: -20px 0 18px; font-size: 0.78rem; } }

img.logo { display: block; object-fit: contain; }
.logo { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, rgba(143, 211, 255, 0.12), rgba(143, 211, 255, 0.03));
  border: 1px solid rgba(143, 211, 255, 0.25);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 32px;
}
.hero .logo { width: 72px; height: 72px; stroke-width: 1.4; filter: drop-shadow(0 0 18px rgba(143, 211, 255, 0.45)); }
.hero h1 { margin: 0 0 8px; font-size: 1.7rem; }
.hero p { margin: 0 0 8px; color: var(--text); }
.hero p:last-child { margin-bottom: 0; }
.hero .thanks { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; padding: 20px; text-align: left; }
  .hero .logo { width: 48px; height: 48px; }
  .hero h1 { font-size: 1.4rem; }
}

h1 { font-size: 1.9rem; margin: 0 0 6px; }
h2 { font-size: 1.3rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
p.lead { color: var(--muted); margin: 0 0 24px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-2px); border-color: #3a4152; }
.card .thumb { aspect-ratio: 16 / 9; background: var(--surface-2) center/cover no-repeat; display: block; }
.card .thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 2.4rem; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .title { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.card .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; }
.card .prizes { color: var(--muted); font-size: 0.9rem; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }

.rcard { position: relative; }
.rcard-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2) center/cover no-repeat; }
.rcard-media.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(143, 211, 255, 0.16), rgba(18, 26, 36, 0.4)); }
.rcard-media.placeholder .logo { width: 64px; height: 64px; opacity: 0.55; }
.rcard-media-wrap { position: relative; }
.rcard-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.rcard-tags .badge, .rcard-tags .badge.open, .rcard-tags .badge.closed, .rcard-tags .badge.drawn, .rcard-tags .badge.instant { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; padding: 4px 10px; background: #0b1017; border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.rcard-tags .badge::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.rcard-tags .badge.open::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.rcard-tags .badge.closed::before { background: var(--red); }
.rcard-tags .badge.drawn::before { background: var(--accent); }
.rcard-tags .badge.instant::before { background: #f5b84a; box-shadow: 0 0 8px #f5b84a; }
.rcard-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 26px 14px 10px; background: linear-gradient(180deg, rgba(11, 16, 23, 0) 0%, rgba(11, 16, 23, 0.78) 55%, rgba(11, 16, 23, 0.9) 100%); pointer-events: none; }
.rcard-strip .price { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.rcard-strip .price small { font-size: 0.75rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); margin-left: 2px; }
.rcard-strip .sub { font-size: 0.75rem; font-weight: 700; color: var(--green); background: #0b1017; border: 1px solid rgba(76, 209, 132, 0.4); padding: 3px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.rcard .body { gap: 8px; }
.rcard .title { font-size: 1.15rem; line-height: 1.25; }
.rcard-row { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: 0.9rem; }
.rcard-row .k { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.rcard-row .v { color: var(--text); }
.rcard-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.82rem; color: var(--muted); }
.rcard-facts strong { color: var(--text); font-weight: 700; }
.rcard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.chip.good { background: rgba(76, 209, 132, 0.14); color: var(--green); }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.dig-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 16px; }
.dig-top h1 { margin: 2px 0 4px; font-size: 1.6rem; }
.dig-top p { margin: 0; max-width: 62ch; }
.dig-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dig-chips .chip { font-size: 0.85rem; padding: 6px 12px; }
.dig-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .dig-layout { grid-template-columns: 1fr; } }
.dig-board-wrap { margin: 0; display: flex; flex-direction: column; justify-content: center; }
.dig-side { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.dig-divider { height: 1px; background: var(--border); }
.dig-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 440px; margin: 0 auto; width: 100%; }
.pile { position: relative; display: block; width: 100%; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, rgba(214, 240, 255, 0.06), rgba(214, 240, 255, 0.02)); padding: 10px; cursor: pointer; transition: transform 0.15s, border-color 0.15s, background 0.2s; color: var(--text); font: inherit; }
.pile > svg { display: block; width: 100%; height: auto; }
.pile .mound { fill: #dff2ff; stroke: rgba(143, 211, 255, 0.5); stroke-width: 1.5; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); transition: fill 0.2s; }
.pile .shine { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: 0.8; }
.pile:hover:not(.dug) { transform: translateY(-3px); border-color: var(--accent); }
.pile:hover:not(.dug) .mound { fill: #fff; }
.pile:active:not(.dug) { transform: translateY(0) scale(0.97); }
.pile.dug { cursor: default; animation: dig-shake 0.45s ease; }
.pile.empty { background: rgba(214, 240, 255, 0.03); border-style: dashed; }
.pile.win { border-color: var(--accent); background: radial-gradient(circle at 50% 40%, rgba(143, 211, 255, 0.28), rgba(143, 211, 255, 0.04) 70%); box-shadow: 0 0 24px rgba(143, 211, 255, 0.25); }
.pile .find { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 80 / 56; gap: 4px; font-size: 0.9rem; animation: dig-pop 0.35s ease; }
.pile .find svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(143, 211, 255, 0.6)); }
.pile .find strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--accent); }
.pile.mega { border-color: #f5b84a; background: radial-gradient(circle at 50% 40%, rgba(245, 184, 74, 0.32), rgba(245, 184, 74, 0.05) 70%); box-shadow: 0 0 34px rgba(245, 184, 74, 0.45); animation: mega-glow 1.6s ease-in-out infinite alternate; }
.pile.mega .find svg { stroke: #f5b84a; filter: drop-shadow(0 0 10px rgba(245, 184, 74, 0.8)); }
.pile.mega .find strong { color: #f5b84a; font-size: 1.3rem; }
.pile .find .tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0b1017; background: #f5b84a; padding: 2px 8px; border-radius: 999px; }
@keyframes mega-glow { from { box-shadow: 0 0 20px rgba(245, 184, 74, 0.3); } to { box-shadow: 0 0 40px rgba(245, 184, 74, 0.6); } }
@media (prefers-reduced-motion: reduce) { .pile.mega { animation: none; } }
.dig-board.digging .pile:not(.dug) { pointer-events: none; }
.dig-board.done .pile:not(.dug) { opacity: 0.45; cursor: default; }
.dig-board.done .pile:not(.dug):hover { transform: none; border-color: var(--border); }
.dig-result { max-width: 440px; margin: 12px auto 0; text-align: center; }
.dig-result:empty { display: none; }
.dig-result .alert { margin-bottom: 6px; padding: 10px 12px; }
.dig-pot-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.dig-pot .big { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.dig-pot .big.muted { color: var(--muted); }
.dig-pot .pot-bar { height: 10px; }
.dig-pot p { margin: 8px 0 0; }
.dig-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
.dig-stat-grid .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.dig-stat-grid .value { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.dig-reset { margin: auto 0 0; }
.dig-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 860px) { .dig-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .dig-facts { grid-template-columns: 1fr; } }
.dig-fact { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.dig-fact .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.dig-fact .v { margin: 0; }
.dig-fact strong { color: var(--text); }
@keyframes dig-shake { 0% { transform: translateY(0); } 25% { transform: translateY(-4px) rotate(-2deg); } 50% { transform: translateY(2px) rotate(2deg); } 75% { transform: translateY(-2px) rotate(-1deg); } 100% { transform: translateY(0); } }
@keyframes dig-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pile.dug, .pile .find { animation: none; } }
@media (max-width: 480px) { .dig-board { gap: 8px; } .pile { border-radius: 10px; padding: 6px; } .dig-top { padding: 16px; } }

.goal { margin: -6px 0 24px; padding: 20px 22px; }
.goal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.goal-amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.goal-amount .raised { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.goal-amount .of { color: var(--muted); font-size: 0.95rem; }
.goal-amount .of strong { color: var(--text); }
.goal-pct { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--text); }
.goal-bar { height: 14px; background: rgba(214, 240, 255, 0.08); }
.goal-bar > div { transition: none; box-shadow: 0 0 16px rgba(143, 211, 255, 0.45); }
.goal .small { margin-top: 10px; }
@media (max-width: 600px) { .goal-amount .raised { font-size: 2rem; } }
.limit-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.limit-row .big { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.limit-bar { height: 10px; }
.gated-hidden { display: none !important; }
.gate { text-align: center; padding: 36px 24px; max-width: 560px; margin: 24px auto; }
.gate .logo { width: 64px; height: 64px; margin: 0 auto 8px; filter: drop-shadow(0 0 18px rgba(143, 211, 255, 0.45)); }
.gate h2 { margin: 6px 0 8px; }
.gate p { margin: 0 0 14px; }
.gate .btn { margin-bottom: 12px; }
.section-title { font-size: 1.25rem; margin: 26px 0 12px; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: underline; }
.fair { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.fair summary { cursor: pointer; padding: 10px 14px; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; list-style: none; }
.fair summary::-webkit-details-marker { display: none; }
.fair .tag, .sc-past .tag { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0b1017; background: var(--green); padding: 2px 7px; border-radius: 999px; }
.fair-body { padding: 0 14px 14px; }
.fair-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; font-size: 0.85rem; margin: 6px 0; align-items: baseline; }
.fair-row .k { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.fair-row code { font-size: 0.78rem; word-break: break-all; background: var(--surface); padding: 3px 6px; border-radius: 6px; }
.fair-body .pos { color: var(--green); }
.fair-body .neg { color: var(--red); }
.fair-table { font-size: 0.78rem; }
.fair-table th, .fair-table td { padding: 5px 8px; vertical-align: top; }
.fair-table code { font-size: 0.7rem; }
.fair-table code.wrap { white-space: nowrap; }
.fair-body .table-wrap { overflow-x: auto; }
.fair-table tr.pos td:last-child { color: var(--green); }
.fair-table tr.neg td:last-child { color: var(--red); }
.fair-body .verdict { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.fair-body .verdict.pos strong { color: var(--green); }
.fair-body .verdict.neg strong { color: var(--red); }
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar-lg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(143, 211, 255, 0.4); }
.avatar-lg.letter { display: flex; align-items: center; justify-content: center; background: var(--surface-2); font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent); }
.profile-head .bio { margin: 8px 0 0; white-space: pre-wrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); text-decoration: none !important; color: var(--text); }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-empty { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.8rem; }
.gallery-item .cap { padding: 6px 8px; font-size: 0.8rem; }
.quote-block { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: rgba(143, 211, 255, 0.08); border-radius: 6px; font-size: 0.9rem; color: var(--muted); }
.thanks-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.thanks-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; font-weight: 600; font-size: 0.9rem; }
.thanks-chip:hover { border-color: var(--accent); }
.thanks-chip.top { border-color: rgba(245, 184, 74, 0.5); background: rgba(245, 184, 74, 0.1); }
.thanks-chip .rank { width: 20px; height: 20px; border-radius: 50%; background: #f5b84a; color: #0b1017; font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.thanks-grid.small .thanks-chip { font-size: 0.8rem; padding: 4px 10px; font-weight: 500; }
.health-list { display: grid; gap: 8px; }
.health-row { display: grid; grid-template-columns: 14px 180px 1fr; gap: 12px; align-items: center; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-size: 0.9rem; }
.health-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.health-row.bad .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.health-row .name { font-weight: 700; }
.health-row .detail { color: var(--muted); }
.audit-details { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.75rem; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.draw-stage { padding: 22px 24px; }
.draw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.draw-status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.draw-status .chip { font-size: 0.9rem; padding: 7px 14px; }
.draw-status .viewers { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.draw-status .viewers .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.draw-status .chip strong { font-variant-numeric: tabular-nums; }
.drum-wrap { margin: 22px auto 10px; text-align: center; }
.drum { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 260px; padding: 22px 36px; border-radius: 20px; background: radial-gradient(circle at 50% 30%, rgba(143, 211, 255, 0.22), rgba(11, 16, 23, 0.6) 70%); border: 1px solid rgba(143, 211, 255, 0.35); box-shadow: 0 0 40px rgba(143, 211, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.drum .num { font-family: var(--font-head); font-size: 3.6rem; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.drum .who { margin-top: 8px; color: var(--accent); font-weight: 600; font-size: 1rem; min-height: 1.3em; }
.drum.land { animation: drum-land 0.9s ease; border-color: #f5b84a; box-shadow: 0 0 60px rgba(245, 184, 74, 0.45); }
.drum.land .num { color: #f5b84a; }
@keyframes drum-land { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 70% { transform: scale(0.97); } 100% { transform: scale(1); } }
.drum-caption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; min-height: 1.4em; }
.hashline { margin: 12px auto 0; max-width: 760px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: 0.85rem; color: var(--muted); padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.hashline .k { color: var(--text); font-weight: 700; }
.hashline code { font-size: 0.78rem; background: var(--surface); padding: 3px 7px; border-radius: 6px; }
.hashline code.hx { color: #f5b84a; letter-spacing: 0.04em; }
.hashline strong { color: var(--text); }
.hashline .pos { color: var(--green); }
.hashline .neg { color: var(--red); }
.draw-winners { display: grid; gap: 8px; max-width: 640px; margin: 18px auto 0; }
.draw-win { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(76, 209, 132, 0.1); border: 1px solid rgba(76, 209, 132, 0.3); }
.draw-win.new { animation: dig-pop 0.5s ease; }
.draw-win .slot { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #0b1017; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.draw-win .prize { font-weight: 700; }
.draw-win .ticket { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.draw-win .who { color: var(--green); font-weight: 700; }
.draw-win .who .star { color: #c4a0ff; margin-left: 2px; }
.draw-mine { margin: 16px auto 0; max-width: 640px; text-align: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.draw-mine .chip.good { background: var(--green); color: #0b1017; }
.draw-foot { text-align: center; margin-top: 14px; }
@media (max-width: 480px) { .drum { min-width: 0; width: 100%; padding: 18px 16px; } .drum .num { font-size: 2.6rem; } .draw-win { grid-template-columns: 28px 1fr; } .draw-win .ticket, .draw-win .who { grid-column: 2; } }
.draw-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(245, 184, 74, 0.18), rgba(245, 184, 74, 0.05)); border: 1px solid rgba(245, 184, 74, 0.4); }
.draw-banner strong { color: #f5b84a; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.testimonial { position: relative; margin: 0; padding: 22px 22px 18px 26px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.testimonial .qmark { position: absolute; top: 6px; left: 12px; font-family: var(--font-head); font-size: 3.2rem; line-height: 1; color: var(--accent); opacity: 0.45; pointer-events: none; }
.testimonial blockquote { margin: 0; position: relative; color: var(--text); font-size: 0.98rem; line-height: 1.55; }
.testimonial figcaption { position: relative; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-top: auto; }
.testimonial figcaption a { color: var(--accent); }
.home-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 18px 22px; border-radius: var(--radius); color: var(--text); text-decoration: none !important; transition: transform 0.15s, border-color 0.15s; }
.home-strip:hover { transform: translateY(-2px); border-color: var(--accent); }
.home-strip h2 { margin: 0 0 4px; font-size: 1.15rem; }
.home-strip p { margin: 0; color: var(--muted); }
.home-strip .btn { white-space: nowrap; }
.rcard-progress { margin-top: 2px; }
.rcard .foot { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.rcard .foot .countdown { color: var(--text); }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge.open { background: rgba(76, 209, 132, 0.15); color: var(--green); }
.badge.closed { background: rgba(255, 107, 107, 0.15); color: var(--red); }
.badge.drawn { background: rgba(143, 211, 255, 0.15); color: var(--accent); }
.badge.pending { background: rgba(111, 168, 255, 0.15); color: var(--blue); }
.badge.paid { background: rgba(76, 209, 132, 0.15); color: var(--green); }
.badge.cancelled { background: rgba(154, 163, 181, 0.15); color: var(--muted); }

.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width 0.3s; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.price { font-weight: 800; color: var(--accent); font-size: 1.1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: filter 0.15s, transform 0.05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn.danger { background: rgba(255, 107, 107, 0.15); color: var(--red); border-color: rgba(255, 107, 107, 0.3); }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn.sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn.block { width: 100%; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.detail.detail-support { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.detail.detail-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail.detail-comm { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.detail > * { min-width: 0; }
@media (max-width: 800px) { .detail, .detail.detail-support, .detail.detail-even, .detail.detail-comm { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
#details-view, .description { overflow-wrap: anywhere; }

.msg .quote { display: block; border-left: 3px solid var(--accent); background: rgba(143, 211, 255, 0.08); border-radius: 6px; padding: 4px 8px; margin: 2px 0 6px; font-size: 0.8rem; color: var(--muted); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .quote strong { color: var(--text); margin-right: 4px; }
.msg .reply-btn { background: none; border: none; color: var(--muted); font-size: 0.72rem; cursor: pointer; padding: 0; margin-left: 8px; opacity: 0; transition: opacity 0.15s; font-family: var(--font-body); }
.msg:hover .reply-btn, .msg:focus-within .reply-btn { opacity: 1; }
@media (hover: none) { .msg .reply-btn { opacity: 1; } }
.msg.highlight { outline: 2px solid var(--accent); outline-offset: 2px; }
.reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; font-size: 0.82rem; color: var(--muted); }
.reply-bar strong { color: var(--text); }
.reply-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.reply-bar button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
@media (max-width: 640px) { .messages { max-height: 60vh; } .stages { gap: 2px; } .stage { min-width: 52px; } .stage .lbl { font-size: 0.68rem; } }

.hero-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 12px; }
.stat .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.stat .value { font-weight: 800; font-size: 1.15rem; margin-top: 2px; }

.description { color: var(--text); white-space: pre-wrap; margin: 16px 0; }

.prize-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.prize-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 10px; padding: 12px; }
.prize-list .pos { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.prize-list .pos.n2 { background: #c9ced8; }
.prize-list .pos.n3 { background: #d99a5b; }
.prize-list .pos.n4 { background: var(--border); color: var(--text); }
.prize-list .name { font-weight: 700; }
.prize-list .desc { color: var(--muted); font-size: 0.9rem; }
.prize-list .winner { margin-top: 6px; font-size: 0.9rem; color: var(--green); font-weight: 600; }

form .field { margin-bottom: 14px; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
input[type="text"], input[type="number"], input[type="password"], input[type="url"], input[type="datetime-local"], textarea, select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(143, 211, 255, 0.45); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 100px; resize: vertical; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-prefix input { padding-left: 28px; }

.stepper { display: flex; align-items: stretch; gap: 8px; }
.stepper button { width: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.stepper input { text-align: center; font-weight: 700; font-size: 1.1rem; }
.quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quick button { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; font-size: 0.85rem; }
.quick button:hover { color: var(--text); border-color: var(--accent); }

.total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; padding-top: 14px; border-top: 1px dashed var(--border); }
.total .amount { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; margin-bottom: 14px; }
.alert.error { background: rgba(255, 107, 107, 0.12); color: var(--red); border: 1px solid rgba(255, 107, 107, 0.3); }
.alert.success { background: rgba(76, 209, 132, 0.12); color: var(--green); border: 1px solid rgba(76, 209, 132, 0.3); }
.alert.info { background: rgba(111, 168, 255, 0.12); color: var(--blue); border: 1px solid rgba(111, 168, 255, 0.3); }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
td.actions { white-space: nowrap; text-align: right; }
td.actions .btn { margin-left: 6px; }
.table-wrap { overflow-x: auto; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.hidden { display: none !important; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }

.tickets-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nums-row td { background: var(--surface-2); border-radius: 8px; padding: 10px; }
.nums-row .tickets-chips span { background: var(--surface); }
.tickets-chips span { background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 8px; font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; }

.countdown { font-variant-numeric: tabular-nums; }
.countdown.urgent { color: var(--red); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 50; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 640px; padding: 24px; box-shadow: var(--shadow); }
.modal h2 { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.prize-row, .prize-head { display: grid; grid-template-columns: 1.2fr 1.3fr 74px 104px 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.prize-list .value { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.prize-head { margin-bottom: 4px; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.prize-row .p-qty { text-align: center; padding-left: 6px; padding-right: 6px; }
.prize-list .qty { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; background: rgba(143, 211, 255, 0.15); color: var(--accent); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.prize-list .winners { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.prize-list .winners span { background: rgba(76, 209, 132, 0.12); color: var(--green); border-radius: 8px; padding: 3px 9px; font-size: 0.85rem; font-weight: 600; }
.prize-list .slot { background: var(--surface); color: var(--muted); border: 1px dashed var(--border); }

.login-box { max-width: 380px; margin: 80px auto; }

#paypal-buttons { margin-top: 10px; min-height: 48px; background: #f6f8fb; color: #1f2937; border-radius: 12px; padding: 14px; }
#paypal-buttons .muted { color: #5b6575; }
#paypal-buttons .alert.info { background: #e8f1fb; color: #1d4ed8; border-color: #bfdbfe; }
#paypal-buttons iframe { color-scheme: light; }

.jump { display: none; }

.user-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px 3px 3px; color: var(--text); text-decoration: none !important; line-height: 1; }
.user-chip img, .user-chip .avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.user-chip .name { font-weight: 600; font-size: 0.9rem; }
.user-chip .bal { color: var(--accent); font-weight: 700; font-size: 0.85rem; }
@media (max-width: 640px) { .user-chip .name { display: none; } }
button.user-chip { cursor: pointer; font: inherit; }
.user-chip .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); margin-left: 2px; transition: transform 0.15s; }
.user-chip.open .caret { transform: rotate(180deg); }
.user-menu { position: relative; display: inline-flex; }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 60; display: flex; flex-direction: column; }
.user-dropdown[hidden] { display: none; }
.user-dropdown-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.user-dropdown a, .user-dropdown button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: 0.95rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; text-decoration: none !important; }
.user-dropdown a:hover, .user-dropdown button:hover, .user-dropdown a.current { background: var(--surface-2); }
.user-dropdown button { color: var(--muted); margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; }
.balance-chart { width: 100%; height: auto; display: block; }
.balance-chart .grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.balance-chart .area { fill: url(#balance-fill); }
.balance-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.balance-chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.balance-chart .dot:hover { fill: var(--accent); }
.balance-chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.chart-summary .pos { color: var(--green); }
.chart-summary .neg { color: var(--red); }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.chart-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--accent); }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { background: transparent; border: none; color: var(--muted); padding: 10px 14px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: var(--font-body); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }

.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pack { background: var(--surface-2); border: 2px solid var(--border); border-radius: 12px; padding: 16px 12px; text-align: center; cursor: pointer; transition: border-color 0.15s, transform 0.1s; }
.pack:hover { border-color: #3a4152; }
.pack.active { border-color: var(--accent); transform: translateY(-2px); }
.pack .amt { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.pack .price { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.pack .bonus { display: inline-block; margin-top: 6px; background: rgba(76, 209, 132, 0.15); color: var(--green); font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

.balance-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(143, 211, 255, 0.14), rgba(143, 211, 255, 0.03)); border: 1px solid rgba(143, 211, 255, 0.3); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.balance-card .big { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.1; }

.ledger .pos { color: var(--green); font-weight: 700; }
.ledger .neg { color: var(--red); font-weight: 700; }

.badge.queued { background: rgba(111, 168, 255, 0.15); color: var(--blue); }
.badge.answered { background: rgba(76, 209, 132, 0.15); color: var(--green); }
.badge.in_progress { background: rgba(245, 184, 74, 0.15); color: #f5b84a; }
.badge.done { background: rgba(76, 209, 132, 0.15); color: var(--green); }
.badge.item { background: rgba(154, 163, 181, 0.15); color: var(--muted); }
.badge.instant { background: rgba(245, 184, 74, 0.15); color: #f5b84a; }
.badge.premium { background: rgba(196, 160, 255, 0.18); color: #c4a0ff; }
.badge.queue { background: rgba(120, 180, 255, 0.16); color: #8ec5ff; font-variant-numeric: tabular-nums; }
.badge.gamer { background: rgba(98, 214, 132, 0.16); color: #7ee2a0; }
.mission-list { display: grid; gap: 10px; }
.mission { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 14px; border-radius: 12px; }
.mission .name { font-weight: 700; }
.mission .meta { font-size: 0.85rem; color: var(--muted); }
.mission .reward { font-weight: 700; color: #7ee2a0; white-space: nowrap; }
.mission .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mission .bar > span { display: block; height: 100%; background: linear-gradient(90deg, #62d684, #8ec5ff); }
.mission.done { border-color: rgba(98, 214, 132, 0.45); }
.mission.done .reward { color: var(--muted); }
.mc-link-box { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center; }
@media (max-width: 640px) { .mc-link-box { grid-template-columns: 1fr; } }
.mc-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: 0.18em; color: var(--accent); user-select: all; }
.gamer-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(98, 214, 132, 0.14); color: #7ee2a0; font-weight: 700; }
.queue-pos { margin-top: 6px; font-size: 0.85rem; color: var(--muted); }
.queue-pos strong { color: #8ec5ff; font-size: 1.05rem; }
.queue-note { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }
.premium-line { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: #c4a0ff; background: rgba(196, 160, 255, 0.12); border: 1px solid rgba(196, 160, 255, 0.3); border-radius: 8px; padding: 5px 9px; margin-top: 4px; }
.premium-line .tag, .plan-card .tag { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0b1017; background: #c4a0ff; padding: 1px 6px; border-radius: 999px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.plan-card { background: var(--surface-2); border: 1px solid rgba(196, 160, 255, 0.3); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-card h3 { margin: 0; font-size: 1.1rem; }
.plan-card .price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: #c4a0ff; }
.plan-card .price small { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.plan-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; display: grid; gap: 4px; }
.plan-card ul strong { color: var(--text); }
.plan-card .btn { align-self: flex-start; margin-top: auto; }
.premium-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.premium-status .stat .value { font-size: 1.05rem; }
.user-chip .star, td .star, .ticker .tk .star { color: #c4a0ff; margin-left: 2px; }
.open-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(196, 160, 255, 0.1); border: 1px solid rgba(196, 160, 255, 0.3); border-radius: 10px; padding: 8px 12px; margin-top: 10px; font-size: 0.9rem; }
.open-row .stepper { gap: 6px; }
.open-row .stepper button { width: 34px; font-size: 1rem; }
.open-row .stepper input { width: 56px; padding: 6px; }
.chip.gold { background: rgba(245, 184, 74, 0.16); color: #f5b84a; }
.alert.win { background: linear-gradient(135deg, rgba(245, 184, 74, 0.22), rgba(245, 184, 74, 0.08)); color: #f5b84a; border: 1px solid rgba(245, 184, 74, 0.5); box-shadow: 0 0 30px rgba(245, 184, 74, 0.25); text-align: center; }
.alert.win .big { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; display: block; margin-bottom: 4px; }
.alert.win .tickets-chips { justify-content: center; }
.alert.win .tickets-chips span { border-color: rgba(245, 184, 74, 0.6); color: #f5b84a; }
.odds-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.odds-box .stat .value { font-size: 1.05rem; }
@media (max-width: 480px) { .odds-box { grid-template-columns: 1fr 1fr; } }
.badge.credits { background: rgba(143, 211, 255, 0.15); color: var(--accent); }
.badge.commission { background: rgba(245, 184, 74, 0.15); color: #f5b84a; }

.commission-card .thumb { aspect-ratio: 4 / 3; }

.stages { display: flex; align-items: flex-start; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.stage { flex: 1 1 0; min-width: 64px; text-align: center; position: relative; }
.stage .dot { width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 2px solid var(--border); color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.stage .lbl { font-size: 0.75rem; color: var(--muted); line-height: 1.2; }
.stage.done .dot { background: rgba(76, 209, 132, 0.18); border-color: var(--green); color: var(--green); }
.stage.current .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 0 0 4px rgba(143, 211, 255, 0.2); }
.stage.current .lbl { color: var(--text); font-weight: 700; }
.stage:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 17px); width: calc(100% - 34px); height: 2px; background: var(--border); }
.stage.done:not(:last-child)::after { background: var(--green); }

.chat { display: flex; flex-direction: column; min-height: 420px; min-width: 0; }
.messages { flex: 1; overflow-y: auto; overflow-x: hidden; max-height: 520px; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; min-width: 0; }
.msg { max-width: min(85%, 100%); min-width: 0; box-sizing: border-box; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px 12px 12px 4px; padding: 8px 12px; align-self: flex-start; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: rgba(143, 211, 255, 0.12); border-color: rgba(143, 211, 255, 0.3); border-radius: 12px 12px 4px 12px; }
.msg .meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.msg .atts { max-width: 100%; }
.msg .quote { min-width: 0; }
.chat-form { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; min-width: 0; }
.chat-form textarea { resize: none; min-width: 0; max-height: 160px; overflow-y: auto; }
.chat-form .row { min-width: 0; }
.chat-form .row > label { flex: 0 0 auto; }
.chat-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.att-wrap { position: relative; }
.att-del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--red); color: #fff; font-size: 0.75rem; cursor: pointer; }
.thumb-link img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; background: var(--surface-2); }
.file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 0.85rem; color: var(--text); text-decoration: none !important; overflow: hidden; }
.file-chip > span:first-child, .file-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-chip button { border: none; background: transparent; color: var(--muted); cursor: pointer; }

.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

.home-hero { margin-bottom: 24px; }

.frost, .tile.frost, .hero.frost, .card.frost, .panel.frost, .balance-card.frost, .stat.frost, .prize-list li.frost {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(143, 211, 255, 0.10), rgba(18, 26, 36, 0.34) 45%, rgba(18, 26, 36, 0.42));
  border: 1px solid rgba(190, 228, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(143, 211, 255, 0.06), 0 14px 40px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
.frost::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.86  0 0 0 0 0.94  0 0 0 0 1  0 0 0 0.55 -0.1'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  background-size: 260px 260px;
  opacity: 0.16;
  mix-blend-mode: screen;
}
.frost::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(140px 110px at 0% 0%, rgba(214, 240, 255, 0.34), rgba(214, 240, 255, 0.10) 45%, transparent 72%),
    radial-gradient(180px 120px at 100% 100%, rgba(214, 240, 255, 0.22), transparent 70%),
    radial-gradient(120px 60px at 100% 0%, rgba(214, 240, 255, 0.12), transparent 70%),
    radial-gradient(90px 70px at 0% 100%, rgba(214, 240, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 28%);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 50%, black 60%, transparent 100%);
  mask-image: radial-gradient(120% 120% at 50% 50%, black 60%, transparent 100%);
}
.frost .icon { background: rgba(214, 240, 255, 0.12); border: 1px solid rgba(214, 240, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.stat.frost { border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.prize-list li.frost { border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.card.frost .thumb { background-color: rgba(214, 240, 255, 0.06); }
.card.frost .thumb.empty { background-color: rgba(214, 240, 255, 0.06); }
.card.frost:hover, .tile.frost:hover { border-color: rgba(190, 228, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(143, 211, 255, 0.2); }
.tile.frost p, .tile.frost .tile-meta { position: relative; }
@supports not (backdrop-filter: blur(1px)) { .frost { background: linear-gradient(160deg, rgba(143, 211, 255, 0.16), var(--surface) 45%); } }
.home-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .home-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .home-tiles { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; color: var(--text); text-decoration: none !important; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.tile .icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(143, 211, 255, 0.12); display: flex; align-items: center; justify-content: center; }
.tile .icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .icon { background: rgba(143, 211, 255, 0.2); }
.tile h2 { margin: 4px 0 0; font-size: 1.4rem; }
.tile p { margin: 0; color: var(--muted); flex: 1; }
.tile .tile-meta { color: var(--accent); font-size: 0.9rem; min-height: 1.4em; margin-top: auto; }
.tile .btn { align-self: flex-start; margin-top: 6px; white-space: nowrap; }
.tile p { min-height: 4.6em; }
@media (max-width: 1000px) { .tile p { min-height: 0; } }

.range { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.range button { background: transparent; border: none; color: var(--muted); padding: 7px 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.range button.active { background: var(--surface-2); color: var(--text); }

.viz-root {
  --viz-surface: #121a24;
  --viz-ink: #e9f1fa;
  --viz-ink-2: #c3c9d4;
  --viz-muted: #8a95a6;
  --viz-grid: #233041;
  --viz-axis: #34435a;
  --viz-s1: #3987e5;
  --viz-s2: #d95926;
  --viz-s3: #199e70;
  --viz-s4: #c98500;
  --viz-good: #0ca30c;
}
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.tile-stat .label { font-size: 0.78rem; color: var(--muted); }
.tile-stat .value { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; margin-top: 2px; line-height: 1.15; }
.tile-stat .sub { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.tile-stat .sub .up { color: var(--viz-good); font-weight: 600; }
.tile-stat.hero .value { font-size: 2.6rem; }
.tile-stat.hero { grid-column: span 2; }
@media (max-width: 640px) { .tile-stat.hero { grid-column: span 1; } }

.charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .charts { grid-template-columns: 1fr; } }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; min-width: 0; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-card h3 { margin: 0; font-size: 1rem; }
.chart-card .sub { color: var(--muted); font-size: 0.8rem; margin: 2px 0 10px; }
.chart-card .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--viz-ink-2); margin-bottom: 6px; }
.chart-card .legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.chart-card svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-card svg text { font-family: var(--font-body); font-size: 11px; fill: var(--viz-muted); font-variant-numeric: tabular-nums; }
.chart-card svg .grid { stroke: var(--viz-grid); stroke-width: 1; }
.chart-card svg .axis { stroke: var(--viz-axis); stroke-width: 1; }
.chart-card svg .hit { fill: transparent; }
.chart-card svg .hit:hover + .mark, .chart-card svg .mark.hover { filter: brightness(1.2); }
.chart-card .table-toggle { background: none; border: none; color: var(--muted); font-size: 0.78rem; cursor: pointer; padding: 0; margin-top: 8px; text-decoration: underline; font-family: var(--font-body); }
.chart-card table { font-size: 0.8rem; margin-top: 8px; }
.chart-card table td, .chart-card table th { padding: 5px 8px; }
.viz-tip { position: fixed; z-index: 200; pointer-events: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 0.8rem; color: var(--text); box-shadow: var(--shadow); max-width: 260px; }
.viz-tip .t-title { color: var(--muted); margin-bottom: 4px; }
.viz-tip .t-row { display: flex; justify-content: space-between; gap: 14px; }
.viz-tip .t-row i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.hbar { display: grid; grid-template-columns: minmax(80px, 160px) 1fr 70px; align-items: center; gap: 10px; font-size: 0.85rem; margin: 6px 0; }
.hbar .name { color: var(--viz-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 18px; background: transparent; position: relative; }
.hbar .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--viz-s1); min-width: 2px; }
.hbar .num { text-align: right; color: var(--viz-ink-2); font-variant-numeric: tabular-nums; }

.mc-hero .mc-icon { width: 72px; height: 72px; stroke-width: 1.4; filter: drop-shadow(0 0 18px rgba(143, 211, 255, 0.45)); }
.mc-address { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px 28px; margin-bottom: 20px; border-color: rgba(143, 211, 255, 0.35); }
@media (max-width: 860px) { .mc-address { grid-template-columns: 1fr; } }
.mc-address .addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.01em; margin: 2px 0; user-select: all; }
@media (max-width: 640px) { .mc-address .addr { font-size: 1.35rem; } }
.mc-status { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.mc-status .dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; background: var(--muted); }
.mc-status .dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(76, 209, 132, 0.18); }
.mc-status .dot.offline { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.18); }
.mc-status .dot.checking { background: var(--muted); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.mc-status .st-line { font-weight: 600; }
.players { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -10px 0 20px; }
.players .player { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; }
.mc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .mc-grid { grid-template-columns: 1fr; } }
.steps { padding-left: 0; margin: 0 0 12px; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 40px; margin-bottom: 10px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin-bottom: 6px; }
.mc-links { display: flex; flex-direction: column; gap: 8px; }
.mc-link { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); text-decoration: none !important; }
.mc-link:hover { border-color: var(--accent); }
.mc-link.disabled { opacity: 0.6; }
.mc-link .ico { font-size: 1.3rem; display: inline-flex; align-items: center; color: var(--accent); }
.feature-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card.feature .plugin { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.card.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; color: var(--text); }
kbd { background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; }

.error-page { text-align: center; padding: 60px 16px 40px; max-width: 520px; margin: 0 auto; }
.error-page .logo.big { width: 72px; height: 72px; stroke-width: 1.4; filter: drop-shadow(0 0 18px rgba(143, 211, 255, 0.45)); opacity: 0.9; }
.error-page .code { font-family: var(--font-head); font-size: 4rem; font-weight: 800; color: var(--accent); line-height: 1; margin: 10px 0 6px; letter-spacing: -0.03em; }
.error-page h1 { font-size: 1.5rem; margin: 0 0 8px; }
.error-page p { margin: 0 0 20px; }

.unread { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 800; text-align: center; vertical-align: middle; }
.prize-row select { padding: 10px 8px; }
.prize-extra { grid-column: 1 / -1; display: grid; grid-template-columns: 160px 1fr; gap: 8px; margin-top: -4px; margin-bottom: 4px; }
@media (max-width: 640px) { .prize-extra { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .container { padding: 0 14px 40px; }
  header.site { flex-wrap: nowrap; gap: 10px; padding: 12px 0; margin-bottom: 20px; }
  header.site .brand { font-size: 1.2rem; }
  header.site .header-right { margin-left: auto; gap: 10px; }
  .menu-btn { display: inline-flex; }
  header.site nav { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 40; }
  header.site nav.open { display: flex; }
  header.site nav a { font-size: 1rem; padding: 12px 14px; border-radius: 8px; line-height: 1.2; }
  header.site nav a:hover, header.site nav a.current { background: var(--surface-2); }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 10px; }
  .stat .value { font-size: 1.05rem; }
  .panel { padding: 16px; }
  .jump { display: inline-flex; }
  .btn { padding: 12px 18px; }
  .btn.sm { padding: 8px 12px; }
  .stepper button { width: 52px; }
  th, td { padding: 8px 8px; font-size: 0.88rem; }
  .modal-backdrop { padding: 12px; align-items: flex-start; }
  .modal { padding: 18px; }
  .prize-head { display: none; }
  .prize-row { grid-template-columns: 1fr 70px 40px; margin-bottom: 14px; }
  .prize-row .p-desc { grid-column: 1 / -1; }
  .prize-row .p-value { grid-column: 1 / 3; }
  td.actions { white-space: normal; }
  td.actions .btn { margin: 2px 0 2px 4px; }
  .login-box { margin: 30px auto; }
}
