* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-1: #030510;
  --bg-2: #07122a;
  --bg-3: #0c1d46;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.16);
  --text: #f4f8ff;
  --muted: #bfd5ff;
  --blue: #56c2ff;
  --cyan: #87f3ff;
  --purple: #8e7dff;
  --pink: #ff64df;
  --gold: #ffd86b;
  --green: #38e497;
  --red: #ff5a7c;
  --yellow: #ffd84d;
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 35px rgba(0, 0, 0, 0.3);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: 0.3s ease;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(142, 125, 255, 0.14), transparent 18%),
    radial-gradient(circle at 85% 10%, rgba(86, 194, 255, 0.16), transparent 20%),
    radial-gradient(circle at 50% 85%, rgba(255, 100, 223, 0.12), transparent 22%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  overflow-x: hidden;
  position: relative;
}

/* SPACE BACKGROUND */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: 0.75;
}

.stars-1 {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.95) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(135,243,255,0.9) 1px, transparent 1.7px);
  background-size: 140px 140px, 220px 220px;
  animation: driftStars 50s linear infinite;
}

.stars-2 {
  background-image:
    radial-gradient(circle, rgba(255,216,107,0.85) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 1.5px);
  background-size: 240px 240px, 320px 320px;
  opacity: 0.5;
  animation: driftStars 70s linear infinite reverse;
}

.stars-3 {
  background-image:
    radial-gradient(circle, rgba(255,100,223,0.8) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(86,194,255,0.75) 1px, transparent 1.5px);
  background-size: 300px 300px, 380px 380px;
  opacity: 0.35;
  animation: twinkle 6s ease-in-out infinite;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.22;
}

.nebula-1 {
  width: 320px;
  height: 320px;
  top: 8%;
  left: 12%;
  background: #8e7dff;
}

.nebula-2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: 8%;
  background: #56c2ff;
}

.nebula-3 {
  width: 240px;
  height: 240px;
  top: 42%;
  left: 58%;
  background: #ff64df;
}

@keyframes driftStars {
  from { transform: translateY(0); }
  to { transform: translateY(-180px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.55; }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(86,194,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86,194,255,0.06) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 15%, rgba(0,0,0,0.5) 100%);
  opacity: 0.28;
}

.planet,
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
}

.planet-1 {
  width: 180px;
  height: 180px;
  top: 10%;
  left: -50px;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, #87f3ff 20%, #4e73ff 55%, #182e79 100%);
  opacity: 0.7;
  box-shadow: 0 0 40px rgba(86,194,255,0.35);
}

