:root {
  --bg1: #fef6e4;
  --bg2: #e0f4ff;
  --accent: #f582ae;
  --accent2: #8bd3dd;
  --accent3: #f3d2c1;
  --text: #2b2c34;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--text);
}

.level-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 16px 0;
  flex-wrap: wrap;
}

.level-pill {
  text-decoration: none;
  color: var(--text);
  background: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
  transition: transform 0.12s ease;
}

.level-pill:hover {
  transform: translateY(-2px);
}

.level-pill.active {
  background: var(--accent);
  color: #fff;
}

.level-pill.home-pill {
  background: #2b2c34;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-pill-logo {
  height: 20px;
  width: auto;
  display: block;
  border-radius: 3px;
}

.level-pill.trial-pill {
  background: #2e9e4f;
  color: #fff;
}

.app-header {
  text-align: center;
  padding: 28px 16px 12px;
}

.welcome-back {
  max-width: 420px;
  margin: 14px auto 0;
  background: #fff7e6;
  border: 2px solid #ffd93d;
  border-radius: 16px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.welcome-back.hidden {
  display: none;
}

.welcome-back-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.progress-badge {
  display: inline-block;
  margin-top: 10px;
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.app-header h1 {
  margin: 0;
  font-size: clamp(24px, 5vw, 38px);
}

.subtitle {
  margin: 8px 0 0;
  opacity: 0.75;
  font-size: 15px;
}

.audio-disclaimer {
  margin: 10px auto 0;
  max-width: 520px;
  font-size: 12.5px;
  opacity: 0.65;
  font-style: italic;
  line-height: 1.4;
}

.mode-btn {
  margin-top: 14px;
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.reset-btn {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 0 rgba(0,0,0,0.1);
  margin-left: 8px;
}

.reset-btn.confirming {
  background: #ff6b6b;
  color: #fff;
}

.game-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 8px;
  text-align: center;
}

.game-panel.hidden { display: none; }

.game-prompt {
  font-size: 22px;
  font-weight: 700;
}

.game-score {
  margin-top: 4px;
  font-weight: 600;
  opacity: 0.8;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
}

.letter-btn {
  aspect-ratio: 1;
  border: none;
  border-radius: 16px;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  color: #fff;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
}

.letter-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

.letter-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

.letter-btn.correct-flash {
  animation: correct-pulse 0.6s ease;
}

.letter-btn.wrong-flash {
  animation: wrong-shake 0.4s ease;
}

@keyframes correct-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 158, 79, 0.7); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(46, 158, 79, 0); }
  100% { transform: scale(1); }
}

@keyframes wrong-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10;
}

.overlay.hidden { display: none; }

.detail-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  max-width: 380px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: #f1f1f1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.detail-top {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
}

.big-letter {
  font-size: 90px;
  line-height: 1;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  color: var(--accent);
}

.detail-info {
  text-align: left;
}

.letter-name {
  font-size: 22px;
  font-weight: 700;
}

.letter-translit {
  opacity: 0.6;
  margin-bottom: 8px;
}

.hear-btn {
  border: none;
  background: var(--accent2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.hear-btn.small {
  background: var(--accent3);
  color: var(--text);
  margin-top: 8px;
}

.example-word {
  margin-top: 20px;
  padding: 16px;
  background: #faf7f2;
  border-radius: 16px;
}

.example-arabic {
  font-size: 40px;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  color: var(--accent);
}

.example-meaning {
  margin-top: 6px;
  font-size: 15px;
}

.trace-section {
  margin-top: 20px;
}

.trace-label {
  font-weight: 600;
  margin-bottom: 8px;
}

#trace-canvas {
  border: 3px dashed #ccc;
  border-radius: 16px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

.trace-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.trace-buttons button {
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

#clear-trace-btn {
  background: #eee;
  color: var(--text);
}

#done-trace-btn {
  background: var(--accent);
  color: #fff;
}

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  opacity: 0.9;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0.3;
  }
}

/* --- Harakat level --- */

.letter-btn {
  position: relative;
}

.mastered-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ffd93d;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}

