@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,400;1,500&family=JetBrains+Mono:wght@300;400&family=Inter:wght@300;400;500&display=swap');

:root {
  --stage-bg: #08060F;
  --accent: #C084FC;
  --accent-border: rgba(192,132,252,0.28);
  --accent-dim: rgba(192,132,252,0.10);
  --text-1: #ffffff;
  --text-2: rgba(255,255,255,0.62);
  --text-3: rgba(255,255,255,0.30);
  --border: rgba(255,255,255,0.12);
  --card-bg: #1C1530;
  --card-hover: #141026;
  --nav-border: rgba(255,255,255,0.08);
  --input-bg: rgba(255,255,255,0.04);
  --input-border: rgba(255,255,255,0.10);
  --card-radius: 16px;
  --pill-radius: 20px;
  --stage-radius: 22px;
  --container: min(1180px, calc(100vw - 40px));
  --color-text-tertiary: var(--text-3);
  --nav-bg: rgba(8, 6, 15, 0.97);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  padding-top: 52px;
  background: var(--stage-bg);
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(192,132,252,0.09), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.03), transparent 28%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--nav-bg);
  border-bottom: 0.5px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 21px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
}

.site-logo span {
  color: var(--accent);
}

.site-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-link {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.15s;
}

.site-link:hover {
  color: rgba(255,255,255,0.70);
}

.site-link.active {
  color: var(--accent);
  background: rgba(192,132,252,0.10);
}

.page-shell,
.study-page {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  padding: 44px 0 56px;
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
  gap: 32px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(98px, 18vw, 180px);
  line-height: 0.88;
  letter-spacing: 4px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 520px;
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--text-2);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
}

.hero-stage {
  background: linear-gradient(180deg, rgba(26,26,46,0.82), rgba(6,6,12,0.96));
  border: 0.5px solid rgba(192,132,252,0.14);
  border-radius: 22px;
  min-height: 500px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.hero-stage::before,
.hero-stage::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.hero-stage::before {
  width: 220px;
  height: 220px;
  right: -72px;
  top: -58px;
  background: radial-gradient(circle, rgba(192,132,252,0.18), transparent 68%);
}

.hero-stage::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 72%);
}

.hero-preview {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 28px;
  display: grid;
  align-content: space-between;
  gap: 26px;
}

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

.hero-preview-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-preview-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

.hero-word-stack {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 280px;
}

.hero-pos {
  display: inline-block;
  width: fit-content;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 3px 11px;
  border-radius: 20px;
  background: var(--accent-dim);
  letter-spacing: 1.5px;
}

.hero-word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(74px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: 5px;
}

.hero-phonetic {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
}

.hero-definition {
  max-width: 340px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

.hero-example {
  max-width: 360px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  line-height: 1.7;
}

.hero-rhythm {
  display: flex;
  gap: 6px;
}

.hero-rhythm span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.hero-rhythm span.is-accent {
  width: 22px;
  border-radius: 3px;
  background: var(--accent);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--text-1);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  border-color: transparent;
  color: #08060F;
}

.button-secondary {
  background: transparent;
  border-color: var(--accent-border);
  color: var(--accent);
}

.section {
  margin-top: 48px;
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  padding: 22px 0;
}

.marquee {
  display: flex;
  gap: 42px;
  width: max-content;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: 4px;
  white-space: nowrap;
  color: rgba(255,255,255,0.08);
  animation: lexis-marquee 28s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 42px;
}

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

.feature-card,
.deck-card,
.panel,
.stat-card,
.mastery-row {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 16px;
}

.feature-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 21px;
}

.feature-card h3,
.section-title,
.panel-title,
.deck-card h3 {
  margin: 0;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 500;
}

.feature-card p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.page-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: 2px;
}

.page-copy {
  margin: 8px 0 0;
  color: var(--text-2);
  line-height: 1.6;
}

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

.deck-card {
  padding: 22px;
  display: grid;
  gap: 18px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.deck-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.deck-card.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(192,132,252,0.08);
}

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

.deck-name {
  font-size: 20px;
  font-weight: 500;
}

.deck-count {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 13px;
}

.deck-meta {
  color: var(--text-2);
  line-height: 1.6;
  font-size: 14px;
}

.panel-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  margin-top: 28px;
}

.panel {
  padding: 22px;
}

.panel-title {
  font-size: 18px;
  font-weight: 500;
}

.panel-copy {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

.selected-deck {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  font-size: 13px;
}

.selected-deck strong {
  color: var(--text-1);
  font-weight: 500;
}

.field-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.input,
.textarea {
  width: 100%;
  border-radius: 16px;
  border: 0.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-1);
}

.input {
  min-height: 48px;
  padding: 0 14px;
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255,255,255,0.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.password-toggle:hover {
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.04);
}

.password-toggle:focus-visible {
  outline: none;
  color: rgba(255,255,255,0.84);
  background: rgba(192,132,252,0.12);
  box-shadow: 0 0 0 1px rgba(192,132,252,0.18);
}

.password-toggle.is-visible {
  color: #C084FC;
  background: rgba(192,132,252,0.10);
}

.password-toggle i {
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: rgba(255,255,255,0.56);
  font-size: 13px;
  line-height: 1;
  user-select: none;
}

.remember-row input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #C084FC;
}

.remember-row span {
  transform: translateY(0.5px);
}

.textarea {
  min-height: 170px;
  padding: 14px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(255,255,255,0.26);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px rgba(192,132,252,0.08);
}

.status-text {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.csv-file {
  display: none;
}

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

.stat-card {
  padding: 20px;
  display: grid;
  gap: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: 2px;
}

.stat-copy {
  color: var(--text-2);
  font-size: 14px;
}

.progress-layout {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

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

.week-cell {
  min-height: 108px;
  padding: 14px;
  border-radius: 16px;
  border: 0.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.week-cell.has-study {
  background: rgba(192,132,252,0.10);
}

.week-cell.today {
  border-color: var(--accent);
}

.week-day {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-3);
}

.week-count {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  line-height: 0.95;
}

.week-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
}

.mastery-list {
  display: grid;
  gap: 12px;
}

.mastery-row {
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.mastery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mastery-word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  line-height: 0.92;
  letter-spacing: 2px;
}

.mastery-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

.mastery-copy {
  color: var(--text-2);
  font-size: 14px;
}

.mastery-bar {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(192,132,252,0.10);
}

.mastery-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.empty-state {
  border-radius: 16px;
  border: 0.5px dashed rgba(255,255,255,0.14);
  padding: 32px 18px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.7;
}

.study-page {
  padding: 36px 0 56px;
}

.study-wrap {
  width: min(100%, 760px);
  margin: 0 auto;
}

.study-intro {
  margin-bottom: 18px;
  display: grid;
  gap: 6px;
}

.study-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
}

.study-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: 2px;
}

.study-copy {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}

