/* ==========================================================================
   ABSO CHALLENGE - KIOSK TOUCHSCREEN 55" STYLESHEET (REVISION 1)
   Resolution: Fixed 1080 x 1920 (Portrait 9:16)
   Enhanced with v2 Assets, Dual Backgrounds, and Visual Inactivity Timer
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. RESET & VIEWPORT LOCKS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Brand Palette */
  --color-sky-top: #80D8F8;
  --color-sky-bottom: #DCF6FF;
  --color-brand-blue: #0A5486;
  --color-brand-navy: #0F3A5C;
  --color-brand-green: #22C55E;
  --color-brand-green-dark: #15803D;
  --color-brand-emerald: #10B981;
  --color-brand-red: #EF4444;
  --color-brand-red-dark: #B91C1C;
  --color-brand-amber: #F59E0B;
  --color-brand-gold: #EAB308;
  --color-text-main: #0B3354;
  --color-text-sub: #54728C;
  --color-card-bg: #FFFFFF;

  /* Typography */
  --font-family-title: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-family-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Shadows */
  --shadow-card: 0 16px 36px rgba(10, 84, 134, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-btn-green: 0 16px 32px rgba(34, 197, 94, 0.42), 0 6px 12px rgba(21, 128, 61, 0.3);
  --shadow-btn-red: 0 16px 32px rgba(239, 68, 68, 0.42), 0 6px 12px rgba(185, 28, 28, 0.3);
  --shadow-pop: 0 20px 48px rgba(0, 0, 0, 0.16);
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #05131E;
  font-family: var(--font-family-body);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

/* --------------------------------------------------------------------------
   1. KIOSK CONTAINER & RESPONSIVE STAGE
   -------------------------------------------------------------------------- */
.kiosk-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #11283B 0%, #061019 100%);
}

.kiosk-stage {
  width: 1080px;
  height: 1920px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-sky-top);
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.85);
  transform-origin: center center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   2. AMBIENT BACKGROUND SYSTEM (REVISION 2)
   -------------------------------------------------------------------------- */
.kiosk-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  background-size: cover;
  background-position: center bottom;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  opacity: 0;
}

/* Screen Backgrounds */
.bg-layer-idle {
  background-image: url('assets/images/v21/bg-idle-v21.png');
}

.bg-layer-gameplay {
  background-image: url('assets/images/v21/bg-gameplay-v21.png');
}

.bg-layer-result {
  background-image: url('assets/images/v21/bg-result-v21.png');
}

.bg-layer-transition {
  background-image: url('assets/images/v21/bg-transition.png');
}

/* Stage State Triggers */
.kiosk-stage.stage-idle .bg-layer-idle {
  opacity: 1;
  z-index: 2;
}

.kiosk-stage.stage-gameplay .bg-layer-gameplay {
  opacity: 1;
  z-index: 2;
}

.kiosk-stage.stage-result .bg-layer-result {
  opacity: 1;
  z-index: 2;
}

.kiosk-stage.stage-transition .bg-layer-transition {
  opacity: 1;
  z-index: 2;
}

/* Confetti canvas */
.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  pointer-events: none;
  z-index: 99;
}

/* --------------------------------------------------------------------------
   4. GLOBAL FOOTER
   -------------------------------------------------------------------------- */
.global-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 0 45px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 2px solid rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 19px;
  color: #124368;
  z-index: 10;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-weight: 900;
  color: #0A5785;
}

.footer-separator {
  color: #93C2DC;
}

.footer-quote-id {
  font-weight: 700;
}

.footer-quote-en {
  font-style: italic;
  color: #557994;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #107C41;
}

.leaf-icon {
  font-size: 24px;
}

/* --------------------------------------------------------------------------
   5. SCREEN SYSTEM & TRANSITIONS
   -------------------------------------------------------------------------- */
.game-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  padding: 60px 60px 95px 60px;
  display: none !important;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  z-index: 5;
  pointer-events: none;
}

.game-screen.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 8;
  animation: screenFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.screen-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. ACTION BUTTONS (REVISION 2)
   -------------------------------------------------------------------------- */
.btn-kiosk {
  width: 100%;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family-title);
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn-kiosk:active {
  transform: scale(0.96);
  filter: brightness(0.92);
}

/* Revision 1 & 2 Required Spec: min-height 140px, padding: 20px 40px */
.btn-action-large {
  min-height: 140px;
  padding: 20px 40px;
}

