:root {
  --skill-accent: #22d3ee;
  --skill-accent-soft: rgba(34, 211, 238, 0.18);
  --skill-accent-strong: rgba(34, 211, 238, 0.48);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text-soft: rgba(226, 232, 240, 0.74);
}

body.skill-page {
  margin: 0;
  color: #f8fafc;
  font-family: 'Space Grotesk', var(--font-sans);
  background: #080808;
}

.skill-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(16px, 2vw, 28px);
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(var(--skill-accent-rgb, 34, 211, 238), 0.15);
  box-shadow: 0 0 20px rgba(var(--skill-accent-rgb, 34, 211, 238), 0.06);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.panel:hover {
  border-color: rgba(var(--skill-accent-rgb, 34, 211, 238), 0.3);
  box-shadow: 0 0 30px rgba(var(--skill-accent-rgb, 34, 211, 238), 0.12);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  margin: 0 auto 20px;
  max-width: 1440px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-size: 13px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.back-pill:hover {
  transform: translateX(-2px);
  border-color: var(--skill-accent-strong);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.back-arrow {
  font-size: 16px;
  line-height: 1;
}

.branch-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.page-layout {
  max-width: 1440px;
  margin: 0 auto;
}

.hero-panel {
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-panel h1 {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-summary {
  margin: 0;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.hero-note {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--skill-accent);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-stat {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.hero-stat-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(148, 163, 184, 0.8);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-stat strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.hero-stat-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.difficulty-dots {
  display: inline-flex;
  gap: 6px;
}

.difficulty-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.difficulty-dot.active {
  background: var(--skill-accent);
  box-shadow: 0 0 10px var(--skill-accent-soft);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.content-column,
.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-panel {
  border-radius: 16px;
}

.section-panel > h2 {
  margin: 0;
  padding: 16px 18px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.section-caption {
  margin: 4px 0 0;
  padding: 0 18px;
  color: rgba(226, 232, 240, 0.55);
  font-size: 0.88rem;
  line-height: 1.5;
}

.section-body {
  padding: 16px 18px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.outcome-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--skill-accent-soft);
  border: 1px solid var(--skill-accent-strong);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
}

.interactive-container {
  min-height: 200px;
}

.diagram-panel {
  overflow: hidden;
}

.diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram-stack {
  display: grid;
  gap: 16px;
}

.diagram-note-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.86rem;
}

.diagram-support-copy {
  color: rgba(191, 219, 254, 0.82);
  font-size: 0.94rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comparison-card,
.video-placeholder-card,
.lab-card,
.signal-prompt-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
}

.comparison-card h3,
.lab-card h3,
.signal-prompt-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #f8fafc;
}

.comparison-card p,
.video-placeholder-card p,
.lab-card p,
.signal-prompt-card p,
.support-copy,
.status-message,
.empty-note {
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.7;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.transmission-body {
  display: grid;
  gap: 16px;
}

.mission-steps {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: rgba(241, 245, 249, 0.88);
  line-height: 1.6;
}

.lab-grid {
  display: grid;
  gap: 14px;
}

.orbital-list {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  color: rgba(241, 245, 249, 0.88);
  line-height: 1.72;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-mastered {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.26);
  color: #bbf7d0;
}

.status-active {
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
}

.status-ready {
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #cffafe;
}

.status-locked {
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.24);
  color: #fecaca;
}

.status-head {
  padding: 14px 18px 0;
}

.primary-action,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--skill-accent-strong);
  background: var(--skill-accent-soft);
  color: #f8fafc;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.primary-action:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.primary-action:disabled,
.primary-action.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-action.is-complete {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.24), rgba(34, 197, 94, 0.08));
  border-color: rgba(34, 197, 94, 0.24);
}

.ghost-button {
  width: fit-content;
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.signal-intro {
  margin-bottom: 16px;
  color: rgba(191, 219, 254, 0.82);
}

.signal-question {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-question:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.signal-question h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.signal-options {
  display: grid;
  gap: 10px;
}

.signal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.signal-option:hover {
  transform: translateX(2px);
  border-color: rgba(34, 211, 238, 0.3);
}

.signal-option.selected {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
}

.signal-option.correct {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
}

.signal-option.incorrect {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.1);
}

.signal-radio {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  flex: 0 0 auto;
}

.signal-option.selected .signal-radio,
.signal-option.correct .signal-radio {
  background: var(--skill-accent);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

.signal-feedback {
  min-height: 24px;
  margin-top: 10px;
  color: rgba(191, 219, 254, 0.84);
  font-size: 0.94rem;
}

.signal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.signal-prompt-grid {
  display: grid;
  gap: 14px;
}

.skill-link-card,
.tool-link-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.skill-link-card:hover,
.tool-link-card:hover {
  transform: translateY(-1px);
  border-color: var(--skill-accent-strong);
  background: var(--skill-accent-soft);
  text-decoration: none;
}

.skill-link-code {
  display: block;
  margin-bottom: 3px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.skill-link-name,
.tool-link-card span:first-child {
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tool-link-arrow {
  color: rgba(186, 230, 253, 0.84);
}

.link-stack,
.tool-stack {
  display: grid;
  gap: 12px;
}

.relationship-map {
  position: relative;
  min-height: 280px;
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.relationship-map-center,
.relationship-map-node {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.relationship-map-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.relationship-map-center span,
.relationship-map-node span {
  max-width: 110px;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.78rem;
  line-height: 1.4;
}

.map-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
}

.map-dot-center {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.9),
    0 0 50px var(--skill-accent-soft);
}

.skill-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(90vw, 340px);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--skill-accent-strong);
  background: rgba(8, 8, 8, 0.95);
  color: #f8fafc;
  font-size: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.skill-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.error-state {
  max-width: 580px;
  margin: 14vh auto 0;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.error-state h1 {
  margin: 10px 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

.error-state p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== INTERACTIVE TOYS ===== */

/* String Plucker */
.string-plucker { display: grid; gap: 16px; }
.plucker-strings {
  display: grid;
  gap: 6px;
}
.plucker-string {
  display: grid;
  grid-template-columns: 32px 1fr 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: #f8fafc;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.plucker-string:hover {
  border-color: rgba(var(--skill-accent-rgb, 34,211,238), 0.3);
  background: rgba(var(--skill-accent-rgb, 34,211,238), 0.04);
}
.plucker-string.plucked {
  border-color: rgba(var(--skill-accent-rgb, 34,211,238), 0.5);
  background: rgba(var(--skill-accent-rgb, 34,211,238), 0.08);
}
.plucker-num {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.plucker-line {
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.7), rgba(255,255,255,0.3));
  border-radius: 2px;
  min-width: 100%;
}
.plucker-note {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--skill-accent);
}
.plucker-word {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.plucker-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.plucker-mnemonic-text {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-style: italic;
}

@keyframes vibrate {
  0%, 100% { transform: translateY(0); }
  10% { transform: translateY(-2px); }
  20% { transform: translateY(2px); }
  30% { transform: translateY(-1.5px); }
  40% { transform: translateY(1.5px); }
  50% { transform: translateY(-1px); }
  60% { transform: translateY(1px); }
  70% { transform: translateY(-0.5px); }
  80% { transform: translateY(0.5px); }
}

/* Fretboard Explorer */
.fretboard-explorer { display: grid; gap: 12px; }
.fretboard-info {
  font-size: 0.9rem;
  color: var(--skill-accent);
  min-height: 24px;
}
.fretboard-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Compare Mode */
.compare-mode { display: grid; gap: 14px; }
.compare-toggle {
  display: flex;
  gap: 8px;
}
.compare-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 160ms ease;
}
.compare-tab.active {
  border-color: var(--skill-accent-strong);
  background: var(--skill-accent-soft);
  color: #f8fafc;
}
.compare-table { display: grid; gap: 8px; }
.compare-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
}
.compare-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-cell {
  color: rgba(255,255,255,0.8);
  transition: opacity 200ms ease;
}

/* Stretch Timer */
.stretch-timer { display: grid; gap: 12px; }
.stretch-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.stretch-card.stretch-done {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.04);
}
.stretch-svg { width: 80px; height: 80px; }
.stretch-progress { transition: stroke-dashoffset 1s linear; }
.stretch-info {
  display: grid;
  gap: 4px;
}
.stretch-info strong { color: #f8fafc; font-size: 0.9rem; }
.stretch-info span { color: rgba(255,255,255,0.5); font-size: 0.82rem; }

/* Pitch Match */
.pitch-match { display: grid; gap: 14px; text-align: center; }
.pitch-match-intro { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.pitch-match-display {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
}
.pitch-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  transition: all 300ms ease;
}
.pitch-dot.playing {
  border-color: var(--skill-accent);
  background: var(--skill-accent-soft);
  box-shadow: 0 0 20px var(--skill-accent-soft);
}
.pitch-match-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.pitch-match-feedback {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  min-height: 24px;
  margin: 0;
}
.pitch-match-score {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  margin: 0;
}

/* String Health Checker */
.string-health { display: grid; gap: 14px; }
.string-health-intro { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.health-checks { display: grid; gap: 8px; }
.health-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  transition: border-color 160ms ease;
}
.health-check:hover { border-color: rgba(255,255,255,0.15); }
.health-check input { display: none; }
.health-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  transition: all 160ms ease;
}
.health-check input:checked ~ .health-check-box {
  background: var(--skill-accent);
  border-color: transparent;
  box-shadow: 0 0 10px var(--skill-accent-soft);
}
.health-check input:checked ~ .health-check-box::after {
  content: '✓';
  color: #080808;
  font-size: 12px;
  font-weight: 700;
}
.health-result {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  min-height: 20px;
  transition: all 200ms ease;
}
.health-warn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fef3c7;
}
.health-alert {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

/* Posture Checklist */
.posture-checklist { display: grid; gap: 10px; }
.posture-checklist > p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }
.posture-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  transition: border-color 160ms ease;
}
.posture-item:hover { border-color: rgba(255,255,255,0.15); }
.posture-item input { display: none; }
.posture-check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  transition: all 160ms ease;
}
.posture-item input:checked ~ .posture-check-box {
  background: var(--skill-accent);
  border-color: transparent;
  box-shadow: 0 0 10px var(--skill-accent-soft);
}
.posture-item input:checked ~ .posture-check-box::after {
  content: '✓';
  color: #080808;
  font-size: 12px;
  font-weight: 700;
}
.posture-result {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  min-height: 20px;
}
.posture-complete {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

/* Strap Height */
.strap-height { display: grid; gap: 14px; }
.strap-slider-wrap { display: grid; gap: 6px; }
.strap-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
.strap-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--skill-accent);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  box-shadow: 0 0 10px var(--skill-accent-soft);
}
.strap-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}
.strap-visual {
  display: flex;
  justify-content: center;
}
.strap-svg { width: 140px; height: auto; }
.strap-feedback {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin: 0;
}

