:root {
  color-scheme: dark;
  --bg: #090d18;
  --panel: #111827;
  --panel-2: #161e2f;
  --text: #f4f7fb;
  --muted: #9aa8bd;
  --line: #273248;
  --accent: #f3c969;
  --green: #58d68d;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(95,115,255,.16), transparent 30rem),
    radial-gradient(circle at 85% 8%, rgba(243,201,105,.10), transparent 26rem),
    var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px); background: rgba(9,13,24,.82);
  border-bottom: 1px solid rgba(39,50,72,.7);
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px max(22px, calc((100vw - var(--max))/2));
}
.brand { display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-.02em; }
.brand b { color: var(--accent); }
.brand-ball { width:30px; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 35% 28%,#fff2b8 0 7%,var(--accent) 8% 42%,#ce8b2e 74%,#6e3c17); box-shadow:0 0 24px rgba(243,201,105,.28); }
nav { display:flex; gap:20px; color:var(--muted); font-weight:650; font-size:.95rem; }
main { min-height: calc(100vh - 180px); }
.container { width:min(var(--max), calc(100% - 36px)); margin:0 auto; }
.hero { padding:80px 0 44px; text-align:center; }
.kicker { color:var(--accent); font-size:.78rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
h1 { font-size:clamp(2.5rem,6vw,5.6rem); line-height:.98; letter-spacing:-.055em; max-width:900px; margin:14px auto 18px; }
.hero p { color:var(--muted); max-width:710px; margin:0 auto 28px; font-size:1.08rem; }
.search-shell { max-width:720px; margin:0 auto; display:flex; gap:10px; padding:8px; background:rgba(17,24,39,.86); border:1px solid var(--line); border-radius:16px; box-shadow:0 20px 70px rgba(0,0,0,.28); }
.search-shell input { flex:1; min-width:0; background:transparent; color:var(--text); border:0; outline:0; padding:12px 14px; }
.button, button { border:0; background:var(--accent); color:#17120a; font-weight:800; border-radius:10px; padding:11px 16px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.button.secondary { background:#202b41; color:var(--text); border:1px solid var(--line); }
.hero-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:15px; }
.section { padding:42px 0; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:20px; }
.section-head h2, .page-head h1 { margin:0; letter-spacing:-.035em; }
.section-head h2 { font-size:clamp(1.65rem,3vw,2.4rem); }
.section-head p, .page-head p { color:var(--muted); max-width:720px; margin:6px 0 0; }
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.ball-card { border:1px solid var(--line); background:linear-gradient(180deg,rgba(24,33,52,.95),rgba(15,22,36,.95)); border-radius:18px; padding:18px; min-height:230px; display:flex; flex-direction:column; gap:14px; transition:.2s ease; }
.ball-card:hover { transform:translateY(-2px); border-color:#3b4b69; }
.ball-card.compact { min-height:0; flex-direction:row; align-items:center; }
.ball-card.compact .orb { width:48px; flex:0 0 48px; }
.ball-card h3 { margin:4px 0; font-size:1.2rem; }
.ball-card p { color:var(--muted); margin:0; }
.eyebrow { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.78rem; flex-wrap:wrap; }
.tier-badge { padding:3px 8px; border-radius:999px; font-weight:850; color:#0c111d; }
.tier-s { background:#ffcc70; } .tier-a { background:#8ce8b8; } .tier-b { background:#9bb7ff; } .tier-c { background:#b5bac6; }
.orb { width:72px; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 35% 28%,#fff 0 5%,#9fb5ff 7% 36%,#5363c9 64%,#252a5b 100%); box-shadow:inset -10px -12px 22px rgba(0,0,0,.33),0 10px 32px rgba(0,0,0,.24); }
.orb-s { background:radial-gradient(circle at 35% 28%,#fff6ce 0 6%,#f8d46f 8% 38%,#d18b33 70%,#70411f 100%); }
.orb-a { background:radial-gradient(circle at 35% 28%,#eafff2 0 6%,#82e4b3 8% 38%,#318b72 70%,#164b42 100%); }
.orb-b { background:radial-gradient(circle at 35% 28%,#ecf1ff 0 6%,#8daaff 8% 38%,#5667c9 70%,#252b63 100%); }
.orb-c { background:radial-gradient(circle at 35% 28%,#f2f4f8 0 6%,#a7afbd 8% 38%,#596171 70%,#2a3039 100%); }
.card-actions { margin-top:auto; padding-top:14px; display:flex; gap:14px; font-size:.9rem; font-weight:700; color:#c8d2e6; }
.page-head { padding:58px 0 28px; }
.page-head h1 { font-size:clamp(2.3rem,5vw,4.4rem); }
.notice { border:1px solid #39475e; background:rgba(22,30,47,.72); border-radius:14px; padding:14px 16px; color:#c7d0df; font-size:.92rem; }
.filters { display:flex; gap:10px; flex-wrap:wrap; margin:20px 0; }
.filters input, .filters select, .compare-picker select { background:#111827; color:var(--text); border:1px solid var(--line); border-radius:10px; padding:10px 12px; }
.filters input { min-width:260px; flex:1; }
.tier-section { margin:28px 0 46px; }
.tier-title { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.tier-title h2 { margin:0; }
.compare-picker { display:grid; grid-template-columns:1fr auto 1fr auto; gap:12px; align-items:center; background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:18px; }
.vs { color:var(--accent); font-weight:900; }
.compare-result { margin-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.compare-column { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:22px; }
.compare-column h2 { margin:8px 0; }
.stat-list { list-style:none; padding:0; margin:18px 0 0; display:grid; gap:10px; }
.stat-list li { display:flex; justify-content:space-between; gap:18px; border-top:1px solid var(--line); padding-top:10px; }
.stat-list span:first-child { color:var(--muted); }
.code-list { display:grid; gap:12px; }
.code-row { display:grid; grid-template-columns:1fr 1fr auto; align-items:center; gap:12px; background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:16px; }
.code-row code { font-size:1.1rem; font-weight:900; color:var(--accent); }
.status { color:var(--green); font-weight:800; font-size:.82rem; }
.detail-hero { display:grid; grid-template-columns:120px 1fr; align-items:center; gap:24px; padding:54px 0 24px; }
.detail-hero .orb { width:110px; }
.detail-hero h1 { margin:8px 0 10px; font-size:clamp(2.3rem,5vw,4.3rem); }
.detail-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; color:var(--muted); }
.detail-grid { display:grid; grid-template-columns:1.35fr .65fr; gap:16px; padding-bottom:46px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:22px; }
.panel h2 { margin-top:0; }
.source-list { display:grid; gap:12px; }
.source-item { padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.source-item strong { display:block; margin-bottom:4px; }
.source-item p { color:var(--muted); margin:0 0 8px; }
.disclaimer { color:var(--muted); font-size:.86rem; }
.site-footer { width:min(var(--max), calc(100% - 36px)); margin:44px auto 0; padding:28px 0 36px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:24px; color:var(--muted); font-size:.9rem; }
.site-footer p { margin:5px 0 0; max-width:620px; }
.footer-links { display:flex; gap:16px; flex-wrap:wrap; align-items:flex-start; }
.empty { display:none; color:var(--muted); padding:18px 0; }
@media (max-width:800px){
  .site-header { align-items:flex-start; gap:12px; }
  nav { gap:12px; font-size:.85rem; flex-wrap:wrap; justify-content:flex-end; }
  .hero { padding-top:58px; }
  .grid { grid-template-columns:1fr 1fr; }
  .compare-picker { grid-template-columns:1fr; }
  .vs { text-align:center; }
  .detail-grid { grid-template-columns:1fr; }
  .site-footer { flex-direction:column; }
}
@media (max-width:560px){
  .site-header { position:relative; flex-direction:column; }
  nav { justify-content:flex-start; }
  .grid { grid-template-columns:1fr; }
  .search-shell { flex-direction:column; }
  .detail-hero { grid-template-columns:74px 1fr; }
  .detail-hero .orb { width:70px; }
  .compare-result { grid-template-columns:1fr; }
  .code-row { grid-template-columns:1fr auto; }
  .code-row .reward { grid-column:1/-1; }
}
