:root {
  --bg: #120c26; --panel: #1c1538; --panel-2: #251d48; --line: #2f2658;
  --fg: #f1edff; --muted: #a39cc9; --accent: #ffd43b; --accent-fg: #2b2100; --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: radial-gradient(1200px 600px at 80% -10%, #2a1d5c 0%, transparent 60%), var(--bg);
  color: var(--fg); min-height: 100vh;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; }
h2 { font-size: 20px; margin: 0 0 14px; }
section { margin: 32px 0; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; width: min(320px, 50vw); color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; color: var(--fg); font: inherit; width: 100%; }

.hero { position: relative; margin-top: 24px; border-radius: 24px; overflow: hidden; min-height: 260px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 36px;
  background: var(--panel); border: 1px solid var(--line); transition: background .5s ease; }
.hero .label { font-size: 12px; font-weight: 800; letter-spacing: .15em; color: var(--accent); }
.hero h1 { font-size: clamp(32px, 6vw, 52px); margin: 6px 0; line-height: 1.1; letter-spacing: -.02em; }
.hero p { color: var(--muted); margin: 0 0 20px; max-width: 480px; }
.hero img { width: clamp(110px, 22vw, 180px); height: auto; border-radius: 28%; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  transform: rotate(-6deg); transition: transform .3s ease; }
.hero:hover img { transform: rotate(0) scale(1.04); }
.hero .fade { animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .hero { grid-template-columns: 1fr; padding: 24px; } .hero img { order: -1; width: 96px; } }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .2s; }
.dots button[aria-current="true"] { width: 24px; background: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 800; padding: 11px 24px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); }
.btn.ghost { background: var(--panel-2); color: var(--fg); }
.btn:hover { filter: brightness(1.08); }

.row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 700; }
select { font: inherit; font-size: 14px; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; color: inherit; font: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--c, var(--accent)); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.card .top-row { display: flex; gap: 12px; align-items: center; }
.card img { width: 64px; height: 64px; border-radius: 16px; }
.card h3 { margin: 0; font-size: 17px; }
.card .tag-line { color: var(--muted); font-size: 13px; margin: 0; }
.card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-top: auto; }
.badge { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  background: var(--accent); color: var(--accent-fg); padding: 2px 8px; border-radius: 6px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: 11px; color: var(--muted); background: var(--panel-2); padding: 2px 8px; border-radius: 6px; }
.stars { color: var(--accent); letter-spacing: 1px; }
.stars .off { color: #4a4170; }
.empty { color: var(--muted); text-align: center; padding: 24px; }

.soon .card { cursor: default; opacity: .7; }
.soon .card:hover { transform: none; box-shadow: none; }
.soon .ph { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 24px;
  background: color-mix(in srgb, var(--c) 25%, var(--panel-2)); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat .n { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--muted); }

dialog { border: 1px solid var(--line); border-radius: 24px; background: var(--panel); color: var(--fg);
  width: min(560px, calc(100vw - 32px)); padding: 0; }
dialog::backdrop { background: rgba(5, 3, 15, .7); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.d-head { display: flex; gap: 16px; align-items: center; padding: 24px 24px 12px; }
.d-head img { width: 88px; height: 88px; border-radius: 22px; }
.d-head h2 { margin: 0 0 4px; font-size: 24px; }
.d-body { padding: 0 24px 24px; }
.d-body p { color: var(--muted); }
.d-body ul { padding-left: 18px; color: var(--muted); font-size: 14px; }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.d-stats div { background: var(--panel-2); border-radius: 12px; padding: 10px; text-align: center; }
.d-stats b { display: block; font-size: 20px; }
.d-stats small { color: var(--muted); font-size: 11px; }
.rate { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.rate button { background: none; border: 0; font-size: 24px; cursor: pointer; color: #4a4170; padding: 0 2px; }
.rate button.on { color: var(--accent); }
.d-actions { display: flex; gap: 8px; justify-content: flex-end; }
.close { position: absolute; top: 12px; right: 12px; background: var(--panel-2); border: 0; color: var(--fg);
  width: 32px; height: 32px; border-radius: 99px; cursor: pointer; font-size: 16px; }

.foot { color: var(--muted); font-size: 12px; padding: 24px 16px 40px; border-top: 1px solid var(--line); margin-top: 40px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