.btn-medium {
  min-height: 104px;
  padding: 14px 34px;
}

/* Revision 1 & 2 Required Spec: font-size 38px bold uppercase */
.btn-main-label {
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  line-height: 1.15;
}

.btn-sub-label {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.92;
  line-height: 1.15;
}

/* Primary Green Button */
.btn-primary {
  background: linear-gradient(180deg, #32D766 0%, #15A548 60%, #0F8236 100%);
  color: #FFFFFF;
  border: 4px solid #7AF0A0;
  box-shadow: var(--shadow-btn-green);
}

.btn-primary:active {
  box-shadow: 0 6px 14px rgba(21, 128, 61, 0.4);
}

/* Wooden-brown Button (Revision 2 Idle Screen) */
.btn-wood {
  background: linear-gradient(180deg, #8B5A2B 0%, #6E411B 50%, #5C3A21 100%);
  color: #FFFFFF;
  border: 4px solid #D49B5B;
  box-shadow: 0 16px 36px rgba(92, 58, 33, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.35);
}

.btn-wood:active {
  box-shadow: 0 6px 16px rgba(92, 58, 33, 0.6);
}

.btn-wood .btn-main-label {
  color: #FFE58F;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.btn-wood .btn-sub-label {
  color: #FFFFFF;
  opacity: 0.95;
}

.btn-idle-action {
  min-height: 120px;
  padding: 24px 44px;
}

.pulse-glow-wood {
  animation: pulse-glow-wood-kf 2.5s infinite ease-in-out;
}

@keyframes pulse-glow-wood-kf {
  0%, 100% {
    box-shadow: 0 14px 34px rgba(92, 58, 33, 0.45), 0 0 0 rgba(212, 155, 91, 0);
  }
  50% {
    box-shadow: 0 18px 42px rgba(92, 58, 33, 0.6), 0 0 28px rgba(212, 155, 91, 0.65);
  }
}

/* Danger Red Button */
.btn-danger {
  background: linear-gradient(180deg, #F85D5D 0%, #DC2626 60%, #991B1B 100%);
  color: #FFFFFF;
  border: 4px solid #FCA5A5;
  box-shadow: var(--shadow-btn-red);
}

.btn-danger:active {
  box-shadow: 0 6px 14px rgba(185, 28, 28, 0.4);
}

/* Outline Button */
.btn-outline {
  background: rgba(255, 255, 255, 0.95);
  color: #0A5486;
  border: 4px solid #93C5FD;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-outline .btn-main-label {
  text-shadow: none;
  color: #0A5486;
}

.btn-outline .btn-sub-label {
  color: #4B6E88;
}

/* --------------------------------------------------------------------------
   7. WOODEN SIGNBOARD COMPONENT
   -------------------------------------------------------------------------- */
.wooden-signboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.wooden-plank {
  background: linear-gradient(180deg, #D49B5B 0%, #B8783B 50%, #945826 100%);
  border: 6px solid #633812;
  border-radius: 26px;
  padding: 24px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28), inset 0 3px 6px rgba(255, 255, 255, 0.35);
  text-align: center;
  position: relative;
  z-index: 2;
}

.wooden-plank.plank-large {
  padding: 38px 56px;
  gap: 12px;
}

.wooden-plank::before,
.wooden-plank::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3B1F07;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.4);
}

.wooden-plank::before {
  left: 18px;
}

.wooden-plank::after {
  right: 18px;
}

.sign-text-id {
  font-family: var(--font-family-title);
  font-size: 26px;
  font-weight: 700;
  color: #2D1402;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.sign-text-en {
  font-size: 19px;
  font-weight: 600;
  font-style: italic;
  color: #4D2605;
}

.sign-text-highlight {
  font-family: var(--font-family-title);
  font-size: 38px;
  font-weight: 800;
  color: #2D1402;
  letter-spacing: 1px;
  line-height: 1.25;
}

.wooden-posts {
  display: flex;
  justify-content: space-between;
  width: 75%;
  position: absolute;
  bottom: -45px;
  z-index: 1;
}

.post {
  width: 32px;
  height: 60px;
  background: linear-gradient(90deg, #7A451A 0%, #5C3211 100%);
  border: 4px solid #3B1F07;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   8. SPEECH BUBBLES
   -------------------------------------------------------------------------- */
.speech-bubble {
  background: #FFFFFF;
  border: 4px solid #9BD7FA;
  border-radius: 36px;
  padding: 24px 34px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.bubble-left::after {
  bottom: -22px;
  left: 60px;
  border-width: 22px 18px 0 18px;
  border-color: #FFFFFF transparent transparent transparent;
}

.bubble-right::before {
  content: '';
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 16px 0 16px 22px;
  border-color: transparent transparent transparent #9BD7FA;
  z-index: 1;
}

.bubble-right::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 14px 0 14px 20px;
  border-color: transparent transparent transparent #FFFFFF;
  z-index: 2;
}

.bubble-hint::after {
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 16px 22px 16px 0;
  border-color: transparent #FFFFFF transparent transparent;
}

.bubble-encourage::after {
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 16px 22px 16px 0;
  border-color: transparent #FFFFFF transparent transparent;
}

.bubble-feedback::after {
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 16px 22px 16px 0;
  border-color: transparent #FFFFFF transparent transparent;
}

.speech-id {
  font-family: var(--font-family-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-brand-navy);
  line-height: 1.3;
}

.speech-en {
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-sub);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   8. SEMI-TRANSPARENT WHITE CONTENT CARDS (REVISION 2)
   -------------------------------------------------------------------------- */
.white-content-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(10, 84, 134, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.instruction-white-card {
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.question-white-card {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   9. SCREEN 2: INSTRUCTION SCREEN (RULES)
   -------------------------------------------------------------------------- */
.instruction-content {
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 25px;
  gap: 20px;
}

.page-title-badge {
  text-align: center;
  margin-bottom: 8px;
}

/* Revision 2: Header >= 42px Bold */
.page-title-id {
  font-family: var(--font-family-title);
  font-size: 50px;
  font-weight: 800;
  color: var(--color-brand-navy);
  letter-spacing: 1px;
  line-height: 1.15;
}

.page-title-en {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-text-sub);
  letter-spacing: 0.5px;
}

.instruction-steps-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.instruction-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 3px solid #D6EEFC;
  border-radius: 24px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 20px rgba(10, 84, 134, 0.08);
}

.step-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family-title);
  font-size: 38px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.badge-orange {
  background: linear-gradient(135deg, #F97316, #EA580C);
}

.badge-green {
  background: linear-gradient(135deg, #10B981, #059669);
}

.badge-yellow {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.badge-gold {
  background: linear-gradient(135deg, #EAB308, #CA8A04);
}

.step-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Revision 2: Rule Steps Text >= 32px - 36px Bold */
.step-text-id {
  font-family: var(--font-family-title);
  font-size: 34px;
  font-weight: 700;
  color: var(--color-brand-navy);
  line-height: 1.25;
}

.step-text-en {
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-sub);
}

.instruction-mascot-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
}

.instruction-mascot-row .speech-bubble {
  flex: 1;
  margin-right: 20px;
}

.mascot-peek-wrapper {
  width: 250px;
  height: 260px;
  flex-shrink: 0;
}

.mascot-instruction-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.16));
}

.instruction-action-area {
  width: 780px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   10. SCREEN 3: QUESTION SCREEN (GAMEPLAY)
   -------------------------------------------------------------------------- */
.question-content {
  justify-content: flex-start;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 20px;
}

/* Top HUD Container enclosing Step Indicators & Timer Bar */
.question-top-hud {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 36px;
  box-shadow: 0 8px 24px rgba(10, 84, 134, 0.08);
}

/* Step Progress Indicator */
.step-progress-bar {
  width: 580px;
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.step-line {
  position: absolute;
  top: 50%;
  left: 45px;
  right: 45px;
  height: 8px;
  background: #B3E3FC;
  transform: translateY(-50%);
  z-index: 1;
}

.step-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 5px solid #9CD7F8;
  color: #6496B8;
  font-family: var(--font-family-title);
  font-size: 36px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.step-circle.active {
  background: #10B981;
  border-color: #6EE7B7;
  color: #FFFFFF;
  transform: scale(1.15);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}

.step-circle.completed {
  background: #059669;
  border-color: #34D399;
  color: #FFFFFF;
}

/* Visual Inactivity Timer Progress Bar */
.question-timer-hud {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timer-bar-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-title);
  font-size: 19px;
  font-weight: 700;
  color: #0A5486;
  letter-spacing: 0.5px;
}

.timer-icon {
  font-size: 20px;
}

.timer-bar-track {
  width: 100%;
  height: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
  position: relative;
}

.timer-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  transition: width 0.1s linear, background 0.3s ease;
}

.timer-green {
  background: linear-gradient(90deg, #10B981 0%, #06B6D4 100%);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

.timer-amber {
  background: linear-gradient(90deg, #F59E0B 0%, #EAB308 100%);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.timer-red {
  background: linear-gradient(90deg, #EF4444 0%, #F97316 100%);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.85);
  animation: pulse-timer-alert 1s infinite alternate;
}

@keyframes pulse-timer-alert {
  0% {
    filter: brightness(1);
  }

  100% {
    filter: brightness(1.25);
  }
}

/* Category Pill */
.category-pill-wrapper {
  display: flex;
  justify-content: center;
}

.category-pill {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 3px solid #F59E0B;
  color: #92400E;
  font-family: var(--font-family-title);
  font-size: 26px;
  font-weight: 800;
  padding: 10px 36px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Question Text Area: Rendered directly on white overlay card without nested box */
.question-text-area {
  width: 100%;
  text-align: center;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-title-id {
  font-family: var(--font-family-title);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-brand-navy);
}

.q-title-en {
  font-size: 25px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-sub);
  line-height: 1.3;
}

/* Option Cards (A, B, C) - Revision 2 Sky-blue Gradient & Green Selection Delay */
.options-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 10;
}

.option-card {
  width: 100%;
  min-height: 124px;
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 55%, #7DD3FC 100%);
  border: 4px solid #38BDF8;
  border-radius: 28px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 24px rgba(10, 84, 134, 0.12);
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.option-card * {
  pointer-events: none;
}

.option-card:active {
  transform: scale(0.98);
}

/* Option Selection State: Green (#2ECC71) held for 1.5 - 2s */
.option-card.selected-active {
  background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%) !important;
  border-color: #86EFAC !important;
  box-shadow: 0 0 35px rgba(46, 204, 113, 0.8), 0 12px 28px rgba(39, 174, 96, 0.45) !important;
  transform: scale(1.02);
}

.option-card.selected-active .option-badge {
  background: #FFFFFF !important;
  color: #15803D !important;
  border-color: #DCFCE7 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.option-card.selected-active .option-text-id {
  color: #FFFFFF !important;
}

.option-card.selected-active .option-text-en {
  color: #DCFCE7 !important;
}

.option-card.option-inactive {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.2);
}

.option-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family-title);
  font-size: 38px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border: 3px solid #E0F2FE;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
}

.option-a .option-badge,
.option-b .option-badge,
.option-c .option-badge {
  background: linear-gradient(135deg, #0284C7 0%, #075985 100%);
}

.option-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-text-id {
  font-family: var(--font-family-title);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-brand-navy);
  line-height: 1.25;
}

.option-text-en {
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-sub);
}

/* Bottom Hint Row */
.question-mascot-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: auto;
  margin-bottom: 16px;
}

