/* Styles for the shared game engine.
 *
 * Accessibility rules that must survive future edits:
 *  - Touch targets stay large; this is used by children on phones.
 *  - Motion is gentle and short. No flashing, no strobing, nothing looping
 *    fast enough to distract or trigger sensitivity.
 *  - Layout is tested at 390px width (a common phone) and must not scroll
 *    sideways at that size.
 */

  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; }

  /* Make the home-screen app feel native rather than like a web page:
     no long-press "Copy" menu, no text selection, no rubber-band bounce. */
  body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior-y: contain;
  }
  body {
    margin: 0;
    font-family: Verdana, Arial, sans-serif;
    background: linear-gradient(180deg, #eef7f5 0%, #e6f2ee 100%);
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px 60px;
    /* Keep clear of the notch / home indicator when running full-screen. */
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
    padding-left: calc(12px + env(safe-area-inset-left));
    padding-right: calc(12px + env(safe-area-inset-right));
    position: relative;
    overflow-x: hidden;
  }

  .bg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
  .bg-decor span { position: absolute; opacity: 0.09; filter: grayscale(15%); }
  .bg-decor .d1 { top: 4%;  left: 4%;  font-size: 3.6em; }
  .bg-decor .d2 { top: 10%; right: 6%; font-size: 2.8em; }
  .bg-decor .d3 { top: 40%; left: 2%;  font-size: 3.2em; }
  .bg-decor .d4 { top: 55%; right: 3%; font-size: 4em; }
  .bg-decor .d5 { bottom: 10%; left: 8%; font-size: 3em; }
  .bg-decor .d6 { bottom: 4%; right: 10%; font-size: 3.4em; }
  .bg-decor .d7 { top: 25%; left: 42%; font-size: 2.4em; }
  .bg-decor .d8 { bottom: 30%; right: 40%; font-size: 2.6em; }

  .page-content { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }

  h1 { font-size: 1.6em; text-align: center; margin: 10px 0 2px; color: #2c6e63; }
  .subtitle { text-align: center; color: #587a76; margin-bottom: 18px; font-size: 1.05em; }
  .screen { width: 100%; max-width: 640px; display: none; flex-direction: column; align-items: center; }
  .screen.active { display: flex; }

  .sound-toggle {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: calc(14px + env(safe-area-inset-right));
    background: #ffffff; border: 2px solid #b8c9c6; border-radius: 50%;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    font-size: 1.3em; cursor: pointer; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .total-stars { text-align: center; color: #b8860b; font-size: 1.15em; margin-bottom: 12px; min-height: 1.4em; }

  /* Install prompt (shown only when the browser offers installation) */
  .install-bar {
    display: none; align-items: center; gap: 10px; background: #ffffff;
    border: 2px dashed #7fb9ae; border-radius: 16px; padding: 12px 14px;
    margin-bottom: 14px; max-width: 440px; width: 100%;
  }
  .install-bar.show { display: flex; }
  .install-text { flex: 1; font-size: 0.95em; color: #3f6b63; }
  .install-btn {
    background: #3a8f7f; color: #fff; border: none; border-radius: 12px;
    padding: 11px 16px; font-size: 1em; cursor: pointer; white-space: nowrap;
  }
  .install-close {
    background: none; border: none; color: #9bb0ac; font-size: 1.2em;
    cursor: pointer; padding: 4px 6px;
  }

  /* iOS cannot offer a real install button (Apple provides no API for it),
     so we show the manual Share-sheet steps instead. */
  .ios-install {
    display: none; background: #ffffff; border: 2px dashed #7fb9ae;
    border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
    max-width: 440px; width: 100%; position: relative;
  }
  .ios-install.show { display: block; }
  .ios-install h3 {
    margin: 0 0 10px; font-size: 1.02em; color: #2c6e63; padding-right: 22px;
  }
  .ios-step {
    display: flex; align-items: center; gap: 9px; font-size: 0.95em;
    color: #3f6b63; margin-bottom: 7px; line-height: 1.35;
  }
  .ios-step:last-child { margin-bottom: 0; }
  .ios-num {
    flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
    background: #3a8f7f; color: #fff; font-size: 0.8em; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
  }
  .ios-share-icon {
    display: inline-block; vertical-align: -3px; margin: 0 2px;
    width: 15px; height: 18px;
  }
  .ios-close {
    position: absolute; top: 8px; right: 10px; background: none; border: none;
    color: #9bb0ac; font-size: 1.2em; cursor: pointer; padding: 4px 6px;
  }
  .menu-btn {
    width: 100%; max-width: 440px; background: #ffffff; border: 3px solid #7fb9ae;
    border-radius: 20px; padding: 18px; margin: 9px 0; font-size: 1.2em; color: #2c6e63;
    cursor: pointer; box-shadow: 0 3px 0 #7fb9ae; text-align: center; transition: transform 0.12s ease;
  }
  .menu-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #7fb9ae; }
  .menu-icon { font-size: 1.7em; display: block; margin-bottom: 5px; letter-spacing: 2px; }
  .menu-btn.sticker-btn { border-color: #d6a94a; box-shadow: 0 3px 0 #d6a94a; }

  .topbar { width: 100%; max-width: 640px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
  .back-btn { background: #ffffff; border: 2px solid #b8c9c6; border-radius: 14px; padding: 10px 16px; font-size: 1em; color: #4a6663; cursor: pointer; }
  .right-badges { display: flex; align-items: center; gap: 10px; }
  .stars { font-size: 1.3em; color: #e0a800; transition: transform 0.2s; }
  .stars.pop { transform: scale(1.4) rotate(-8deg); }
  .streak { font-size: 1.15em; color: #e0642a; opacity: 0; transform: scale(0.7); transition: all 0.25s ease; }
  .streak.show { opacity: 1; transform: scale(1); }
  .streak.pop { animation: streakPop 0.3s ease; }
  @keyframes streakPop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

  /* Mascot owl */
  .mascot-wrap { display: flex; justify-content: center; margin-bottom: 6px; }
  .mascot {
    font-size: 3.2em; display: inline-block;
    animation: mascotBob 2.4s ease-in-out infinite;
    transform-origin: center bottom;
  }
  @keyframes mascotBob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-2deg); } }
  .mascot.happy { animation: mascotHappy 0.55s ease; }
  @keyframes mascotHappy {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-18px) rotate(-12deg) scale(1.15); }
    50% { transform: translateY(-4px) rotate(10deg) scale(1.08); }
    75% { transform: translateY(-10px) rotate(-6deg) scale(1.1); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
  }
  .mascot.nudge { animation: mascotNudge 0.4s ease; }
  @keyframes mascotNudge {
    0%,100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-6px) rotate(-6deg); }
    75% { transform: translateX(6px) rotate(6deg); }
  }

  .progress-wrap { width: 100%; max-width: 460px; margin-bottom: 14px; }
  .progress-label { text-align: center; font-size: 0.95em; color: #7a938e; margin-bottom: 4px; }
  .progress-bar-bg { background: #dcebe8; border-radius: 10px; height: 10px; overflow: hidden; }
  .progress-bar-fill { background: #6fb79e; height: 100%; width: 0%; transition: width 0.35s ease; }

  .item-card {
    background: #ffffff; border-radius: 28px; padding: 32px 20px 28px; width: 270px;
    text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,0.09); margin-bottom: 22px;
    position: relative; cursor: pointer;
  }
  .item-card.enter { animation: cardIn 0.32s ease; }
  .item-card.pop { animation: cardPop 0.28s ease; }
  @keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes cardPop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
  .item-emoji { font-size: 5.2em; line-height: 1; }
  .card-speaker {
    position: absolute; top: 12px; right: 16px; font-size: 1.15em; opacity: 0.4;
  }
  .item-name { font-size: 1.45em; margin-top: 8px; font-weight: bold; color: #2c6e63; }
  .item-name .rest-letters { font-weight: 400; }

  .choice-row { display: flex; gap: 16px; width: 100%; max-width: 460px; justify-content: center; }
  .choice-btn {
    flex: 1; padding: 22px 10px; border-radius: 18px; border: none; font-size: 1.2em;
    font-weight: bold; color: #fff; cursor: pointer; transition: transform 0.12s ease;
  }
  .yes-btn { background: #4caf7d; }
  .no-btn { background: #7a93a8; }
  .bad-btn { background: #c97b7b; }
  .choice-btn:active { transform: scale(0.96); }
  .choice-btn:disabled { opacity: 0.45; cursor: default; }

  /* Maths tasks: the sum stays large and centred, with the typed answer
     beside it so the child reads the whole line as one sentence. */
  .task-card { padding: 26px 18px; }
  .task-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
  .task-ask { font-size: 1.9em; font-weight: bold; color: #2c6e63; letter-spacing: 0.02em; }
  .task-answer {
    font-size: 1.9em; font-weight: bold; color: #2c6e63; min-width: 1.6em;
    border-bottom: 3px solid #bcd8d1; padding: 0 6px;
  }
  .task-answer.empty { color: #b2c7c2; }
  /* A whole sentence needs room to breathe instead of the narrow card
     that suits a short sum. */
  /* Side padding clears the speaker icon in the corner; a long line would
     otherwise run underneath it. */
  .task-card.wide-task { width: 100%; max-width: 460px; padding: 22px 38px; }
  .wide-task .task-ask { font-size: 1.25em; line-height: 1.4; font-weight: 600; }

  .choice-grid {
    display: flex; flex-wrap: wrap; gap: 12px; width: 100%;
    max-width: 460px; justify-content: center;
  }
  /* A narrow basis keeps three options on one row at 390px; wrapping them
     2 + 1 would move the buttons around from question to question. */
  .opt-btn {
    flex: 1 1 80px; background: #5d9c8c; min-height: 62px;
    font-size: 1.35em; letter-spacing: 0.02em; padding: 18px 6px;
  }
  .opt-btn.picked-right { background: #4caf7d; }
  /* Whole sentences get a row each, so they stay readable instead of being
     squeezed into a narrow column. */
  .choice-grid.stacked { flex-direction: column; }
  .choice-grid.stacked .opt-btn {
    flex: 0 0 auto; width: 100%; font-size: 1.15em; line-height: 1.35;
    padding: 16px 14px;
  }

  .numpad {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    width: 100%; max-width: 300px;
  }
  .np-key {
    background: #fff; border: 2px solid #cfe2dd; border-radius: 16px;
    padding: 16px 0; font-size: 1.5em; font-weight: bold; color: #2c6e63;
    cursor: pointer; transition: transform 0.12s ease;
  }
  .np-key:active { transform: scale(0.95); }
  .np-wide { color: #7a93a8; }
  .np-ok { background: #4caf7d; border-color: #4caf7d; color: #fff; }
  .numpad.locked { opacity: 0.45; pointer-events: none; }

  .feedback { margin-top: 16px; font-size: 1.3em; min-height: 1.6em; text-align: center; font-weight: bold; }
  .feedback.correct { color: #2e7d4f; animation: fbIn 0.25s ease; }
  .feedback.retry { color: #5a6b78; animation: fbIn 0.25s ease; }
  @keyframes fbIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

  .next-btn {
    margin-top: 12px; background: #3a8f7f; color: white; border: none; border-radius: 16px;
    padding: 15px 32px; font-size: 1.15em; cursor: pointer; display: none;
  }

  .match-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: 100%; max-width: 560px; }
  .match-col { display: flex; flex-direction: column; gap: 10px; }
  .match-tile {
    background: #ffffff; border: 3px solid #cfe3e0; border-radius: 16px; padding: 12px 8px;
    text-align: center; font-size: 1.1em; cursor: pointer; min-height: 60px; display: flex;
    align-items: center; justify-content: center; transition: transform 0.18s;
  }
  .match-tile .em { font-size: 1.7em; }
  .match-tile.selected { border-color: #3a8f7f; background: #eaf7f2; }
  .match-tile.done { border-color: #4caf7d; background: #eaf7f2; opacity: 0.5; cursor: default; }
  .match-tile.done.pop { transform: scale(1.1); }
  .match-tile.wrong { border-color: #d98a8a; background: #fbeaea; animation: shake 0.3s ease; }
  @keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

  .info-topic { font-size: 1.35em; font-weight: bold; color: #2c6e63; text-align: center; margin-bottom: 14px; }
  .info-card-row { display: flex; gap: 14px; width: 100%; max-width: 560px; margin-bottom: 18px; }
  .info-half { flex: 1; border-radius: 22px; padding: 22px 14px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
  .info-half.enter { animation: cardIn 0.32s ease; }
  .info-half.then { background: #fdf3e6; border: 3px solid #e8c48f; }
  .info-half.now { background: #eaf5ef; border: 3px solid #9ed3b6; }
  .info-half-label { font-size: 0.95em; font-weight: bold; letter-spacing: 0.5px; margin-bottom: 6px; }
  .info-half.then .info-half-label { color: #a9762b; }
  .info-half.now .info-half-label { color: #2f8c5e; }
  .info-half-emoji { font-size: 3em; line-height: 1; margin-bottom: 8px; }
  .info-icons-row { font-size: 1.5em; margin-bottom: 10px; letter-spacing: 6px; }
  .info-half-text { font-size: 1.0em; line-height: 1.35; color: #3c4a48; }
  @media (max-width: 480px) { .info-card-row { flex-direction: column; } }

  .info-nav { display: flex; align-items: center; gap: 20px; margin-top: 4px; }
  .info-nav-btn { background: #3a8f7f; color: white; border: none; border-radius: 14px; padding: 14px 22px; font-size: 1.15em; cursor: pointer; }
  .info-nav-btn:disabled { opacity: 0.35; cursor: default; }
  .info-page-label { font-size: 1em; color: #7a938e; min-width: 50px; text-align: center; }

  /* Flashcards with speech */
  .card-category { text-align: center; color: #7a938e; font-size: 0.9em; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
  .flash-card {
    background: #ffffff; border-radius: 28px; padding: 38px 20px 26px; width: 270px;
    text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,0.09); margin-bottom: 10px;
    cursor: pointer; transition: transform 0.15s ease; position: relative;
  }
  .flash-card:active { transform: scale(0.97); }
  .flash-card.enter { animation: cardIn 0.32s ease; }
  .flash-card.speaking { animation: cardPop 0.3s ease; }
  .flash-card .fc-emoji { font-size: 5em; line-height: 1; }
  .flash-card .fc-word { font-size: 1.5em; font-weight: bold; color: #2c6e63; margin-top: 8px; }
  .flash-card .fc-speaker {
    position: absolute; top: 10px; right: 14px; font-size: 1.5em;
    animation: speakerPulse 1.8s ease-in-out infinite;
  }
  @keyframes speakerPulse { 0%,100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
  .fc-hint { text-align: center; color: #7a938e; font-size: 0.9em; margin-bottom: 18px; }
  .fc-no-speech { text-align: center; color: #b08a4a; font-size: 0.88em; margin-bottom: 12px; max-width: 300px; }

  /* Custom cave SVG icon - inherits font-size of whatever element it's placed in */
  .custom-icon { width: 1em; height: 1em; vertical-align: -0.1em; display: inline-block; }

  /* ===== Grand prize: all stickers collected ===== */
  .prize-figure { width: 190px; height: 176px; display: block; margin: 0 auto; }
  .prize-card {
    background: linear-gradient(180deg, #fff8e8 0%, #ffeedb 100%);
    border: 4px solid #e6c98a; border-radius: 28px;
    padding: 22px 18px 26px; max-width: 360px; width: 100%;
    text-align: center; box-shadow: 0 8px 26px rgba(0,0,0,0.12);
    animation: prizeIn 0.7s cubic-bezier(.2,.9,.3,1.3);
  }
  @keyframes prizeIn {
    0%   { opacity: 0; transform: scale(0.5) rotate(-8deg); }
    60%  { opacity: 1; transform: scale(1.06) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
  }
  .prize-kicker {
    font-size: 0.9em; font-weight: bold; letter-spacing: 1px;
    color: #b8860b; margin-bottom: 4px;
  }
  .prize-title {
    font-size: 1.75em; font-weight: bold; color: #2c6e63; margin: 6px 0 10px;
  }
  .prize-sub { font-size: 1.05em; color: #6b5527; line-height: 1.4; }
  .domca-wrap { animation: domcaSway 2.6s ease-in-out infinite; }
  @keyframes domcaSway {
    0%,100% { transform: rotate(-2.5deg) translateY(0); }
    50%     { transform: rotate(2.5deg) translateY(-5px); }
  }

  /* ===== Narrated "video" (auto-playing scene sequence) ===== */
  .movie-stage {
    width: 100%; max-width: 520px; background: #ffffff; border-radius: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10); padding: 18px 16px 22px; margin-bottom: 14px;
    min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  .movie-scene-title { font-size: 1.25em; font-weight: bold; color: #2c6e63; margin-bottom: 14px; text-align: center; }
  .movie-panels { display: flex; gap: 12px; width: 100%; align-items: stretch; }
  .movie-panel {
    flex: 1; border-radius: 18px; padding: 16px 10px; text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 0.25; transform: scale(0.94);
  }
  .movie-panel.then { background: #fdf3e6; border: 3px solid #e8c48f; }
  .movie-panel.now  { background: #eaf5ef; border: 3px solid #9ed3b6; }
  .movie-panel.lit { opacity: 1; transform: scale(1); }
  .movie-panel-label { font-size: 0.85em; font-weight: bold; letter-spacing: 0.5px; margin-bottom: 6px; }
  .movie-panel.then .movie-panel-label { color: #a9762b; }
  .movie-panel.now .movie-panel-label { color: #2f8c5e; }
  .movie-panel-emoji { font-size: 3.2em; line-height: 1.1; }
  .movie-panel-icons { font-size: 1.25em; letter-spacing: 4px; margin-top: 4px; min-height: 1.3em; }

  .movie-caption {
    margin-top: 16px; font-size: 1.08em; line-height: 1.4; color: #3c4a48;
    text-align: center; min-height: 3.6em; max-width: 460px;
  }
  .movie-caption.enter { animation: fbIn 0.35s ease; }

  .movie-controls { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
  .movie-btn {
    background: #3a8f7f; color: #fff; border: none; border-radius: 14px;
    padding: 14px 20px; font-size: 1.15em; cursor: pointer; min-width: 58px;
  }
  .movie-btn.big { padding: 14px 28px; }
  .movie-btn:disabled { opacity: 0.35; cursor: default; }
  .movie-progress { font-size: 0.95em; color: #7a938e; min-width: 52px; text-align: center; }
  .movie-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
  .movie-dot { width: 9px; height: 9px; border-radius: 50%; background: #cfe0dc; transition: background 0.3s, transform 0.3s; }
  .movie-dot.done { background: #9ed3b6; }
  .movie-dot.current { background: #3a8f7f; transform: scale(1.35); }

  /* Sticker collection */
  .sticker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 460px; }
  .sticker-card {
    background: #ffffff; border-radius: 20px; padding: 22px 10px; text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07); border: 3px solid #e6c98a;
  }
  .sticker-card.locked { border-color: #d5dedb; opacity: 0.7; }
  .sticker-card .sticker-emoji { font-size: 3em; margin-bottom: 6px; }
  .sticker-card.locked .sticker-emoji { filter: grayscale(100%); opacity: 0.5; }
  .sticker-card .sticker-title { font-size: 0.95em; font-weight: bold; color: #6b5527; }
  .sticker-card.locked .sticker-title { color: #90a19c; }

  .sticker-reveal {
    display: none;
    background: #fff8e8; border: 3px solid #e6c98a; border-radius: 22px;
    padding: 20px; text-align: center; margin: 14px 0 6px; max-width: 320px;
  }
  .sticker-reveal.show { display: block; animation: stickerPop 0.5s ease; }
  @keyframes stickerPop {
    0% { opacity: 0; transform: scale(0.4) rotate(-15deg); }
    60% { opacity: 1; transform: scale(1.12) rotate(6deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
  }
  .sticker-reveal .rev-emoji { font-size: 3.6em; }
  .sticker-reveal .rev-label { font-size: 0.95em; color: #a9762b; font-weight: bold; margin-top: 4px; }
  .sticker-reveal .rev-title { font-size: 1.1em; color: #6b5527; font-weight: bold; }

  .end-wrap { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
  .confetti-container { position: absolute; left: 0; right: 0; top: -10px; height: 180px; overflow: visible; pointer-events: none; }
  .confetti-piece { position: absolute; bottom: 0; font-size: 1.7em; animation: floatUp 1.7s ease-out forwards; }
  @keyframes floatUp {
    0% { transform: translateY(0) scale(0.7) rotate(0deg); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translateY(-170px) scale(1.05) rotate(25deg); opacity: 0; }
  }
  .end-emoji { font-size: 4em; margin-bottom: 10px; margin-top: 40px; }
  .end-text { font-size: 1.3em; text-align: center; color: #2c6e63; margin-bottom: 10px; }
  .again-btn { background: #3a8f7f; color: white; border: none; border-radius: 16px; padding: 18px 36px; font-size: 1.2em; cursor: pointer; margin-top: 14px; }


/* ---- Added by the engine refactor ---- */

.menu-sub {
  display: block; font-size: 0.72em; color: #7a938e;
  margin-top: 4px; font-weight: normal; line-height: 1.3;
}

.nav-row { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.nav-btn {
  background: #3a8f7f; color: #fff; border: none; border-radius: 14px;
  padding: 14px 22px; font-size: 1.15em; cursor: pointer; min-width: 58px;
}
.nav-btn.wide { padding: 14px 28px; }
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.page-label { font-size: 1em; color: #7a938e; min-width: 52px; text-align: center; }

.prize-figure-wrap { animation: prizeSway 2.6s ease-in-out infinite; }
@keyframes prizeSway {
  0%,100% { transform: rotate(-2.5deg) translateY(0); }
  50%     { transform: rotate(2.5deg) translateY(-5px); }
}
.prize-locked { font-size: 3.4em; filter: grayscale(100%); opacity: 0.45; }

/* Parent area - plainly styled on purpose, it is not for the child */
.parent-link {
  margin-top: 18px; color: #8aa39e; font-size: 0.92em;
  cursor: pointer; padding: 10px; text-decoration: underline;
}
.parent-title { font-size: 1.2em; color: #2c6e63; margin: 6px 0 4px; text-align: center; }
.parent-note {
  font-size: 0.92em; color: #6b817d; line-height: 1.45;
  max-width: 440px; text-align: center; margin: 0 0 16px;
}
.parent-row {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 2px solid #dbe8e5; border-radius: 14px; padding: 14px;
  margin-bottom: 9px; width: 100%; max-width: 440px; cursor: pointer;
}
.parent-row input { width: 22px; height: 22px; flex: 0 0 auto; }
.parent-row-label { font-size: 1em; color: #33504c; }
.parent-danger {
  margin-top: 22px; background: #fff; color: #b05656;
  border: 2px solid #e0b4b4; border-radius: 14px;
  padding: 13px 20px; font-size: 0.96em; cursor: pointer;
}
