/* mcq_video_quiz — child-friendly, full-screen quiz styles */

.mvq-root {
    --mvq-ink: #2d2a5a;
    --mvq-sky1: #6ec6ff;
    --mvq-sky2: #b388ff;
    --mvq-a: #ff6b8b;
    --mvq-b: #4dabf7;
    --mvq-c: #51cf66;
    --mvq-d: #ffa94d;
    --mvq-font: "Baloo 2", "Fredoka", "Comic Neue", "Comic Sans MS", "Chalkboard SE", "Trebuchet MS", system-ui, sans-serif;
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
    min-height: 460px;
    border-radius: 28px;
    overflow: hidden;
    font-family: var(--mvq-font);
    color: var(--mvq-ink);
    box-shadow: 0 10px 30px rgba(80, 60, 160, .25);
    -webkit-tap-highlight-color: transparent;
}
.mvq-root *, .mvq-root *::before, .mvq-root *::after { box-sizing: border-box; }

/* Full screen (API or CSS fallback) */
.mvq-root.mvq-full {
    position: fixed; inset: 0; z-index: 999999;
    width: 100vw; height: 100vh; height: 100dvh;
    max-width: none; margin: 0; aspect-ratio: auto; min-height: 0;
    border-radius: 0; box-shadow: none;
}
html.mvq-lock, html.mvq-lock body { overflow: hidden !important; }
.mvq-root:fullscreen { width: 100vw; height: 100vh; max-width: none; border-radius: 0; aspect-ratio: auto; }

.mvq-stage {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    padding: clamp(10px, 2.2vmin, 24px);
    gap: clamp(8px, 1.6vmin, 18px);
    background: linear-gradient(160deg, var(--mvq-sky1) 0%, var(--mvq-sky2) 100%);
    font-size: clamp(16px, 2.4vmin, 26px);
}

