:root {
  color-scheme: dark;
  --bg: #080a10;
  --bg-soft: #0d1019;
  --panel: #121622;
  --panel-2: #171c2a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #9aa3b6;
  --purple: #a979ff;
  --purple-2: #7b4fe6;
  --mint: #36d6b7;
  --blue: #55a8ff;
  --cyan: #50d9e8;
  --orange: #ff9c55;
  --pink: #ff5fa2;
  --green: #54e88b;
  --danger: #ff6b74;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 10%, rgba(99, 62, 173, 0.1), transparent 25rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(85, 168, 255, 0.7);
  outline-offset: 3px;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.button.primary {
  background: linear-gradient(135deg, var(--purple), #8f64ef);
  box-shadow: 0 10px 28px rgba(125, 79, 230, 0.26);
  color: #fff;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button.large {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 1.02rem;
}

.text-button {
  padding: 8px 10px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span,
.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--mint));
  transition: width 500ms ease;
}

.noscript,
.fatal-error {
  max-width: 700px;
  margin: 80px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

/* Welcome */

.welcome-screen {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 48px 24px;
  background:
    linear-gradient(rgba(8, 10, 16, 0.7), rgba(8, 10, 16, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(255,255,255,.018) 75px 76px);
}

.welcome-screen::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 74px, rgba(255,255,255,.014) 75px 76px);
  content: "";
}

.welcome-glow {
  position: absolute;
  width: 35vw;
  min-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
}

.glow-one {
  top: -14%;
  left: -5%;
  background: var(--purple);
}

.glow-two {
  right: -6%;
  bottom: -25%;
  background: var(--blue);
}

.welcome-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(15, 18, 28, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
}

.profile-selection-card {
  width: min(920px, 100%);
}

.profile-gateway-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 32px;
}

.profile-gateway-lockup img {
  display: block;
  width: min(270px, calc(100% - 70px));
  height: auto;
}

.profile-gateway-lockup span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin: 0 auto 26px;
}

.brand-mark span {
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(var(--purple), var(--blue));
}

.brand-mark span:nth-child(1) { height: 14px; }
.brand-mark span:nth-child(2) { height: 32px; }
.brand-mark span:nth-child(3) { height: 22px; }
.brand-mark span:nth-child(4) { height: 28px; }

.welcome-card h1 {
  max-width: 620px;
  margin: 0 auto 16px;
  font-size: clamp(2.8rem, 8vw, 5rem);
}

.welcome-card h1 span {
  background: linear-gradient(120deg, #fff 15%, #bc9bff 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome-lede {
  margin-bottom: 35px;
  color: var(--muted);
  font-size: 1.12rem;
}

.gateway-profile-grid {
  margin: 32px 0 16px;
  text-align: left;
}

.gateway-profile-card p strong,
.gateway-profile-card p span {
  display: block;
}

.gateway-profile-card p strong {
  color: var(--text);
  font-size: .82rem;
}

.gateway-profile-card p span {
  margin-top: 2px;
}

.profile-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

.profile-card-actions .button {
  flex: 1;
}

.gateway-create-card {
  margin-top: 16px;
  text-align: left;
}

.profile-storage-hint {
  margin: 20px 0 0;
  text-align: center;
}

.welcome-existing {
  margin: 30px 0;
}

.profile-grid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  text-align: left;
  cursor: pointer;
}

.profile-card:hover {
  border-color: rgba(169, 121, 255, 0.45);
  background: rgba(169, 121, 255, 0.08);
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(169, 121, 255, 0.35);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(169,121,255,.26), rgba(85,168,255,.12));
  color: #d7c5ff;
  font-size: 0.83rem;
  font-weight: 900;
}

.profile-avatar.small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 0.7rem;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  color: #737c8f;
  font-size: 0.78rem;
}

.or-divider::before,
.or-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.name-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.name-form > label,
.create-profile-inline label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.input-action {
  display: flex;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0b0e16;
}

.input-prefix {
  padding: 0 6px 0 12px;
  color: var(--purple);
  font-weight: 900;
}

.input-action input {
  min-width: 0;
  height: 48px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
}

.form-hint,
.form-error {
  margin: 9px 5px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-error {
  color: var(--danger);
}

.equipment-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  color: #788195;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.equipment-strip i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--purple);
}

/* Shell and navigation */

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 282px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #0b0e16;
}

.sidebar-top {
  padding: 24px 20px 18px;
}

.wordmark {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.sidebar-brand-lockup {
  display: block;
  width: 150px;
  max-width: calc(100% - 58px);
  height: auto;
  flex: 0 1 auto;
  object-fit: contain;
}

.sidebar-brand-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
}

.wordmark-icon {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 23px;
}

.wordmark-icon i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--purple);
}

.wordmark-icon i:nth-child(1) { height: 11px; }
.wordmark-icon i:nth-child(2) { height: 22px; }
.wordmark-icon i:nth-child(3) { height: 16px; }

.learner-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.learner-chip small,
.learner-chip strong {
  display: block;
}

.learner-chip small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.learner-chip strong {
  max-width: 155px;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-progress {
  margin-top: 20px;
}

.sidebar-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.sidebar-progress strong {
  color: var(--text);
}

.lesson-nav {
  flex: 1;
  overflow-y: auto;
  padding: 7px 12px 15px;
  scrollbar-width: thin;
}

.lesson-nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  margin-bottom: 4px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: none;
  color: #b7becd;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.lesson-nav-item:hover:not(:disabled),
.lesson-nav-item.active {
  border-color: rgba(169,121,255,.17);
  background: rgba(169,121,255,.08);
  color: #fff;
}

.lesson-nav-item.current {
  color: #fff;
}

.lesson-nav-item.locked {
  cursor: not-allowed;
  opacity: 0.35;
}

.lesson-nav-item.complete .lesson-status {
  border-color: rgba(54,214,183,.3);
  background: rgba(54,214,183,.13);
  color: var(--mint);
}

.lesson-status {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 900;
}

.lesson-nav-item small {
  display: block;
  margin-bottom: 1px;
  color: #71798a;
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.lesson-nav-item > span:last-child {
  overflow: hidden;
  font-size: 0.77rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-nav {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.utility-nav button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #8d96a8;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
}

.utility-nav button:hover,
.utility-nav button.active {
  background: rgba(255,255,255,.05);
  color: #fff;
}

.utility-nav span {
  width: 18px;
  color: var(--purple);
  text-align: center;
}

.main-panel {
  min-width: 0;
}

.main-content {
  min-height: 100vh;
  padding: 42px clamp(28px, 5vw, 72px) 70px;
}

.mobile-header,
.sidebar-close,
.sidebar-scrim {
  display: none;
}

.page {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-heading {
  margin-bottom: 34px;
}

.page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.page-heading > p:last-child,
.page-heading > div > p:last-child {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Dashboard */

.home-hero {
  position: relative;
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 30%, rgba(169,121,255,.2), transparent 18rem),
    linear-gradient(125deg, #171b29, #10131d);
}

.home-hero::after {
  position: absolute;
  right: 10%;
  bottom: -90px;
  width: 300px;
  height: 180px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.home-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.home-hero p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.hero-disc {
  position: relative;
  z-index: 1;
  display: grid;
  width: 130px;
  height: 130px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #10131c 0 13%, transparent 14%),
    repeating-radial-gradient(circle at center, rgba(255,255,255,.07) 0 1px, transparent 2px 8px),
    #202533;
  box-shadow: -12px 15px 35px rgba(0,0,0,.35);
}

.hero-disc span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  font-size: 0.75rem;
  font-weight: 900;
}

.mission-card {
  display: grid;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding: 25px 28px;
  border: 1px solid rgba(169,121,255,.24);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(169,121,255,.1), rgba(18,22,34,.8));
  grid-template-columns: auto 1fr auto;
}

.mission-number {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  background: rgba(169,121,255,.14);
  color: #cdb8ff;
  font-size: 1.4rem;
  font-weight: 900;
}

.mission-copy h2 {
  margin-bottom: 5px;
  font-size: 1.22rem;
}

.mission-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-block {
  margin-top: 52px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.section-heading > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
}

.journey::before,
.journey::after {
  position: absolute;
  top: 25px;
  left: 5%;
  height: 2px;
  content: "";
}

.journey::before {
  right: 5%;
  background: var(--line);
}

.journey::after {
  width: calc(var(--journey-progress) * .9);
  background: linear-gradient(90deg, var(--purple), var(--mint));
}

.journey-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 6px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
}

.journey-node > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #111521;
  color: var(--purple);
  font-weight: 900;
}

.journey-node.complete > span {
  border-color: rgba(54,214,183,.45);
  background: var(--mint);
  color: #07110f;
}

.journey-node.locked {
  cursor: not-allowed;
  opacity: 0.35;
}

.journey-node small,
.journey-node strong {
  display: block;
}

.journey-node small {
  margin-bottom: 4px;
  color: #6e7789;
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.journey-node strong {
  font-size: 0.7rem;
  line-height: 1.25;
}

.achievement-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.achievement {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  grid-template-columns: auto 1fr;
}

.achievement.locked {
  filter: saturate(.25);
  opacity: 0.48;
}

.achievement-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(169,121,255,.3);
  border-radius: 50%;
  background: rgba(169,121,255,.12);
  color: #c8afff;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 900;
}

.achievement strong,
.achievement small {
  display: block;
}

.achievement strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement small {
  color: var(--muted);
  font-size: 0.68rem;
}

.achievement-state {
  grid-column: 2;
  color: var(--mint);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

/* Lessons */

.lesson-header {
  margin-bottom: 24px;
}

.lesson-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lesson-kicker i {
  width: 22px;
  height: 1px;
  background: rgba(169,121,255,.5);
}

.lesson-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.lesson-header > p {
  max-width: 750px;
  color: var(--muted);
  font-size: 1rem;
}

.step-progress {
  display: flex;
  max-width: 750px;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.step-progress .progress-track {
  flex: 1;
}

.step-progress > span {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.lesson-step-dots {
  display: flex;
  gap: 7px;
  margin: 0 0 20px;
}

.lesson-step-dots button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: #737c8f;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 800;
}

.lesson-step-dots button.active {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.lesson-step-dots button.visited {
  color: var(--mint);
}

.teaching-card {
  display: grid;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(24,29,43,.98), rgba(14,17,27,.98));
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
}

.teaching-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
}

.teaching-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.teaching-copy > p:not(.eyebrow) {
  max-width: 570px;
  color: #c4cad5;
  font-size: 1.02rem;
}

.teaching-list {
  display: grid;
  gap: 9px;
  margin: 4px 0 22px;
  padding: 0;
  list-style: none;
}

.teaching-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce0e8;
}

.teaching-list li::before {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--purple);
  content: "";
  transform: rotate(45deg);
}

.callout {
  margin-top: 15px;
  padding: 17px 19px;
  border-left: 3px solid var(--mint);
  border-radius: 0 13px 13px 0;
  background: rgba(54,214,183,.07);
}

.callout span {
  display: block;
  margin-bottom: 5px;
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.callout p {
  margin: 0;
  color: #dce9e6;
  font-size: 0.92rem;
}

.help-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 0;
  border: 0;
  background: none;
  color: #aeb8ca;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.help-button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(169,121,255,.5);
  border-radius: 50%;
  color: var(--purple);
}

.parent-prompt {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.parent-prompt span {
  color: var(--orange);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.parent-prompt p {
  margin: 5px 0 0;
  color: #aab2c1;
  font-size: 0.8rem;
}

.teaching-visual {
  display: flex;
  min-width: 0;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 4vw, 42px);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(169,121,255,.12), transparent 18rem),
    rgba(5,7,12,.42);
}

.controller-lesson-wrap {
  width: 100%;
}

.diagram-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.diagram-label span {
  color: var(--purple);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.diagram-label small {
  max-width: 66%;
  color: var(--muted);
  font-size: .65rem;
  text-align: right;
}

.step-controls {
  display: grid;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  grid-template-columns: 1fr auto 1fr;
}

.step-controls .button:first-child {
  justify-self: start;
}

.step-controls .button:last-child {
  justify-self: end;
}

.step-controls > span {
  color: #737c8e;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
}

/* Controller diagram */

.controller {
  width: 100%;
  max-width: 930px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #303747;
  border-radius: 20px;
  background: linear-gradient(150deg, #202633, #10141d 55%, #191e29);
  box-shadow: 0 26px 60px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.05);
}

.controller-brand {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #7e8798;
  font-size: .58rem;
  letter-spacing: .08em;
}

.controller-brand strong {
  color: #dce1e9;
}

.controller-layout {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(155px, .68fr) minmax(0, 1fr);
}

.deck,
.mixer {
  position: relative;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.025) 50%, transparent 51%),
    #141925;
}

