/* YouType-style English output practice — dark recall stage */

.yt-hero {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #1a1d21 0%, #0e1114 60%, #12161a 100%);
  color: #e8eaed;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.yt-hero h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
}
.yt-hero p { margin: 0; opacity: 0.85; line-height: 1.5; font-size: 0.92rem; }
.yt-pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.yt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.yt-video-slot {
  margin: 0 0 1.2rem;
  padding: 0.85rem;
  border: 1px dashed rgba(74, 222, 128, 0.35);
  border-radius: 16px;
  background: #f4f7f5;
}
.yt-video-slot h3 { margin: 0 0 0.45rem; color: #1a1d21; font-size: 0.95rem; }
.yt-video-slot p { margin: 0 0 0.7rem; color: #4b5563; font-size: 0.82rem; line-height: 1.45; }
.yt-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0e1114;
  display: grid;
  place-items: center;
  color: #86efac;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.yt-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.yt-video-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(26, 29, 33, 0.14);
  color: #1a1d21;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

/* —— Live practice board (matches @youtypejp app look) —— */
.yt-board {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0e1114;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 50px rgba(8, 10, 12, 0.35);
  min-height: 420px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.yt-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.yt-progress-fill {
  height: 100%;
  width: 0%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
  transition: width 0.28s ease;
}

.yt-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.35rem;
}
.yt-counter {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(243, 244, 246, 0.72);
  font-variant-numeric: tabular-nums;
}
.yt-top-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.yt-modes {
  display: flex;
  gap: 0.25rem;
  padding: 0.18rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}
.yt-modes button {
  border: none;
  background: transparent;
  color: rgba(243, 244, 246, 0.55);
  border-radius: 8px;
  padding: 0.38rem 0.7rem;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.yt-modes button.is-active {
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
}
.yt-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(243, 244, 246, 0.7);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.yt-icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.yt-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2.2rem 3.5rem 3.4rem;
  min-height: 300px;
}

.yt-prompt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 560px;
  width: 100%;
}
.yt-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #1a1f24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 2rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-prompt-col {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 0.85rem;
}
.yt-meaning {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: left;
}

.yt-type-line {
  position: relative;
  min-height: 2.1rem;
}
.yt-mirror {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.35rem 0 0.55rem;
}
.yt-ok { color: #4ade80; }
.yt-bad { color: #fb7185; }
.yt-extra { color: #fda4af; }
.yt-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid rgba(248, 250, 252, 0.85);
  border-radius: 0;
  padding: 0.35rem 0 0.55rem;
  font-size: 1.05rem;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  background: transparent;
  color: transparent;
  caret-color: #4ade80;
  outline: none;
  letter-spacing: 0.02em;
}
.yt-input::placeholder { color: rgba(248, 250, 252, 0.28); }
.yt-input:focus {
  border-bottom-color: #4ade80;
  box-shadow: none;
}

.yt-heard {
  min-height: 2.1rem;
  padding: 0.45rem 0 0.55rem;
  border-bottom: 1.5px solid rgba(248, 250, 252, 0.45);
  color: rgba(248, 250, 252, 0.85);
  font-size: 1.02rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.yt-speak-btn {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.yt-speak-btn:hover { background: rgba(74, 222, 128, 0.2); }

.yt-answer {
  margin-top: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fcd34d;
  font-weight: 600;
  font-size: 0.92rem;
}

.yt-status {
  margin-top: 0.75rem;
  min-height: 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(243, 244, 246, 0.45);
  text-align: left;
}
.yt-status[data-kind="ok"] { color: #4ade80; }
.yt-status[data-kind="bad"] { color: #fb7185; }
.yt-status[data-kind="warn"] { color: #fbbf24; }

.yt-next-fab {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.28);
  font-size: 2.4rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}
.yt-next-fab:hover {
  color: rgba(248, 250, 252, 0.85);
  transform: translateY(-50%) translateX(2px);
}

.yt-shortcuts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  padding: 0 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(243, 244, 246, 0.38);
}
.yt-shortcuts kbd {
  display: inline-block;
  padding: 0.12rem 0.35rem;
  margin-right: 0.28rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-family: inherit;
  font-size: 0.65rem;
  color: rgba(243, 244, 246, 0.7);
}

.yt-actions-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.yt-method {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}
.yt-method-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #f6f7f8;
  border: 1px solid rgba(26, 29, 33, 0.08);
}
.yt-method-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a1d21;
  color: #4ade80;
  font-weight: 800;
}
.yt-method-step strong { display: block; margin-bottom: 0.15rem; color: #0e1114; }
.yt-method-step span { color: #4b5563; font-size: 0.88rem; line-height: 1.45; }

@media (max-width: 720px) {
  .yt-stage { padding: 1.6rem 1.1rem 3.6rem; }
  .yt-prompt-row { flex-direction: column; text-align: center; }
  .yt-meaning { text-align: center; }
  .yt-prompt-col { width: 100%; }
  .yt-status { text-align: center; }
  .yt-next-fab {
    right: 0.35rem;
    font-size: 1.9rem;
    height: 56px;
  }
  .yt-board-top { padding: 0.65rem 0.75rem 0.25rem; }
  .yt-shortcuts { gap: 0.55rem 0.85rem; font-size: 0.62rem; }
}

/* —— Full-screen Explore app (next to Tug of War) —— */
html:has(.yt-app-body),
.yt-app-body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #0e1114;
  overflow: hidden;
}
.yt-app-body {
  color: #f3f4f6;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.yt-app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 3px auto 1fr;
  background: #0e1114;
  color: #f3f4f6;
  outline: none;
}
.yt-app .yt-progress-track {
  height: 3px;
}
.yt-app-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem clamp(1rem, 2.5vw, 1.75rem) 0.35rem;
  flex-wrap: wrap;
}
.yt-back {
  color: rgba(243, 244, 246, 0.55);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}
.yt-back:hover {
  color: #86efac;
  background: rgba(74, 222, 128, 0.1);
}
.yt-stage-app {
  min-height: 0;
  height: 100%;
  padding: clamp(1.5rem, 6vh, 4rem) clamp(1.5rem, 8vw, 6rem) clamp(3.5rem, 8vh, 5rem);
}
.yt-app .yt-prompt-row {
  max-width: min(720px, 92vw);
  gap: 1.35rem;
}
.yt-app .yt-thumb {
  width: clamp(88px, 12vw, 128px);
  height: clamp(88px, 12vw, 128px);
  border-radius: 16px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}
.yt-app .yt-meaning {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 600;
}
.yt-app .yt-input,
.yt-app .yt-mirror,
.yt-app .yt-heard {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}
.yt-app .yt-type-line {
  min-height: 2.6rem;
}
.yt-app .yt-next-fab {
  right: clamp(0.5rem, 2vw, 1.5rem);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  width: 56px;
  height: 88px;
}
.yt-app .yt-shortcuts {
  bottom: clamp(1rem, 3vh, 1.75rem);
  font-size: 0.75rem;
  gap: 1rem 1.6rem;
}
.yt-app .yt-counter {
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .yt-app-chrome { padding: 0.65rem 0.85rem 0.25rem; }
  .yt-stage-app { padding: 1.25rem 1rem 4rem; }
  .yt-app .yt-prompt-row { flex-direction: column; text-align: center; }
  .yt-app .yt-meaning { text-align: center; }
  .yt-app .yt-status { text-align: center; }
}

/* —— Reel-matched layout (timer, chips, purple active word, dock) —— */
.yt-app-v2 {
  grid-template-rows: 3px auto 1fr;
}
.yt-app-chrome-v2 {
  padding: 0.7rem clamp(1rem, 2.5vw, 2rem) 0.4rem;
}
.yt-chrome-left,
.yt-chrome-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.yt-lesson-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(243, 244, 246, 0.72);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.yt-timer {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  min-width: 6.5rem;
  text-align: right;
}
.yt-stage-v2 {
  display: grid;
  grid-template-rows: 1fr auto auto;
  place-items: center;
  padding: clamp(1rem, 4vh, 2.5rem) clamp(1rem, 5vw, 3rem) clamp(1rem, 3vh, 1.5rem);
}
.yt-center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(860px, 94vw);
  text-align: center;
  min-height: 0;
}
.yt-thumb-float {
  width: clamp(72px, 10vw, 110px);
  height: clamp(72px, 10vw, 110px);
  border-radius: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.25rem;
}
.yt-word-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 100%;
}
.yt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: #1a1f24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.yt-chip.is-done {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.35);
}
.yt-chip.is-active {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.35);
}
.yt-meaning-v2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.4;
  max-width: 28ch;
}
.yt-type-panel-v2,
.yt-speak-panel-v2 {
  width: 100%;
  max-width: 720px;
}
.yt-live-type {
  min-height: 2.8rem;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.45;
  letter-spacing: 0.01em;
  word-break: break-word;
}
.yt-live-type .yt-w {
  display: inline-block;
  margin: 0 0.18em 0.12em 0;
  border-bottom: 3px solid transparent;
  padding-bottom: 0.08em;
}
.yt-live-type .yt-w.is-ok { color: #4ade80; }
.yt-live-type .yt-w.is-bad { color: #fb7185; }
.yt-live-type .yt-w.is-active {
  color: #f8fafc;
  border-bottom-color: #a855f7;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.28);
}
.yt-live-type .yt-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: #a855f7;
  vertical-align: -0.12em;
  animation: ytBlink 1s steps(1) infinite;
}
@keyframes ytBlink {
  50% { opacity: 0; }
}
.yt-type-line-v2 {
  margin-top: 0.35rem;
  max-width: 100%;
}
.yt-input-v2 {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(248, 250, 252, 0.88);
  border-radius: 0;
  padding: 0.45rem 0 0.65rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-family: inherit;
  background: transparent;
  color: transparent;
  caret-color: #a855f7;
  outline: none;
}
.yt-input-v2:focus {
  border-bottom-color: #a855f7;
}
.yt-heard-v2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  color: #f8fafc;
  border-bottom: 2px solid rgba(248, 250, 252, 0.45);
  padding-bottom: 0.65rem;
  min-height: 2.8rem;
}
.yt-dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.5rem 0.75rem;
}
.yt-dock-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #171b20;
  color: rgba(248, 250, 252, 0.78);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 4.5rem;
}
.yt-dock-btn:hover {
  background: #22272e;
  color: #fff;
}
.yt-dock-next {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
  min-width: 5.5rem;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
.yt-dock-next:hover {
  background: rgba(74, 222, 128, 0.22);
  color: #bbf7d0;
}
.yt-shortcuts-v2 {
  position: static;
  padding-bottom: 0.35rem;
  opacity: 0.85;
}
.yt-app-v2 .yt-status {
  text-align: center;
  margin-top: 0.15rem;
}
.yt-app-v2 .yt-answer {
  text-align: center;
  width: 100%;
  max-width: 520px;
}

.yt-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}
.yt-lang-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.45);
  padding: 0 0.35rem;
}
.yt-lang button {
  border: none;
  background: transparent;
  color: rgba(243, 244, 246, 0.55);
  border-radius: 8px;
  padding: 0.38rem 0.7rem;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
}
.yt-lang button.is-active {
  background: rgba(147, 197, 253, 0.18);
  color: #93c5fd;
}
.yt-lang-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.45);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .yt-app-chrome-v2 { gap: 0.45rem; }
  .yt-timer { min-width: 5.5rem; font-size: 0.85rem; }
  .yt-dock-btn { min-width: 0; flex: 1 1 auto; }
  .yt-lang-title { display: none; }
}

