/* Teddy · Climate & Matter study guide */
.climate-app { padding-bottom: 120px; }
.star-bar { display:inline-flex; gap:6px; align-items:center; margin-top:8px; padding:6px 12px; border-radius:999px; background:var(--teddy-bg); color:var(--teddy-ink); font-weight:700; font-size:15px; }
.countdown { color: var(--ink-soft); font-weight:600; margin-left:6px; }
.chunk-nav { display:flex; gap:8px; overflow-x:auto; padding:4px 2px 12px; scrollbar-width:none; }
.chunk-nav::-webkit-scrollbar { display:none; }
.chunk-pill { flex:0 0 auto; min-height:40px; padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:var(--bg-elev); font-size:14px; font-weight:600; white-space:nowrap; }
.chunk-pill.on { background:var(--teddy); color:#06281c; border-color:var(--teddy); }
.chunk-pill.done::after { content:" ✓"; }
.chunk-title { font-size:24px; margin:4px 0 4px; }
.chunk-intro { color:var(--ink-soft); margin:0 0 14px; font-size:17px; }
.card { position:relative; background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--radius); padding:14px; margin-bottom:14px; box-shadow:var(--shadow); }
.card img { width:100%; height:auto; border-radius:14px; display:block; }
.card h3 { margin:10px 0 4px; font-size:21px; }
.card p { margin:4px 0; font-size:17px; }
.card .kid { color:var(--teddy-ink); }
.say { position:absolute; top:10px; right:10px; width:var(--tap); height:var(--tap); border-radius:50%; background:rgba(7,13,34,.75); border:1px solid var(--line); font-size:22px; z-index:3; }
.say.talking { background:var(--teddy); }
.two { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.vs { text-align:center; font-weight:800; color:var(--accent-2); margin:-4px 0 10px; }
/* flip cards */
.flip-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (min-width:620px){ .flip-grid{ grid-template-columns:1fr 1fr 1fr; } }
.flip { perspective:900px; min-height:250px; cursor:pointer; position:relative; }
.flip-inner { position:relative; width:100%; height:100%; min-height:250px; transition:transform .5s; transform-style:preserve-3d; }
.flip.flipped .flip-inner { transform:rotateY(180deg); }
.face { position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden; background:var(--bg-elev); border:1px solid var(--line); border-radius:18px; padding:10px; display:flex; flex-direction:column; gap:6px; }
.face.back { transform:rotateY(180deg); background:#123a35; overflow:auto; }
.face img { width:100%; border-radius:12px; }
.face h3 { margin:0; font-size:19px; text-align:center; }
.face p { margin:0; font-size:15px; }
.face .hint { color:var(--ink-soft); font-size:13px; text-align:center; margin-top:auto; }
.flip .say { top:6px; right:6px; width:40px; height:40px; font-size:18px; }
/* games */
.game { background:#10204d; border:2px dashed rgba(52,211,153,.5); border-radius:var(--radius); padding:14px; margin:16px 0; }
.game h3 { margin:0 0 6px; }
.tray { display:flex; flex-wrap:wrap; gap:10px; min-height:60px; margin:10px 0; }
.chip { min-height:var(--tap); padding:8px 14px; border-radius:14px; background:#1e2c5c; border:2px solid var(--line); font-weight:700; font-size:16px; display:inline-flex; align-items:center; gap:8px; touch-action:manipulation; }
.chip img { width:44px; height:32px; border-radius:6px; }
.chip.sel { border-color:#fcd34d; box-shadow:0 0 0 3px rgba(252,211,77,.35); }
.chip.ok { background:#065f46; border-color:var(--teddy); }
.bins { display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); gap:10px; }
.bin { min-height:110px; border-radius:16px; border:2px solid var(--line); background:#0b1638; padding:8px; display:flex; flex-direction:column; align-items:center; gap:6px; font-weight:700; text-align:center; }
.bin img { width:100%; max-width:120px; border-radius:10px; }
.bin.ready { border-color:#fcd34d; }
.bin.shake { animation:shake .35s; }
@keyframes shake { 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.feedback { min-height:26px; font-weight:700; color:var(--teddy-ink); font-size:17px; }
.feedback.try { color:#fcd34d; }
.map-wrap img { width:100%; border-radius:18px; }
.legend { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.legend span { padding:4px 10px; border-radius:999px; font-weight:700; font-size:14px; color:#0b1638; }
.us-badge { display:flex; gap:10px; }
.us-badge div { flex:1; text-align:center; padding:12px; border-radius:16px; font-weight:800; font-size:18px; color:#0b1638; }
/* quiz */
.q-progress { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:10px; font-size:20px; }
.q-text { font-size:20px; font-weight:700; margin:6px 0 12px; padding-right:52px; }
.q-opts { display:grid; gap:10px; }
.q-opt { min-height:56px; text-align:left; padding:12px 14px; border-radius:16px; background:#1e2c5c; border:2px solid var(--line); font-size:17px; font-weight:600; }
.q-opt.right { background:#065f46; border-color:var(--teddy); }
.q-opt.wrong { background:#5b2130; border-color:#f87171; }
.q-done { text-align:center; font-size:20px; }
.q-done .big { font-size:46px; }
.chunk-foot { position:fixed; left:0; right:0; bottom:0; display:flex; justify-content:space-between; gap:10px; padding:12px max(16px,var(--safe-l)) calc(12px + var(--safe-b)); background:rgba(7,13,34,.92); backdrop-filter:blur(8px); border-top:1px solid var(--line); z-index:10; }
.chunk-foot button { flex:1; max-width:210px; min-height:var(--tap); border-radius:999px; }
.btn-ghost { border:1px solid var(--line); background:var(--bg-elev); font-weight:700; }
.cheer { position:fixed; left:50%; top:22%; transform:translate(-50%,0) scale(.8); opacity:0; pointer-events:none; font-size:28px; font-weight:800; background:var(--teddy); color:#06281c; padding:12px 22px; border-radius:999px; transition:.3s; z-index:20; white-space:nowrap; }
.cheer.show { opacity:1; transform:translate(-50%,0) scale(1); }
.tip { background:rgba(232,121,249,.12); border:1px solid rgba(232,121,249,.4); border-radius:16px; padding:10px 12px; font-size:16px; margin:10px 0; }
.extras-grid { display:grid; gap:10px; }
@media (min-width:620px){ .extras-grid{ grid-template-columns:1fr 1fr; } }
.extra h3 { margin-top:0; padding-right:50px; }
.ex-row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:6px 0; }
.ex-lab { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); width:58px; }
.ex { display:inline-flex; flex-direction:column; align-items:center; min-width:70px; padding:6px 8px; border-radius:12px; background:#1e2c5c; font-size:13px; font-weight:700; }
.ex b { font-size:34px; line-height:1.1; }
.chip { font-size:17px; }
.slideshow { padding:12px; }
.ss-tabs { display:flex; gap:6px; overflow-x:auto; padding-bottom:10px; padding-right:4px; scrollbar-width:none; }
.ss-tab { flex:0 0 auto; min-height:40px; padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:#1e2c5c; font-weight:700; font-size:14px; }
.ss-tab.on { background:var(--teddy); color:#06281c; }
.ss-frame { position:relative; border-radius:14px; overflow:hidden; background:#000; aspect-ratio:4/3; touch-action:pan-y; }
.slideshow .ss-img { width:100%; height:100%; object-fit:cover; border-radius:0; }
.ss-arrow { position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%; background:rgba(7,13,34,.65); border:1px solid rgba(255,255,255,.4); font-size:34px; line-height:1; color:#fff; }
.ss-arrow.prev { left:8px; } .ss-arrow.next { right:8px; }
.ss-cap-row { display:flex; align-items:center; gap:10px; margin-top:10px; }
.ss-cap { flex:1; font-size:18px; font-weight:700; margin:0; }
.slideshow .ss-say { position:static; flex:0 0 auto; }
.ss-dots { display:flex; justify-content:center; gap:6px; margin-top:8px; }
.ss-dots span { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.25); }
.ss-dots span.on { background:var(--teddy); }
.credits { margin:24px 0 10px; font-size:12px; color:var(--ink-soft); }
.credits summary { cursor:pointer; font-weight:700; min-height:32px; }
.credits ul { padding-left:18px; margin:6px 0; }
.credits a { text-decoration:underline; }
.sound-note { margin:6px 0 0; font-size:13px; color:var(--ink-soft); }
.scroll-wrap { position:relative; }
.scroll-arrow { position:absolute; top:0; bottom:12px; width:52px; display:none; align-items:center; z-index:4; padding:0 2px; }
.slideshow .scroll-arrow { bottom:10px; }
.scroll-arrow.left { left:-4px; justify-content:flex-start; background:linear-gradient(90deg, #0b1638 50%, rgba(11,22,56,0)); }
.scroll-arrow.right { right:-4px; justify-content:flex-end; background:linear-gradient(270deg, #0b1638 50%, rgba(11,22,56,0)); }
.slideshow .scroll-arrow.left { background:linear-gradient(90deg, #141f45 50%, rgba(20,31,69,0)); }
.slideshow .scroll-arrow.right { background:linear-gradient(270deg, #141f45 50%, rgba(20,31,69,0)); }
.scroll-arrow .chev { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:900; line-height:1; padding-bottom:3px; color:#06281c; background:linear-gradient(135deg, var(--teddy), var(--accent)); box-shadow:0 0 12px rgba(34,211,238,.55); }
.scroll-wrap.more-left .scroll-arrow.left, .scroll-wrap.more-right .scroll-arrow.right { display:flex; }
