:root {
  color-scheme: dark;
  --ink: #eaf2ff;
  --dim: #9aa9c2;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(12, 18, 32, 0.82);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #0a0f1e;
  color: var(--ink);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 260px;
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 26, 0.68);
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.meters {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

.meter {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  color: var(--dim);
}

.meter b {
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  width: 44px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}

.icon-btn:active {
  transform: scale(0.96);
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.combo {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0a1420;
  background: #ffd76a;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  white-space: nowrap;
}

.combo.is-on {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(10, 16, 30, 0.55), rgba(6, 10, 20, 0.9));
  backdrop-filter: blur(3px);
}

.overlay.is-hidden {
  display: none;
}

.panel {
  width: min(320px, 100%);
  padding: 20px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.panel h1 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0.16em;
}

.panel p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--dim);
}

.panel .stats {
  min-height: 18px;
  color: #ffd76a;
  font-weight: 600;
}

.primary-btn {
  width: 100%;
  min-height: 46px;
  margin: 6px 0 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #7fe3ff, #3ba7f7);
  color: #06121f;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.primary-btn:active {
  transform: translateY(1px);
}

.panel .tip {
  margin: 0;
  font-size: 11px;
  color: rgba(154, 169, 194, 0.75);
}

/* 话题侧栏页 */

.doc-body {
  overflow: auto;
  padding: 18px 16px 28px;
  background: linear-gradient(180deg, #0b1120, #131c30);
  min-height: 100%;
}

.doc {
  max-width: 520px;
  margin: 0 auto;
}

.doc h1 {
  margin: 4px 0 6px;
  font-size: 20px;
  letter-spacing: 0.12em;
}

.doc p.lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
}

.doc ol {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: #cddbef;
}

.doc .cta {
  display: inline-block;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #7fe3ff, #3ba7f7);
  color: #06121f;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.doc .note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(154, 169, 194, 0.85);
}