/* —— Videos options panel —— */
body.yt-videos-open { overflow: hidden; }
.yt-videos {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
}
.yt-videos[hidden] { display: none !important; }
.yt-videos-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}
.yt-videos-panel {
  position: relative;
  z-index: 1;
  margin: auto;
  width: min(980px, calc(100vw - 1.25rem));
  max-height: min(92vh, 920px);
  overflow: auto;
  border-radius: 18px;
  background: #12161a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  padding: 1rem 1.1rem 1.25rem;
  color: #e8eaed;
}
.yt-videos-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.yt-videos-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}
.yt-videos-head p {
  margin: 0;
  color: rgba(232, 234, 237, 0.62);
  font-size: 0.85rem;
}
.yt-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.yt-video-card {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1f24;
  color: inherit;
  border-radius: 14px;
  padding: 0.7rem;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.yt-video-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
  transform: translateY(-2px);
}
.yt-video-card.is-active {
  border-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35);
}
.yt-video-card.is-speak.is-active {
  border-color: #a855f7;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.4);
}
.yt-video-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #0e1114;
  display: block;
}
.yt-video-card-demo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1f2937, #0e1114);
  color: #86efac;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.yt-video-card strong {
  font-size: 0.95rem;
}
.yt-video-card span {
  font-size: 0.78rem;
  color: rgba(232, 234, 237, 0.65);
  line-height: 1.4;
}
.yt-video-card em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  color: #86efac;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.yt-video-card.is-speak em { color: #d8b4fe; }
.yt-video-card code {
  font-size: 0.72rem;
  color: #a7f3d0;
}
.yt-videos-player {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
}
.yt-videos-player[hidden] { display: none !important; }
.yt-videos-player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.yt-videos-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.yt-videos-player-actions a {
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.yt-videos-player-actions a:hover { text-decoration: underline; }
.yt-videos-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 58vh;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.yt-videos-frame iframe,
.yt-videos-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.yt-videos-fallback {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  padding: 0.65rem 0.8rem;
  background: rgba(0, 0, 0, 0.72);
  color: #e5e7eb;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .yt-videos-grid { grid-template-columns: 1fr; }
  .yt-videos-frame { max-height: 50vh; }
}

/* —— Exact YouType typing replica —— */
.yt-stage-replica {
  position: relative;
}
.yt-replica-stack {
  gap: 0.85rem;
  width: min(900px, 92vw);
}
.yt-side-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 72px;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.28);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.yt-side-prev { left: clamp(0.25rem, 1.5vw, 1rem); }
.yt-side-next { right: clamp(0.25rem, 1.5vw, 1rem); }
.yt-side-nav:hover { color: rgba(248, 250, 252, 0.9); }

.yt-guide-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.yt-guide-chips .yt-chip {
  background: #1c2128;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e8eaed;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  padding: 0.48rem 0.85rem;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}
.yt-guide-chips .yt-chip.is-active {
  border-color: rgba(217, 70, 239, 0.55);
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.35), 0 8px 18px rgba(0, 0, 0, 0.3);
  color: #f5d0fe;
}
.yt-guide-chips .yt-chip.is-done {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.3);
}
.yt-guide-chips .yt-chip.is-miss {
  color: #fda4af;
}

.yt-help-text {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem) !important;
  font-weight: 500 !important;
  color: rgba(248, 250, 252, 0.72) !important;
  max-width: 34ch;
  line-height: 1.45;
}
.yt-lang-meta-slim {
  margin-top: -0.25rem;
  font-size: 0.68rem;
  opacity: 0.75;
}

.yt-type-replica {
  width: 100%;
  max-width: 760px;
  margin-top: 0.35rem;
}
.yt-live-replica {
  min-height: 3.2rem;
  font-size: clamp(1.85rem, 4.4vw, 2.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em;
  text-align: center;
  color: #f8fafc;
}
.yt-live-replica .yt-w.is-done {
  color: #f8fafc;
}
.yt-live-replica .yt-w.is-bad {
  color: #fb7185;
}
.yt-live-replica .yt-w.is-active {
  color: #e879f9;
  border-bottom: none;
  box-shadow: none;
  text-shadow: 0 0 18px rgba(232, 121, 249, 0.35);
}
.yt-live-replica .yt-w.is-active .yt-ch.is-match {
  color: #e879f9;
}
.yt-live-replica .yt-w.is-active .yt-ch.is-bad {
  color: #fb7185;
}
.yt-live-replica .yt-w.is-active .yt-ch.is-extra {
  color: #fda4af;
}
.yt-live-replica .yt-w.is-empty {
  min-width: 0.4em;
}
.yt-live-replica .yt-gap {
  white-space: pre;
}
.yt-live-replica .yt-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  background: #e879f9;
  vertical-align: -0.12em;
  animation: ytBlink 1s steps(1) infinite;
}

.yt-baseline {
  margin-top: 0.55rem;
}
.yt-baseline .yt-input-v2 {
  border-bottom: 2px solid rgba(248, 250, 252, 0.9) !important;
  caret-color: transparent;
  text-align: center;
}
.yt-baseline .yt-input-v2:focus {
  border-bottom-color: #e879f9 !important;
}

.yt-dock-replica {
  margin-top: 0.5rem;
}
.yt-thumb-mini {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 1.15rem;
  display: inline-grid;
  place-items: center;
  background: #1a1f24;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .yt-side-nav { font-size: 2rem; width: 36px; }
  .yt-live-replica { font-size: clamp(1.45rem, 7vw, 1.9rem) !important; }
}

/* —— Immersive full-bleed video layout (screenshot replica) —— */
.yt-immersive {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #000;
  display: block;
  overflow: hidden;
}
.yt-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0b0f14;
}
.yt-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.yt-bg-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 22%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
.yt-bg-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  padding: 2rem;
}
.yt-bg-fallback span { font-size: 3rem; }
.yt-bg.is-empty .yt-bg-video { opacity: 0; }
.yt-bg:not(.is-empty) .yt-bg-fallback { display: none; }

.yt-float-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}
.yt-float-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.yt-immersive .yt-back,
.yt-immersive .yt-icon-btn,
.yt-immersive .yt-lang,
.yt-immersive .yt-modes {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.yt-immersive .yt-back {
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}
.yt-immersive .yt-side-nav {
  z-index: 6;
  color: rgba(255,255,255,0.45);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* —— Repeat / level meter —— */
.yt-rep-meter {
  position: absolute;
  left: 50%;
  top: clamp(3.6rem, 8vh, 4.8rem);
  transform: translateX(-50%);
  z-index: 5;
  width: min(420px, calc(100vw - 1.5rem));
  padding: 0.55rem 0.9rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "level dots"
    "label label";
  gap: 0.25rem 0.75rem;
  align-items: center;
  text-align: left;
}
.yt-rep-meter.is-bounce {
  animation: ytRepBounce 0.55s cubic-bezier(0.22, 1.4, 0.36, 1);
}
.yt-rep-level {
  grid-area: level;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #fff;
  white-space: nowrap;
}
.yt-rep-level-tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}
.yt-rep-level strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fbbf24;
  display: inline-block;
}
.yt-rep-level strong.is-pulse {
  animation: ytLevelPulse 0.7s ease;
}
.yt-rep-track {
  grid-area: dots;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}
.yt-rep-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 0 transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.yt-rep-dot.is-next {
  border-color: #e879f9;
  animation: ytDotPulse 1.2s ease-in-out infinite;
}
.yt-rep-dot.is-filled {
  background: linear-gradient(145deg, #f0abfc, #c026d3);
  border-color: #f5d0fe;
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.65);
}
.yt-rep-dot.is-pop {
  animation: ytDotPop 0.55s cubic-bezier(0.22, 1.5, 0.36, 1);
}
.yt-rep-label {
  grid-area: label;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}