.mascot-hint-wrapper {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.mascot-hint-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.14));
}

/* --------------------------------------------------------------------------
   12. SCREEN 4 & 5: FEEDBACK SCREENS (ENHANCED & VIBRANT)
   -------------------------------------------------------------------------- */
.modal-feedback-screen {
  background: rgba(220, 245, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 60px 60px 85px 60px;
  overflow: hidden;
}

/* Radiant Burst Background Layer */
.feedback-bg-burst {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  background-size: cover;
  background-position: center top;
  pointer-events: none;
  z-index: 1;
}

.bg-burst-correct {
  background-image: url('assets/images/v2/bg-correct-burst.png');
  opacity: 0.92;
}

.bg-burst-wrong {
  background-image: url('assets/images/v2/bg-wrong-burst.png');
  opacity: 0.92;
}

/* Floating Sparkle Stars Decor */
.floating-decor {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.decor-sparkle-top-left {
  top: 290px;
  left: 60px;
  width: 160px;
  height: 160px;
}

.decor-sparkle-top-right {
  top: 310px;
  right: 60px;
  width: 150px;
  height: 150px;
}

.decor-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(253, 224, 71, 0.6));
}

.float-slow {
  animation: float 4.5s ease-in-out infinite;
}

.float-fast {
  animation: float 3s ease-in-out infinite alternate;
}