.v3{padding:1.5rem 0 2.5rem;font-family:'DM Sans',sans-serif}
.v3-hdr{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.v3-lbl{font-size:11px;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;color:var(--color-text-tertiary)}
.v3-cnt{font-family:'Space Mono',monospace;font-size:12px;color:#fff;border:1px solid rgba(192,132,252,.22);background:rgba(192,132,252,.08);padding:5px 12px;border-radius:999px;letter-spacing:1px;box-shadow:0 0 18px rgba(192,132,252,.08)}
.v3-stage{background:radial-gradient(circle at 50% 42%,rgba(192,132,252,.12),rgba(6,6,12,.18) 34%,#08060F 72%),linear-gradient(180deg,#090914,#08060F);border-radius:22px;position:relative;overflow:hidden;display:flex;flex-direction:column;margin-bottom:16px;border:.5px solid rgba(192,132,252,.22);min-height:480px;box-shadow:0 0 0 1px rgba(192,132,252,.08),0 30px 110px rgba(0,0,0,.58),0 0 85px rgba(192,132,252,.12),inset 0 0 150px rgba(192,132,252,.06);isolation:isolate}
.v3-stage.idle-attract{box-shadow:0 0 0 1px rgba(192,132,252,.06),0 26px 90px rgba(0,0,0,.5),0 0 50px rgba(192,132,252,.08),inset 0 0 120px rgba(192,132,252,.04)}
.v3-stage.live-mode{box-shadow:0 0 0 1px rgba(192,132,252,.16),0 32px 130px rgba(0,0,0,.62),0 0 120px rgba(192,132,252,.2),inset 0 0 180px rgba(192,132,252,.08)}
.v3-stage::before{content:'';position:absolute;inset:-18% -10% auto;height:68%;background:radial-gradient(circle at 50% 0%,rgba(192,132,252,.12),rgba(192,132,252,0) 62%);pointer-events:none;z-index:0;opacity:.7}
.v3-stage::after{content:'';position:absolute;inset:auto 0 -18%;height:46%;background:radial-gradient(circle at 50% 100%,rgba(192,132,252,.06),rgba(192,132,252,0) 68%);opacity:.55;pointer-events:none;z-index:0}
@keyframes v3IdleAtmos{0%,100%{transform:scale(1);opacity:.72}50%{transform:scale(1.04);opacity:.96}}
.v3-stage.idle-attract::before{animation:v3IdleAtmos 3.2s ease-in-out infinite}
.v3-stage.idle-attract::after{animation:v3IdleAtmos 4.2s ease-in-out infinite reverse}
.v3-live{position:absolute;top:42px;right:16px;display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:rgba(6,6,12,.76);border:1px solid rgba(192,132,252,.18);font-family:'Space Mono',monospace;font-size:10px;letter-spacing:1.1px;color:rgba(255,255,255,.72);z-index:7;backdrop-filter:blur(10px);box-shadow:0 0 20px rgba(0,0,0,.24)}
.v3-live span{width:8px;height:8px;border-radius:50%;background:rgba(192,132,252,.54);box-shadow:0 0 0 0 rgba(192,132,252,.28)}
.v3-live.on{color:#fff;border-color:rgba(192,132,252,.34);box-shadow:0 0 22px rgba(192,132,252,.14),0 0 28px rgba(0,0,0,.26)}
@keyframes v3LiveBlink{0%,100%{transform:scale(1);opacity:1;box-shadow:0 0 0 0 rgba(192,132,252,.36)}50%{transform:scale(1.15);opacity:.78;box-shadow:0 0 0 10px rgba(192,132,252,0)}}
.v3-live.on span{background:#C084FC;animation:v3LiveBlink .78s linear infinite}
.vfx-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(192,132,252,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(192,132,252,.045) 1px,transparent 1px);background-size:100% 34px,34px 100%;opacity:.4;mix-blend-mode:screen;pointer-events:none;z-index:0;mask-image:linear-gradient(to bottom,rgba(0,0,0,.82),rgba(0,0,0,.08))}
@keyframes v3GridDrift{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(0,34px,0)}}
.v3-stage.live-mode .vfx-grid{opacity:.62;animation:v3GridDrift .78s linear infinite}
.vfx-burst{position:absolute;inset:8% 6%;border-radius:50%;opacity:0;pointer-events:none;z-index:2;background:conic-gradient(from 0deg,rgba(192,132,252,0) 0deg,rgba(192,132,252,.56) 26deg,rgba(192,132,252,0) 58deg,rgba(255,232,160,.38) 104deg,rgba(192,132,252,0) 140deg,rgba(192,132,252,.3) 208deg,rgba(192,132,252,0) 246deg,rgba(255,255,255,.18) 292deg,rgba(192,132,252,.48) 322deg,rgba(192,132,252,0) 360deg);filter:blur(1.2px)}
@keyframes vfxBurstAnim{0%{opacity:1;transform:scale(.24) rotate(0deg)}54%{opacity:.7;transform:scale(1.08) rotate(14deg)}100%{opacity:0;transform:scale(1.86) rotate(28deg)}}
.vfx-burst.fire{animation:vfxBurstAnim .22s linear forwards}
.v3-eq{display:flex;align-items:flex-end;gap:3px;height:108px;padding:10px 14px 0;flex-shrink:0}
.v3-eqb{flex:1;background:#C084FC;border-radius:2px 2px 0 0;height:3px;opacity:.18;box-shadow:0 0 18px rgba(192,132,252,.28),0 0 34px rgba(192,132,252,.12);transition:height .05s linear,opacity .05s linear}
.v3-ring{position:absolute;width:70px;height:70px;border-radius:50%;border:2px solid #C084FC;top:50%;left:50%;transform:translate(-50%,-50%);opacity:0;pointer-events:none;z-index:1}
@keyframes v3ro{0%{transform:translate(-50%,-50%) scale(.16);opacity:1}100%{transform:translate(-50%,-50%) scale(14.5);opacity:0}}
.v3-ring.fire{animation:v3ro .68s cubic-bezier(.14,.88,.25,1) forwards}
.vfx-scan{position:absolute;left:0;right:0;height:4px;background:#C084FC;top:-4px;opacity:0;pointer-events:none;z-index:6;box-shadow:0 0 22px rgba(192,132,252,.88),0 0 40px rgba(192,132,252,.36)}
@keyframes vfxScanAnim{0%{top:0;opacity:.96;transform:scaleX(.9)}100%{top:100%;opacity:0;transform:scaleX(1.03)}}
.vfx-scan.fire{animation:vfxScanAnim .12s linear forwards}
.vfx-breath{position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle at 50% 52%,rgba(192,132,252,.2),rgba(192,132,252,.08) 34%,rgba(192,132,252,0) 72%);opacity:0;transform:scale(.32);pointer-events:none;z-index:0;filter:blur(2px)}
@keyframes vfxBreathAnim{0%{opacity:1;transform:scale(.2)}100%{opacity:0;transform:scale(3.05)}}
.vfx-breath.fire{animation:vfxBreathAnim .44s cubic-bezier(.08,.82,.22,1) forwards}
@keyframes vfxStageBeat{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}14%{transform:scale(1.034) translate3d(-6px,-4px,0);filter:brightness(1.32)}28%{transform:scale(.976) translate3d(6px,5px,0);filter:brightness(1.06)}46%{transform:scale(1.018) translate3d(-4px,-2px,0);filter:brightness(1.2)}64%{transform:scale(.992) translate3d(3px,2px,0);filter:brightness(1.08)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-stage.stage-beat{animation:vfxStageBeat .078s linear forwards}
@keyframes vfxStageGhost{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}26%{transform:scale(1.016) translate3d(-3px,0,0);filter:brightness(1.12)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-stage.stage-ghost{animation:vfxStageGhost .062s linear forwards}
@keyframes vfxStageRattle{0%{transform:scale(1) translate3d(0,0,0)}22%{transform:scale(1.018) translate3d(-5px,-1px,0)}44%{transform:scale(.986) translate3d(5px,2px,0)}70%{transform:scale(1.008) translate3d(-2px,0,0)}100%{transform:scale(1) translate3d(0,0,0)}}
.v3-stage.stage-rattle{animation:vfxStageRattle .068s linear forwards}
@keyframes vfxStagePulse{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}12%{transform:scale(1.045) translate3d(-8px,-6px,0);filter:brightness(1.46)}24%{transform:scale(.968) translate3d(7px,6px,0);filter:brightness(1.08)}38%{transform:scale(1.03) translate3d(-5px,-4px,0);filter:brightness(1.22)}56%{transform:scale(.988) translate3d(4px,3px,0);filter:brightness(1.06)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-stage.stage-pulse{animation:vfxStagePulse .14s cubic-bezier(.08,.92,.16,1) forwards}
.v3-fl{position:absolute;inset:0;background:#C084FC;opacity:0;pointer-events:none;z-index:1}
@keyframes v3fo{0%{opacity:.28}100%{opacity:0}}
.v3-fl.fire{animation:v3fo .18s linear forwards}
.v3-hint{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:4}
.v3-hico{width:74px;height:74px;border-radius:50%;border:1.5px solid rgba(192,132,252,.22);display:flex;align-items:center;justify-content:center;margin-bottom:14px;font-size:30px;color:rgba(192,132,252,.62);background:radial-gradient(circle at 50% 50%,rgba(192,132,252,.14),rgba(192,132,252,.02) 60%,rgba(192,132,252,0) 100%);box-shadow:0 0 28px rgba(192,132,252,.14)}
@keyframes hp{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.v3-hico{animation:hp 2.4s ease-in-out infinite}
.v3-hint-txt{font-size:11px;letter-spacing:2.5px;text-transform:uppercase;color:rgba(255,255,255,.24)}
.v3-stage.idle-attract .v3-hico{box-shadow:0 0 36px rgba(192,132,252,.18),0 0 70px rgba(192,132,252,.08)}
.v3-stage.idle-attract .v3-hint-txt{color:rgba(255,255,255,.34)}
.v3-body{flex:1;display:flex;align-items:center;justify-content:center;padding:4px 20px 16px;position:relative;z-index:2}
.v3-ci{text-align:center;width:100%}
.v3-pos{display:inline-block;font-family:'Space Mono',monospace;font-size:10px;color:#C084FC;border:1px solid rgba(192,132,252,.28);padding:3px 11px;border-radius:20px;background:rgba(192,132,252,.07);margin-bottom:14px;letter-spacing:1.5px;opacity:0}
.v3-word{font-family:'DM Sans',sans-serif;font-size:120px;color:#fff;letter-spacing:.5px;line-height:1;font-weight:500;text-transform:lowercase;display:block;opacity:0;transform-origin:center center;will-change:transform,color,text-shadow,filter;text-shadow:0 0 32px rgba(192,132,252,.22),0 0 84px rgba(192,132,252,.09)}
.v3-word.word-accent{color:#FFE8A0!important;text-shadow:0 0 36px rgba(192,132,252,1),0 0 120px rgba(192,132,252,.45),0 0 8px rgba(255,255,255,.35)}
.v3-stage.live-mode .v3-word{filter:drop-shadow(0 0 22px rgba(192,132,252,.15))}
@keyframes vfxWordHit{0%{transform:scale(1) translate3d(0,0,0) rotate(0);filter:brightness(1)}12%{transform:scale(1.26) translate3d(0,-18px,0) rotate(-1.2deg);filter:brightness(1.46)}26%{transform:scale(.9) translate3d(0,8px,0) rotate(.9deg);filter:brightness(1)}46%{transform:scale(1.08) translate3d(0,-4px,0) rotate(-.28deg);filter:brightness(1.18)}100%{transform:scale(1) translate3d(0,0,0) rotate(0);filter:brightness(1)}}
@keyframes vfxWordSlam{0%{transform:scale(.82) translate3d(0,16px,0) rotate(0);filter:brightness(.88)}12%{transform:scale(1.46) translate3d(0,-26px,0) rotate(-1.8deg);filter:brightness(1.62)}24%{transform:scale(.82) translate3d(0,13px,0) rotate(1.3deg);filter:brightness(.98)}40%{transform:scale(1.2) translate3d(0,-7px,0) rotate(-.5deg);filter:brightness(1.24)}100%{transform:scale(1) translate3d(0,0,0) rotate(0);filter:brightness(1)}}
@keyframes vfxWordGhost{0%{transform:scale(1) translate3d(0,0,0)}28%{transform:scale(1.12) translate3d(0,-8px,0)}100%{transform:scale(1) translate3d(0,0,0)}}
@keyframes vfxWordStrobe{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}20%{transform:scale(1.16) translate3d(0,-10px,0);filter:brightness(1.34)}44%{transform:scale(.94) translate3d(0,4px,0);filter:brightness(1)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-word.word-beat,.v3-word.word-hit{animation:vfxWordHit .118s linear forwards}
.v3-word.word-slam{animation:vfxWordSlam .15s cubic-bezier(.08,.92,.14,1) forwards}
.v3-word.word-ghost{animation:vfxWordGhost .064s linear forwards}
.v3-word.word-strobe{animation:vfxWordStrobe .072s linear forwards}
.v3-cnt.count-hit{animation:vfxWordGhost .082s linear forwards}
.v3-spell{display:flex;justify-content:center;gap:7px;min-height:34px;margin-top:8px;opacity:0;transform:translateY(10px);transition:opacity .12s linear,transform .12s linear}
.v3-spell.on{opacity:1;transform:translateY(0)}
.v3-spell span{min-width:24px;height:30px;border-radius:7px;border:.5px solid rgba(192,132,252,.2);background:rgba(6,6,12,.58);display:inline-flex;align-items:center;justify-content:center;font-family:'Space Mono',monospace;font-size:14px;color:rgba(255,255,255,.38);box-shadow:0 0 0 rgba(192,132,252,0);transition:all .07s linear;text-transform:lowercase}
.v3-spell span.done{color:rgba(192,132,252,.58);background:rgba(192,132,252,.08);border-color:rgba(192,132,252,.24)}
.v3-spell span.hit{color:#08060F;background:#C084FC;border-color:#C084FC;transform:translateY(-7px) scale(1.26);box-shadow:0 0 24px rgba(192,132,252,.62),0 0 54px rgba(192,132,252,.2)}
.v3-ph{font-family:'Space Mono',monospace;font-size:14px;color:#C084FC;margin-top:12px;display:block;opacity:0}
.v3-df{font-size:15px;color:rgba(255,255,255,.62);margin:13px auto 0;max-width:300px;line-height:1.52;display:block;opacity:0}
.v3-ex{font-family:'Space Mono',monospace;font-size:11.5px;color:rgba(255,255,255,.2);margin-top:16px;display:block;opacity:0}
.v3-pbar{height:3px;background:rgba(192,132,252,.08);flex-shrink:0}
.v3-pfill{height:100%;background:#C084FC;width:0;opacity:.6}
.v3-stage.live-mode .v3-pfill{box-shadow:0 0 18px rgba(192,132,252,.36)}
.v3-ctrl{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:12px}
.v3b{background:#1C1530;border:.5px solid rgba(255,255,255,.12);border-radius:50%;width:52px;height:52px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:rgba(255,255,255,.55);font-size:18px;transition:all .12s;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.v3b:hover{background:#1C1530;color:#fff}
.v3b.on{background:#08060F;color:#C084FC;border-color:rgba(192,132,252,.3);box-shadow:0 0 24px rgba(192,132,252,.12)}
.v3b:active{transform:scale(.9)}
.v3-plw{width:88px;height:88px;border-radius:50%;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}
.v3-plw.play-beat{animation:vfxPlayBeat .12s cubic-bezier(.08,.92,.16,1) forwards}
@keyframes v3IdleInvite{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.04)}}
.v3-stage.idle-attract .v3-plw{animation:v3IdleInvite 2.1s ease-in-out infinite}
.v3-pring{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.v3-pli{width:76px;height:76px;border-radius:50%;background:#08060F;display:flex;align-items:center;justify-content:center;color:#C084FC;font-size:28px;transition:background .12s;border:.5px solid rgba(192,132,252,.22);position:relative;z-index:1}
.v3-pli::before{content:'';position:absolute;inset:-6px;border-radius:50%;border:2px solid rgba(192,132,252,.46);pointer-events:none;box-shadow:0 0 16px rgba(192,132,252,.2)}
.v3-pli::after{content:'';position:absolute;inset:-14px;border-radius:50%;border:1.5px solid rgba(192,132,252,.24);pointer-events:none;box-shadow:0 0 22px rgba(192,132,252,.14)}
.v3-plw:hover .v3-pli{background:#0E0B18}
.v3-plw.on .v3-pli{background:#C084FC;color:#08060F;border-color:transparent}
.v3-plw.on .v3-pli::before{border-color:rgba(6,6,12,.3)}
.v3-plw.on .v3-pli::after{border-color:rgba(6,6,12,.15)}
@keyframes vfxPlayBeat{0%{transform:scale(1)}24%{transform:scale(1.34)}48%{transform:scale(.9)}100%{transform:scale(1)}}
.v3-plw.on .v3-pli{box-shadow:0 0 32px rgba(192,132,252,.3),0 0 60px rgba(192,132,252,.16)}
.v3-dots{display:flex;justify-content:center;gap:6px;margin-bottom:12px}
.v3-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.15);transition:all .22s ease}
.v3-dot.on{background:#C084FC;width:20px;border-radius:3px}
.v3-dot.done{background:rgba(192,132,252,.3)}
.v3-brow{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:10px}
.v3-blbl{font-size:11px;color:rgba(255,255,255,.3);letter-spacing:1.5px;text-transform:uppercase}
.v3-bv{font-family:'Space Mono',monospace;font-size:13px;color:#fff;min-width:28px}
.v3-brow input[type="range"]{filter:drop-shadow(0 0 10px rgba(192,132,252,.18))}
.v3-mr{display:flex;justify-content:center;gap:8px}
.v3-mb{font-size:11px;padding:5px 14px;border-radius:20px;border:.5px solid rgba(255,255,255,.12);background:transparent;color:rgba(255,255,255,.3);cursor:pointer;transition:all .12s;font-weight:500;font-family:'DM Sans',sans-serif}
.v3-mb:hover{color:rgba(255,255,255,.6)}
.v3-mb.on{background:#08060F;color:#C084FC;border-color:rgba(192,132,252,.3)}


/* Live punch pass: denser rhythm, lower-case word focus, explosive beat layers. */
.v3-stage{min-height:520px;background:radial-gradient(circle at 50% 48%,rgba(192,132,252,.2),rgba(192,132,252,.055) 30%,rgba(6,6,12,.08) 49%,#08060F 76%),linear-gradient(180deg,#0b0b16 0%,#08060F 100%);border-color:rgba(192,132,252,.34);box-shadow:0 0 0 1px rgba(192,132,252,.12),0 38px 140px rgba(0,0,0,.68),0 0 150px rgba(192,132,252,.2),inset 0 0 190px rgba(192,132,252,.09)}
.v3-stage.live-mode{box-shadow:0 0 0 1px rgba(192,132,252,.24),0 42px 160px rgba(0,0,0,.72),0 0 190px rgba(192,132,252,.28),inset 0 0 220px rgba(192,132,252,.12)}
.vfx-speed{position:absolute;inset:-12% -8%;opacity:0;pointer-events:none;z-index:1;background:repeating-linear-gradient(102deg,rgba(255,232,160,0) 0 34px,rgba(255,232,160,.12) 35px,rgba(192,132,252,.38) 37px,rgba(255,232,160,0) 43px);filter:blur(.4px);mix-blend-mode:screen;transform:translate3d(-8%,0,0) skewX(-12deg)}
@keyframes vfxSpeedRip{0%{opacity:.95;transform:translate3d(-12%,0,0) skewX(-14deg) scaleX(.82)}100%{opacity:0;transform:translate3d(18%,0,0) skewX(-14deg) scaleX(1.16)}}
.vfx-speed.fire{animation:vfxSpeedRip .18s linear forwards}
.vfx-shock{position:absolute;inset:0;opacity:0;pointer-events:none;z-index:5;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.52),rgba(255,232,160,.34) 12%,rgba(192,132,252,.13) 24%,rgba(192,132,252,0) 58%);mix-blend-mode:screen;transform:scale(.22)}
@keyframes vfxShockPop{0%{opacity:1;transform:scale(.16)}45%{opacity:.82;transform:scale(1.05)}100%{opacity:0;transform:scale(1.78)}}
.vfx-shock.fire{animation:vfxShockPop .16s cubic-bezier(.05,.9,.1,1) forwards}
.vfx-grid{background-size:100% 26px,26px 100%;opacity:.5}
@keyframes v3GridDrift{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(0,52px,0)}}
.v3-stage.live-mode .vfx-grid{opacity:.75;animation:v3GridDrift .42s linear infinite}
.vfx-burst{inset:-4% -2%;background:conic-gradient(from 0deg,rgba(192,132,252,0) 0deg,rgba(255,255,255,.58) 12deg,rgba(192,132,252,.85) 24deg,rgba(192,132,252,0) 43deg,rgba(255,232,160,.5) 78deg,rgba(192,132,252,0) 104deg,rgba(192,132,252,.62) 160deg,rgba(255,255,255,.34) 182deg,rgba(192,132,252,0) 216deg,rgba(192,132,252,.68) 278deg,rgba(255,232,160,.5) 310deg,rgba(192,132,252,0) 360deg);filter:blur(.5px)}
@keyframes vfxBurstAnim{0%{opacity:1;transform:scale(.12) rotate(0deg)}38%{opacity:.92;transform:scale(1.1) rotate(18deg)}100%{opacity:0;transform:scale(2.35) rotate(46deg)}}
.vfx-burst.fire{animation:vfxBurstAnim .18s linear forwards}
.v3-eq{height:124px;padding-top:8px}
.v3-eqb{box-shadow:0 0 22px rgba(192,132,252,.38),0 0 50px rgba(192,132,252,.18)}
.v3-ring{border-width:2.5px;box-shadow:0 0 22px rgba(192,132,252,.32)}
@keyframes v3ro{0%{transform:translate(-50%,-50%) scale(.1);opacity:1}100%{transform:translate(-50%,-50%) scale(17);opacity:0}}
.v3-ring.fire{animation:v3ro .48s cubic-bezier(.03,.92,.1,1) forwards}
.vfx-scan{height:6px;box-shadow:0 0 30px rgba(192,132,252,1),0 0 76px rgba(192,132,252,.54)}
.vfx-scan.fire{animation:vfxScanAnim .09s linear forwards}
.vfx-breath{background:radial-gradient(circle at 50% 52%,rgba(255,232,160,.36),rgba(192,132,252,.16) 28%,rgba(192,132,252,0) 68%)}
.vfx-breath.fire{animation:vfxBreathAnim .32s cubic-bezier(.04,.9,.11,1) forwards}
@keyframes vfxStageBeat{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}18%{transform:scale(1.048) translate3d(-8px,-5px,0);filter:brightness(1.45)}38%{transform:scale(.965) translate3d(8px,6px,0);filter:brightness(1.08)}60%{transform:scale(1.026) translate3d(-4px,-3px,0);filter:brightness(1.24)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-stage.stage-beat{animation:vfxStageBeat .064s linear forwards}
@keyframes vfxStageRattle{0%{transform:scale(1) translate3d(0,0,0)}20%{transform:scale(1.026) translate3d(-7px,-2px,0)}42%{transform:scale(.978) translate3d(7px,3px,0)}72%{transform:scale(1.012) translate3d(-3px,0,0)}100%{transform:scale(1) translate3d(0,0,0)}}
.v3-stage.stage-rattle{animation:vfxStageRattle .058s linear forwards}
@keyframes vfxStagePulse{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}14%{transform:scale(1.065) translate3d(-10px,-7px,0);filter:brightness(1.58)}30%{transform:scale(.955) translate3d(9px,7px,0);filter:brightness(1.08)}48%{transform:scale(1.038) translate3d(-5px,-4px,0);filter:brightness(1.28)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-stage.stage-pulse{animation:vfxStagePulse .12s cubic-bezier(.03,.92,.1,1) forwards}
.v3-fl.fire{animation:v3fo .12s linear forwards}
.v3-word{font-size:132px;font-weight:500;letter-spacing:-1px;text-transform:lowercase;text-shadow:0 0 20px rgba(255,255,255,.18),0 0 48px rgba(192,132,252,.36),0 0 120px rgba(192,132,252,.18)}
.v3-word.word-accent{color:#fff4bf!important;text-shadow:0 0 12px rgba(255,255,255,.9),0 0 50px rgba(192,132,252,1),0 0 150px rgba(192,132,252,.62)}
.v3-stage.live-mode .v3-word{filter:drop-shadow(0 0 30px rgba(192,132,252,.25))}
@keyframes vfxWordHit{0%{transform:scale(1) translate3d(0,0,0) rotate(0);filter:brightness(1)}16%{transform:scale(1.38) translate3d(0,-24px,0) rotate(-1.6deg);filter:brightness(1.65)}34%{transform:scale(.86) translate3d(0,10px,0) rotate(1deg);filter:brightness(1)}58%{transform:scale(1.13) translate3d(0,-6px,0) rotate(-.35deg);filter:brightness(1.24)}100%{transform:scale(1) translate3d(0,0,0) rotate(0);filter:brightness(1)}}
@keyframes vfxWordSlam{0%{transform:scale(.72) translate3d(0,28px,0) rotate(0);filter:brightness(.82)}12%{transform:scale(1.68) translate3d(0,-34px,0) rotate(-2.2deg);filter:brightness(1.85)}26%{transform:scale(.78) translate3d(0,16px,0) rotate(1.5deg);filter:brightness(.98)}44%{transform:scale(1.25) translate3d(0,-10px,0) rotate(-.5deg);filter:brightness(1.32)}100%{transform:scale(1) translate3d(0,0,0) rotate(0);filter:brightness(1)}}
@keyframes vfxWordGhost{0%{transform:scale(1) translate3d(0,0,0)}28%{transform:scale(1.18) translate3d(0,-12px,0)}100%{transform:scale(1) translate3d(0,0,0)}}
@keyframes vfxWordStrobe{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}22%{transform:scale(1.24) translate3d(0,-16px,0);filter:brightness(1.55)}48%{transform:scale(.9) translate3d(0,6px,0);filter:brightness(1)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-word.word-beat,.v3-word.word-hit{animation:vfxWordHit .092s linear forwards}
.v3-word.word-slam{animation:vfxWordSlam .124s cubic-bezier(.03,.92,.1,1) forwards}
.v3-word.word-ghost{animation:vfxWordGhost .052s linear forwards}
.v3-word.word-strobe{animation:vfxWordStrobe .058s linear forwards}
.v3-spell{gap:9px;min-height:42px;margin-top:10px}
.v3-spell span{min-width:28px;height:36px;border-radius:9px;font-size:16px;background:rgba(6,6,12,.72);border-color:rgba(192,132,252,.3)}
.v3-spell span.hit{transform:translateY(-10px) scale(1.38);box-shadow:0 0 30px rgba(192,132,252,.78),0 0 74px rgba(192,132,252,.3)}
.v3-df{font-size:17px;max-width:430px;color:rgba(255,255,255,.74)}
.v3-ph{font-size:15px}
.v3-plw.play-beat{animation:vfxPlayBeat .1s cubic-bezier(.03,.92,.1,1) forwards}
@keyframes vfxPlayBeat{0%{transform:scale(1)}22%{transform:scale(1.42)}46%{transform:scale(.86)}100%{transform:scale(1)}}


/* Beat drop v2: five hard word hits, sharper spelling hits, stronger live flash. */
.v3-stage{min-height:540px;background:radial-gradient(circle at 50% 50%,rgba(255,232,160,.18),rgba(192,132,252,.11) 22%,rgba(192,132,252,.035) 45%,#08060F 78%),linear-gradient(180deg,#10101f 0%,#08060F 100%);border-color:rgba(192,132,252,.44);box-shadow:0 0 0 1px rgba(192,132,252,.18),0 46px 170px rgba(0,0,0,.76),0 0 230px rgba(192,132,252,.32),inset 0 0 250px rgba(192,132,252,.14)}
.v3-stage.live-mode{box-shadow:0 0 0 1px rgba(192,132,252,.34),0 48px 190px rgba(0,0,0,.8),0 0 270px rgba(192,132,252,.38),inset 0 0 280px rgba(192,132,252,.16)}
.vfx-speed{background:repeating-linear-gradient(100deg,rgba(255,232,160,0) 0 24px,rgba(255,255,255,.18) 25px,rgba(192,132,252,.62) 27px,rgba(255,232,160,0) 34px),repeating-linear-gradient(78deg,rgba(192,132,252,0) 0 58px,rgba(192,132,252,.18) 59px,rgba(192,132,252,0) 65px);filter:blur(.25px)}
@keyframes vfxSpeedRip{0%{opacity:1;transform:translate3d(-16%,0,0) skewX(-16deg) scaleX(.7)}100%{opacity:0;transform:translate3d(24%,0,0) skewX(-16deg) scaleX(1.34)}}
.vfx-speed.fire{animation:vfxSpeedRip .12s linear forwards}
.vfx-shock{background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.86),rgba(255,232,160,.48) 10%,rgba(192,132,252,.2) 23%,rgba(192,132,252,0) 62%)}
@keyframes vfxShockPop{0%{opacity:1;transform:scale(.08)}40%{opacity:.96;transform:scale(1.18)}100%{opacity:0;transform:scale(2.15)}}
.vfx-shock.fire{animation:vfxShockPop .12s cubic-bezier(.02,.94,.08,1) forwards}
.vfx-burst{filter:blur(0);inset:-12% -8%}
@keyframes vfxBurstAnim{0%{opacity:1;transform:scale(.06) rotate(0deg)}34%{opacity:1;transform:scale(1.22) rotate(22deg)}100%{opacity:0;transform:scale(3.05) rotate(60deg)}}
.vfx-burst.fire{animation:vfxBurstAnim .13s linear forwards}
.v3-eq{height:138px;padding-top:6px}
.v3-eqb{box-shadow:0 0 28px rgba(192,132,252,.52),0 0 70px rgba(192,132,252,.24)}
.vfx-scan{height:8px;box-shadow:0 0 36px rgba(255,255,255,.72),0 0 68px rgba(192,132,252,1),0 0 110px rgba(192,132,252,.58)}
.vfx-scan.fire{animation:vfxScanAnim .065s linear forwards}
@keyframes v3fo{0%{opacity:.48}100%{opacity:0}}
.v3-fl.fire{animation:v3fo .09s linear forwards}
@keyframes vfxStageBeat{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}16%{transform:scale(1.075) translate3d(-12px,-8px,0);filter:brightness(1.72)}34%{transform:scale(.94) translate3d(11px,8px,0);filter:brightness(1.12)}56%{transform:scale(1.04) translate3d(-6px,-4px,0);filter:brightness(1.34)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-stage.stage-beat{animation:vfxStageBeat .052s linear forwards}
@keyframes vfxStageRattle{0%{transform:scale(1) translate3d(0,0,0)}20%{transform:scale(1.044) translate3d(-10px,-3px,0)}42%{transform:scale(.952) translate3d(10px,4px,0)}72%{transform:scale(1.02) translate3d(-4px,0,0)}100%{transform:scale(1) translate3d(0,0,0)}}
.v3-stage.stage-rattle{animation:vfxStageRattle .05s linear forwards}
@keyframes vfxStagePulse{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}14%{transform:scale(1.09) translate3d(-14px,-10px,0);filter:brightness(1.9)}30%{transform:scale(.93) translate3d(13px,10px,0);filter:brightness(1.12)}50%{transform:scale(1.05) translate3d(-7px,-5px,0);filter:brightness(1.42)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-stage.stage-pulse{animation:vfxStagePulse .1s cubic-bezier(.02,.94,.08,1) forwards}
.v3-word{font-size:138px;letter-spacing:-1.6px;text-shadow:0 0 18px rgba(255,255,255,.3),0 0 56px rgba(192,132,252,.62),0 0 150px rgba(192,132,252,.34),0 0 230px rgba(192,132,252,.18)}
.v3-word.word-accent{color:#fff8d6!important;text-shadow:0 0 14px rgba(255,255,255,1),0 0 60px rgba(192,132,252,1),0 0 170px rgba(192,132,252,.78),0 0 260px rgba(192,132,252,.34)}
@keyframes vfxWordHit{0%{transform:scale(1) translate3d(0,0,0) rotate(0);filter:brightness(1)}15%{transform:scale(1.54) translate3d(0,-32px,0) rotate(-2deg);filter:brightness(1.9)}34%{transform:scale(.8) translate3d(0,16px,0) rotate(1.2deg);filter:brightness(1.05)}58%{transform:scale(1.18) translate3d(0,-8px,0) rotate(-.45deg);filter:brightness(1.38)}100%{transform:scale(1) translate3d(0,0,0) rotate(0);filter:brightness(1)}}
@keyframes vfxWordSlam{0%{transform:scale(.62) translate3d(0,38px,0) rotate(0);filter:brightness(.78)}12%{transform:scale(1.92) translate3d(0,-44px,0) rotate(-2.6deg);filter:brightness(2.05)}28%{transform:scale(.72) translate3d(0,22px,0) rotate(1.7deg);filter:brightness(1)}48%{transform:scale(1.3) translate3d(0,-12px,0) rotate(-.6deg);filter:brightness(1.48)}100%{transform:scale(1) translate3d(0,0,0) rotate(0);filter:brightness(1)}}
@keyframes vfxWordGhost{0%{transform:scale(1) translate3d(0,0,0)}26%{transform:scale(1.24) translate3d(0,-15px,0)}100%{transform:scale(1) translate3d(0,0,0)}}
@keyframes vfxWordStrobe{0%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}22%{transform:scale(1.34) translate3d(0,-20px,0);filter:brightness(1.8)}48%{transform:scale(.86) translate3d(0,9px,0);filter:brightness(1.1)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-word.word-hit{animation:vfxWordHit .074s linear forwards}
.v3-word.word-slam{animation:vfxWordSlam .104s cubic-bezier(.02,.94,.08,1) forwards}
.v3-word.word-ghost{animation:vfxWordGhost .044s linear forwards}
.v3-word.word-strobe{animation:vfxWordStrobe .048s linear forwards}
.v3-spell span{min-width:30px;height:38px;font-size:17px;border-color:rgba(192,132,252,.38);background:rgba(6,6,12,.82)}
.v3-spell span.hit{transform:translateY(-13px) scale(1.5);box-shadow:0 0 34px rgba(255,255,255,.36),0 0 46px rgba(192,132,252,.9),0 0 92px rgba(192,132,252,.4)}
.v3-df{font-size:18px;color:rgba(255,255,255,.82);text-shadow:0 0 26px rgba(192,132,252,.12)}
.v3-plw.play-beat{animation:vfxPlayBeat .082s cubic-bezier(.02,.94,.08,1) forwards}
@keyframes vfxPlayBeat{0%{transform:scale(1)}22%{transform:scale(1.52)}46%{transform:scale(.8)}100%{transform:scale(1)}}


/* Meaning challenge timing: hide the answer until the definition is spoken. */
.v3-ph{font-size:24px!important;margin-top:18px!important;color:#C084FC;text-shadow:0 0 20px rgba(192,132,252,.42);letter-spacing:.5px}
.v3-df.meaning-prompt{font-family:'Space Mono',monospace;font-size:15px!important;letter-spacing:1.6px;text-transform:uppercase;color:rgba(192,132,252,.72)!important;border:1px solid rgba(192,132,252,.26);background:rgba(192,132,252,.065);padding:10px 18px;border-radius:999px;max-width:max-content;box-shadow:0 0 28px rgba(192,132,252,.12)}
.v3-df.def-reveal{font-size:22px!important;color:#fff!important;font-weight:500;letter-spacing:.5px;border:1px solid rgba(192,132,252,.48);background:rgba(6,6,12,.54);padding:12px 28px;border-radius:14px;max-width:520px;text-shadow:0 0 26px rgba(192,132,252,.2),0 0 8px rgba(255,255,255,.18);box-shadow:0 0 36px rgba(192,132,252,.18),inset 0 0 22px rgba(192,132,252,.05)}


/* Livestream retention pass: stronger prompt, clearer reveal payoff, sharper cadence. */
.v3-df.meaning-prompt{font-size:17px!important;font-weight:600;letter-spacing:2.2px;color:rgba(255,232,160,.92)!important;border:1px solid rgba(192,132,252,.42);background:linear-gradient(180deg,rgba(192,132,252,.16),rgba(192,132,252,.08));padding:12px 22px;box-shadow:0 0 42px rgba(192,132,252,.2),inset 0 0 22px rgba(192,132,252,.08);animation:promptPulse 1.02s ease-in-out infinite}
@keyframes promptPulse{0%,100%{transform:translateY(0) scale(1);filter:brightness(1)}50%{transform:translateY(-2px) scale(1.04);filter:brightness(1.18)}}
.v3-df.def-reveal{font-size:24px!important;font-weight:700;letter-spacing:.8px;border:1px solid rgba(255,232,160,.68);background:linear-gradient(180deg,rgba(24,18,8,.88),rgba(6,6,12,.68));box-shadow:0 0 46px rgba(192,132,252,.26),inset 0 0 28px rgba(255,232,160,.08)}
.v3-df.def-reveal.reveal-flash{animation:revealPop .34s cubic-bezier(.02,.94,.08,1) forwards}
@keyframes revealPop{0%{transform:scale(.78) translateY(18px);opacity:0;filter:brightness(1.8)}38%{transform:scale(1.08) translateY(-4px);opacity:1;filter:brightness(1.24)}100%{transform:scale(1) translateY(0);opacity:1;filter:brightness(1)}}
.v3-stage.reveal-hit{animation:revealStage .18s cubic-bezier(.02,.94,.08,1) forwards}
@keyframes revealStage{0%{transform:scale(1);filter:brightness(1)}24%{transform:scale(1.05) translate3d(-10px,-6px,0);filter:brightness(1.88)}52%{transform:scale(.96) translate3d(9px,7px,0);filter:brightness(1.12)}100%{transform:scale(1) translate3d(0,0,0);filter:brightness(1)}}
.v3-ph{font-size:26px!important;letter-spacing:.8px;text-shadow:0 0 24px rgba(192,132,252,.54),0 0 8px rgba(255,255,255,.12)}


/* Humanized visual pass: less AI glow, less stripe noise, more restraint. */
.v3-stage{background:radial-gradient(circle at 50% 46%,rgba(192,132,252,.12),rgba(192,132,252,.045) 24%,rgba(6,6,12,.02) 42%,#08060F 78%),linear-gradient(180deg,#0d0c11 0%,#07070b 100%)!important;box-shadow:0 0 0 1px rgba(192,132,252,.1),0 28px 86px rgba(0,0,0,.56),0 0 90px rgba(192,132,252,.08),inset 0 0 120px rgba(192,132,252,.04)!important}
.v3-stage.live-mode{box-shadow:0 0 0 1px rgba(192,132,252,.16),0 30px 94px rgba(0,0,0,.6),0 0 110px rgba(192,132,252,.1),inset 0 0 140px rgba(192,132,252,.05)!important}
.vfx-speed{inset:8% 10% 22% 10%!important;opacity:0!important;background:repeating-linear-gradient(102deg,rgba(255,232,160,0) 0 52px,rgba(192,132,252,.08) 53px,rgba(255,232,160,0) 60px)!important;filter:blur(.6px)!important;mix-blend-mode:screen!important}
.vfx-speed.fire{animation:vfxSpeedSoft .22s linear forwards!important}
@keyframes vfxSpeedSoft{0%{opacity:.18;transform:translate3d(-3%,0,0) skewX(-10deg)}100%{opacity:0;transform:translate3d(4%,0,0) skewX(-10deg)}}
.vfx-shock{background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.16),rgba(255,232,160,.12) 14%,rgba(192,132,252,.06) 24%,rgba(192,132,252,0) 58%)!important;mix-blend-mode:screen!important}
.vfx-shock.fire{animation:vfxShockSoft .18s cubic-bezier(.08,.82,.18,1) forwards!important}
@keyframes vfxShockSoft{0%{opacity:.36;transform:scale(.22)}100%{opacity:0;transform:scale(1.36)}}
.vfx-burst{filter:blur(1.2px)!important;inset:10% 8%!important;opacity:0!important;background:conic-gradient(from 0deg,rgba(192,132,252,0) 0deg,rgba(192,132,252,.26) 38deg,rgba(192,132,252,0) 72deg,rgba(255,232,160,.12) 126deg,rgba(192,132,252,0) 168deg,rgba(192,132,252,.18) 254deg,rgba(192,132,252,0) 300deg,rgba(255,232,160,.1) 332deg,rgba(192,132,252,0) 360deg)!important}
.vfx-burst.fire{animation:vfxBurstSoft .2s linear forwards!important}
@keyframes vfxBurstSoft{0%{opacity:.42;transform:scale(.42)}100%{opacity:0;transform:scale(1.42)}}
.v3-eq{height:104px!important;padding-top:10px!important}
.v3-eqb{box-shadow:0 0 10px rgba(192,132,252,.18),0 0 18px rgba(192,132,252,.08)!important}
.vfx-scan{height:4px!important;box-shadow:0 0 16px rgba(192,132,252,.42)!important}
.vfx-scan.fire{animation:vfxScanSoft .11s linear forwards!important}
@keyframes vfxScanSoft{0%{top:0;opacity:.26;transform:scaleX(.96)}100%{top:100%;opacity:0;transform:scaleX(1)}}
.v3-fl.fire{animation:v3foSoft .12s linear forwards!important}
@keyframes v3foSoft{0%{opacity:.12}100%{opacity:0}}
.v3-word{font-size:132px!important;letter-spacing:-1.2px!important;text-shadow:0 0 10px rgba(255,255,255,.12),0 0 24px rgba(192,132,252,.16),0 0 56px rgba(192,132,252,.08)!important}
.v3-word.word-accent{color:#fff6de!important;text-shadow:0 0 12px rgba(255,255,255,.22),0 0 30px rgba(192,132,252,.22),0 0 64px rgba(192,132,252,.1)!important}
.v3-stage.live-mode .v3-word{filter:none!important}
.v3-df.meaning-prompt{font-size:16px!important;letter-spacing:1.4px!important;background:rgba(192,132,252,.055)!important;border-color:rgba(192,132,252,.24)!important;box-shadow:0 0 16px rgba(192,132,252,.08)!important;animation:promptPulseSoft 1.2s ease-in-out infinite!important}
@keyframes promptPulseSoft{0%,100%{transform:translateY(0) scale(1);filter:brightness(1)}50%{transform:translateY(-1px) scale(1.02);filter:brightness(1.06)}}
.v3-df.def-reveal{font-size:22px!important;background:rgba(10,10,14,.78)!important;border-color:rgba(192,132,252,.3)!important;box-shadow:0 0 18px rgba(192,132,252,.08),inset 0 0 18px rgba(192,132,252,.03)!important;text-shadow:none!important}
.v3-df.def-reveal.reveal-flash{animation:revealPopSoft .24s cubic-bezier(.12,.8,.18,1) forwards!important}
@keyframes revealPopSoft{0%{transform:scale(.94) translateY(8px);opacity:0}40%{transform:scale(1.02) translateY(-1px);opacity:1}100%{transform:scale(1) translateY(0);opacity:1}}
.v3-stage.reveal-hit{animation:revealStageSoft .12s ease-out forwards!important}
@keyframes revealStageSoft{0%{transform:scale(1);filter:brightness(1)}32%{transform:scale(1.012);filter:brightness(1.08)}100%{transform:scale(1);filter:brightness(1)}}
.v3-ph{font-size:22px!important;text-shadow:0 0 10px rgba(192,132,252,.2)!important;color:#f4b33a!important}

@keyframes lexis-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* Speech-state pass: keep the stage alive while the voice leads. */
.v3-stage.tts-active{border-color:rgba(192,132,252,.24)!important;box-shadow:0 0 0 1px rgba(192,132,252,.14),0 30px 96px rgba(0,0,0,.62),0 0 120px rgba(192,132,252,.12),inset 0 0 150px rgba(192,132,252,.06)!important}
.v3-stage.tts-word .v3-word{letter-spacing:-.8px;text-shadow:0 0 12px rgba(255,255,255,.18),0 0 28px rgba(192,132,252,.18),0 0 72px rgba(192,132,252,.08)!important}
.v3-stage.tts-spell .v3-spell.on{filter:drop-shadow(0 0 18px rgba(192,132,252,.18))}
.v3-stage.tts-def .v3-df.def-reveal{box-shadow:0 0 22px rgba(192,132,252,.12),inset 0 0 18px rgba(192,132,252,.04)!important}
.v3-ex.live-cue{font-family:'Space Mono',monospace;font-size:12px!important;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,.54)!important;opacity:1!important;min-height:18px;margin-top:18px;text-shadow:none;transition:color .16s ease,transform .16s ease,opacity .16s ease}
.v3-ex.live-cue.cue-word{color:rgba(255,232,160,.72)!important}
.v3-ex.live-cue.cue-spell{color:rgba(192,132,252,.88)!important;letter-spacing:2.6px}
.v3-ex.live-cue.cue-def{color:rgba(255,255,255,.78)!important}

@media (max-width: 1024px) {
  .hero,
  .panel-grid,
  .feature-grid,
  .deck-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(100vw - 24px, 1180px);
  }

  .site-nav {
    padding: 0 12px;
  }

  .site-links {
    gap: 2px;
  }

  .site-link {
    padding-inline: 9px;
  }

  .page-shell {
    padding-top: 28px;
  }

  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .field-row,
  .week-grid {
    grid-template-columns: 1fr;
  }

  .week-cell {
    min-height: 90px;
  }
}

@media (max-width: 640px) {
  .site-links {
    display: none;
  }

  .hero-stage {
    min-height: 380px;
  }

  .hero-preview {
    padding: 20px;
  }

  .hero-word {
    letter-spacing: 3px;
  }

  .v3-word {
    letter-spacing: 3px;
  }

  .v3-brow,
  .v3-mr {
    flex-wrap: wrap;
  }
}


.deck-catalog-section {
  padding-top: 8px;
}

.compact-head {
  margin-bottom: 18px;
}

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

.deck-category-card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.deck-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.48);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32), 0 0 28px rgba(192, 132, 252, 0.08);
}

.deck-category-top,
.deck-category-meta,
.deck-category-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.deck-category-badge,
.deck-category-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
}

.deck-category-badge {
  color: var(--accent);
  border: 1px solid rgba(192, 132, 252, 0.22);
  background: rgba(192, 132, 252, 0.07);
  border-radius: 999px;
  padding: 5px 10px;
}

.deck-category-count {
  color: rgba(255, 255, 255, 0.74);
}

.deck-category-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 1px;
  line-height: 0.95;
}

.deck-category-copy {
  margin: 0;
  color: var(--text-2);
  line-height: 1.7;
}

.deck-category-meta {
  color: var(--text-3);
  font-size: 13px;
}

.deck-category-actions .button {
  min-width: 148px;
  justify-content: center;
}

.library-front-page,
.admin-page {
  display: grid;
  gap: 28px;
}

.admin-config-panel {
  padding: 26px;
}

.admin-field-grid {
  max-width: 760px;
}

.admin-grid .deck-category-card {
  min-height: 250px;
}

@media (max-width: 1024px) {
  .deck-category-grid {
    grid-template-columns: 1fr;
  }
}


/* Study Minimal v3 */
.site-logo {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  color: #ffffff !important;
  text-decoration: none;
}

.site-logo span {
  color: #C084FC !important;
}

.v3-stage {
  background: #06050D !important;
  border: 0.5px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

.v3-stage::before,
.v3-stage::after,
.vfx-grid,
.vfx-speed,
.vfx-burst,
.vfx-shock,
.vfx-breath,
.v3-fl,
.v3-ring {
  opacity: 0 !important;
}

.v3-live {
  background: transparent !important;
  border: 0.5px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  color: rgba(255,255,255,0.5) !important;
  backdrop-filter: none !important;
}

.v3-live span,
.v3-live.on span {
  background: rgba(192, 132, 252, 0.6) !important;
  box-shadow: none !important;
}

.v3-hdr {
  margin-bottom: 10px !important;
}

.v3-cnt {
  color: rgba(255,255,255,0.42) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.v3-eq {
  height: 26px !important;
  padding: 5px 12px 0 !important;
}

.v3-eqb {
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

.stage-sep {
  position: relative;
  height: 5px;
  margin: 0 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(192, 132, 252, 0) 0%,
      rgba(192, 132, 252, 0.18) 5%,
      rgba(192, 132, 252, 0.54) 14%,
      rgba(226, 204, 255, 0.98) 50%,
      rgba(192, 132, 252, 0.54) 86%,
      rgba(192, 132, 252, 0.18) 95%,
      rgba(192, 132, 252, 0) 100%);
  box-shadow:
    0 0 16px rgba(192, 132, 252, 0.34),
    0 0 42px rgba(192, 132, 252, 0.18),
    0 0 82px rgba(192, 132, 252, 0.10);
  opacity: 1;
}

.stage-sep::before {
  content: '';
  position: absolute;
  inset: -10px -18px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%,
    rgba(244, 232, 255, 0.34) 0%,
    rgba(214, 172, 255, 0.18) 20%,
    rgba(192, 132, 252, 0.08) 42%,
    rgba(192, 132, 252, 0) 72%);
  filter: blur(12px);
  opacity: 0.85;
  pointer-events: none;
  transform-origin: center center;
  animation: stageSepGlow 2.2s ease-in-out infinite;
}

.stage-sep::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 224, 255, 0.58) 0%, rgba(208, 162, 255, 0.28) 48%, rgba(192, 132, 252, 0) 100%);
  filter: blur(1px);
  pointer-events: none;
  transform-origin: center center;
  animation: stageSepCore 2.2s ease-in-out infinite;
}

@keyframes stageSepGlow {
  0%, 100% {
    opacity: 0.42;
    transform: scaleX(0.18);
  }
  55% {
    opacity: 0.98;
    transform: scaleX(1);
  }
}

@keyframes stageSepCore {
  0%, 100% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scaleX(0.28);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(1.08);
  }
}

.v3-body {
  padding-top: 18px !important;
}

.v3-pos {
  color: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  letter-spacing: 2px !important;
  border-radius: 4px !important;
  padding: 4px 9px !important;
}

.v3-word {
  font-family: 'Playfair Display', serif !important;
  font-size: 108px !important;
  font-weight: 300 !important;
  letter-spacing: 1px !important;
  color: #ffffff !important;
  line-height: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}

.v3-word.word-accent {
  color: #ffffff !important;
  text-shadow: none !important;
}

.v3-ph {
  color: rgba(192, 132, 252, 0.72) !important;
  font-size: 20px !important;
  text-shadow: none !important;
}

.v3-df {
  color: rgba(255,255,255,0.55) !important;
  font-weight: 300 !important;
  text-shadow: none !important;
  max-width: 520px !important;
}

.v3-ex {
  color: rgba(255,255,255,0.34) !important;
  font-style: normal;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.v3-ex.live-cue,
.v3-ex.live-cue.cue-word,
.v3-ex.live-cue.cue-spell,
.v3-ex.live-cue.cue-def {
  color: rgba(255,255,255,0.66) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-style: normal;
}

.v3-phasebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: 18px auto 10px;
  padding: 6px;
  border: 1px solid rgba(192, 132, 252, 0.18);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.52);
  box-shadow: 0 0 24px rgba(192, 132, 252, 0.07), inset 0 0 18px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.v3-phase {
  min-width: 72px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  text-align: center;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.v3-phase.done {
  color: rgba(255, 232, 160, 0.84);
  border-color: rgba(255, 232, 160, 0.12);
  background: rgba(255, 232, 160, 0.04);
}

.v3-phase.on {
  color: #fff;
  border-color: rgba(255, 232, 160, 0.36);
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.2), rgba(192, 132, 252, 0.08));
  box-shadow: 0 0 24px rgba(192, 132, 252, 0.18), inset 0 0 18px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.v3-crowd {
  min-height: 21px;
  margin: 0 auto 14px;
  max-width: 620px;
  padding: 0 18px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  text-shadow: 0 0 18px rgba(192, 132, 252, 0.08);
}

.quiz-hud {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(710px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 14, 28, 0.82), rgba(8, 7, 12, 0.66));
  box-shadow: 0 0 28px rgba(192, 132, 252, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.02);
  transition: box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.quiz-hud.countdown-live {
  border-color: rgba(255, 232, 160, 0.24);
  box-shadow: 0 0 34px rgba(192, 132, 252, 0.18), inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.quiz-hud-text {
  flex: 0 1 260px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(232, 205, 255, 0.96);
  font-family: 'Inter', sans-serif;
  text-align: center;
  text-shadow: 0 0 18px rgba(192, 132, 252, 0.14);
}

.quiz-hud-bar {
  display: block;
  position: relative;
  flex: 1 1 auto;
  min-width: 140px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 0 16px rgba(0, 0, 0, 0.28);
}

.quiz-hud-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

.quiz-hud-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 232, 160, 0.96), rgba(192, 132, 252, 0.96) 34%, rgba(255, 255, 255, 0.98) 52%, rgba(192, 132, 252, 0.94) 72%, rgba(255, 232, 160, 0.9));
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.42), 0 0 36px rgba(255, 232, 160, 0.16);
}

.v3-df.meaning-prompt {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: rgba(236, 214, 255, 0.92) !important;
  border: 1px solid rgba(192, 132, 252, 0.22) !important;
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.09), rgba(192, 132, 252, 0.03)) !important;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.1) !important;
  padding: 10px 24px !important;
  max-width: 620px !important;
  border-radius: 999px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  animation: promptPulseSoft 1.1s ease-in-out infinite !important;
}

.v3-df.def-reveal {
  border: 1px solid rgba(255, 232, 160, 0.34) !important;
  background: radial-gradient(circle at 50% 0%, rgba(255, 232, 160, 0.08), transparent 58%), linear-gradient(180deg, rgba(24, 18, 8, 0.8), rgba(8, 7, 12, 0.76)) !important;
  box-shadow: 0 0 36px rgba(192, 132, 252, 0.18), inset 0 0 22px rgba(255, 255, 255, 0.03) !important;
  padding: 14px 28px !important;
  color: rgba(255,255,255,0.96) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  border-radius: 18px !important;
  max-width: 620px !important;
  text-shadow: 0 0 24px rgba(192, 132, 252, 0.18) !important;
}

.v3-df.def-reveal.reveal-flash {
  animation: revealPopStrong .34s cubic-bezier(.12,.84,.18,1) forwards !important;
}

.v3-stage.phase-guess .quiz-hud,
.quiz-hud.countdown-live {
  background: linear-gradient(180deg, rgba(24, 16, 38, 0.88), rgba(10, 8, 16, 0.74));
}

.v3-stage.phase-reveal .v3-df.def-reveal {
  box-shadow: 0 0 52px rgba(192, 132, 252, 0.24), inset 0 0 26px rgba(255, 255, 255, 0.04) !important;
}

@keyframes revealPopStrong {
  0% {
    transform: scale(0.96);
    opacity: 0.52;
  }
  60% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.v3b {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
}

.v3b:hover {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.5) !important;
}

.v3b.on {
  background: rgba(255,255,255,0.04) !important;
  color: rgba(192,132,252,0.7) !important;
  border-color: rgba(192,132,252,0.22) !important;
}

.v3-pli {
  background: #C084FC !important;
  color: #06050D !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.v3-pli::before,
.v3-pli::after {
  display: none !important;
}

.v3-plw.on .v3-pli {
  background: #C084FC !important;
  color: #06050D !important;
}

.v3-dot.on {
  background: #C084FC !important;
}

.v3-pbar {
  height: 2px !important;
  background: rgba(255,255,255,0.06) !important;
}

.v3-pfill {
  background: #C084FC !important;
  opacity: 0.5 !important;
  box-shadow: none !important;
}

.v3-mb {
  color: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
  border-radius: 6px !important;
}

.v3-mb.on {
  color: rgba(192, 132, 252, 0.7) !important;
  border-color: rgba(192, 132, 252, 0.22) !important;
  background: rgba(192, 132, 252, 0.08) !important;
}

#v3sl {
  accent-color: #C084FC !important;
}

.v3-stage.tts-active,
.v3-stage.live-mode,
.v3-stage.idle-attract,
.v3-stage.reveal-hit {
  box-shadow: none !important;
  border-color: rgba(255,255,255,0.06) !important;
}

.v3-stage.stage-beat,
.v3-stage.stage-rattle,
.v3-stage.stage-pulse,
.v3-stage.stage-ghost {
  animation-duration: 0.01s !important;
}

.v3-word.word-hit,
.v3-word.word-slam,
.v3-word.word-ghost,
.v3-word.word-strobe {
  animation-duration: 0.01s !important;
}


/* Beat Memory TikTok Pass */
.v3-stage.beat-flash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  animation: beatFlash 80ms ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes beatFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.quiz-hud-text,
.meaning-prompt {
  font-size: clamp(18px, 3vw, 28px) !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  animation: promptPulse 0.6s ease-in-out infinite alternate !important;
}

@keyframes promptPulse {
  from { opacity: 0.7; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.02); }
}

.v3-word {
  transition: transform 0.12s cubic-bezier(0.22,1,0.36,1), color 0.08s ease-out !important;
}

.v3-stage.stage-beat,
.v3-stage.stage-rattle,
.v3-stage.stage-pulse,
.v3-word.word-hit,
.v3-word.word-slam,
.v3-word.word-ghost,
.v3-word.word-strobe {
  animation-duration: 0.08s !important;
}
/* Nebula purple final overrides */
body {
  background: #08060F;
}

body::before {
  background:
    radial-gradient(circle at top left, rgba(192,132,252,0.10), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.03), transparent 28%);
}

.site-nav {
  background: rgba(8, 6, 15, 0.97) !important;
}

.site-link.active {
  color: #C084FC !important;
  background: rgba(192, 132, 252, 0.10) !important;
}

.site-logo span,
.hero-title span,
.hero-preview-count,
.deck-count,
.dk-cnt,
.stat-num,
.hs-num {
  color: #C084FC !important;
}

.hero-stage,
.panel,
.deck-card,
.dk,
.admin-config-panel,
.input,
textarea,
select {
  background-color: #0E0B18;
}

.deck-card:hover,
.dk:hover,
.hero-stage:hover {
  border-color: rgba(192, 132, 252, 0.30) !important;
}

.v3-stage {
  background: radial-gradient(circle at 50% 46%, rgba(192,132,252,0.12), rgba(192,132,252,0.045) 24%, rgba(6,5,13,0.02) 42%, #06050D 78%), linear-gradient(180deg, #0D0A17 0%, #06050D 100%) !important;
  border-color: rgba(192,132,252,0.24) !important;
  box-shadow: 0 0 0 1px rgba(192,132,252,0.10), 0 28px 86px rgba(0,0,0,0.56), 0 0 90px rgba(192,132,252,0.08), inset 0 0 120px rgba(192,132,252,0.04) !important;
}

.v3-stage.live-mode,
.v3-stage.tts-active {
  border-color: rgba(192,132,252,0.24) !important;
  box-shadow: 0 0 0 1px rgba(192,132,252,0.14), 0 30px 96px rgba(0,0,0,0.62), 0 0 120px rgba(192,132,252,0.12), inset 0 0 150px rgba(192,132,252,0.06) !important;
}

.v3-live,
.v3-cnt,
.v3-pos,
.v3-mb.on,
.v3b.on,
.quiz-hud,
.v3-df.meaning-prompt,
.v3-df.def-reveal {
  border-color: rgba(192,132,252,0.24) !important;
}

.v3-live span,
.v3-live.on span,
.quiz-hud-fill,
.v3-pfill,
.v3-dot.on {
  background: #C084FC !important;
}

.v3-ph,
.v3-pos,
.v3-mb.on,
.v3-ex.live-cue.cue-spell,
.hero-stats strong,
.deck-count,
.dk-cnt,
.stat-num,
.hs-num {
  color: #C084FC !important;
}

.v3-dot.done {
  background: rgba(192,132,252,0.30) !important;
}

.v3-ring {
  border-color: #C084FC !important;
}

.v3-fl,
.vfx-scan {
  background: #C084FC !important;
}

.vfx-breath {
  background: radial-gradient(circle at 50% 52%, rgba(192,132,252,0.22), rgba(192,132,252,0.10) 30%, rgba(192,132,252,0) 70%) !important;
}

.v3-pli,
.play-inner {
  color: #C084FC !important;
  border-color: rgba(192,132,252,0.28) !important;
  background: #06050D !important;
}

.v3-plw.on .v3-pli,
.play-wrap.playing .play-inner,
.cplay {
  background: #C084FC !important;
  color: #1A0A2E !important;
  border-color: transparent !important;
}

.v3-pli::before {
  border-color: rgba(192,132,252,0.40) !important;
}

.v3-pli::after {
  border-color: rgba(192,132,252,0.18) !important;
}

.v3-plw.on .v3-pli::before {
  border-color: rgba(26, 10, 46, 0.32) !important;
}

.v3-plw.on .v3-pli::after {
  border-color: rgba(26, 10, 46, 0.16) !important;
}

.v3-eqb {
  background: rgba(192,132,252,0.14) !important;
}

input[type="range"] {
  accent-color: #C084FC !important;
}



.auth-page-shell {
  width: min(100%, 540px);
}

.auth-panel,
.admin-section-panel,
.admin-search-panel {
  background: #0E0B18;
}

.auth-panel {
  padding: 28px;
}

.auth-head {
  margin-bottom: 18px;
}

.auth-form {
  margin-top: 12px;
}

.auth-actions {
  margin-top: 6px;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0.5px solid rgba(192, 132, 252, 0.22);
  background: rgba(192, 132, 252, 0.08);
  color: #ffffff;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

.site-logout-button,
.site-auth-link {
  min-height: 34px;
}

.unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 3, 8, 0.76);
  backdrop-filter: blur(10px);
}

.unlock-overlay.hidden {
  display: none;
}

.unlock-card {
  width: min(100%, 480px);
  padding: 26px;
  border-radius: 22px;
  background: #0E0B18;
  border: 0.5px solid rgba(192, 132, 252, 0.24);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.unlock-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.unlock-fields {
  margin-top: 0;
}

.unlock-actions {
  margin-top: 6px;
}

.admin-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.admin-table th {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.admin-table td {
  color: rgba(255, 255, 255, 0.86);
}

.admin-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-search-result {
  margin-top: 16px;
}

.admin-search-panel {
  padding: 18px;
}

.hero-word {
  text-transform: lowercase;
}

.hero-pron-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-accent {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0.5px solid rgba(192,132,252,0.24);
  background: rgba(192,132,252,0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.72);
}

.v3-pron-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.v3-ph {
  margin-top: 0 !important;
  opacity: 1;
}

.v3-accent {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 0.5px solid rgba(192,132,252,0.24);
  background: rgba(192,132,252,0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.74);
  box-shadow: 0 0 14px rgba(192,132,252,0.08);
}

.v3-accent-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 0.5px solid rgba(192,132,252,0.24);
  background: rgba(192,132,252,0.08);
  box-shadow: 0 0 14px rgba(192,132,252,0.08);
}

.v3-accent-btn {
  min-width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.52);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.v3-accent-btn.on {
  background: rgba(192,132,252,0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 16px rgba(192,132,252,0.12);
}

.v3-accent-btn:focus-visible {
  outline: none;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(192,132,252,0.22);
}

.quiz-hud-fill {
  background: linear-gradient(90deg, rgba(255, 232, 160, 0.96), rgba(192, 132, 252, 0.96) 34%, rgba(255, 255, 255, 0.98) 52%, rgba(192, 132, 252, 0.94) 72%, rgba(255, 232, 160, 0.9)) !important;
}

.quiz-hud-text {
  letter-spacing: 0 !important;
}

.v3-df.meaning-prompt {
  letter-spacing: 0 !important;
}

@media (max-width: 768px) {
  .v3-phasebar {
    gap: 6px;
    padding: 5px;
  }

  .hero-pron-row,
  .v3-pron-row {
    gap: 8px;
  }

  .hero-accent,
  .v3-accent {
    font-size: 9px;
    letter-spacing: 1px;
    padding: 0 9px;
  }

  .v3-accent-btn {
    min-width: 44px;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .v3-phase {
    min-width: 0;
    padding: 6px 11px;
    font-size: 10px;
  }

  .v3-crowd {
    font-size: 12px;
    padding: 0 12px;
  }

  .quiz-hud {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  .quiz-hud-text {
    flex: 1 1 100%;
    font-size: 14px !important;
  }

  .quiz-hud-bar {
    min-width: 0;
  }

  .quiz-hud-num {
    min-width: 30px;
  }

  .v3-df.def-reveal {
    font-size: 23px !important;
    padding: 12px 20px !important;
  }

  .site-nav {
    padding: 0 14px;
  }

  .site-links {
    gap: 4px;
  }

  .site-nav-actions {
    gap: 6px;
  }

  .site-user-chip {
    display: none;
  }

  .auth-panel,
  .unlock-card,
  .admin-section-panel {
    padding: 20px;
  }

  .admin-table {
    min-width: 620px;
  }
}

/* Study visual pass: editorial interaction redesign */
body,
.v3,
.v3-df,
.v3-ex,
.v3-crowd,
.quiz-hud-text,
.v3-mb,
.v3b,
.site-link,
.site-logo {
  font-family: 'Inter', sans-serif !important;
}

.site-logo {
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}

.site-link,
.v3-mb,
.v3b,
.quiz-hud-text,
.v3-crowd,
.v3-blbl {
  font-weight: 400 !important;
}

.v3-mb.on,
.site-logo,
.site-link.active {
  font-weight: 500 !important;
}

.v3-word,
.word-main,
#wordMain {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: -0.5px !important;
  text-transform: lowercase !important;
}

.v3-ph,
.word-phonetic,
#wordPhonetic,
.bpm-value,
.word-counter,
.study-counter,
.v3-cnt,
.v3-bv,
.quiz-hud-num,
.v3-pos,
.v3-ex,
.v3-live,
.v3-phase {
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 300 !important;
}

.v3-df,
.word-def,
#wordDef {
  font-weight: 300 !important;
}

.v3-pron-row {
  margin-top: 16px !important;
}

.v3-ph {
  font-size: 18px !important;
}

.v3-phasebar,
.mode-row,
.tabs-row,
[class*="tab-row"],
[class*="mode-tabs"] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  width: min(560px, calc(100% - 28px)) !important;
  margin: 18px auto 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.v3-phase,
.mode-btn,
.tab-btn,
[class*="tab-item"] {
  min-width: 0 !important;
  padding: 6px 16px 8px !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 1.5px solid transparent !important;
  margin-bottom: -0.5px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.25) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: color 0.15s ease, border-color 0.15s ease !important;
}

.v3-phase.on,
.mode-btn.active,
.mode-btn.on,
.tab-btn.active,
[class*="tab-item"].active {
  color: #C084FC !important;
  background: transparent !important;
  border-bottom-color: #C084FC !important;
  transform: none !important;
}

.v3-phase.done {
  color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
}

.v3-crowd,
.quiz-status,
.status-box,
[class*="phase-hint"],
[class*="countdown-box"],
[class*="quiz-hint"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: min(560px, calc(100% - 28px)) !important;
  min-height: 0 !important;
  margin: 0 auto 10px !important;
  padding: 7px 12px !important;
  background: rgba(192, 132, 252, 0.05) !important;
  border: 0.5px solid rgba(192, 132, 252, 0.12) !important;
  border-radius: 7px !important;
  color: rgba(255, 255, 255, 0.30) !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  text-align: center !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.v3-crowd::before,
.quiz-status::before,
.status-box::before,
[class*="phase-hint"]::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C084FC;
  opacity: 0.7;
  flex-shrink: 0;
}

.quiz-hud {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: min(560px, calc(100% - 28px)) !important;
  margin: 0 auto !important;
  padding: 7px 12px !important;
  background: rgba(192, 132, 252, 0.05) !important;
  border: 0.5px solid rgba(192, 132, 252, 0.12) !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.quiz-hud::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C084FC;
  opacity: 0.7;
  flex-shrink: 0;
}

.quiz-hud-text {
  flex: 1 1 auto !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.30) !important;
  text-align: left !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  animation: none !important;
  transform: none !important;
  text-shadow: none !important;
}

.quiz-hud-bar,
.quiz-progress,
.countdown-bar,
[class*="progress-bar"] {
  width: 70px !important;
  min-width: 70px !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 1px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.quiz-hud-fill,
.quiz-progress-fill,
.countdown-fill,
[class*="progress-fill"] {
  height: 100% !important;
  border-radius: 1px !important;
  background: #C084FC !important;
  box-shadow: none !important;
}

.quiz-hud-num,
.countdown-num,
.quiz-num,
[class*="timer-num"] {
  min-width: 14px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  color: rgba(192, 132, 252, 0.7) !important;
  line-height: 1 !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

.v3-df.meaning-prompt {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.36) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0 !important;
  max-width: 560px !important;
  border-radius: 0 !important;
  animation: none !important;
}

.v3-df.def-reveal,
.reveal-btn,
.answer-btn,
[class*="reveal"],
[class*="answer-button"] {
  position: relative;
  border: 0.5px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 8px !important;
  padding: 14px 20px !important;
  text-align: center !important;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02) !important;
  transition: border-color 0.15s ease !important;
  box-shadow: none !important;
  max-width: 560px !important;
}

.v3-df.def-reveal:hover,
.reveal-btn:hover,
.answer-btn:hover,
[class*="reveal"]:hover {
  border-color: rgba(192, 132, 252, 0.30) !important;
}

.v3-df.def-reveal::before,
.reveal-btn::before,
.answer-btn::before,
[class*="reveal"]::before {
  content: '闁告娲濋惁婵嬪箛韫囨柡鍋?;
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: 6px;
}

.v3-df.def-reveal::after,
.reveal-btn::after,
.answer-btn::after,
[class*="reveal"]::after {
  content: '';
  display: block;
  width: 32px;
  height: 0.5px;
  background: rgba(192, 132, 252, 0.30);
  margin: 6px auto 0;
}

.v3-df.def-reveal,
.reveal-btn span,
.answer-btn span,
.reveal-text,
[class*="answer-text"] {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px !important;
  display: block;
  text-shadow: none !important;
}

@media (max-width: 768px) {
  .v3-phasebar,
  .v3-crowd,
  .quiz-hud,
  .v3-df.meaning-prompt,
  .v3-df.def-reveal {
    width: calc(100% - 20px) !important;
  }

  .quiz-hud {
    gap: 10px !important;
  }

  .quiz-hud-text {
    font-size: 11px !important;
  }

  .v3-df.def-reveal {
    font-size: 24px !important;
    padding: 12px 16px !important;
  }
}

/* Keep the study frame still: animate the word only */
.v3-stage.stage-beat,
.v3-stage.stage-ghost,
.v3-stage.stage-rattle,
.v3-stage.stage-pulse,
.v3-stage.reveal-hit {
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

/* Keep the answer area in one constant frame style */
.v3-crowd,
.quiz-hud,
.v3-df,
.v3-df.meaning-prompt,
.v3-df.def-reveal {
  width: min(560px, calc(100% - 28px)) !important;
  max-width: min(560px, calc(100% - 28px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 0.5px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
}

.v3-crowd,
.quiz-hud,
.v3-df.meaning-prompt,
.v3-df.def-reveal {
  padding: 14px 20px !important;
}

.v3-df {
  min-height: 84px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.v3-df.meaning-prompt {
  color: rgba(255, 255, 255, 0.46) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.v3-df.meaning-prompt::before,
.v3-df.meaning-prompt::after {
  content: none !important;
}

.v3-df.def-reveal {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px !important;
}

.v3-df.def-reveal::before,
.v3-df.def-reveal::after {
  content: none !important;
}

.v3-stage.phase-guess .quiz-hud,
.v3-stage.phase-reveal .v3-df.def-reveal,
.quiz-hud.countdown-live,
.v3-stage.reveal-hit,
.v3-df.def-reveal.reveal-flash {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: none !important;
  animation: none !important;
}

@media (max-width: 768px) {
  .v3-crowd,
  .quiz-hud,
  .v3-df,
  .v3-df.meaning-prompt,
  .v3-df.def-reveal {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }

  .v3-df.def-reveal {
    font-size: 24px !important;
  }
}

/* Final lock: keep the lower study panels in one unchanged frame */
#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal {
  width: min(560px, calc(100% - 28px)) !important;
  max-width: min(560px, calc(100% - 28px)) !important;
  min-height: 56px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 14px 20px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#v3crowd,
#quizHud,
#v3df {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

#v3crowd {
  margin-top: 12px !important;
  margin-bottom: 10px !important;
  color: rgba(255, 255, 255, 0.46) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-shadow: none !important;
}

#v3crowd::before,
#v3crowd::after,
#quizHud::before,
#quizHud::after,
#v3df::before,
#v3df::after,
#v3df.meaning-prompt::before,
#v3df.meaning-prompt::after,
#v3df.def-reveal::before,
#v3df.def-reveal::after {
  content: none !important;
}

#quizHud {
  gap: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

#quizHud .quiz-hud-text {
  flex: none !important;
  width: 100% !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.46) !important;
  text-align: center !important;
  line-height: 1.45 !important;
  text-shadow: none !important;
  animation: none !important;
  transform: none !important;
}

#quizHud .quiz-hud-bar,
#quizHud .quiz-hud-num {
  display: none !important;
}

#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#v3df.meaning-prompt {
  color: rgba(255, 255, 255, 0.46) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
  animation: none !important;
}

#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  color: #ffffff !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 30px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.15 !important;
  text-shadow: none !important;
  animation: none !important;
  transform: none !important;
}

.v3-stage.phase-guess #quizHud,
#quizHud.countdown-live,
.v3-stage.phase-reveal #v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  border-color: rgba(255, 255, 255, 0.10) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  #v3crowd,
  #quizHud,
  #v3df,
  #v3df.meaning-prompt,
  #v3df.def-reveal {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }

  #v3df.def-reveal,
  #v3df.def-reveal.reveal-flash {
    font-size: 24px !important;
  }
}

/* Chinese fallback fix: avoid tofu squares in study page */
#v3accentSwitch .v3-accent-btn,
#v3phase .v3-phase,
#v3crowd,
#quizHud .quiz-hud-text,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3ex,
#v3ps,
.v3-lbl,
.v3-live {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif !important;
}

#v3accentSwitch .v3-accent-btn,
#v3phase .v3-phase {
  letter-spacing: 0 !important;
}

#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  font-style: normal !important;
  letter-spacing: 0 !important;
}

/* Final fixed slots: the whole lower frame must never change */
#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  box-sizing: border-box !important;
  width: min(560px, calc(100% - 28px)) !important;
  max-width: min(560px, calc(100% - 28px)) !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 20px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  animation: none !important;
}

#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;
}

#v3crowd {
  margin-top: 12px !important;
  margin-bottom: 10px !important;
}

#quizHud {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#v3df.meaning-prompt,
#quizHud .quiz-hud-text,
#v3crowd {
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif !important;
  font-size: clamp(18px, 3vw, 26px) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

@media (max-width: 768px) {
  #v3crowd,
  #quizHud,
  #v3df,
  #v3df.meaning-prompt,
  #v3df.def-reveal,
  #v3df.def-reveal.reveal-flash {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 16px !important;
  }

  #v3df.def-reveal,
  #v3df.def-reveal.reveal-flash {
    font-size: clamp(16px, 4vw, 22px) !important;
  }
}

/* Final definition text lock: third box only changes content, never style */
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  color: rgba(255, 255, 255, 0.46) !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  transform: none !important;
  animation: none !important;
}

@media (max-width: 768px) {
  #v3df,
  #v3df.meaning-prompt,
  #v3df.def-reveal,
  #v3df.def-reveal.reveal-flash,
  .v3-stage.phase-reveal #v3df.def-reveal {
    font-size: 12px !important;
  }
}

/* Absolute layout lock: stage and lower three slots never shift */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  overflow-y: scroll;
}

.study-page {
  min-height: calc(100vh - 52px) !important;
}

.study-wrap {
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  min-width: 760px !important;
  margin: 0 auto !important;
}

.v3 {
  width: 100% !important;
}

.v3-stage {
  width: 100% !important;
  min-height: 640px !important;
  height: 640px !important;
  max-height: 640px !important;
}

.v3-body {
  padding: 18px 20px 16px !important;
}

.v3-ci {
  width: 100% !important;
  min-height: 420px !important;
  display: grid !important;
  grid-template-rows: auto auto auto auto auto 56px 56px 56px auto !important;
  justify-items: center !important;
  align-content: start !important;
  row-gap: 10px !important;
}

#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  justify-self: center !important;
  width: 560px !important;
  min-width: 560px !important;
  max-width: 560px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}

#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;
}

