/* ==========================================================================
   WHO AM I? - VIETNAM JOBS MYSTERY QUIZ | SHINING STAR
   Art Style: Franco-Belgian Comic (Bande Dessinée) x Vietnamese Occupations
   Typography: Nunito & Be Vietnam Pro (100% Native Vietnamese Support)
   ========================================================================== */

:root {
  --ink-black: #1E1B18;
  --paper-bg: #FAF6EE;
  --panel-bg: #FFFFFF;
  --star-gold: #FFB300;
  --comic-yellow: #FFD54F;
  --comic-orange: #FF7043;
  --comic-red: #E53935;
  --comic-green: #43A047;
  --comic-blue: #1E88E5;
  --shadow-comic: 4px 4px 0px var(--ink-black);
  --shadow-comic-lg: 6px 6px 0px var(--ink-black);
  --shadow-comic-hover: 2px 2px 0px var(--ink-black);
  --border-comic: 3px solid var(--ink-black);
  --border-comic-thick: 4px solid var(--ink-black);
  --radius-comic: 20px;
}

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

body {
  font-family: 'Nunito', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #E8DFCF;
  background-image: 
    radial-gradient(#D3C7B2 1.5px, transparent 1.5px),
    radial-gradient(#D3C7B2 1.5px, #E8DFCF 1.5px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-black);
  padding: 10px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.comic-font {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Outer frame - styled like a French BD album page */
.comic-desk {
  width: 100%;
  max-width: 1080px;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
}

.comic-page-frame {
  background: var(--paper-bg);
  border: var(--border-comic-thick);
  border-radius: var(--radius-comic);
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  padding: 16px 22px 20px;
  position: relative;
  overflow: hidden;
  flex: 1;
}

/* ==========================================================================
   HEADER / HUD WITH SHINING STAR LOGO
   ========================================================================== */
.comic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--ink-black);
  padding-bottom: 12px;
  margin-bottom: 14px;
  gap: 12px;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid var(--ink-black);
  border-radius: 12px;
  padding: 4px 10px;
  box-shadow: 2px 2px 0px var(--ink-black);
}

.brand-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.comic-title-banner {
  flex: 1;
  text-align: center;
}

.banner-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFE082;
  border: var(--border-comic);
  padding: 6px 18px;
  border-radius: 30px;
  box-shadow: var(--shadow-comic);
}

.banner-ribbon .title-text {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-black);
  letter-spacing: 0.5px;
}

.ribbon-sparkle {
  font-size: 1.1rem;
}

.comic-btn {
  background: #FFFFFF;
  border: var(--border-comic);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  box-shadow: var(--shadow-comic);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.comic-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px var(--ink-black);
}

.comic-btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-comic-hover);
}

.btn-round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
}

.stars-counter {
  display: flex;
  gap: 4px;
  background: #FFF9C4;
  border: 2px solid var(--ink-black);
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 2px 2px 0px var(--ink-black);
}

.star-item {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-empty {
  color: #CFD8DC;
}

.star-filled {
  color: var(--star-gold);
  text-shadow: 1px 1px 0px #F57F17;
  transform: scale(1.15);
}

/* ==========================================================================
   SCREENS BASE
   ========================================================================== */
.screen-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

/* ==========================================================================
   SCREEN 1: WELCOME SCREEN
   ========================================================================== */
.welcome-box {
  background: #FFFFFF;
  border: var(--border-comic-thick);
  border-radius: var(--radius-comic);
  box-shadow: var(--shadow-comic-lg);
  padding: 26px 20px;
  text-align: center;
  margin: auto;
  max-width: 760px;
  width: 100%;
}

.school-pill-badge {
  display: inline-block;
  background: #FFD54F;
  color: var(--ink-black);
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 2px solid var(--ink-black);
  box-shadow: 2px 2px 0px var(--ink-black);
  margin-bottom: 10px;
}

.welcome-title {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink-black);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.welcome-subtitle {
  font-size: 1.05rem;
  color: #5D4037;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-characters-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.hero-mini-card {
  width: 95px;
  height: 120px;
  background: #FFFDE7;
  border: 2.5px solid var(--ink-black);
  border-radius: 14px;
  box-shadow: var(--shadow-comic);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
  transition: transform 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateY(-4px) scale(1.04);
}

.hero-mini-art-frame {
  width: 75px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-mini-art-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-mini-name {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-black);
}

.welcome-speech-bubble {
  background: #FFF9C4;
  border: 2.5px solid var(--ink-black);
  border-radius: 18px;
  padding: 12px 18px;
  margin: 0 auto 22px;
  max-width: 580px;
  box-shadow: var(--shadow-comic);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.bubble-icon-speaker {
  font-size: 2rem;
  flex-shrink: 0;
}

.speech-quote {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-black);
  line-height: 1.4;
  margin-bottom: 4px;
}

.speech-quote em {
  color: #D84315;
  font-style: normal;
  font-weight: 800;
}

.speech-sub {
  font-size: 0.88rem;
  color: #6D4C41;
  font-weight: 700;
}

.btn-comic-action {
  background: var(--comic-green);
  color: #FFFFFF;
  border: var(--border-comic-thick);
  border-radius: 35px;
  padding: 12px 34px;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  box-shadow: var(--shadow-comic-lg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: 0.5px;
}

.btn-comic-action:hover {
  background: #388E3C;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--ink-black);
}

.btn-comic-action:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-comic-hover);
}

