* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0e1a;
  --panel: rgba(30, 36, 64, 0.6);
  --border: rgba(140, 170, 255, 0.16);
  --text: #e8edff;
  --muted: #9aa5c8;
  --accent1: #4a8dff;
  --accent2: #8b5bff;
}

html, body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(70, 90, 220, 0.12), transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(160, 70, 220, 0.10), transparent 45%),
    radial-gradient(ellipse at 70% 90%, rgba(40, 140, 200, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  min-height: 100%;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(100deg, #6ab8ff, #b46bff 60%, #ff5d8e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand em { -webkit-text-fill-color: #ffc541; font-style: normal; }

.top-actions { display: flex; align-items: center; gap: 10px; }

.btn-ghost {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 44px 0 30px; }

.hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.2;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #6ab8ff, #b46bff 55%, #ff5d8e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .sub {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero .badge-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #cfe0ff;
}

/* ---------- 游戏卡片 ---------- */
.section-title {
  margin: 34px 0 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(30, 36, 64, 0.85), rgba(16, 19, 36, 0.9));
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 170, 255, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.cover {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.cover.arc { background: radial-gradient(circle at 30% 25%, rgba(74, 168, 255, 0.55), transparent 60%), radial-gradient(circle at 75% 70%, rgba(180, 107, 255, 0.5), transparent 55%), #141a33; }
.cover.tower { background: radial-gradient(circle at 70% 20%, rgba(255, 176, 46, 0.45), transparent 55%), radial-gradient(circle at 25% 80%, rgba(255, 93, 110, 0.4), transparent 55%), #141a33; }
.cover.soon { background: #10142a; font-size: 40px; opacity: 0.55; }
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 12, 24, 0.55));
}

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-name { font-size: 18px; font-weight: 800; }
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(74, 141, 255, 0.16);
  color: #8ecbff;
  border: 1px solid rgba(74, 141, 255, 0.3);
  white-space: nowrap;
}
.tag.gold { background: rgba(255, 197, 65, 0.14); color: #ffd75e; border-color: rgba(255, 197, 65, 0.32); }

.card-desc { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }

.card-actions { display: flex; gap: 10px; margin-top: 8px; }

.btn-play {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent1), var(--accent2));
  box-shadow: 0 8px 22px rgba(90, 110, 255, 0.35);
  transition: filter 0.12s, transform 0.12s;
}
.btn-play:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn-detail {
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: #cfe0ff;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.12s;
}
.btn-detail:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- 订阅区 ---------- */
.subscribe {
  margin: 44px 0;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(30, 36, 64, 0.7), rgba(16, 19, 36, 0.8));
  text-align: center;
}
.subscribe h3 { font-size: 18px; font-weight: 800; }
.subscribe p { margin-top: 6px; font-size: 13px; color: var(--muted); }

.sub-row {
  margin: 16px auto 0;
  display: flex;
  gap: 10px;
  max-width: 420px;
}
.sub-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 13, 26, 0.7);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.sub-row input:focus { border-color: rgba(140, 170, 255, 0.45); }
.sub-row button {
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent1), var(--accent2));
}
.sub-status { margin-top: 10px; font-size: 12px; color: #8ecbff; min-height: 16px; }

/* ---------- 页脚 ---------- */
footer {
  padding: 30px 0 44px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
footer .links { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; }
footer a { color: #9fc4ff; }
footer a:hover { text-decoration: underline; }

/* ---------- 详情页 ---------- */
.detail-hero {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 30px 0 10px;
  flex-wrap: wrap;
}
.detail-cover {
  width: 220px;
  height: 160px;
  border-radius: 20px;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
}
.detail-info { flex: 1; min-width: 260px; }
.detail-info h1 { font-size: 34px; font-weight: 900; }
.detail-info .meta { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.btn-play.big { display: inline-block; flex: none; padding: 13px 44px; font-size: 16px; }

.detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 26px; margin: 26px 0 50px; }
@media (max-width: 760px) { .detail-body { grid-template-columns: 1fr; } }

.prose { font-size: 14px; line-height: 1.85; color: #c4cdea; }
.prose h2 { font-size: 18px; color: var(--text); margin: 22px 0 10px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.side-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(30, 36, 64, 0.7), rgba(16, 19, 36, 0.8));
  margin-bottom: 18px;
}
.side-card .card-title { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; }

.board-list { display: grid; gap: 6px; }
.board-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.board-rank { font-weight: 800; color: #8ecbff; }
.board-name { font-weight: 600; }
.board-meta { font-size: 10px; color: var(--muted); }
.board-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.board-empty { font-size: 12px; color: var(--muted); padding: 10px 4px; }

/* ---------- 首页(专业版) ---------- */
.hero.slim { padding: 30px 0 18px; }
.hero.slim h1 { font-size: clamp(26px, 5vw, 40px); }

.cover.beacon { background: radial-gradient(circle at 55% 15%, rgba(64, 224, 190, 0.4), transparent 55%), radial-gradient(circle at 20% 85%, rgba(40, 120, 200, 0.35), transparent 60%), #0c1626; }
.tag.teal { background: rgba(51, 223, 214, 0.12); color: #4fe8d8; border-color: rgba(51, 223, 214, 0.3); }
a.cover { cursor: pointer; }

/* ---------- 账号页 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 30px 0 50px; }
.auth-card {
  width: min(420px, 100%);
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(30, 36, 64, 0.85), rgba(16, 19, 36, 0.9));
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.auth-tab.active {
  color: #fff;
  background: rgba(74, 141, 255, 0.16);
  border-color: rgba(74, 141, 255, 0.45);
}
.auth-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.auth-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 13, 26, 0.7);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.auth-form input:focus { border-color: rgba(140, 170, 255, 0.45); }
.btn-play.full { width: 100%; border: none; cursor: pointer; }

.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 0 4px;
}
.profile-head h1 { font-size: 30px; font-weight: 900; }
.profile-head .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stats-grid { margin-bottom: 8px; }
.stat-card .big-stat { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat-card .big-stat small { font-size: 12px; font-weight: 600; color: var(--muted); }