#v3crowd {
  grid-row: 6 !important;
}

#quizHud {
  grid-row: 7 !important;
}

#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  grid-row: 8 !important;
}

#v3ex {
  grid-row: 9 !important;
  min-height: 18px !important;
}

#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  color: rgba(255, 255, 255, 0.46) !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 820px) {
  .study-wrap {
    min-width: 0 !important;
    width: min(100%, 760px) !important;
  }

  .v3-stage {
    min-height: 620px !important;
    height: 620px !important;
    max-height: 620px !important;
  }

  .v3-ci {
    min-height: 404px !important;
  }

  #v3crowd,
  #quizHud,
  #v3df,
  #v3df.meaning-prompt,
  #v3df.def-reveal,
  #v3df.def-reveal.reveal-flash {
    width: calc(100% - 40px) !important;
    min-width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
  }
}

/* Restore countdown inside fixed middle slot without changing frame size */
#quizHud {
  display: grid !important;
  grid-template-columns: 1fr 180px 24px !important;
  align-items: center !important;
  justify-content: stretch !important;
  column-gap: 14px !important;
  padding: 0 18px !important;
}

#quizHud .quiz-hud-text {
  width: auto !important;
  min-width: 0 !important;
  flex: none !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#quizHud .quiz-hud-bar {
  display: block !important;
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  height: 6px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  justify-self: end !important;
}

