/* ===================================================================
   SAMURAI KANA SLICER: ULTRA-POLISHED JAPANESE ARCADE STYLES
   Aesthetic: Japanese Urushi Lacquer, Golden Kintsugi, Anime Cyberpunk
   =================================================================== */

:root {
  --primary-pink: #ff2a85;
  --primary-glow: rgba(255, 42, 133, 0.6);
  --neon-cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.6);
  --gold-sun: #ffd000;
  --gold-glow: rgba(255, 208, 0, 0.65);
  --emerald-green: #00e676;
  --crimson-red: #ff1744;
  --dark-bg: #0b0718;
  --dark-card: rgba(18, 12, 36, 0.94);
  --border-gold: rgba(255, 208, 0, 0.35);

  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-arcade: 'Fredoka', cursive, sans-serif;
  --font-jp: 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
}

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

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--dark-bg);
  font-family: var(--font-main);
  color: #fff;
}

/* Background Atmosphere */
.game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #1e0e38 0%, #0d081f 70%, #060310 100%);
}

/* 60 FPS Arcade Canvas */
#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: crosshair;
}

/* Overlay UI Container */
.ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ===================================================================
   HEADS-UP DISPLAY (HUD)
   =================================================================== */
.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(12, 8, 26, 0.92) 0%, rgba(12, 8, 26, 0.4) 80%, rgba(12, 8, 26, 0) 100%);
  border-bottom: 1px solid rgba(255, 208, 0, 0.15);
  pointer-events: auto;
}

/* Identitas Siswa Pill */
.hud-student-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 14, 44, 0.85);
  border: 1.5px solid var(--border-gold);
  padding: 8px 18px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 208, 0, 0.1);
}

.hud-avatar {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.hud-info .student-name-txt {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.hud-info .student-class-txt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* Mission / Soal Banner (Center HUD) */
.hud-mission-banner {
  text-align: center;
  max-width: 600px;
}

.mission-wave-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ff2a85, #8338ec);
  color: #fff;
  font-family: var(--font-arcade);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 16px;
  border-radius: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.5);
}

.mission-target-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 208, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.mission-target-text .target-highlight {
  color: var(--gold-sun);
  font-family: var(--font-jp);
  font-size: 1.55rem;
  padding: 0 4px;
  text-shadow: 0 0 20px var(--gold-sun);
}

/* Katana Soul Meter (刀魂ゲージ) */
.hud-soul-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(22, 14, 44, 0.85);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 6px 14px;
  backdrop-filter: blur(12px);
  min-width: 130px;
}

.soul-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-sun);
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 1px;
}

.soul-label span {
  font-family: var(--font-jp);
  color: #ff2a85;
}

.soul-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 0, 0.2);
}

.soul-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b35, var(--gold-sun));
  border-radius: 8px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px var(--gold-sun);
}

.soul-bar-fill.soul-max {
  background: linear-gradient(90deg, #00f0ff, #ff2a85, #ffd000) !important;
  animation: soulPulse 0.4s infinite alternate;
}

@keyframes soulPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.7) drop-shadow(0 0 8px #ffd000); }
}

/* Right Stats (Score & Audio) */
.hud-right-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hud-score-box {
  background: rgba(22, 14, 44, 0.85);
  border: 1.5px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: 16px;
  text-align: right;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hud-score-label {
  font-size: 0.65rem;
  color: #aaa;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hud-score-val {
  font-family: var(--font-arcade);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-sun);
  text-shadow: 0 0 15px rgba(255, 208, 0, 0.5);
}

.audio-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 208, 0, 0.3);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.audio-btn:hover {
  background: var(--primary-pink);
  border-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary-pink);
}

/* Bottom Bar */
.hud-bottom-bar {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.blade-combo-display {
  font-family: var(--font-arcade);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-pink);
  text-shadow: 0 0 20px var(--primary-pink), 0 0 40px #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blade-combo-display.active {
  opacity: 1;
  transform: scale(1.15);
}

.hud-instructions-pill {
  background: rgba(12, 8, 26, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 0.85rem;
  color: #e0e0e0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* ===================================================================
   PANEL 1: LOBBY & REGISTRASI SISWA
   =================================================================== */
.view-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 4, 14, 0.9);
  backdrop-filter: blur(16px);
  padding: 20px;
  pointer-events: auto;
  overflow-y: auto;
}

.view-panel.active {
  display: flex;
}

.lobby-modal {
  background: var(--dark-card);
  border: 2px solid var(--border-gold);
  border-radius: 28px;
  padding: 34px 30px;
  max-width: 640px;
  width: 94%;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 42, 133, 0.25);
  animation: panelPop 0.35s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes panelPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lobby-header {
  text-align: center;
  margin-bottom: 22px;
}

.badge-tag {
  display: inline-block;
  background: linear-gradient(90deg, #ff2a85, #8338ec);
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.5);
}

.lobby-header h1 {
  font-family: var(--font-arcade);
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #ffd000 50%, #ff2a85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.lobby-header p {
  color: #bbb;
  font-size: 0.92rem;
  margin-top: 6px;
}

