:root {
  --bg: #0a0d12;
  --panel: #131820;
  --panel-2: #1c222d;
  --text: #e6ebf2;
  --muted: #8a93a0;
  --accent: #4fb3ff;
  --accent-2: #ffd166;
  --good: #6ddc9b;
  --bad: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
  height: 100%; overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.app {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: 100vh;   /* lock the row to viewport height — keeps the
                                  canvas centered even if sidebar content
                                  (long curriculum + new ad slot) is taller */
  height: 100vh; width: 100vw;
}
.app > * { min-height: 0; min-width: 0; }   /* allow grid items to shrink */

@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 45vh 55vh; }
  .sidebar { border-right: none; border-bottom: 1px solid #000; }
}

.sidebar {
  background: var(--panel); padding: 14px;
  overflow-y: auto; overflow-x: hidden;
  border-right: 1px solid #000;
}

.brand { margin-bottom: 14px; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: 1px; }
.brand .sub { font-size: 11px; color: var(--muted); letter-spacing: 3px; }

.panel {
  background: var(--panel-2); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px;
}
.panel h2 {
  margin: 0 0 10px 0; font-size: 12px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 2px;
}

.curriculum { display: flex; flex-direction: column; gap: 4px; }
.curriculum .chap { color: var(--muted); font-size: 11px; margin: 6px 0 4px; letter-spacing: 1px; }
.curriculum .lesson-btn {
  background: #232a36; color: var(--text);
  border: 1px solid #232a36; border-radius: 6px;
  padding: 7px 10px; font-size: 13px; cursor: pointer; text-align: left;
  transition: all .15s;
}
.curriculum .lesson-btn:hover { background: #2c3543; }
.curriculum .lesson-btn.active {
  border-color: var(--accent); background: #1d3a55; color: #fff;
}
.curriculum .lesson-btn .desc { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.lesson-btn-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.lesson-badge {
  font-size: 10px;
  letter-spacing: 0;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  font-weight: 600;
}
.lesson-badge.progress {
  background: rgba(79,179,255,0.15);
  border: 1px solid rgba(79,179,255,0.3);
  color: var(--accent);
}
.lesson-badge.done {
  background: rgba(109,220,155,0.15);
  border: 1px solid rgba(109,220,155,0.4);
  color: var(--good);
}

.seg { display: flex; gap: 4px; }
.seg button {
  flex: 1; padding: 7px 4px; font-size: 12px;
  background: #232a36; color: var(--text);
  border: 1px solid #2c3543; border-radius: 5px;
  cursor: pointer;
}
.seg button:hover { background: #2c3543; }
.seg button.active { background: #1d3a55; border-color: var(--accent); color: #fff; }

.check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; margin: 4px 0; cursor: pointer;
}
.check input { accent-color: var(--accent); }

.row { display: flex; align-items: center; gap: 8px; }
.row label { font-size: 12px; color: var(--muted); width: 30px; }
.row input[type=range] { flex: 1; accent-color: var(--accent-2); }

.strike-row { margin-top: 10px; }
.strike-label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 6px; }
.strike-dial { display: flex; justify-content: center; }
.strike-track {
  position: relative;
  width: 80px;
  height: 110px;
  background: rgba(255,255,255,0.05);
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
}
.strike-tick {
  position: absolute;
  left: 90px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.strike-tick.top { top: 8px; }
.strike-tick.mid { top: 50%; transform: translateY(-50%); color: var(--accent); }
.strike-tick.bot { bottom: 8px; }
.strike-handle {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 20px;
  background: linear-gradient(180deg, #fff 0%, #ccc 100%);
  border: 2px solid #1a1f2c;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 6px rgba(255,255,255,0.3);
}
.readout { font-size: 12px; color: var(--muted); width: 40px; text-align: right; }
.readout b { color: var(--text); }

.hint { font-size: 11px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }

.lesson #lessonTitle {
  text-transform: none; letter-spacing: 0;
  color: var(--accent-2); font-size: 14px;
}

.section-list {
  display: flex; flex-direction: column; gap: 3px;
  margin-bottom: 12px;
}
.section-list .section-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 4px;
  font-size: 12px; color: var(--muted);
  cursor: pointer;
  transition: background .12s;
}
.section-list .section-item:hover { background: rgba(255,255,255,0.04); }
.section-list .section-item.active {
  background: rgba(79,179,255,0.18);
  color: #fff;
}
.section-list .section-item.completed {
  color: var(--good);
}
.section-list .section-item .icon {
  width: 16px; height: 16px; display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-list .section-item.completed .icon::before { content: '✓'; color: var(--good); font-weight: bold; }
.section-list .section-item.active .icon::before { content: '▶'; color: var(--accent); font-size: 10px; }
.section-list .section-item .icon::before { content: '○'; color: rgba(255,255,255,0.25); }

.section-nav {
  display: flex; gap: 6px; margin-top: 8px;
}
.section-nav-btn {
  flex: 1;
  background: #232a36; color: var(--text);
  border: 1px solid #2c3543; border-radius: 5px;
  padding: 7px 8px; cursor: pointer; font-size: 12px;
}
.section-nav-btn:hover { background: #2c3543; }
.section-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.section-nav-btn.primary { background: #1d3a55; border-color: var(--accent); color: #fff; }
.section-nav-btn.primary:hover { background: #265583; }

.practice-stats {
  margin-top: 10px; padding: 8px 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  font-size: 12px; color: var(--muted);
  line-height: 1.6;
}
.practice-stats b { color: var(--text); }

/* Native [hidden] must win over our flex/grid display. */
[hidden] { display: none !important; }

/* Article overlay (intro/concept/compare/summary) */
.lesson-overlay {
  position: absolute; inset: 0;
  background: rgba(5, 8, 14, 0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 10;
  overflow-y: auto;
}
.lesson-overlay-card {
  background: #161b22;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 640px;
  width: 100%;
  color: #e6ebf2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  max-height: 100%;
  overflow-y: auto;
}
.lesson-overlay-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lesson-overlay-title {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--accent-2);
}
.lesson-overlay-body {
  font-size: 14px;
  line-height: 1.75;
  color: #d4dae3;
}
.lesson-overlay-body p { margin: 10px 0; }
.lesson-overlay-body b { color: var(--accent); }
.lesson-overlay-body u { color: var(--accent-2); text-decoration: none; border-bottom: 1px dashed; }
.lesson-overlay-body ul { margin: 10px 0; padding-left: 22px; }
.lesson-overlay-body li { margin: 4px 0; }
.lesson-overlay-body .lesson-meta {
  margin-top: 14px; padding: 8px 12px;
  background: rgba(79,179,255,0.10);
  border-left: 3px solid var(--accent);
  font-size: 12px; color: var(--muted); border-radius: 4px;
}
.lesson-overlay-body .lesson-cta {
  margin-top: 16px; padding: 10px 14px;
  background: rgba(255,209,102,0.10);
  border-left: 3px solid var(--accent-2);
  font-size: 13px; color: #ffd166; border-radius: 4px;
}
.lesson-overlay-diagram {
  margin: 18px 0;
  background: #0a0e14;
  border-radius: 8px;
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.lesson-overlay-diagram svg { max-width: 100%; height: auto; }
.lesson-overlay-keypoints {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.lesson-overlay-keypoints li {
  background: rgba(79,179,255,0.08);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  font-size: 13px; color: #cfd6df;
  border-radius: 0 4px 4px 0;
}
.lesson-overlay-keypoints li::before { content: '▸ '; color: var(--accent); font-weight: bold; }
.lesson-overlay-footer {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.overlay-nav-btn {
  background: #232a36; color: var(--text);
  border: 1px solid #2c3543; border-radius: 6px;
  padding: 9px 18px; cursor: pointer; font-size: 13px;
}
.overlay-nav-btn:hover { background: #2c3543; }
.overlay-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.overlay-nav-btn.primary {
  background: linear-gradient(180deg, #4fb3ff 0%, #2d80c7 100%);
  border-color: #4fb3ff;
  color: #fff;
  font-weight: 500;
}
.overlay-nav-btn.primary:hover {
  background: linear-gradient(180deg, #62c0ff 0%, #3a92db 100%);
}

/* Summary card layout */
.summary-status {
  margin: 4px 0 12px;
  font-size: 18px;
  font-weight: 600;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.summary-cell {
  background: rgba(79,179,255,0.08);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
}
.summary-cell-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.summary-cell-value {
  margin-top: 4px;
  font-size: 16px;
  color: #d4dae3;
}
.summary-cell-value b {
  font-size: 22px;
  color: var(--accent-2);
  font-family: "Menlo", "Consolas", monospace;
}
.summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.stat-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
}
.stat-badge.thick { color: #ff8b5e; border-color: rgba(255,139,94,0.3); }
.stat-badge.thin { color: #6fc8ff; border-color: rgba(111,200,255,0.3); }
.stat-badge.miss { color: #ff6b9b; border-color: rgba(255,107,155,0.3); }
.stat-badge.scratch { color: #ffd166; border-color: rgba(255,209,102,0.3); }
.summary-recommendation {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255,209,102,0.08);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #cfd6df;
}
.summary-recommendation b {
  color: var(--accent-2);
}

/* Comparison table */
.compare-table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.compare-table th, .compare-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.compare-table th {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.compare-table td:first-child { font-weight: 500; color: var(--accent-2); }

/* Practice hint banner */
.practice-hint {
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  background: rgba(20,24,34,0.85);
  border: 1px solid rgba(79,179,255,0.3);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px; color: #cfd6df;
  max-width: 80%;
  text-align: center;
  z-index: 8;
  pointer-events: none;
}
.practice-hint b { color: var(--accent-2); }

.show-ideal-btn {
  display: inline-block;
  margin-top: 6px;
  background: rgba(255,209,102,0.15);
  border: 1px solid rgba(255,209,102,0.4);
  color: var(--accent-2);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
}
.show-ideal-btn:hover {
  background: rgba(255,209,102,0.25);
  border-color: var(--accent-2);
}

/* Feedback card */
.feedback-card {
  position: absolute; top: 60px; left: 50%;
  transform: translateX(-50%);
  background: #161b22;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 14px 18px;
  width: min(440px, 88%);
  z-index: 11;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  animation: feedback-slide 0.25s ease-out;
}
@keyframes feedback-slide {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.feedback-card.success { border-color: #6ddc9b; }
.feedback-card.fail    { border-color: #ff7676; }
.feedback-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.feedback-card-icon { font-size: 22px; }
.feedback-card-title {
  flex: 1;
  font-size: 14px; font-weight: 600;
  color: #e6ebf2;
}
.feedback-card-close {
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-size: 20px; line-height: 1;
  padding: 0 4px;
}
.feedback-card-close:hover { color: #fff; }
.feedback-card-body {
  font-size: 13px; line-height: 1.6;
  color: #d4dae3;
}
.feedback-card-body b { color: var(--accent-2); }
.feedback-card-actions {
  display: flex; gap: 8px;
  margin-top: 12px;
}
.feedback-action {
  background: #232a36; color: var(--text);
  border: 1px solid #2c3543; border-radius: 6px;
  padding: 7px 14px; cursor: pointer; font-size: 12px;
}
.feedback-action:hover { background: #2c3543; }
.feedback-action.primary {
  background: linear-gradient(180deg, #6ddc9b 0%, #3ba87a 100%);
  border-color: #6ddc9b;
  color: #0a1c12;
  font-weight: 600;
}

.btn {
  width: 100%; background: #232a36; color: var(--text);
  border: 1px solid #2c3543; border-radius: 6px;
  padding: 8px; cursor: pointer; font-size: 13px;
}
.btn:hover { background: #2c3543; }

.stats {
  display: flex; justify-content: space-between;
  margin-top: 10px; font-size: 12px; color: var(--muted);
}
.stats b { color: var(--text); font-size: 14px; margin-left: 4px; }

.stage {
  position: relative;
  background: radial-gradient(circle at center, #161b23 0%, #07090c 100%);
  overflow: hidden;
}

#scene { display: block; width: 100%; height: 100%; }

.banner {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75); color: var(--accent-2);
  padding: 10px 20px; border-radius: 6px;
  font-size: 14px; pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.banner.show { opacity: 1; }

.hud {
  position: absolute; top: 60px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: var(--muted);
  padding: 6px 14px; border-radius: 4px;
  font-size: 11px; pointer-events: none;
  letter-spacing: 1px;
}

.action-bar {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  align-items: center;
}
.fire-btn {
  background: linear-gradient(180deg, #ff8a3c 0%, #e63946 100%);
  color: #fff; font-weight: bold; font-size: 16px;
  border: none; border-radius: 30px;
  padding: 12px 36px;
  letter-spacing: 4px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(230,57,70,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform .08s, box-shadow .15s;
}
.fire-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230,57,70,0.6); }
.fire-btn:active { transform: translateY(1px); }
.fire-btn:disabled {
  background: #3a3f48; color: #777;
  box-shadow: none; cursor: not-allowed;
}

/* Reference-style vertical aim ruler (left edge) */
.vert-aim {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center;
  background: rgba(20,24,34,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 12px 8px;
  user-select: none;
}
.va-label {
  color: #fff; font-size: 11px; letter-spacing: 1px;
  margin-bottom: 6px;
}
.va-track {
  position: relative;
  width: 18px; height: 280px;
  background: rgba(255,255,255,0.06);
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
}
.va-ticks {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 100% 14px;
}
.va-handle {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #cccccc 100%);
  border: 2px solid #1a1f2c;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
  pointer-events: none;
  transition: top 0.08s;
}

/* Right-edge stack: vertical power gauge + clickable cue-ball */
.vert-power {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center;
  background: rgba(20,24,34,0.78);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 12px 10px;
  user-select: none;
  z-index: 9;
}
.vp-label {
  color: #aaa; font-size: 10px; letter-spacing: 2px;
  margin-bottom: 8px;
}
.vp-track {
  position: relative;
  width: 22px; height: 260px;
  background: rgba(255,255,255,0.06);
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}
.vp-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, #ff8a3c 0%, #e63946 100%);
  border-radius: 0 0 11px 11px;
  pointer-events: none;
}
.vp-thumb {
  position: absolute; left: 50%;
  bottom: 40%;
  width: 28px; height: 14px;
  background: linear-gradient(180deg, #fff 0%, #d4d4d4 100%);
  border: 2px solid #1a1f2c;
  border-radius: 4px;
  transform: translate(-50%, 50%);
  pointer-events: none;
  box-shadow: 0 0 6px rgba(255,209,102,0.5);
}
.vp-readout {
  margin-top: 8px;
  font-family: "Menlo", "Consolas", monospace;
  font-size: 12px; color: #aaa;
}
.vp-readout b { color: var(--accent-2); font-size: 13px; }

/* Cue-ball strike-point button below the power gauge */
.vp-cueball-toggle {
  margin-top: 12px;
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.15s;
}
.vp-cueball-toggle:hover { background: rgba(255,255,255,0.06); }
.vp-cueball-mini {
  position: relative;
  display: inline-block;
  width: 32px; height: 32px;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e8e0d0 70%, #b0a890);
  border-radius: 50%;
  border: 2px solid #1a1f2c;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.vp-cueball-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  background: #ff5577;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: top 0.12s, left 0.12s;
}
.vp-cueball-label {
  font-size: 9px; color: var(--muted);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Strike-point popup (full cue-ball selector) */
.vp-strike-popup {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 0;
  background: rgba(20,24,34,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 16px;
  width: 180px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  z-index: 12;
  animation: vp-strike-pop 0.18s ease-out;
}
@keyframes vp-strike-pop {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.vp-strike-arrow {
  position: absolute;
  right: -7px; bottom: 30px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid rgba(20,24,34,0.95);
}
.vp-strike-title {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.vp-strike-ball {
  position: relative;
  width: 130px; height: 130px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #f0e8d4 60%, #c8c0a8);
  border: 2px solid #444;
  cursor: crosshair;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.vp-strike-cross-h, .vp-strike-cross-v {
  position: absolute;
  background: rgba(0,0,0,0.10);
  pointer-events: none;
}
.vp-strike-cross-h {
  left: 8%; right: 8%; top: 50%; height: 1px;
}
.vp-strike-cross-v {
  top: 8%; bottom: 8%; left: 50%; width: 1px;
}
.vp-strike-indicator {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  background: #ff5577;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255,85,119,0.6);
  transition: left 0.10s, top 0.10s;
}
.vp-strike-text {
  position: absolute;
  font-size: 10px;
  color: rgba(0,0,0,0.45);
  font-weight: 600;
  letter-spacing: 1px;
  pointer-events: none;
}
.vp-strike-text.top { top: 6px; left: 50%; transform: translateX(-50%); }
.vp-strike-text.bot { bottom: 6px; left: 50%; transform: translateX(-50%); }
.vp-strike-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 600;
}

.aim-bar {
  position: absolute; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  padding: 8px 12px;
  backdrop-filter: blur(6px);
}
.aim-nudge {
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
  user-select: none;
}
.aim-nudge:hover { background: rgba(79,179,255,0.25); border-color: var(--accent); }
.aim-nudge:active { background: var(--accent); color: #000; }
.aim-track {
  position: relative;
  width: 380px; height: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
}
.aim-tick {
  position: absolute; top: 50%;
  width: 1px; height: 8px;
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.aim-tick-major {
  height: 14px;
  background: rgba(255,255,255,0.55);
  width: 2px;
}
.aim-handle {
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px;
  background: linear-gradient(180deg, #ffd166 0%, #f8a83a 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255,209,102,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  pointer-events: none;
  transition: left 0.08s;
}
.aim-readout {
  font-family: "Menlo", "Consolas", monospace;
  font-size: 13px;
  color: var(--muted);
  width: 64px; text-align: center;
}
.aim-readout b {
  color: var(--accent-2);
  font-size: 14px;
}

/* ----- Ad slots (in-app) -----
   Visual style + placeholder text live on the wrapper (not the <ins>) because
   AdSense's push() script mutates the <ins> element, so :empty stops matching
   even when no real ad has rendered. */
.ad-slot {
  position: relative;
  width: 100%;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
}
/* DISABLED until real AdSense account is set up. To re-enable, delete this
   one line. Kept at the bottom so it always wins the cascade. */
.ad-slot { display: none; }
.ad-slot::before {
  content: "广告位 · Ad Slot";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  letter-spacing: 1.5px;
  pointer-events: none;
}
.ad-slot ins.adsbygoogle {
  display: block;
  position: relative;
  z-index: 1;
  min-height: 90px;
  background: transparent;
  border: none;
}
/* Sidebar slot: tighter, fits inside the 280px column */
.ad-slot-sidebar {
  margin: 12px 14px 18px;
  min-height: 200px;
}
.ad-slot-sidebar ins.adsbygoogle {
  min-height: 200px;
}
/* Overlay slot: in-article, full overlay-card width */
.ad-slot-overlay {
  margin: 18px 0;
  min-height: 110px;
}
.ad-slot-overlay ins.adsbygoogle {
  min-height: 110px;
}