#quizHud .quiz-hud-fill {
  display: block !important;
  width: 0%;
  height: 100% !important;
  border-radius: 999px !important;
  background: #C084FC !important;
  box-shadow: none !important;
}

#quizHud .quiz-hud-num {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  justify-self: end !important;
}

@media (max-width: 820px) {
  #quizHud {
    grid-template-columns: 1fr 110px 20px !important;
    column-gap: 10px !important;
    padding: 0 14px !important;
  }

  #quizHud .quiz-hud-bar {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
  }

  #quizHud .quiz-hud-num {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    font-size: 12px !important;
  }
}

/* Restore staggered reveal while keeping fixed frame size */
#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .22s ease, transform .22s ease !important;
}

#v3crowd {
  transform: translateY(10px) !important;
}

#quizHud {
  transform: translateY(10px) !important;
}

#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  transform: translateY(10px) !important;
}

.v3-stage.phase-look #v3crowd,
.v3-stage.phase-guess #v3crowd,
.v3-stage.phase-reveal #v3crowd {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.v3-stage.phase-guess #quizHud,
.v3-stage.phase-reveal #quizHud,
#quizHud.countdown-live {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-look #v3df,
.v3-stage.phase-guess #v3df,
.v3-stage.phase-reveal #v3df {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Absolute fixed panels: remove lower three boxes from normal flow entirely */
.v3-ci {
  position: relative !important;
  min-height: 470px !important;
  padding-bottom: 180px !important;
  display: block !important;
}

