:root {
  --bg: #0f1117;
  --card: #1a1d27;
  --border: #2a2f3d;
  --text: #e6e7ea;
  --muted: #9aa0aa;
  --accent: #6c8eef;
  --accent-strong: #4f74e0;
  --canon: #34a853;
  --filler: #d93f0b;
  --mixed: #f4b400;
  --anime-canon: #4285f4;
  --shadow: 0 6px 30px rgba(0,0,0,0.35);
  --radius: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f8;
    --card: #ffffff;
    --border: #e0e3eb;
    --text: #1a1d27;
    --muted: #5b6273;
    --shadow: 0 6px 30px rgba(0,0,0,0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.hero .logo {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.hero-text .subtitle {
  margin: 2px 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 480px) {
  .hero { flex-direction: column; text-align: center; gap: 12px; }
  .hero .logo { width: 84px; height: 84px; }
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 0 2px;
  color: white;
}
.tag.canon       { background: var(--canon); }
.tag.filler      { background: var(--filler); }
.tag.mixed       { background: var(--mixed); color: #1a1d27; }
.tag.anime-canon { background: var(--anime-canon); }

section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}
section h2 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
section .hint {
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}
.row:hover .check-label { color: var(--text); }
.row input { margin-top: 4px; flex: 0 0 auto; }
.check-label { flex: 1; }
.check-label em { color: var(--muted); font-style: normal; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
}
.btn:hover { border-color: var(--accent); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn.primary:hover { background: var(--accent-strong); }

.install-url {
  flex: 1 1 100%;
  margin: 4px 0 0 0;
  padding: 8px 12px;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}
.install-url code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