/* Form Styles - Rapi, Presisi, dan Anti-Keluar Barisan */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.input-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.input-box label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-sun);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.input-box input, .input-box select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(8, 5, 18, 0.85);
  border: 1.5px solid rgba(255, 208, 0, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s;
  text-overflow: ellipsis;
}

.input-box select option {
  background: #0d0821;
  color: #ffffff;
}

.input-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.input-box input:focus, .input-box select:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 16px var(--primary-glow);
}

/* Katana Blade Picker */
.blade-select-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-sun);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blade-options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
  width: 100%;
  box-sizing: border-box;
}

.blade-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 208, 0, 0.2);
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.blade-card:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
  background: rgba(0, 240, 255, 0.1);
}

.blade-card.selected {
  border-color: var(--gold-sun);
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.25), rgba(255, 208, 0, 0.25));
  box-shadow: 0 0 18px rgba(255, 208, 0, 0.4);
}

.blade-icon {
  font-size: 1.7rem;
  margin-bottom: 2px;
  display: block;
}

.blade-name {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

/* Tombol Mulai */
.btn-launch-game {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff2a85 0%, #ff6b35 50%, #ffd000 100%);
  border: none;
  border-radius: 16px;
  color: #fff;
  font-family: var(--font-arcade);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 42, 133, 0.5);
  transition: all 0.25s;
}

.btn-launch-game:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 42, 133, 0.75);
}

/* ===================================================================
   COUNTDOWN ABA-ABA & NOTIFIKASI
   =================================================================== */
.countdown-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-arcade);
  font-size: 6.5rem;
  font-weight: 900;
  color: var(--gold-sun);
  text-shadow: 0 0 35px var(--primary-pink), 0 0 70px #fff;
  pointer-events: none;
  display: none;
  z-index: 25;
  animation: countdownPulse 0.45s ease-out;
}

@keyframes countdownPulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.wave-complete-banner {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(12, 8, 26, 0.96);
  border: 2px solid var(--emerald-green);
  border-radius: 20px;
  padding: 16px 36px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.55);
  pointer-events: none;
  display: none;
  z-index: 25;
  animation: bannerPop 0.35s forwards;
}

@keyframes bannerPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  70% { transform: translate(-50%, -50%) scale(1.08); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.wave-complete-banner h3 {
  font-family: var(--font-arcade);
  font-size: 1.8rem;
  color: var(--emerald-green);
}

.wave-complete-banner p {
  font-size: 0.95rem;
  color: #ddd;
}

/* ===================================================================
   PANEL 2: RAPOR RESMI HASIL NILAI UJIAN (SERTIFIKAT MAJESTIK)
   =================================================================== */
.result-card-modal {
  background: var(--dark-card);
  border: 2.5px solid var(--border-gold);
  border-radius: 28px;
  padding: 36px 32px;
  max-width: 820px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 208, 0, 0.25);
  position: relative;
  box-sizing: border-box;
}

.result-card-modal::-webkit-scrollbar {
  width: 6px;
}

.result-card-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 208, 0, 0.3);
  border-radius: 4px;
}

/* Watermark Kaligrafi Jepang */
.cert-watermark {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-jp);
  font-size: 18rem;
  font-weight: 900;
  color: rgba(255, 208, 0, 0.035);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

/* Stempel Hanko Tradisional Merah */
.hanko-seal {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 88px;
  height: 88px;
  border: 3.5px double var(--crimson-red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--crimson-red);
  font-family: var(--font-jp);
  font-weight: 900;
  transform: rotate(-12deg);
  opacity: 0.92;
  z-index: 2;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
}

.hanko-seal .hanko-kanji {
  font-size: 1.45rem;
  line-height: 1;
}

.hanko-seal .hanko-text {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
}

.result-card-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cert-crest {
  font-family: var(--font-arcade);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-sun);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(255, 208, 0, 0.4);
}