.btn-pulse {
  animation: pulse-grow 2s infinite ease-in-out;
}

@keyframes pulse-grow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ==========================================================================
   SCREEN 2: MAIN PLAY SCREEN
   ========================================================================== */
#screen-play {
  gap: 14px;
}

/* Top Stage: Mystery Silhouette & Speech */
.mystery-stage-card {
  background: #FFFFFF;
  border: var(--border-comic-thick);
  border-radius: var(--radius-comic);
  box-shadow: var(--shadow-comic);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
}

.stage-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.round-badge {
  background: #E53935;
  color: white;
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 3px 12px;
  border: 2px solid var(--ink-black);
  border-radius: 6px;
  box-shadow: 2px 2px 0px var(--ink-black);
  letter-spacing: 0.5px;
}

.stage-hint {
  font-size: 0.92rem;
  font-weight: 700;
  color: #5D4037;
}

.mystery-center-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

@media (max-width: 680px) {
  .mystery-center-stage {
    flex-direction: column;
    gap: 14px;
  }
}

/* Silhouette Portal */
.silhouette-portal {
  width: 175px;
  height: 175px;
  background: radial-gradient(circle, #FFF9C4 30%, #FFE082 85%);
  border: var(--border-comic-thick);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 6px #FFFFFF, var(--shadow-comic);
  flex-shrink: 0;
  overflow: visible;
}

.silhouette-img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  /* PERFECT SOLID SILHOUETTE FROM TRANSPARENT PNG */
  filter: brightness(0);
  opacity: 0.96;
  transition: filter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s ease;
}

.silhouette-img.revealed {
  filter: none;
  transform: scale(1.05);
}

.mystery-question-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 44px;
  height: 44px;
  background: #FF5252;
  color: #FFFFFF;
  border: 2.5px solid var(--ink-black);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px var(--ink-black);
  animation: float-badge 2s infinite ease-in-out;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(8deg); }
}

/* Interactive Speech & Audio Panel */
.speech-interactive-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.comic-speech-cloud {
  background: #E8F5E9;
  border: 2.5px solid var(--ink-black);
  border-radius: 18px;
  padding: 14px 18px;
  position: relative;
  box-shadow: var(--shadow-comic);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Speech arrow */
.comic-speech-cloud::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 12px 10px 0;
  border-style: solid;
  border-color: transparent var(--ink-black) transparent transparent;
  display: block;
}

.comic-speech-cloud::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 10px 8px 0;
  border-style: solid;
  border-color: transparent #E8F5E9 transparent transparent;
  display: block;
}

/* Audio wave bars */
.sound-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  flex-shrink: 0;
}

.sound-wave-bars span {
  width: 4px;
  background: #2E7D32;
  border-radius: 2px;
  height: 6px;
  transition: height 0.15s ease;
}

.sound-wave-bars.active span:nth-child(1) { animation: wave 0.6s infinite alternate; }
.sound-wave-bars.active span:nth-child(2) { animation: wave 0.7s 0.1s infinite alternate; }
.sound-wave-bars.active span:nth-child(3) { animation: wave 0.5s 0.2s infinite alternate; }
.sound-wave-bars.active span:nth-child(4) { animation: wave 0.8s 0.15s infinite alternate; }
.sound-wave-bars.active span:nth-child(5) { animation: wave 0.6s 0.05s infinite alternate; }

@keyframes wave {
  0% { height: 6px; }
  100% { height: 24px; }
}

.speech-text-wrap {
  flex: 1;
}

.speech-line-1, .speech-line-2 {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1B5E20;
  line-height: 1.25;
}

.speech-line-2 {
  color: #2E7D32;
  margin-top: 3px;
}

.speech-vi {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #558B2F;
  margin-top: 5px;
}

.btn-listen-voice {
  background: #FFE082;
  border: var(--border-comic);
  border-radius: 14px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-comic);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-black);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn-listen-voice:hover {
  background: #FFD54F;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px var(--ink-black);
}

.btn-listen-voice:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-comic-hover);
}

.btn-listen-voice.speaking {
  background: #A5D6A7;
  animation: pulse-ring 0.8s infinite alternate;
}

@keyframes pulse-ring {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* Bottom Stage: Choices Grid */
.choices-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.choices-title-bar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.choices-title {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #424242;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  flex: 1;
}

@media (max-width: 820px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 540px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.job-choice-card {
  background: #FFFFFF;
  border: var(--border-comic);
  border-radius: var(--radius-comic);
  box-shadow: var(--shadow-comic);
  padding: 10px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.job-choice-card:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 0px var(--ink-black);
  border-color: #000;
  background: #FFFDE7;
}

.job-choice-card:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-comic-hover);
}