.yt-rep-label b {
  color: #fde68a;
  font-weight: 800;
}
.yt-rep-ok {
  color: #86efac;
  font-weight: 700;
}

@keyframes ytRepBounce {
  0% { transform: translateX(-50%) scale(0.96); }
  55% { transform: translateX(-50%) scale(1.04); }
  100% { transform: translateX(-50%) scale(1); }
}
@keyframes ytDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 121, 249, 0.35); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(232, 121, 249, 0); transform: scale(1.08); }
}
@keyframes ytDotPop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@keyframes ytLevelPulse {
  0% { transform: scale(1); color: #fbbf24; }
  40% { transform: scale(1.18); color: #fef08a; }
  100% { transform: scale(1); color: #fbbf24; }
}

/* —— Celebration / fireworks —— */
.yt-celebrate {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.yt-celebrate[hidden] { display: none !important; }
.yt-fireworks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.yt-celebrate-banner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1.4rem;
  border-radius: 18px;
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  text-align: center;
  color: #fff;
  animation: ytBannerIn 0.55s cubic-bezier(0.22, 1.4, 0.36, 1);
}
.yt-celebrate-emoji {
  font-size: 1.8rem;
  animation: ytEmojiSpin 0.9s ease;
}
.yt-celebrate-banner strong {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
  color: #fde68a;
}
.yt-celebrate-banner span:last-child {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
@keyframes ytBannerIn {
  from { opacity: 0; transform: translateY(16px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ytEmojiSpin {
  from { transform: scale(0.4) rotate(-20deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Top word-guide board (screenshot: IPA + word + coloured line + gloss) */
.yt-guide-board {
  position: absolute;
  left: 50%;
  top: clamp(7.2rem, 16vh, 9rem);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.55rem 0.85rem;
  width: min(920px, calc(100vw - 1.5rem));
  padding: 0.85rem 1.1rem 0.95rem;
  border-radius: 16px;
  background: rgba(28, 32, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  text-align: center;
}
.yt-guide-col {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 3.2rem;
}
.yt-guide-ipa {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
  min-height: 0.85rem;
}
.yt-guide-word {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}
.yt-guide-word .yt-quote,
.yt-guide-word .yt-punct {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.yt-guide-line {
  display: block;
  width: 100%;
  max-width: 4.5rem;
  height: 3px;
  border-radius: 999px;
  margin-top: 0.05rem;
}
.yt-guide-gloss {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.25;
  max-width: 6.5rem;
}
.yt-guide-col.is-active .yt-guide-word {
  color: #f5d0fe;
}
.yt-guide-col.is-done .yt-guide-word {
  opacity: 0.92;
}

/* —— Meaning-review break (INTRO V) —— */
.yt-break {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: clamp(4.5rem, 12vh, 6rem) 1rem 4.5rem;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(30, 40, 60, 0.55), transparent 55%),
    rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(6px);
}
.yt-break[hidden] { display: none !important; }
.yt-break-card {
  width: min(820px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 20px;
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: ytBannerIn 0.45s ease both;
}
.yt-break-head { text-align: center; }
.yt-break-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fde68a;
  font-weight: 800;
}
.yt-break-title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  color: #fff;
}
.yt-break-copy {
  margin: 0.35rem auto 0;
  max-width: 36rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
.yt-break-player-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.yt-break-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 460px);
  object-fit: contain;
  background: #000;
}
.yt-break-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.55rem 0.65rem 0.7rem;
  background: rgba(12, 14, 18, 0.95);
}
.yt-break-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.yt-break-btn:hover { background: rgba(255, 255, 255, 0.14); }
.yt-break-seek {
  flex: 1 1 140px;
  min-width: 120px;
  accent-color: #e879f9;
  cursor: pointer;
}
.yt-break-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.yt-break-actions {
  display: flex;
  justify-content: center;
}
.yt-break-continue {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
}
.yt-break-continue:hover { filter: brightness(1.05); }
.yt-break-continue.is-ready {
  animation: ytDotPulse 1.2s ease-in-out infinite;
  box-shadow: 0 8px 28px rgba(251, 191, 36, 0.55);
}

.yt-immersive.is-break .yt-bg-video {
  filter: blur(10px) brightness(0.45);
  transform: scale(1.04);
}
.yt-immersive.is-break .yt-bg-shade {
  background: rgba(0, 0, 0, 0.45);
}
.yt-immersive.is-break .yt-guide-board,
.yt-immersive.is-break .yt-caption-card {
  display: none !important;
}

@media (max-width: 720px) {
  .yt-break {
    padding: clamp(5.5rem, 16vh, 7rem) 0.55rem 4.8rem;
    align-items: start;
  }
  .yt-break-card { padding: 0.8rem; }
  .yt-break-video { max-height: min(42vh, 320px); }
}

/* —— Lesson 1 complete —— */
.yt-lesson-done {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: clamp(4.5rem, 12vh, 6rem) 1rem 4.5rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(251, 191, 36, 0.18), transparent 50%),
    rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(8px);
}
.yt-lesson-done[hidden] { display: none !important; }
.yt-lesson-done-card {
  width: min(520px, 94vw);
  text-align: center;
  padding: 1.4rem 1.35rem 1.5rem;
  border-radius: 22px;
  background: rgba(18, 22, 30, 0.95);
  border: 1px solid rgba(253, 230, 138, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: ytBannerIn 0.5s ease both;
  color: #fff;
}
.yt-lesson-done-title {
  margin: 0.15rem 0 0.55rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
  color: #fde68a;
}
.yt-lesson-done-lead {
  margin: 0 auto 1rem;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.yt-lesson-done-lead strong { color: #fff; }
.yt-lesson-done-stats {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.35rem;
  text-align: left;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.yt-lesson-done-stats b { color: #fde68a; }
.yt-lesson-done-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.yt-lesson-done-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.yt-lesson-done-link:hover { color: #fff; }

.yt-immersive.is-lesson-done .yt-bg-video {
  filter: blur(12px) brightness(0.4);
  transform: scale(1.04);
}
.yt-immersive.is-lesson-done .yt-guide-board,
.yt-immersive.is-lesson-done .yt-caption-card,
.yt-immersive.is-lesson-done .yt-break {
  display: none !important;
}

.yt-caption-card {
  position: absolute;
  left: 50%;
  bottom: clamp(4.8rem, 10vh, 6.5rem);
  transform: translateX(-50%);
  z-index: 4;
  width: min(760px, calc(100vw - 1.5rem));
  padding: 0.95rem 1.25rem 0.85rem;
  border-radius: 16px;
  background: rgba(28, 32, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  text-align: center;
  overflow: hidden;
}
.yt-meaning-gold {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 700;
  color: #f6e05e;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.yt-caption-meta {
  margin: 0 0 0.65rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.68rem;
}
.yt-caption-type {
  position: relative;
  min-height: 2.6rem;
  padding-bottom: 0.35rem;
}
.yt-live-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.15rem 0.15rem;
  min-height: 2.4rem;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.yt-live-caption .yt-quote,
.yt-live-caption .yt-punct {
  display: inline-flex;
  align-items: flex-end;
  padding-bottom: 0.2em;
  color: #fff;
  font-weight: 700;
}
.yt-live-caption .yt-gap {
  display: inline-block;
  width: 0.55em;
  min-height: 1em;
}
.yt-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(var(--slot-ch, 4) * 0.62em);
  padding: 0 0.12em 0.22em;
  border-bottom: 2.5px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  position: relative;
}
.yt-slot.is-pending {
  min-height: 1.15em;
  color: transparent;
}
.yt-slot.is-active {
  border-bottom-color: transparent;
  color: #fff;
}
.yt-slot.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 5px;
  border-radius: 999px;
  background: #c026d3;
  box-shadow: 0 0 10px rgba(192, 38, 211, 0.55);
}
.yt-slot.is-done { color: #fff; }
.yt-slot.is-bad { color: #fda4af; border-bottom-color: #fb7185; }
.yt-slot .yt-ch.is-match { color: #fff; }
.yt-slot .yt-ch.is-bad { color: #fb7185; }
.yt-slot .yt-ch.is-extra { color: #fda4af; }
.yt-live-caption .yt-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  background: #fff;
  vertical-align: -0.1em;
  animation: ytBlink 1s steps(1) infinite;
}
.yt-caption-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.yt-caption-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #a855f7, #e879f9);
  box-shadow: 0 0 8px rgba(232, 121, 249, 0.45);
  transition: width 0.12s ease;
}
.yt-input-caption {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 1.2rem;
}
.yt-heard-caption {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 1.6rem;
  margin-bottom: 0.55rem;
}
.yt-answer-caption {
  margin-top: 0.55rem;
  background: rgba(251, 191, 36, 0.16);
}
.yt-status-caption {
  margin-top: 0.45rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  text-align: center;
  animation: ytBannerIn 0.35s ease;
}
.yt-status-caption[data-kind="ok"] { color: #86efac; }
.yt-status-caption[data-kind="bad"] { color: #fda4af; }
.yt-status-caption[data-kind="warn"] { color: #fde68a; }

.yt-progress-immersive {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.15rem;
  z-index: 5;
  height: 3px;
  background: rgba(255,255,255,0.12);
}
.yt-progress-immersive .yt-progress-fill {
  background: #e879f9;
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.55);
}

.yt-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  min-height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  background: rgba(12, 14, 18, 0.92);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  flex-wrap: wrap;
}
.yt-bottom-left,
.yt-bottom-center,
.yt-bottom-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.yt-bottom-left .yt-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fff;
}
.yt-score-pill {
  color: #f6ad55;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.yt-bottom-center kbd {
  display: inline-block;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  font-size: 0.68rem;
}
.yt-bar-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #e8eaed;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.yt-bar-btn:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 720px) {
  .yt-rep-meter {
    top: clamp(3.9rem, 11vh, 5.2rem);
    width: min(94vw, 420px);
    border-radius: 18px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "level"
      "dots"
      "label";
    text-align: center;
    justify-items: center;
  }
  .yt-rep-track { justify-content: center; }
  .yt-guide-board {
    top: clamp(9.5rem, 24vh, 12rem);
    gap: 0.4rem 0.5rem;
    padding: 0.7rem 0.75rem;
  }
  .yt-guide-gloss { display: none; }
  .yt-guide-ipa { font-size: 0.58rem; }
  .yt-caption-card {
    bottom: clamp(5.5rem, 14vh, 7rem);
    padding: 0.8rem 0.85rem 0.75rem;
  }
  .yt-bottom-center span:not(:has(button)) { display: none; }
  .yt-float-top { padding: 0.55rem 0.65rem; }
}

/* —— Step learning clip (YouType picture/video slot) —— */
.yt-step-media {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #151a20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.35rem;
}
.yt-step-media.is-empty {
  display: grid;
  place-items: center;
}
.yt-step-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  cursor: pointer;
}
.yt-step-media.is-empty .yt-step-video { display: none; }
.yt-step-replay {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.62);
  color: #e8eaed;
  cursor: pointer;
}
.yt-step-replay:hover { background: rgba(232, 121, 249, 0.35); color: #fff; }
.yt-step-media-fallback {
  color: rgba(248, 250, 252, 0.45);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}
.yt-videos-section-title {
  margin: 0.85rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 234, 237, 0.55);
}
.yt-videos-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.75rem;
  color: rgba(232, 234, 237, 0.65);
  font-size: 0.85rem;
}
.yt-videos-empty code { color: #86efac; }

/* —— Speed Typing modes chooser (colorful) —— */
.yt-modes-body {
  --yt-modes-ink: #0c1220;
  --yt-modes-gold: #ffd56a;
  --yt-modes-lime: #5dffb0;
  --yt-modes-sky: #5ec8ff;
  --yt-modes-coral: #ff7a59;
  --yt-modes-sun: #ffb020;
  margin: 0;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  color: #f7fafc;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 89, 0.34), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(94, 200, 255, 0.32), transparent 36%),
    radial-gradient(circle at 70% 78%, rgba(93, 255, 176, 0.22), transparent 40%),
    radial-gradient(circle at 24% 86%, rgba(255, 213, 106, 0.22), transparent 38%),
    linear-gradient(145deg, #07111f 0%, #123047 38%, #0f2a24 68%, #1a1430 100%);
}
.yt-modes-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.yt-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.75;
  animation: ytBlobFloat 12s ease-in-out infinite;
}
.yt-blob-a {
  width: 28vw;
  height: 28vw;
  min-width: 180px;
  min-height: 180px;
  left: -6vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.7), transparent 70%);
}
.yt-blob-b {
  width: 32vw;
  height: 32vw;
  min-width: 200px;
  min-height: 200px;
  right: -8vw;
  top: -4vh;
  background: radial-gradient(circle, rgba(94, 200, 255, 0.65), transparent 70%);
  animation-delay: -3s;
}
.yt-blob-c {
  width: 26vw;
  height: 26vw;
  min-width: 160px;
  min-height: 160px;
  right: 12vw;
  bottom: 4vh;
  background: radial-gradient(circle, rgba(93, 255, 176, 0.55), transparent 70%);
  animation-delay: -6s;
}
.yt-blob-d {
  width: 22vw;
  height: 22vw;
  min-width: 140px;
  min-height: 140px;
  left: 18vw;
  bottom: -6vh;
  background: radial-gradient(circle, rgba(255, 213, 106, 0.55), transparent 70%);
  animation-delay: -9s;
}
@keyframes ytBlobFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.08); }
}

.yt-modes-page {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.35rem 0 2.75rem;
}
.yt-modes-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.85rem;
}
.yt-modes-back {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.yt-modes-back:hover { background: rgba(255, 255, 255, 0.2); }
.yt-modes-back--inline {
  display: inline-flex;
  margin-top: 0.35rem;
}
.yt-modes-brand {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}
.yt-modes-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  background: linear-gradient(90deg, #ffd56a, #5dffb0, #5ec8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.yt-modes-main {
  position: relative;
  padding: 1.35rem 1.4rem 1.55rem;
  margin-bottom: 0.35rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 122, 89, 0.14), transparent 42%),
    linear-gradient(225deg, rgba(94, 200, 255, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.yt-modes-title {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.yt-modes-lead {
  margin: 0 0 1.7rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  font-size: 1.05rem;
}
.yt-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.yt-mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  min-height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.yt-mode-glow {
  position: absolute;
  inset: auto -20% -35% auto;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
.yt-mode-story {
  background:
    linear-gradient(155deg, rgba(18, 90, 70, 0.92) 0%, rgba(12, 48, 56, 0.9) 55%, rgba(10, 28, 40, 0.95) 100%);
  border-color: rgba(93, 255, 176, 0.35);
}
.yt-mode-story .yt-mode-glow {
  background: radial-gradient(circle, rgba(93, 255, 176, 0.7), transparent 70%);
}
.yt-mode-spelling {
  background:
    linear-gradient(155deg, rgba(18, 70, 120, 0.94) 0%, rgba(36, 40, 98, 0.88) 50%, rgba(70, 28, 58, 0.92) 100%);
  border-color: rgba(94, 200, 255, 0.38);
}
.yt-mode-spelling .yt-mode-glow {
  background: radial-gradient(circle, rgba(94, 200, 255, 0.7), transparent 70%);
  left: -15%;
  right: auto;
}
.yt-mode-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}
.yt-mode-story:hover {
  border-color: rgba(93, 255, 176, 0.7);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.38),
    0 0 36px rgba(93, 255, 176, 0.22);
}
.yt-mode-spelling:hover {
  border-color: rgba(94, 200, 255, 0.75);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.38),
    0 0 36px rgba(94, 200, 255, 0.22);
}
.yt-mode-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.yt-mode-story .yt-mode-tag {
  background: rgba(93, 255, 176, 0.18);
  color: #b8ffe0;
  border-color: rgba(93, 255, 176, 0.35);
}
.yt-mode-spelling .yt-mode-tag {
  background: rgba(94, 200, 255, 0.18);
  color: #c7ecff;
  border-color: rgba(94, 200, 255, 0.4);
}
.yt-mode-card h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: #fff;
  font-weight: 900;
}
.yt-mode-card p {
  margin: 0;
  flex: 1;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  font-size: 0.98rem;
}
.yt-mode-go {
  margin-top: 0.75rem;
  font-weight: 800;
  font-size: 0.98rem;
}
.yt-mode-story .yt-mode-go { color: #5dffb0; }
.yt-mode-spelling .yt-mode-go { color: #5ec8ff; }

.yt-mode-empty {
  max-width: 34rem;
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(94, 200, 255, 0.35);
  background:
    linear-gradient(145deg, rgba(18, 70, 120, 0.85), rgba(40, 28, 70, 0.88));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
.yt-mode-empty strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #5ec8ff;
  font-size: 1.1rem;
}
.yt-mode-empty p {
  margin: 0 0 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}
.yt-mode-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.yt-mode-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd56a, #ff7a59);
  color: #1a1020;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 122, 89, 0.28);
}
.yt-mode-primary:hover { filter: brightness(1.06); }
@media (max-width: 720px) {
  .yt-modes-grid { grid-template-columns: 1fr; }
  .yt-modes-page { width: min(100% - 1.25rem, 940px); }
  .yt-blob { opacity: 0.55; }
}

/* —— Spelling and Typing (grades + immersive dictation) —— */
.sp-grade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}
.sp-grade-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 168px;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sp-grade-card:hover {
  transform: translateY(-4px) scale(1.01);
}
.sp-grade-glow {
  position: absolute;
  inset: auto -25% -40% auto;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
.sp-grade-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.sp-grade-card strong {
  font-size: 1.25rem;
  font-weight: 900;
}
.sp-grade-card span:not(.sp-grade-num):not(.sp-grade-glow) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.4;
  flex: 1;
}
.sp-grade-card em {
  font-style: normal;
  font-weight: 800;
  margin-top: 0.35rem;
}
.sp-tone-coral {
  background: linear-gradient(155deg, rgba(160, 55, 45, 0.95), rgba(40, 20, 35, 0.95));
  border-color: rgba(255, 122, 89, 0.45);
}
.sp-tone-coral .sp-grade-glow { background: radial-gradient(circle, rgba(255, 122, 89, 0.75), transparent 70%); }
.sp-tone-coral em { color: #ffb39f; }
.sp-tone-gold {
  background: linear-gradient(155deg, rgba(140, 95, 20, 0.95), rgba(35, 28, 18, 0.95));
  border-color: rgba(255, 213, 106, 0.45);
}
.sp-tone-gold .sp-grade-glow { background: radial-gradient(circle, rgba(255, 213, 106, 0.75), transparent 70%); }
.sp-tone-gold em { color: #ffe08a; }
.sp-tone-lime {
  background: linear-gradient(155deg, rgba(18, 95, 70, 0.95), rgba(12, 35, 40, 0.95));
  border-color: rgba(93, 255, 176, 0.4);
}
.sp-tone-lime .sp-grade-glow { background: radial-gradient(circle, rgba(93, 255, 176, 0.7), transparent 70%); }
.sp-tone-lime em { color: #5dffb0; }
.sp-tone-sky {
  background: linear-gradient(155deg, rgba(20, 75, 125, 0.95), rgba(20, 30, 60, 0.95));
  border-color: rgba(94, 200, 255, 0.42);
}
.sp-tone-sky .sp-grade-glow { background: radial-gradient(circle, rgba(94, 200, 255, 0.7), transparent 70%); }
.sp-tone-sky em { color: #5ec8ff; }
.sp-tone-violet {
  background: linear-gradient(155deg, rgba(70, 40, 120, 0.95), rgba(25, 18, 50, 0.95));
  border-color: rgba(192, 132, 252, 0.45);
}
.sp-tone-violet .sp-grade-glow { background: radial-gradient(circle, rgba(192, 132, 252, 0.7), transparent 70%); }
.sp-tone-violet em { color: #d8b4fe; }
.sp-tone-rose {
  background: linear-gradient(155deg, rgba(120, 35, 75, 0.95), rgba(30, 15, 40, 0.95));
  border-color: rgba(244, 114, 182, 0.45);
}
.sp-tone-rose .sp-grade-glow { background: radial-gradient(circle, rgba(244, 114, 182, 0.7), transparent 70%); }
.sp-tone-rose em { color: #f9a8d4; }

.sp-hub[hidden] { display: none !important; }
.sp-board[hidden],
#spellingBoard[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body:not(.sp-practice-on) .sp-board {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.sp-practice-on .yt-modes-atmosphere { display: none; }
.sp-board {
  --sp-accent: #5ec8ff;
  background: #1a3a5c;
}
.sp-board.yt-immersive {
  background: transparent;
}
.sp-bg {
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 120, 80, 0.7), transparent 36%),
    radial-gradient(circle at 90% 10%, rgba(80, 200, 255, 0.65), transparent 38%),
    radial-gradient(circle at 75% 80%, rgba(80, 255, 170, 0.5), transparent 42%),
    radial-gradient(circle at 18% 85%, rgba(255, 210, 90, 0.55), transparent 40%),
    radial-gradient(circle at 50% 42%, rgba(200, 120, 255, 0.45), transparent 46%),
    radial-gradient(circle at 60% 20%, rgba(255, 100, 180, 0.35), transparent 34%),
    linear-gradient(145deg, #1c4a7a 0%, #1a6a78 25%, #2a4a8a 50%, #3a2a6a 75%, #1e3a6a 100%);
  overflow: hidden;
}
.sp-bg-aurora {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      rgba(255, 122, 89, 0.42),
      rgba(255, 213, 106, 0.36),
      rgba(93, 255, 176, 0.38),
      rgba(94, 200, 255, 0.42),
      rgba(192, 132, 252, 0.38),
      rgba(244, 114, 182, 0.36),
      rgba(255, 122, 89, 0.42)
    );
  filter: blur(36px);
  opacity: 0.78;
  animation: spAuroraSpin 18s linear infinite;
}
@keyframes spAuroraSpin {
  from { transform: rotate(0deg) scale(1.2); }
  to { transform: rotate(360deg) scale(1.2); }
}
.sp-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.9;
  animation: spOrbGrow 7s ease-in-out infinite;
}
.sp-orb-a {
  width: 42vw;
  height: 42vw;
  min-width: 240px;
  min-height: 240px;
  left: -10vw;
  top: 2vh;
  background: radial-gradient(circle, rgba(255, 110, 70, 0.95), rgba(255, 110, 70, 0.15) 55%, transparent 72%);
  animation-duration: 8s;
}
.sp-orb-b {
  width: 46vw;
  height: 46vw;
  min-width: 260px;
  min-height: 260px;
  right: -12vw;
  top: -8vh;
  background: radial-gradient(circle, rgba(70, 200, 255, 0.92), rgba(70, 200, 255, 0.15) 55%, transparent 72%);
  animation-delay: -2s;
  animation-duration: 10s;
}
.sp-orb-c {
  width: 34vw;
  height: 34vw;
  min-width: 200px;
  min-height: 200px;
  right: 8vw;
  bottom: 2vh;
  background: radial-gradient(circle, rgba(70, 255, 170, 0.85), rgba(70, 255, 170, 0.12) 55%, transparent 72%);
  animation-delay: -4s;
  animation-duration: 9s;
}
.sp-orb-d {
  width: 30vw;
  height: 30vw;
  min-width: 180px;
  min-height: 180px;
  left: 12vw;
  bottom: -6vh;
  background: radial-gradient(circle, rgba(255, 210, 80, 0.88), rgba(255, 210, 80, 0.12) 55%, transparent 72%);
  animation-delay: -6s;
  animation-duration: 7.5s;
}
.sp-orb-e {
  width: 26vw;
  height: 26vw;
  min-width: 160px;
  min-height: 160px;
  left: 40%;
  top: 30%;
  background: radial-gradient(circle, rgba(200, 120, 255, 0.8), rgba(200, 120, 255, 0.12) 55%, transparent 72%);
  animation-delay: -1.5s;
  animation-duration: 11s;
}
@keyframes spOrbGrow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.88); opacity: 0.7; }
  50% { transform: translate3d(22px, -28px, 0) scale(1.28); opacity: 1; }
}
.sp-bg-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 50, 90, 0.08), rgba(25, 45, 85, 0.12) 45%, rgba(18, 35, 70, 0.28) 100%);
  pointer-events: none;
}
.sp-board .yt-bg-shade {
  background:
    linear-gradient(180deg, rgba(15, 40, 80, 0.12) 0%, transparent 28%, transparent 62%, rgba(12, 30, 60, 0.22) 100%);
}

/* Larger top chrome */
.sp-board .yt-float-top {
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}
.sp-board .yt-float-tools {
  gap: 0.55rem;
  align-items: center;
}
.sp-board button.yt-back,
.sp-board .yt-immersive .yt-back {
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.sp-board button.yt-back:hover {
  background: rgba(255, 255, 255, 0.22);
}
.sp-grade-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, rgba(94, 200, 255, 0.35), rgba(93, 255, 176, 0.22));
  border: 1px solid rgba(94, 200, 255, 0.5);
  box-shadow: 0 0 16px rgba(94, 200, 255, 0.2);
}
.sp-kind-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.35), rgba(244, 114, 182, 0.22));
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.2);
}
.sp-board .yt-icon-btn {
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.sp-hear-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 200, 255, 0.55);
  background: linear-gradient(135deg, rgba(30, 100, 150, 0.95), rgba(60, 45, 120, 0.92));
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.sp-hear-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 200, 255, 0.75);
}
.sp-hear-btn .sp-hear-ring {
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid rgba(94, 200, 255, 0.4);
  opacity: 0;
  pointer-events: none;
}
.sp-hear-btn.is-speaking {
  border-color: rgba(94, 200, 255, 0.9);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(94, 200, 255, 0.4);
}
.sp-hear-btn.is-speaking .sp-hear-ring {
  animation: spHearPulse 1.1s ease-out infinite;
  opacity: 1;
}