.float-gentle {
  animation: float-gentle-kf 3s ease-in-out infinite alternate;
}

@keyframes float-gentle-kf {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-12px) rotate(4deg);
  }
}

/* Feedback Content Container */
.feedback-content {
  position: relative;
  z-index: 5;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 16px;
}

/* Hero Section with Icon & Glowing Halo - shifted down to avoid header collision */
.feedback-hero-section {
  position: relative;
  width: 100%;
  height: 330px;
  margin-top: 35px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feedback-halo {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.halo-correct {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.55) 0%, rgba(34, 197, 94, 0.28) 50%, rgba(255, 255, 255, 0) 75%);
  animation: pulse-halo 2.5s infinite ease-in-out;
}

.halo-wrong {
  background: radial-gradient(circle, rgba(248, 113, 113, 0.55) 0%, rgba(239, 68, 68, 0.28) 50%, rgba(255, 255, 255, 0) 75%);
  animation: pulse-halo 2s infinite ease-in-out;
}

@keyframes pulse-halo {

  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.10);
    opacity: 1;
  }
}

/* Foliage Leaves framing the checkmark */
.feedback-leaf {
  position: absolute;
  width: 150px;
  height: 150px;
  z-index: 2;
  pointer-events: none;
}

.leaf-left {
  left: 130px;
  top: 85px;
}