/* Strum Simulator */
.strum-sim { display: grid; gap: 14px; }
.strum-direction {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--skill-accent);
  text-align: center;
}
.strum-svg {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  user-select: none;
}
.strum-string { transition: stroke 200ms ease; }
.strum-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Pattern Player */
.pattern-player { display: grid; gap: 14px; }
.pattern-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--skill-accent);
  text-align: center;
}
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.pattern-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition: border-color 160ms ease, background 160ms ease;
}
.pattern-cell.active {
  border-color: var(--skill-accent-strong);
  background: var(--skill-accent-soft);
}
.pattern-arrow {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.pattern-cell.active .pattern-arrow { color: #fff; }
.pattern-beat-num {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
}
.pattern-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pattern-tempo-wrap { display: flex; align-items: center; gap: 10px; flex: 1; }
.pattern-tempo-label { font-size: 0.82rem; color: rgba(255,255,255,0.5); white-space: nowrap; }
.pattern-tempo-val { font-weight: 700; color: var(--skill-accent); }
.pattern-tempo {
  flex: 1;
  min-width: 80px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
.pattern-tempo::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--skill-accent);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
}

/* Fingerpick Hand */
.fingerpick-hand { display: grid; gap: 12px; }
.fingerpick-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.fingerpick-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fingerpick-active {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Pick Angle Demo */
.pick-angle { display: grid; gap: 14px; }
.pick-angle-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.pick-angle-controls {
  display: grid;
  gap: 6px;
}
.pick-angle-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.pick-angle-val {
  font-weight: 700;
  color: var(--skill-accent);
}
.pick-angle-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
.pick-angle-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--skill-accent);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  box-shadow: 0 0 10px var(--skill-accent-soft);
}
.pick-angle-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ===== FOUNDATION INTERACTIVES (new) ===== */