/* Floating background decorations */
.mvq-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mvq-bg span { position: absolute; font-size: clamp(30px, 7vmin, 70px); opacity: .55; animation: mvq-float 9s ease-in-out infinite; }
.mvq-bg span:nth-child(1) { left: 4%;  top: 12%; }
.mvq-bg span:nth-child(2) { left: 88%; top: 18%; animation-delay: -2s; }
.mvq-bg span:nth-child(3) { left: 78%; top: 62%; animation-delay: -4s; }
.mvq-bg span:nth-child(4) { left: 6%;  top: 70%; animation-delay: -1s; }
.mvq-bg span:nth-child(5) { left: 45%; top: 4%;  animation-delay: -5s; }
.mvq-bg span:nth-child(6) { left: 92%; top: 82%; animation-delay: -3s; }
@keyframes mvq-float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* Top bar */
.mvq-top { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(8px, 1.6vmin, 16px); }
.mvq-mascot { font-size: clamp(34px, 7vmin, 64px); line-height: 1; filter: drop-shadow(0 3px 0 rgba(0,0,0,.12)); }
.mvq-mascot.mvq-talking { animation: mvq-talk .45s ease-in-out infinite; }
@keyframes mvq-talk { 0%,100% { transform: translateY(0) scale(1) rotate(-3deg); } 50% { transform: translateY(-6px) scale(1.12) rotate(3deg); } }
.mvq-progress { position: relative; flex: 1; height: clamp(14px, 2.6vmin, 24px); background: rgba(255,255,255,.55); border-radius: 99px; border: 3px solid #fff; }
.mvq-progress-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffd43b, #ff922b); transition: width .6s ease; }
.mvq-progress-rocket { position: absolute; top: 50%; left: -14px; transform: translateY(-50%) rotate(45deg); font-size: clamp(20px, 3.4vmin, 32px); transition: left .6s ease; }
.mvq-counter, .mvq-stars { background: #fff; border-radius: 99px; padding: .15em .8em; font-weight: 800; font-size: 1em; box-shadow: 0 3px 0 rgba(0,0,0,.1); white-space: nowrap; }
.mvq-stars.mvq-bump { animation: mvq-bump .6s ease; }
@keyframes mvq-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); background: #fff3bf; } 100% { transform: scale(1); } }

/* Main area */
.mvq-main { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }

/* Question card */
.mvq-card {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; gap: clamp(8px, 1.8vmin, 20px);
    justify-content: center;
    width: 100%;
    transition: transform .6s cubic-bezier(.2,.9,.3,1.2), opacity .5s ease;
}
.mvq-card.mvq-enter { animation: mvq-in .65s cubic-bezier(.2,.9,.3,1.15) both; }
.mvq-card.mvq-exit  { animation: mvq-out .6s ease-in both; pointer-events: none; }
@keyframes mvq-in  { from { transform: translateX(110%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mvq-out { from { transform: none; opacity: 1; } to { transform: translateX(-110%) rotate(-4deg); opacity: 0; } }

.mvq-qbox {
    background: #fff; border: 5px solid #fff; border-radius: 28px;
    padding: clamp(12px, 2.6vmin, 30px) clamp(14px, 3vmin, 36px);
    box-shadow: 0 8px 0 rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center; gap: 2vmin; flex-wrap: wrap;
    text-align: center;
    transition: box-shadow .3s, transform .3s;
}
.mvq-qbox.mvq-reading { box-shadow: 0 0 0 6px #ffd43b, 0 8px 0 rgba(0,0,0,.12); animation: mvq-glow 1.2s ease-in-out infinite; }
@keyframes mvq-glow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.012); } }
.mvq-qtext { font-size: clamp(1.15em, 4.6vmin, 2.2em); font-weight: 800; line-height: 1.25; }
.mvq-qtext p { margin: 0; }
.mvq-qimg { max-height: 26vmin; max-width: 100%; border-radius: 16px; object-fit: contain; }

/* Options */
.mvq-options { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.8vmin, 20px); }
.mvq-options.mvq-opts-list { grid-template-columns: 1fr; }
@media (max-width: 560px) and (orientation: portrait) { .mvq-options { grid-template-columns: 1fr; } }

.mvq-opt {
    position: relative; display: flex; align-items: center; gap: .6em;
    min-height: clamp(52px, 11vmin, 110px);
    padding: .35em .8em; border-radius: 22px; color: #fff; font-weight: 800;
    font-size: clamp(1em, 3.6vmin, 1.8em);
    box-shadow: 0 7px 0 rgba(0,0,0,.18);
    transition: transform .4s cubic-bezier(.2,.9,.3,1.3), opacity .4s, filter .4s, box-shadow .3s;
}
.mvq-opt-0 { background: var(--mvq-a); }
.mvq-opt-1 { background: var(--mvq-b); }
.mvq-opt-2 { background: var(--mvq-c); }
.mvq-opt-3 { background: var(--mvq-d); }
.mvq-letter { flex: none; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--mvq-ink); font-size: .95em; }
.mvq-otext { flex: 1; text-align: center; line-height: 1.2; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.mvq-otext p { margin: 0; }
.mvq-tick { opacity: 0; font-size: 1.2em; transition: opacity .3s; }

.mvq-opt.mvq-dim { opacity: .35; filter: grayscale(.5); transform: scale(.96); }
.mvq-opt.mvq-highlight { transform: scale(1.06); box-shadow: 0 0 0 6px #fff, 0 0 0 12px #ffd43b, 0 10px 0 rgba(0,0,0,.2); animation: mvq-pulse .8s ease-in-out infinite; z-index: 2; }
@keyframes mvq-pulse { 0%,100% { transform: scale(1.06); } 50% { transform: scale(1.1); } }
.mvq-opt.mvq-selected { animation: none; transform: scale(1.04) translateY(4px); box-shadow: 0 0 0 6px #fff, 0 0 0 12px #ffd43b, 0 3px 0 rgba(0,0,0,.2); }
.mvq-opt.mvq-correct { box-shadow: 0 0 0 6px #fff, 0 0 0 12px #37b24d, 0 3px 0 rgba(0,0,0,.2); }
.mvq-opt.mvq-correct .mvq-tick { opacity: 1; animation: mvq-pop .5s ease; }
@keyframes mvq-pop { 0% { transform: scale(0); } 70% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* Submit button + banner */
.mvq-submit {
    align-self: center; padding: .25em 1.6em; border-radius: 99px;
    background: #fff; color: #37b24d; font-weight: 900; font-size: clamp(1em, 3.2vmin, 1.5em);
    box-shadow: 0 6px 0 rgba(0,0,0,.18); opacity: .85; transition: transform .15s, box-shadow .15s, background .3s, color .3s;
}
.mvq-submit.mvq-pressed { transform: translateY(5px) scale(.97); box-shadow: 0 1px 0 rgba(0,0,0,.18); background: #37b24d; color: #fff; }
.mvq-banner {
    position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0); z-index: 5; pointer-events: none;
    background: #fff; color: #37b24d; font-weight: 900; font-size: clamp(1.4em, 7vmin, 3.4em);
    padding: .2em .9em; border-radius: 99px; box-shadow: 0 10px 0 rgba(0,0,0,.18);
}
.mvq-card.mvq-done .mvq-banner { animation: mvq-banner 1.1s ease both; }
@keyframes mvq-banner { 0% { transform: translate(-50%,-50%) scale(0) rotate(-8deg); } 30% { transform: translate(-50%,-50%) scale(1.15) rotate(3deg); } 60%,100% { transform: translate(-50%,-50%) scale(1) rotate(0); } }

/* Tap mode: Submit button invites a press */
.mvq-submit-ready { cursor: pointer; opacity: 1; background: #37b24d; color: #fff; font-size: clamp(1.1em, 3.8vmin, 1.8em); padding: .3em 1.8em; animation: mvq-hintbob 1s ease-in-out infinite; }

/* Tap-mode hint (auto answer disabled) */
.mvq-hint { align-self: center; visibility: hidden; min-height: 1.6em; padding: .1em 1.1em; border-radius: 99px; background: #fff3bf; color: var(--mvq-ink); font-weight: 900; font-size: clamp(1em, 3.2vmin, 1.5em); box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.mvq-hint.mvq-hint-on { visibility: visible; animation: mvq-hintbob 1s ease-in-out infinite; }
@keyframes mvq-hintbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mvq-main { cursor: pointer; }

/* Think-time ring */
.mvq-think { position: absolute; right: 2%; top: -6%; width: clamp(48px, 9vmin, 84px); height: clamp(48px, 9vmin, 84px); border-radius: 50%; display: grid; place-items: center; font-size: clamp(22px, 4.6vmin, 42px); background: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.15); z-index: 4; }
.mvq-think::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 6px solid #ffd43b; border-right-color: transparent; border-bottom-color: transparent; animation: mvq-spin var(--mvq-think, 3s) linear forwards; }
@keyframes mvq-spin { to { transform: rotate(360deg); } }

/* Controls */
.mvq-controls { position: relative; z-index: 3; display: flex; justify-content: center; gap: clamp(8px, 2vmin, 22px); flex-wrap: wrap; }
.mvq-btn-round {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: clamp(54px, 10vmin, 84px); padding: .2em .5em; border: 0; border-radius: 20px; cursor: pointer;
    background: #fff; color: var(--mvq-ink); font-family: inherit; font-weight: 800;
    box-shadow: 0 5px 0 rgba(0,0,0,.18); transition: transform .12s, box-shadow .12s;
}
.mvq-btn-round:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.mvq-ico { font-size: clamp(22px, 4.4vmin, 38px); line-height: 1.1; }
.mvq-lbl { font-size: clamp(11px, 1.9vmin, 16px); }

/* Start / end / message screens */
.mvq-start-card {
    background: #fff; border-radius: 36px; padding: clamp(18px, 4vmin, 48px); text-align: center;
    box-shadow: 0 12px 0 rgba(0,0,0,.14); max-width: 90%; width: 560px;
    display: flex; flex-direction: column; align-items: center; gap: .5em;
}
.mvq-pop { animation: mvq-popin .6s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes mvq-popin { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mvq-big-mascot { font-size: clamp(64px, 17vmin, 150px); line-height: 1; animation: mvq-talk 1.6s ease-in-out infinite; }
.mvq-big-mascot.mvq-dance { animation: mvq-talk .6s ease-in-out infinite; }
.mvq-start-title { margin: 0; font-size: clamp(1.4em, 6vmin, 2.6em); font-weight: 900; line-height: 1.1; }
.mvq-start-sub { margin: 0; font-size: clamp(1em, 3.4vmin, 1.5em); font-weight: 700; opacity: .85; }
.mvq-note { margin: 0; font-size: .7em; opacity: .7; }
.mvq-start-btn {
    margin-top: .4em; border: 0; cursor: pointer; font-family: inherit; font-weight: 900;
    font-size: clamp(1.2em, 5vmin, 2em); padding: .35em 1.6em; border-radius: 99px;
    background: linear-gradient(180deg, #69db7c, #37b24d); color: #fff;
    box-shadow: 0 8px 0 #2b8a3e; transition: transform .12s, box-shadow .12s;
    animation: mvq-glow 1.3s ease-in-out infinite;
}
.mvq-start-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #2b8a3e; }

/* Pause overlay */
.mvq-overlay { position: absolute; inset: 0; z-index: 10; background: rgba(45, 42, 90, .55); align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.mvq-paused { display: flex; flex-direction: column; align-items: center; gap: .6em; }
.mvq-paused-ico { font-size: clamp(60px, 16vmin, 130px); color: #fff; }

/* Confetti */
.mvq-confetti { position: absolute; top: -40px; z-index: 20; pointer-events: none; animation: mvq-fall 2.2s ease-in forwards; }
@keyframes mvq-fall { to { transform: translateY(115vh) rotate(540deg); opacity: .9; } }

/* Short landscape phones: keep everything on one screen */
@media (max-height: 460px) {
    .mvq-stage { padding: 8px; gap: 6px; }
    .mvq-lbl { display: none; }
    .mvq-btn-round { min-width: 44px; border-radius: 14px; }
    .mvq-opt { min-height: 44px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .mvq-root *, .mvq-root *::before, .mvq-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
