/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
  background: #080c1a;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ===== CSS VARIABLES (関東私大薬学部 = deep navy + medical teal + clinical gold) ===== */
:root {
  --ocean-deep:  #080c1a;
  --ocean-mid:   #0d1528;
  --ocean-light: #122040;
  --ocean-surf:  #2dd4bf;
  --coral:       #34d9c3;
  --gold:        #f59e0b;
  --mint:        #6ee7df;
  --white:       #ffffff;
  --glass:       rgba(45,212,191,0.06);
  --glass-border: rgba(45,212,191,0.18);
  --text-soft:   rgba(255,255,255,0.60);
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
  --header-h:    56px;
  --bg1: #080c1a;
  --bg2: #0d1528;
  --accent: #2dd4bf;
  --accent2: #f59e0b;
}

/* ==============================
   TOPIC-BASED THEMES
============================== */
body[data-topic="Pharma & Clinical"]   { --bg1:#060d1a; --bg2:#0a1830; --accent:#2dd4bf; --accent2:#f59e0b; }
body[data-topic="Disease & Pathology"] { --bg1:#1a0608; --bg2:#2d0c10; --accent:#f87171; --accent2:#fbbf24; }
body[data-topic="Biology & Molecular"] { --bg1:#041a0a; --bg2:#082e14; --accent:#4ade80; --accent2:#34d399; }
body[data-topic="Environment & SDGs"]  { --bg1:#061a08; --bg2:#0c2e10; --accent:#86efac; --accent2:#f59e0b; }
body[data-topic="Cognition & Society"] { --bg1:#0e0a1e; --bg2:#1a1050; --accent:#a78bfa; --accent2:#f472b6; }

/* ===== BACKGROUND ===== */
#ocean-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.ocean-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 60%, #020408 100%);
  transition: background 1.5s ease;
}
/* Medical grid pattern */
.ocean-gradient::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45,212,191,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,212,191,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
/* DNA helix dots accent */
.ocean-gradient::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 14px 14px;
}

/* ===== CREATURE LAYER ===== */
.creatures-layer { position: absolute; inset: 0; pointer-events: none; }
.creature {
  position: absolute; font-size: 26px;
  animation: creatureSwim linear infinite;
  opacity: 0.28;
  filter: drop-shadow(0 0 10px rgba(45,212,191,0.5));
  transition: opacity 1s;
}
.creature.large { font-size: 40px; opacity: 0.18; }
.creature.small { font-size: 18px; opacity: 0.42; }
@keyframes creatureSwim {
  0%   { transform: translateX(-120px) scaleX(1); }
  49%  { transform: translateX(calc(100vw + 120px)) scaleX(1); opacity: 0.28; }
  50%  { transform: translateX(calc(100vw + 120px)) scaleX(-1); opacity: 0; }
  51%  { transform: translateX(calc(100vw + 120px)) scaleX(-1); opacity: 0.28; }
  100% { transform: translateX(-120px) scaleX(-1); }
}

/* ===== CORAL LAYER ===== */
.coral-layer {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 140px; pointer-events: none;
}
.coral {
  position: absolute; bottom: 0; font-size: 30px;
  animation: coralSway ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 4px 12px rgba(45,212,191,0.35));
  opacity: 0.45;
}
@keyframes coralSway {
  0%,100% { transform: rotate(-4deg) scale(1); }
  50%      { transform: rotate(4deg) scale(1.04); }
}

/* ===== PARTICLES ===== */
.particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 2px; height: 2px;
  border-radius: 50%; background: rgba(45,212,191,0.55);
  animation: particleDrift linear infinite;
  box-shadow: 0 0 4px rgba(45,212,191,0.7);
}
@keyframes particleDrift {
  0%   { transform: translate(0, 100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.2; }
  100% { transform: translate(20px, -100px) rotate(360deg); opacity: 0; }
}

/* ===== WAVES ===== */
.wave {
  position: absolute; bottom: -10px; left: 0; right: 0;
  height: 60px; border-radius: 50% 50% 0 0;
  opacity: 0.06; animation: waveMove linear infinite;
}
.wave1 { background: var(--accent); animation-duration: 10s; }
.wave2 { background: var(--mint); animation-duration: 14s; animation-delay: -5s; bottom: 0; }
.wave3 { background: var(--ocean-light); animation-duration: 18s; animation-delay: -8s; bottom: 5px; }
@keyframes waveMove {
  0%   { transform: translateX(-50%) scaleY(1); }
  50%  { transform: translateX(0%) scaleY(1.2); }
  100% { transform: translateX(-50%) scaleY(1); }
}

/* ===== BUBBLES ===== */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; border-radius: 50%;
  background: rgba(45,212,191,0.02);
  border: 1px solid rgba(45,212,191,0.12);
  animation: bubbleRise linear infinite;
}
@keyframes bubbleRise {
  0%   { transform: translateY(100vh) scale(0.5); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-100px) scale(1.1); opacity: 0; }
}