/* Guitar Anatomy */
.guitar-anatomy { display: grid; gap: 12px; }
.anatomy-counter {
  font-size: 0.9rem;
  color: var(--skill-accent);
  text-align: center;
}
.anatomy-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.anatomy-hotspot {
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.anatomy-hotspot:hover {
  fill: rgba(var(--skill-accent-rgb, 34,211,238), 0.08) !important;
  stroke: rgba(var(--skill-accent-rgb, 34,211,238), 0.4) !important;
}

/* Posture Compare */
.posture-compare { display: grid; gap: 12px; }
.posture-compare-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.posture-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--skill-accent), rgba(167,139,250,0.6));
  outline: none;
}
.posture-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--skill-accent);
  cursor: pointer;
  box-shadow: 0 0 10px var(--skill-accent-soft);
}
.posture-figure-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.posture-figure-svg line,
.posture-figure-svg circle,
.posture-figure-svg ellipse {
  transition: all 0.4s ease;
}
.posture-annotations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  min-height: 28px;
}
.posture-note {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.3);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  animation: posture-note-in 0.3s ease;
}
@keyframes posture-note-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Thumb Pressure */
.thumb-pressure { display: grid; gap: 14px; }
.thumb-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.thumb-svg ellipse,
.thumb-svg path,
.thumb-svg circle {
  transition: all 0.3s ease;
}
.thumb-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.thumb-label-light, .thumb-label-hard {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.thumb-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fbbf24, #22c55e 40%, #22c55e 60%, #f87171);
  outline: none;
}
.thumb-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
}
.thumb-feedback {
  text-align: center;
  font-size: 0.9rem;
  min-height: 24px;
  transition: color 0.3s ease;
}

