:root {
  --bg: #0a0a12;
  --bg-2: #0f0f1c;
  --panel: #151528;
  --panel-2: #1b1b33;
  --line: #2a2a44;
  --text: #e6e6f0;
  --muted: #9a9ab5;
  --dim: #6b6b85;
  --magenta: #e879f9;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --glow-magenta: 0 0 24px rgba(232, 121, 249, 0.35);
  --glow-purple: 0 0 18px rgba(168, 85, 247, 0.30);
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 18, 0.9);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); }
.brand-mark { color: var(--magenta); font-size: 22px; text-shadow: var(--glow-magenta); }
.brand-name { font-weight: 700; letter-spacing: 0.16em; font-size: 18px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--magenta); }

/* hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(232,121,249,0.12), transparent 70%),
    radial-gradient(500px 280px at 10% 20%, rgba(34,211,238,0.10), transparent 70%);
}
.hero-kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.28em;
  color: var(--magenta); margin-bottom: 18px; text-shadow: var(--glow-magenta);
}
.hero-title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; max-width: 720px; }
.hero-sub { color: var(--muted); font-size: 18px; margin: 22px 0 30px; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--magenta), var(--purple)); color: #1a0b1e; box-shadow: var(--glow-magenta); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple); }

/* sections */
section { padding: 40px 0; }
.section-title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 24px; }
.section-title::before { content: "// "; color: var(--magenta); font-family: var(--mono); font-size: 20px; }

/* cards */
.card-grid { display: grid; gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.genre-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.genre-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: var(--glow-purple); }
.score-badge {
  align-self: flex-start; display: inline-flex; align-items: baseline; gap: 3px;
  font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px;
}
.score-num { font-size: 22px; font-weight: 800; color: var(--lime); text-shadow: 0 0 14px rgba(163,230,53,0.5); }
.score-max { color: var(--dim); font-size: 12px; }
.card-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.card-meta { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.card-excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.card-link { color: var(--cyan); font-size: 14px; font-weight: 600; }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  transition: transform .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--magenta); }
.cat-name { font-weight: 700; font-size: 15px; }
.cat-count { color: var(--dim); font-size: 13px; font-family: var(--mono); }

/* recent list */
.recent-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.recent-list li { border-bottom: 1px solid var(--line); }
.recent-list a { display: flex; justify-content: space-between; gap: 20px; padding: 14px 4px; transition: background .12s; }
.recent-list a:hover { background: var(--panel); }
.recent-title { font-weight: 600; }
.recent-meta { color: var(--dim); font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* page head */
.page-head { padding: 56px 0 20px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.page-sub { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 640px; }
.back-link { margin-top: 24px; }
.back-link a { color: var(--cyan); font-weight: 600; }

/* guide */
.guide { padding: 28px 0 40px; }
.guide-wrap { max-width: 960px; }
.breadcrumb { font-size: 14px; color: var(--dim); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--magenta); }
.guide-head { margin-bottom: 24px; }
.guide-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.guide-tagrow { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.tag-dim { color: var(--dim); border-color: transparent; background: var(--panel); }

.score-card {
  float: right; width: 260px; margin: 0 0 24px 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  box-shadow: var(--glow-purple);
}
.score-hero { display: flex; align-items: baseline; gap: 4px; margin-bottom: 16px; }
.score-num.big { font-size: 46px; color: var(--lime); text-shadow: 0 0 22px rgba(163,230,53,0.55); }
.score-facts { display: flex; flex-direction: column; gap: 12px; }
.score-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.score-facts dt { color: var(--dim); }
.score-facts dd { color: var(--text); font-weight: 600; }

.guide-body { max-width: 640px; }
.guide-section { margin-bottom: 34px; }
.guide-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; display: flex; gap: 12px; align-items: baseline; }
.sec-num { font-family: var(--mono); color: var(--magenta); font-size: 15px; text-shadow: var(--glow-magenta); }
.guide-section p { color: #cdcde0; margin-bottom: 14px; }

/* legal */
.legal-body { padding: 24px 0 60px; }
.legal-body p { margin-bottom: 16px; color: #cdcde0; }
.legal-body h2 { font-size: 20px; margin: 28px 0 12px; }
.legal-body a { color: var(--cyan); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 40px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer-brand .brand-name { font-family: var(--mono); font-weight: 700; letter-spacing: 0.16em; }
.footer-tag { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 320px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--magenta); }
.footer-note { width: 100%; color: var(--dim); font-size: 13px; margin-top: 12px; }

@media (max-width: 900px) {
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .score-card { float: none; width: 100%; margin: 0 0 24px 0; }
  .guide-body { max-width: none; }
}
@media (max-width: 560px) {
  .card-grid.three { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .recent-list a { flex-direction: column; gap: 4px; }
  .recent-meta { white-space: normal; }
}