/* ===== SCREENS ===== */
.screen {
  position: relative; z-index: 10;
  display: none; flex-direction: column;
  min-height: 100vh; padding-top: var(--header-h);
  padding-bottom: 32px;
}
.screen.active { display: flex; animation: fadeInUp 0.35s ease; }

/* ===== HEADER ===== */
#app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(8,12,26,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45,212,191,0.2);
}
.header-left { display: flex; align-items: center; gap: 8px; }
.logo-shark { font-size: 20px; }
.logo-text {
  font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 15px;
  color: var(--accent); letter-spacing: 2px;
}
.header-stats {
  font-family: 'Space Mono', monospace;
  font-size: 12px; color: var(--text-soft);
  display: flex; align-items: center; gap: 6px;
}
.header-stats span { white-space: nowrap; }
.stat-sep { opacity: 0.35; }
#stat-explored { color: var(--mint); font-weight: 700; }
#stat-mastered { color: var(--accent); }
#stat-weak     { color: #f87171; }

/* ===== SCREEN HEADER ===== */
.screen-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 8px;
}
.screen-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--white); flex: 1;
}
.back-btn {
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-soft); padding: 6px 14px;
  border-radius: 20px; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.back-btn:active { opacity: 0.7; }

/* ===== HOME HERO ===== */
.home-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 8px; gap: 12px;
}
.shark-teacher { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 120px; flex-shrink: 0; }
.shark-body { font-size: 44px; animation: sharkBob 3s ease-in-out infinite; }
@keyframes sharkBob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
.shark-bubble {
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.3);
  border-radius: 14px; padding: 7px 10px;
  font-size: 10px; color: var(--mint); line-height: 1.4;
  text-align: center; position: relative;
}
.shark-bubble::before {
  content: '▲'; position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%); color: rgba(45,212,191,0.3); font-size: 10px;
}
.home-title-block { flex: 1; }
.app-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px; line-height: 1.1; color: var(--white);
  text-shadow: 0 0 30px rgba(45,212,191,0.25);
}
.app-sub { font-size: 11px; color: var(--text-soft); margin-top: 6px; }

/* 大学バッジ行 */
.uni-badges {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px;
}
.uni-badge {
  font-size: 9px; padding: 2px 7px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 10px; color: var(--gold);
  white-space: nowrap;
}

/* ===== DAY PROGRESS STRIP ===== */
.day-progress-strip {
  padding: 8px 0 4px; overflow-x: auto; scrollbar-width: none;
}
.day-progress-strip::-webkit-scrollbar { display: none; }
.day-scroll { display: flex; gap: 6px; padding: 0 20px; }
.day-chip {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 9px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  color: var(--text-soft); transition: all 0.2s;
  font-family: 'Space Mono', monospace;
}
.day-chip.done  { background: rgba(45,212,191,0.15); border-color: rgba(45,212,191,0.4); color: var(--accent); }
.day-chip.today { background: rgba(245,158,11,0.2); border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 12px rgba(245,158,11,0.3); }
.day-chip:active { transform: scale(0.94); }
.day-chip-num  { font-size: 12px; font-weight: 700; }
.day-chip-mark { font-size: 10px; }

/* ===== HOME ACTIONS ===== */
.home-actions { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 8px; }
.btn-primary {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #2dd4bf, #0ea5e9);
  border: none; border-radius: var(--radius-lg);
  padding: 16px 20px; color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 20px rgba(45,212,191,0.35);
  transition: all 0.2s;
}
.btn-primary:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(45,212,191,0.2); }
.btn-secondary {
  display: flex; align-items: center; gap: 12px;
  background: rgba(45,212,191,0.1); border: 1.5px solid rgba(45,212,191,0.35);
  border-radius: var(--radius-lg); padding: 14px 20px;
  color: var(--accent); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:active { transform: scale(0.97); background: rgba(45,212,191,0.18); }
.btn-ghost {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 13px 20px;
  color: var(--text-soft); font-size: 14px;
  cursor: pointer; transition: all 0.2s;
}
.btn-ghost:active { transform: scale(0.97); }
.btn-icon { font-size: 20px; }
.btn-text { flex: 1; text-align: left; }

/* ===== PROGRESS ===== */
.overall-progress {
  margin: 8px 20px 0; display: flex; align-items: center; gap: 10px;
}
.prog-label { font-size: 11px; color: var(--text-soft); white-space: nowrap; }
.prog-bar-wrap {
  flex: 1; height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.prog-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px; transition: width 0.6s ease;
  box-shadow: 0 0 8px rgba(45,212,191,0.4);
}
.prog-pct { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--accent); min-width: 32px; text-align: right; }