/* Tuner Sim */
.tuner-sim { display: grid; gap: 14px; }
.tuner-string-select {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.tuner-string-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 160ms ease;
}
.tuner-string-btn.active {
  border-color: var(--skill-accent-strong);
  background: var(--skill-accent-soft);
  color: #f8fafc;
}
.tuner-gauge-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.tuner-peg-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tuner-peg {
  width: 60px;
  height: 60px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.tuner-peg:active { cursor: grabbing; }
.tuner-peg-svg { width: 100%; height: 100%; }
.peg-indicator {
  transition: none;
  transform-origin: 30px 30px;
}
.tuner-peg-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.tuner-status {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  min-height: 24px;
  transition: color 0.3s ease;
}

/* String Wipe */
.string-wipe { display: grid; gap: 12px; }
.wipe-canvas {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3);
  touch-action: none;
}
.wipe-status {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease;
}

/* Storage Danger */
.storage-danger { display: grid; gap: 12px; }
.storage-room-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  touch-action: none;
}
.storage-zone { transition: fill 0.2s ease, stroke 0.2s ease; }
.storage-guitar-shape { transition: fill 0.2s ease, stroke 0.2s ease; }
.storage-result {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  min-height: 24px;
  transition: color 0.3s ease;
}
@keyframes guitar-wobble {
  0%, 100% { transform: translate(var(--gx, 150), var(--gy, 150)); }
  25% { transform: translate(calc(var(--gx, 150) - 3px), var(--gy, 150)) rotate(-5deg); }
  75% { transform: translate(calc(var(--gx, 150) + 3px), var(--gy, 150)) rotate(5deg); }
}

