:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 20px; }
header { border-bottom: 1px solid var(--border); background: #0b1220; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-size: 1.35rem; font-weight: 800; color: #fff; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 16px; }
.sponsor-slot { background: #111c33; border: 1px dashed var(--border); border-radius: 10px; padding: 14px 18px; text-align: center; color: var(--muted); font-size: 0.85rem; margin: 18px 0; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ad-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; font-weight: 700; }
.ad-unit { width: 100%; min-height: 90px; display: block; }
.sponsor-card { width: 100%; background: linear-gradient(135deg, #13223e 0%, #172a4b 100%); border: 1px solid #2a3f63; border-radius: 10px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.sponsor-card-copy { flex: 1 1 280px; }
.sponsor-card-title { font-weight: 700; color: #f8fafc; font-size: 0.96rem; margin: 2px 0; }
.sponsor-card-text { color: var(--muted); font-size: 0.84rem; margin: 0; }
.sponsor-cta { display: inline-block; background: var(--accent); color: #0b1220; font-weight: 700; font-size: 0.85rem; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.sponsor-cta:hover { text-decoration: none; opacity: 0.92; }
.sticky-ad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; background: rgba(11, 18, 32, 0.96); border-top: 1px solid var(--border); padding: 8px 40px 8px 14px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.sticky-ad.hidden { display: none; }
.sticky-ad-inner { max-width: 970px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.85rem; color: var(--muted); }
.sticky-ad-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-size: 0.95rem; line-height: 1.2; cursor: pointer; }
.sticky-ad-close:hover { color: #fff; border-color: var(--accent); }
body.has-sticky-ad { padding-bottom: 72px; }
.stats-bar { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 18px; }
.stat-chip { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; }
.stat-chip strong { color: #fff; }
.region-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 18px; }
.pill { background: #0b1220; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.pill:hover { color: #fff; border-color: var(--accent); }
.pill.active { background: var(--accent); color: #0b1220; border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; margin: 20px 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.15s ease; }
.card:hover { border-color: var(--accent); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-head h3 { margin: 0; font-size: 1.08rem; }
.region-tag { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border-radius: 999px; padding: 2px 9px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.b-high { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.b-mid { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.b-low { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; align-items: center; }
input, select, button { background: #0b1220; color: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 0.92rem; }
button { background: var(--accent); color: #0b1220; font-weight: 700; cursor: pointer; border-color: var(--accent); }
button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
button:hover { opacity: 0.92; }
.filter-meta { color: var(--muted); font-size: 0.85rem; margin-left: auto; }
.store-panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.store-panel h3 { margin: 0 0 6px; font-size: 1rem; color: #fff; }
.store-status { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.panel-store-results { margin-top: 10px; }
.panel-store-results .store-list { margin-top: 0; padding-top: 10px; font-size: 0.88rem; }
.store-list { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 0.82rem; }
.store-item { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dist-pill { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; padding: 1px 7px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.game-cell { display: flex; align-items: flex-start; gap: 12px; }
.src-link { color: var(--muted); font-size: 0.76rem; margin-left: 6px; }
.src-link:hover { color: var(--accent); }
.thumb { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border); background: #0b1220; cursor: zoom-in; flex-shrink: 0; }
.thumb-ph { width: 52px; height: 52px; border-radius: 6px; border: 1px solid var(--border); background: #162238; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); flex-shrink: 0; text-align: center; overflow: hidden; padding: 2px; line-height: 1.15; }
.ticket-badge { width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; text-align: center; line-height: 1.1; }
.ticket-badge .tb-price { font-size: 0.92rem; font-weight: 800; color: #f8fafc; }
.ticket-badge .tb-state { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; opacity: 0.8; margin-top: 2px; }
.tb-low { background: linear-gradient(135deg, #1e293b, #0f172a); border-color: #475569; }
.tb-mid { background: linear-gradient(135deg, #064e3b, #0f172a); border-color: #10b981; }
.tb-high { background: linear-gradient(135deg, #3b0764, #1e1b4b); border-color: #a855f7; }
.tb-vip { background: linear-gradient(135deg, #78350f, #451a03); border-color: #f59e0b; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; vertical-align: top; }
th { background: #162238; color: #cbd5e1; }
tr:hover td { background: #253349; }
.empty-row td { text-align: center; color: var(--muted); padding: 28px 14px; }
.lb { display: none; position: fixed; inset: 0; background: rgba(2, 6, 23, 0.86); z-index: 999; align-items: center; justify-content: center; flex-direction: column; gap: 12px; cursor: zoom-out; padding: 24px; }
.lb.open { display: flex; }
.lb img { max-width: min(92vw, 420px); max-height: 75vh; border-radius: 8px; border: 2px solid var(--accent); }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs span { opacity: 0.7; }
.summary-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.summary-box p { margin: 10px 0 0; color: #cbd5e1; font-size: 0.92rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; }
.kpi-card { background: #131f35; border: 1px solid #293852; border-radius: 10px; padding: 10px 13px; }
.kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.kpi-val { font-size: 1.12rem; font-weight: 800; color: #f8fafc; margin-top: 2px; }
.kpi-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.price-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 16px; }
.price-links-label { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.price-pill { display: inline-block; background: #0b1220; color: #cbd5e1; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; font-weight: 700; }
.price-pill:hover { border-color: var(--accent); color: #fff; text-decoration: none; }
.price-pill.active { background: var(--accent); color: #0b1220; border-color: var(--accent); }
.game-link { color: #f8fafc; font-weight: 700; }
.game-link:hover { color: var(--accent); }
.progress-track { width: 100%; height: 8px; background: #0b1220; border-radius: 999px; overflow: hidden; margin-top: 6px; border: 1px solid #26354d; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #22c55e); border-radius: 999px; }
.progress-fill.pf-low { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.warn-banner { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.45); color: #fecaca; border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 0.9rem; }
.stale-badge { display: inline-block; background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 999px; padding: 1px 8px; font-size: 0.72rem; font-weight: 700; vertical-align: middle; margin-left: 4px; }
.changes-box { background: #131f35; border: 1px solid #293852; border-radius: 12px; padding: 15px 18px; margin: 16px 0; }
.changes-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.changes-head h2, .changes-head h3 { margin: 0; font-size: 1rem; color: #f8fafc; }
.change-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.change-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.88rem; color: #e2e8f0; }
.chg-tag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.chg-new { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.chg-claimed { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.chg-out { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.chg-ended { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
.faq-section { margin: 28px 0 8px; }
.faq-section h2 { font-size: 1.15rem; margin: 0 0 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.faq-item summary { font-weight: 700; cursor: pointer; color: #f8fafc; font-size: 0.95rem; }
.faq-item p { margin: 8px 0 0; color: #cbd5e1; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btn-link { display: inline-block; background: var(--accent); color: #0b1220; font-weight: 700; padding: 9px 15px; border-radius: 8px; font-size: 0.9rem; }
.btn-link:hover { text-decoration: none; opacity: 0.92; }
.btn-link.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-link.secondary:hover { border-color: var(--accent); }
footer { margin-top: 40px; border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 0.85rem; }