.sp-prompt-rail {
  position: absolute;
  top: 4.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 2rem));
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
.sp-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #ffd56a;
}
.sp-sentence {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  font-weight: 600;
}
.sp-blank {
  display: inline-block;
  min-width: 4.5ch;
  padding: 0 0.15em;
  border-bottom: 2px solid rgba(255, 213, 106, 0.7);
  color: rgba(255, 255, 255, 0.35);
  font-weight: 800;
}
.sp-blank.is-filled {
  color: #5dffb0;
  border-bottom-color: rgba(93, 255, 176, 0.8);
}

.sp-hear-fab {
  display: none !important;
}
.sp-hear-fab:hover { transform: none; }
.sp-hear-fab.is-speaking .sp-hear-ring { animation: none; }
.sp-hear-fab.is-speaking { box-shadow: none; }
.sp-hear-icon { font-size: 1.8rem; line-height: 1; }
.sp-hear-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
@keyframes spHearPulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.28); opacity: 0; }
}

.sp-caption {
  padding-top: 0.55rem;
  padding-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sp-speak-big {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
  padding: 0.85rem 1.45rem;
  min-width: min(280px, 78vw);
  min-height: 3.6rem;
  border-radius: 999px;
  border: 2px solid rgba(94, 200, 255, 0.55);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(135deg, rgba(28, 110, 160, 0.95), rgba(55, 40, 120, 0.92));
  color: #fff;
  cursor: pointer;
  font: inherit;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(94, 200, 255, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}
.sp-speak-big:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(94, 200, 255, 0.85);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(94, 200, 255, 0.35);
}
.sp-speak-big-ring {
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 2px solid rgba(94, 200, 255, 0.4);
  opacity: 0;
  pointer-events: none;
}
.sp-speak-big.is-speaking {
  border-color: rgba(94, 200, 255, 0.95);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(94, 200, 255, 0.45);
}
.sp-speak-big.is-speaking .sp-speak-big-ring {
  opacity: 1;
  animation: spHearPulse 1.1s ease-out infinite;
}
.sp-speak-big-icon {
  font-size: 1.85rem;
  line-height: 1;
}
.sp-speak-big-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: left;
}
.sp-speak-big-text strong {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.sp-speak-big-text em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}
.sp-speak-big-text kbd {
  display: inline-block;
  padding: 0.05rem 0.28rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
}
.sp-caption .yt-meaning-gold {
  margin: 0 0 0.45rem;
  text-align: center;
}
.sp-type-panel {
  min-height: 4.2rem;
  padding-bottom: 0.55rem;
}
.sp-word-stage {
  transition: transform 0.45s cubic-bezier(0.22, 1.1, 0.36, 1), opacity 0.35s ease;
}
.sp-word-stage.is-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.sp-word-stage.is-in {
  animation: spWordIn 0.5s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.sp-word-stage.is-out {
  animation: spWordOut 0.45s ease both;
}
@keyframes spWordIn {
  from { opacity: 0; transform: translateX(42px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes spWordOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(-36px) scale(0.96); }
}

/* YouType reel text-area effects (match Story Typing + amplify) */
.sp-live.yt-live-replica,
.sp-board .sp-live {
  min-height: 3.4rem;
  font-size: clamp(1.85rem, 4.6vw, 2.85rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  gap: 0.2rem 0.25rem;
}
.sp-board .sp-live .yt-slot {
  min-width: calc(var(--slot-ch, 4) * 0.68em);
  padding: 0 0.18em 0.28em;
  border-bottom-width: 3px;
  border-bottom-color: rgba(255, 255, 255, 0.95);
}
.sp-board .sp-live .yt-slot.is-active {
  border-bottom-color: transparent;
}
.sp-board .sp-live .yt-slot.is-active::after,
.sp-board .sp-live .sp-active-glow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d946ef, #c026d3 45%, #a21caf);
  box-shadow:
    0 0 14px rgba(217, 70, 239, 0.85),
    0 0 28px rgba(192, 38, 211, 0.45);
  animation: spPurplePulse 1.15s ease-in-out infinite;
}
@keyframes spPurplePulse {
  0%, 100% {
    transform: scaleX(1);
    opacity: 1;
    box-shadow:
      0 0 14px rgba(217, 70, 239, 0.85),
      0 0 28px rgba(192, 38, 211, 0.45);
  }
  50% {
    transform: scaleX(1.02);
    opacity: 0.92;
    box-shadow:
      0 0 22px rgba(232, 121, 249, 1),
      0 0 40px rgba(192, 38, 211, 0.65);
  }
}
.sp-board .sp-live .yt-ch.is-match {
  color: #f0abfc;
  text-shadow: 0 0 16px rgba(232, 121, 249, 0.55);
}
.sp-board .sp-live .yt-ch.is-bad {
  color: #fb7185;
  text-shadow: 0 0 10px rgba(251, 113, 133, 0.45);
}
.sp-board .sp-live .yt-ch.is-extra {
  color: #fda4af;
}
.sp-board .sp-live .yt-slot.is-done,
.sp-board .sp-live .yt-slot.is-clear {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.95);
  animation: spClearFlash 0.55s cubic-bezier(0.22, 1.4, 0.36, 1);
}
.sp-board .sp-live .yt-slot.is-done::after {
  display: none;
}
@keyframes spClearFlash {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(1.06); filter: brightness(1.35); text-shadow: 0 0 24px rgba(255, 255, 255, 0.55); }
  100% { transform: scale(1); filter: brightness(1); }
}
.sp-pop {
  display: inline-block;
  animation: spLetterPop 0.22s cubic-bezier(0.22, 1.55, 0.36, 1);
}
@keyframes spLetterPop {
  0% { transform: translateY(0.28em) scale(0.55); opacity: 0.2; }
  70% { transform: translateY(-0.06em) scale(1.12); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.sp-hit {
  position: relative;
}
.sp-hit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 171, 252, 0.95), transparent 70%);
  animation: spHitSpark 0.45s ease-out forwards;
  pointer-events: none;
}
@keyframes spHitSpark {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; }
}
.sp-miss {
  animation: spLetterPop 0.22s cubic-bezier(0.22, 1.55, 0.36, 1), spMissShake 0.28s ease;
}
@keyframes spMissShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.sp-board .sp-live .yt-caret {
  width: 3px;
  height: 1.05em;
  background: #e879f9;
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.9);
  animation: ytBlink 0.9s steps(1) infinite;
}
.sp-board .sp-live .yt-quote,
.sp-board .sp-live .yt-punct {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}
.sp-board .yt-caption-progress i {
  background: linear-gradient(90deg, #a855f7, #e879f9, #f0abfc);
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.55);
}

