:root {
  color-scheme: dark;
  --bg-panel: rgba(12, 22, 43, 0.78);
  --bg-card: rgba(8, 18, 38, 0.92);
  --text: #ebf2ff;
  --muted: #9ab0d8;
  --line: rgba(124, 176, 255, 0.28);
  --primary: #44d3ff;
  --accent: #c084fc;
  --accent-soft: #f472b6;
  --planned: #fbbf24;
  --shadow: 0 20px 45px rgba(0, 5, 20, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(192, 132, 252, 0.16), transparent 40%),
    radial-gradient(circle at 82% 8%, rgba(244, 114, 182, 0.14), transparent 36%),
    linear-gradient(160deg, #040913 0%, #0a1228 42%, #071222 100%);
  color: var(--text);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.bg-glow-1 {
  background: #a855f7;
  top: -120px;
  left: -100px;
}

.bg-glow-2 {
  background: #ec4899;
  bottom: -120px;
  right: -80px;
}

.container {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--primary);
}

.hero {
  margin-bottom: 28px;
}

.tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8b4fe;
  letter-spacing: 0.08em;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  font-family: "Orbitron", "Segoe UI", "PingFang SC", sans-serif;
  font-weight: 600;
  background: linear-gradient(90deg, #e9d5ff 0%, #c084fc 40%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.6;
  max-width: 760px;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.page-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 22, 43, 0.6);
  color: #b3c7e8;
  text-decoration: none;
  font-size: 13px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.page-nav a:hover {
  border-color: rgba(192, 132, 252, 0.6);
  color: #e9d5ff;
}

.report-panel,
.category-section {
  margin-bottom: 36px;
}

.report-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.report-panel h2,
.category-section h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.report-meta {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}

.report-panel h3 {
  margin: 24px 0 10px;
  font-size: 16px;
  color: var(--accent);
}

.report-panel h3:first-of-type {
  margin-top: 0;
}

.report-panel p,
.report-panel li {
  font-size: 14px;
  line-height: 1.75;
  color: #b8c9e8;
}

.report-panel ul,
.report-panel ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.report-panel li {
  margin-bottom: 6px;
}

.report-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.report-table th,
.report-table td {
  padding: 10px 12px;
  border: 1px solid rgba(124, 176, 255, 0.18);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  background: rgba(192, 132, 252, 0.12);
  color: #e9d5ff;
  font-weight: 600;
}

.report-table td {
  color: #b8c9e8;
}

.priority-p0 {
  color: #6ee7b7;
  font-weight: 600;
}

.priority-p1 {
  color: #fbbf24;
  font-weight: 600;
}

.priority-p2 {
  color: var(--muted);
}

.category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.category-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 640px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.game-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.game-card-source {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(124, 176, 255, 0.22);
  background: rgba(12, 22, 43, 0.5);
  color: var(--primary);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.game-card-source:hover {
  border-color: rgba(68, 211, 255, 0.55);
  background: rgba(68, 211, 255, 0.1);
  color: #77e7ff;
}

.game-card-wrap .game-card.is-hidden,
.game-card-wrap.is-hidden {
  display: none;
}

.game-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-height: 300px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.game-card-live:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 132, 252, 0.65);
  box-shadow: 0 16px 36px rgba(168, 85, 247, 0.18);
}

.game-card.is-hidden {
  display: none;
}

.badge-live {
  border: 1px solid rgba(110, 231, 183, 0.4);
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.1);
}

.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 12px;
}

.star { font-size: 14px; line-height: 1; }
.star-filled { color: #fbbf24; }
.star-empty { color: rgba(155, 176, 216, 0.35); }
.star-label { margin-left: 8px; font-size: 12px; color: var(--muted); }

.card-section { margin-bottom: 12px; }
.section-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.dna-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: #a8c4e8;
}

.search-bar { margin-bottom: 24px; }
.search-label { display: block; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.search-input-wrap { position: relative; max-width: 520px; }
.search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration { display: none; }
.search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: none; border-radius: 8px;
  background: rgba(124, 176, 255, 0.12); color: var(--muted); font-size: 20px; cursor: pointer;
}
.search-meta, .search-empty { font-size: 13px; color: var(--muted); }
.search-empty {
  margin: 0 0 20px; padding: 16px; border-radius: 12px;
  border: 1px dashed rgba(124, 176, 255, 0.35); text-align: center;
}

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.game-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.badge-planned {
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--planned);
  background: rgba(251, 191, 36, 0.1);
}

.badge-type {
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #d8b4fe;
  background: rgba(192, 132, 252, 0.1);
}

.game-card-text {
  margin: 0 0 10px;
  flex: 1;
  font-size: 13px;
  line-height: 1.65;
  color: #b8c9e8;
}

.game-card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(124, 176, 255, 0.12);
  font-size: 12px;
  color: var(--muted);
}

.game-card-meta strong {
  color: #c4d4ef;
  font-weight: 500;
}

.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.site-footer__line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  font-size: 11px;
  color: #8e9196;
}

.site-footer__sep {
  color: #6d7178;
}

.site-footer .site-footer__link,
.site-footer .site-footer__link:link,
.site-footer .site-footer__link:visited {
  color: #8e9196 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 145, 150, 0.4);
}

.site-footer .site-footer__link:hover {
  color: #a3a6ab !important;
}

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 32px 16px 48px;
  }

  .report-panel {
    padding: 20px 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}