.planet-2 {
  width: 120px;
  height: 120px;
  top: 72%;
  right: 7%;
  background:
    radial-gradient(circle at 35% 30%, #fff7cf, #ffd86b 18%, #ff9c4f 55%, #7a2a3d 100%);
  opacity: 0.75;
  box-shadow: 0 0 35px rgba(255,216,107,0.3);
}

.planet-3 {
  width: 70px;
  height: 70px;
  top: 18%;
  right: 18%;
  background:
    radial-gradient(circle at 35% 30%, #fff3fe, #ff64df 24%, #7631e8 75%);
  opacity: 0.7;
  box-shadow: 0 0 30px rgba(255,100,223,0.25);
}

.orb-1,
.orb-2,
.orb-3 {
  background: radial-gradient(circle, rgba(135,243,255,0.35), transparent 70%);
  filter: blur(12px);
}

.orb-1 {
  width: 220px;
  height: 220px;
  top: 12%;
  right: 12%;
}

.orb-2 {
  width: 180px;
  height: 180px;
  bottom: 12%;
  left: 10%;
}

.orb-3 {
  width: 120px;
  height: 120px;
  bottom: 28%;
  right: 35%;
}

.spaceship {
  position: absolute;
  font-size: 2rem;
  opacity: 0.78;
  filter: drop-shadow(0 0 14px rgba(135,243,255,0.35));
}

.ship-1 { top: 10%; left: 16%; animation: fly1 16s linear infinite; }
.ship-2 { top: 26%; right: 18%; animation: fly2 20s linear infinite; }
.ship-3 { bottom: 16%; left: 8%; animation: fly3 18s linear infinite; }
.ship-4 { top: 58%; right: 8%; animation: fly4 22s linear infinite; font-size: 1.7rem; }
.ship-5 { top: 78%; left: 30%; animation: fly5 19s linear infinite; font-size: 1.8rem; }
.ship-6 { top: 38%; left: 5%; animation: fly6 24s linear infinite; font-size: 1.6rem; }

@keyframes fly1 {
  0% { transform: translateX(-80px) translateY(0) rotate(-8deg); }
  50% { transform: translateX(180px) translateY(-25px) rotate(4deg); }
  100% { transform: translateX(420px) translateY(0) rotate(-8deg); }
}
@keyframes fly2 {
  0% { transform: translateX(80px) translateY(0) rotate(10deg); }
  50% { transform: translateX(-180px) translateY(20px) rotate(-6deg); }
  100% { transform: translateX(-420px) translateY(0) rotate(10deg); }
}
@keyframes fly3 {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  50% { transform: translateX(220px) translateY(-30px) rotate(6deg); }
  100% { transform: translateX(440px) translateY(0) rotate(0deg); }
}
@keyframes fly4 {
  0% { transform: translateX(100px) translateY(0) rotate(-10deg); }
  50% { transform: translateX(-140px) translateY(-18px) rotate(6deg); }
  100% { transform: translateX(-340px) translateY(0) rotate(-10deg); }
}
@keyframes fly5 {
  0% { transform: translateX(-40px) translateY(0) rotate(0deg); }
  50% { transform: translateX(180px) translateY(-20px) rotate(8deg); }
  100% { transform: translateX(360px) translateY(0) rotate(0deg); }
}
@keyframes fly6 {
  0% { transform: translateX(0) translateY(0) rotate(8deg); }
  50% { transform: translateX(190px) translateY(14px) rotate(-6deg); }
  100% { transform: translateX(390px) translateY(0) rotate(8deg); }
}

/* APP STRUCTURE */
.app-shell {
  position: relative;
  z-index: 1;
}

.top-header {
  width: min(94%, 1180px);
  margin: 0 auto;
  padding: 18px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(86,194,255,0.28), rgba(255,100,223,0.24));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-md);
  font-size: 1.5rem;
}

.brand-title {
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #a7e5ff, #ffe49c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.container {
  width: min(94%, 1180px);
  margin: 0 auto;
  padding: 10px 0 24px;
}

.screen {
  display: none;
  min-height: calc(100vh - 90px);
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.screen.active {
  display: flex;
  animation: fadeInUp 0.55s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.screen-card {
  width: 100%;
  max-width: 1040px;
  padding: 34px 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.07));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.screen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.08), transparent 30%, rgba(255,255,255,0.04));
  pointer-events: none;
}

.section-tag,
.hero-badge {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  color: #d9edff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title,
.section-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 0 22px rgba(86,194,255,0.18);
}

.hero-text,
.screen-card p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-glow-line {
  width: 100%;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, rgba(135,243,255,0.7), rgba(255,100,223,0.6), transparent);
  box-shadow: 0 0 16px rgba(135,243,255,0.35);
}

/* ACCESS SCREEN */
.access-card {
  text-align: center;
  max-width: 900px;
}

.access-visual-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 10px auto 24px;
  display: grid;
  place-items: center;
}

.access-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
}

.ring-1 {
  width: 250px;
  height: 250px;
  border-color: rgba(86,194,255,0.24);
  box-shadow: 0 0 30px rgba(86,194,255,0.12);
  animation: spinSlow 18s linear infinite;
}

.ring-2 {
  width: 190px;
  height: 190px;
  border-color: rgba(255,216,107,0.22);
  animation: spinReverse 12s linear infinite;
}

.ring-3 {
  width: 130px;
  height: 130px;
  border-color: rgba(255,100,223,0.22);
  animation: pulseRing 2s ease-in-out infinite;
}

.access-core {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(56,228,151,0.26), rgba(86,194,255,0.18));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 28px rgba(56,228,151,0.18);
  position: relative;
  z-index: 2;
}