#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  width: 560px !important;
  min-width: 560px !important;
  max-width: 560px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

#v3crowd {
  top: 300px !important;
}

#quizHud {
  top: 366px !important;
}

#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  top: 432px !important;
}

#v3ex {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 500px !important;
  width: 560px !important;
  min-height: 18px !important;
  text-align: center !important;
}

#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-reveal #v3df.def-reveal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;
}

#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .22s ease !important;
}

.v3-stage.phase-look #v3crowd,
.v3-stage.phase-guess #v3crowd,
.v3-stage.phase-reveal #v3crowd {
  opacity: 1 !important;
  visibility: visible !important;
}

.v3-stage.phase-guess #quizHud,
.v3-stage.phase-reveal #quizHud,
#quizHud.countdown-live {
  opacity: 1 !important;
  visibility: visible !important;
}

#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-look #v3df,
.v3-stage.phase-guess #v3df,
.v3-stage.phase-reveal #v3df {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 820px) {
  .v3-ci {
    min-height: 452px !important;
    padding-bottom: 170px !important;
  }

  #v3crowd,
  #quizHud,
  #v3df,
  #v3df.meaning-prompt,
  #v3df.def-reveal,
  #v3df.def-reveal.reveal-flash,
  .v3-stage.phase-reveal #v3df.def-reveal,
  #v3ex {
    width: calc(100% - 40px) !important;
    min-width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
  }

  #v3crowd {
    top: 286px !important;
  }

  #quizHud {
    top: 350px !important;
  }

  #v3df,
  #v3df.meaning-prompt,
  #v3df.def-reveal,
  #v3df.def-reveal.reveal-flash,
  .v3-stage.phase-reveal #v3df.def-reveal {
    top: 414px !important;
  }

  #v3ex {
    top: 480px !important;
  }
}

