/* =========================================================
   EazyLife — DuniaMisi Sticker Book Design System
   Portrait-first, large tap targets, offline-ready
   ========================================================= */

:root {
  --font-display: 'Baloo 2', 'Fredoka', 'Nunito', 'Comic Sans MS', ui-rounded, system-ui, -apple-system, sans-serif;
  --font-body: 'Baloo 2', ui-rounded, system-ui, -apple-system, sans-serif;

  /* Sticker Book Palette */
  --bg-cream: #FFF9EB;
  --bg-dot: #FFE7B8;
  --ink-dark: #253047;
  --ink-soft: #4F5D78;
  --white: #FFFFFF;

  --sun-yellow: #FFD166;
  --sun-yellow-dark: #E0A82E;
  --coral-red: #FF6B6B;
  --coral-red-dark: #D94848;
  --sky-blue: #4CC9F0;
  --sky-blue-dark: #2799C2;
  --pandan-green: #38C172;
  --pandan-green-dark: #229A54;
  --mango-orange: #FF9F1C;
  --mango-orange-dark: #D97B00;
  --taro-purple: #9B5DE5;
  --taro-purple-dark: #7539BE;

  --sticker-border: 5px solid #FFFFFF;
  --sticker-shadow: 0 7px 0 rgba(37, 48, 71, 0.14), 0 10px 20px rgba(37, 48, 71, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink-dark);
  background-color: #DDF4FF;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 209, 102, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(56, 193, 114, 0.25) 0%, transparent 45%);
  overflow-x: hidden;
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

/* App Shell — Portrait Phone First */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background-color: var(--bg-cream);
  background-image: radial-gradient(var(--bg-dot) 2.5px, transparent 2.5px);
  background-size: 24px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(37, 48, 71, 0.12);
  overflow: hidden;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  background: linear-gradient(180deg, rgba(255, 249, 235, 0.96) 80%, rgba(255, 249, 235, 0));
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 4px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  flex-shrink: 0;
}

.icon-btn svg {
  width: 28px;
  height: 28px;
}

.icon-btn:active {
  transform: translateY(4px) scale(0.96);
}

.btn-back {
  background: var(--sky-blue);
  box-shadow: 0 5px 0 var(--sky-blue-dark);
}
.btn-back:active { box-shadow: 0 1px 0 var(--sky-blue-dark); }

.btn-mute {
  background: var(--taro-purple);
  box-shadow: 0 5px 0 var(--taro-purple-dark);
}
.btn-mute.is-muted {
  background: #94A3B8;
  box-shadow: 0 5px 0 #64748B;
}
.btn-mute:active { box-shadow: 0 1px 0 var(--taro-purple-dark); }

.btn-home {
  background: var(--coral-red);
  box-shadow: 0 5px 0 var(--coral-red-dark);
}
.btn-home:active { box-shadow: 0 1px 0 var(--coral-red-dark); }

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 3px solid #FFE29A;
  box-shadow: 0 4px 0 rgba(37, 48, 71, 0.08);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink-dark);
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pandan-green);
  box-shadow: 0 0 0 3px #D1F7E0;
}

/* Main Screen Container */
.screen-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 16px max(22px, env(safe-area-inset-bottom));
  gap: 14px;
}

/* Generic Sticker Card */
.sticker-card {
  background: var(--white);
  border: var(--sticker-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-shadow);
}

/* Generic Sticker Button */
.sticker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 22px;
  border-radius: 22px;
  border: 4px solid var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.14);
}

.sticker-btn:active {
  transform: translateY(4px) scale(0.98);
}

.btn-yellow {
  background: var(--sun-yellow);
  color: #5C3B00;
  text-shadow: none;
  box-shadow: 0 6px 0 var(--sun-yellow-dark);
}
.btn-yellow:active { box-shadow: 0 2px 0 var(--sun-yellow-dark); }

.btn-blue {
  background: var(--sky-blue);
  box-shadow: 0 6px 0 var(--sky-blue-dark);
}
.btn-blue:active { box-shadow: 0 2px 0 var(--sky-blue-dark); }