/* ===== TOPICS GRID ===== */
.topic-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 8px 20px;
}
.topic-card {
  background: var(--glass); border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 18px 14px;
  cursor: pointer; transition: all 0.2s; text-align: center;
  position: relative; overflow: hidden;
}
.topic-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(45,212,191,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.topic-card:active { transform: scale(0.97); }
.topic-emoji { font-size: 32px; margin-bottom: 8px; display: block; }
.topic-name { font-size: 12px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.topic-name-jp { font-size: 10px; color: var(--text-soft); margin-bottom: 8px; }
.topic-count { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--accent); }
.topic-prog-bar {
  height: 3px; background: rgba(255,255,255,0.08);
  border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.topic-prog-fill {
  height: 100%; background: var(--accent);
  border-radius: 2px; transition: width 0.5s;
}

/* ===== UNIVERSITIES SCREEN ===== */
.uni-grid { display: flex; flex-direction: column; gap: 10px; padding: 8px 20px; }
.uni-card {
  background: var(--glass); border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: space-between;
}
.uni-card:active { transform: scale(0.98); }
.uni-card-left { display: flex; flex-direction: column; gap: 4px; }
.uni-card-name { font-size: 15px; font-weight: 700; color: var(--white); }
.uni-card-abbr { font-size: 11px; color: var(--text-soft); }
.uni-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.uni-card-count {
  font-family: 'Space Mono', monospace;
  font-size: 18px; color: var(--accent); font-weight: 700;
}
.uni-card-label { font-size: 10px; color: var(--text-soft); }
.uni-card-bar { width: 80px; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.uni-card-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.5s; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-deep));
  border: 1.5px solid rgba(45,212,191,0.3);
  border-radius: var(--radius-lg); padding: 28px 22px;
  width: 100%; max-width: 360px;
  animation: fadeInUp 0.3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 40px rgba(45,212,191,0.08);
}
.modal-topic-badge {
  display: inline-block; font-size: 11px;
  background: rgba(45,212,191,0.12); border: 1px solid rgba(45,212,191,0.3);
  padding: 4px 14px; border-radius: 20px; color: var(--accent);
  margin-bottom: 12px;
}
.modal-topic-creature { font-size: 44px; text-align: center; margin-bottom: 12px; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--white); margin-bottom: 18px; text-align: center; }
.modal-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px; margin-bottom: 10px;
  background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
}
.modal-btn:active { transform: scale(0.98); }
.mode-full  { border-color: rgba(45,212,191,0.4); }
.mode-step  { border-color: rgba(245,158,11,0.4); }
.modal-btn-icon { font-size: 24px; flex-shrink: 0; }
.modal-btn-content { flex: 1; text-align: left; }
.modal-btn-title { font-size: 15px; font-weight: 700; color: var(--white); }
.modal-btn-sub   { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.modal-btn-count { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent); flex-shrink: 0; }
.modal-cancel {
  width: 100%; padding: 10px; background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); color: var(--text-soft);
  font-size: 14px; cursor: pointer;
}

/* ===== REVIEW SCREEN ===== */
.review-options { padding: 8px 20px; display: flex; flex-direction: column; gap: 10px; }
.review-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass); border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  cursor: pointer; transition: all 0.2s;
}
.review-btn:active { transform: scale(0.98); }
.r-icon  { font-size: 22px; flex-shrink: 0; }
.r-label { flex: 1; font-size: 14px; font-weight: 700; color: var(--white); text-align: left; }
.r-count { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent); }
.topic-review-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.topic-review-btn {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 12px 16px;
  cursor: pointer; font-size: 13px; color: var(--text-soft);
  transition: all 0.2s;
}
.topic-review-btn:active { transform: scale(0.98); }