.access-icon {
  font-size: 2.6rem;
}

.access-title {
  color: #fff;
  text-shadow: 0 0 20px rgba(56,228,151,0.18);
}

.access-text {
  max-width: 640px;
  margin: 0 auto;
}

.access-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.hero-side-panel {
  display: grid;
  gap: 16px;
}

.hero-side-card,
.subject-panel-inner,
.instruction-card,
.summary-card,
.result-box,
.lesson-box,
.question-box,
.special-winner,
.futuristic-box,
.lesson-highlight-card,
.lesson-quote-panel,
.mini-info-card,
.tense-card,
.login-form-box,
.login-hint-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.hero-side-card {
  padding: 20px;
}

.hero-side-icon,
.instruction-icon,
.result-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(86,194,255,0.2), rgba(255,100,223,0.18));
  font-size: 1.6rem;
}

.subject-panel {
  margin: 28px auto 20px;
  max-width: 520px;
}

.subject-panel-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

.subject-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(135,243,255,0.22), rgba(142,125,255,0.24));
  font-size: 1.8rem;
}

.subject-label {
  color: #d4e6ff;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.subject-name {
  font-size: 1.7rem;
  color: #fff;
  font-weight: 900;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.feature-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #eef6ff;
  font-size: 0.92rem;
  font-weight: 700;
}

/* BUTTONS */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 16px;
  padding: 14px 24px;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition);
}

button:hover {
  transform: translateY(-2px) scale(1.02);
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.primary-btn {
  color: #07101f;
  background: linear-gradient(135deg, var(--gold), #fff0b5);
  box-shadow: 0 0 18px rgba(255,216,107,0.24), var(--shadow-md);
}

.secondary-btn {
  color: #06101d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 18px rgba(86,194,255,0.22), var(--shadow-md);
}

.ghost-btn,
.icon-btn {
  color: #fff;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-md);
}

/* LOGIN */
.login-card {
  max-width: 980px;
}

.login-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.login-side-panel {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(86,194,255,0.14), rgba(255,100,223,0.09));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 320px;
}

.login-side-orb {
  position: absolute;
  width: 150px;
  height: 150px;
  top: -20px;
  right: -20px;
  border-radius: 50%;
  background: #56c2ff;
  filter: blur(24px);
  opacity: 0.28;
}

.login-badge-main {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.login-big-icon {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  margin-bottom: 18px;
  text-shadow: 0 0 24px rgba(255,255,255,0.18);
}

.login-mini-chip {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  font-weight: 700;
  color: #f4fbff;
}

.login-form-panel {
  display: grid;
  gap: 16px;
}

.login-form-box,
.login-hint-card {
  padding: 22px;
}

.login-form-box label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 800;
  text-align: left;
}

.login-form-box label:not(:first-child) {
  margin-top: 16px;
}

.login-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.login-input:focus {
  border-color: rgba(135,243,255,0.6);
  box-shadow: 0 0 18px rgba(135,243,255,0.2);
}

.login-input::placeholder {
  color: #c9dcff;
}

.password-wrap {
  position: relative;
}

.password-wrap .login-input {
  padding-right: 60px;
}

.toggle-password-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
}

.toggle-password-btn:hover {
  transform: translateY(-50%) scale(1.04);
}

.login-form-box.shake {
  animation: loginShake 0.4s ease;
}

@keyframes loginShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.login-message {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 800;
  font-size: 0.98rem;
  color: #ff9db0;
  text-align: left;
}

.login-message.success {
  color: #66ffb7;
}

.login-button-group {
  justify-content: flex-start;
}

.login-hint-card h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

/* INSTRUCTIONS */
.instruction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 24px;
}

.instruction-card {
  text-align: center;
  padding: 20px;
}

/* LESSON VISUAL */
.lesson-screen-card {
  max-width: 1080px;
}

.lesson-visual-board {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 18px;
}

.lesson-visual-side {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(86,194,255,0.14), rgba(255,100,223,0.09));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 360px;
}

.lesson-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.35;
}

