/* Learn zone - hub, play board, weekly lessons (galaxy pages) */

body.page-learn {
  --learn-ink: #e8e6f5;
  --learn-muted: rgba(255, 255, 255, 0.62);
  --learn-glow: rgba(160, 120, 255, 0.28);
  --learn-card: rgba(18, 12, 36, 0.72);
  --learn-line: rgba(255, 255, 255, 0.12);
  --learn-accent: #c4b0ff;
  --learn-teal: #6ef0d0;
}

.page-learn .galaxy-content,
.page-learn #main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.1rem 3rem;
}

.learn-hero {
  position: relative;
  margin: 0.75rem 0 1.5rem;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--learn-line);
  background: linear-gradient(155deg, rgba(30, 18, 55, 0.9), rgba(12, 20, 40, 0.92));
  box-shadow: 0 0 48px rgba(120, 80, 220, 0.12);
}

.learn-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 10% 20%, rgba(120, 90, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 50% at 90% 10%, rgba(80, 220, 190, 0.14), transparent 50%);
}

.learn-hero-inner {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.35rem 1.6rem;
}

.learn-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.learn-kicker-ink {
  color: var(--learn-accent);
}

.learn-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 5vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 18ch;
  color: #fff;
}

.learn-lede {
  margin: 0;
  color: var(--learn-muted);
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.learn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.btn-learn-primary,
.btn-learn-ghost,
.play-btn-primary,
.play-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-learn-primary,
.play-btn-primary {
  background: linear-gradient(135deg, #8b6cff, #5ad4b8);
  color: #0a0614 !important;
  border-color: transparent;
}

.btn-learn-ghost,
.play-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2);
}

.learn-hero-meta {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.learn-start {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .learn-start {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

.learn-feature,
.learn-side,
.learn-ready-card,
.path-module,
.play-card,
.weekly-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  border: 1px solid var(--learn-line);
  background: var(--learn-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.learn-feature {
  padding: 1.25rem 1.2rem;
}

/* Desktop hover lift only — touch devices use one-tap navigate */
@media (hover: hover) and (pointer: fine) {
  .learn-feature:hover,
  .learn-side:hover,
  .learn-ready-card:hover,
  .play-card:hover,
  .weekly-card:hover,
  .path-module.is-ready:hover {
    border-color: rgba(180, 150, 255, 0.45);
    box-shadow: 0 0 28px rgba(120, 90, 255, 0.12);
    transform: translateY(-1px);
  }
}

.learn-feature-badges,
.learn-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.learn-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
}

.learn-badge-live {
  border-color: rgba(110, 240, 208, 0.45);
  color: var(--learn-teal);
}

.learn-feature h2,
.play-card h3,
.weekly-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  color: #fff;
}

.learn-feature p,
.learn-side span:last-child,
.learn-ready-sum {
  margin: 0;
  color: var(--learn-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.learn-feature-go,
.learn-ready-go {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--learn-accent);
}

.learn-side-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.learn-side {
  padding: 1rem 1.05rem;
}

.learn-side-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.3rem;
}

.learn-side strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.learn-section-head {
  margin: 0 0 1rem;
}

.learn-section-head h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.35rem;
  color: #fff;
}

.learn-section-head p:last-child {
  margin: 0;
  color: var(--learn-muted);
  max-width: 40rem;
}

.learn-ready-block,
.learn-paths-block,
.learn-plays-block,
.learn-weekly-block {
  margin-bottom: 2.25rem;
}

.learn-ready-grid,
.play-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .learn-ready-grid,
  .play-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .play-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.learn-ready-card,
.play-card,
.weekly-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.learn-ready-card .learn-card-body,
.play-card .learn-card-body,
.weekly-card .learn-card-body,
.path-module .learn-card-body {
  padding: 0.85rem 1rem 1rem;
}

.learn-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.learn-feature .learn-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.learn-feature .cm-wrap {
  border-radius: 1rem 1rem 0 0;
}

/* Coverage / field mini-maps on cards */
.cm-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: linear-gradient(165deg, rgba(12, 40, 28, 0.95), rgba(10, 18, 32, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.55rem 0.4rem;
}

.cm-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.55rem;
}

.cm-field {
  fill: #14532d;
}

.cm-bowl {
  fill: #1e1b4b;
}

.cm-chart-bg {
  fill: #1a1535;
}

.cm-yard {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.cm-los {
  stroke: rgba(255, 220, 100, 0.9);
  stroke-width: 1.75;
  stroke-dasharray: 5 3;
}

.cm-los-lab {
  fill: rgba(255, 230, 140, 0.75);
  font-size: 9px;
  font-weight: 700;
}

.cm-ltg {
  stroke: rgba(255, 200, 80, 0.85);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.cm-need {
  fill: rgba(251, 146, 60, 0.22);
}

.cm-endzone {
  fill: rgba(59, 130, 246, 0.35);
}

.cm-zone {
  fill: rgba(96, 165, 250, 0.12);
  stroke: rgba(147, 197, 253, 0.25);
  stroke-width: 1;
}

.cm-zone-lab {
  fill: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cm-dot {
  stroke-width: 1.25;
}

.cm-dot-off {
  fill: #1d4ed8;
  stroke: #93c5fd;
}

.cm-dot-def {
  fill: #991b1b;
  stroke: #fca5a5;
}

.cm-dot-zone {
  fill: rgba(250, 204, 21, 0.9);
  stroke: rgba(255, 255, 255, 0.5);
}

.cm-dot-ball {
  fill: #d6b07c;
  stroke: #3d2b1f;
}

.cm-lab {
  fill: #fff;
  font-size: 7px;
  font-weight: 700;
  pointer-events: none;
}

.cm-route {
  fill: none;
  stroke: rgba(186, 230, 253, 0.95);
  stroke-width: 2;
  stroke-linecap: round;
}

.cm-run {
  fill: none;
  stroke: rgba(253, 186, 116, 0.95);
  stroke-width: 2;
  stroke-linecap: round;
}

.cm-rush {
  fill: none;
  stroke: rgba(252, 165, 165, 0.95);
  stroke-width: 2.25;
  stroke-linecap: round;
}

.cm-decoy,
.cm-match {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.cm-flag {
  fill: none;
  stroke: #facc15;
  stroke-width: 2;
}

.cm-bar {
  fill: rgba(167, 139, 250, 0.75);
}

.cm-bowl-ring {
  fill: none;
  stroke: rgba(196, 181, 253, 0.45);
  stroke-width: 2;
}

.cm-caption {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  padding: 0.15rem 0.2rem 0;
}

.cm-coverage {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.cm-coverage-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(110, 240, 208, 0.75);
  margin-bottom: 0.2rem;
  padding-left: 0.15rem;
}

.cm-caption-cov {
  color: rgba(110, 240, 208, 0.55);
}

.cm-strip {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cm-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cm-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cm-strip-card {
  border-radius: 0.85rem;
  border: 1px solid rgba(160, 130, 255, 0.22);
  overflow: hidden;
  background: rgba(12, 10, 28, 0.65);
}

.cm-strip-card .cm-wrap {
  border-bottom: none;
}

/* Visual-first ready grid */
@media (min-width: 700px) {
  .learn-ready-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .learn-ready-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.path-module {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.path-module .cm-wrap {
  border-radius: 1rem 1rem 0 0;
}

.learn-side {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.learn-side .cm-wrap {
  border-radius: 1rem 1rem 0 0;
}

.learn-side .learn-card-body {
  padding: 0.85rem 1rem 1rem;
}

.learn-ready-meta,
.play-card-meta {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.35rem;
}

.learn-ready-card strong,
.play-card h3 {
  display: block;
  color: #fff;
  margin-bottom: 0.3rem;
}

.learn-ready-card.is-interactive,
.play-card {
  border-color: rgba(160, 130, 255, 0.22);
}

.learn-paths {
  display: grid;
  gap: 1rem;
}

.path-track {
  border-radius: 1.1rem;
  border: 1px solid var(--learn-line);
  background: rgba(12, 10, 28, 0.55);
  padding: 1.1rem 1.05rem 1.15rem;
}

.path-track header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.path-track-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.path-track-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.path-track header p {
  margin: 0 0 0.85rem;
  color: var(--learn-muted);
  font-size: 0.92rem;
}

.path-modules {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .path-modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

.path-module {
  padding: 0.85rem 0.9rem;
}

.path-module.is-soon {
  opacity: 0.55;
  cursor: default;
}

.path-module-status {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.25rem;
}

.path-module.is-ready .path-module-status,
.path-module.is-interactive .path-module-status {
  color: var(--learn-teal);
}

.path-module strong {
  display: block;
  color: #fff;
  margin-bottom: 0.2rem;
}

.path-module span:last-child {
  color: var(--learn-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.learn-footer-note {
  margin-top: 1rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--learn-line);
  color: var(--learn-muted);
  font-size: 0.92rem;
}

.learn-footer-note a {
  color: var(--learn-accent);
  font-weight: 600;
}

/* Play board animation */
.play-board {
  margin: 0.5rem 0 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(160, 130, 255, 0.25);
  background: rgba(8, 16, 12, 0.65);
  padding: 0.85rem;
}

.play-board-note {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--learn-teal);
  letter-spacing: 0.02em;
}

.play-board-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #1a4a32 0%, #123524 55%, #0e2a1c 100%);
}

.play-field {
  fill: transparent;
}

.play-yard-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.play-los {
  stroke: rgba(255, 230, 120, 0.85);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.play-los-label {
  fill: rgba(255, 230, 140, 0.8);
  font-size: 11px;
  font-weight: 700;
}

.play-route {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.play-route--route {
  stroke: rgba(180, 220, 255, 0.9);
}

.play-route--run {
  stroke: rgba(255, 200, 120, 0.95);
}

.play-route--block {
  stroke: rgba(160, 255, 190, 0.55);
  stroke-dasharray: 4 3;
}

.play-route--rush {
  stroke: rgba(255, 120, 120, 0.9);
}

.play-route--decoy,
.play-route--react {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-dasharray: 3 4;
}

.play-player-dot {
  stroke-width: 1.5;
}

.play-player--off .play-player-dot {
  fill: #1e3a8a;
  stroke: #93c5fd;
}

.play-player--def .play-player-dot {
  fill: #7f1d1d;
  stroke: #fca5a5;
}

.play-player-label {
  fill: #fff;
  font-size: 8px;
  font-weight: 700;
  pointer-events: none;
}

.play-ball {
  fill: #c4a574;
  stroke: #3d2b1f;
  stroke-width: 1;
}

.play-board-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.play-btn-primary,
.play-btn-ghost {
  min-height: 44px;
  min-width: 7.5rem;
  padding: 0.7rem 1.15rem;
  -webkit-tap-highlight-color: transparent;
}

.play-scrub {
  flex: 1 1 140px;
  min-width: 120px;
  min-height: 44px;
  accent-color: #8b6cff;
}

.play-board-hint {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 560px) {
  .play-board-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .play-btn-primary,
  .play-btn-ghost {
    width: 100%;
  }
  .play-scrub {
    width: 100%;
    min-height: 48px;
  }
  .play-board-note {
    font-size: 0.95rem;
  }
  .play-player-dot {
    /* slightly larger hit presence on small screens via stroke */
    stroke-width: 2;
  }
}

.play-detail-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .play-detail-grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }
}

.play-panel {
  border-radius: 1rem;
  border: 1px solid var(--learn-line);
  background: var(--learn-card);
  padding: 1.05rem 1.1rem;
}

.play-panel h2,
.play-panel h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.05rem;
}

.play-panel p,
.play-panel li {
  color: var(--learn-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.play-panel ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.play-panel li {
  margin: 0.25rem 0;
}

.play-coach {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(120, 90, 255, 0.12);
  border: 1px solid rgba(160, 130, 255, 0.25);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-style: italic;
}

.weekly-list {
  display: grid;
  gap: 0.75rem;
}

.weekly-card.is-current {
  border-color: rgba(110, 240, 208, 0.4);
}

.weekly-body {
  max-width: 44rem;
}

.weekly-body h2 {
  color: #fff;
  font-size: 1.15rem;
  margin: 1.25rem 0 0.45rem;
}

.weekly-body p {
  color: var(--learn-muted);
  line-height: 1.55;
  margin: 0 0 0.55rem;
}

.weekly-lesson-title {
  color: #fff;
  font-size: 1.45rem;
  margin: 0.2rem 0 0.55rem;
}
.weekly-pack {
  margin: 1rem 0 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(110, 240, 208, 0.28);
  background: rgba(12, 28, 26, 0.45);
}
.weekly-pack-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(110, 240, 208, 0.9);
}
.weekly-pack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.weekly-pack-stop {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}
.weekly-pack-stop a {
  color: #c4b0ff;
  text-decoration: none;
  font-weight: 600;
}
.weekly-pack-stop a:hover,
.weekly-pack-stop a:focus-visible {
  color: #6ef0d0;
  outline: none;
}
.weekly-pack-stop.is-here em {
  font-style: normal;
  color: rgba(110, 240, 208, 0.75);
  font-size: 0.82rem;
}
.weekly-pack-num {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(110, 240, 208, 0.15);
  color: #6ef0d0;
}
.weekly-drill {
  margin-top: 1rem;
}
.weekly-drill-cta {
  margin-top: 0.65rem;
}
.weekly-takeaway {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(110, 240, 208, 0.3);
  background: rgba(30, 80, 70, 0.25);
  color: #fff;
  font-weight: 600;
}

.learn-guide-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--learn-muted);
}

.learn-guide-list li {
  margin: 0.4rem 0;
  line-height: 1.45;
}

/* Downs interactive lesson */
#lesson-root .lesson-header h1 {
  color: #fff;
  margin: 0.35rem 0;
}
#lesson-root .lede {
  color: var(--learn-muted);
}
#lesson-root .lesson-panel {
  margin: 1rem 0;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid var(--learn-line);
  background: var(--learn-card);
}
#lesson-root .lesson-panel h2,
#lesson-root .lesson-panel h3 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
#lesson-root .lesson-panel p,
#lesson-root .feature-list li {
  color: var(--learn-muted);
  line-height: 1.5;
}
#lesson-root .lesson-beginner-note {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 0.55rem;
  background: rgba(120, 90, 255, 0.12);
  border: 1px solid rgba(160, 130, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
#lesson-root .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
#lesson-root .pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
}
#lesson-root .pill-featured {
  border-color: rgba(110, 240, 208, 0.4);
  color: var(--learn-teal);
}
#lesson-root .downs-phrase {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
}
#lesson-root .downs-detail {
  color: var(--learn-muted);
  margin: 0 0 0.75rem;
}
#lesson-root .downs-field-wrap {
  margin: 0.5rem 0 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
}
#lesson-root .downs-field-svg {
  width: 100%;
  height: auto;
  display: block;
}
#lesson-root .downs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0;
}
#lesson-root .downs-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  min-height: 44px;
}
@media (max-width: 760px) {
  #lesson-root .downs-actions {
    flex-direction: column;
  }
  #lesson-root .downs-action {
    width: 100%;
  }
}
#lesson-root .downs-action:hover {
  border-color: rgba(180, 150, 255, 0.45);
}
#lesson-root .downs-action-label {
  font-weight: 700;
  font-size: 0.9rem;
}
#lesson-root .downs-action-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
#lesson-root .lesson-live {
  min-height: 1.4em;
  margin: 0.5rem 0;
  color: var(--learn-teal);
  font-weight: 600;
}
#lesson-root .lesson-footer-nav a {
  color: var(--learn-accent);
  font-weight: 600;
}
#lesson-root .lesson-concepts {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 720px) {
  #lesson-root .lesson-concepts {
    grid-template-columns: 1fr 1fr;
  }
}
#lesson-root .lesson-concept {
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--learn-line);
  background: rgba(0, 0, 0, 0.2);
}
#lesson-root .feature-list {
  margin: 0;
  padding-left: 1.15rem;
}