/* ===== FLASHCARD ===== */
.flashcard-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 12px 20px;
}
.flashcard {
  width: 100%; max-width: 400px;
  min-height: 300px; position: relative;
  transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.flashcard.flipped { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,21,40,0.95), rgba(8,12,26,0.98));
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(45,212,191,0.08);
}
.card-back { transform: rotateY(180deg); overflow-y: auto; }
.card-pos {
  font-size: 11px; color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.card-word {
  font-family: 'Playfair Display', serif;
  font-size: 38px; color: var(--white); line-height: 1.2;
  text-shadow: 0 0 24px rgba(45,212,191,0.25); margin-bottom: 10px;
}
.card-uni-stars {
  font-size: 13px; color: var(--gold); margin-bottom: 8px; letter-spacing: 2px;
}
.card-hint { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: auto; text-align: center; }
.card-meaning {
  font-size: 24px; font-weight: 700; color: var(--accent);
  margin-bottom: 12px; line-height: 1.3;
}
.card-example {
  font-size: 13px; color: var(--white); line-height: 1.6; margin-bottom: 6px;
  font-style: italic;
}
.card-translation { font-size: 12px; color: var(--text-soft); line-height: 1.6; margin-bottom: 10px; }
.card-etymology {
  font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.6;
  border-left: 2px solid rgba(45,212,191,0.3); padding-left: 10px; margin-bottom: 8px;
}
.card-derivatives { font-size: 11px; color: var(--accent); line-height: 1.8; margin-bottom: 8px; }
.card-universities {
  font-size: 11px; color: var(--gold); margin-top: 4px;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px; padding: 6px 10px; line-height: 1.6;
}
.fc-actions {
  display: flex; gap: 12px; padding: 0 20px 8px;
}
.fc-btn {
  flex: 1; padding: 13px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer; border: none;
  transition: all 0.2s;
}
.fc-skip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-soft);
}
.fc-knew {
  background: linear-gradient(135deg, rgba(45,212,191,0.2), rgba(45,212,191,0.1));
  border: 1.5px solid rgba(45,212,191,0.5);
  color: var(--accent);
}
.fc-knew:active, .fc-skip:active { transform: scale(0.97); }
.fc-nav {
  display: flex; gap: 12px; padding: 0 20px;
  justify-content: center;
}
.fc-btn-sm {
  padding: 8px 20px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-soft); font-size: 13px; cursor: pointer;
}
.fc-btn-next {
  padding: 8px 24px; border-radius: 20px;
  background: rgba(45,212,191,0.12); border: 1px solid rgba(45,212,191,0.3);
  color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer;
}
.fc-btn-sm:active, .fc-btn-next:active { transform: scale(0.96); }
.fc-progress-info {
  font-family: 'Space Mono', monospace; font-size: 12px; color: var(--text-soft);
}
.topic-badge {
  font-size: 11px; background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.25);
  padding: 3px 10px; border-radius: 20px; color: var(--accent); white-space: nowrap;
}

/* ===== QUIZ ===== */
.quiz-timer-wrap { margin: 12px 20px 0; position: relative; }
.quiz-timer-bar {
  height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.quiz-timer-bar::after {
  content: ''; display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: var(--timer-pct, 100%);
  transition: width 1s linear;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(45,212,191,0.4);
}
.quiz-timer-text {
  position: absolute; right: 0; top: -18px;
  font-family: 'Space Mono', monospace; font-size: 12px; color: var(--text-soft);
}
.quiz-question-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 24px 16px;
}
.quiz-word {
  font-family: 'Playfair Display', serif;
  font-size: 34px; color: var(--white); text-align: center;
  line-height: 1.2; margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(45,212,191,0.3);
}
.quiz-uni-info {
  font-size: 12px; color: var(--gold); letter-spacing: 2px; margin-bottom: 6px;
}
.quiz-listen-btn button {
  background: var(--glass); border: 1px solid rgba(45,212,191,0.3);
  color: var(--accent); padding: 8px 20px;
  border-radius: 20px; font-size: 14px; cursor: pointer;
}
.quiz-choices { display: flex; flex-direction: column; gap: 10px; padding: 0 20px; }
.choice-btn {
  background: var(--glass); border: 1.5px solid var(--glass-border);
  color: var(--white); border-radius: var(--radius);
  padding: 14px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: all 0.15s; display: flex; align-items: center; gap: 10px;
}
.choice-btn:active { transform: scale(0.98); }
.choice-btn.correct {
  border-color: var(--accent); background: rgba(45,212,191,0.15); color: var(--accent);
  animation: correctPulse 0.4s ease;
  box-shadow: 0 0 16px rgba(45,212,191,0.3);
}
.choice-btn.wrong {
  border-color: #f87171; background: rgba(248,113,113,0.15); color: #f87171;
  animation: wrongShake 0.4s ease;
}
.choice-btn.disabled { cursor: default; }
.choice-num {
  font-family: 'Space Mono', monospace; font-size: 11px; color: var(--text-soft);
  background: rgba(255,255,255,0.06); padding: 2px 8px;
  border-radius: 10px; flex-shrink: 0;
}
@keyframes correctPulse {
  0%  { transform: scale(1); }
  30% { transform: scale(1.03); }
  100%{ transform: scale(1); }
}
@keyframes wrongShake {
  0%,100% { transform: translateX(0); }
  25%  { transform: translateX(-6px); }
  75%  { transform: translateX(6px); }
}

