:root {
  --primary-color: #ff9f1c;
  --primary-hover: #f77f00;
  --secondary-color: #2ec4b6;
  --accent-color: #e71d36;
  --bg-dark: #011627;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-main: #2b2d42;
  --text-muted: #8d99ae;
  --font-display: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a2a3a;
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 1280px;
  max-height: 720px;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

@media (max-width: 1280px) or (max-height: 720px) {
  #game-container {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

/* Canvas Game Utama */
#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #6ecbf5;
}

/* HUD Layer */
.hud-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 24px;
  z-index: 10;
}

.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.hud-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  border: 3px solid #ffde59;
}

.hud-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.hud-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #d90429;
}

/* Nyawa */
.lives-hearts {
  display: flex;
  gap: 4px;
  font-size: 20px;
  margin-top: 2px;
}

.heart {
  transition: transform 0.2s, opacity 0.2s;
}

.heart.lost {
  opacity: 0.25;
  filter: grayscale(1);
  transform: scale(0.8);
}

/* Question Banner */
.question-banner {
  background: linear-gradient(135deg, #ffffff 0%, #fff3b0 100%);
  border: 4px solid #ff9f1c;
  border-radius: 24px;
  padding: 8px 28px 12px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: bannerBounce 3s infinite ease-in-out;
  position: relative;
}

@keyframes bannerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.question-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff9f1c;
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 14px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.question-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #2b2d42;
  margin-top: 4px;
}

.target-highlight {
  display: inline-block;
  background: #e71d36;
  color: #fff;
  padding: 2px 14px;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 4px 0 #b30f24;
  margin-left: 4px;
  animation: targetPulse 1.2s infinite ease-in-out;
}