.lesson-orb-1 {
  width: 140px;
  height: 140px;
  top: -20px;
  right: -10px;
  background: #56c2ff;
}

.lesson-orb-2 {
  width: 140px;
  height: 140px;
  bottom: -20px;
  right: -10px;
  background: #ffd86b;
}

.lesson-orb-3 {
  width: 140px;
  height: 140px;
  top: 20px;
  left: -20px;
  background: #ff64df;
}

.lesson-badge-main {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.lesson-big-icon {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  margin-bottom: 18px;
  text-shadow: 0 0 24px rgba(255,255,255,0.18);
}

.lesson-mini-chip {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  font-weight: 700;
  color: #f4fbff;
}

.lesson-visual-content {
  display: grid;
  gap: 16px;
}

.lesson-highlight-card,
.lesson-quote-panel,
.mini-info-card,
.tense-card {
  padding: 20px;
}

.lesson-highlight-card h3,
.mini-info-card h4,
.tense-card h4 {
  color: #fff;
  margin-bottom: 8px;
}

.lesson-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lesson-four-grid {
  grid-template-columns: repeat(2, 1fr);
}

.mini-info-icon {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.mini-example,
.tense-example {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.tense-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.present-card {
  border-color: rgba(56,228,151,0.35);
}

.past-card {
  border-color: rgba(255,216,77,0.35);
}

.future-card {
  border-color: rgba(86,194,255,0.35);
}

/* QUESTION AREA */
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hud-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.progress-badge,
.timer-badge,
.question-meta {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  color: #f5fbff;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.question-meta {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.question-box {
  text-align: left;
  margin-bottom: 18px;
  padding: 20px;
}

.question-box p {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.7;
  font-weight: 800;
}

.options-container {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 18px 18px;
  border-radius: 18px;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.option-btn:hover {
  background: rgba(86,194,255,0.12);
  border-color: rgba(86,194,255,0.35);
}

.option-btn.selected {
  border-color: var(--gold);
  background: rgba(255,216,107,0.15);
}

.option-btn.correct {
  border-color: var(--green);
  background: rgba(56,228,151,0.16);
  color: #eafff4;
  box-shadow: 0 0 20px rgba(56,228,151,0.18), var(--shadow-md);
}

.option-btn.wrong {
  border-color: var(--red);
  background: rgba(255,90,124,0.16);
  color: #ffe6ed;
  box-shadow: 0 0 20px rgba(255,90,124,0.18), var(--shadow-md);
}

/* FEEDBACK */
.feedback {
  min-height: 30px;
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 800;
}

.correct-text {
  color: #66ffb7;
}

.wrong-text {
  color: #ff8da5;
}

.correct-reveal-box {
  display: none;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56,228,151,0.14), rgba(86,194,255,0.12));
  border: 1px solid rgba(56,228,151,0.35);
  box-shadow: 0 0 20px rgba(56,228,151,0.12), var(--shadow-md);
  text-align: left;
}

.correct-reveal-box.show {
  display: block;
  animation: fadeInUp 0.35s ease;
}

.correct-reveal-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #dffef0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.correct-answer-emphasis {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  border-left: 5px solid var(--green);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  text-shadow: 0 0 10px rgba(56,228,151,0.2);
}

/* INPUT */
.input-area {
  margin-top: 10px;
}

#level2Input {
  width: 100%;
  max-width: 560px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

#level2Input:focus {
  border-color: rgba(135,243,255,0.6);
  box-shadow: 0 0 18px rgba(135,243,255,0.2);
}

#level2Input::placeholder {
  color: #c9dcff;
}

/* LEVEL 3 BIG TIMER */
.final-level-card {
  max-width: 1120px;
}

.level3-top-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.mega-timer-panel {
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(86,194,255,0.16), rgba(255,100,223,0.1));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 30px rgba(86,194,255,0.12), var(--shadow-md);
  text-align: center;
}

.mega-timer-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #dff6ff;
  margin-bottom: 14px;
}

