/* ===== 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: #0d1a2e;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ===== CSS VARIABLES（九州大：深紺×薄金×翠） ===== */
:root {
  --bg1: #0d1a2e;
  --bg2: #162540;
  --accent: #7eb8e8;
  --ocean-deep: #0d1a2e;
  --ocean-mid:  #162540;
  --ocean-light:#1e3a5a;
  --ocean-surf: #7eb8e8;
  --coral: #ff7043;
  --gold:  #ffca28;
  --mint:  #90caf9;
  --white: #ffffff;
  --glass: rgba(255,255,255,0.07);
  --glass-border: rgba(126,184,232,0.18);
  --text-soft: rgba(255,255,255,0.65);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --header-h: 56px;
}

/* ==============================
   TOPIC-BASED THEMES（九州大版・7テーマ）
============================== */
/* Topic1: Academy Gate — 緑（教育・知識） */
body[data-topic="Academy Gate"] { --bg1:#071a10; --bg2:#0e3a20; --accent:#81c784; }
/* Topic2: Tech Nexus — 青紫（テクノロジー） */
body[data-topic="Tech Nexus"]   { --bg1:#0a0820; --bg2:#180e40; --accent:#7c83e8; }
/* Topic3: Bio Med — 橙赤（医療・生命） */
body[data-topic="Bio Med"]      { --bg1:#1a0c08; --bg2:#3a1410; --accent:#ff8a65; }
/* Topic4: Eco Science — 水色（環境・宇宙） */
body[data-topic="Eco Science"]  { --bg1:#04141e; --bg2:#082840; --accent:#4dd0e1; }
/* Topic5: Society Lab — 黄金（社会・経済） */
body[data-topic="Society Lab"]  { --bg1:#181208; --bg2:#382810; --accent:#ffca28; }
/* Topic6: Culture Code — 紫（言語・文化） */
body[data-topic="Culture Code"] { --bg1:#100828; --bg2:#200e50; --accent:#ce93d8; }
/* Topic7: Mind Drive — ピンク赤（心理・行動） */
body[data-topic="Mind Drive"]   { --bg1:#180818; --bg2:#300e30; --accent:#f48fb1; }

/* ===== DEEP SEA BG ===== */
#ocean-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.ocean-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  transition: background 1.5s ease;
}

/* ===== CREATURE LAYER ===== */
.creatures-layer { position: absolute; inset: 0; pointer-events: none; }
.creature {
  position: absolute; font-size: 28px;
  animation: creatureFloat linear infinite;
  opacity: 0.4;
  filter: drop-shadow(0 0 8px rgba(126,184,232,0.3));
  transition: opacity 1s;
}
.creature.large { font-size: 40px; opacity: 0.25; }
.creature.small { font-size: 18px; opacity: 0.5; }
@keyframes creatureFloat {
  0%   { transform: translateX(-120px) translateY(0) scaleX(1); }
  25%  { transform: translateX(calc(25vw)) translateY(-14px) scaleX(1); }
  50%  { transform: translateX(calc(50vw)) translateY(0) scaleX(1); }
  75%  { transform: translateX(calc(75vw)) translateY(12px) scaleX(1); }
  99%  { transform: translateX(calc(100vw + 120px)) translateY(0) scaleX(1); opacity: 0.4; }
  100% { transform: translateX(-120px) translateY(0) scaleX(-1); opacity: 0; }
}

/* ===== GROUND LAYER ===== */
.coral-layer { position: absolute; bottom: 0; left: 0; right: 0; height: 140px; pointer-events: none; }
.coral {
  position: absolute; bottom: 0;
  animation: coralSway ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  opacity: 0.5;
}
@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; font-size: 12px; animation: petalDrift linear infinite; }
@keyframes petalDrift {
  0%   { transform: translate(0, -20px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.25; }
  100% { transform: translate(30px, 100vh) rotate(360deg); opacity: 0; }
}

/* ===== WAVES ===== */
.wave { position: absolute; bottom: -10px; left: 0; right: 0; height: 70px; border-radius: 50% 50% 0 0; opacity: 0.07; animation: waveMove linear infinite; }
.wave1 { background: var(--accent, #7eb8e8); animation-duration: 8s; }
.wave2 { background: var(--mint); animation-duration: 12s; animation-delay: -3s; bottom: 0; }
.wave3 { background: var(--ocean-light); animation-duration: 16s; animation-delay: -6s; bottom: 5px; }
@keyframes waveMove {
  0%   { transform: translateX(-50%) scaleY(1); }
  50%  { transform: translateX(0%) scaleY(1.3); }
  100% { transform: translateX(-50%) scaleY(1); }
}

/* ===== BUBBLES ===== */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; border-radius: 50%;
  background: rgba(126,184,232,0.05);
  border: 1px solid rgba(126,184,232,0.12);
  animation: bubbleRise linear infinite;
}
@keyframes bubbleRise {
  0%   { transform: translateY(100vh) scale(0.5); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.25; }
  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.3s ease; }

/* ===== HEADER ===== */
#app-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(13,26,46,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(126,184,232,0.15);
}
.header-left { display: flex; align-items: center; gap: 8px; }
.logo-shark { font-size: 22px; }
.logo-text { font-family: 'Space Mono', monospace; font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.header-stats { display: flex; align-items: center; gap: 6px; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--text-soft); }
.stat-sep { color: rgba(255,255,255,0.2); }
#stat-explored { color: var(--accent); }
#stat-weak { color: #ff8a65; }

/* ===== HOME ===== */
.home-hero { display: flex; flex-direction: column; align-items: center; padding: 24px 24px 16px; text-align: center; }
.shark-teacher { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; position: relative; }
.shark-body { font-size: 52px; animation: mascotFloat 3s ease-in-out infinite; }
@keyframes mascotFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.shark-bubble {
  margin-top: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(126,184,232,0.3);
  border-radius: 20px; padding: 8px 16px; font-size: 13px; color: #90caf9;
  max-width: 260px; text-align: center; animation: fadeInUp 0.5s ease;
}
.app-title { font-family: 'Playfair Display', serif; font-size: 32px; line-height: 1.15; color: var(--white); margin-bottom: 8px; }
.app-sub { font-size: 13px; color: var(--text-soft); }

/* ===== DAY PROGRESS STRIP ===== */
.day-progress-strip { padding: 12px 20px; overflow: hidden; }
.day-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.day-scroll::-webkit-scrollbar { display: none; }
.day-pill {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-soft); cursor: pointer; transition: all 0.2s;
}
.day-pill.today { background: var(--accent); color: #0d1a2e; border-color: var(--accent); box-shadow: 0 0 12px rgba(126,184,232,0.4); }
.day-pill.done { background: rgba(126,184,232,0.2); color: var(--accent); border-color: rgba(126,184,232,0.4); }
.day-pill .pill-day { font-size: 9px; opacity: 0.8; }
.day-pill .pill-num { font-size: 13px; }

/* ===== HOME ACTIONS ===== */
.home-actions { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 16px; }
.btn-primary {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #1a3a6a, #2e5fa3);
  border: 1px solid rgba(126,184,232,0.4);
  color: white; border-radius: var(--radius); padding: 16px 20px;
  font-size: 16px; font-weight: 700; cursor: pointer; width: 100%;
  box-shadow: 0 4px 20px rgba(46,95,163,0.4); transition: transform 0.15s;
}
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  display: flex; align-items: center; gap: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: white; border-radius: var(--radius); padding: 14px 20px;
  font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; transition: transform 0.15s;
}
.btn-secondary:active { transform: scale(0.98); }
.btn-ghost {
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: 1px solid rgba(126,184,232,0.2);
  color: var(--text-soft); border-radius: var(--radius); padding: 12px 20px;
  font-size: 14px; cursor: pointer; width: 100%; transition: transform 0.15s;
}
.btn-ghost:active { transform: scale(0.98); }
.btn-icon { font-size: 20px; flex-shrink: 0; }
.btn-text { flex: 1; text-align: left; }

/* ===== OVERALL PROGRESS ===== */
.overall-progress { margin: 0 20px; padding: 14px 18px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); }
.prog-label { font-size: 11px; color: var(--text-soft); font-family: 'Space Mono', monospace; margin-bottom: 8px; }
.prog-bar-wrap { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.prog-bar { height: 100%; background: linear-gradient(90deg, #1a3a6a, var(--accent)); border-radius: 3px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); width: 0%; }
.prog-pct { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent); text-align: right; }

/* ===== SCREEN HEADER ===== */
.screen-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(13,26,46,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(126,184,232,0.1);
}
.screen-header h2 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); }
.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; }
.back-btn:active { opacity: 0.7; }

/* ===== TOPIC GRID ===== */
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; }
.topic-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 16px 14px; cursor: pointer;
  transition: transform 0.15s; position: relative; overflow: hidden;
}
.topic-card:active { transform: scale(0.97); }
.topic-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.tc-emoji { font-size: 28px; margin-bottom: 8px; }
.tc-name  { font-size: 12px; font-weight: 700; color: var(--white); margin-bottom: 4px; line-height: 1.3; }
.tc-label { font-size: 10px; color: var(--text-soft); margin-bottom: 10px; }
.tc-bar-wrap { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 6px; }
.tc-bar { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.tc-count { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--text-soft); }

/* ===== TOPIC MODE 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: 24px; }
.modal-box { background: linear-gradient(145deg, #162540, #0d1a2e); border: 1px solid rgba(126,184,232,0.25); border-radius: var(--radius-lg); padding: 28px 24px; width: 100%; max-width: 340px; animation: fadeInUp 0.3s ease; }
.modal-topic-badge { display: inline-block; font-size: 11px; background: rgba(126,184,232,0.15); border: 1px solid rgba(126,184,232,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); text-align: center; margin-bottom: 20px; }
.modal-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
  cursor: pointer; color: var(--white); transition: all 0.15s;
}
.modal-btn:active { transform: scale(0.98); }
.modal-btn.mode-full  { border-color: rgba(126,184,232,0.4); }
.modal-btn.mode-step  { border-color: rgba(126,184,232,0.2); }
.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; margin-bottom: 2px; }
.modal-btn-sub { font-size: 11px; color: var(--text-soft); }
.modal-btn-count { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--accent); flex-shrink: 0; }
.modal-cancel { width: 100%; background: transparent; border: none; color: var(--text-soft); font-size: 14px; padding: 10px; cursor: pointer; margin-top: 4px; }
.modal-cancel:active { opacity: 0.6; }

/* ===== REVIEW ===== */
.review-options { padding: 12px 20px; display: flex; flex-direction: column; gap: 12px; }
.review-btn { display: flex; align-items: center; gap: 14px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; width: 100%; transition: transform 0.15s; color: var(--white); }
.review-btn:active { transform: scale(0.97); }
.r-icon  { font-size: 24px; }
.r-label { flex: 1; font-size: 15px; font-weight: 600; text-align: left; }
.r-count { font-size: 12px; color: var(--text-soft); }
.topic-review-list { display: flex; flex-direction: column; gap: 8px; }

/* ===== FLASHCARD ===== */
.flashcard-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 20px; perspective: 1000px; }
.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: rgba(255,255,255,0.06); backdrop-filter: blur(16px);
  border: 1px solid rgba(126,184,232,0.2); border-radius: var(--radius-lg);
  backface-visibility: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; box-shadow: var(--shadow);
}
.card-back { transform: rotateY(180deg); justify-content: flex-start; overflow-y: auto; }
.card-pos  { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--mint); background: rgba(144,202,249,0.15); border: 1px solid rgba(144,202,249,0.3); padding: 3px 10px; border-radius: 20px; margin-bottom: 16px; }
.card-word { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--white); text-align: center; line-height: 1.2; margin-bottom: 16px; }
.card-hint { font-size: 12px; color: var(--text-soft); margin-top: 8px; }
.card-meaning     { font-size: 22px; font-weight: 700; color: var(--gold); text-align: center; margin-bottom: 16px; line-height: 1.4; }
.card-example     { font-size: 13px; color: #90caf9; line-height: 1.6; margin-bottom: 8px; text-align: left; width: 100%; }
.card-translation { font-size: 12px; color: var(--text-soft); line-height: 1.6; margin-bottom: 12px; text-align: left; width: 100%; }
.card-etymology   { font-size: 11px; color: rgba(255,255,255,0.5); border-top: 1px solid var(--glass-border); padding-top: 10px; width: 100%; line-height: 1.5; }
.card-derivatives { font-size: 11px; color: var(--mint); margin-top: 8px; width: 100%; }

.fc-actions { display: flex; gap: 12px; padding: 0 20px 12px; }
.fc-btn { flex: 1; padding: 14px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: transform 0.15s; }
.fc-btn:active { transform: scale(0.97); }
.fc-skip { background: var(--glass); color: var(--text-soft); border: 1px solid var(--glass-border); }
.fc-knew { background: linear-gradient(135deg, #1a3a6a, #2e5fa3); color: white; }
.fc-nav  { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 16px; }
.fc-btn-sm   { background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-soft); padding: 8px 16px; border-radius: 20px; font-size: 13px; cursor: pointer; }
.fc-btn-next { background: var(--accent); color: #0d1a2e; padding: 10px 24px; border-radius: 20px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; }
.fc-progress-info { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--text-soft); }
.topic-badge { font-size: 11px; background: rgba(126,184,232,0.1); border: 1px solid rgba(126,184,232,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.1); border-radius: 3px; overflow: hidden; }
.quiz-timer-bar::after { content: ''; display: block; height: 100%; background: linear-gradient(90deg, #1a3a6a, var(--gold)); width: var(--timer-pct, 100%); transition: width 1s linear; border-radius: 3px; }
.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: 28px 24px 20px; }
.quiz-word   { font-family: 'Playfair Display', serif; font-size: 38px; color: var(--white); text-align: center; line-height: 1.2; margin-bottom: 12px; }
.quiz-listen-btn button { background: var(--glass); border: 1px solid rgba(126,184,232,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(--mint); background: rgba(144,202,249,0.2); color: #e3f2fd; animation: correctPulse 0.4s ease; }
.choice-btn.wrong   { border-color: var(--coral); background: rgba(255,112,67,0.2); color: #ffccbc; 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.1); 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(126,184,232,0.2); 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(--gold); margin-bottom: 12px; font-weight: 600; }
.feedback-hint    { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.hint-etymology   { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 8px; }
.hint-derivatives { font-size: 12px; color: var(--mint); margin-bottom: 8px; }
.hint-example     { font-size: 12px; color: var(--text-soft); line-height: 1.5; font-style: italic; }
.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(126,184,232,0.15); border: 1px solid rgba(126,184,232,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; text-shadow: 0 0 30px rgba(126,184,232,0.9); }
@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: mascotFloat 3s ease-in-out infinite; }
.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(--gold); font-weight: 700; margin-bottom: 12px; }
.results-comment { font-size: 15px; color: var(--accent); 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 var(--glass-border); border-radius: var(--radius); padding: 12px; }
.r-stat-num   { font-family: 'Space Mono', monospace; font-size: 22px; color: var(--gold); }
.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; } }

/* ===== MASCOT OVERLAY ===== */
.shark-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; }
.shark-msg-box { background: linear-gradient(135deg, #162540, #0d1a2e); border: 2px solid var(--accent); 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.5); }
.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, #1a3a6a, #2e5fa3); color: var(--white); 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(126,184,232,0.3); border-radius: 2px; }

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