/* ========== Polish pack: glass, glow, stagger, coverage drawer ========== */

body.page-learn {
  --learn-glass: rgba(16, 12, 36, 0.55);
  --learn-glass-border: rgba(200, 180, 255, 0.18);
  --learn-glow-soft: 0 0 40px rgba(130, 100, 255, 0.14);
}

.learn-ready-card,
.play-card,
.weekly-card,
.path-module,
.learn-feature,
.learn-side,
.cm-strip-card {
  background: var(--learn-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--learn-glass-border);
  box-shadow: var(--learn-glow-soft), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

@media (hover: hover) and (pointer: fine) {
  .learn-ready-card:hover,
  .play-card:hover,
  .weekly-card:hover,
  .path-module.is-ready:hover,
  .learn-feature:hover,
  .learn-side:hover,
  .cm-strip-card:hover {
    border-color: rgba(190, 160, 255, 0.5);
    box-shadow:
      0 0 0 1px rgba(160, 130, 255, 0.2),
      0 0 36px rgba(120, 90, 255, 0.22),
      0 12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
  }

  .learn-ready-card:hover .cm-svg,
  .play-card:hover .cm-svg,
  .learn-feature:hover .cm-svg,
  .learn-side:hover .cm-svg,
  .path-module.is-ready:hover .cm-svg,
  .cm-strip-card:hover .cm-svg {
    filter: brightness(1.12) saturate(1.08);
  }

  .learn-ready-card:hover .cm-los,
  .play-card:hover .cm-los,
  .learn-feature:hover .cm-los {
    animation: cm-los-pulse 1.4s ease-in-out 1;
  }
}

@keyframes cm-los-pulse {
  0%,
  100% {
    stroke-opacity: 0.85;
  }
  50% {
    stroke-opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 220, 100, 0.7));
  }
}