/* Final centering fix: keep absolute panels centered at all times */
#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-look #v3crowd,
.v3-stage.phase-guess #v3crowd,
.v3-stage.phase-reveal #v3crowd,
.v3-stage.phase-guess #quizHud,
.v3-stage.phase-reveal #quizHud,
#quizHud.countdown-live,
.v3-stage.phase-look #v3df,
.v3-stage.phase-guess #v3df,
.v3-stage.phase-reveal #v3df,
.v3-stage.phase-reveal #v3df.def-reveal {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  transition: opacity .22s ease !important;
}

#v3crowd,
#quizHud,
#v3df,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  visibility: hidden !important;
  opacity: 0 !important;
}

.v3-stage.phase-look #v3crowd,
.v3-stage.phase-guess #v3crowd,
.v3-stage.phase-reveal #v3crowd,
.v3-stage.phase-guess #quizHud,
.v3-stage.phase-reveal #quizHud,
#quizHud.countdown-live,
#v3df.meaning-prompt,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash,
.v3-stage.phase-look #v3df,
.v3-stage.phase-guess #v3df,
.v3-stage.phase-reveal #v3df {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Premium type refresh: restore the original English word feel */
.v3-word,
.word-main,
#wordMain {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: -0.5px !important;
  line-height: 0.96 !important;
  text-rendering: geometricPrecision;
}