.btn-green {
  background: var(--pandan-green);
  box-shadow: 0 6px 0 var(--pandan-green-dark);
}
.btn-green:active { box-shadow: 0 2px 0 var(--pandan-green-dark); }

.btn-orange {
  background: var(--mango-orange);
  box-shadow: 0 6px 0 var(--mango-orange-dark);
}
.btn-orange:active { box-shadow: 0 2px 0 var(--mango-orange-dark); }

.btn-coral {
  background: var(--coral-red);
  box-shadow: 0 6px 0 var(--coral-red-dark);
}
.btn-coral:active { box-shadow: 0 2px 0 var(--coral-red-dark); }

/* =========================================================
   HOME / MODULE SELECT SCREEN
   ========================================================= */
.hero-banner {
  background: linear-gradient(135deg, #4CC9F0 0%, #3A86FF 100%);
  border: 5px solid var(--white);
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  color: var(--white);
  text-align: center;
  box-shadow: 0 8px 0 #2677B5, 0 14px 24px rgba(38, 119, 181, 0.18);
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: var(--sun-yellow);
  color: #5C3B00;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 3px 14px;
  border-radius: 999px;
  border: 3px solid var(--white);
  margin-bottom: 6px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1.05;
  font-weight: 800;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.hero-sub {
  margin: 6px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  opacity: 0.96;
}

.hero-sticker-count {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
}

.module-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.module-card {
  width: 100%;
  text-align: left;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 5px solid var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  color: var(--white);
  position: relative;
}

.module-card:active {
  transform: translateY(5px) scale(0.98);
}

.module-card--clock {
  background: linear-gradient(135deg, #FF9F1C 0%, #FF6B6B 100%);
  box-shadow: 0 8px 0 #C84E3E, 0 14px 22px rgba(200, 78, 62, 0.18);
}

.module-card--money {
  background: linear-gradient(135deg, #38C172 0%, #1CA37A 100%);
  box-shadow: 0 8px 0 #167E5C, 0 14px 22px rgba(22, 126, 92, 0.18);
}

.module-art {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.24);
  border: 4px solid var(--white);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.module-art svg {
  width: 100%;
  height: 100%;
}

.module-info {
  flex: 1;
  min-width: 0;
}

.module-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.14);
}

.module-desc {
  margin: 4px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.95;
}

.module-stars-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--ink-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
}

/* =========================================================
   LEVEL SELECT SCREEN
   ========================================================= */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--white);
  background: #FFF2CC;
  box-shadow: 0 5px 0 rgba(37, 48, 71, 0.1);
}

.section-header-text {
  flex: 1;
}

.section-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink-dark);
}

.section-header p {
  margin: 2px 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.level-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.level-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 5px solid var(--white);
  background: var(--white);
  box-shadow: 0 7px 0 rgba(37, 48, 71, 0.12);
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.level-card:active {
  transform: translateY(4px) scale(0.98);
}

.level-card.is-locked {
  background: #F1F5F9;
  opacity: 0.94;
}

.level-num-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 4px solid var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
}

.level-num-badge.lv1 { background: var(--pandan-green); }
.level-num-badge.lv2 { background: var(--sky-blue); }
.level-num-badge.lv3 { background: var(--mango-orange); }
.level-card.is-locked .level-num-badge { background: #94A3B8; }

.level-meta {
  flex: 1;
  min-width: 0;
}

.level-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-dark);
}