/* —— Correct-answer celebration (reel-style fun) —— */
.sp-success-flash {
  position: absolute;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(253, 230, 138, 0.35), transparent 42%),
    radial-gradient(circle at 50% 55%, rgba(232, 121, 249, 0.28), transparent 50%);
  opacity: 0;
}
.sp-success-flash[hidden] { display: none !important; }
.sp-success-flash.is-on {
  display: block !important;
  animation: spFlashPop 0.5s ease-out forwards;
}
@keyframes spFlashPop {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

.sp-burst {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 0;
  height: 0;
  z-index: 36;
  pointer-events: none;
}
.sp-burst[hidden] { display: none !important; }
.sp-burst.is-on { display: block !important; }
.sp-burst i {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}
.sp-burst.is-on i {
  animation: spConfetti 0.85s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}
.sp-burst i.is-round {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
@keyframes spConfetti {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot));
  }
}

.sp-praise {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translate(-50%, -20%) scale(0.7);
  z-index: 37;
  pointer-events: none;
  opacity: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(244, 114, 182, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(251, 191, 36, 0.35);
  color: #1a1020;
}
.sp-praise[hidden] { display: none !important; }
.sp-praise strong {
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.sp-praise.is-on {
  display: block !important;
  animation: spPraiseIn 0.85s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}
.sp-praise.is-big strong {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
}
.sp-praise.is-big {
  background: linear-gradient(135deg, #fde68a, #f472b6 55%, #c084fc);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(244, 114, 182, 0.45);
}
@keyframes spPraiseIn {
  0% { opacity: 0; transform: translate(-50%, 10%) scale(0.55); }
  35% { opacity: 1; transform: translate(-50%, -30%) scale(1.12); }
  70% { opacity: 1; transform: translate(-50%, -40%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -55%) scale(0.95); }
}

.sp-word-stage.is-win {
  animation: spWordWin 0.7s cubic-bezier(0.22, 1.45, 0.36, 1) both;
}
@keyframes spWordWin {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1.06); }
}
.sp-live.sp-win-glow .yt-slot {
  color: #fff !important;
  text-shadow:
    0 0 18px rgba(253, 230, 138, 0.85),
    0 0 36px rgba(232, 121, 249, 0.55);
  border-bottom-color: #fde68a !important;
  animation: spClearFlash 0.55s cubic-bezier(0.22, 1.4, 0.36, 1);
}
.sp-board.sp-correct-beat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 34;
  pointer-events: none;
  border: 3px solid rgba(253, 230, 138, 0.55);
  box-shadow: inset 0 0 60px rgba(232, 121, 249, 0.18);
  animation: spBeatRing 0.7s ease-out forwards;
}
@keyframes spBeatRing {
  0% { opacity: 0; transform: scale(0.98); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.01); }
}