/* Enhanced Posture Checklist (animated figure) */
.posture-animated {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}
.posture-figure-wrap {
  display: flex;
  justify-content: center;
}
.posture-anim-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}
.posture-anim-svg line,
.posture-anim-svg circle,
.posture-anim-svg ellipse {
  transition: all 0.5s ease;
}
.posture-cards { display: grid; gap: 8px; }
.posture-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 160ms ease;
}
.posture-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}
.posture-card-active {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.06);
  color: rgba(255,255,255,0.9);
}
.posture-card-icon {
  font-size: 0.9rem;
  color: var(--skill-accent);
  flex: 0 0 auto;
}

/* Enhanced Strap Height (famous players) */
.strap-players {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.strap-players-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.strap-player-btn {
  font-size: 0.78rem;
  padding: 4px 10px;
  min-height: 32px;
}
.strap-player-style {
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.strap-player-quote {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  min-height: 20px;
}

/* Enhanced Stretch Timer (breathing guide) */
.breath-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
}
.breath-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(200, 60%, 50%, 0.25), transparent 70%);
  box-shadow: 0 0 20px hsla(200, 60%, 50%, 0.15);
  transition: transform 0.6s ease;
}
.breath-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* Enhanced String Health (timeline) */
.health-timeline {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.health-timeline-title {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.health-timeline-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,235,180,0.4), rgba(100,70,40,0.4));
  outline: none;
}
.health-timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
}
.health-timeline-stages {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
}
.health-string-visual {
  width: 100%;
  height: 30px;
}
.health-string-line {
  transition: stroke 0.3s ease, stroke-dasharray 0.3s ease;
  stroke: rgba(255,235,180,0.9);
}
.health-timeline-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  min-height: 20px;
}

/* Enhanced Compare Mode (audio) */
.compare-audio {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.compare-wave-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.compare-wave {
  width: 120px;
  height: 30px;
}
.compare-wave-path {
  transition: d 0.3s ease, stroke-width 0.3s ease, opacity 0.3s ease;
}
.compare-wave-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* Treasure Hunt glow pulse */
@keyframes hunt-glow {
  0%, 100% { opacity: 0.5; r: 12; }
  50% { opacity: 1; r: 16; }
}
.hunt-glow-pulse {
  animation: hunt-glow 1.2s ease-in-out infinite;
}

/* Responsive: animated posture stacks vertically on small screens */
@media (max-width: 720px) {
  .posture-animated {
    grid-template-columns: 1fr;
  }
  .posture-figure-wrap {
    order: -1;
  }
}

/* ===== AMBIENT EFFECTS ===== */

/* Orbiting Sun — injected on know-your-instrument pages */
.ambient-sun {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #fbbf24 0%, #f59e0b 40%, transparent 70%);
  box-shadow:
    0 0 40px rgba(251, 191, 36, 0.4),
    0 0 80px rgba(251, 191, 36, 0.15);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: sun-orbit 45s linear infinite;
}

@keyframes sun-orbit {
  0%   { top: -50px; right: 30%; opacity: 0; }
  5%   { opacity: 0.8; }
  25%  { top: 10%; right: 5%; opacity: 1; }
  50%  { top: 30%; right: -60px; opacity: 0; }
  51%  { top: -50px; right: 80%; opacity: 0; }
  55%  { opacity: 0; }
  75%  { top: 15%; right: 50%; opacity: 0.6; }
  95%  { opacity: 0; }
  100% { top: -50px; right: 30%; opacity: 0; }
}

/* Sun ambient glow wash */
.ambient-sun-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(251, 191, 36, 0.04), transparent 60%);
  animation: sun-wash 45s ease-in-out infinite;
}

@keyframes sun-wash {
  0%, 50%, 100% { opacity: 0; }
  20%, 30% { opacity: 1; }
}

/* Mouse-reactive Moon — injected on care-maintenance pages */
.ambient-moon {
  position: fixed;
  top: 40px;
  right: 60px;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}