.leaf-right {
  right: 130px;
  top: 85px;
}

.leaf-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(22, 163, 74, 0.35));
}

.feedback-icon-wrapper {
  position: relative;
  width: 440px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.feedback-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.24));
}

.anim-correct-wrapper {
  animation: none;
}

.anim-wrong-wrapper {
  animation: shake 0.6s ease-in-out;
}

/* Feedback Heading with Pill Badges */
.feedback-heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.feedback-badge-pill {
  padding: 8px 32px;
  border-radius: 9999px;
  font-family: var(--font-family-title);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.pill-correct {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: 2px solid #6EE7B7;
}

.pill-wrong {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #FFFFFF;
  border: 2px solid #FCA5A5;
}

.feedback-title-id {
  font-family: var(--font-family-title);
  font-size: 68px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(255, 255, 255, 0.9);
}

.feedback-title-en {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.text-correct {
  color: #16A34A;
}

.text-correct-en {
  color: #15803D;
}

.text-wrong {
  color: #DC2626;
}

.text-wrong-en {
  color: #B91C1C;
}

/* Explanation Card with Header Ribbon/Tag */
.feedback-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 36px;
  padding: 30px 44px;
  text-align: center;
  box-shadow: var(--shadow-card), 0 0 24px rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.card-correct {
  border: 4px solid #86EFAC;
}

.card-wrong {
  border: 4px solid #FECACA;
}

.feedback-card-header {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.card-tag {
  font-family: var(--font-family-title);
  font-size: 20px;
  font-weight: 800;
  padding: 6px 24px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-correct {
  background: #DCFCE7;
  color: #15803D;
  border: 2px solid #86EFAC;
}

.tag-wrong {
  background: #FEE2E2;
  color: #B91C1C;
  border: 2px solid #FCA5A5;
}

.feedback-text-id {
  font-family: var(--font-family-title);
  font-size: 36px;
  /* Revision 2 spec: 34px - 38px */
  font-weight: 700;
  color: var(--color-brand-navy);
  line-height: 1.35;
}

.feedback-text-en {
  font-size: 26px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-sub);
  line-height: 1.35;
}

/* Mascot Row with Integrated Speech Bubble */
.feedback-mascot-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 6px 0;
}

.mascot-avatar-wrapper {
  width: 260px;
  height: 280px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-avatar-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.2));
}

.bubble-feedback {
  flex: 1;
  max-width: 620px;
  border-radius: 32px;
  padding: 22px 30px;
}

.bubble-correct {
  border-color: #86EFAC;
  background: #FFFFFF;
}

.bubble-wrong {
  border-color: #FCA5A5;
  background: #FFFFFF;
}

.feedback-action-area {
  width: 820px;
  margin-bottom: 14px;
}

.pulse-glow-red {
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
  animation: pulse-glow-red-kf 2s infinite ease-in-out;
}

@keyframes pulse-glow-red-kf {

  0%,
  100% {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
  }

  50% {
    box-shadow: 0 0 45px rgba(239, 68, 68, 0.9);
  }
}