.v3-ph,
.v3-cnt,
.v3-bv,
.v3-live,
.v3-phase,
#v3quizNumFixed,
.quiz-hud-num {
  font-family: 'JetBrains Mono', monospace !important;
}

.v3-df,
.v3-df.meaning-prompt,
.v3-df.def-reveal,
.v3-df.def-reveal.reveal-flash,
#v3dfFixed,
#v3crowdFixed,
#v3quizTextFixed,
#v3crowd,
#quizHud .quiz-hud-text,
#v3df,
#v3ex {
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
}

#v3dfFixed,
#v3df,
#v3df.def-reveal,
#v3df.def-reveal.reveal-flash {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.78) !important;
}

#v3crowdFixed,
#v3quizTextFixed,
#v3crowd,
#quizHud .quiz-hud-text {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.72) !important;
}

.v3-pos {
  font-family: 'JetBrains Mono', monospace !important;
}

/* UI polish for fixed study panels: less AI, more editorial */
#v3crowdFixed {
  border-color: rgba(255,255,255,0.07) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.012)) !important;
  color: rgba(255,255,255,0.68) !important;
}

#v3quizFixed {
  border-color: rgba(192,132,252,0.16) !important;
  background: linear-gradient(180deg, rgba(22,18,34,0.88), rgba(14,11,24,0.76)) !important;
}