.result-card-header h2 {
  font-family: var(--font-arcade);
  font-size: 2.2rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.cert-sub-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Credential Siswa Bar */
.student-credential-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px auto 0 auto;
  background: rgba(8, 5, 18, 0.75);
  border: 1.5px solid var(--border-gold);
  padding: 8px 22px;
  border-radius: 20px;
  max-width: 580px;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.cred-label {
  font-size: 0.72rem;
  color: #aaa;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.cred-val {
  color: #ffffff;
  font-weight: 800;
}

.cred-divider {
  color: var(--gold-sun);
  opacity: 0.6;
}

/* Big Score Medallion */
.score-hero-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.score-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 133, 0.25) 0%, rgba(131, 56, 236, 0.35) 100%);
  border: 4px solid var(--gold-sun);
  box-shadow: 0 0 35px var(--gold-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-orb-val {
  font-family: var(--font-arcade);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 25px var(--gold-sun);
}

.score-orb-max {
  font-size: 0.72rem;
  color: #ccc;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.rank-title-badge {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-sun);
  margin-top: 10px;
  text-shadow: 0 0 15px rgba(255, 208, 0, 0.5);
}

.rank-caption-txt {
  font-size: 0.84rem;
  color: #ccc;
  margin-top: 6px;
  font-style: italic;
  text-align: center;
  max-width: 520px;
  line-height: 1.4;
}

/* Grid Rincian Nilai */
.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.stat-metric-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.metric-icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.stat-metric-box .metric-num {
  font-family: var(--font-arcade);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.stat-metric-box .metric-label {
  font-size: 0.72rem;
  color: #bbb;
  margin-top: 3px;
  font-weight: 700;
}

/* Progress Penguasaan Hiragana vs Katakana */
.mastery-bars-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
  background: rgba(8, 5, 18, 0.7);
  border: 1.5px solid rgba(255, 208, 0, 0.25);
  border-radius: 18px;
  padding: 12px 18px;
  position: relative;
  z-index: 1;
}

.mastery-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mastery-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #eee;
}

.mastery-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mastery-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fill-pink {
  background: linear-gradient(90deg, #ff2a85, #ff6b35);
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.5);
}

.fill-cyan {
  background: linear-gradient(90deg, #00f0ff, #0077b6);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Evaluasi Soal Ujian (Review List Anti-Terpotong) */
.exam-review-container {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.exam-review-container h4 {
  font-size: 1.05rem;
  color: var(--gold-sun);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.exam-review-list {
  max-height: 310px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-review-list::-webkit-scrollbar {
  width: 6px;
}

.exam-review-list::-webkit-scrollbar-thumb {
  background: rgba(255, 208, 0, 0.35);
  border-radius: 4px;
}

.review-row {
  background: rgba(8, 5, 18, 0.75);
  border: 1.5px solid rgba(255, 208, 0, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.review-row.correct-hit {
  border-left: 4.5px solid var(--emerald-green);
}

.review-row.wrong-hit {
  border-left: 4.5px solid var(--crimson-red);
}

.review-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 48px;
}

.review-num-pill {
  font-family: var(--font-arcade);
  font-size: 0.75rem;
  font-weight: 800;
  color: #ccc;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
}

.review-kana-tile {
  font-family: var(--font-jp);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffd000;
  background: rgba(255, 208, 0, 0.12);
  border: 1.5px solid rgba(255, 208, 0, 0.4);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 208, 0, 0.2);
}

.review-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-q-prompt {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  word-break: break-word;
}

.review-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.review-chip {
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.key-chip {
  background: rgba(255, 208, 0, 0.15);
  color: #ffd000;
  border: 1px solid rgba(255, 208, 0, 0.3);
}

.hit-chip-ok {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.hit-chip-bad {
  background: rgba(255, 23, 68, 0.15);
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.3);
}

.review-exp-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: #d0d0d0;
  line-height: 1.45;
  word-break: break-word;
}

/* Tombol Aksi */
.result-buttons-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.btn-act {
  padding: 12px 22px;
  border-radius: 14px;
  font-family: var(--font-arcade);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
}

.btn-act-print {
  background: linear-gradient(135deg, var(--neon-cyan), #00b4d8);
  color: #0b0818;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

.btn-act-replay {
  background: linear-gradient(135deg, var(--primary-pink), #8338ec);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 42, 133, 0.4);
}

.btn-act-menu {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 208, 0, 0.3);
  color: #fff;
}

.btn-act:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* ===================================================================
   RESPONSIVE LAYOUT (MOBILE & TABLET)
   =================================================================== */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .blade-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hud-top-bar {
    padding: 10px 14px;
  }
  .mission-target-text {
    font-size: 1.05rem;
  }
  .hanko-seal {
    position: static;
    margin: 0 auto 12px auto;
  }
  .result-buttons-row {
    flex-direction: column;
  }
}

/* ===================================================================
   PRINT STYLESHEET RESMI UNTUK GURU & RAPOR
   =================================================================== */
@media print {
  body, html {
    background: #fff !important;
    color: #000 !important;
    overflow: visible !important;
  }
  #game-canvas, .ui-overlay, .result-buttons-row {
    display: none !important;
  }
  .view-panel {
    position: static !important;
    background: #fff !important;
    padding: 0 !important;
  }
  .result-card-modal {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
    padding: 24px !important;
    max-width: 100% !important;
  }
  .result-card-header h2, .result-student-id, .score-orb-val, .rank-title-badge {
    color: #000 !important;
    text-shadow: none !important;
  }
  .score-orb {
    border: 3px solid #000 !important;
    background: #f4f4f4 !important;
    box-shadow: none !important;
  }
  .stat-metric-box, .review-row {
    background: #fff !important;
    border: 1px solid #999 !important;
    color: #000 !important;
  }
  .exam-review-list {
    max-height: none !important;
    overflow: visible !important;
  }
  .hanko-seal {
    border-color: #b30000 !important;
    color: #b30000 !important;
  }
}