.yt-score-pill.sp-score-pop {
  animation: spScorePop 0.55s cubic-bezier(0.22, 1.5, 0.36, 1);
  background: linear-gradient(135deg, #fde68a, #f472b6);
  color: #1a1020;
}
@keyframes spScorePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.yt-celebrate.is-big .yt-celebrate-banner {
  background: linear-gradient(145deg, rgba(40, 20, 60, 0.88), rgba(20, 30, 50, 0.9));
  border-color: rgba(253, 230, 138, 0.45);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(232, 121, 249, 0.3);
}
.yt-celebrate.is-big .yt-celebrate-banner strong {
  color: #fde68a;
  text-shadow: 0 0 20px rgba(253, 230, 138, 0.45);
}
.yt-celebrate.is-big .yt-celebrate-emoji {
  font-size: 2.3rem;
  animation: ytEmojiSpin 0.7s ease, spEmojiBounce 0.9s ease;
}
@keyframes spEmojiBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.25) rotate(-8deg); }
  70% { transform: scale(1.1) rotate(6deg); }
}

.yt-lesson-done-actions .yt-lesson-done-link,
button.yt-lesson-done-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
}
button.yt-lesson-done-link:hover,
.yt-lesson-done-actions .yt-lesson-done-link:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .sp-grade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sp-grade-grid { grid-template-columns: 1fr; }
  .sp-board .sp-live {
    font-size: clamp(1.45rem, 7vw, 1.95rem) !important;
  }
  .sp-prompt-rail { top: 4.1rem; }
}

/* —— Kind picker (Words / Sentences) —— */
.sp-step-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.sp-kind-step { margin-bottom: 1.5rem; }
.sp-kind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}
.sp-kind-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-height: 150px;
  padding: 1.2rem 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  background: linear-gradient(155deg, rgba(30, 50, 80, 0.9), rgba(20, 25, 45, 0.95));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.sp-kind-card:hover { transform: translateY(-3px); }