@keyframes targetPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Combo Badge */
.combo-badge {
  margin-top: 4px;
  background: linear-gradient(135deg, #ff9f1c, #e71d36);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(231, 29, 54, 0.4);
  animation: comboPop 0.3s ease-out;
}

@keyframes comboPop {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* HUD Bottom Bar */
.hud-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
}

.speed-indicator {
  background: rgba(0, 0, 0, 0.6);
  color: #ffde59;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.icon-btn {
  background: var(--card-bg);
  border: 3px solid #ffde59;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, background 0.15s;
}

.icon-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.icon-btn:active {
  transform: scale(0.95);
}

/* Keyboard Prompt Pill */
.keyboard-prompt-pill {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #ff9f1c;
  border-radius: 20px;
  padding: 6px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #2b2d42;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  animation: pillGlow 2s infinite ease-in-out;
}

@keyframes pillGlow {
  0%, 100% { box-shadow: 0 4px 10px rgba(255, 159, 28, 0.25); }
  50% { box-shadow: 0 4px 18px rgba(255, 159, 28, 0.6); }
}

.key-icon {
  font-size: 18px;
}

.btn-shortcut {
  display: inline-block;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

/* Overlay Screens (Character Select & Game Over) */
.overlay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 22, 39, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 30px 36px;
  text-align: center;
  border: 6px solid #ffb703;
  max-width: 90%;
  max-height: 92%;
  overflow-y: auto;
}

.character-modal {
  width: 780px;
}

.game-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: #e71d36;
  text-shadow: 0 3px 0 #ffde59;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Character Grid */
.character-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .character-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.char-card {
  background: #f8f9fa;
  border: 3px solid #e9ecef;
  border-radius: 18px;
  padding: 10px 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.char-card:hover {
  transform: translateY(-4px);
  border-color: #ff9f1c;
  background: #fff8eb;
}

.char-card.selected {
  border-color: #e71d36;
  background: #ffe3e6;
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 18px rgba(231, 29, 54, 0.25);
}

.char-icon-preview {
  font-size: 38px;
  line-height: 1;
}

.char-name-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.character-preview-info {
  background: #f0f8ff;
  border: 2px dashed #2ec4b6;
  border-radius: 16px;
  padding: 12px 20px;
  margin-bottom: 22px;
}

.char-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #028090;
  margin-bottom: 2px;
}

.char-desc {
  font-size: 13px;
  color: #555;
}

/* Buttons */
.primary-btn {
  background: linear-gradient(180deg, #2ec4b6 0%, #028090 100%);
  color: #fff;
  border: 3px solid #ffffff;
  border-radius: 28px;
  padding: 14px 42px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 6px 0 #014f59, 0 10px 20px rgba(2, 128, 144, 0.35);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.primary-btn:hover {
  filter: brightness(1.1);
}

.primary-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #014f59, 0 4px 10px rgba(2, 128, 144, 0.35);
}

.pulse-anim {
  animation: pulseButton 1.5s infinite;
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Game Over Modal */
.game-over-modal {
  width: 480px;
}

.game-over-header {
  margin-bottom: 20px;
}

.game-over-icon {
  font-size: 52px;
  display: block;
}

.game-over-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: #e71d36;
  text-shadow: 0 3px 0 #ffe3e6;
}

.stats-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

.stat-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.score-val { color: #ff9f1c; }
.correct-val { color: #2ec4b6; }
.wrong-val { color: #e71d36; }
.combo-val { color: #9d4edd; }

.game-over-status-box {
  background: #fdf2f4;
  border: 2px dashed #e71d36;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(231, 29, 54, 0.08);
}

.admin-lock-badge {
  background: #e71d36;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(231, 29, 54, 0.25);
}

.game-over-wait-msg {
  font-family: var(--font-body);
  font-size: 14px;
  color: #495057;
  line-height: 1.5;
  margin: 0;
}

/* Leaderboard Actions Bar in Teacher Tab */
.leaderboard-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.primary-btn-sm {
  background: linear-gradient(180deg, #2ec4b6 0%, #028090 100%);
  color: #fff;
  border: 2px solid #ffffff;
  border-radius: 20px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(2, 128, 144, 0.3);
  transition: transform 0.1s;
}

.primary-btn-sm:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.secondary-btn-sm {
  background: #e9ecef;
  color: #495057;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.secondary-btn-sm:hover {
  background: #dee2e6;
}

.secondary-btn {
  background: #e9ecef;
  color: var(--text-main);
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.secondary-btn:hover {
  background: #dee2e6;
}

/* Floating Text (Popups) */
.floating-text-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

.float-msg {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  animation: floatUpAndFade 1.2s forwards cubic-bezier(0.2, 0.8, 0.3, 1);
  white-space: nowrap;
}

.float-correct {
  color: #38b000;
  font-size: 32px;
}

.float-wrong {
  color: #e71d36;
  font-size: 32px;
}

.float-combo {
  color: #ff9f1c;
  font-size: 26px;
}

@keyframes floatUpAndFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -20px) scale(1.2);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -60px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -90px) scale(0.8);
  }
}

.hidden {
  display: none !important;
}

/* ====================================================
   ROLE SELECTION SCREEN (PILIH GURU / SISWA)
==================================================== */
.role-modal {
  width: 760px;
}

.role-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 700px) {
  .role-cards-container {
    grid-template-columns: 1fr;
  }
}

.role-card {
  background: #f8f9fa;
  border: 4px solid #e9ecef;
  border-radius: 24px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.role-card:hover {
  transform: translateY(-6px);
}

.teacher-role-card:hover {
  border-color: #028090;
  background: #e6f9fa;
  box-shadow: 0 10px 25px rgba(2, 128, 144, 0.2);
}

.student-role-card:hover {
  border-color: #ff9f1c;
  background: #fff8eb;
  box-shadow: 0 10px 25px rgba(255, 159, 28, 0.25);
}

.role-icon {
  font-size: 54px;
  margin-bottom: 8px;
}

.role-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #2b2d42;
  margin-bottom: 8px;
}

.role-desc {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.4;
  margin-bottom: 18px;
  flex-grow: 1;
}

.role-btn {
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  transition: transform 0.1s;
}

.teacher-btn {
  background: linear-gradient(180deg, #2ec4b6, #028090);
  color: #fff;
  box-shadow: 0 4px 0 #014f59;
}

.student-btn {
  background: linear-gradient(180deg, #ffb703, #fb8500);
  color: #fff;
  box-shadow: 0 4px 0 #b35900;
}

/* ====================================================
   TEACHER DASHBOARD (PORTAL GURU)
==================================================== */
.teacher-dashboard-modal {
  width: 860px;
  max-width: 95%;
  text-align: left;
}

.teacher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #e9ecef;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.teacher-title-area h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #028090;
}

.teacher-title-area p {
  font-size: 13px;
  color: #6c757d;
}

.room-code-badge {
  background: linear-gradient(135deg, #fff3b0, #ffde59);
  border: 3px solid #ff9f1c;
  border-radius: 18px;
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.room-code-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: #6c757d;
  letter-spacing: 0.5px;
}

.room-code-val {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: #e71d36;
  letter-spacing: 3px;
}

.teacher-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tab-btn {
  background: #e9ecef;
  border: none;
  border-radius: 12px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #495057;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn.active {
  background: #028090;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 128, 144, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.setting-card {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #2b2d42;
}

.form-select, .form-input {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border: 2px solid #ced4da;
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s;
}

.form-select:focus, .form-input:focus {
  border-color: #028090;
}

.setting-hint {
  font-size: 11px;
  color: #8d99ae;
}

.joined-students-section {
  background: #f0f8ff;
  border: 2px dashed #028090;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  min-height: 80px;
}

.joined-students-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #028090;
  margin-bottom: 0;
}

.danger-sm-btn {
  background: #ffe3e6;
  color: #e71d36;
  border: 1.5px solid #e71d36;
  border-radius: 12px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.danger-sm-btn:hover {
  background: #e71d36;
  color: #ffffff;
  transform: scale(1.03);
}

.student-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-chip {
  background: #ffffff;
  border: 2px solid #2ec4b6;
  border-radius: 20px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #2b2d42;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip-delete-btn {
  background: #ff4d6d;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 2px;
  padding: 0;
  line-height: 1;
  transition: transform 0.15s, background-color 0.15s;
}

.chip-delete-btn:hover {
  background: #c9184a;
  transform: scale(1.2);
}

.btn-delete-student {
  background: #fff0f3;
  color: #e71d36;
  border: 1px solid #ffccd5;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-delete-student:hover {
  background: #e71d36;
  color: #ffffff;
  border-color: #e71d36;
}

@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.empty-state-text {
  font-size: 13px;
  color: #8d99ae;
  font-style: italic;
}

.teacher-action-bar {
  display: flex;
  gap: 12px;
}

/* Tabel Leaderboard */
.leaderboard-table-wrapper {
  max-height: 280px;
  overflow-y: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.leaderboard-table th {
  background: #e9ecef;
  font-family: var(--font-display);
  font-weight: 800;
  color: #495057;
  padding: 10px;
  text-align: left;
  position: sticky;
  top: 0;
}

.leaderboard-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e9ecef;
  font-family: var(--font-body);
  font-weight: 600;
}

.leaderboard-table tr:nth-child(even) {
  background: #f8f9fa;
}

.rank-1 { color: #d4af37; font-weight: 900; font-size: 15px; }
.rank-2 { color: #a9a9a9; font-weight: 900; }
.rank-3 { color: #cd7f32; font-weight: 900; }

.status-badge {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.status-playing { background: #d8f3dc; color: #1b4332; }
.status-finished { background: #e0e1dd; color: #415a77; }

/* ====================================================
   STUDENT REGISTRATION FORM
==================================================== */
.student-register-modal {
  width: 480px;
}

.student-form-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-top: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #2b2d42;
}

.code-input {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e71d36;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* ====================================================
   STUDENT WAITING SCREEN
==================================================== */
.waiting-modal {
  width: 460px;
}

.waiting-icon-anim {
  font-size: 48px;
  animation: spinSlow 3s infinite linear;
  display: inline-block;
  margin-bottom: 8px;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

.waiting-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #028090;
  margin-bottom: 6px;
}

.waiting-subtitle {
  font-size: 15px;
  color: #495057;
  margin-bottom: 16px;
}

.waiting-char-chip {
  background: #f0f8ff;
  border: 2px solid #2ec4b6;
  border-radius: 20px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.waiting-char-chip .big-icon {
  font-size: 36px;
}

.chip-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #2b2d42;
}

.chip-desc {
  font-size: 12px;
  color: #6c757d;
}

.waiting-hint {
  font-size: 13px;
  color: #8d99ae;
}

/* HUD Student Badge */
.student-lives-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.hud-student-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: #028090;
  background: #e6f9fa;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid #2ec4b6;
}