.ambient-moon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(226, 232, 240, 0.3));
}

/* Panel entrance animations */
.panel {
  opacity: 0;
  transform: translateY(12px);
  animation: panel-enter 0.4s ease-out forwards;
}

.panel:nth-child(1) { animation-delay: 0ms; }
.panel:nth-child(2) { animation-delay: 80ms; }
.panel:nth-child(3) { animation-delay: 160ms; }
.panel:nth-child(4) { animation-delay: 240ms; }
.panel:nth-child(5) { animation-delay: 320ms; }
.panel:nth-child(6) { animation-delay: 400ms; }
.panel:nth-child(7) { animation-delay: 480ms; }
.panel:nth-child(8) { animation-delay: 560ms; }

.hero-panel { animation-delay: 0ms; }

@keyframes panel-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cursor-following border glow */
.panel {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  background: radial-gradient(
    300px circle at var(--mouse-x) var(--mouse-y),
    rgba(var(--skill-accent-rgb, 34, 211, 238), 0.12),
    transparent 70%
  );
}

.panel:hover::after {
  opacity: 1;
}

.section-panel,
.hero-panel,
.progress-panel {
  position: relative;
  overflow: hidden;
}

/* Extra twinkling star layer */
.skill-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 45% 70%, rgba(200,220,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 75% 15%, rgba(255,255,200,0.9), transparent),
    radial-gradient(1px 1px at 85% 85%, rgba(200,200,255,0.7), transparent);
  animation: extra-twinkle 5s ease-in-out infinite alternate;
}

@keyframes extra-twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ===== EASTER EGG ELEMENTS ===== */

/* Breathing sound hole (FOUND-001) */
.sound-hole-breath {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 70%);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.08);
  pointer-events: none;
  animation: breathe 2s ease-in-out infinite;
  bottom: 20px;
  right: 20px;
  opacity: 0.6;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* Binary star orbit (12th fret) */
@keyframes binary-orbit {
  0%   { transform: rotate(0deg) translateX(6px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(6px) rotate(-360deg); }
}

.dot-marker-orbit {
  animation: binary-orbit 1.2s ease-in-out;
  transform-origin: center;
}

/* Wiggle thumb easter egg */
.wiggle-thumb {
  display: inline-block;
  cursor: default;
  transition: transform 0.1s;
}

.wiggle-thumb:hover {
  animation: thumb-wiggle 0.4s ease-in-out 3;
}

@keyframes thumb-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

/* String snap easter egg */
.string-snap-line {
  transition: all 0.15s ease;
  cursor: pointer;
}
.string-snap-line:hover {
  filter: sepia(1) hue-rotate(-30deg) brightness(0.7);
}
.string-snap-line.snapped {
  animation: snap-break 0.5s ease-out forwards;
}
@keyframes snap-break {
  0% { transform: translateX(0); opacity: 1; }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-2px); opacity: 0.7; }
  80% { transform: translateX(1px); opacity: 0.4; }
  100% { transform: translateX(0); opacity: 0.3; }
}

/* Relaxation hand easter egg */
.relax-hand {
  cursor: help;
  transition: transform 0.3s ease;
}
.relax-hand.exercising {
  animation: hand-exercise 2s ease-in-out infinite;
}
@keyframes hand-exercise {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(0.9) rotate(5deg); }
  75% { transform: scale(1.05) rotate(-3deg); }
}

/* Compare mode vibe shift */
.skill-page.vibe-acoustic {
  background: linear-gradient(135deg, #080808 60%, rgba(180, 120, 60, 0.06));
}
.skill-page.vibe-electric {
  background: linear-gradient(135deg, #080808 60%, rgba(120, 60, 200, 0.08));
}

@media (max-width: 1100px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .skill-shell {
    padding: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: start;
    border-radius: 14px;
  }

  .hero-panel {
    padding: 16px;
  }

  .hero-stats,
  .comparison-grid,
  .diagram-note-row {
    grid-template-columns: 1fr;
  }

  .status-badge {
    white-space: normal;
  }
}