.sp-kind-card.is-active {
  border-color: rgba(253, 230, 138, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(253, 230, 138, 0.18);
}
.sp-kind-glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.sp-kind-words .sp-kind-glow { background: radial-gradient(circle, rgba(93, 255, 176, 0.7), transparent 70%); }
.sp-kind-sentences .sp-kind-glow { background: radial-gradient(circle, rgba(94, 200, 255, 0.7), transparent 70%); }
.sp-kind-card strong { font-size: 1.3rem; font-weight: 900; }
.sp-kind-card span:not(.sp-kind-glow) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.4;
  flex: 1;
}
.sp-kind-card em { font-style: normal; font-weight: 800; color: #ffd56a; }
.sp-grade-step { margin-top: 0.35rem; }

/* —— Practice top meta (score / timer / progress like screenshot) —— */
.sp-top-meta {
  position: absolute;
  top: 4.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  width: min(720px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}
.sp-top-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.sp-top-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #5dffb0);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.55);
  transition: width 0.35s ease;
}
.sp-top-count,
.sp-top-timer,
.sp-top-score {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.sp-top-score {
  color: #fde68a;
  min-width: 3.5ch;
  text-align: right;
}

.sp-bg-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 28% 62%, rgba(255, 213, 106, 0.55), transparent),
    radial-gradient(2px 2px at 48% 28%, rgba(94, 200, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 68% 72%, rgba(93, 255, 176, 0.45), transparent),
    radial-gradient(2px 2px at 82% 22%, rgba(244, 114, 182, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 90% 55%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 48%, rgba(192, 132, 252, 0.45), transparent);
  opacity: 0.75;
  animation: spStarsTwinkle 5s ease-in-out infinite;
}
@keyframes spStarsTwinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

/* —— Perfect × N combo (screenshot yellow glow) —— */
.sp-perfect {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translate(-50%, 0) scale(0.85);
  z-index: 38;
  pointer-events: none;
  opacity: 0;
}
.sp-perfect[hidden] { display: none !important; }
.sp-perfect span {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #fde68a;
  text-shadow:
    0 0 12px rgba(253, 230, 138, 0.95),
    0 0 28px rgba(251, 191, 36, 0.75),
    0 0 48px rgba(244, 114, 182, 0.45);
  white-space: nowrap;
}
.sp-perfect.is-on {
  display: block !important;
  animation: spPerfectPop 1.35s cubic-bezier(0.22, 1.35, 0.36, 1) forwards;
}
@keyframes spPerfectPop {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(0.6); }
  25% { opacity: 1; transform: translate(-50%, 0) scale(1.12); }
  55% { opacity: 1; transform: translate(-50%, -6px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(0.95); }
}

/* —— Classified word cards (shown only after correct answer) —— */
.sp-class-board {
  position: absolute;
  left: 50%;
  top: clamp(7.2rem, 18vh, 9.5rem);
  transform: translateX(-50%);
  z-index: 5;
  width: min(960px, calc(100% - 1.5rem));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem 0.85rem;
  pointer-events: none;
}
.sp-class-board[hidden] { display: none !important; }
.sp-class-board.is-shown {
  display: flex !important;
  pointer-events: auto;
  animation: spClassBoardIn 0.45s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes spClassBoardIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.94); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.sp-class-board.is-win .sp-class-card {
  animation: spClassWin 0.55s cubic-bezier(0.22, 1.4, 0.36, 1);
}
@keyframes spClassWin {
  0% { transform: scale(0.92); opacity: 0.6; }
  45% { transform: scale(1.06); filter: brightness(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.sp-class-card {
  --sp-pos: #60a5fa;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 7.2rem;
  max-width: 11rem;
  padding: 0.85rem 1.05rem 0.95rem;
  border-radius: 18px;
  border: 2px solid var(--sp-pos);
  background: rgba(8, 12, 20, 0.92);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 22px color-mix(in srgb, var(--sp-pos) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sp-class-pos {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1020;
  background: var(--sp-pos);
  box-shadow: 0 0 14px color-mix(in srgb, var(--sp-pos) 65%, transparent);
}
.sp-class-ipa {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.62);
  line-height: 1.2;
  min-height: 0.95rem;
}
.sp-class-word-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.sp-class-en {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  text-align: center;
}
.sp-class-speak {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sp-pos) 55%, white 15%);
  background: color-mix(in srgb, var(--sp-pos) 22%, rgba(10, 14, 24, 0.9));
  color: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  box-shadow: 0 0 12px color-mix(in srgb, var(--sp-pos) 35%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sp-class-speak:hover {
  transform: scale(1.08);
}
.sp-class-speak.is-speaking {
  box-shadow: 0 0 18px color-mix(in srgb, var(--sp-pos) 70%, transparent);
  animation: spClassSpeakPulse 0.9s ease-in-out infinite;
}
@keyframes spClassSpeakPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.sp-class-sw {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.25;
  text-align: center;
  min-height: 1em;
}

.sp-full-meaning {
  position: absolute;
  left: 50%;
  top: clamp(15.5rem, 38vh, 20rem);
  transform: translateX(-50%);
  z-index: 5;
  width: min(720px, calc(100% - 2rem));
  margin: 0;
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.sp-mode-sentences .sp-class-board {
  top: clamp(6.8rem, 16vh, 8.5rem);
}
.sp-mode-words .sp-class-board {
  top: clamp(7rem, 17vh, 9rem);
}
.sp-mode-words .sp-class-card {
  min-width: 9.5rem;
  max-width: 14rem;
  padding: 1rem 1.25rem 1.1rem;
}
.sp-mode-words .sp-class-en {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
}

@media (max-width: 720px) {
  .sp-kind-grid { grid-template-columns: 1fr; }
  .sp-class-card {
    min-width: 5.4rem;
    max-width: 8rem;
    padding: 0.65rem 0.7rem 0.75rem;
  }
  .sp-class-en { font-size: 1.05rem; }
  .sp-class-speak { width: 1.75rem; height: 1.75rem; font-size: 0.8rem; }
  .sp-full-meaning { top: clamp(14rem, 42vh, 18rem); font-size: 0.95rem; }
  .sp-hear-btn { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
}



/* ============================================================
   LIGHT THEME — Speed Typing modes + Spelling and Typing
   ============================================================ */
.yt-modes-body {
  color: #1a2744;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 160, 120, 0.55), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(120, 200, 255, 0.5), transparent 38%),
    radial-gradient(circle at 70% 78%, rgba(120, 230, 180, 0.42), transparent 40%),
    radial-gradient(circle at 24% 86%, rgba(255, 220, 120, 0.45), transparent 38%),
    linear-gradient(145deg, #f7fbff 0%, #eef7ff 35%, #f4fff8 65%, #fff8f0 100%);
}
.yt-blob { opacity: 0.55; }
.yt-blob-a { background: radial-gradient(circle, rgba(255, 140, 100, 0.65), transparent 70%); }
.yt-blob-b { background: radial-gradient(circle, rgba(100, 190, 255, 0.6), transparent 70%); }
.yt-blob-c { background: radial-gradient(circle, rgba(100, 230, 170, 0.55), transparent 70%); }
.yt-blob-d { background: radial-gradient(circle, rgba(255, 210, 100, 0.55), transparent 70%); }

.yt-modes-back {
  color: #1a2744;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(26, 39, 68, 0.12);
  box-shadow: 0 6px 18px rgba(26, 60, 100, 0.08);
}
.yt-modes-back:hover { background: #fff; }
.yt-modes-brand { color: rgba(26, 39, 68, 0.55); }
.yt-modes-eyebrow {
  background: linear-gradient(90deg, #e8873a, #1aa86a, #2a8fd6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.yt-modes-main {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background:
    linear-gradient(135deg, rgba(255, 150, 120, 0.18), transparent 42%),
    linear-gradient(225deg, rgba(120, 190, 255, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
  box-shadow:
    0 20px 50px rgba(40, 80, 140, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.yt-modes-title {
  color: #15233f;
  text-shadow: none;
}
.yt-modes-lead { color: rgba(26, 39, 68, 0.72); }

.yt-mode-card {
  color: #15233f;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(40, 80, 140, 0.12);
}
.yt-mode-story {
  background: linear-gradient(155deg, #e8fff4 0%, #d9f7ef 55%, #eef9ff 100%);
  border-color: rgba(26, 168, 106, 0.35);
}
.yt-mode-spelling {
  background: linear-gradient(155deg, #e8f5ff 0%, #ebe8ff 50%, #ffe8f4 100%);
  border-color: rgba(42, 143, 214, 0.35);
}
.yt-mode-card h2 { color: #15233f; }
.yt-mode-card p { color: rgba(26, 39, 68, 0.72); }
.yt-mode-story .yt-mode-tag {
  background: rgba(26, 168, 106, 0.14);
  color: #0f7a4d;
  border-color: rgba(26, 168, 106, 0.3);
}
.yt-mode-spelling .yt-mode-tag {
  background: rgba(42, 143, 214, 0.14);
  color: #1a6aa8;
  border-color: rgba(42, 143, 214, 0.3);
}
.yt-mode-story .yt-mode-go { color: #0f7a4d; }
.yt-mode-spelling .yt-mode-go { color: #1a6aa8; }
.yt-mode-story:hover {
  border-color: rgba(26, 168, 106, 0.55);
  box-shadow: 0 20px 44px rgba(26, 168, 106, 0.18);
}
.yt-mode-spelling:hover {
  border-color: rgba(42, 143, 214, 0.55);
  box-shadow: 0 20px 44px rgba(42, 143, 214, 0.18);
}

.yt-mode-empty {
  border: 1px solid rgba(42, 143, 214, 0.25);
  background: linear-gradient(145deg, #eef7ff, #f5f0ff);
  box-shadow: 0 14px 34px rgba(40, 80, 140, 0.1);
}
.yt-mode-empty strong { color: #1a6aa8; }
.yt-mode-empty p { color: rgba(26, 39, 68, 0.72); }

.sp-step-label { color: rgba(26, 39, 68, 0.55); }
.sp-kind-card {
  color: #15233f;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(155deg, #ffffff 0%, #f0f8ff 100%);
  box-shadow: 0 12px 30px rgba(40, 80, 140, 0.1);
}
.sp-kind-card.is-active {
  border-color: rgba(232, 135, 58, 0.55);
  box-shadow: 0 14px 34px rgba(232, 135, 58, 0.16);
}
.sp-kind-card span:not(.sp-kind-glow) { color: rgba(26, 39, 68, 0.7); }
.sp-kind-card em { color: #c56a1a; }

.sp-grade-card {
  color: #15233f;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(40, 80, 140, 0.1);
}
.sp-grade-card span:not(.sp-grade-num):not(.sp-grade-glow) { color: rgba(26, 39, 68, 0.7); }
.sp-tone-coral {
  background: linear-gradient(155deg, #ffe8e0, #fff5f2);
  border-color: rgba(255, 122, 89, 0.4);
}
.sp-tone-coral em { color: #c24a30; }
.sp-tone-gold {
  background: linear-gradient(155deg, #fff4d6, #fffaf0);
  border-color: rgba(232, 170, 40, 0.45);
}
.sp-tone-gold em { color: #a07010; }
.sp-tone-lime {
  background: linear-gradient(155deg, #e6fff3, #f3fffa);
  border-color: rgba(26, 168, 106, 0.4);
}
.sp-tone-lime em { color: #0f7a4d; }
.sp-tone-sky {
  background: linear-gradient(155deg, #e6f5ff, #f3f9ff);
  border-color: rgba(42, 143, 214, 0.4);
}
.sp-tone-sky em { color: #1a6aa8; }
.sp-tone-violet {
  background: linear-gradient(155deg, #f0e8ff, #f8f4ff);
  border-color: rgba(140, 100, 220, 0.4);
}
.sp-tone-violet em { color: #6b3fb8; }
.sp-tone-rose {
  background: linear-gradient(155deg, #ffe8f2, #fff5f9);
  border-color: rgba(220, 90, 150, 0.4);
}
.sp-tone-rose em { color: #b03870; }

/* Practice board — light */
body.sp-practice-on,
body.sp-practice-on.yt-app-body {
  background: #eef7ff !important;
}
.sp-board,
.sp-board.yt-immersive {
  background: transparent !important;
}
.sp-bg {
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 150, 110, 0.55), transparent 38%),
    radial-gradient(circle at 90% 10%, rgba(110, 190, 255, 0.5), transparent 40%),
    radial-gradient(circle at 75% 80%, rgba(100, 230, 170, 0.42), transparent 42%),
    radial-gradient(circle at 18% 85%, rgba(255, 210, 100, 0.45), transparent 40%),
    radial-gradient(circle at 50% 42%, rgba(190, 140, 255, 0.35), transparent 46%),
    linear-gradient(145deg, #f4f9ff 0%, #eaf6ff 30%, #f2fff8 55%, #fff7ee 80%, #eef4ff 100%) !important;
}
.sp-bg-aurora {
  opacity: 0.45;
  filter: blur(42px);
}
.sp-bg-wash {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.35) 55%, rgba(255,255,255,0.55) 100%) !important;
}
.sp-board .yt-bg-shade {
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 30%, transparent 60%, rgba(255,255,255,0.35) 100%) !important;
}
.sp-bg-stars { opacity: 0.35; }

.sp-board button.yt-back,
.sp-board .yt-immersive .yt-back {
  color: #15233f !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(26, 39, 68, 0.12) !important;
}
.sp-grade-pill {
  color: #0f4f7a !important;
  background: linear-gradient(135deg, rgba(94, 200, 255, 0.35), rgba(255,255,255,0.9)) !important;
  border-color: rgba(42, 143, 214, 0.4) !important;
}
.sp-kind-pill {
  color: #5a2f9e !important;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.3), rgba(255,255,255,0.9)) !important;
  border-color: rgba(140, 100, 220, 0.4) !important;
}
.sp-board .yt-icon-btn {
  color: #15233f !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(26, 39, 68, 0.12) !important;
}
.sp-hear-btn {
  color: #fff !important;
  border-color: rgba(42, 143, 214, 0.5) !important;
  background: linear-gradient(135deg, #2a9fd6, #5b6fd6) !important;
}

.sp-top-count,
.sp-top-timer { color: rgba(26, 39, 68, 0.75) !important; }
.sp-top-score { color: #c56a1a !important; }
.sp-top-progress {
  background: rgba(26, 39, 68, 0.1) !important;
}

.sp-board .yt-caption-card,
.sp-caption {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 16px 40px rgba(40, 80, 140, 0.14) !important;
}
.sp-board .yt-meaning-gold,
.sp-caption .yt-meaning-gold {
  color: #b56a00 !important;
  text-shadow: none !important;
}
.sp-board .sp-live,
.sp-board .yt-live-caption {
  color: #15233f !important;
}
.sp-board .sp-live .yt-quote,
.sp-board .sp-live .yt-punct {
  color: #15233f !important;
  text-shadow: none !important;
}
.sp-board .sp-live .yt-slot {
  border-bottom-color: rgba(26, 39, 68, 0.35) !important;
  color: #15233f !important;
}
.sp-board .sp-live .yt-slot.is-done,
.sp-board .sp-live .yt-slot.is-clear {
  color: #0f7a4d !important;
  border-bottom-color: #1aa86a !important;
}
.sp-board .sp-live .yt-ch.is-match {
  color: #7a2bb8 !important;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.35) !important;
}
.sp-live.sp-win-glow .yt-slot {
  color: #0f7a4d !important;
  text-shadow: 0 0 14px rgba(26, 168, 106, 0.35) !important;
  border-bottom-color: #1aa86a !important;
}
.sp-board .yt-bottom-bar {
  background: rgba(255, 255, 255, 0.88) !important;
  border-top: 1px solid rgba(26, 39, 68, 0.08);
  color: #15233f !important;
  backdrop-filter: blur(12px);
}
.sp-board .yt-bar-btn {
  color: #15233f !important;
  background: rgba(26, 39, 68, 0.06) !important;
  border: 1px solid rgba(26, 39, 68, 0.1);
}
.sp-board .yt-timer,
.sp-board .yt-lesson-meta { color: rgba(26, 39, 68, 0.7) !important; }
.sp-board .yt-score-pill {
  background: linear-gradient(135deg, #ffd56a, #ff9a6a) !important;
  color: #4a2a00 !important;
}
.sp-board .yt-side-nav {
  color: rgba(26, 39, 68, 0.45) !important;
  text-shadow: none !important;
}

.sp-class-card {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 12px 28px rgba(40, 80, 140, 0.12),
    0 0 18px color-mix(in srgb, var(--sp-pos) 28%, transparent) !important;
}
.sp-class-en { color: #15233f !important; }
.sp-class-sw { color: rgba(26, 39, 68, 0.75) !important; }
.sp-class-ipa { color: rgba(26, 39, 68, 0.5) !important; }
.sp-full-meaning { color: rgba(26, 39, 68, 0.8) !important; text-shadow: none !important; }

.sp-perfect span {
  color: #c56a1a !important;
  text-shadow:
    0 0 10px rgba(255, 200, 80, 0.7),
    0 0 24px rgba(255, 170, 60, 0.45) !important;
}
.sp-praise {
  color: #3a1800 !important;
}
.yt-celebrate-banner {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(26, 39, 68, 0.1) !important;
  color: #15233f !important;
}
.yt-celebrate-banner strong { color: #c56a1a !important; }
.yt-celebrate-banner span:last-child { color: rgba(26, 39, 68, 0.65) !important; }
.yt-celebrate.is-big .yt-celebrate-banner {
  background: linear-gradient(145deg, #fff8e8, #ffe8f4) !important;
}
.yt-lesson-done-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(26, 39, 68, 0.1);
  color: #15233f;
}
.yt-lesson-done-title { color: #15233f !important; }
.yt-lesson-done-lead { color: rgba(26, 39, 68, 0.72) !important; }
.yt-break-kicker { color: #c56a1a !important; }
button.yt-lesson-done-link,
.yt-lesson-done-actions .yt-lesson-done-link {
  color: rgba(26, 39, 68, 0.7) !important;
}

.sp-speak-big {
  border-color: rgba(42, 143, 214, 0.45) !important;
  background: linear-gradient(135deg, #2a9fd6, #5b6fd6) !important;
  color: #fff !important;
}

html:has(body.sp-practice-on),
body.sp-practice-on.yt-app-body,
body.sp-practice-on {
  background: #eef7ff !important;
  color: #15233f !important;
}
.sp-board .yt-bottom-bar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-top: 1px solid rgba(26, 39, 68, 0.1) !important;
  color: #15233f !important;
}
.sp-board .yt-bottom-left .yt-timer,
.sp-board .yt-bottom-center,
.sp-board .yt-bottom-center span {
  color: rgba(26, 39, 68, 0.75) !important;
}
.sp-board .yt-bottom-center kbd {
  background: rgba(26, 39, 68, 0.08);
  border: 1px solid rgba(26, 39, 68, 0.12);
  color: #15233f;
}
.sp-board .yt-status-caption[data-kind=" ok\] { color: #0f7a4d; }
.sp-board .yt-status-caption[data-kind=\bad\] { color: #c24a30; }
.sp-board .yt-status-caption[data-kind=\warn\] { color: #b56a00; }
.sp-board .yt-answer-caption {
 color: #15233f;
 background: rgba(26, 39, 68, 0.05);
}

html:has(body.sp-practice-on),
body.sp-practice-on.yt-app-body,
body.sp-practice-on {
  background: #eef7ff !important;
  color: #15233f !important;
}
.sp-board .yt-bottom-bar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-top: 1px solid rgba(26, 39, 68, 0.1) !important;
  color: #15233f !important;
}
.sp-board .yt-bottom-left .yt-timer,
.sp-board .yt-bottom-center,
.sp-board .yt-bottom-center span {
  color: rgba(26, 39, 68, 0.75) !important;
}
.sp-board .yt-bottom-center kbd {
  background: rgba(26, 39, 68, 0.08);
  border: 1px solid rgba(26, 39, 68, 0.12);
  color: #15233f;
}
.sp-board .yt-status-caption[data-kind=" ok\] { color: #0f7a4d; }
.sp-board .yt-status-caption[data-kind=\bad\] { color: #c24a30; }
.sp-board .yt-status-caption[data-kind=\warn\] { color: #b56a00; }
.sp-board .yt-answer-caption {
 color: #15233f;
 background: rgba(26, 39, 68, 0.05);
}