#v3quizTextFixed {
  color: rgba(255,255,255,0.78) !important;
}

#v3dfFixed {
  border-color: rgba(255,255,255,0.08) !important;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03), rgba(255,255,255,0.012) 58%, rgba(255,255,255,0.008) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015) !important;
}

/* Live-stage polish: make the word the undeniable hero */
.v3-word,
.word-main,
#wordMain {
  font-size: 144px !important;
  letter-spacing: -1.2px !important;
  text-shadow: 0 0 18px rgba(255,255,255,0.16), 0 0 42px rgba(192,132,252,0.24), 0 0 110px rgba(192,132,252,0.10) !important;
}

.v3-stage.live-mode .v3-word,
.v3-stage.tts-word .v3-word {
  text-shadow: 0 0 18px rgba(255,255,255,0.22), 0 0 56px rgba(192,132,252,0.30), 0 0 140px rgba(192,132,252,0.14) !important;
}

.v3-word.word-accent {
  color: #fff9ef !important;
  text-shadow: 0 0 20px rgba(255,255,255,0.34), 0 0 62px rgba(192,132,252,0.40), 0 0 150px rgba(192,132,252,0.16) !important;
}

.v3-pos {
  opacity: 0.72 !important;
}

.v3-ph {
  font-size: 20px !important;
  color: rgba(192,132,252,0.90) !important;
  text-shadow: 0 0 18px rgba(192,132,252,0.20) !important;
}

.v3-ex.live-cue,
.v3-ex.live-cue.cue-word,
.v3-ex.live-cue.cue-spell,
.v3-ex.live-cue.cue-def {
  font-size: 11px !important;
  letter-spacing: 0.24em !important;
  color: rgba(255,255,255,0.46) !important;
}

@media (max-width: 820px) {
  .v3-word,
  .word-main,
  #wordMain {
    font-size: 110px !important;
    letter-spacing: -0.8px !important;
  }

  .v3-ph {
    font-size: 17px !important;
  }
}

/* Final premium cleanup: reduce visual noise around the live HUD */
.stage-sep {
  opacity: 0.18 !important;
  transform: translateY(18px) !important;
}

.stage-sep::before,
.stage-sep::after {
  opacity: 0.14 !important;
}

#v3phase,
.v3-phasebar {
  margin: 14px auto 4px !important;
  padding: 4px !important;
  border-color: rgba(192, 132, 252, 0.10) !important;
  background: rgba(10, 10, 14, 0.30) !important;
  box-shadow: none !important;
}

#v3phase .v3-phase,
.v3-phase {
  min-width: 62px !important;
  padding: 6px 10px !important;
  font-size: 10px !important;
  color: rgba(255,255,255,0.22) !important;
}

#v3phase .v3-phase.on,
.v3-phase.on {
  color: rgba(255,255,255,0.86) !important;
  border-color: rgba(192, 132, 252, 0.16) !important;
  background: rgba(192, 132, 252, 0.08) !important;
  box-shadow: none !important;
}

#v3phase .v3-phase.done,
.v3-phase.done {
  color: rgba(255,255,255,0.34) !important;
  background: transparent !important;
  border-color: transparent !important;
}

.v3-live {
  background: rgba(8, 7, 14, 0.58) !important;
  border-color: rgba(192,132,252,0.16) !important;
  box-shadow: none !important;
}

.v3-hdr {
  opacity: 0.90;
}

.v3-lbl,
.v3-cnt {
  letter-spacing: 0.16em !important;
}

/* Final live UX fixes: remove blockers, add motion, lift reveal */
.v3-pos {
  position: absolute !important;
  top: 56px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  padding: 3px 10px !important;
  font-size: 10px !important;
  opacity: 0.68 !important;
  z-index: 6 !important;
}

.v3-pron-row {
  margin-top: 8px !important;
}

#v3quizBarFixed {
  position: relative !important;
  overflow: hidden !important;
}

#v3quizBarFixed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 46%, transparent 100%);
  opacity: 0;
}

#v3dfFixed {
  max-width: 620px !important;
  padding: 0 18px !important;
}

@keyframes hudShimmer {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
  100% { filter: brightness(1); }
}

@keyframes hudCountPulse {
  0% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.82; }
}

@media (max-width: 820px) {
  .v3-pos {
    top: 52px !important;
    font-size: 9px !important;
  }
}

/* Countdown polish: color states and stronger motion */
#v3quizNumFixed {
  transition: color .18s ease, text-shadow .18s ease, transform .18s ease;
}

#v3quizTextFixed {
  transition: color .18s ease, transform .18s ease;
}

@keyframes hudCountPulse {
  0% { transform: scale(1); opacity: 0.82; }
  40% { transform: scale(1.14); opacity: 1; }
  100% { transform: scale(1); opacity: 0.88; }
}

/* Final stage layout override: commercial-safe open fonts and clean placement */
.v3-live {
  top: 126px !important;
}

.v3-pos {
  display: none !important;
}

#v3posFixed {
  font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
  letter-spacing: 0.12em !important;
}

#v3crowdFixed,
#v3quizTextFixed {
  font-family: 'Noto Sans SC', 'Inter', sans-serif !important;
}

#v3quizTextFixed {
  white-space: normal !important;
}

@media (max-width: 820px) {
  .v3-live {
    top: 108px !important;
  }
}

/* Final micro-tune: move live tag down, keep quiz copy readable, keep POS subtle */
.v3-live {
  top: 148px !important;
  font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
  letter-spacing: 0.18em !important;
}

#v3posFixed {
  font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
}

#v3quizTextFixed {
  font-family: 'Noto Sans SC', 'Inter', sans-serif !important;
  line-height: 1.16 !important;
}

@media (max-width: 820px) {
  .v3-live {
    top: 124px !important;
  }

  #v3posFixed {
    font-size: 10px !important;
  }
}