/* --------------------------------------------------------------------------
   13. SCREEN 8: FINISH SCREEN
   -------------------------------------------------------------------------- */
.finish-content {
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 25px;
}

.trophy-wrapper {
  width: 360px;
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  margin-bottom: 8px;
}

.trophy-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(234, 179, 8, 0.45));
}

.finish-heading {
  text-align: center;
}

.finish-title-id {
  font-family: var(--font-family-title);
  font-size: 68px;
  font-weight: 900;
  color: #0E5C75;
  letter-spacing: 1px;
}

.finish-title-en {
  font-size: 32px;
  font-weight: 700;
  color: #0E7490;
  margin-bottom: 12px;
}

.finish-subtitle-id {
  font-family: var(--font-family-title);
  font-size: 38px;
  font-weight: 800;
  color: var(--color-brand-navy);
  line-height: 1.3;
}

.finish-subtitle-en {
  font-size: 26px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-sub);
}

.achievement-badges-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.achievement-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 3px solid #CDEAFD;
  border-radius: 32px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 26px;
  box-shadow: var(--shadow-card);
}

.achievement-icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.achievement-icon-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.bg-emerald {
  background: #10B981;
}

.bg-amber {
  background: #F59E0B;
}

.bg-red {
  background: #EF4444;
}

.achievement-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ach-text-id {
  font-family: var(--font-family-title);
  font-size: 35px;
  font-weight: 800;
  color: var(--color-brand-navy);
  line-height: 1.3;
}

.ach-text-en {
  font-size: 25px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-sub);
}

.finish-action-area {
  width: 780px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   14. SCREEN 7: TRANSITION RESET SCREEN (MATCH REFERENCE MOCKUP)
   -------------------------------------------------------------------------- */
.transition-content {
  justify-content: flex-start;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 90px;
}

.transition-visual-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.mascot-waving-wrapper {
  width: 640px;
  height: 850px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-waving-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(10, 84, 134, 0.28));
}

/* Banner decor: 780px wide with natural overlap under Odie's feet */
.decor-banner-wrapper {
  width: 780px;
  max-width: 90%;
  margin-top: -110px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.decor-banner-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(10, 84, 134, 0.22));
}

.countdown-badge {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 3px solid #9BD7FA;
  border-radius: 9999px;
  padding: 14px 44px;
  font-size: 24px;
  font-weight: 700;
  color: #0E5C75;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  box-shadow: 0 10px 24px rgba(10, 84, 134, 0.15);
  z-index: 4;
}

.countdown-badge strong {
  font-size: 36px;
  color: #EF4444;
}

/* Entrance & Micro-Animations for Transition Reset */
@keyframes fadeInEntrance {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade-in {
  animation: fadeInEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes odieFloatKf {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.02);
  }
}

.anim-odie-float {
  animation: fadeInEntrance 0.7s ease-out both, odieFloatKf 3.5s ease-in-out infinite 0.7s;
}

@keyframes bannerSlideKf {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.anim-banner-slide {
  animation: bannerSlideKf 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* --------------------------------------------------------------------------
   15. SCREEN 1: IDLE SCREEN (ATTRACT MODE - REVISION 2)
   -------------------------------------------------------------------------- */
.idle-content {
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 120px;
}

.idle-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 5px;
}

.idle-logo-wrapper .abso-main-logo {
  width: 680px;
  max-width: 85%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(10, 84, 134, 0.28));
}

.idle-action-area {
  width: 820px;
  max-width: 90%;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   16. ANIMATIONS & MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

@keyframes float-subtle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.float-subtle {
  animation: float-subtle 3.5s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0.4));
  }

  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 35px rgba(34, 197, 94, 0.7));
  }

  100% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0.4));
  }
}

@keyframes pulse-grow {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

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

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-16px);
  }

  40%,
  80% {
    transform: translateX(16px);
  }
}

.pulse-glow {
  box-shadow: 0 0 30px rgba(50, 215, 102, 0.6);
  animation: pulse-glow-kf 2s infinite ease-in-out;
}

@keyframes pulse-glow-kf {

  0%,
  100% {
    box-shadow: 0 0 25px rgba(50, 215, 102, 0.5);
  }

  50% {
    box-shadow: 0 0 45px rgba(50, 215, 102, 0.9);
  }
}