/* Stagger entrance */
.learn-stagger-item {
  opacity: 0;
  transform: translateY(12px);
  animation: learn-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes learn-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.learn-hero {
  box-shadow: 0 0 60px rgba(120, 80, 220, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.learn-hero h1 {
  font-family: var(--fs-font-wordmark, "Unbounded", system-ui, sans-serif);
  background: linear-gradient(120deg, #fff 20%, #c4b0ff 55%, #6ef0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-learn-primary,
.play-btn-primary {
  box-shadow: 0 0 24px rgba(110, 240, 208, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-learn-primary:hover,
.play-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(110, 240, 208, 0.4);
}

/* Zone fog */
.cm-zone-fog {
  fill: rgba(120, 160, 255, 0.1);
  stroke: rgba(180, 200, 255, 0.22);
  filter: url(#cm-soft) blur(0.3px);
}

.cm-hud {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.25;
}

/* Coverage drawer */
.cm-cov-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(110, 240, 208, 0.25);
  background: rgba(30, 80, 70, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cm-cov-toggle:hover {
  border-color: rgba(110, 240, 208, 0.5);
  background: rgba(30, 100, 85, 0.28);
}

.cm-cov-toggle-hint {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
}

.cm-coverage {
  overflow: hidden;
  max-height: 280px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
  margin-top: 0.35rem;
}

.cm-coverage.is-collapsed,
.cm-coverage[hidden] {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0;
  border: none;
  padding: 0;
  overflow: hidden;
}

.cm-wrap.is-cov-open {
  box-shadow: 0 0 20px rgba(110, 240, 208, 0.12) inset;
}

/* Position key */
.pos-key {
  margin: 1.25rem 0 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(200, 180, 255, 0.2);
  background: rgba(12, 10, 28, 0.65);
  backdrop-filter: blur(12px);
  padding: 0.65rem 1rem 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.pos-key summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #fff;
  list-style: none;
}

.pos-key summary::-webkit-details-marker {
  display: none;
}

.pos-key summary::before {
  content: none;
}

.pos-key[open] summary::before {
  content: none;
}

.pos-key-lede {
  margin: 0.55rem 0 0.45rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.pos-key-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 720px) {
  .pos-key-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1.25rem;
  }
}

.pos-key-list li {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.pos-key-list strong {
  color: #c4b0ff;
  font-variant: normal;
}

/* Play dual pane */
.play-dual {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .play-dual {
    grid-template-columns: 1.25fr 0.9fr;
    align-items: start;
  }
}

.play-dual-cov {
  border-radius: 1rem;
  border: 1px solid rgba(110, 240, 208, 0.22);
  background: rgba(12, 20, 28, 0.55);
  backdrop-filter: blur(12px);
  padding: 0.75rem;
}

.play-dual-cov h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #6ef0d0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.play-dual-cov .cm-wrap {
  border-radius: 0.75rem;
  border: none;
}

.play-cinema-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

body.page-learn.is-cinema .galaxy-top,
body.page-learn.is-cinema #site-footer,
body.page-learn.is-cinema .galaxy-veil {
  opacity: 0.15;
  pointer-events: none;
}

body.page-learn.is-cinema .play-dual {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

body.page-learn.is-cinema #cc-particles {
  opacity: 0.35;
}

/* ========== Visual Film Room v5 ========== */

body.page-film-room {
  --fr-violet: #a78bfa;
  --fr-teal: #6ef0d0;
  --fr-glass: rgba(14, 10, 32, 0.62);
}

/* Hero split */
.fr-hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 900px) {
  .fr-hero-grid {
    grid-template-columns: 1.35fr 0.9fr;
  }
}

.fr-hero-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(160, 120, 255, 0.03) 3px,
    rgba(160, 120, 255, 0.03) 4px
  );
  opacity: 0.55;
  animation: fr-scan 8s linear infinite;
}
@keyframes fr-scan {
  from { transform: translateY(0); }
  to { transform: translateY(12px); }
}

.fr-hero-copy strong {
  color: #fff;
  font-weight: 650;
}

/* Progress HUD */
.fr-hud {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(200, 180, 255, 0.22);
  background: rgba(8, 6, 22, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 40px rgba(120, 90, 255, 0.15);
}
.fr-ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.fr-ring {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
}
.fr-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 7;
}
.fr-ring-fg {
  fill: none;
  stroke: url(#none);
  stroke: #8b6cff;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(139, 108, 255, 0.55));
}
.fr-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1.05;
  color: #fff;
}
.fr-ring-num strong {
  font-size: 1.35rem;
  font-weight: 800;
}
.fr-ring-num span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.fr-hud-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fr-teal);
}
.fr-hud-stat {
  margin: 0 0 0.25rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.fr-hud-next {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}
.fr-hud-cta {
  display: inline-flex !important;
}

/* How cards */
.fr-how {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .fr-how {
    grid-template-columns: repeat(3, 1fr);
  }
}
.fr-how-card {
  border-radius: 1rem;
  border: 1px solid rgba(200, 180, 255, 0.16);
  background: var(--fr-glass);
  backdrop-filter: blur(12px);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 0 28px rgba(100, 70, 200, 0.08);
}
.fr-how-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0a0614;
  background: linear-gradient(135deg, #8b6cff, #6ef0d0);
  margin-bottom: 0.55rem;
}
.fr-how-card h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.02rem;
}
.fr-how-card p {
  margin: 0;
  color: var(--learn-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Journey path */
.fr-journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .fr-journey {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .fr-journey {
    grid-template-columns: repeat(3, 1fr);
  }
}
.fr-step {
  margin: 0;
  position: relative;
}
.fr-step-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  border: 1px solid rgba(200, 180, 255, 0.18);
  background: var(--fr-glass);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.fr-step-card:hover {
  border-color: rgba(190, 160, 255, 0.5);
  box-shadow: 0 0 36px rgba(120, 90, 255, 0.2);
  transform: translateY(-2px);
}
.fr-step-index {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(10, 6, 20, 0.75);
  border: 1px solid rgba(200, 180, 255, 0.35);
  color: #fff;
}
.fr-step.is-done .fr-step-index {
  background: rgba(30, 100, 85, 0.85);
  border-color: rgba(110, 240, 208, 0.5);
  color: var(--fr-teal);
}
.fr-step.is-next .fr-step-card {
  border-color: rgba(110, 240, 208, 0.45);
  box-shadow: 0 0 0 1px rgba(110, 240, 208, 0.15), 0 0 32px rgba(110, 240, 208, 0.12);
}
.fr-step.is-done .fr-step-card {
  border-color: rgba(110, 240, 208, 0.28);
}
.fr-badge-done {
  border-color: rgba(110, 240, 208, 0.4) !important;
  color: var(--fr-teal) !important;
}
.fr-badge-next {
  border-color: rgba(139, 108, 255, 0.55) !important;
  color: #c4b0ff !important;
}

/* Zones */
.fr-zones {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .fr-zones {
    grid-template-columns: repeat(2, 1fr);
  }
}
.fr-zone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  border: 1px solid rgba(200, 180, 255, 0.18);
  background: var(--fr-glass);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.fr-zone:hover {
  border-color: rgba(190, 160, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(120, 90, 255, 0.16);
}
.fr-zone .cm-wrap {
  border-radius: 1rem 1rem 0 0;
}
.fr-zone .learn-card-body {
  padding: 0.85rem 1rem 1rem;
}
.fr-how-block,
.fr-journey-block,
.fr-zones-block {
  margin-bottom: 2rem;
}

.fr-page-title {
  color: #fff;
  margin: 0.2rem 0 0.5rem;
  font-family: var(--fs-font-wordmark, "Unbounded", system-ui, sans-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  background: linear-gradient(120deg, #fff 20%, #c4b0ff 55%, #6ef0d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.learn-ready-card.is-cleared {
  border-color: rgba(110, 240, 208, 0.35);
}

/* Toast */
.fr-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 9999;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  min-width: min(92vw, 320px);
  max-width: 92vw;
  padding: 0.85rem 1.15rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(200, 180, 255, 0.35);
  background: rgba(12, 8, 28, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 40px rgba(120, 90, 255, 0.35);
  color: #fff;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.fr-toast.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fr-toast.is-out {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}
.fr-toast--big {
  padding: 1.05rem 1.35rem 1.15rem;
}
.fr-toast-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fr-teal);
  margin-bottom: 0.25rem;
}
.fr-toast strong {
  font-size: 1rem;
  font-weight: 700;
}
.fr-toast-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 108, 255, 0.25), transparent 70%);
  pointer-events: none;
}

/* Lesson shell film room */
.fr-lesson .fr-lesson-header {
  margin-bottom: 0.75rem;
}
.fr-step-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0.25rem;
}
.fr-step-rail-btn {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  min-height: 40px;
}
.fr-step-rail-btn.is-active,
.fr-step-rail-btn:hover {
  border-color: rgba(160, 130, 255, 0.5);
  color: #fff;
  background: rgba(120, 90, 255, 0.15);
}
.fr-panel-lede {
  margin: 0 0 0.75rem !important;
  color: var(--learn-muted) !important;
  font-size: 0.95rem !important;
}
.fr-panel-field {
  border-color: rgba(160, 130, 255, 0.28) !important;
  box-shadow: 0 0 40px rgba(120, 90, 255, 0.1);
}
.fr-field-stage {
  border: 1px solid rgba(160, 130, 255, 0.22);
  box-shadow: 0 0 32px rgba(80, 60, 160, 0.15) inset;
}
.fr-lesson-live {
  min-height: 1.5em;
  padding: 0.55rem 0.85rem;
  margin: 0.5rem 0 0.85rem !important;
  border-radius: 0.65rem;
  border: 1px solid rgba(110, 240, 208, 0.22);
  background: rgba(20, 60, 50, 0.2);
}

/* Mission */
.fr-mission {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(139, 108, 255, 0.35);
  background: linear-gradient(135deg, rgba(80, 50, 160, 0.22), rgba(20, 40, 50, 0.35));
}
.fr-mission-label {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.fr-mission-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.fr-mission-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6cff, #6ef0d0);
  box-shadow: 0 0 12px rgba(110, 240, 208, 0.45);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fr-challenge-host.is-cleared .fr-mission {
  border-color: rgba(110, 240, 208, 0.45);
}
.fr-tip {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: rgba(196, 176, 255, 0.75);
  line-height: 1.45;
}
#lesson-root .downs-phrase.is-reward {
  color: var(--fr-teal);
  text-shadow: 0 0 20px rgba(110, 240, 208, 0.35);
}
#lesson-root .downs-field-svg.is-flash {
  animation: fr-field-flash 0.7s ease;
}
@keyframes fr-field-flash {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.25) saturate(1.15); }
  100% { filter: brightness(1); }
}

/* Concept details */
.fr-concept {
  padding: 0.15rem 0.85rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--learn-line);
  background: rgba(0, 0, 0, 0.2);
}
.fr-concept summary {
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.6rem 0;
  list-style: none;
}
.fr-concept summary::-webkit-details-marker {
  display: none;
}
.fr-concept summary::before {
  content: "＋ ";
  color: var(--fr-teal);
}
.fr-concept[open] summary::before {
  content: "− ";
}
.fr-concept p {
  margin: 0 0 0.35rem;
  color: var(--learn-muted);
  line-height: 1.5;
}

/* Complete bar */
.fr-complete-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(160, 130, 255, 0.3);
  background: rgba(16, 12, 36, 0.65);
  backdrop-filter: blur(12px);
}
.fr-complete-bar.is-done {
  border-color: rgba(110, 240, 208, 0.4);
}
.fr-complete-copy {
  flex: 1 1 200px;
}
.fr-complete-copy strong {
  display: block;
  color: #fff;
  margin-bottom: 0.25rem;
}
.fr-complete-copy p {
  margin: 0;
  color: var(--learn-muted);
  font-size: 0.9rem;
}
.fr-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* What’s next after clear */
.fr-next-panel {
  flex: 1 1 100%;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}