.deck-top,
.transport-top,
.deck-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.transport-top {
  justify-content: flex-start;
  margin: 6px 0;
}

.deck-bottom {
  justify-content: center;
  margin-top: 8px;
}

.control {
  position: relative;
  display: inline-grid;
  min-width: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: #232a38;
  color: #aeb6c4;
  cursor: default;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  transition: opacity 180ms ease, box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.guide-stage .control {
  cursor: pointer;
}

.guide-stage .control:hover {
  z-index: 2;
  border-color: rgba(255,255,255,.5);
  transform: translateY(-1px);
}

.control.dimmed {
  opacity: .16;
  filter: grayscale(1);
}

.control.highlighted {
  z-index: 3;
  border-color: currentColor;
  box-shadow: 0 0 0 2px currentColor, 0 0 24px currentColor;
  color: #fff;
  animation: control-pulse 1.8s ease-in-out infinite;
}

.control-play { --control-color: var(--green); }
.control-cue { --control-color: var(--orange); }
.control-sync { --control-color: var(--blue); }
.control-eq { --control-color: var(--purple); }
.control-fader { --control-color: var(--cyan); }
.control-pad { --control-color: var(--pink); }
.control-utility { --control-color: #ced5e2; }

.control.highlighted {
  color: var(--control-color);
  background: color-mix(in srgb, var(--control-color) 18%, #202633);
}

@keyframes control-pulse {
  50% { box-shadow: 0 0 0 2px var(--control-color), 0 0 12px var(--control-color); }
}

.control.square {
  min-width: 38px;
  height: 23px;
}

.control.tempo {
  width: 22px;
  height: 44px;
  margin-left: auto;
  border-radius: 9px;
}

.control.tempo::before {
  position: absolute;
  width: 2px;
  height: 28px;
  background: #596172;
  content: "";
}

.control.tempo span {
  position: absolute;
  right: calc(100% + 4px);
  font-size: .38rem;
  writing-mode: vertical-rl;
}

.control.jog {
  display: grid;
  width: min(58%, 125px);
  aspect-ratio: 1;
  margin: 3px auto 7px;
  border: 4px solid #353d4c;
  border-radius: 50%;
  background:
    radial-gradient(circle, #1b202b 0 12%, #687080 13% 15%, #212733 16% 55%, #343b48 56% 58%, #181d27 59%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 8px 15px rgba(0,0,0,.35);
}

.control.jog span {
  color: #7f8899;
  font-size: .48rem;
}

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

.control.pad {
  width: 100%;
  height: 25px;
  border-radius: 4px;
  background: linear-gradient(#373e4c, #232936);
  color: #8992a2;
}

.control.play-button {
  width: 72px;
  height: 28px;
  border-color: rgba(84,232,139,.28);
  color: var(--green);
}

.mixer {
  text-align: center;
}

.mixer-title {
  margin-bottom: 5px;
  color: #747e91;
  font-size: .42rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.master-knob {
  margin: 0 auto 4px;
}

.channel-pair {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
}

.mixer-channel {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}

.control.knob {
  width: 29px;
  height: 29px;
  border: 4px solid #3b4250;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, #c1c7d1 48% 52%, transparent 53%) 50% 3px / 100% 40% no-repeat,
    #222834;
}

.control.knob span {
  position: absolute;
  top: calc(100% + 1px);
  color: #818a9b;
  font-size: .36rem;
}

.control.channel-fader {
  width: 25px;
  height: 58px;
  margin-top: 5px;
  border-radius: 10px;
}

.control.channel-fader::before {
  position: absolute;
  width: 2px;
  height: 42px;
  background: #596172;
  content: "";
}

.control.channel-fader span {
  z-index: 1;
  padding: 3px;
  border-radius: 3px;
  background: #8d96a6;
  color: #141822;
  font-size: .35rem;
}

.crossfader-wrap {
  display: grid;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: #687185;
  font-size: .33rem;
  grid-template-columns: auto 1fr auto;
}

.control.crossfader {
  width: 100%;
  height: 20px;
  border-radius: 8px;
}

.control.crossfader::before {
  position: absolute;
  width: calc(100% - 13px);
  height: 2px;
  background: #596172;
  content: "";
}

.control.crossfader span {
  z-index: 1;
  display: grid;
  width: 22px;
  height: 10px;
  place-items: center;
  border-radius: 3px;
  background: #929baa;
  color: #171b24;
}

.compact-controller {
  padding: 9px;
  border-radius: 14px;
}

.compact-controller .controller-brand {
  margin-bottom: 4px;
}

.compact-controller .controller-layout {
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .65fr) minmax(0, 1fr);
}

.compact-controller .deck,
.compact-controller .mixer {
  padding: 7px;
  border-radius: 9px;
}

.compact-controller .control.jog {
  width: min(47%, 90px);
}

.compact-controller .control.knob {
  width: 23px;
  height: 23px;
}

.compact-controller .control.channel-fader {
  height: 43px;
}

.compact-controller .control.pad {
  height: 18px;
}

.compact-controller .control.play-button {
  width: 58px;
  height: 23px;
}

/* Teaching visuals */

.mini-visual {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(9,11,18,.8);
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}

.mini-visual > p:first-child {
  margin: 0;
  color: #828c9f;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.fader-visual {
  display: grid;
  align-items: center;
  gap: 15px;
  padding: 34px;
  grid-template-columns: auto 1fr auto;
}

.fader-visual > p {
  color: #adb5c3 !important;
  font-size: .65rem !important;
  writing-mode: vertical-rl;
}

.fader-visual > div {
  position: relative;
  display: flex;
  align-items: center;
}

.fader-visual > div > span {
  display: grid;
  width: 50px;
  height: 50px;
  z-index: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  font-weight: 900;
}

.fader-visual > div > span:last-of-type {
  background: var(--blue);
}

.fader-visual > div i {
  height: 5px;
  flex: 1;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.fader-visual > div b {
  position: absolute;
  top: 46px;
  left: 46%;
  color: var(--mint);
  font-size: 1.7rem;
  animation: arrow-travel 2s ease-in-out infinite;
}

@keyframes arrow-travel {
  50% { transform: translateX(25px); }
}

.rating-visual,
.heard-visual,
.choice-visual {
  padding: 28px;
  text-align: center;
}

.rating-visual > div {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.rating-visual button {
  min-height: 60px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 900;
}

.rating-visual button.selected {
  border-color: var(--purple);
  background: rgba(169,121,255,.17);
  color: #fff;
}

.rating-visual > strong,
.heard-visual > strong,
.choice-visual > strong {
  display: block;
  margin-top: 15px;
  color: var(--mint);
  font-size: .8rem;
}

.beat-visual {
  padding: 28px;
  text-align: center;
}

.beat-visual > div {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  grid-template-columns: repeat(4, 1fr);
}

.beat-visual > div span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #161b27;
  color: #717b8f;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 900;
  animation: count-beat 4s linear infinite;
}

.beat-visual > div span:nth-child(2) { animation-delay: 1s; }
.beat-visual > div span:nth-child(3) { animation-delay: 2s; }
.beat-visual > div span:nth-child(4) { animation-delay: 3s; }

@keyframes count-beat {
  0%, 22% { border-color: var(--purple); background: var(--purple); color: #fff; transform: scale(1.05); }
  23%, 100% { border-color: var(--line); background: #161b27; color: #717b8f; transform: scale(1); }
}

.beat-visual small {
  color: var(--muted);
  letter-spacing: .08em;
}

.fake-wave,
.waveform-visual > div,
.spectrum-bars {
  display: flex;
  height: 120px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.fake-wave i,
.waveform-visual > div i,
.spectrum-bars i {
  width: 7px;
  height: var(--h);
  border-radius: 3px;
  background: var(--c, var(--purple));
}

.heard-visual button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.bpm-visual {
  display: grid;
  gap: 1px;
  background: var(--line);
  grid-template-columns: 1fr 1fr;
}

.bpm-visual > div {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #0c0f17;
}

.bpm-visual strong {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}

.bpm-visual span {
  color: var(--purple);
  font-weight: 900;
}

.bpm-visual i {
  width: 60%;
  height: 3px;
  margin: 24px 0 12px;
  background: repeating-linear-gradient(90deg, var(--mint) 0 5px, transparent 5px 11px);
}

.bpm-visual i.fast {
  background: repeating-linear-gradient(90deg, var(--orange) 0 3px, transparent 3px 7px);
}

.bpm-visual small {
  color: var(--muted);
  letter-spacing: .12em;
}

.waveform-visual,
.spectrum-visual {
  padding: 24px;
}

.waveform-visual > span,
.spectrum-visual > div:last-child {
  display: flex;
  justify-content: space-between;
  color: #7d8799;
  font-size: .52rem;
  letter-spacing: .08em;
}

.spectrum-bars {
  align-items: flex-end;
}

.spectrum-bars i {
  background: linear-gradient(var(--pink), var(--purple), var(--blue));
}

.spectrum-visual > div:last-child span {
  flex: 1;
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.spectrum-visual small {
  display: block;
  color: var(--muted);
  font-size: .52rem;
  font-weight: 500;
}

.bass-visual {
  padding: 35px;
  text-align: center;
}

.bass-visual > div {
  display: grid;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  grid-template-columns: 1fr auto 1fr;
}

.bass-visual > div span {
  padding: 25px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #141925;
}

.bass-visual > div b,
.bass-visual > div i {
  display: block;
}

.bass-visual > div i {
  color: var(--orange);
  font-size: 2.5rem;
  font-style: normal;
}

.bass-visual > div i.up {
  color: var(--mint);
}

.bass-visual em {
  color: var(--purple);
  font-size: .65rem;
  font-style: normal;
  font-weight: 900;
}

.structure-visual {
  padding: 24px;
}

.structure-visual > div {
  display: flex;
  height: 220px;
  align-items: flex-end;
  gap: 5px;
  margin-top: 18px;
}

.structure-visual > div span {
  display: flex;
  min-width: 0;
  height: calc(var(--level) * 18%);
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(rgba(169,121,255,.75), rgba(85,168,255,.28));
}

.structure-visual small {
  padding: 8px 2px;
  color: #fff;
  font-size: .43rem;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.choice-wave {
  display: flex;
  height: 210px;
  align-items: center;
  margin: 18px 0;
}

.choice-wave button {
  display: flex;
  min-width: 0;
  height: 100%;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.05);
  background: transparent;
  color: #778195;
  cursor: pointer;
  flex-direction: column;
}

.choice-wave i {
  width: 75%;
  height: var(--h);
  border-radius: 6px;
  background: linear-gradient(var(--purple), rgba(85,168,255,.35));
}

.choice-wave button.selected i {
  box-shadow: 0 0 0 3px var(--mint);
}

.choice-wave span {
  font-size: .48rem;
  font-weight: 900;
}

.reveal-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.reveal-button:disabled {
  cursor: not-allowed;
  opacity: .3;
}

.hotcue-visual,
.loop-visual,
.jump-visual,
.playlist-visual,
.crates-visual,
.miniset-visual,
.setlist-visual,
.energy-visual,
.launch-visual {
  padding: 26px;
}

.hotcue-visual > div,
.loop-visual > div {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.hotcue-visual > div span,
.loop-visual > div span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,95,162,.35);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,95,162,.22), rgba(169,121,255,.1));
  color: var(--pink);
  font-size: 1.4rem;
  font-weight: 900;
}

.hotcue-visual small {
  color: #fff;
  font-size: .48rem;
}

.loop-visual > div {
  position: relative;
}

.loop-visual > div span {
  border-color: rgba(85,168,255,.3);
  color: var(--blue);
}

.loop-visual > div b {
  position: absolute;
  right: -7px;
  bottom: -18px;
  color: var(--mint);
  font-size: 2rem;
}

.loop-visual > small,
.jump-visual > small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.jump-visual {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
}

.jump-visual button {
  padding: 14px;
  border: 1px solid rgba(85,168,255,.35);
  border-radius: 10px;
  background: rgba(85,168,255,.1);
  color: var(--blue);
}

.jump-visual > div {
  position: relative;
  height: 5px;
  background: #363e4d;
}

.jump-visual > div i {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: var(--pink);
}

.jump-visual > div span {
  position: absolute;
  top: 23px;
  left: 50%;
  color: var(--muted);
  font-size: .48rem;
  transform: translateX(-50%);
}

.jump-visual > small {
  grid-column: 1 / -1;
}

.playlist-visual > div {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto auto 1fr auto;
}

.playlist-visual > div span {
  color: #697387;
  font-size: .7rem;
}

.playlist-visual > div i {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.playlist-visual > div strong {
  font-size: .75rem;
}

.playlist-visual > div b {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 500;
}

.crates-visual {
  display: grid;
  align-items: center;
  gap: 15px;
  grid-template-columns: 1fr auto 1fr;
}

.crates-visual > div {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111620;
}

.crates-visual > div span {
  margin-bottom: 4px;
  color: var(--purple);
  font-size: .62rem;
  font-weight: 900;
}

.crates-visual > div b {
  color: #bbc2ce;
  font-size: .66rem;
}

.crates-visual > i {
  color: var(--mint);
  font-size: 1.5rem;
  font-style: normal;
}

.miniset-visual > div {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  grid-template-columns: auto auto 1fr;
}

.miniset-visual > div > span {
  color: #667084;
  font-size: .7rem;
  font-weight: 900;
}

.miniset-visual > div > i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #1b202b 0 3px, #414958 4px 5px);
}

.miniset-visual strong,
.miniset-visual small {
  display: block;
}

.miniset-visual strong {
  font-size: .78rem;
}

.miniset-visual small {
  color: var(--purple);
  font-size: .52rem;
}

.setlist-visual > span {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto 1fr auto;
}

.setlist-visual > span b {
  color: var(--purple);
  font-size: .65rem;
}

.setlist-visual > span i {
  height: 1px;
  background: repeating-linear-gradient(90deg, #303747 0 7px, transparent 7px 12px);
}

.setlist-visual > span em {
  color: var(--muted);
  font-size: .55rem;
  font-style: normal;
  font-weight: 900;
}

.energy-visual svg {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.energy-fill {
  fill: url(#energy-fill);
}

.energy-line {
  fill: none;
  stroke: var(--purple);
  stroke-width: 5;
}

.energy-visual circle {
  fill: var(--mint);
}

.energy-visual > div {
  display: flex;
  justify-content: space-between;
  color: #778195;
  font-size: .48rem;
  font-weight: 900;
}

.launch-visual {
  text-align: center;
}

.launch-visual > span {
  color: var(--purple);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.launch-visual > div {
  margin: 18px 0 8px;
  font-size: clamp(4rem, 10vw, 7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 250;
  line-height: 1;
}

.launch-visual p {
  margin: 0;
  color: var(--mint);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .18em;
}

/* Challenge and video */

.challenge-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(34px, 6vw, 62px);
  border: 1px solid rgba(169,121,255,.28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 15%, rgba(169,121,255,.18), transparent 20rem),
    linear-gradient(140deg, #171c2a, #0d1019);
  box-shadow: var(--shadow);
  text-align: center;
}

.challenge-flag {
  position: absolute;
  top: 20px;
  left: -42px;
  width: 165px;
  padding: 6px;
  background: var(--purple);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .12em;
  transform: rotate(-40deg);
}

.challenge-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgba(169,121,255,.4);
  border-radius: 50%;
  background: rgba(169,121,255,.13);
  color: var(--purple);
  font-size: 1.5rem;
}

.challenge-card > h2 {
  max-width: 680px;
  margin: 0 auto 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.challenge-card > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
}

.challenge-question {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.2);
}

.challenge-question strong {
  display: block;
  margin-bottom: 16px;
}

.challenge-question > div {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.requirement-status {
  display: grid;
  max-width: 570px;
  align-items: center;
  gap: 12px;
  margin: 28px auto;
  grid-template-columns: 1fr auto 1fr;
  text-align: left;
}

.requirement-status > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.requirement-status > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #798295;
  font-size: .75rem;
  font-weight: 900;
}

.requirement-status > div.done > span {
  border-color: var(--mint);
  background: rgba(54,214,183,.14);
  color: var(--mint);
}

.requirement-status p {
  margin: 0;
}

.requirement-status strong,
.requirement-status small {
  display: block;
}

.requirement-status strong {
  font-size: .75rem;
}

.requirement-status small {
  color: var(--muted);
  font-size: .63rem;
}

.requirement-status > i {
  width: 30px;
  height: 1px;
  background: var(--line);
}

.performance-button {
  width: 100%;
  max-width: 570px;
  margin: 0 auto 18px;
  border-color: rgba(255,95,162,.32);
  background: linear-gradient(90deg, rgba(255,95,162,.15), rgba(169,121,255,.16));
  color: #ffd4e6;
}

.video-card {
  display: grid;
  max-width: 680px;
  align-items: center;
  gap: 15px;
  margin: 20px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
  text-align: left;
  text-decoration: none;
  grid-template-columns: auto 1fr auto;
}

.video-card:hover {
  border-color: rgba(255,95,162,.35);
}

.video-play {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,95,162,.13);
  color: var(--pink);
}

.video-card small,
.video-card strong,
.video-card em {
  display: block;
}

.video-card small {
  color: var(--pink);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.video-card strong {
  font-size: .78rem;
}

.video-card em {
  color: var(--muted);
  font-size: .65rem;
  font-style: normal;
}

.video-card > b {
  color: var(--muted);
  font-size: .62rem;
}

/* Quizzes and completion */

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.quiz-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

.quiz-header p:last-child {
  color: var(--muted);
}

.score-orbit {
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(169,121,255,.16);
}

.score-orbit strong,
.score-orbit span {
  grid-area: 1 / 1;
}

.score-orbit strong {
  margin-top: -13px;
  font-size: 1.8rem;
}

.score-orbit span {
  margin-top: 38px;
  color: var(--muted);
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.quiz-form {
  display: grid;
  gap: 15px;
}

.question-card {
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.question-card legend {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.question-card legend > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: rgba(169,121,255,.12);
  color: var(--purple);
  font-size: .75rem;
}

.answer-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.answer-list label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
  color: #c6ccd7;
  cursor: pointer;
}

.answer-list label:hover {
  border-color: rgba(169,121,255,.35);
}

.answer-list input {
  position: absolute;
  opacity: 0;
}

.radio-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #5f687a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px transparent;
}

.answer-list label:has(input:checked) {
  border-color: var(--purple);
  background: rgba(169,121,255,.1);
  color: #fff;
}

.answer-list input:checked + .radio-mark {
  border-color: var(--purple);
  background: var(--purple);
  box-shadow: inset 0 0 0 4px #151925;
}

.quiz-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.quiz-submit > span {
  color: var(--muted);
  font-size: .78rem;
}

.quiz-warning {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid rgba(255,107,116,.35);
  border-radius: 12px;
  background: rgba(255,107,116,.08);
  color: #ffb6bb;
}

.result-hero {
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-align: center;
}

.result-hero.passed {
  border-color: rgba(54,214,183,.3);
  background: radial-gradient(circle at 50% 0, rgba(54,214,183,.15), transparent 20rem), var(--panel);
}

.result-hero.retry {
  border-color: rgba(255,156,85,.28);
}

.result-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(54,214,183,.13);
  color: var(--mint);
  font-size: 1.8rem;
}

.retry .result-icon {
  background: rgba(255,156,85,.1);
  color: var(--orange);
}

.result-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.result-hero > p:last-child {
  margin: 0;
  color: var(--muted);
}

.feedback-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.feedback-list article {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  grid-template-columns: auto 1fr;
}

.feedback-list article > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(54,214,183,.12);
  color: var(--mint);
  font-weight: 900;
}

.feedback-list article.incorrect > span {
  background: rgba(255,107,116,.1);
  color: var(--danger);
}

.feedback-list small,
.feedback-list strong {
  display: block;
}

.feedback-list small {
  margin-bottom: 2px;
  color: #707a8d;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.feedback-list strong {
  margin-bottom: 8px;
}

.feedback-list p {
  margin: 3px 0;
  color: var(--muted);
  font-size: .84rem;
}

.feedback-list b {
  color: var(--text);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.completion-page {
  display: grid;
  min-height: calc(100vh - 112px);
  place-items: center;
}

.completion-card {
  position: relative;
  width: min(760px, 100%);
  overflow: hidden;
  padding: clamp(35px, 7vw, 70px);
  border: 1px solid rgba(169,121,255,.25);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 10%, rgba(169,121,255,.2), transparent 20rem),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.completion-rays {
  position: absolute;
  inset: -100%;
  background: repeating-conic-gradient(from 0deg, transparent 0 10deg, rgba(255,255,255,.015) 10deg 20deg);
  animation: slow-spin 40s linear infinite;
}

@keyframes slow-spin { to { transform: rotate(360deg); } }

.completion-card > *:not(.completion-rays) {
  position: relative;
}

.completion-check {
  display: grid;
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 40px rgba(54,214,183,.23);
  color: #07110f;
  font-size: 2rem;
  font-weight: 900;
}

.completion-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 7vw, 4rem);
}

.completion-card > p:not(.eyebrow) {
  color: var(--muted);
}

.you-can-now {
  max-width: 520px;
  margin: 28px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.16);
  text-align: left;
}

.you-can-now > span {
  color: var(--purple);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.you-can-now ul {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.you-can-now li {
  display: flex;
  gap: 10px;
  font-size: .84rem;
}

.you-can-now b {
  color: var(--mint);
}

.achievement-unlocked {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  margin: 0 auto 28px;
  text-align: left;
}

.achievement-unlocked p,
.achievement-unlocked small,
.achievement-unlocked strong,
.achievement-unlocked em {
  display: block;
  margin: 0;
}

.achievement-unlocked small {
  color: var(--purple);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.achievement-unlocked strong {
  font-size: 1rem;
}

.achievement-unlocked em {
  color: var(--muted);
  font-size: .7rem;
  font-style: normal;
}

.completion-card > .text-button {
  display: block;
  margin: 12px auto 0;
}

/* Guide, progress and profiles */

.guide-stage {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #141927, #0d1018);
  box-shadow: var(--shadow);
}

.guide-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.guide-toolbar > small {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.control-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.control-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b95a7;
  font-size: .56rem;
  font-weight: 850;
}

.control-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.control-legend .play { background: var(--green); }
.control-legend .cue { background: var(--orange); }
.control-legend .sync { background: var(--blue); }
.control-legend .eq { background: var(--purple); }
.control-legend .fader { background: var(--cyan); }
.control-legend .pad { background: var(--pink); }

.control-explainer {
  display: grid;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.028);
  grid-template-columns: auto 1fr;
}

.explainer-type {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 18px;
  font-size: .56rem;
  font-weight: 900;
}

.type-play { color: var(--green); }
.type-cue { color: var(--orange); }
.type-sync { color: var(--blue); }
.type-eq { color: var(--purple); }
.type-fader { color: var(--cyan); }
.type-pad { color: var(--pink); }
.type-utility { color: #dce1e9; }

.control-explainer h2 {
  margin-bottom: 7px;
  font-size: 1.45rem;
}

.control-explainer p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.accuracy-note,
.storage-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.accuracy-note > span,
.storage-note > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(85,168,255,.35);
  border-radius: 50%;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 900;
}

.accuracy-note p,
.storage-note p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.accuracy-note strong,
.storage-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.big-progress {
  width: 220px;
  flex: 0 0 auto;
}

.big-progress strong,
.big-progress > span {
  display: block;
}

.big-progress strong {
  font-size: 2.7rem;
  line-height: 1;
}

.big-progress > span {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.stat-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  grid-template-columns: repeat(4, 1fr);
}

.stat-grid > div {
  min-height: 135px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.stat-grid small,
.stat-grid strong,
.stat-grid > div > span {
  display: block;
}

.stat-grid small {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.stat-grid strong {
  font-size: 2.2rem;
  line-height: 1;
}

.stat-grid strong span {
  color: #687285;
  font-size: 1rem;
}

.stat-grid > div > span {
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-grid .word-stat {
  color: var(--purple);
  font-size: 1.25rem;
  line-height: 1.7;
}

.progress-table-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  color: #758095;
  font-size: .56rem;
  letter-spacing: .1em;
  text-align: left;
}

td {
  padding: 13px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: #aeb6c5;
  font-size: .76rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr.locked {
  opacity: .38;
}

td:first-child {
  display: flex;
  min-width: 240px;
  align-items: center;
  gap: 10px;
}

td:first-child > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(169,121,255,.1);
  color: var(--purple);
  font-size: .65rem;
  font-weight: 900;
}

td:first-child strong {
  color: #dde2ea;
}

.table-check {
  color: var(--mint);
  font-size: 1rem;
}

.status-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #8c96a8;
  font-size: .56rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-complete {
  background: rgba(54,214,183,.1);
  color: var(--mint);
}

.status-retry-quiz {
  background: rgba(255,156,85,.1);
  color: var(--orange);
}

.status-in-progress {
  background: rgba(169,121,255,.1);
  color: var(--purple);
}

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

.profile-manage-card {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  grid-template-columns: auto 1fr;
}

.profile-manage-card.active {
  border-color: rgba(169,121,255,.35);
  background: linear-gradient(135deg, rgba(169,121,255,.1), var(--panel));
}

.profile-manage-card small {
  color: var(--purple);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.profile-manage-card h2 {
  margin: 4px 0;
  font-size: 1.3rem;
}

.profile-manage-card p {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
}

.profile-manage-card > .button {
  grid-column: 1 / -1;
}

.create-card {
  align-items: start;
  grid-template-columns: 1fr;
}

.create-profile-inline {
  display: grid;
  gap: 9px;
}

.create-profile-inline input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: 0;
  background: #0b0e16;
  color: #fff;
}

/* Serato screen teaching */

.hands-eyes-ears {
  display: grid;
  gap: 6px;
  margin: 10px 0 4px;
}

.hands-eyes-ears > div {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  grid-template-columns: 52px 1fr;
}

.hands-eyes-ears span {
  color: var(--purple);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.hands-eyes-ears .eyes span { color: var(--blue); }
.hands-eyes-ears .ears span { color: var(--mint); }

.hands-eyes-ears p {
  margin: 0;
  color: #bcc4d1;
  font-size: .7rem;
  line-height: 1.35;
}

.equipment-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7,9,14,.7);
}

.equipment-switcher > span {
  margin: 0 7px;
  color: var(--muted);
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.equipment-switcher button {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.equipment-switcher button.active {
  border-color: rgba(169,121,255,.4);
  background: rgba(169,121,255,.13);
  color: #e7dcff;
}

.serato-context {
  width: 100%;
}

.serato-screen {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #353946;
  border-radius: 16px;
  background: #08090c;
  box-shadow: 0 22px 55px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.05);
  color: #e9edf4;
  flex-direction: column;
  font-size: .62rem;
}

.compact-serato {
  min-height: 230px;
  aspect-ratio: 16 / 8.7;
  border-radius: 13px;
  font-size: .54rem;
}

.serato-appbar {
  display: flex;
  height: 25px;
  flex: 0 0 25px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-bottom: 1px solid #292c34;
  background: #1d1f24;
  color: #9299a6;
  font-size: .52rem;
  font-weight: 800;
}

.serato-appbar strong {
  margin: 0 auto;
  color: #fff;
  font-size: .7rem;
  letter-spacing: .03em;
}

.serato-appbar span {
  padding: 2px 5px;
  border-radius: 3px;
  background: #0b0c0f;
}

.serato-upper {
  display: grid;
  min-height: 0;
  flex: 0 0 53%;
  grid-template-columns: 24% 52% 24%;
}

.serato-deck-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #252831;
  background: #111318;
  flex-direction: column;
}

.serato-deck-right {
  border-right: 0;
  border-left: 1px solid #252831;
}

.serato-zone {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: opacity 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

button.serato-zone {
  cursor: pointer;
}

button.serato-zone:hover {
  border-color: rgba(255,255,255,.36);
}

.serato-zone.dimmed {
  opacity: .16;
  filter: grayscale(.8);
}

.serato-zone.highlighted {
  z-index: 3;
  border-color: var(--purple);
  background-color: rgba(169,121,255,.09);
  box-shadow: inset 0 0 0 1px rgba(169,121,255,.35), 0 0 18px rgba(169,121,255,.45);
  opacity: 1;
}

.serato-deck-header {
  display: grid;
  min-height: 46px;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-bottom: 1px solid #282b33;
  grid-template-columns: 18px minmax(0, 1fr) 36px;
}

.serato-deck-number {
  color: #fff;
  font-size: .9rem;
  font-weight: 900;
}

.serato-deck-header strong,
.serato-deck-header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serato-deck-header strong {
  color: #f6f8fb;
  font-size: .64rem;
}

.serato-deck-header small {
  color: #9ca4b1;
  font-size: .5rem;
}

.serato-transport {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
}

.serato-transport b,
.serato-transport i {
  padding: 1px 3px;
  border: 1px solid #414650;
  border-radius: 2px;
  background: #20232a;
  color: #aeb6c3;
  font-size: .32rem;
  font-style: normal;
  line-height: 1;
}

.serato-transport b {
  color: #39aefb;
}

.serato-virtual-deck {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 4px solid #dadde2;
  border-radius: 50%;
  background: #2b2e35;
}

.serato-virtual-deck b {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8f96a2;
}

.serato-deck-readouts {
  display: grid;
  min-height: 0;
  flex: 1;
  gap: 3px;
  padding: 4px;
  grid-template-columns: minmax(0, 1fr) 58px;
  grid-template-rows: 1fr 1fr;
}

.serato-hotcues,
.serato-loops,
.serato-bpm,
.serato-beatjump {
  padding: 5px;
  border-color: #242832;
  background: #0d0f13;
}

.serato-hotcues { grid-row: 1; }
.serato-loops { grid-row: 2; }

.serato-bpm {
  display: grid;
  grid-row: 1 / 3;
  grid-column: 2;
  place-items: center;
  text-align: center;
}

.serato-bpm strong,
.serato-bpm span,
.serato-bpm small {
  display: block;
}

.serato-bpm strong {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

.serato-bpm span {
  color: #b6bdc9;
  font-size: .42rem;
  font-weight: 900;
}

.serato-bpm small {
  color: #aeb5c0;
  font-size: .46rem;
}

.serato-mini-label {
  display: block;
  margin-bottom: 3px;
  color: #828b99;
  font-size: .42rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.serato-cue-slots {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.serato-cue-slots i {
  display: grid;
  min-height: 21px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #343843;
  border-radius: 2px;
  background: #17191f;
  color: #c8ced7;
  font-size: .38rem;
  font-style: normal;
  font-weight: 900;
}

.serato-cue-slots .cue-1 { border-bottom-color: var(--blue); }
.serato-cue-slots .cue-2 { border-bottom-color: var(--orange); }
.serato-cue-slots .cue-3 { border-bottom-color: var(--purple); }
.serato-cue-slots .cue-4 { border-bottom-color: var(--mint); }

.serato-loop-size {
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #777f8d;
  font-style: normal;
}

.serato-loop-size b {
  padding: 2px 8px;
  border: 1px solid var(--blue);
  color: #fff;
}

.serato-beatjump {
  display: flex;
  min-height: 23px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 4px 4px;
}

.serato-beatjump small {
  color: #9098a6;
  font-size: .38rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.serato-waveform-stack {
  display: grid;
  min-width: 0;
  min-height: 0;
  background: #050608;
  grid-template-rows: 16% 68% 16%;
}

.serato-overview {
  overflow: hidden;
  border-bottom: 1px solid #272a31;
}

.overview-2 {
  border-top: 1px solid #272a31;
  border-bottom: 0;
}

.overview-bars,
.wave-lane {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: 1px;
}

.overview-bars i,
.wave-lane i {
  display: block;
  height: var(--h);
  flex: 1;
  background: var(--c, var(--purple));
  opacity: .82;
}

.overview-position {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.serato-main-waveform {
  display: grid;
  overflow: hidden;
  background: #050608;
  grid-template-rows: 1fr 1fr;
}

.wave-lane {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.lane-two {
  transform: rotate(180deg);
}

.serato-playhead {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 9px rgba(255,255,255,.8);
}

.serato-beat-labels {
  position: absolute;
  z-index: 2;
  display: grid;
  inset: 7px 5px auto;
  grid-template-columns: repeat(8, 1fr);
  text-align: center;
}

.serato-beat-labels b {
  color: #fff;
  font-size: .62rem;
  text-shadow: 0 1px 4px #000;
}

.serato-phrase-marker,
.serato-loop-marker {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  padding: 3px 7px;
  border: 1px solid var(--mint);
  border-radius: 4px;
  background: rgba(8,10,14,.86);
  color: var(--mint);
  font-size: .45rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.serato-loop-marker {
  top: auto;
  right: 10%;
  bottom: 8px;
  left: auto;
  border-color: var(--blue);
  color: var(--blue);
  transform: none;
}

.serato-cue-markers {
  position: absolute;
  z-index: 2;
  display: flex;
  top: 4px;
  right: 8px;
  gap: 3px;
}

.serato-cue-markers i {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 2px;
  background: var(--blue);
  color: #071018;
  font-size: .38rem;
  font-style: normal;
  font-weight: 900;
}

.serato-cue-markers i:nth-child(2) { background: var(--orange); }
.serato-cue-markers i:nth-child(3) { background: var(--purple); }
.serato-cue-markers i:nth-child(4) { background: var(--mint); }

.serato-structure-labels {
  position: absolute;
  display: grid;
  inset: 0;
  align-items: end;
  grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}

.serato-structure-labels i {
  padding: 1px 2px;
  border-right: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: .34rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.serato-browser {
  display: grid;
  min-height: 0;
  flex: 1;
  border-top: 1px solid #30333b;
  background: #101216;
  grid-template-columns: 23% 77%;
}

.serato-crates {
  display: flex;
  min-width: 0;
  padding: 8px;
  border-right: 1px solid #30333b;
  background: #181a1f;
  flex-direction: column;
  gap: 3px;
}

.serato-browser-title {
  margin-bottom: 4px;
  color: #838b98;
  font-size: .44rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.serato-crates strong,
.serato-crates small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serato-crates strong { color: #f2f4f7; }
.serato-crates small { padding-left: 9px; color: #c1c7d0; }

.serato-library-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 25px 20px minmax(0, 1fr);
}

.serato-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px 8px;
  border-bottom: 1px solid #292c34;
  background: #17191e;
  color: #858e9d;
}

.serato-search strong {
  width: 155px;
  padding: 2px 7px;
  border: 1px solid #2f333d;
  border-radius: 3px;
  background: #07080a;
  color: #8e96a4;
  font-size: .48rem;
  font-weight: 600;
}

.serato-library-head,
.serato-track-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  grid-template-columns: 18px minmax(95px, 2fr) minmax(70px, 1.2fr) 35px 30px 32px 42px;
}

.serato-library-head {
  border-bottom: 1px solid #2b2e35;
  color: #929aa8;
  font-size: .4rem;
  font-weight: 900;
}

.serato-library {
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.serato-track-row {
  min-height: 21px;
  border-bottom: 1px solid #24272e;
  grid-template-columns: 18px minmax(95px, 2fr) minmax(70px, 1.2fr) 35px 30px 32px 42px;
}

.serato-track-row:nth-child(even) { background: rgba(255,255,255,.025); }
.serato-track-row.selected { background: rgba(255,255,255,.16); }

.serato-track-row > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serato-track-row b { color: #8c94a1; }
.serato-track-row strong { color: #39aefb; font-weight: 650; }
.serato-track-row i { color: #c9ced6; font-style: normal; }
.serato-track-row em { color: #40b9ff; font-style: normal; }
.serato-play-count { color: #969eaa; }
.serato-track-row u { color: #a979ff; text-decoration: none; }
.serato-track-row small { color: #cfd4dc; }

.mode-decks .serato-browser,
.mode-waveform .serato-browser,
.mode-overview .serato-browser {
  display: none;
}

.mode-decks .serato-upper,
.mode-waveform .serato-upper,
.mode-overview .serato-upper {
  flex: 1;
}

.mode-waveform .serato-upper,
.mode-overview .serato-upper {
  grid-template-columns: 19% 62% 19%;
}

.mode-library .serato-upper {
  display: none;
}

.mode-library .serato-browser {
  flex: 1;
  grid-template-columns: 27% 73%;
}

.serato-structure-question {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.serato-structure-question > span {
  color: var(--muted);
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.serato-structure-question > div {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, 1fr);
}

.serato-structure-question button {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: #b8c0cd;
  cursor: pointer;
  font-size: .5rem;
  font-weight: 900;
}

.serato-structure-question button.selected {
  border-color: var(--purple);
  background: rgba(169,121,255,.14);
  color: #fff;
}

.serato-structure-question .reveal-button {
  justify-self: start;
  padding-inline: 13px;
}

.serato-structure-question > strong {
  color: var(--mint);
  font-size: .65rem;
}

.serato-guide-layout {
  display: grid;
  align-items: start;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.serato-guide-stage,
.serato-region-explainer,
.serato-ignore {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #141927, #0d1018);
  box-shadow: var(--shadow);
}

.serato-region-explainer {
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
}

.serato-region-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(169,121,255,.45);
  border-radius: 14px;
  background: rgba(169,121,255,.11);
  color: var(--purple);
  font-size: 1.2rem;
  font-weight: 900;
}

.serato-region-explainer h2 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.serato-region-explainer p:not(.eyebrow),
.serato-region-explainer li {
  color: var(--muted);
  font-size: .76rem;
}

.serato-region-explainer ul {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding-left: 17px;
}

.serato-ignore {
  display: grid;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  grid-template-columns: minmax(230px, .8fr) 1.2fr;
}

.serato-ignore h2 { margin-bottom: 8px; }
.serato-ignore p { margin: 0; color: var(--muted); font-size: .82rem; }

.ignore-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ignore-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: #aeb6c5;
  font-size: .62rem;
}

.serato-help-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

/* Modal and notice */

.modal-backdrop {
  position: fixed;
  z-index: 100;
  display: grid;
  inset: 0;
  place-items: center;
  padding: 20px;
  background: rgba(4,5,9,.75);
  backdrop-filter: blur(8px);
}

.help-modal {
  position: relative;
  width: min(480px, 100%);
  padding: 34px;
  border: 1px solid rgba(169,121,255,.3);
  border-radius: 24px;
  background: #151925;
  box-shadow: var(--shadow);
}

.help-modal > button:first-child {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.help-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(169,121,255,.12);
  color: var(--purple);
  font-weight: 900;
}

.help-modal h2 {
  font-size: 1.8rem;
}

.help-modal > p:not(.eyebrow) {
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 110;
  right: 24px;
  bottom: 24px;
  display: flex;
  max-width: 380px;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border: 1px solid rgba(169,121,255,.35);
  border-radius: 14px;
  background: #1a1f2d;
  box-shadow: var(--shadow);
  font-size: .82rem;
}

.toast button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
}

/* First Gig mode */

.gig-mode {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 30px clamp(22px, 5vw, 72px) 60px;
  background:
    linear-gradient(rgba(5,6,10,.76), rgba(5,6,10,.98)),
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(255,255,255,.018) 91px 92px);
}

.gig-mode::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 90px, rgba(255,255,255,.014) 91px 92px);
  content: "";
}

.gig-ambient {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .16;
}

.ambient-one {
  top: -200px;
  left: -120px;
  background: var(--pink);
}

.ambient-two {
  right: -140px;
  bottom: -200px;
  background: var(--purple);
}

.gig-header,
.gig-hero,
.gig-grid,
.gig-rule,
.gig-finish {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin-inline: auto;
}

.gig-header {
  display: grid;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto 1fr;
}

.gig-exit {
  justify-self: start;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .72rem;
}

.gig-brand {
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.gig-brand span {
  color: var(--purple);
}

.gig-brand b {
  margin-left: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--pink);
  font-size: .5rem;
}

.live-pill {
  justify-self: end;
  color: #8993a5;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.live-pill i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: live-blink 1.5s ease-in-out infinite;
}

@keyframes live-blink { 50% { opacity: .35; } }

.gig-hero {
  padding: 55px 0 35px;
  text-align: center;
}

.gig-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(3.5rem, 9vw, 7rem);
}

.gig-hero p:last-child {
  color: var(--muted);
}

.gig-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr .8fr 1fr;
}

.gig-card,
.timer-card {
  min-height: 330px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18,22,34,.8);
  backdrop-filter: blur(8px);
}

.gig-card h2 {
  margin-bottom: 22px;
  font-size: 1.4rem;
}

.gig-checklist {
  display: grid;
  gap: 9px;
}

.gig-checklist label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #b3bbca;
  cursor: pointer;
  font-size: .78rem;
}

.gig-checklist input {
  position: absolute;
  opacity: 0;
}

.gig-checklist label span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #414959;
  border-radius: 7px;
  color: transparent;
  font-weight: 900;
}

.gig-checklist label:has(input:checked) {
  color: #fff;
}

.gig-checklist input:checked + span {
  border-color: var(--mint);
  background: var(--mint);
  color: #07110f;
}

.timer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255,95,162,.22);
  background: radial-gradient(circle, rgba(255,95,162,.12), rgba(18,22,34,.86) 65%);
  flex-direction: column;
  text-align: center;
}

.gig-timer {
  margin: 8px 0 0;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 200;
  letter-spacing: -.06em;
  line-height: 1;
}

.timer-card > span {
  margin: 8px 0 25px;
  color: var(--muted);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.gig-start {
  width: min(220px, 100%);
  background: var(--pink);
  color: #fff;
}

.timer-finished {
  box-shadow: inset 0 0 50px rgba(54,214,183,.15);
}

.notes-card textarea {
  width: 100%;
  height: 150px;
  padding: 15px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: rgba(0,0,0,.25);
  color: #fff;
  line-height: 1.5;
}

.notes-card textarea:focus {
  border-color: var(--purple);
}

.notes-card > small {
  color: var(--muted);
  font-size: .6rem;
}

.gig-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 18px 22px;
  border: 1px solid rgba(255,156,85,.25);
  border-radius: 17px;
  background: rgba(255,156,85,.07);
}

.gig-rule > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #211309;
  font-weight: 900;
}

.gig-rule p {
  margin: 0;
  color: #c3c8d2;
  font-size: .8rem;
}

.gig-rule strong {
  display: block;
  color: #fff;
}

.gig-finish {
  margin-top: 30px;
  text-align: center;
}

.gig-finish p {
  color: var(--muted);
  font-size: .8rem;
}

/* Certificate */

.certificate-view {
  min-height: 100vh;
  padding: 32px;
  background: #0a0c12;
}

.certificate-actions {
  display: flex;
  width: min(1020px, 100%);
  justify-content: space-between;
  gap: 15px;
  margin: 0 auto 22px;
}

.certificate {
  width: min(1020px, 100%);
  margin: 0 auto;
  padding: 18px;
  border-radius: 4px;
  background: #ece8df;
  color: #161923;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.certificate-border {
  position: relative;
  min-height: 690px;
  padding: clamp(42px, 8vw, 85px);
  border: 2px solid #1d2130;
  background:
    radial-gradient(circle at center, transparent 0 58%, rgba(124,79,230,.055)),
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(21,25,35,.025) 21px 22px),
    #f6f2e9;
  text-align: center;
}

.certificate-border::before,
.certificate-border::after {
  position: absolute;
  width: 90px;
  height: 90px;
  border-color: #8a62dd;
  content: "";
}

.certificate-border::before {
  top: 14px;
  left: 14px;
  border-top: 4px solid;
  border-left: 4px solid;
}

.certificate-border::after {
  right: 14px;
  bottom: 14px;
  border-right: 4px solid;
  border-bottom: 4px solid;
}

.certificate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.certificate-brand .wordmark-icon i {
  background: #794ed5;
}

.certificate-brand p {
  margin: 0;
  font-size: 1rem;
  letter-spacing: .17em;
}

.certificate-kicker {
  margin: 45px 0 9px;
  color: #7952ca;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .3em;
}

.certificate h1 {
  margin-bottom: 30px;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  letter-spacing: -.04em;
}

.certificate h1 span {
  color: #7952ca;
}

.certificate .awarded {
  margin-bottom: 5px;
  color: #777a82;
  font-family: Georgia, serif;
  font-style: italic;
}

.certificate h2 {
  display: inline-block;
  min-width: min(500px, 80%);
  margin: 0 auto 24px;
  padding: 0 20px 10px;
  border-bottom: 1px solid #a6a19a;
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  font-weight: 500;
}

.certificate-copy {
  color: #565a65;
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.certificate-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0;
}

.certificate-badges span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #9275ce;
  border-radius: 50%;
  color: #7952ca;
  font-size: .48rem;
  font-weight: 900;
}

.certificate-footer {
  display: grid;
  align-items: end;
  gap: 20px;
  margin-top: 25px;
  grid-template-columns: 1fr auto 1fr;
}

.certificate-footer > div:first-child {
  text-align: left;
}

.certificate-footer > div:last-child {
  text-align: right;
}

.certificate-footer span,
.certificate-footer small {
  display: block;
}

.certificate-footer span {
  font-size: .72rem;
  font-weight: 800;
}

.certificate-footer small {
  margin-top: 5px;
  color: #7b7e86;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.certificate-seal {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  border: 2px solid #7952ca;
  border-radius: 50%;
  color: #7952ca;
}

.certificate-seal span,
.certificate-seal small {
  grid-area: 1 / 1;
}

.certificate-seal span {
  margin-top: -22px;
}

.certificate-seal small {
  margin-top: 25px;
  color: #7952ca;
  font-size: .42rem;
}

/* Version 1 refinement: hardware-faithful controller, viewport lessons, skill badges */

.main-content.lesson-active {
  height: 100dvh;
  overflow: hidden;
  padding-top: 16px;
  padding-bottom: 16px;
}

.lesson-active .lesson-page {
  display: grid;
  height: 100%;
  min-height: 0;
  gap: 10px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lesson-active .lesson-header {
  margin: 0;
}

.lesson-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.lesson-active .lesson-kicker {
  margin-bottom: 2px;
  font-size: .58rem;
}

.lesson-active .lesson-header h1 {
  margin-bottom: 3px;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

.lesson-objective {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}

.lesson-step-count {
  display: flex;
  min-width: 74px;
  align-items: flex-end;
  padding-top: 7px;
  color: var(--purple);
  flex-direction: column;
  line-height: 1.2;
}

.lesson-step-count strong {
  font-size: .66rem;
  letter-spacing: .1em;
}

.lesson-step-count span {
  color: var(--muted);
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.compact-step-progress {
  display: grid;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  grid-template-columns: 1fr auto;
}

.compact-step-progress .progress-track {
  height: 4px;
}

.compact-step-progress .lesson-step-dots {
  margin: 0;
}

.compact-step-progress .lesson-step-dots button {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: .48rem;
}

.lesson-active .teaching-card {
  height: 100%;
  min-height: 0;
}

.lesson-active .teaching-copy,
.lesson-active .teaching-visual {
  min-height: 0;
  overflow: auto;
  padding: clamp(20px, 3.1vw, 38px);
  scrollbar-width: thin;
}

.lesson-active .teaching-copy {
  justify-content: flex-start;
}

.lesson-active .teaching-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.lesson-active .teaching-copy > p:not(.eyebrow) {
  margin-bottom: 10px;
  font-size: .86rem;
  line-height: 1.48;
}

.lesson-active .teaching-list {
  gap: 5px;
  margin-bottom: 10px;
  font-size: .8rem;
}

.lesson-active .callout {
  margin-top: 7px;
  padding: 11px 14px;
}

.lesson-active .callout p {
  font-size: .8rem;
}

.lesson-active .parent-prompt {
  margin-top: 10px;
  padding: 10px 13px;
}

.lesson-active .help-button {
  margin-top: 8px;
}

.lesson-active .step-controls {
  min-height: 46px;
  margin: 0;
}

.lesson-active .step-controls .button {
  min-height: 42px;
}

.lesson-active .challenge-card {
  width: min(900px, 100%);
  height: 100%;
  overflow-y: auto;
  padding-top: 32px;
  padding-bottom: 28px;
  scrollbar-width: thin;
}

/* Controller proportions are derived from assets/ddj-sb-reference.jpg (878 × 496). */

.controller {
  width: 100%;
  max-width: 1080px;
  padding: 1.1%;
  overflow: hidden;
  border-color: #444b58;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(255,255,255,.012) 3px 4px),
    linear-gradient(150deg, #23262c, #0d1015 50%, #1a1e24);
}

.controller-layout {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 878 / 496;
}

.hardware-deck,
.controller .mixer {
  position: absolute;
  top: 0;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,.022) 50%, transparent 50.5%),
    linear-gradient(#15191f, #0b0e13);
  text-align: center;
}

.hardware-deck {
  width: 38.2%;
}

.deck-left {
  left: 0;
  border-right: 1px solid #525864;
}

.controller .mixer {
  left: 38.2%;
  width: 23.6%;
  border-right: 1px solid #525864;
  border-left: 1px solid #525864;
}

.deck-right {
  right: 0;
  border-left: 1px solid #525864;
}

.deck-number {
  position: absolute;
  z-index: 1;
  top: 1.2%;
  color: #707887;
  font-size: clamp(.28rem, .58vw, .5rem);
  font-weight: 900;
  letter-spacing: .14em;
}

.deck-left .deck-number { left: 3%; }
.deck-right .deck-number { right: 3%; }

.controller .control {
  overflow: visible;
  padding: 0;
  border-color: rgba(255,255,255,.19);
  border-radius: 3px;
  background: linear-gradient(#2c313a, #171b22);
  font-size: clamp(.23rem, .48vw, .43rem);
}

.controller .control > span {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1.05;
}

.controller .control > span b {
  font-size: inherit;
  font-weight: 900;
}

.controller .control > span small {
  display: block;
  margin-top: 2px;
  color: #7f8898;
  font-size: .72em;
  font-weight: 750;
  line-height: 1;
}

.controller .control.highlighted > span small {
  color: currentColor;
}

.controller .control.dimmed {
  opacity: .12;
}

.controller .control.highlighted {
  opacity: 1;
}

.fx-bank {
  position: absolute;
  top: 2.5%;
  left: 22%;
  display: grid;
  width: 63%;
  height: 14%;
  gap: 3%;
  grid-template-columns: 1fr 24%;
  grid-template-rows: 20% 1fr;
}

.hardware-section-title {
  color: #d6dae2;
  font-size: clamp(.27rem, .54vw, .48rem);
  font-weight: 900;
  letter-spacing: .1em;
}

.fx-bank > .hardware-section-title {
  grid-column: 1 / -1;
}

.fx-selects {
  display: grid;
  align-items: center;
  gap: 7%;
  grid-template-columns: repeat(3, 1fr);
}

.controller .fx-select {
  width: 100%;
  height: 42%;
  align-self: center;
}

.controller .fx-level {
  width: 70%;
  height: auto;
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
}

.controller .physical-tempo {
  position: absolute;
  top: 5%;
  width: 7%;
  height: 27%;
  border-radius: 5px;
}

.deck-left .physical-tempo { left: 5%; }
.deck-right .physical-tempo { right: 5%; }

.controller .physical-tempo::before {
  width: 18%;
  height: 78%;
  background: repeating-linear-gradient(0deg, #77808e 0 1px, transparent 1px 8%);
}

.controller .physical-tempo::after {
  position: absolute;
  top: 47%;
  width: 155%;
  height: 10%;
  border-radius: 2px;
  background: #69717e;
  box-shadow: 0 2px 3px rgba(0,0,0,.45);
  content: "";
}

.controller .physical-tempo > span {
  position: absolute;
  top: -9%;
  right: auto;
  width: 300%;
  height: auto;
  color: #b9c0cc;
  font-size: .88em;
  writing-mode: horizontal-tb;
}

.key-stack {
  position: absolute;
  top: 32.5%;
  display: grid;
  width: 14%;
  gap: 4px;
}

.deck-left .key-stack { left: 2%; }
.deck-right .key-stack { right: 2%; }

.controller .key-stack .control {
  width: 100%;
  min-height: 13px;
  padding: 2px;
}

.controller .key-stack .control b {
  font-size: .74em;
}

.controller .physical-jog {
  position: absolute;
  top: 17.5%;
  left: 15%;
  display: grid;
  width: 70%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  border: clamp(5px, 1vw, 13px) solid #303640;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #9ca2aa 0 2deg, #333944 2deg 5deg) center / 42% 42% no-repeat,
    radial-gradient(circle, #303640 0 13%, #9fa5ae 14% 15%, #d6d8dc 16% 45%, #8e949d 46% 48%, #e3e4e6 49% 70%, #6c737d 71% 73%, #161a20 74%);
  box-shadow: 0 8px 14px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.22);
}

.controller .physical-jog > span {
  color: #323741;
  font-size: .85em;
}

.controller .physical-jog > span small {
  color: #535a65;
}

.controller .vinyl-button {
  position: absolute;
  top: 58%;
  width: 10%;
  height: 4.5%;
}

.deck-left .vinyl-button { left: 6%; }
.deck-right .vinyl-button { right: 6%; }

.jog-direction {
  position: absolute;
  top: 60.5%;
  color: #777f8e;
  font-size: clamp(.22rem, .4vw, .35rem);
  font-weight: 900;
}

.jog-rev { left: 34%; }
.jog-fwd { right: 25%; }

.pad-bank {
  position: absolute;
  top: 68.5%;
  left: 17%;
  display: grid;
  width: 70%;
  height: 14%;
  gap: 2.5%;
  grid-template-columns: repeat(4, 1fr);
}

.controller .performance-pad {
  width: 100%;
  height: 100%;
  border-top: 3px solid rgba(255,95,162,.58);
  border-radius: 3px;
  background: linear-gradient(#303640, #1c2027);
}

.controller .performance-pad > span {
  justify-content: flex-start;
  padding-top: 5%;
}

.controller .performance-pad > span b {
  color: #eee;
  font-size: .72em;
}

.controller .performance-pad > span small {
  position: absolute;
  top: -25%;
  color: var(--pink);
}

.transport-row {
  position: absolute;
  top: 85.2%;
  left: 17%;
  display: grid;
  width: 70%;
  height: 12%;
  gap: 2.5%;
  grid-template-columns: repeat(4, 1fr);
}

.controller .transport-button {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(#3b414c, #222730);
}

.controller .transport-button > span b {
  font-size: 1.05em;
}

.controller .transport-button > span small {
  font-size: .62em;
}

.controller .play-transport { border-top: 3px solid rgba(84,232,139,.55); }
.controller .cue-transport { border-top: 3px solid rgba(255,156,85,.6); }
.controller .sync-transport { border-top: 3px solid rgba(85,168,255,.6); }

.deck-edge-note {
  position: absolute;
  top: 68%;
  color: #7d8594;
  font-size: clamp(.22rem, .4vw, .36rem);
  font-weight: 900;
  writing-mode: vertical-rl;
}

.deck-left .deck-edge-note { left: 3%; }
.deck-right .deck-edge-note { right: 3%; }

.library-controls {
  position: absolute;
  top: 1.5%;
  left: 5%;
  width: 90%;
  height: 15%;
}

.controller .load-button {
  position: absolute;
  top: 11%;
  width: 23%;
  height: 28%;
}

.controller .load-left { left: 4%; }
.controller .load-right { right: 4%; }

.controller .browse-knob {
  position: absolute;
  top: 25%;
  left: 39%;
  width: 22%;
  height: auto;
  aspect-ratio: 1;
}

.controller .back-button {
  position: absolute;
  top: 76%;
  left: 39%;
  width: 22%;
  height: 19%;
}

.controller .channel-pair {
  position: absolute;
  top: 13%;
  left: 5%;
  display: flex;
  width: 90%;
  height: 69%;
  justify-content: space-between;
}

.controller .mixer-channel {
  position: relative;
  display: flex;
  width: 28%;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 0;
}

.channel-number {
  display: grid;
  width: 100%;
  height: 4%;
  place-items: center;
  color: #f1f3f6;
  font-size: clamp(.28rem, .55vw, .48rem);
  font-weight: 900;
}

.controller .channel-knob,
.controller .master-stack .knob,
.controller .browse-knob {
  width: min(78%, 30px);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: clamp(2px, .35vw, 4px) solid #3f4651;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, #d0d4da 48% 52%, transparent 53%) 50% 3px / 100% 40% no-repeat,
    radial-gradient(circle, #262b33 0 58%, #11151b 60%);
}

.controller .channel-knob > span,
.controller .master-stack .knob > span {
  position: absolute;
  top: 102%;
  width: 180%;
  height: auto;
  color: #a5adbb;
  font-size: .72em;
}

.controller .channel-knob > span small,
.controller .master-stack .knob > span small {
  display: none;
}

.controller .headphone-cue {
  width: 70%;
  height: 6.5%;
  flex: 0 0 auto;
  border-top: 2px solid rgba(255,156,85,.55);
}

.controller .channel-fader {
  width: 48%;
  height: 27%;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 5px;
}

.controller .channel-fader::before {
  width: 12%;
  height: 82%;
  background: repeating-linear-gradient(0deg, #69717f 0 1px, transparent 1px 10%);
}

.controller .channel-fader > span {
  width: 155%;
  height: 11%;
  padding: 0;
  border-radius: 2px;
  background: #818895;
}

.controller .channel-fader > span small {
  position: absolute;
  top: 130%;
  color: #737c8d;
  font-size: .65em;
}

.master-stack {
  position: absolute;
  top: 31%;
  left: 36%;
  display: flex;
  width: 28%;
  height: 35%;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

.controller .master-stack > .hardware-section-title {
  font-size: .55em;
}

.controller .master-stack .knob {
  width: 78%;
}

.controller .filter-fade {
  position: absolute;
  top: 70%;
  left: 40%;
  width: 20%;
  height: 7%;
  border: 2px solid rgba(85,168,255,.45);
  border-radius: 50%;
}

.controller .filter-fade > span small {
  position: absolute;
  top: 120%;
  width: 230%;
}

.hardware-logo {
  position: absolute;
  top: 81%;
  left: 0;
  width: 100%;
  color: #e0e3e8;
  font-size: clamp(.28rem, .56vw, .5rem);
  font-style: italic;
  font-weight: 800;
}

.hardware-logo b {
  margin-left: 4px;
  color: #808897;
  font-size: .75em;
  font-style: normal;
}

.controller .crossfader-wrap {
  position: absolute;
  top: 87%;
  left: 11%;
  display: grid;
  width: 78%;
  height: 9%;
  align-items: center;
  gap: 4%;
  margin: 0;
  grid-template-columns: auto 1fr auto;
}

.controller .control.crossfader {
  width: 100%;
  height: 42%;
}

.controller .control.crossfader > span {
  position: relative;
  width: 17%;
  height: 155%;
  margin: 0 auto;
  border-radius: 2px;
  background: #888f9b;
}

.controller .control.crossfader > span small {
  position: absolute;
  top: 160%;
  width: 400%;
}

.controller .control.crossfader.highlighted::after {
  position: absolute;
  right: 1%;
  bottom: 155%;
  color: var(--cyan);
  content: "→";
  font-size: 1rem;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.compact-controller {
  max-width: 720px;
  padding: .8%;
  border-radius: 9px;
}

.compact-controller .controller-layout {
  display: block;
  gap: 0;
  grid-template-columns: none;
}

.compact-controller .control.dimmed {
  opacity: .075;
}

.guide-stage .controller .control.dimmed {
  opacity: .2;
}

/* Badge collection */

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

.achievement {
  --badge-color: #a979ff;
  --badge-accent: #55a8ff;
  position: relative;
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 20px 16px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--badge-color) 16%, transparent), transparent 55%),
    linear-gradient(145deg, #171c28, #10141d);
  flex-direction: column;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.achievement:hover {
  transform: translateY(-4px);
}

.achievement.earned {
  border-color: color-mix(in srgb, var(--badge-color) 45%, transparent);
  box-shadow: 0 15px 35px color-mix(in srgb, var(--badge-color) 10%, transparent);
}

.achievement.locked {
  filter: none;
  opacity: .72;
}

.achievement.locked .badge-art {
  filter: grayscale(1);
  opacity: .25;
}

.achievement.badge-1 { --badge-color: #54e88b; --badge-accent: #36d6b7; }
.achievement.badge-2 { --badge-color: #55a8ff; --badge-accent: #50d9e8; }
.achievement.badge-3 { --badge-color: #a979ff; --badge-accent: #55a8ff; }
.achievement.badge-4 { --badge-color: #ff5fa2; --badge-accent: #a979ff; }
.achievement.badge-5 { --badge-color: #ff9c55; --badge-accent: #ffcf6b; }
.achievement.badge-6 { --badge-color: #50d9e8; --badge-accent: #55a8ff; }
.achievement.badge-7 { --badge-color: #ff77c1; --badge-accent: #a979ff; }
.achievement.badge-8 { --badge-color: #ffd36b; --badge-accent: #ff5fa2; }

.badge-art {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--badge-color);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--badge-color) 24%, transparent));
}

.badge-art svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.badge-shell {
  fill: color-mix(in srgb, var(--badge-color) 10%, #121722);
  stroke: var(--badge-color);
  stroke-width: 3;
}

.badge-ring {
  fill: none;
  stroke: color-mix(in srgb, var(--badge-accent) 55%, transparent);
  stroke-width: 2;
  stroke-dasharray: 3 5;
}

.badge-symbol {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge-symbol.fill {
  fill: var(--badge-accent);
  stroke: var(--badge-accent);
}

.badge-symbol.accent {
  stroke: var(--badge-accent);
}

.badge-text {
  fill: currentColor;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  text-anchor: middle;
}

.badge-text.strong {
  font-size: 12px;
}

.badge-segment {
  fill: color-mix(in srgb, var(--badge-color) 34%, transparent);
  stroke: var(--badge-color);
  stroke-width: 2;
}

.badge-segment.three,
.badge-segment.five {
  fill: var(--badge-accent);
}

.achievement-copy {
  min-width: 0;
}

.achievement-copy strong,
.achievement-copy small,
.achievement-copy .achievement-state {
  display: block;
}

.achievement-copy .achievement-state {
  margin-bottom: 4px;
  color: var(--badge-color);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.achievement-copy strong {
  font-size: 1rem;
}

.achievement-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .68rem;
}

.achievement.badge-8.earned {
  border-width: 2px;
  box-shadow: 0 18px 50px rgba(255,211,107,.16), inset 0 0 35px rgba(255,95,162,.06);
}

/* Badge-first completion */

.completion-card {
  --badge-color: #a979ff;
  --badge-accent: #55a8ff;
}

.completion-card:has(.badge-1) { --badge-color: #54e88b; --badge-accent: #36d6b7; }
.completion-card:has(.badge-2) { --badge-color: #55a8ff; --badge-accent: #50d9e8; }
.completion-card:has(.badge-3) { --badge-color: #a979ff; --badge-accent: #55a8ff; }
.completion-card:has(.badge-4) { --badge-color: #ff5fa2; --badge-accent: #a979ff; }
.completion-card:has(.badge-5) { --badge-color: #ff9c55; --badge-accent: #ffcf6b; }
.completion-card:has(.badge-6) { --badge-color: #50d9e8; --badge-accent: #55a8ff; }
.completion-card:has(.badge-7) { --badge-color: #ff77c1; --badge-accent: #a979ff; }
.completion-card:has(.badge-8) { --badge-color: #ffd36b; --badge-accent: #ff5fa2; }

.completion-label {
  margin-bottom: 10px;
}

.badge-unlock-hero {
  position: relative;
  width: 185px;
  margin: 0 auto 8px;
  animation: badge-arrive 720ms cubic-bezier(.2, .9, .25, 1.15) both;
}

.badge-unlock-hero .badge-art {
  width: 100%;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--badge-color) 42%, transparent));
}

.badge-unlocked-label {
  margin: 3px 0 5px !important;
  color: var(--badge-color) !important;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .2em;
}

.completion-card h1 {
  margin-bottom: 5px;
}

.completion-skill {
  margin-bottom: 14px;
}

.completion-card .you-can-now {
  margin-top: 16px;
  margin-bottom: 18px;
}

.badge-particles {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 270px;
  height: 170px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.badge-particles i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--badge-color);
  opacity: 0;
  animation: particle-pop 900ms 240ms ease-out both;
}

.badge-particles i:nth-child(1) { --x: -105px; --y: -52px; transform: rotate(18deg); }
.badge-particles i:nth-child(2) { --x: 98px; --y: -62px; transform: rotate(45deg); }
.badge-particles i:nth-child(3) { --x: -122px; --y: 28px; }
.badge-particles i:nth-child(4) { --x: 116px; --y: 25px; transform: rotate(28deg); }
.badge-particles i:nth-child(5) { --x: -70px; --y: 68px; transform: rotate(62deg); }
.badge-particles i:nth-child(6) { --x: 76px; --y: 72px; }

.final-completion {
  border-color: rgba(255,211,107,.4);
  box-shadow: 0 24px 80px rgba(255,211,107,.12);
}

.final-completion .badge-unlock-hero {
  width: 220px;
}

@keyframes badge-arrive {
  0% { opacity: 0; transform: scale(.52) rotate(-7deg); }
  62% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes particle-pop {
  0% { opacity: 0; translate: 0 0; scale: .4; }
  25% { opacity: 1; }
  100% { opacity: 0; translate: var(--x) var(--y); scale: 1; }
}

.certificate-badges .certificate-badge {
  width: 42px;
  height: 42px;
  border: 0;
  color: #7952ca;
}

.certificate-badge svg {
  width: 100%;
  height: 100%;
}

.certificate-badge .badge-shell {
  fill: rgba(121,82,202,.05);
  stroke: #7952ca;
  stroke-width: 3;
}

.certificate-badge .badge-ring,
.certificate-badge .badge-symbol,
.certificate-badge .badge-segment {
  stroke: #7952ca;
}

.certificate-badge .badge-symbol.fill,
.certificate-badge .badge-segment.three,
.certificate-badge .badge-segment.five {
  fill: #7952ca;
}

.certificate-badge .badge-text {
  fill: #7952ca;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .main-content {
    padding-inline: 28px;
  }

  .teaching-card {
    grid-template-columns: 1fr;
  }

  .lesson-active .teaching-card:has(.teaching-visual) {
    grid-template-rows: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .teaching-visual {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gig-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notes-card {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: 290px;
    box-shadow: 20px 0 60px rgba(0,0,0,.5);
    transition: transform 200ms ease;
  }

  .sidebar-is-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: block;
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.5rem;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 15;
    display: none;
    inset: 0;
    border: 0;
    background: rgba(0,0,0,.65);
  }

  .sidebar-is-open .sidebar-scrim {
    display: block;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(10,13,20,.9);
    backdrop-filter: blur(14px);
    font-size: .76rem;
    letter-spacing: .12em;
  }

  .menu-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
  }

  .mobile-progress {
    color: var(--mint);
    font-size: .7rem;
    font-weight: 900;
  }

  .main-content {
    min-height: calc(100vh - 60px);
    padding-top: 28px;
  }

  .main-content.lesson-active {
    height: calc(100dvh - 60px);
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .mission-card {
    grid-template-columns: auto 1fr;
  }

  .mission-card .button {
    grid-column: 1 / -1;
  }

  .journey {
    overflow-x: auto;
    padding-bottom: 12px;
    grid-template-columns: repeat(8, 120px);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-stage .controller {
    min-width: 680px;
  }

  .guide-stage {
    overflow-x: auto;
  }

  .gig-grid {
    grid-template-columns: 1fr;
  }

  .notes-card {
    grid-column: auto;
  }
}

@media (max-width: 650px) {
  .welcome-screen {
    padding: 18px;
  }

  .welcome-card {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .input-action {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .input-action .button {
    margin-top: 7px;
    grid-column: 1 / -1;
  }

  .equipment-strip {
    flex-wrap: wrap;
  }

  .main-content {
    padding: 24px 16px 50px;
  }

  .main-content.lesson-active {
    height: auto;
    min-height: calc(100dvh - 60px);
    overflow: visible;
  }

  .lesson-active .lesson-page {
    display: block;
    height: auto;
  }

  .lesson-active .teaching-card {
    min-height: 620px;
    margin: 12px 0;
  }

  .home-hero {
    min-height: 250px;
  }

  .hero-disc {
    position: absolute;
    right: 20px;
    bottom: -25px;
    opacity: .55;
  }

  .mission-card {
    padding: 20px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .achievement-grid,
  .profile-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .teaching-card {
    min-height: 0;
  }

  .teaching-copy {
    padding: 28px 22px;
  }

  .teaching-visual {
    overflow-x: auto;
    padding: 20px 14px;
  }

  .controller-lesson-wrap {
    min-width: 600px;
  }

  .step-controls {
    grid-template-columns: 1fr 1fr;
  }

  .step-controls > span {
    display: none;
  }

  .challenge-card {
    padding: 38px 20px 25px;
  }

  .challenge-question > div,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .requirement-status {
    grid-template-columns: 1fr;
  }

  .requirement-status > i {
    width: 1px;
    height: 15px;
    margin-left: 16px;
  }

  .video-card {
    grid-template-columns: auto 1fr;
  }

  .video-card > b {
    grid-column: 2;
  }

  .quiz-header,
  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-orbit {
    width: 90px;
    height: 90px;
  }

  .quiz-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-table-card {
    padding: 18px 12px;
  }

  .gig-mode {
    padding: 20px 15px 50px;
  }

  .gig-header {
    gap: 10px;
    grid-template-columns: 1fr auto;
  }

  .gig-brand {
    justify-self: end;
  }

  .live-pill {
    display: none;
  }

  .gig-hero {
    padding-top: 40px;
  }

  .certificate-view {
    padding: 12px;
  }

  .certificate-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .certificate {
    padding: 7px;
  }

  .certificate-border {
    min-height: 630px;
    padding: 38px 18px;
  }

  .certificate-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .certificate-footer > div:first-child,
  .certificate-footer > div:last-child {
    text-align: center;
  }

  .certificate-seal {
    margin: 0 auto;
  }
}

@media (max-width: 1180px) {
  .serato-guide-layout {
    grid-template-columns: 1fr;
  }

  .serato-region-explainer {
    grid-template-columns: auto 1fr;
  }

  .lesson-active .serato-screen {
    min-height: 205px;
  }
}

@media (max-width: 860px) {
  .serato-guide-stage {
    overflow-x: auto;
  }

  .serato-guide-stage .serato-screen {
    min-width: 760px;
  }

  .serato-ignore {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .equipment-switcher {
    position: sticky;
    left: 0;
    width: min(100%, 560px);
  }

  .serato-context {
    min-width: 560px;
  }

  .hands-eyes-ears > div {
    grid-template-columns: 46px 1fr;
  }

  .serato-guide-stage,
  .serato-region-explainer,
  .serato-ignore {
    padding: 15px;
    border-radius: 20px;
  }

  .serato-help-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 8mm;
  }

  body {
    background: #fff !important;
  }

  .no-print {
    display: none !important;
  }

  .certificate-view {
    min-height: 0;
    padding: 0;
    background: #fff;
  }

  .certificate {
    width: 100%;
    padding: 0;
    box-shadow: none;
  }

  .certificate-border {
    min-height: 180mm;
  }
}