/* Shake on wrong */
.job-choice-card.shake {
  animation: comic-shake 0.45s ease-in-out;
  border-color: #E53935;
  background: #FFEBEE;
}

@keyframes comic-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px) rotate(-2deg); }
  40%, 80% { transform: translateX(8px) rotate(2deg); }
}

/* Correct Bump */
.job-choice-card.correct {
  animation: comic-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-color: #4CAF50;
  background: #E8F5E9;
}

.job-card-art-box {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

.job-choice-card:hover .job-card-art-box {
  transform: scale(1.06);
}

.job-card-art-box img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.job-label-wrap {
  text-align: center;
  width: 100%;
}

.job-name-en {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-black);
  text-transform: uppercase;
}

.job-name-vn {
  display: block;
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #616161;
  margin-top: 2px;
}

/* ==========================================================================
   SCREEN 3: REVEAL MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 24, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card {
  background: #FFFFFF;
  border: var(--border-comic-thick);
  border-radius: 24px;
  box-shadow: 10px 10px 0px var(--ink-black);
  max-width: 480px;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.comic-pop {
  animation: pop-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-bounce {
  0% { transform: scale(0.6) rotate(-3deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.reveal-badge {
  display: inline-block;
  background: #FFEB3B;
  border: 2.5px solid var(--ink-black);
  padding: 4px 16px;
  border-radius: 20px;
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 3px 3px 0px var(--ink-black);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.reveal-art-frame {
  width: 170px;
  height: 170px;
  margin: 0 auto 12px;
  background: radial-gradient(circle, #FFF9C4 30%, #FFF176 90%);
  border: var(--border-comic);
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 4px #FFFFFF, var(--shadow-comic);
  overflow: hidden;
}

.reveal-character-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  animation: cheer-wiggle 1.2s infinite ease-in-out;
}

@keyframes cheer-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.reveal-job-title {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink-black);
}

.reveal-pronounce-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 8px;
}

.btn-mini-speaker {
  background: #FFE082;
  border: 2px solid var(--ink-black);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 2px 2px 0px var(--ink-black);
}

.reveal-vietnamese {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #D84315;
}

.reveal-lines-box {
  background: #F1F8E9;
  border: 2px dashed #81C784;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 18px;
}

.reveal-line-en {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #2E7D32;
  line-height: 1.35;
}

.btn-next-round {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   SCREEN 4: VICTORY SCREEN WITH SHINING STAR BEE MASCOT
   ========================================================================== */
.victory-card {
  background: #FFFFFF;
  border: var(--border-comic-thick);
  border-radius: var(--radius-comic);
  box-shadow: var(--shadow-comic-lg);
  padding: 26px 20px;
  text-align: center;
  margin: auto;
  max-width: 760px;
  width: 100%;
}

.victory-school-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF9C4;
  border: 2px solid var(--ink-black);
  padding: 4px 16px;
  border-radius: 20px;
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  box-shadow: 2px 2px 0px var(--ink-black);
  margin-bottom: 12px;
}

.victory-logo-mini {
  height: 24px;
  width: auto;
}

/* Bee Mascot Section */
.bee-mascot-celebration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.shining-star-bee-img {
  width: 140px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.15));
  animation: bee-hover 2.2s infinite ease-in-out alternate;
}

@keyframes bee-hover {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-10px) rotate(3deg); }
}

.bee-speech-bubble {
  background: #FFEB3B;
  border: 2.5px solid var(--ink-black);
  border-radius: 18px;
  padding: 12px 18px;
  text-align: left;
  box-shadow: var(--shadow-comic);
  position: relative;
  max-width: 320px;
}

/* Speech arrow */
.bee-speech-bubble::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 12px 10px 0;
  border-style: solid;
  border-color: transparent var(--ink-black) transparent transparent;
  display: block;
}

.bee-speech-bubble::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 10px 8px 0;
  border-style: solid;
  border-color: transparent #FFEB3B transparent transparent;
  display: block;
}

.bee-speech-main {
  display: block;
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink-black);
}

.bee-speech-sub {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6D4C41;
  margin-top: 3px;
}

.victory-title {
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink-black);
  margin-bottom: 4px;
}

.victory-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: #5D4037;
  margin-bottom: 20px;
}

.victory-badge-summary {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.summary-chip {
  background: #E0F2F1;
  border: 2px solid var(--ink-black);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Nunito', 'Be Vietnam Pro', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 2px 2px 0px var(--ink-black);
}

/* Confetti */
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 14px;
  opacity: 0.9;
  border: 1px solid var(--ink-black);
  animation: confetti-fall 2.2s linear forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(300px) rotate(720deg); opacity: 0; }
}

/* Responsive */
@media (max-width: 600px) {
  .comic-page-frame {
    padding: 10px 12px;
  }
  .welcome-title {
    font-size: 1.7rem;
  }
  .silhouette-portal {
    width: 140px;
    height: 140px;
  }
  .shining-star-bee-img {
    width: 100px;
  }
  .bee-mascot-celebration {
    flex-direction: column;
    gap: 8px;
  }
  .bee-speech-bubble::before,
  .bee-speech-bubble::after {
    display: none;
  }
}