.fr-next-panel.is-open,
.fr-complete-bar.is-done .fr-next-panel {
  display: block;
}
.fr-next-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(110, 240, 208, 0.75);
}
.fr-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.fr-next-actions .fr-next-primary {
  /* primary next already styled as btn-learn-primary */
}
.fr-lesson-exit {
  margin: 0.35rem 0 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.fr-lesson-exit a {
  color: rgba(196, 181, 253, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 181, 253, 0.3);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.fr-lesson-exit a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}
.fr-lesson-exit .fr-exit-next {
  color: #3ef0c8;
  font-weight: 600;
  border-bottom-color: rgba(62, 240, 200, 0.35);
}
.fr-exit-dot {
  opacity: 0.35;
}
.fr-empty-invite .fr-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

/* Spot-check quiz */
.fr-spot {
  margin: 1.5rem 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(110, 240, 208, 0.25);
  background: rgba(12, 24, 28, 0.55);
  backdrop-filter: blur(12px);
}
.fr-spot h2 {
  margin: 0.2rem 0 0.4rem;
  color: #fff;
  font-size: 1.2rem;
}
.fr-spot-hint {
  margin: 0 0 0.85rem;
  color: var(--learn-muted);
  font-size: 0.9rem;
}
.fr-spot-choices {
  display: grid;
  gap: 0.5rem;
}
.fr-spot-choice {
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  min-height: 48px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fr-spot-choice:hover:not(:disabled) {
  border-color: rgba(180, 150, 255, 0.5);
}
.fr-spot-choice:disabled {
  cursor: default;
  opacity: 0.92;
}
.fr-spot-choice.is-correct {
  border-color: rgba(110, 240, 208, 0.65);
  background: rgba(30, 100, 85, 0.35);
}
.fr-spot-choice.is-wrong {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(80, 20, 30, 0.35);
}
.fr-spot-feedback {
  margin: 0.75rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.fr-spot-feedback.is-ok {
  color: var(--fr-teal);
}
.fr-spot-feedback.is-no {
  color: #fca5a5;
}

/* Guide pages map hero */
.fr-guide-map {
  margin: 0.75rem 0 1rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(160, 130, 255, 0.22);
}
.fr-guide-map .cm-wrap {
  border: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .learn-stagger-item,
  .fr-hero-scan,
  .fr-toast,
  .fr-ring-fg,
  .fr-mission-fill,
  #lesson-root .downs-field-svg.is-flash,
  .learn-ready-card,
  .play-card,
  .fr-step-card,
  .fr-zone,
  .learn-feature,
  .learn-side {
    animation: none !important;
    transition: none !important;
  }
  .learn-stagger-item {
    opacity: 1;
    transform: none;
  }
  .fr-hero-scan {
    display: none;
  }
  .learn-ready-card:hover,
  .play-card:hover,
  .fr-step-card:hover,
  .fr-zone:hover,
  .learn-feature:hover,
  .learn-side:hover {
    transform: none;
  }
}

/* Coverage 101 room */
.fr-cov-layout {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
@media (min-width: 900px) {
  .fr-cov-layout {
    grid-template-columns: 1.25fr 0.95fr;
    align-items: start;
  }
}
.fr-cov-stage {
  padding: 0.85rem;
}
.fr-cov-caption {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--learn-muted, rgba(255,255,255,0.62));
  line-height: 1.45;
}
.fr-cov-tabs {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.fr-cov-tab {
  text-align: left;
  font-family: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(200, 180, 255, 0.18);
  background: rgba(16, 12, 36, 0.55);
  color: #fff;
  cursor: pointer;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fr-cov-tab strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.fr-cov-tab span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.fr-cov-tab:hover {
  border-color: rgba(180, 150, 255, 0.45);
}
.fr-cov-tab.is-active {
  border-color: rgba(110, 240, 208, 0.5);
  box-shadow: 0 0 20px rgba(110, 240, 208, 0.12);
  background: rgba(30, 80, 70, 0.22);
}
.fr-cov-copy h2 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1.15rem;
}
.fr-cov-copy p {
  color: var(--learn-muted, rgba(255,255,255,0.62));
  line-height: 1.5;
  margin: 0 0 0.55rem;
}
@media (prefers-reduced-motion: reduce) {
  .fr-cov-tab {
    transition: none;
  }
}


/* ===== Journey landing + unit pages (v7) ===== */
.lj-landing-section { margin-bottom: 2.25rem; }
.lj-folder-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .lj-folder-grid { grid-template-columns: repeat(3, 1fr); }
}
.lj-folder {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0 1rem 1rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lj-folder-tab {
  position: absolute;
  top: -0.55rem;
  left: 0.85rem;
  width: 38%;
  height: 0.7rem;
  border-radius: 0.45rem 0.45rem 0 0;
  background: linear-gradient(90deg, rgba(139,108,255,0.55), rgba(110,240,208,0.35));
  box-shadow: 0 0 16px rgba(139,108,255,0.25);
  pointer-events: none;
}
.lj-folder-body {
  border-radius: 0.85rem 1rem 1rem 1rem;
  border: 1px solid rgba(200,180,255,0.22);
  background: rgba(12,10,28,0.72);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(100,70,200,0.12),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.lj-folder:hover {
  transform: translateY(-3px);
}
.lj-folder:hover .lj-folder-body {
  border-color: rgba(190,160,255,0.5);
  box-shadow: 0 0 48px rgba(120,90,255,0.22);
}
.lj-mini-grid {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 700px) {
  .lj-mini-grid { grid-template-columns: repeat(3, 1fr); }
}
.lj-mini-card {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(110,240,208,0.22);
  background: rgba(16,12,36,0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lj-mini-card strong {
  display: block;
  color: #fff;
  margin-bottom: 0.3rem;
}
.lj-mini-card span {
  font-size: 0.9rem;
  color: var(--learn-muted, rgba(255,255,255,0.62));
  line-height: 1.4;
}
.lj-mini-card:hover {
  border-color: rgba(110,240,208,0.5);
  box-shadow: 0 0 24px rgba(110,240,208,0.12);
}

/* - - Mini-game arcade select (game menu vibe, not a full game engine) - - */
.page-minigames .mg-arcade {
  max-width: 52rem;
}
.mg-arcade-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(110, 240, 208, 0.75);
  font-weight: 600;
}
.mg-arcade-title {
  letter-spacing: -0.02em;
}
.mg-arcade-lede {
  max-width: 36rem;
}
.mg-stage {
  margin-top: 1.35rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(110, 240, 208, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 16, 48, 0.92), rgba(8, 6, 22, 0.88)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(110, 240, 208, 0.06);
}
.mg-stage-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.mg-stage-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}
.mg-stage-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #6ef0d0;
  box-shadow: 0 0 10px rgba(110, 240, 208, 0.8);
  animation: mg-pulse 1.6s ease-in-out infinite;
}
@keyframes mg-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
.mg-select-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .mg-select-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.mg-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.85rem 0.9rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(200, 180, 255, 0.22);
  background: linear-gradient(165deg, rgba(40, 28, 80, 0.55), rgba(12, 10, 28, 0.85));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.mg-game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(110, 240, 208, 0.06) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.mg-game-card:hover,
.mg-game-card:focus-visible {
  border-color: rgba(110, 240, 208, 0.55);
  box-shadow:
    0 0 0 1px rgba(110, 240, 208, 0.15),
    0 0 32px rgba(110, 240, 208, 0.14),
    0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
  outline: none;
}
.mg-game-card:hover::before,
.mg-game-card:focus-visible::before {
  opacity: 1;
}
.mg-game-art {
  position: relative;
  display: block;
  height: 4.5rem;
  margin: 0 0 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0814;
  overflow: hidden;
}
.mg-game-art--downs {
  background:
    linear-gradient(90deg, rgba(110, 240, 208, 0.08) 0 2px, transparent 2px) 0 0 / 14% 100%,
    linear-gradient(180deg, #12301f 0%, #0a1a12 100%);
}
.mg-game-field {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.mg-game-marker {
  position: absolute;
  left: 28%;
  top: 42%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}
.mg-game-art--coverage {
  background: linear-gradient(180deg, #14203a 0%, #0a1020 100%);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  padding: 0.55rem;
  align-items: stretch;
}
.mg-game-zone {
  border-radius: 0.35rem;
  border: 1px dashed rgba(110, 240, 208, 0.45);
  background: rgba(110, 240, 208, 0.08);
}
.mg-game-art--plays {
  background: linear-gradient(145deg, #1a1230 0%, #0c0a18 100%);
}
.mg-game-x,
.mg-game-o {
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  top: 38%;
}
.mg-game-x {
  left: 28%;
  background: #c4b0ff;
  box-shadow: 0 0 10px rgba(196, 176, 255, 0.5);
}
.mg-game-o {
  left: 58%;
  background: #6ef0d0;
  box-shadow: 0 0 10px rgba(110, 240, 208, 0.5);
}
.mg-game-arrow {
  position: absolute;
  left: 36%;
  top: 48%;
  width: 22%;
  height: 2px;
  background: linear-gradient(90deg, #c4b0ff, #6ef0d0);
  transform: rotate(-18deg);
  transform-origin: left center;
}
.mg-game-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: #6ef0d0;
}
.mg-game-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
}
.mg-game-slot {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: rgba(110, 240, 208, 0.9);
}
.mg-game-diff {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.25);
}
.mg-game-name {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.mg-game-blurb {
  display: block;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.75rem;
}
.mg-game-play {
  margin-top: auto;
}
.mg-game-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0814;
  background: linear-gradient(180deg, #8ef7dc, #6ef0d0);
  box-shadow: 0 0 16px rgba(110, 240, 208, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.mg-game-card:hover .mg-game-play-btn,
.mg-game-card:focus-visible .mg-game-play-btn {
  transform: scale(1.04);
  box-shadow: 0 0 22px rgba(110, 240, 208, 0.5);
}
.mg-stage-hint {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}
.mg-guides {
  margin-top: 2rem;
}

/* - - Real game loop chrome (Drive Challenge / Call It) - - */
.mg-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.mg-mode-btn {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.mg-mode-btn.is-active,
.mg-mode-btn[aria-selected="true"] {
  border-color: rgba(62, 240, 200, 0.75);
  background: rgba(62, 240, 200, 0.14);
  box-shadow: 0 0 0 1px rgba(62, 240, 200, 0.2);
}
.mg-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.mg-hud {
  margin: 0 0 0.85rem;
}
.mg-hud-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mg-hud-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
}
.mg-hud-chip--score {
  border-color: rgba(62, 240, 200, 0.45);
  color: #fff;
}
.mg-hud-chip--score strong {
  color: #3ef0c8;
  font-size: 1rem;
  margin-right: 0.2rem;
}
.mg-hud-chip--best {
  border-color: rgba(246, 213, 138, 0.45);
  color: #f6d58a;
}
.mg-hud-chip--timer {
  border-color: rgba(251, 146, 60, 0.5);
  color: #fb923c;
  font-variant-numeric: tabular-nums;
  min-width: 2.75rem;
  justify-content: center;
}
.mg-call-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.55rem !important;
}
@media (min-width: 560px) {
  .mg-call-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.mg-call-btn {
  text-align: left !important;
  position: relative;
  padding-left: 2.5rem !important;
}
.mg-call-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.85;
}
.mg-call-btn em {
  font-style: normal;
  opacity: 0.75;
}
.mg-result-banner {
  margin: 0.65rem 0;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.mg-result-banner.is-win {
  border-color: rgba(62, 240, 200, 0.55);
  background: rgba(62, 240, 200, 0.12);
  color: #3ef0c8;
}
.mg-result-banner.is-loss {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}
.mg-result-banner.is-warn {
  border-color: rgba(251, 146, 60, 0.5);
  background: rgba(251, 146, 60, 0.1);
  color: #fdba74;
}
.mg-play-log {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-height: 9rem;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.65rem;
}
.mg-play-log-item {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-variant-numeric: tabular-nums;
}
.mg-play-log-item.is-good {
  color: #6ee7b7;
}
.mg-play-log-item.is-bad {
  color: #fca5a5;
}
.mg-play-log-item.is-ok {
  color: rgba(255, 255, 255, 0.75);
}
.mg-call-choices {
  margin-top: 0.85rem;
}
.mg-call-choice {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.15rem;
  width: 100%;
}
.mg-call-choice span {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.65;
}
.mg-call-stage {
  margin-bottom: 0.5rem;
}
.mg-call-end {
  text-align: center;
  padding: 1.25rem 1rem;
}
.mg-call-end h2 {
  margin: 0 0 0.5rem;
  color: #fff;
}
.mg-call-end-score {
  font-size: 1.75rem;
  margin: 0.35rem 0;
  color: #3ef0c8;
}
.mg-call-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1rem;
}
.mg-badge-live {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(62, 240, 200, 0.18);
  color: #3ef0c8;
  vertical-align: middle;
}

.mg-sound-btn {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}
.mg-sound-btn[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
}
.mg-sound-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.mg-mode-bar {
  align-items: center;
}
.mg-mode-bar .mg-sound-btn {
  margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mg-stage-dot { animation: none; }
  .mg-game-card:hover,
  .mg-game-card:focus-visible { transform: none; }
  .mg-game-card:hover .mg-game-play-btn { transform: none; }
}

.lj-basics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lj-basic-chip {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(200,180,255,0.22);
  background: rgba(255,255,255,0.04);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.lj-basic-chip:hover {
  border-color: rgba(180,150,255,0.5);
}

/* Journey unit page */
.lj-journey-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.lj-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lj-pill.is-active {
  border-color: rgba(110,240,208,0.5);
  color: #6ef0d0 !important;
  background: rgba(30,80,70,0.25);
}
.lj-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 980px) {
  .lj-layout {
    grid-template-columns: 1.45fr 0.9fr;
    align-items: start;
  }
  .lj-aside {
    position: sticky;
    top: 4.5rem;
    max-height: calc(100vh - 5.5rem);
    overflow: auto;
  }
}
.lj-compartment {
  margin-bottom: 1.75rem;
}
.lj-comp-head h2 {
  margin: 0.15rem 0 0.35rem;
  color: #fff;
  font-size: 1.25rem;
}
.lj-comp-head p {
  margin: 0;
  color: var(--learn-muted, rgba(255,255,255,0.62));
}
.lj-play-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
@media (min-width: 640px) {
  .lj-play-grid { grid-template-columns: repeat(2, 1fr); }
}
.lj-play-card {
  border-radius: 1rem;
  border: 1px solid rgba(200,180,255,0.18);
  background: rgba(12,10,28,0.65);
  overflow: hidden;
}
.lj-play-card h3 {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 1.05rem;
}
.lj-play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.lj-theater {
  margin-bottom: 1.25rem;
  border-color: rgba(139,108,255,0.35) !important;
  box-shadow: 0 0 40px rgba(120,90,255,0.15);
}
.lj-theater-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.lj-theater-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
}
.lj-theater-meta {
  margin: 0.55rem 0 0;
  color: var(--learn-muted, rgba(255,255,255,0.62));
  font-size: 0.92rem;
  line-height: 1.45;
}
.lj-aside-lede {
  font-size: 0.9rem;
  color: var(--learn-muted, rgba(255,255,255,0.62));
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
.lj-pos-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.lj-pos {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.lj-pos:first-child { border-top: none; padding-top: 0; }
.lj-pos-abbr {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0a0614;
  background: linear-gradient(135deg, #8b6cff, #6ef0d0);
  flex-shrink: 0;
}
.lj-pos strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.lj-pos p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.4;
}
.lj-pos-links {
  margin-top: 0.35rem !important;
  font-size: 0.78rem !important;
}
.lj-pos-links a {
  color: #c4b0ff;
  font-weight: 600;
  text-decoration: none;
}
.lj-pos-links a:hover { color: #6ef0d0; }
.lj-extra {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}
.lj-extra-card {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(110,240,208,0.3);
  text-decoration: none;
  color: inherit;
}
.lj-extra-card strong {
  display: block;
  color: #6ef0d0;
  margin-bottom: 0.2rem;
}
.lj-extra-card span {
  font-size: 0.88rem;
  color: var(--learn-muted, rgba(255,255,255,0.62));
}
@media (prefers-reduced-motion: reduce) {
  .lj-folder { transition: none; }
  .lj-folder:hover { transform: none; }
}

/* Learn gate landing (home-style) */
body.page-learn-gate .galaxy-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(70vh, 640px);
  padding: 1rem 1.25rem 2rem;
}
.ln-gate-kicker {
  margin: 0 0 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.ln-gate-hint {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}
.ln-gate-nav.galaxy-nav {
  max-width: 22rem;
}
body.page-learn-gate .ln-gate-nav .galaxy-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  line-height: 1.25;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.ln-gate-label {
  display: block;
}
.ln-gate-time {
  display: block;
  font-family: var(--cc-font, "Sora", system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(62, 240, 200, 0.75);
}
body.page-learn-gate .jumbotron {
  margin-top: 1.5rem;
}
/* Three unit bubbles (plays + positions) */
.ln-three-pick {
  grid-template-columns: 1fr !important;
  max-width: 22rem !important;
}
@media (min-width: 640px) {
  .ln-three-pick {
    grid-template-columns: 1fr 1fr 1fr !important;
    max-width: 36rem !important;
  }
}
a.tm-conf-btn.ln-space-bubble {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 5.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.ln-back-row {
  text-align: center;
  margin-top: 1.5rem;
}
.ln-back-row a {
  color: #c4b0ff;
  font-weight: 600;
  text-decoration: none;
}
.ln-back-row a:hover {
  text-decoration: underline;
  color: #6ef0d0;
}
/* Positions unit view: soft top back, not the underlined “Units” crumb */
.ln-unit-pick > .ln-back-row:first-child {
  text-align: left;
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}
.ln-unit-pick > .ln-back-row:first-child a {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  border: none;
}
.ln-unit-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  margin: 0.85rem 0 0.25rem;
  max-width: 40rem;
}
.ln-unit-switch-link {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.ln-unit-switch-link:hover {
  color: #fff;
  border-color: rgba(196, 176, 255, 0.4);
}
.ln-unit-switch-link.is-on {
  color: #0a1620;
  background: #6ef0d0;
  border-color: #6ef0d0;
}
.ln-unit-switch-dot {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  padding: 0 0.1rem;
  user-select: none;
}
.ln-pos-full {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  text-align: left;
}
.ln-unit-pick .tm-title {
  margin-bottom: 0.35rem;
}

/* Position glow (no layout jump - expand text in place) */
.lj-pos {
  border-radius: 0.75rem;
  padding: 0.65rem 0.55rem !important;
  cursor: default;
  transition: background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
  border: 1px solid transparent;
  /* keep box model stable so hover can't thrash under the cursor */
  contain: layout style;
}
.lj-pos.is-hot {
  background: rgba(110, 240, 208, 0.1);
  border-color: rgba(110, 240, 208, 0.45);
  box-shadow: 0 0 22px rgba(110, 240, 208, 0.18);
  opacity: 1 !important;
}
.lj-pos.is-hot .lj-pos-abbr {
  box-shadow: 0 0 14px rgba(110, 240, 208, 0.55);
}
.lj-pos.is-dim {
  opacity: 0.42;
}
/* Default: show purpose only. Hot: reveal full coach blurb without external popup. */
.lj-pos-fulltext {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0 !important;
  transition: max-height 0.2s ease, opacity 0.15s ease, margin 0.15s ease;
}
.lj-pos.is-hot .lj-pos-fulltext {
  max-height: 14rem;
  opacity: 1;
  margin: 0.35rem 0 0.25rem !important;
}
.lj-play-card {
  transition: opacity 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.lj-play-card.is-hot {
  border-color: rgba(139, 108, 255, 0.55);
  box-shadow: 0 0 28px rgba(139, 108, 255, 0.2);
  opacity: 1 !important;
}
.lj-play-card.is-dim {
  opacity: 0.45;
}
.lj-pos-purpose {
  font-size: 0.8rem !important;
  color: rgba(196, 176, 255, 0.85) !important;
  font-weight: 600;
  margin-bottom: 0.15rem !important;
}
/* Kill old pop styles if any linger */
.lj-pos-pop {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .lj-pos,
  .lj-play-card,
  .lj-pos-fulltext {
    transition: none;
  }
  .lj-pos.is-hot .lj-pos-fulltext {
    max-height: none;
  }
}

/* Device-only film room notes (no accounts) */
.fr-device-track {
  margin-top: 0.5rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(200, 180, 255, 0.2);
  background: rgba(12, 10, 28, 0.55);
}
.fr-device-track h2 {
  margin: 0.15rem 0 0.45rem;
  color: #fff;
  font-size: 1.2rem;
}
.fr-device-track-lede {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  max-width: 40rem;
}
.fr-device-track-stat {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: #6ef0d0;
  font-size: 0.92rem;
}
.fr-device-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .fr-device-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.fr-device-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 1rem;
  border: 1px solid rgba(200, 180, 255, 0.2);
  background: rgba(18, 14, 36, 0.72);
  overflow: hidden;
  min-height: 0;
}
.fr-device-card.is-next {
  border-color: rgba(110, 240, 208, 0.42);
  box-shadow: 0 0 0 1px rgba(110, 240, 208, 0.12), 0 0 28px rgba(110, 240, 208, 0.1);
}
.fr-device-card.is-done {
  border-color: rgba(110, 240, 208, 0.28);
}
.fr-device-card-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  position: relative;
  padding: 0.85rem 0.9rem 0.7rem;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
}
.fr-device-card-open:hover .fr-device-card-title,
.fr-device-card-open:focus-visible .fr-device-card-title {
  color: #e4d8ff;
}
.fr-device-card-open:focus-visible,
.fr-device-card-mark:focus-visible,
.fr-device-track-next a:focus-visible {
  outline: 2px solid #c4b0ff;
  outline-offset: 2px;
}
.fr-device-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  width: 100%;
  padding-right: 1.6rem;
}
.fr-device-card-badge,
.fr-device-card-now {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}
.fr-device-card-badge {
  color: rgba(232, 230, 245, 0.82);
  border: 1px solid rgba(200, 180, 255, 0.32);
  background: rgba(80, 50, 140, 0.22);
}
.fr-device-card-now {
  color: #6ef0d0;
  border: 1px solid rgba(110, 240, 208, 0.4);
}
.fr-device-card-check {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 6, 20, 0.45);
}
.fr-device-card.is-done .fr-device-card-check {
  color: #6ef0d0;
  border-color: rgba(110, 240, 208, 0.5);
  background: rgba(30, 100, 85, 0.7);
}
.fr-device-card-title {
  margin: 0.15rem 0 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}
.fr-device-card-blurb {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.4;
}
.fr-device-card-meta {
  margin: 0.15rem 0 0;
  color: rgba(200, 180, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
}
.fr-device-card-mark {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0.45rem 0.85rem;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(200, 180, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 230, 245, 0.88);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.fr-device-card-mark:hover,
.fr-device-card-mark:focus-visible {
  background: rgba(196, 176, 255, 0.1);
  color: #fff;
}
.fr-device-card-mark[aria-pressed="true"] {
  color: #6ef0d0;
}
.fr-track-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6ef0d0;
  border: 1px solid rgba(110, 240, 208, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.fr-device-track-next {
  position: sticky;
  bottom: 0.55rem;
  z-index: 3;
  margin: 1rem 0 0;
  padding: 0.7rem 0 0.1rem;
  background: linear-gradient(180deg, rgba(12, 10, 28, 0) 0%, rgba(12, 10, 28, 0.92) 38%);
}
.fr-device-track-next .btn-learn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .fr-device-card,
  .fr-device-card-open {
    transition: none;
  }
}

/* Simple play narration */
.play-board-story {
  margin: 0 0 0.55rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(196, 176, 255, 0.28);
  background: rgba(80, 50, 140, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 600;
}
.play-board-note {
  min-height: 2.6em;
  font-size: 1.02rem !important;
  line-height: 1.4;
  color: #6ef0d0 !important;
}

/* - - Route Tree trainer - - */
.rt-head { margin: 0.5rem 0 1rem; }
.rt-note {
  margin: 0.65rem 0 0;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}
.rt-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0.75rem;
}
.rt-mode-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 10, 22, 0.65);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.rt-mode-btn.is-on {
  border-color: rgba(110, 240, 208, 0.45);
  background: rgba(110, 240, 208, 0.12);
  color: #6ef0d0;
}
.rt-best {
  margin-left: 0.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.rt-stage {
  margin: 0.5rem 0 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 12, 0.85);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.rt-field-svg {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  height: auto;
  aspect-ratio: 1 / 1.05;
}
.rt-turf { fill: #1a3d2e; }
.rt-hash { stroke: rgba(255, 255, 255, 0.08); stroke-width: 0.35; }
.rt-los { stroke: #f0e6c8; stroke-width: 0.7; stroke-dasharray: 1.2 0.8; }
.rt-los-label {
  fill: rgba(240, 230, 200, 0.7);
  font-size: 2.4px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.rt-wr { fill: #6ef0d0; }
.rt-wr-label {
  fill: rgba(110, 240, 208, 0.85);
  font-size: 2.6px;
  font-weight: 700;
  text-anchor: middle;
}
.rt-path {
  stroke: rgba(196, 176, 255, 0.55);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease, opacity 0.15s ease;
  pointer-events: stroke;
  cursor: pointer;
}
.rt-path.is-on {
  stroke: #6ef0d0;
  stroke-width: 1.65;
  filter: drop-shadow(0 0 1.5px rgba(110, 240, 208, 0.55));
}
.rt-path.is-dim { opacity: 0.18; }
.rt-hit { cursor: pointer; }
.rt-path-label {
  fill: #e8e6f5;
  font-size: 2.8px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}
.rt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.rt-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 12, 36, 0.72);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.rt-chip.is-on {
  border-color: rgba(110, 240, 208, 0.5);
  background: rgba(110, 240, 208, 0.12);
  color: #6ef0d0;
}
.rt-chip-num {
  font-size: 0.7rem;
  opacity: 0.55;
  min-width: 1rem;
  text-align: center;
}
.rt-card {
  padding: 1rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 12, 36, 0.72);
}
.rt-card--empty {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.45;
}
.rt-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}
.rt-num {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: rgba(110, 240, 208, 0.12);
  border: 1px solid rgba(110, 240, 208, 0.35);
  color: #6ef0d0;
  font-weight: 800;
  font-size: 0.95rem;
}
.rt-card-name {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.rt-depth {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: rgba(196, 176, 255, 0.9);
  font-weight: 600;
}
.rt-plain {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  font-size: 0.98rem;
}
.rt-watch {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}
.rt-also {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}
.rt-explore-cta { margin: 1.1rem 0 0; }
.rt-quiz-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.rt-quiz-prompt {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.rt-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
@media (max-width: 520px) {
  .rt-choices { grid-template-columns: 1fr; }
}
.rt-choice {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 12, 36, 0.85);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.rt-choice:hover:not(:disabled) {
  border-color: rgba(110, 240, 208, 0.4);
}
.rt-choice.is-correct {
  border-color: rgba(110, 240, 208, 0.65);
  background: rgba(110, 240, 208, 0.14);
  color: #6ef0d0;
}
.rt-choice.is-wrong {
  border-color: rgba(255, 100, 120, 0.5);
  background: rgba(255, 80, 100, 0.1);
  opacity: 0.85;
}
.rt-feedback {
  margin: 0.5rem 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.rt-feedback.is-ok {
  border: 1px solid rgba(110, 240, 208, 0.35);
  background: rgba(110, 240, 208, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.rt-feedback.is-no {
  border: 1px solid rgba(255, 140, 120, 0.35);
  background: rgba(80, 30, 40, 0.35);
  color: rgba(255, 255, 255, 0.88);
}
.rt-done {
  margin: 1rem 0;
  padding: 1.25rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 12, 36, 0.75);
  text-align: center;
}
.rt-done h2 {
  margin: 0 0 0.5rem;
  color: #fff;
}
.rt-done p { color: rgba(255, 255, 255, 0.75); line-height: 1.45; }
.rt-done-hint { font-size: 0.92rem; color: rgba(255, 255, 255, 0.5) !important; }
.rt-done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.rt-loading, .rt-error {
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.55);
}

/* - - Topic quizzes (Learn layer A) - - */
.lq-root, .lq-hub { margin: 1.25rem 0 0.5rem; }
.lq-shell {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(196, 176, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(40, 24, 70, 0.55), rgba(12, 16, 32, 0.82));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.lq-shell--compact { margin-top: 0.75rem; }
.lq-title {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.lq-lede, .lq-meta {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.lq-best { color: #6ef0d0; font-weight: 600; }
.lq-q {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
  line-height: 1.4;
  color: #fff;
  font-weight: 700;
}
.lq-choices {
  display: grid;
  gap: 0.45rem;
}
.lq-choice {
  appearance: none;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 8, 20, 0.55);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1.35;
}
.lq-choice:hover:not(:disabled) {
  border-color: rgba(110, 240, 208, 0.4);
}
.lq-choice.is-correct {
  border-color: rgba(110, 240, 208, 0.65);
  background: rgba(110, 240, 208, 0.12);
  color: #6ef0d0;
}
.lq-choice.is-wrong {
  border-color: rgba(255, 100, 120, 0.45);
  background: rgba(90, 20, 35, 0.35);
  opacity: 0.9;
}
.lq-feedback {
  margin: 0.75rem 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.lq-feedback.is-ok {
  border: 1px solid rgba(110, 240, 208, 0.35);
  background: rgba(110, 240, 208, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.lq-feedback.is-no {
  border: 1px solid rgba(255, 140, 120, 0.35);
  background: rgba(80, 30, 40, 0.35);
  color: rgba(255, 255, 255, 0.88);
}
.lq-score {
  margin: 0.35rem 0;
  font-size: 1.15rem;
  color: #fff;
}
.lq-praise {
  margin: 0.35rem 0 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}
.lq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.lq-start { margin-right: 0.35rem; }
.lq-loading, .lq-error {
  margin: 0.75rem 0;
  color: rgba(255, 255, 255, 0.5);
}
.lq-hub-head { margin-bottom: 1rem; }
.lq-hub-grid {
  display: grid;
  gap: 0.85rem;
}
.lq-hub-card {
  padding: 1rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 12, 36, 0.72);
}
.lq-hub-card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  color: #fff;
}
.lq-hub-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.4;
}
.lq-hub-meta {
  margin-top: 0.35rem !important;
  font-size: 0.8rem !important;
  color: rgba(110, 240, 208, 0.75) !important;
}
.lq-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.lq-hub-mount { margin-top: 0.75rem; }

/* - - Learn hub v2 + continue rail + quiz/route polish - - */
.ln-gate-section {
  margin: 1.25rem 0 0.5rem;
  max-width: 42rem;
}
.ln-gate-section-title {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196, 176, 255, 0.85);
}
.ln-gate-section-lede {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}
.ln-start-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 720px) {
  .ln-start-path { grid-template-columns: 1fr 1fr; }
}
.ln-start-step {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.7rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 12, 36, 0.65);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ln-start-step:hover {
  border-color: rgba(110, 240, 208, 0.4);
  background: rgba(110, 240, 208, 0.08);
}
.ln-start-step.is-done {
  border-color: rgba(110, 240, 208, 0.35);
}
.ln-start-step.is-done .ln-start-num {
  background: rgba(110, 240, 208, 0.2);
  color: #6ef0d0;
}
.ln-start-num {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.2rem;
}
.ln-start-step strong {
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.25;
}
.ln-start-step span:last-child {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
.ln-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 720px) {
  .ln-guide-grid { grid-template-columns: 1fr 1fr; }
}
.ln-guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 10, 22, 0.55);
  text-decoration: none;
  color: inherit;
}
.ln-guide-card:hover {
  border-color: rgba(196, 176, 255, 0.4);
}
.ln-guide-card strong {
  font-size: 0.9rem;
  color: #fff;
}
.ln-guide-card span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}
.ln-gate-progress {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(110, 240, 208, 0.25);
  background: rgba(110, 240, 208, 0.06);
  max-width: 36rem;
}
.ln-gate-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.45rem;
}
.ln-gate-progress-top strong { color: #6ef0d0; }
.ln-gate-progress-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ln-gate-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6ef0d0, #c4b0ff);
  border-radius: 999px;
  min-width: 0;
}
.ln-gate-progress-cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #6ef0d0;
  text-decoration: none;
}
.ln-gate-progress-cta:hover { text-decoration: underline; }
.ln-gate-track { margin: 1.5rem 0 1rem; max-width: 36rem; }
.fr-device-track-bar {
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 0.5rem 0 0.75rem;
}
.fr-device-track-bar span {
  display: block;
  height: 100%;
  background: #6ef0d0;
  border-radius: 999px;
}

/* Soft learn footer (replaces chip “Continue learning” rail) */
.ln-rail-host { margin: 1.35rem 0 0.35rem; }
.ln-rail--soft {
  padding: 0;
  border: none;
  background: transparent;
}
.ln-rail-soft {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
}
.ln-rail-soft a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
}
.ln-rail-soft a:hover {
  color: #6ef0d0;
  text-decoration: underline;
}
.ln-rail-soft-next {
  color: #6ef0d0 !important;
  font-weight: 700 !important;
}
.ln-rail-soft-dot {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
}

/* Quiz polish */
.lq-dots {
  display: flex;
  gap: 0.28rem;
  margin: 0 0 0.55rem;
  flex-wrap: wrap;
}
.lq-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}
.lq-dot.is-done { background: rgba(110, 240, 208, 0.55); }
.lq-dot.is-now { background: #c4b0ff; box-shadow: 0 0 0 2px rgba(196, 176, 255, 0.25); }
.lq-dot.is-answered { background: #6ef0d0; }
.lq-key {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  flex: 0 0 auto;
}
.lq-choice {
  display: flex;
  align-items: center;
}
.lq-keys-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
}
.lq-pct { color: rgba(110, 240, 208, 0.9); font-weight: 600; }
.lq-hub-card.is-cleared {
  border-color: rgba(110, 240, 208, 0.28);
}
.lq-hub-badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6ef0d0;
  border: 1px solid rgba(110, 240, 208, 0.4);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  vertical-align: middle;
}
.lq-hub-summary {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Route tree polish */
.rt-path {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rt-path.is-draw {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: rtDraw 0.55s ease forwards;
}
@keyframes rtDraw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-path.is-draw { animation: none; stroke-dashoffset: 0; }
}
.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}
.rt-tool-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 10, 22, 0.6);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.rt-tool-btn.is-on {
  border-color: rgba(110, 240, 208, 0.45);
  color: #6ef0d0;
  background: rgba(110, 240, 208, 0.1);
}
.rt-empty-hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}
.rt-related { margin: 0.75rem 0 0; }
.rt-path-label.is-on { fill: #6ef0d0; font-weight: 800; }

/* - - Name That Play (library test) - - */
.pq-root { margin: 0.25rem 0 1rem; }
.pq-head { margin-bottom: 0.85rem; }
.pq-best {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: rgba(110, 240, 208, 0.9);
}
.pq-shell {
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(196, 176, 255, 0.28);
  background: linear-gradient(160deg, rgba(40, 24, 70, 0.5), rgba(12, 16, 32, 0.85));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.pq-shell--done { text-align: center; }
.pq-lede, .pq-meta, .pq-pool, .pq-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.pq-prompt {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.pq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}
.pq-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 22, 0.65);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.pq-filter.is-on {
  border-color: rgba(110, 240, 208, 0.5);
  color: #6ef0d0;
  background: rgba(110, 240, 208, 0.1);
}
.pq-board-wrap {
  margin: 0 0 0.85rem;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}
.pq-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.5rem 0 0.75rem;
}
@media (max-width: 560px) {
  .pq-choices { grid-template-columns: 1fr; }
}
.pq-choice {
  appearance: none;
  display: flex;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 8, 20, 0.55);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.pq-choice:hover:not(:disabled) {
  border-color: rgba(110, 240, 208, 0.4);
}
.pq-choice.is-correct {
  border-color: rgba(110, 240, 208, 0.65);
  background: rgba(110, 240, 208, 0.12);
  color: #6ef0d0;
}
.pq-choice.is-wrong {
  border-color: rgba(255, 100, 120, 0.45);
  background: rgba(90, 20, 35, 0.35);
}
.pq-feedback {
  margin: 0.5rem 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}
.pq-feedback a { color: #6ef0d0; }
.pq-feedback.is-ok {
  border: 1px solid rgba(110, 240, 208, 0.35);
  background: rgba(110, 240, 208, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.pq-feedback.is-no {
  border: 1px solid rgba(255, 140, 120, 0.35);
  background: rgba(80, 30, 40, 0.35);
  color: rgba(255, 255, 255, 0.88);
}
.pq-score { font-size: 1.15rem; color: #fff; }
.pq-praise { color: rgba(255, 255, 255, 0.6); line-height: 1.45; }
.pq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
}
.pq-loading, .pq-error {
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.55);
}
.pq-more-link{margin:0.75rem 0 0.25rem}

/* - - Mini-game arcade polish - - */
.mg-arcade-scores {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(110, 240, 208, 0.22);
  background: rgba(110, 240, 208, 0.06);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 40rem;
}
.mg-arcade-scores strong { color: #6ef0d0; }
.mg-game-best {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(110, 240, 208, 0.9);
  letter-spacing: 0.02em;
}
.mg-call-key {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.35rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
}
.mg-diff-btn { opacity: 0.92; }
.mg-next-games {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.mg-call-choices .lq-key { margin-right: 0.4rem; }

/* Phone / tablet: answers are taps. Hide keyboard-key chrome. */
@media (pointer: coarse), (hover: none) {
  .mg-call-key,
  .lq-key,
  .mg-kbd-only {
    display: none !important;
  }
  #lesson-root .downs-action,
  .mg-call-choice,
  .fr-spot-choice,
  .pq-choices button,
  .lq-choices button,
  .rt-choices button {
    min-height: 52px;
    padding: 0.9rem 1rem;
  }
  #lesson-root .downs-action {
    width: 100%;
  }
  .mg-call-btn {
    padding-left: 2.7rem !important;
  }
}

/* - - Coach + arcade XP - - */
.mg-coach {
  margin: 0.85rem 0 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(246, 213, 138, 0.35);
  background: rgba(60, 40, 10, 0.35);
}
.mg-coach-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f6d58a;
}
.mg-coach-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.mg-hud-chip--timer.is-low,
#downs-clock.is-low {
  color: #ffb4b4 !important;
  border-color: rgba(255, 120, 120, 0.5);
  animation: mgPulse 0.8s ease infinite;
}
@keyframes mgPulse {
  50% { opacity: 0.65; }
}
.arc-panel {
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(196, 176, 255, 0.28);
  background: linear-gradient(155deg, rgba(40, 24, 70, 0.55), rgba(12, 16, 32, 0.85));
  max-width: 42rem;
}
.arc-panel-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.arc-level { color: #fff; font-size: 1.05rem; }
.arc-xp { color: #6ef0d0; font-weight: 700; }
.arc-stats { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.arc-bar {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.arc-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6ef0d0, #c4b0ff);
  border-radius: 999px;
}
.arc-next {
  margin: 0.4rem 0 0.65rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.arc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.arc-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.2);
}
.arc-badge.is-on {
  color: #6ef0d0;
  border-color: rgba(110, 240, 208, 0.4);
  background: rgba(110, 240, 208, 0.1);
}
.mg-arcade-profile { margin-bottom: 0.75rem; }

/* Flag Call */
.fc-shell { margin-top: 0.5rem; }
.fc-situation { margin: 0 0 0.85rem; }
.fc-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6d58a;
}
.fc-tip {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.fc-short {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
}
.mg-sound-packs {
  margin: 0 0 1rem;
  max-width: 42rem;
}
.mg-pack-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.mg-pack-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mg-pack-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12,10,22,0.65);
  color: rgba(255,255,255,0.75);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.mg-pack-btn.is-on {
  border-color: rgba(110,240,208,0.5);
  color: #6ef0d0;
  background: rgba(110,240,208,0.12);
}

/* ==========================================================================
   Learn hub v2 - menu-first (pick a door, then only that path)
   ========================================================================== */
body.page-learn-hub .galaxy-main.ln-hub {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.5rem 1.1rem 3.5rem;
}

.ln-hub-hero {
  text-align: center;
  margin: 0.5rem 0 1.5rem;
}
.ln-hub-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.ln-hub-title {
  margin: 0 0 0.35rem;
  font-family: Unbounded, Sora, system-ui, sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.ln-hub-lede {
  margin: 0 auto;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.05rem;
}
.ln-hub-trust {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  line-height: 1.45;
}
.ln-hub-progress {
  margin: 1rem auto 0;
  max-width: 22rem;
  text-align: left;
}
.ln-hub-progress .ln-gate-progress {
  margin: 0;
}

/* - - Four doors - - */
.ln-hub-menu {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ln-hub-menu {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.ln-hub-door {
  position: relative;
  appearance: none;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.25rem 1.2rem 1.15rem;
  background:
    linear-gradient(155deg, rgba(28, 18, 52, 0.92), rgba(10, 14, 28, 0.94));
  color: #fff;
  font: inherit;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.ln-hub-door:hover,
.ln-hub-door:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(196, 176, 255, 0.45);
  box-shadow: 0 18px 48px rgba(120, 80, 220, 0.22);
  outline: none;
}
.ln-hub-door--play {
  background:
    linear-gradient(155deg, rgba(12, 40, 36, 0.95), rgba(10, 14, 28, 0.94));
}
.ln-hub-door--play:hover,
.ln-hub-door--play:focus-visible {
  border-color: rgba(110, 240, 208, 0.45);
  box-shadow: 0 18px 48px rgba(80, 220, 190, 0.18);
}
.ln-hub-door-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 90% 0%, rgba(160, 120, 255, 0.18), transparent 55%);
  opacity: 0.85;
}
.ln-hub-door--play .ln-hub-door-glow {
  background: radial-gradient(ellipse 70% 60% at 90% 0%, rgba(110, 240, 208, 0.16), transparent 55%);
}
.ln-hub-door-tag {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.ln-hub-door-icon {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  opacity: 0.7;
  line-height: 1;
  margin-top: 0.15rem;
}
.ln-hub-door-name {
  position: relative;
  z-index: 1;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ln-hub-door-blurb {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  line-height: 1.4;
  flex: 1;
}
.ln-hub-door-cta {
  position: relative;
  z-index: 1;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c4b0ff;
}
.ln-hub-door--play .ln-hub-door-cta {
  color: #6ef0d0;
}

/* - - Stage / panels - - */
.ln-hub-stage {
  animation: lnHubIn 0.28s ease;
}
@keyframes lnHubIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ln-hub-door { transition: none; }
  .ln-hub-door:hover,
  .ln-hub-door:focus-visible { transform: none; }
  .ln-hub-stage { animation: none; }
}

.ln-hub-back {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.1rem;
  min-height: 2.5rem;
}
.ln-hub-back:hover,
.ln-hub-back:focus-visible {
  border-color: rgba(196, 176, 255, 0.4);
  color: #fff;
  outline: none;
}

.ln-hub-panel-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.ln-hub-panel-lede {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
}

/* Starter path steps */
.ln-hub-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ln-hub-step {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 12, 36, 0.75);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ln-hub-step:hover,
.ln-hub-step:focus-visible {
  border-color: rgba(110, 240, 208, 0.45);
  transform: translateX(3px);
  outline: none;
}
.ln-hub-step.is-done {
  border-color: rgba(110, 240, 208, 0.35);
}
.ln-hub-step.is-done .ln-hub-step-num {
  background: rgba(110, 240, 208, 0.25);
  color: #6ef0d0;
}
.ln-hub-step-num {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}
.ln-hub-step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ln-hub-step-body strong {
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}
.ln-hub-step-body span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}
.ln-hub-step-go {
  color: rgba(110, 240, 208, 0.85);
  font-weight: 700;
}
.ln-hub-step--optional {
  border-style: dashed;
  opacity: 0.92;
}
.ln-hub-step--optional .ln-hub-step-num {
  font-size: 1.1rem;
  background: rgba(110, 240, 208, 0.12);
  color: rgba(110, 240, 208, 0.9);
}
.ln-path-foot {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}
.ln-path-foot a {
  color: rgba(110, 240, 208, 0.9);
}
.ln-path-cta-wrap {
  margin: 1rem 0 0.5rem;
}
.ln-path-cta-note {
  margin: 1rem 0 0.55rem !important;
  font-size: 0.9rem !important;
}
.ln-pos-more {
  margin: 0.35rem 0 0.15rem;
}
.ln-pos-more summary {
  cursor: pointer;
  color: rgba(196, 176, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  list-style-position: outside;
}
.ln-pos-more summary:hover,
.ln-pos-more summary:focus-visible {
  color: #c4b0ff;
  outline: none;
}
.ln-pos-role {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}
.ln-pos-next-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 1.35rem 0 0;
}
.ln-hub-tile--featured {
  border-color: rgba(110, 240, 208, 0.35);
  box-shadow: 0 0 24px rgba(110, 240, 208, 0.08);
}
.ln-hub-tile--featured strong {
  color: #6ef0d0;
}

/* Sub-tiles */
.ln-hub-tiles {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .ln-hub-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
.ln-hub-tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 12, 36, 0.72);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 5.25rem;
}
.ln-hub-tile:hover,
.ln-hub-tile:focus-visible {
  border-color: rgba(196, 176, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  outline: none;
}
.ln-hub-tile strong {
  font-size: 1.02rem;
  color: #fff;
}
.ln-hub-tile span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}
.ln-hub-tile--accent {
  border-color: rgba(110, 240, 208, 0.28);
  background: linear-gradient(145deg, rgba(12, 40, 36, 0.9), rgba(18, 12, 36, 0.8));
}
.ln-hub-tile--accent:hover,
.ln-hub-tile--accent:focus-visible {
  border-color: rgba(110, 240, 208, 0.5);
}
.ln-hub-tiles--play .ln-hub-tile--accent {
  grid-column: 1 / -1;
}

@media (max-width: 420px) {
  .ln-hub-door {
    min-height: 0;
    padding: 1.05rem 1rem;
  }
  .ln-hub-door-name {
    font-size: 1.15rem;
  }
}

/* Doors as real links - keep the same card look as buttons (no link underlines) */
a.ln-hub-door,
a.ln-hub-door:link,
a.ln-hub-door:visited,
a.ln-hub-door:hover,
a.ln-hub-door:active,
a.ln-hub-door:focus,
html.fs-a11y-underline-links a.ln-hub-door,
html.fs-a11y-underline-links a.ln-hub-door:hover,
html.mm-a11y-underline-links a.ln-hub-door {
  text-decoration: none !important;
  color: inherit;
  -webkit-text-decoration: none !important;
}
a.ln-hub-door *,
a.ln-hub-door:hover *,
a.ln-hub-door:focus *,
html.fs-a11y-underline-links a.ln-hub-door *,
html.mm-a11y-underline-links a.ln-hub-door * {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}
a.ln-hub-door .ln-hub-door-name {
  color: #fff !important;
  font-weight: 700;
}
a.ln-hub-door .ln-hub-door-blurb {
  color: rgba(255, 255, 255, 0.55) !important;
}
a.ln-hub-door .ln-hub-door-tag {
  color: rgba(255, 255, 255, 0.42) !important;
}
a.ln-hub-door .ln-hub-door-cta {
  color: #c4b0ff !important;
  text-decoration: none !important;
}
a.ln-hub-door--play .ln-hub-door-cta {
  color: #6ef0d0 !important;
}
a.ln-hub-door:focus-visible {
  outline: 2px solid #c4b0ff;
  outline-offset: 3px;
}
/* Steps / tiles on path pages - no underline clutter */
a.ln-hub-step,
a.ln-hub-step *,
a.ln-hub-tile,
a.ln-hub-tile * {
  text-decoration: none !important;
}
.ln-hub-back--link {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}
.ln-hub--path {
  max-width: 40rem;
}
.ln-hub-path-hero {
  margin-bottom: 0.25rem;
}

/* —— Glossary page + inline tips —— */
.glossary-controls {
  margin: 1rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.glossary-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.glossary-search {
  width: 100%;
  max-width: 28rem;
  padding: 0.75rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 10, 28, 0.72);
  color: #fff;
  font-size: 1rem;
}
.glossary-search:focus {
  outline: 2px solid rgba(110, 240, 208, 0.55);
  outline-offset: 2px;
  border-color: rgba(110, 240, 208, 0.4);
}
.glossary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.glossary-tag,
.glossary-mini-tag {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.glossary-tag.is-on,
.glossary-tag:hover,
.glossary-tag:focus-visible,
.glossary-mini-tag:hover,
.glossary-mini-tag:focus-visible {
  border-color: rgba(110, 240, 208, 0.45);
  color: #6ef0d0;
  outline: none;
}
.glossary-az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.glossary-az-link {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(196, 176, 255, 0.95);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}
.glossary-az-link:hover,
.glossary-az-link:focus-visible {
  background: rgba(110, 240, 208, 0.15);
  color: #6ef0d0;
  outline: none;
}
.glossary-count {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.glossary-letter {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.1rem;
  color: rgba(110, 240, 208, 0.85);
}
.glossary-card {
  margin: 0 0 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 12, 36, 0.65);
}
.glossary-card.is-focus {
  border-color: rgba(110, 240, 208, 0.55);
  box-shadow: 0 0 24px rgba(110, 240, 208, 0.12);
}
.glossary-card-term {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.05rem;
}
.glossary-card-short {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}
.glossary-card-hear {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: rgba(196, 176, 255, 0.9);
}
.glossary-card-hear span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  color: rgba(110, 240, 208, 0.85);
  margin-right: 0.35rem;
}
.glossary-card-tags {
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.glossary-card-links {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
}
.glossary-card-links a {
  color: #c4b0ff;
  text-decoration: none;
  font-weight: 600;
}
.glossary-card-links a:hover,
.glossary-card-links a:focus-visible {
  color: #6ef0d0;
  outline: none;
}
.glossary-empty {
  color: rgba(255, 255, 255, 0.55);
}

.ln-term-chip {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px dashed rgba(110, 240, 208, 0.55);
  background: transparent;
  color: #6ef0d0;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ln-term-chip:hover,
.ln-term-chip:focus-visible,
.ln-term-chip.is-open {
  color: #c4b0ff;
  border-bottom-color: rgba(196, 176, 255, 0.7);
  outline: none;
}
.ln-term-chip-row {
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
}
.ln-term-chip-row .ln-term-chip {
  font-size: 0.82rem;
}
.ln-term-tip {
  position: fixed;
  z-index: 80;
  max-width: min(20rem, calc(100vw - 24px));
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(110, 240, 208, 0.35);
  background: rgba(10, 8, 24, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: #fff;
}
.ln-term-tip-term {
  margin: 0 0 0.25rem;
  font-weight: 750;
  font-size: 0.98rem;
}
.ln-term-tip-short {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}
.ln-term-tip-hear {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: rgba(196, 176, 255, 0.9);
}
.ln-term-tip-actions {
  margin: 0.65rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.ln-term-tip-actions a {
  color: #6ef0d0;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
.ln-term-tip-close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  cursor: pointer;
}