.harakat-top {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.mascot-bubble {
  margin: 16px auto 0;
  background: #fff7e6;
  border: 2px solid #ffd93d;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  max-width: 320px;
}

.stage {
  margin: 18px auto;
  font-size: 100px;
  line-height: 1;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  color: var(--accent);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.stage.pop {
  animation: stage-pop 0.4s ease;
}

@keyframes stage-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.stage-label {
  text-align: center;
  font-weight: 700;
  opacity: 0.75;
  min-height: 20px;
  margin-bottom: 6px;
}

.vowel-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.vowel-chip {
  border: 3px solid transparent;
  background: #f4f4f9;
  border-radius: 16px;
  padding: 10px 14px;
  cursor: pointer;
  min-width: 84px;
  text-align: center;
}

.vowel-chip .chip-combo {
  font-size: 34px;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  color: var(--text);
}

.vowel-chip .chip-name {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.vowel-chip.explored {
  border-color: #7ed957;
  background: #f1fff0;
}

.vowel-chip.active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.game-target-letter {
  font-size: 64px;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  color: var(--accent);
  text-align: center;
  margin: 6px 0;
}

.replay-btn {
  display: block;
  margin: 0 auto 10px;
  border: none;
  background: var(--accent2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.answer-chips {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.answer-chip {
  border: none;
  border-radius: 16px;
  font-size: 40px;
  width: 84px;
  height: 84px;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  transition: transform 0.12s ease;
}

.answer-chip:hover {
  transform: translateY(-2px) scale(1.05);
}

/* --- Memory Match --- */

.memory-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 6px 0 20px;
  font-weight: 700;
  font-size: 14px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.memory-card {
  aspect-ratio: 1 / 1;
  perspective: 800px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2);
  transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-back,
.memory-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  backface-visibility: hidden;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
}

.memory-card-back {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-size: 26px;
}

.memory-card-face {
  background: #fff;
  transform: rotateY(180deg);
  font-size: 40px;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
}

.memory-card.matched .memory-card-face {
  background: #f1fff0;
  box-shadow: 0 0 0 3px #7ed957 inset;
}

.memory-card.matched {
  cursor: default;
}

.memory-card.wobble .memory-card-inner {
  animation: memory-wobble 0.4s ease;
}

@keyframes memory-wobble {
  0%, 100% { transform: rotateY(180deg) translateX(0); }
  25% { transform: rotateY(180deg) translateX(-6px); }
  75% { transform: rotateY(180deg) translateX(6px); }
}

.memory-win-banner {
  max-width: 420px;
  margin: 0 auto 20px;
  background: #fff7e6;
  border: 2px solid #ffd93d;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
}

.memory-win-banner.hidden {
  display: none;
}

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

/* --- Bubble Pop --- */

.bubble-prompt {
  text-align: center;
  margin: 4px auto 16px;
}

.bubble-prompt-text {
  font-size: 18px;
  font-weight: 700;
}

.bubble-score {
  margin-top: 6px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.8;
}

.bubble-pond {
  position: relative;
  max-width: 640px;
  height: 480px;
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #d8f3ff, #eafcff);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.6);
}

.bubble {
  position: absolute;
  bottom: -80px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12), inset -6px -6px 12px rgba(0,0,0,0.08), inset 6px 6px 10px rgba(255,255,255,0.35);
  animation-name: bubble-float;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes bubble-float {
  from { bottom: -80px; }
  to { bottom: 520px; }
}

.bubble.wrong-flash {
  box-shadow: 0 4px 0 rgba(0,0,0,0.12), 0 0 0 5px #ff6b6b;
}

.bubble.popping {
  animation: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: scale(1.5);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .bubble-pond {
    height: 400px;
  }
}

/* --- Word Builder (Letter Connector) --- */

.connector-hint-card {
  text-align: center;
  margin: 0 auto 10px;
}

.connector-hint-emoji {
  font-size: 48px;
}

.connector-hint-text {
  font-weight: 700;
  font-size: 18px;
  margin-top: 4px;
}

.connector-words-built {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.connector-slots {
  display: flex;
  direction: rtl;
  justify-content: center;
  gap: 14px;
  margin: 20px auto;
  min-height: 78px;
}

.connector-slot {
  width: 74px;
  height: 74px;
  border: 3px dashed var(--accent2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  background: #fff;
  color: var(--text);
}

.connector-slot.filled {
  border-style: solid;
  border-color: #7ed957;
  background: #f1fff0;
  animation: connector-pop 0.3s ease;
}

@keyframes connector-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.connector-tray {
  display: flex;
  direction: rtl;
  justify-content: center;
  gap: 14px;
  margin: 30px auto;
  flex-wrap: wrap;
  min-height: 90px;
  max-width: 560px;
  padding: 0 16px;
}

.connector-tile {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  color: #fff;
  cursor: grab;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  touch-action: none;
  user-select: none;
  transition: left 0.25s ease, top 0.25s ease;
}

.connector-tile.dragging {
  cursor: grabbing;
  z-index: 1000;
  transition: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.connector-tile.placed {
  visibility: hidden;
}

.connector-celebrate {
  max-width: 420px;
  margin: 10px auto 20px;
  background: #fff7e6;
  border: 2px solid #ffd93d;
  border-radius: 20px;
  padding: 18px 20px;
  text-align: center;
}

.connector-celebrate.hidden {
  display: none;
}

.connector-celebrate-word {
  font-size: 52px;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  color: var(--accent);
  margin-bottom: 4px;
}

.connector-celebrate-meaning {
  font-weight: 700;
  margin-bottom: 10px;
}

/* --- Prophet Stories --- */

.story-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 30px;
  padding: 0 16px;
}

.story-select-grid.hidden {
  display: none;
}

.story-card {
  border: none;
  border-radius: 20px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  font-weight: 700;
}

.story-card-emoji {
  font-size: 42px;
  display: block;
  margin-bottom: 8px;
}

.story-card.locked {
  opacity: 0.55;
  cursor: default;
  background: #f4f4f9;
}

.story-card.completed {
  box-shadow: 0 0 0 3px #7ed957, 0 3px 0 rgba(0,0,0,0.12);
}

.story-view {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.story-view.hidden {
  display: none;
}

.story-back-btn {
  display: block;
  margin: 0 auto 20px;
  border: none;
  background: #fff;
  color: var(--text);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

.story-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.story-listen-btn {
  display: block;
  margin: 0 auto 24px;
  border: none;
  background: var(--accent2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.story-slide {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.story-slide-emoji {
  font-size: 34px;
  flex-shrink: 0;
}

.story-slide-text {
  font-size: 15px;
  line-height: 1.4;
}

.story-dua-box {
  text-align: center;
  background: #fff7e6;
  border: 2px solid #ffd93d;
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0 12px;
}

.story-dua-arabic {
  font-size: 28px;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
  color: var(--accent);
  margin-bottom: 8px;
}

.story-dua-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.story-dua-reference {
  font-size: 12px;
  opacity: 0.6;
  font-weight: 700;
  margin-top: 4px;
}

.story-quiz-heading {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin: 30px 0 16px;
}

.story-quiz-question {
  text-align: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.story-quiz-options {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.story-quiz-option {
  border: 3px solid transparent;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  min-width: 100px;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.story-quiz-option-emoji {
  font-size: 40px;
}

.story-quiz-option-label {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  line-height: 1.25;
}

.story-quiz-option.correct-flash {
  border-color: #7ed957;
  background: #f1fff0;
}

.story-quiz-option.wrong-flash {
  border-color: #ff6b6b;
}

.story-complete-banner {
  text-align: center;
  background: #fff7e6;
  border: 2px solid #ffd93d;
  border-radius: 20px;
  padding: 20px;
  font-weight: 700;
  font-size: 18px;
}

.story-complete-banner.hidden {
  display: none;
}

/* --- Miracle Match --- */

.miracle-progress {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 14px;
}

.miracle-card {
  max-width: 480px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 3px 0 rgba(0,0,0,0.1);
}

.miracle-card-emoji {
  font-size: 56px;
  margin-bottom: 10px;
}

.miracle-card-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.miracle-replay-btn {
  display: block;
  margin: 14px auto 0;
  border: none;
  background: var(--accent2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.miracle-heading {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.miracle-options {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.miracle-option {
  border: 3px solid transparent;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  min-width: 140px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
}

.miracle-option.correct-flash {
  border-color: #7ed957;
  background: #f1fff0;
}

.miracle-option.wrong-flash {
  border-color: #ff6b6b;
}

.miracle-complete-banner {
  max-width: 420px;
  margin: 0 auto 20px;
  text-align: center;
  background: #fff7e6;
  border: 2px solid #ffd93d;
  border-radius: 20px;
  padding: 20px;
  font-weight: 700;
  font-size: 18px;
}

.miracle-complete-banner.hidden {
  display: none;
}