.mega-timer-ring {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.14), transparent 35%),
    linear-gradient(135deg, rgba(255,90,124,0.2), rgba(255,216,77,0.18), rgba(86,194,255,0.2));
  box-shadow:
    0 0 35px rgba(86,194,255,0.2),
    0 0 45px rgba(255,100,223,0.12);
  border: 2px solid rgba(255,255,255,0.18);
}

.mega-timer-core {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(5, 12, 30, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(86,194,255,0.12);
}

.mega-timer-core span {
  font-size: 3.6rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255,255,255,0.18);
}

.mega-timer-core small {
  margin-top: 8px;
  color: #d7f6ff;
  font-size: 0.78rem;
  letter-spacing: 1px;
  font-weight: 800;
}

.level3-progress-badge {
  display: inline-block;
}

.level3-question-box {
  margin-top: 10px;
}

/* RESULTS */
.result-screen-card,
.final-card,
.countdown-card {
  text-align: center;
}

.big-score {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255,216,107,0.22);
}

.remark-text {
  margin-top: 18px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.7;
}

.mini-message {
  margin-top: 12px;
  color: #9ce8ff;
  font-size: 1rem;
}

.final-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.summary-card {
  padding: 20px;
}

.summary-card p {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
}

.result-box {
  padding: 22px;
}

.total-box {
  margin-top: 10px;
}

.special-winner {
  margin-top: 22px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255,216,107,0.18), rgba(56,228,151,0.12));
  border-color: rgba(255,216,107,0.28);
}

.special-winner h2 {
  color: #fff4bf;
  margin-bottom: 10px;
}

/* SCORE COLORS */
.red-score {
  background: rgba(255,90,124,0.14);
  border-color: rgba(255,90,124,0.35);
}

.yellow-score {
  background: rgba(255,216,77,0.14);
  border-color: rgba(255,216,77,0.35);
}

.blue-score {
  background: rgba(86,194,255,0.14);
  border-color: rgba(86,194,255,0.35);
}

.pink-score {
  background: rgba(255,100,223,0.14);
  border-color: rgba(255,100,223,0.35);
}

.green-score {
  background: rgba(56,228,151,0.14);
  border-color: rgba(56,228,151,0.35);
}

/* COUNTDOWN */
.countdown-circle {
  width: 190px;
  height: 190px;
  margin: 22px auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), transparent 35%),
    linear-gradient(135deg, rgba(86,194,255,0.25), rgba(255,100,223,0.2));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 0 30px rgba(86,194,255,0.2),
    inset 0 0 30px rgba(255,255,255,0.04);
  animation: pulseCircle 1.3s infinite ease-in-out;
}

#countdownNumber {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 18px rgba(135,243,255,0.28);
}

@keyframes pulseCircle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-layout,
  .lesson-visual-board,
  .level3-top-layout,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .instruction-grid,
  .final-summary,
  .lesson-highlight-grid,
  .tense-card-grid,
  .lesson-four-grid {
    grid-template-columns: 1fr;
  }

  .mega-timer-panel {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .top-header {
    flex-direction: column;
    align-items: stretch;
  }

  .music-control-wrap {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .container,
  .top-header {
    width: min(94%, 100%);
  }

  .screen-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .hero-title,
  .section-title {
    font-size: 1.85rem;
  }

  .button-group {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hud-wrap {
    justify-content: center;
  }

  .countdown-circle {
    width: 150px;
    height: 150px;
  }

  #countdownNumber {
    font-size: 3rem;
  }

  .spaceship {
    font-size: 1.5rem;
  }

  .planet-1 {
    width: 120px;
    height: 120px;
  }

  .planet-2 {
    width: 90px;
    height: 90px;
  }

  .mega-timer-ring {
    width: 180px;
    height: 180px;
  }

  .mega-timer-core {
    width: 122px;
    height: 122px;
  }

  .mega-timer-core span {
    font-size: 2.8rem;
  }

  .login-button-group {
    justify-content: center;
  }

  .access-visual-wrap {
    width: 210px;
    height: 210px;
  }

  .ring-1 {
    width: 210px;
    height: 210px;
  }

  .ring-2 {
    width: 160px;
    height: 160px;
  }

  .ring-3 {
    width: 110px;
    height: 110px;
  }
}