.level-subtitle {
  margin: 2px 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.level-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.pill-free { background: #DCFCE7; color: #166534; }
.pill-locked { background: #FEF3C7; color: #92400E; }
.pill-done { background: #E0F2FE; color: #075985; }

.level-status-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

/* =========================================================
   GAMEPLAY SHARED UI
   ========================================================= */
.progress-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}

.progress-star {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #EDE7D6;
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 3px 0 rgba(37, 48, 71, 0.1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.progress-star.is-done {
  background: var(--sun-yellow);
  transform: scale(1.12);
}

.progress-star.is-current {
  background: #BAE6FD;
  transform: scale(1.06);
}

/* Instruction Banner + Big Speaker Button */
.prompt-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 rgba(37, 48, 71, 0.11);
  outline: 3px solid #FFE29A;
}

.speaker-btn {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  border: 4px solid var(--white);
  background: var(--sun-yellow);
  color: #5C3B00;
  box-shadow: 0 5px 0 var(--sun-yellow-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease;
}

.speaker-btn svg {
  width: 32px;
  height: 32px;
}

.speaker-btn:active {
  transform: translateY(3px) scale(0.95);
}

.speaker-btn.is-speaking {
  animation: pulseSpeaker 0.8s ease-in-out infinite;
}

.prompt-text {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.22;
  font-weight: 800;
  color: var(--ink-dark);
}

/* Feedback Banner (Positive Praise / Gentle Hint) */
.feedback-strip {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feedback-strip.is-empty {
  opacity: 0;
  pointer-events: none;
}

.feedback-strip.is-good {
  background: #DCFCE7;
  color: #15803D;
  border: 4px solid var(--white);
  box-shadow: 0 5px 0 rgba(22, 163, 74, 0.18);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-strip.is-hint {
  background: #FEF3C7;
  color: #92400E;
  border: 4px solid var(--white);
  box-shadow: 0 5px 0 rgba(217, 119, 6, 0.18);
}

/* Digital Time Reward Reveal Badge */
.digital-reveal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1E293B;
  color: #4ADE80;
  border: 4px solid var(--white);
  border-radius: 16px;
  padding: 4px 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

/* =========================================================
   MODULE 1: TENGOK JAM
   ========================================================= */
.clock-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.clock-option-card {
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: 0 7px 0 rgba(37, 48, 71, 0.12);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.clock-option-card:nth-child(3) {
  grid-column: 1 / -1;
  width: 62%;
  justify-self: center;
}

.clock-option-card:active {
  transform: translateY(4px) scale(0.97);
}

.clock-option-card.is-correct {
  background: #DCFCE7;
  outline: 4px solid var(--pandan-green);
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clock-option-card.is-shake {
  animation: gentleShake 0.45s ease;
}

.clock-svg {
  width: 100%;
  max-width: 155px;
  height: auto;
  display: block;
}

/* Level 3: Set the Clock */
.routine-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #E0F7FF 0%, #FFF7D6 100%);
  border: 5px solid var(--white);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  box-shadow: 0 5px 0 rgba(37, 48, 71, 0.1);
}

.routine-art {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.routine-label {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink-dark);
  line-height: 1.2;
}

.interactive-clock-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.interactive-clock-wrap {
  width: 245px;
  height: 245px;
  position: relative;
  touch-action: none;
  cursor: grab;
  border-radius: 50%;
}

.interactive-clock-wrap:active {
  cursor: grabbing;
}

.interactive-clock-wrap .clock-svg {
  max-width: 245px;
}

.clock-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.legend-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: -2px;
  border: 2px solid var(--white);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.clock-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.clock-step-btn {
  width: 72px;
  height: 64px;
  border-radius: 22px;
  border: 4px solid var(--white);
  background: var(--sky-blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 0 var(--sky-blue-dark);
  cursor: pointer;
}

.clock-step-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--sky-blue-dark);
}

.clock-check-btn {
  flex: 1;
  max-width: 190px;
}

/* =========================================================
   MODULE 2: KIRA WANG
   ========================================================= */
.money-options-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.money-option-card {
  width: 100%;
  min-height: 108px;
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: var(--radius-xl);
  padding: 12px 18px;
  box-shadow: 0 7px 0 rgba(37, 48, 71, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease;
}

.money-option-card:active {
  transform: translateY(4px) scale(0.98);
}

.money-option-card.is-correct {
  background: #DCFCE7;
  outline: 4px solid var(--pandan-green);
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.money-option-card.is-shake {
  animation: gentleShake 0.45s ease;
}

/* Level 2: Count Money Tray */
.money-tray {
  background: #E8F8EE;
  border: 5px solid var(--white);
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  box-shadow: inset 0 4px 10px rgba(22, 126, 92, 0.1), 0 6px 0 rgba(37, 48, 71, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 136px;
}

.value-choices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.value-choice-btn {
  min-height: 78px;
  border-radius: 22px;
  border: 5px solid var(--white);
  background: var(--sun-yellow);
  color: #4A3000;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  box-shadow: 0 7px 0 var(--sun-yellow-dark);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.value-choice-btn:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 var(--sun-yellow-dark);
}

.value-choice-btn.is-correct {
  background: var(--pandan-green);
  color: var(--white);
  box-shadow: 0 7px 0 var(--pandan-green-dark);
  animation: popIn 0.35s ease;
}

.value-choice-btn.is-shake {
  animation: gentleShake 0.45s ease;
}

/* Level 3: Kedai Kecil */
.shop-stall {
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 7px 0 rgba(37, 48, 71, 0.12);
}

.shop-awning {
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    #FF6B6B 0 28px,
    #FFFFFF 28px 56px
  );
  border-bottom: 4px solid #FFE4E4;
}

.shop-shelf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FFF4D6 100%);
}

.shop-item-art {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.shop-item-details {
  flex: 1;
}

.shop-item-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-dark);
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  background: var(--coral-red);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 999px;
  border: 3px solid var(--white);
  box-shadow: 0 4px 0 var(--coral-red-dark);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}

.payment-tray-wrap {
  background: #F0F9FF;
  border: 4px dashed #7DD3FC;
  border-radius: 22px;
  padding: 10px 12px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.payment-tray-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
}

.tray-empty-hint {
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748B;
}

.tray-money-chip {
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
  animation: popIn 0.22s ease;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wallet-btn {
  background: var(--white);
  border: 4px solid var(--white);
  border-radius: 20px;
  padding: 8px 6px;
  min-height: 76px;
  box-shadow: 0 5px 0 rgba(37, 48, 71, 0.13);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}

.wallet-btn:active {
  transform: translateY(3px) scale(0.95);
}

.shop-actions-row {
  display: flex;
  gap: 10px;
}

.shop-actions-row .sticker-btn {
  flex: 1;
}

/* Final Change (Baki) Challenge Visual Helper */
.baki-equation-box {
  background: #FFF7D6;
  border: 5px solid var(--white);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 6px 0 rgba(37, 48, 71, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.baki-equation-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink-dark);
}

.baki-pill {
  background: var(--white);
  border-radius: 14px;
  padding: 4px 12px;
  box-shadow: 0 3px 0 rgba(37, 48, 71, 0.1);
}

/* Money SVG Sizing */
.money-svg-note {
  width: 146px;
  height: auto;
  display: block;
}

.money-svg-coin {
  width: 78px;
  height: 78px;
  display: block;
}

.money-svg-note.sm {
  width: 96px;
}

.money-svg-coin.sm {
  width: 56px;
  height: 56px;
}

.money-svg-note.xs {
  width: 82px;
}

.money-svg-coin.xs {
  width: 48px;
  height: 48px;
}

/* =========================================================
   MODALS (LOCKED & LEVEL REWARD)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(37, 48, 71, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  padding: 24px 20px;
  text-align: center;
  animation: popIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.locked-svg {
  width: 106px;
  height: 106px;
}

.reward-stars-row {
  font-size: 2.2rem;
  letter-spacing: 6px;
  margin-bottom: 4px;
}

.reward-sticker-slot {
  width: 118px;
  height: 118px;
  margin: 6px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceFloat 1.6s ease-in-out infinite;
}

.modal-heading {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink-dark);
}

.modal-text {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.35;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-actions .sticker-btn {
  width: 100%;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: var(--ink-dark);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  border: 3px solid var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-1.5deg); }
  45% { transform: translateX(8px) rotate(1.5deg); }
  70% { transform: translateX(-5px) rotate(-1deg); }
  85% { transform: translateX(4px) rotate(0.5deg); }
}

@keyframes popIn {
  0% { transform: scale(0.84); opacity: 0.4; }
  65% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

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

@keyframes bounceFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@media (max-height: 680px) {
  .hero-title { font-size: 2rem; }
  .interactive-clock-wrap { width: 210px; height: 210px; }
  .interactive-clock-wrap .clock-svg { max-width: 210px; }
  .clock-svg { max-width: 132px; }
  .prompt-text { font-size: 1.18rem; }
}