/* ===== QUIZ FEEDBACK ===== */
.quiz-feedback {
  margin: 16px 20px 0;
  background: var(--glass); border: 1px solid rgba(45,212,191,0.18);
  border-radius: var(--radius); padding: 16px;
  animation: feedbackSlide 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes feedbackSlide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.feedback-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feedback-icon { font-size: 32px; flex-shrink: 0; }
.feedback-msg  { font-size: 16px; font-weight: 700; color: var(--white); }
.feedback-correct { font-size: 14px; color: var(--accent); margin-bottom: 12px; font-weight: 600; }
.feedback-hint {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(45,212,191,0.12);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.hint-etymology    { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 8px; }
.hint-derivatives  { font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.hint-example      { font-size: 12px; color: var(--text-soft); line-height: 1.5; font-style: italic; margin-bottom: 8px; }
.hint-universities { font-size: 11px; color: var(--gold); }
.quiz-meta { display: flex; align-items: center; gap: 8px; }
#quiz-progress { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--text-soft); }
.mode-badge {
  font-size: 11px; background: rgba(45,212,191,0.12);
  border: 1px solid rgba(45,212,191,0.3);
  padding: 3px 10px; border-radius: 20px; color: var(--accent);
}

/* ===== CORRECT BURST ===== */
.correct-burst {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.burst-content {
  font-size: 80px;
  animation: burstPop 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
  filter: drop-shadow(0 0 20px rgba(45,212,191,0.7));
}
@keyframes burstPop {
  0%   { transform: scale(0); opacity: 0; }
  50%  { transform: scale(1.3); opacity: 1; }
  80%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== RESULTS ===== */
.results-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center; position: relative; z-index: 10;
}
.results-shark { font-size: 56px; margin-bottom: 12px; animation: scaleFloat 3s ease-in-out infinite; }
@keyframes scaleFloat {
  0%,100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.05) translateY(-6px); }
}
.results-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: var(--white); margin-bottom: 12px;
}
.results-score {
  font-family: 'Space Mono', monospace;
  font-size: 48px; color: var(--accent); font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(45,212,191,0.5);
}
.results-comment { font-size: 15px; color: var(--mint); margin-bottom: 24px; }
.results-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; width: 100%; max-width: 320px; margin-bottom: 28px;
}
.r-stat {
  background: var(--glass); border: 1px solid rgba(45,212,191,0.18);
  border-radius: var(--radius); padding: 12px;
}
.r-stat-num   { font-family: 'Space Mono', monospace; font-size: 22px; color: var(--accent); }
.r-stat-label { font-size: 11px; color: var(--text-soft); margin-top: 4px; }
.results-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }

/* ===== CELEBRATION ===== */
.celebration { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.spark {
  position: absolute; width: 8px; height: 8px;
  border-radius: 50%; animation: sparkFly 1s ease-out forwards;
}
@keyframes sparkFly {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
.fish-confetti { position: absolute; font-size: 20px; animation: fishFly 1.4s ease-out forwards; }
@keyframes fishFly {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--dr,360deg)) scale(0.3); opacity: 0; }
}

/* ===== SHARK OVERLAY ===== */
.shark-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.shark-msg-box {
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-deep));
  border: 2px solid rgba(45,212,191,0.5); border-radius: var(--radius-lg);
  padding: 32px 28px; text-align: center;
  max-width: 300px; animation: fadeInUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(45,212,191,0.1);
}
.shark-big { font-size: 48px; display: block; margin-bottom: 16px; }
.shark-msg-box p { font-size: 16px; color: var(--white); margin-bottom: 20px; line-height: 1.6; }
.shark-msg-box button {
  background: linear-gradient(135deg, #2dd4bf, #0ea5e9);
  color: #080c1a; border: none; border-radius: 20px;
  padding: 10px 28px; font-size: 15px; font-weight: 700; cursor: pointer;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(45,212,191,0.2); border-radius: 2px; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
