/* A Cystmas Carol: December 2026 Quiz of the Month.
 * Scene: one .cc root whose data-scene (intro | past | present | future | morning) drives
 * every lighting change. Animations use transform and opacity only. */

.cc-page{--cc-gold:#f2cd6b;--cc-cream:#f4ead2;--cc-holly:#2f8f4e;--cc-berry:#d22a3a;--cc-serif:Georgia,"Iowan Old Style","Palatino Linotype","Times New Roman",serif;}
.cc-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}

/* ---------- Hero ---------- */
.cc-hero h1{font-family:var(--cc-serif);font-style:italic;font-weight:700;letter-spacing:-.01em;color:#fff6dc;text-shadow:0 0 28px rgba(242,205,107,.28);}
.cc-date-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:rgba(242,205,107,.12);border:1px solid rgba(242,205,107,.42);color:#fde68a;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin:0 0 12px;}

/* ---------- Shell ---------- */
.cc{--accent:#fde68a;position:relative;margin:0 0 24px;padding:16px;border-radius:26px;border:1px solid rgba(242,205,107,.32);background:radial-gradient(circle at 85% 0%,rgba(210,42,58,.14),transparent 40%),radial-gradient(circle at 10% 100%,rgba(47,143,78,.14),transparent 45%),linear-gradient(180deg,rgba(18,12,18,.94),rgba(7,9,16,.96));box-shadow:0 24px 70px rgba(0,0,0,.4);scroll-margin-top:90px;}
.cc[data-scene="past"]{--accent:#dbe9ff;}
.cc[data-scene="present"]{--accent:#f2cd6b;}
.cc[data-scene="future"]{--accent:#aab3ff;}
.cc[data-scene="morning"]{--accent:#fde68a;}

/* ---------- Progress ---------- */
.cc-progress{list-style:none;display:flex;gap:6px;margin:0 0 12px;padding:0;flex-wrap:wrap;}
.cc-progress li{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);color:#8f9ab3;font-size:12.5px;font-weight:800;letter-spacing:.04em;transition:border-color .4s,background .4s,color .4s;}
.cc-progress li span.cc-step-dot{flex:0 0 auto;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);color:#c8d2e8;}
.cc-progress li span.cc-step-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cc-progress li.is-current{color:#fff;border-color:var(--step,#fde68a);background:rgba(255,255,255,.07);box-shadow:0 0 18px -6px var(--step,#fde68a);}
.cc-progress li.is-current .cc-step-dot{border-color:var(--step,#fde68a);color:var(--step,#fde68a);}
.cc-progress li.is-done{color:#d5f5df;}
.cc-progress li.is-done .cc-step-dot{background:rgba(131,230,176,.18);border-color:rgba(131,230,176,.6);color:#83e6b0;}
.cc-progress li[data-step="past"]{--step:#dbe9ff;}
.cc-progress li[data-step="present"]{--step:#f2cd6b;}
.cc-progress li[data-step="future"]{--step:#aab3ff;}
.cc-progress li[data-step="morning"]{--step:#fde68a;}

/* ---------- Stage ---------- */
.cc-stage{position:relative;overflow:hidden;isolation:isolate;aspect-ratio:16/7;min-height:250px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:#1a0f14;}
.cc-stage>*{position:absolute;}
.cc-room{inset:0;background:
  linear-gradient(180deg,transparent 66%,#2a1610 66%,#3b2016 67%,#24130d 84%),
  repeating-linear-gradient(90deg,#2b1219 0 22px,#331620 22px 26px,#2b1219 26px 48px,#24101a 48px 50px),
  #2b1219;}
.cc-room::after{content:"";position:absolute;left:0;right:0;top:63%;height:3%;background:linear-gradient(180deg,#6b4226,#3b2016);}

/* Window, sky, snow */
.cc-window{left:5%;top:9%;width:20%;height:52%;overflow:hidden;border-radius:46% 46% 4px 4px / 22% 22% 4px 4px;border:6px solid #4a2a1a;box-shadow:inset 0 0 0 2px #2a170f,0 0 0 3px #6b4226,0 10px 26px rgba(0,0,0,.45);}
.cc-sky{inset:0;position:absolute;transition:opacity 1.6s ease;}
.cc-sky-night{background:radial-gradient(circle at 70% 22%,rgba(255,255,240,.9) 0 5%,rgba(255,255,240,0) 6%),linear-gradient(180deg,#081330,#1d3561 85%);}
.cc-sky-morning{opacity:0;background:radial-gradient(circle at 70% 26%,#fffbe8 0 9%,rgba(255,241,190,.5) 16%,transparent 36%),linear-gradient(180deg,#9fd1ff,#e6f3ff 80%);}
.cc-snow{position:absolute;left:0;right:0;top:-120px;bottom:0;background-repeat:repeat;transition:opacity 1s;}
.cc-snow-far{background-image:radial-gradient(circle,rgba(255,255,255,.75) 0 1.2px,transparent 1.8px),radial-gradient(circle,rgba(255,255,255,.6) 0 1px,transparent 1.6px);background-size:60px 60px,40px 40px;background-position:10px 0,30px 20px;animation:ccSnow 9s linear infinite;}
.cc-snow-near{background-image:radial-gradient(circle,#fff 0 2.2px,transparent 3px),radial-gradient(circle,rgba(255,255,255,.85) 0 1.8px,transparent 2.6px);background-size:120px 120px,120px 120px;background-position:20px 10px,80px 70px;animation:ccSnowNear 5.5s linear infinite;}
.cc-sill{left:0;right:0;bottom:0;height:14%;background:linear-gradient(180deg,#f4f8ff,#cfdcf0);border-radius:40% 60% 0 0 / 70% 70% 0 0;position:absolute;}
.cc-mullions{inset:0;position:absolute;background:linear-gradient(90deg,transparent calc(50% - 3px),#4a2a1a calc(50% - 3px) calc(50% + 3px),transparent calc(50% + 3px)),linear-gradient(180deg,transparent calc(52% - 3px),#4a2a1a calc(52% - 3px) calc(52% + 3px),transparent calc(52% + 3px));}
@keyframes ccSnow{from{transform:translateY(0)}to{transform:translateY(120px)}}
@keyframes ccSnowNear{from{transform:translate(0,0)}to{transform:translate(-12px,120px)}}

/* Morning sunbeams from the window */
.cc-beams{left:12%;top:9%;width:60%;height:91%;opacity:0;pointer-events:none;background:linear-gradient(118deg,rgba(255,244,200,.0) 8%,rgba(255,244,200,.22) 18%,rgba(255,244,200,0) 30%,rgba(255,244,200,.16) 40%,rgba(255,244,200,0) 54%);transition:opacity 2s ease;mix-blend-mode:screen;}

/* Wall clock */
.cc-clock{left:33%;top:11%;width:7%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#f4ead2 0 58%,#c9b27a 60% 66%,#6b4226 68%);box-shadow:0 6px 16px rgba(0,0,0,.45);--h:-10deg;--m:-30deg;}
.cc-clock span{position:absolute;left:50%;bottom:50%;transform-origin:50% 100%;border-radius:2px;background:#2a170f;transition:transform 1.4s cubic-bezier(.5,0,.3,1);}
.cc-clock-hour{width:5%;height:24%;margin-left:-2.5%;transform:rotate(var(--h));}
.cc-clock-min{width:3.5%;height:36%;margin-left:-1.75%;transform:rotate(var(--m));}

/* Fireplace */
.cc-fireplace{right:5%;bottom:16%;width:23%;height:48%;}
.cc-mantel{position:absolute;left:-8%;right:-8%;top:0;height:9%;background:linear-gradient(180deg,#7a5232,#4a2a1a);border-radius:3px;box-shadow:0 6px 12px rgba(0,0,0,.4);}
.cc-candle{position:absolute;bottom:100%;width:5%;height:120%;background:linear-gradient(90deg,#e8dcc0,#fffaf0,#d8caa8);border-radius:2px 2px 0 0;}
.cc-candle:nth-child(1){left:14%}.cc-candle:nth-child(2){left:47%;height:160%}.cc-candle:nth-child(3){left:80%}
.cc-candle::after{content:"";position:absolute;left:50%;bottom:100%;width:180%;aspect-ratio:1/2;margin-left:-90%;border-radius:50% 50% 50% 50% / 62% 62% 38% 38%;background:radial-gradient(ellipse at 50% 70%,#fff8d6 0 25%,#ffc94d 45%,rgba(255,140,40,0) 72%);transform-origin:50% 90%;animation:ccFlicker 1.7s ease-in-out infinite alternate;}
.cc-candle:nth-child(2)::after{animation-delay:-.6s}.cc-candle:nth-child(3)::after{animation-delay:-1.1s}
.cc-hearth{position:absolute;left:0;right:0;top:9%;bottom:0;background:linear-gradient(180deg,#5a3a24,#3b2016);border-radius:4px;}
.cc-hearth::before{content:"";position:absolute;left:16%;right:16%;top:22%;bottom:0;border-radius:40% 40% 0 0 / 30% 30% 0 0;background:radial-gradient(ellipse at 50% 100%,#3a1608,#0b0605 70%);}
.cc-flame{position:absolute;bottom:4%;width:20%;height:46%;border-radius:50% 50% 50% 50% / 62% 62% 38% 38%;background:radial-gradient(ellipse at 50% 80%,#fff2a8 0 18%,#ffb347 42%,#ff6a1a 62%,rgba(255,80,20,0) 74%);transform-origin:50% 100%;transform:scale(var(--fire,1));animation:ccFlame 1.1s ease-in-out infinite alternate;transition:opacity 1s;}
.cc-flame:nth-child(1){left:28%;animation-delay:-.3s}.cc-flame:nth-child(2){left:40%;height:56%;animation-delay:-.7s}.cc-flame:nth-child(3){left:52%;animation-delay:-.1s}
.cc-firelight{inset:0;pointer-events:none;background:radial-gradient(circle at 83% 78%,rgba(255,150,60,.32),transparent 42%);animation:ccGlow 2.3s ease-in-out infinite alternate;transition:opacity 1.2s;}
@keyframes ccFlicker{0%{transform:scale(1,1)}50%{transform:scale(.88,1.1) rotate(-4deg)}100%{transform:scale(1.06,.94) rotate(3deg)}}
@keyframes ccFlame{0%{transform:scale(var(--fire,1)) scaleY(.9)}100%{transform:scale(var(--fire,1)) scaleY(1.12) skewX(-4deg)}}
@keyframes ccGlow{from{opacity:.7}to{opacity:1}}

/* Holly garland (Present and Morning) */
.cc-garland{left:-2%;right:-2%;top:-4%;height:16%;opacity:0;transition:opacity 1.2s;background:
  radial-gradient(circle at 50% 70%,var(--cc-berry) 0 3px,transparent 4px) 0 0/46px 100%,
  radial-gradient(ellipse 26px 10px at 50% 40%,var(--cc-holly) 70%,transparent 72%) 0 0/46px 100%,
  radial-gradient(ellipse 26px 10px at 0 55%,#236c3b 70%,transparent 72%) 0 0/46px 100%;
  -webkit-mask:radial-gradient(120% 140% at 50% -40%,#000 60%,transparent 61%);mask:radial-gradient(120% 140% at 50% -40%,#000 60%,transparent 61%);}

.cc-floor{left:0;right:0;bottom:0;height:16%;background:linear-gradient(180deg,#3b2016,#1d0f0a);box-shadow:inset 0 8px 18px rgba(0,0,0,.45);}
.cc-floor::after{content:"";position:absolute;left:28%;right:28%;top:30%;bottom:10%;border-radius:50%;background:radial-gradient(ellipse,#6b1e2a 0 55%,#3e1018 70%,transparent 72%);opacity:.85;}

/* Scene tint and fog */
.cc-tint{inset:0;pointer-events:none;background:rgba(8,6,22,.38);transition:background-color 1.4s ease;}
.cc-fog{left:-20%;right:-20%;bottom:-6%;height:46%;opacity:0;pointer-events:none;background:radial-gradient(ellipse at 20% 70%,rgba(170,180,230,.35),transparent 60%),radial-gradient(ellipse at 60% 80%,rgba(150,160,220,.3),transparent 55%),radial-gradient(ellipse at 90% 70%,rgba(170,180,230,.3),transparent 60%);transition:opacity 1.6s;animation:ccFog 14s ease-in-out infinite alternate;}
@keyframes ccFog{from{transform:translateX(-4%)}to{transform:translateX(4%)}}

/* Characters */
.cc-scrooge{left:27%;bottom:5%;height:74%;width:auto;aspect-ratio:220/320;z-index:3;transition:opacity .6s;}
.cc-scrooge-art{position:absolute;inset:0;filter:drop-shadow(0 10px 14px rgba(0,0,0,.45));}
.cc-scrooge-art>svg,.cc-scrooge-art>img{display:block;width:100%;height:100%;max-width:none;}
.cc-scrooge .sc-head{transform-box:view-box;transform-origin:110px 146px;}
.cc-scrooge .sc-brows{transform-box:view-box;transition:transform .25s ease;}
.cc[data-scene="midnight"] .sc-flame,.cc[data-scene="past"] .sc-flame{animation-duration:.45s;}


/* Pale glow where the first ghost emerges */
.cc-apparition{left:46%;bottom:8%;width:30%;aspect-ratio:1;z-index:2;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(235,245,255,.75),rgba(190,220,255,.35) 35%,rgba(190,220,255,0) 68%);opacity:0;transform:scale(.3);}
.cc-apparition.is-on{animation:ccApparition 1.5s ease-out forwards;}
@keyframes ccApparition{0%{opacity:0;transform:scale(.3)}45%{opacity:.95;transform:scale(1.05)}100%{opacity:.4;transform:scale(1)}}
.cc-scrooge.is-startle{animation:ccStartle .6s ease;}
@keyframes ccStartle{30%{transform:translate(-8px,-6px) rotate(-2deg)}100%{transform:none}}
.cc[data-scene="intro"] .cc-scrooge{animation:ccEnter 1.4s cubic-bezier(.2,.7,.3,1) both;}
@keyframes ccEnter{from{opacity:0;transform:translateX(-30%)}to{opacity:1;transform:none}}
.cc-scrooge.is-shiver{animation:ccShiver .45s ease;}
.cc-scrooge.is-cheer{animation:ccCheer .7s ease;}
.cc-ghost{left:50%;bottom:4%;height:84%;aspect-ratio:220/320;z-index:3;opacity:0;transform:translateY(12px) scale(.92);transition:opacity .8s ease,transform .8s ease;pointer-events:none;}
.cc-ghost img{position:relative;z-index:1;width:100%;height:100%;max-width:none;}
.cc-ghost::before{content:"";position:absolute;inset:-18% -30%;border-radius:50%;background:radial-gradient(circle,var(--aura,rgba(255,255,255,.4)),transparent 62%);animation:ccAura 3.2s ease-in-out infinite alternate;}
.cc-ghost.is-in{opacity:1;transform:none;}
.cc-ghost.is-in img{animation:var(--float,none);}
.cc-ghost.is-out{opacity:0;transform:translateY(-10px) scale(.9);transition-duration:.7s;}
.cc-ghost[data-ghost="past"]{--aura:rgba(225,240,255,.55);--float:ccFloat 4.2s ease-in-out infinite;}
.cc-ghost[data-ghost="past"] img{filter:drop-shadow(0 0 16px rgba(255,255,255,.75));}
.cc-ghost[data-ghost="present"]{--aura:rgba(255,206,110,.5);--float:ccSway 5s ease-in-out infinite;height:92%;bottom:3%;}
.cc-ghost[data-ghost="present"] img{filter:drop-shadow(0 0 14px rgba(255,200,100,.5));}
.cc-ghost[data-ghost="future"]{--aura:rgba(110,120,230,.42);height:96%;bottom:2%;transform:translateY(30%);transition-duration:1.6s;}
.cc-ghost[data-ghost="future"].is-in{transform:none;}
.cc-ghost[data-ghost="future"] img{filter:drop-shadow(0 0 18px rgba(80,90,200,.55));}
@keyframes ccFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes ccSway{0%,100%{transform:rotate(-1.2deg)}50%{transform:rotate(1.2deg)}}
@keyframes ccAura{from{opacity:.7;transform:scale(.96)}to{opacity:1;transform:scale(1.04)}}
@keyframes ccShiver{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
@keyframes ccCheer{40%{transform:translateY(-12px)}100%{transform:none}}

/* Clock chime overlay */
.cc-chime{left:0;right:0;top:40%;margin:0;z-index:5;text-align:center;font-family:var(--cc-serif);font-style:italic;font-size:clamp(22px,3.4vw,40px);color:#fff6dc;text-shadow:0 0 24px rgba(0,0,0,.9),0 0 40px rgba(242,205,107,.35);opacity:0;pointer-events:none;}
.cc-chime.is-on{animation:ccChime var(--chime-ms,1600ms) ease both;}
@keyframes ccChime{0%{opacity:0;transform:scale(.96)}25%,70%{opacity:1;transform:none}100%{opacity:0}}
.cc-stage.is-dimmed::after{content:"";position:absolute;inset:0;z-index:4;background:rgba(0,0,0,.55);animation:ccDim var(--chime-ms,1600ms) ease both;}
@keyframes ccDim{0%,100%{opacity:0}25%,70%{opacity:1}}

/* Finale celebration */
.cc-celebrate{inset:0;z-index:6;pointer-events:none;overflow:hidden;}
.cc-spark{position:absolute;top:-6%;left:var(--x);width:var(--s,9px);aspect-ratio:1;background:var(--c,#fde68a);clip-path:polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%);opacity:0;animation:ccSpark var(--dur,3.2s) ease-in var(--delay,0s) both;}
@keyframes ccSpark{0%{opacity:0;transform:translateY(0) rotate(0)}12%{opacity:1}100%{opacity:0;transform:translateY(var(--fall,300px)) rotate(200deg)}}

/* ---------- Scene states ---------- */
.cc[data-scene="intro"] .cc-tint{background-color:rgba(8,6,22,.42);}
.cc[data-scene="midnight"] .cc-tint{background-color:rgba(4,4,18,.6);}
.cc[data-scene="midnight"] .cc-clock span{transition-duration:.6s;}
.cc[data-scene="midnight"] .cc-firelight{opacity:.75;}
.cc[data-scene="past"] .cc-tint{background-color:rgba(205,190,160,.16);}
.cc[data-scene="past"] .cc-room{filter:none;}
.cc[data-scene="past"] .cc-stage{box-shadow:inset 0 0 90px rgba(225,240,255,.28);}
.cc[data-scene="present"] .cc-tint{background-color:rgba(255,180,80,.06);}
.cc[data-scene="present"] .cc-garland{opacity:1;}
.cc[data-scene="present"] .cc-flame{--fire:1.25;}
.cc[data-scene="future"] .cc-tint{background-color:rgba(10,12,40,.6);}
.cc[data-scene="future"] .cc-fog{opacity:1;}
.cc[data-scene="future"] .cc-flame{opacity:.35;--fire:.6;}
.cc[data-scene="future"] .cc-firelight{opacity:.25;}
.cc[data-scene="future"] .cc-snow{opacity:.5;}
.cc[data-scene="morning"] .cc-tint{background-color:rgba(255,236,190,.12);}
.cc[data-scene="morning"] .cc-sky-morning{opacity:1;}
.cc[data-scene="morning"] .cc-sky-night{opacity:0;}
.cc[data-scene="morning"] .cc-beams{opacity:1;}
.cc[data-scene="morning"] .cc-garland{opacity:1;}
.cc[data-scene="morning"] .cc-snow-near{opacity:.55;}
.cc[data-scene="morning"] .cc-firelight{opacity:.5;}

.cc-stage-wrap{position:relative;}
.cc-mute{position:absolute;top:10px;right:10px;z-index:8;width:36px;height:36px;padding:0;display:grid;place-items:center;border-radius:50%;font-size:16px;line-height:1;background:rgba(5,8,19,.62);border:1px solid rgba(255,255,255,.22);color:#eef5ff;opacity:.75;transition:opacity .2s;}
.cc-mute:hover,.cc-mute:focus-visible{opacity:1;}
.cc-mute:focus-visible{outline:2px solid #fde68a;outline-offset:2px;}

/* ---------- Story panel ---------- */
.cc-panel{margin-top:14px;padding:20px;border-radius:20px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,rgba(28,20,24,.92),rgba(12,10,16,.95));}
.cc-panel:focus{outline:none;}
.cc-kicker{display:block;margin:0 0 4px;color:var(--accent);font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;}
.cc-panel h2{font-family:var(--cc-serif);font-style:italic;font-weight:700;font-size:clamp(24px,3vw,32px);margin:0 0 10px;color:#fff6dc;}
.cc-panel h2:focus{outline:none;}
.cc-panel h2:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:6px;}
.cc-story{font-family:var(--cc-serif);font-size:17px;line-height:1.6;color:#efe6d0;margin:0 0 10px;}
.cc-speech{font-family:var(--cc-serif);font-style:italic;font-size:17px;line-height:1.6;color:#fff6dc;margin:0 0 14px;padding:10px 14px;border-left:3px solid var(--accent);background:rgba(255,255,255,.04);border-radius:0 12px 12px 0;}
.cc-line{opacity:0;animation:ccLine .9s ease forwards;animation-delay:var(--d,0s);}
@keyframes ccLine{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.cc-q-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:20px;align-items:start;}
.cc-case{margin:0 0 10px;color:#dfe7f5;font-size:15px;line-height:1.55;}
.cc-question{margin:0 0 12px;font-size:18px;line-height:1.4;color:#fff;font-weight:800;}
.cc-choices{display:grid;gap:9px;}
.cc-choice{display:flex;gap:10px;align-items:flex-start;width:100%;min-height:48px;text-align:left;padding:11px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05);color:#eef5ff;font-weight:700;line-height:1.4;transition:border-color .2s,background .2s;}
.cc-choice:hover:not(:disabled){border-color:var(--accent);background:rgba(255,255,255,.09);}
.cc-choice:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
.cc-choice .cc-letter{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:900;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);}
.cc-choice.is-wrong{border-color:#ff8a8a;background:rgba(255,138,138,.1);color:#ffd0d0;animation:ccShiver .35s ease;}
.cc-choice.is-correct{border-color:#83e6b0;background:rgba(131,230,176,.14);color:#dbffe9;}
.cc-choice.is-correct .cc-letter{background:#83e6b0;color:#04140b;border-color:#83e6b0;}
.cc-choice:disabled{cursor:default;opacity:.55;}
.cc-choice.is-correct:disabled{opacity:1;}
.cc-feedback{margin:12px 0 0;padding:12px 14px;border-radius:14px;font-size:14.5px;line-height:1.55;}
.cc-feedback:empty{display:none;}
.cc-feedback.is-wrong{border:1px solid rgba(255,138,138,.4);background:rgba(255,138,138,.08);color:#ffd9d9;}
.cc-feedback.is-right{border:1px solid rgba(131,230,176,.4);background:rgba(131,230,176,.08);color:#dcffea;}
.cc-feedback strong{color:#fff;}
.cc-feedback .cc-teach{display:block;margin-top:8px;color:#e8f1ff;}
.cc-hint{margin:10px 0 0;color:#8f9ab3;font-size:12.5px;}

.cc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin-top:14px;padding:11px 18px;border-radius:14px;border:1px solid rgba(242,205,107,.6);background:linear-gradient(135deg,rgba(242,205,107,.22),rgba(210,42,58,.18));color:#fff6dc;font-weight:800;cursor:pointer;}
.cc-btn:hover{filter:brightness(1.12);text-decoration:none;}
.cc-btn:focus-visible{outline:2px solid #fde68a;outline-offset:3px;}
.cc-btn-quiet{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.05);font-weight:700;}
.cc-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.cc-actions .cc-btn{margin-top:14px;}

/* MRI figure */
.cc-mri{margin:0;}
.cc-mri-main{position:relative;display:block;width:100%;padding:0;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.14);background:#000;cursor:zoom-in;}
.cc-mri-main img{width:100%;height:auto;max-height:360px;object-fit:contain;margin:0 auto;}
.cc-mri-main:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
.cc-mri-zoom{position:absolute;right:8px;bottom:8px;padding:4px 9px;border-radius:999px;background:rgba(5,8,19,.78);border:1px solid rgba(255,255,255,.22);color:#eef5ff;font-size:12px;font-weight:800;}
.cc-mri figcaption{margin-top:6px;color:#9fb0cf;font-size:12.5px;}
.cc-thumbs{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap;}
.cc-thumb{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:#c9d6ee;font-size:11px;font-weight:800;cursor:pointer;}
.cc-thumb img{width:58px;height:48px;object-fit:cover;border-radius:6px;background:#000;}
.cc-thumb[aria-pressed="true"]{border-color:var(--accent);color:#fff;}
.cc-thumb:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

/* Finale */
.cc-finale{text-align:center;max-width:720px;margin:0 auto;}
.cc-finale .cc-actions{justify-content:center;}
.cc-finale-links{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-top:14px;font-size:14px;font-weight:700;}

/* Lightbox */
.cc-lightbox{padding:0;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:#05070d;color:#eef5ff;max-width:min(1100px,94vw);max-height:94vh;overflow:hidden;}
.cc-lightbox::backdrop{background:rgba(2,4,10,.86);}
.cc-lightbox figure{margin:0;padding:14px 14px 6px;}
.cc-lightbox img{max-width:100%;max-height:78vh;width:auto;height:auto;margin:0 auto;object-fit:contain;}
.cc-lightbox figcaption{text-align:center;color:#c9d6ee;font-size:13px;margin-top:8px;}
.cc-lightbox-close{position:absolute;top:8px;right:8px;z-index:2;width:40px;height:40px;padding:0;border-radius:50%;font-size:24px;line-height:1;background:rgba(7,11,20,.88);border:1px solid rgba(255,255,255,.3);}
.cc-lb-nav{display:flex;justify-content:center;align-items:center;gap:14px;padding:0 0 12px;}
.cc-lb-nav[hidden]{display:none;}
.cc-lb-step{width:42px;height:38px;padding:0;font-size:24px;line-height:1;}
.cc-lb-count{color:#9fb0cf;font-size:13px;font-weight:700;}

/* ---------- Responsive ---------- */
@media(max-width:860px){
  .cc-q-grid{grid-template-columns:1fr;}
  .cc-mri-main img{max-height:300px;}
}
@media(max-width:640px){
  .cc{padding:10px;border-radius:20px;}
  .cc-stage{aspect-ratio:4/3;min-height:0;}
  .cc-window{left:4%;width:28%;height:44%;}
  .cc-clock{left:44%;top:6%;width:10%;}
  .cc-fireplace{width:30%;height:40%;right:3%;}
  .cc-scrooge{left:10%;height:64%;}
  .cc-mute{width:32px;height:32px;top:8px;right:8px;font-size:14px;}
  .cc-ghost{left:46%;height:72%;}
  .cc-ghost[data-ghost="present"]{height:78%;}
  .cc-ghost[data-ghost="future"]{height:82%;}
  .cc-progress li{padding:6px 8px;font-size:11px;gap:5px;}
  .cc-progress li span.cc-step-dot{width:18px;height:18px;font-size:10px;}
  .cc-panel{padding:14px;}
  .cc-story,.cc-speech{font-size:16px;}
}
@media(max-width:420px){
  .cc-progress li span.cc-step-label{display:none;}
  .cc-progress li{justify-content:center;}
}

/* ---------- Reduced motion ---------- */
@media(prefers-reduced-motion:reduce){
  .cc *,.cc *::before,.cc *::after{animation:none!important;}
  .cc-ghost,.cc-sky,.cc-beams,.cc-garland,.cc-fog,.cc-tint,.cc-clock span,.cc-flame,.cc-firelight{transition-duration:.01s!important;}
  .cc-ghost,.cc-ghost.is-out,.cc-ghost[data-ghost="future"]{transform:none;}
  .cc-line{opacity:1;}
  .cc-celebrate{display:none;}
  .cc-stage.is-dimmed::after{display:none;}
}
