/* KiddoQuiz: glass, glow and bouncy 3D buttons over living worlds. Font: Baloo 2 (SIL Open Font License). */
@font-face { font-family: Baloo; font-weight: 500; font-display: swap; src: url("../assets/fonts/baloo-500.woff2") format("woff2"); }
@font-face { font-family: Baloo; font-weight: 700; font-display: swap; src: url("../assets/fonts/baloo-700.woff2") format("woff2"); }
@font-face { font-family: Baloo; font-weight: 800; font-display: swap; src: url("../assets/fonts/baloo-800.woff2") format("woff2"); }

:root { --ink: #1f1750; --soft: #655e93; --pink: #ff3f8e; --gold: #ffcc2f; --mint: #17cf8f; --blue: #3f6bff; --violet: #7a45ff; --red: #ff4d61;
  --glass: rgba(255,255,255,.93); --edge: rgba(255,255,255,.75); --lift: 0 26px 60px -24px rgba(8,0,40,.75), inset 0 1px 0 #fff; }
* { box-sizing: border-box; }
html { background: #1d0f55; }
body { margin: 0; min-height: 100vh; font: 500 17px/1.45 Baloo, "Comic Sans MS", system-ui, sans-serif; color: var(--ink); }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; display: block; }
.veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(10,2,45,.45)); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.12; font-weight: 800; } p { margin: 0 0 .6em; }
button, input { font: inherit; color: inherit; } button { cursor: pointer; border: 0; background: none; } button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 4px solid #4fe3ff; outline-offset: 2px; }
main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 50px; outline: 0; }
main.enter > * { animation: rise .5s cubic-bezier(.2,1.25,.4,1) both; } main.enter > .quiz { animation: fade .35s both; }

/* buttons */
.big { --deep: rgba(30,10,80,.35); position: relative; overflow: hidden; padding: 12px 26px; border-radius: 22px; font-weight: 800; font-size: 1.12rem; box-shadow: 0 7px 0 var(--deep), 0 18px 26px -12px rgba(10,0,50,.6), inset 0 2px 0 rgba(255,255,255,.55); transition: transform .13s, box-shadow .13s; }
.big::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; left: -70px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-22deg); animation: shine 3.600s ease-in-out infinite; pointer-events: none; }
.big:disabled::after { display: none; }
.big:not(:disabled):hover { filter: brightness(1.09); } .big:not(:disabled):active { transform: translateY(5px); box-shadow: 0 2px 0 var(--deep), inset 0 2px 0 rgba(255,255,255,.5); }
.go { --deep: #067a52; background: linear-gradient(180deg, #4dffc0, #0fc98a 55%, #09a873); color: #fff; text-shadow: 0 2px 0 rgba(0,80,50,.35); }
.gold { --deep: #b56d00; background: linear-gradient(180deg, #fff09a, #ffc928 55%, #ffa90f); color: #4a2a00; }
.soft { --deep: #b9aef0; background: linear-gradient(180deg, #fff, #e8e3ff); color: var(--ink); }
.grow { flex: 1; } .wide { width: 100%; } .row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 16px; }
.linkbtn { font-weight: 700; color: var(--violet); text-decoration: underline; margin-top: 10px; } .linkbtn.light { color: #fff; }
.chipbtn { padding: 9px 17px; border-radius: 99px; background: rgba(20,8,70,.45); border: 1.500px solid rgba(255,255,255,.45); color: #fff; font-weight: 700; backdrop-filter: blur(10px); transition: transform .12s, background .2s; } .chipbtn:hover { background: rgba(20,8,70,.7); }

/* surfaces */
.panel, .question, .sheet, .authbox { background: var(--glass); border: 2px solid var(--edge); border-radius: 30px; box-shadow: var(--lift); backdrop-filter: blur(16px); }
.panel { padding: 20px 22px; }
.wordmark { font-weight: 800; font-size: clamp(2.500rem, 8vw, 3.800rem); line-height: 1; color: #fff; text-shadow: 0 5px 0 #5a2bc9, 0 14px 30px rgba(20,0,70,.55); letter-spacing: -.01em; }
.wordmark span { color: var(--gold); text-shadow: 0 5px 0 #c4620a, 0 14px 30px rgba(20,0,70,.55); }

/* mascot */
.robot { display: block; overflow: visible; } .robot .rbody { animation: hover 3s ease-in-out infinite; } .robot .eyes { transform-origin: 70px 52px; animation: blink 4.200s infinite; }
.robot .wave { transform-origin: 100px 100px; animation: wave 1.800s ease-in-out infinite; } .robot .flame { transform-origin: 70px 126px; animation: flame .18s linear infinite alternate; } .robot .blip { animation: glowdot 1.400s ease-in-out infinite alternate; } .robot .rshadow { transform-origin: 70px 153px; animation: shadow 3s ease-in-out infinite; }
.robot.hero { width: 132px; height: 151px; margin: 0 auto 2px; filter: drop-shadow(0 14px 18px rgba(20,0,70,.35)); }

/* log in and setup */
.setup { max-width: 760px; margin: 0 auto; text-align: center; color: #fff; }
.setup h1 { font-size: clamp(1.900rem, 5.500vw, 2.800rem); text-shadow: 0 4px 0 rgba(40,20,110,.55), 0 8px 24px rgba(20,0,70,.5); }
.sub { display: inline-block; margin: 10px 0 4px; padding: 4px 18px; border-radius: 99px; background: rgba(20,8,70,.42); backdrop-filter: blur(8px); font-weight: 700; }
.authbox { max-width: 420px; margin: 12px auto 0; padding: 22px; color: var(--ink); text-align: left; }
.authbox label { display: block; font-weight: 700; margin-bottom: 11px; }
.authbox input:not([type="checkbox"]) { display: block; width: 100%; margin-top: 4px; padding: 12px 16px; border-radius: 18px; border: 3px solid #ded8ff; background: #fff; font-size: 1.12rem; transition: border-color .2s, box-shadow .2s; }
.authbox input:not([type="checkbox"]):focus { border-color: var(--violet); box-shadow: 0 0 0 6px rgba(122,69,255,.18); outline: 0; }
.authbox .tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .93rem; } .authbox .tick input { width: 21px; height: 21px; margin-top: 3px; flex: none; accent-color: var(--violet); }
.authbox .tiny { text-align: center; color: var(--soft); margin: 14px 0 0; }
.lead { font-weight: 800; text-align: center; font-size: 1.12rem; margin: 0 0 12px; }
#gbox { display: flex; justify-content: center; min-height: 46px; } #gbox[hidden] { display: none; }
.tabs { display: flex; gap: 6px; padding: 6px; margin-bottom: 16px; border-radius: 22px; background: #ebe6ff; } .tabs button { flex: 1; padding: 9px; border-radius: 17px; font-weight: 800; color: var(--soft); transition: background .2s, color .2s; } .tabs button[aria-pressed="true"] { background: linear-gradient(180deg, #9a6bff, #6a35f0); color: #fff; box-shadow: 0 5px 0 #46209f; }
.note { color: #c0102c; font-weight: 800; min-height: 1em; margin: 6px 0; }
.steps { display: flex; gap: 10px; justify-content: center; margin: 14px 0 20px; } .steps i { width: 64px; height: 12px; border-radius: 9px; background: rgba(255,255,255,.4); box-shadow: inset 0 2px 4px rgba(20,0,70,.3); } .steps i.on { background: linear-gradient(90deg, #ffe45c, #ff9d1f); box-shadow: 0 0 16px #ffd23f; }
.boards { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.boardcard, .classcard { position: relative; overflow: hidden; color: #fff; border: 4px solid rgba(255,255,255,.8); transition: transform .22s cubic-bezier(.2,1.8,.4,1); animation: floaty 4s ease-in-out infinite; }
.boardcard::before, .classcard::before { content: ""; position: absolute; left: -20%; right: -20%; top: -62%; height: 100%; border-radius: 50%; background: rgba(255,255,255,.24); }
.boardcard { width: 270px; padding: 30px; border-radius: 40px; box-shadow: 0 14px 0 rgba(40,10,90,.35), 0 34px 40px -18px rgba(10,0,50,.7); } .boardcard span { display: block; font-size: 5rem; line-height: 1.2; filter: drop-shadow(0 8px 8px rgba(0,0,0,.3)); } .boardcard b { display: block; font-size: 2.600rem; font-weight: 800; text-shadow: 0 4px 0 rgba(0,0,0,.22); }
.b-cbse { background: linear-gradient(155deg, #ffb13d, #ff4f7b 65%, #d6249f); } .b-icse { background: linear-gradient(155deg, #4fe0ff, #4a6bff 60%, #6f35e8); animation-delay: -2s; }
.boardcard:hover, .classcard:hover { transform: scale(1.050); filter: brightness(1.08); animation-play-state: paused; }
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 560px; margin: 0 auto; }
.classcard { padding: 16px 8px; border-radius: 34px; box-shadow: 0 11px 0 rgba(40,10,90,.35), 0 28px 30px -16px rgba(10,0,50,.7); } .classcard b { display: block; position: relative; font-size: 4.200rem; line-height: 1.05; font-weight: 800; text-shadow: 0 5px 0 rgba(0,0,0,.22); } .classcard span { font-weight: 700; position: relative; }
.c1 { background: linear-gradient(160deg, #ff87ad, #f0316c); } .c2 { background: linear-gradient(160deg, #ffae5c, #f4621f); animation-delay: -.7s; } .c3 { background: linear-gradient(160deg, #ffd84a, #e59400); animation-delay: -1.400s; } .c4 { background: linear-gradient(160deg, #46e7ac, #079a6b); animation-delay: -2.100s; } .c5 { background: linear-gradient(160deg, #63c2ff, #1e6ee8); animation-delay: -2.800s; } .c6 { background: linear-gradient(160deg, #b08cff, #6a2fe0); animation-delay: -3.500s; }
.avatars { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 520px; margin: 0 auto 18px; } .avatars button { width: 70px; height: 70px; font-size: 2.300rem; border-radius: 26px; background: rgba(255,255,255,.88); border: 4px solid #fff; box-shadow: 0 7px 0 rgba(40,10,90,.3); transition: transform .2s cubic-bezier(.2,2,.4,1); } .avatars button:hover { transform: scale(1.08); } .avatars button[aria-pressed="true"] { background: linear-gradient(160deg, #fff6b8, #ffc928); transform: scale(1.180); box-shadow: 0 0 0 5px #ff3f8e, 0 14px 22px rgba(20,0,70,.4); }
.name { display: block; max-width: 360px; margin: 0 auto 20px; font-weight: 800; text-shadow: 0 2px 8px rgba(20,0,70,.6); } .name input { display: block; width: 100%; margin-top: 8px; padding: 13px; border-radius: 24px; border: 4px solid #fff; color: var(--ink); background: #fff; text-align: center; font-size: 1.500rem; font-weight: 800; box-shadow: 0 9px 0 rgba(40,10,90,.3); }
.shake { animation: shake .4s; border-color: var(--red) !important; }
.setup .linkbtn { display: block; margin: 20px auto 0; color: #fff; text-shadow: 0 2px 8px rgba(20,0,70,.7); }

/* home */
.top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 12px; text-align: left; color: #fff; } .who > span { font-size: 2.300rem; background: linear-gradient(160deg, #fff, #ded6ff); border: 4px solid var(--gold); border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; box-shadow: 0 0 22px rgba(255,204,47,.7); } .who b { font-size: 1.320rem; line-height: 1.100; text-shadow: 0 3px 10px rgba(10,0,50,.7); } .who small, .chip small { display: block; font-size: .76rem; font-weight: 500; opacity: .92; }
.chips { display: flex; gap: 10px; } .chip { background: rgba(20,8,70,.45); border: 1.500px solid rgba(255,255,255,.4); backdrop-filter: blur(10px); color: #fff; border-radius: 20px; padding: 6px 18px; font-weight: 800; font-size: 1.150rem; text-align: center; line-height: 1.150; }
.ticker { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 9px 12px; border-radius: 99px; background: rgba(14,5,56,.58); border: 1.500px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); color: #fff; overflow: hidden; min-height: 48px; } .ticker em { flex: none; font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .09em; background: linear-gradient(180deg, #ffe45c, #ffab12); color: #3b2600; padding: 4px 12px; border-radius: 99px; animation: glowpill 1.600s ease-in-out infinite alternate; } .roll { animation: roll .5s; }
.grid { display: grid; grid-template-columns: 1.150fr 1fr; gap: 20px; align-items: start; }
.mission { grid-column: 1; position: relative; overflow: hidden; text-align: center; color: #fff; padding: 22px 20px 30px; border-radius: 40px; background: linear-gradient(150deg, rgba(255,138,61,.96), rgba(255,48,140,.95) 52%, rgba(112,52,245,.96)); border: 3px solid rgba(255,255,255,.55); box-shadow: 0 34px 60px -24px rgba(255,48,140,.85), inset 0 2px 0 rgba(255,255,255,.5); }
.mission > * { position: relative; z-index: 1; } .mission h1 { font-size: clamp(1.800rem, 4.200vw, 2.600rem); text-shadow: 0 4px 0 rgba(90,10,90,.35); }
.mission .orbit { position: absolute; z-index: 0; left: 50%; top: 40%; border-radius: 50%; border: 2px dashed rgba(255,255,255,.28); transform: translate(-50%,-50%); animation: spin 38s linear infinite; } .orbit.o1 { width: 440px; height: 440px; } .orbit.o2 { width: 660px; height: 660px; animation-direction: reverse; animation-duration: 60s; }
.orbit::after { content: "⭐"; position: absolute; top: -13px; left: 50%; font-size: 1.300rem; }
.robot.buddy { width: 118px; height: 135px; margin: -4px auto 4px; filter: drop-shadow(0 12px 14px rgba(40,0,70,.35)); }
.pill { display: inline-block; background: rgba(255,255,255,.26); border: 1.500px solid rgba(255,255,255,.45); border-radius: 99px; padding: 4px 18px; font-weight: 800; }
.rockets { display: flex; justify-content: center; gap: 16px; margin: 8px 0 18px; } .rockets span { width: 62px; height: 62px; display: grid; place-items: center; font-size: 2rem; border-radius: 22px; background: rgba(255,255,255,.24); border: 2px solid rgba(255,255,255,.5); animation: floaty 2.200s ease-in-out infinite; } .rockets span:nth-child(2) { animation-delay: -.7s; } .rockets span:nth-child(3) { animation-delay: -1.400s; } .rockets .used { animation: none; background: rgba(20,0,60,.25); }
.mission .big { font-size: 1.550rem; padding: 15px 52px; border-radius: 99px; } .pulse { animation: pulse 1.700s ease-in-out infinite; } .doneday { background: rgba(20,0,60,.28); border-radius: 22px; padding: 16px; font-weight: 700; } .mission .note { color: #fff; }

/* leaderboard with a podium */
.league { grid-column: 2; grid-row: span 2; } .head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; } .head small { color: var(--soft); font-weight: 700; }
.board { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; align-items: end; }
.board li { grid-column: 1 / -1; display: grid; grid-template-columns: 34px 40px 1fr auto; gap: 9px; align-items: center; padding: 7px 12px; border-radius: 18px; background: linear-gradient(180deg, #fff, #f1edff); box-shadow: 0 4px 0 #ddd5ff; animation: slidein .45s both; transition: transform .18s; } .board li:hover { filter: brightness(.97); }
.board i { font-style: normal; font-weight: 800; text-align: center; font-size: 1.050rem; } .av { font-size: 1.450rem; } .board b { line-height: 1.080; overflow: hidden; text-overflow: ellipsis; } .board small { display: block; font-size: .66rem; font-weight: 500; color: var(--soft); } .board em { font-style: normal; font-weight: 800; font-size: 1.180rem; }
.board li.p1, .board li.p2, .board li.p3 { grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; text-align: center; padding: 10px 4px 12px; border-radius: 24px 24px 18px 18px; }
.board li.p1 { grid-column: 2; min-height: 196px; background: linear-gradient(180deg, #fff3a8, #ffc324); box-shadow: 0 7px 0 #c98a00, 0 0 28px rgba(255,204,47,.8); } .board li.p2 { grid-column: 1; min-height: 168px; background: linear-gradient(180deg, #fff, #c7d2ef); box-shadow: 0 7px 0 #93a0c6; } .board li.p3 { grid-column: 3; min-height: 152px; background: linear-gradient(180deg, #ffe6d2, #ffab74); box-shadow: 0 7px 0 #c96f3a; }
.board li.p1:hover, .board li.p2:hover, .board li.p3:hover { filter: brightness(1.06); }
.board li.p1 i, .board li.p2 i, .board li.p3 i { font-size: 2rem; line-height: 1.100; } .board li.p1 .av { font-size: 2.300rem; } .board li.p1 small, .board li.p2 small, .board li.p3 small { color: rgba(31,23,80,.7); } .board li.p1 em { font-size: 1.600rem; }
.board li:nth-child(4) { margin-top: 10px; }
.board li.real { outline: 3px solid var(--blue); }
.champs { list-style: none; margin: 0; padding: 4px; max-height: 340px; overflow: auto; } .champs li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; margin-bottom: 8px; border-radius: 16px; background: #f3f0ff; font-weight: 700; } .champs em { font-style: normal; font-weight: 800; }
.board li.me { outline: 4px solid var(--mint); background: linear-gradient(180deg, #d9fff0, #a8f2d6); }
.goal { text-align: center; font-weight: 700; margin-top: 12px; } .honest { font-size: .8rem; color: var(--soft); text-align: center; margin: 0; }
.badges { grid-column: 1; } .badges div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .badges span { text-align: center; font-size: .82rem; font-weight: 700; padding: 12px 4px; border-radius: 22px; background: #eeebfa; border: 2px dashed #cfc8ee; filter: grayscale(1); opacity: .6; } .badges i { display: block; font-style: normal; font-size: 2.300rem; line-height: 1.300; } .badges .got { filter: none; opacity: 1; border: 3px solid #ffb81f; background: radial-gradient(circle at 50% 25%, #fff9d6, #ffdf73); box-shadow: 0 7px 0 #d99a0b; animation: floaty 3s ease-in-out infinite; }

/* the quiz */
.quiz { max-width: 820px; margin: 0 auto; }
.hud { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.clock { display: flex; align-items: center; gap: 9px; background: var(--glass); border: 2px solid var(--edge); border-radius: 99px; padding: 4px 18px 4px 5px; font-weight: 800; font-size: 1.300rem; font-variant-numeric: tabular-nums; box-shadow: var(--lift); }
.clock svg { width: 44px; height: 44px; transform: rotate(-90deg); } .clock circle { fill: none; stroke-width: 6; stroke-linecap: round; } .clock .bg { stroke: #e3defa; } .clock .fg { stroke: #7a45ff; stroke-dasharray: 113.1; transition: stroke-dashoffset .5s linear; }
.clock.low { background: #ffe3e7; color: #b80f2b; animation: pulse 1s infinite; } .clock.low .fg { stroke: var(--red); }
.score { margin-right: auto; background: var(--glass); border: 2px solid var(--edge); border-radius: 99px; padding: 10px 20px; font-weight: 800; font-size: 1.150rem; box-shadow: var(--lift); }
.trail { position: relative; height: 18px; margin: 22px 18px 20px; border-radius: 99px; background: rgba(14,5,56,.45); border: 2px solid rgba(255,255,255,.5); }
.trail i { display: block; height: 100%; border-radius: 99px; background: repeating-linear-gradient(115deg, #ffd02f 0 12px, #ff8a3d 12px 24px); transition: width .55s cubic-bezier(.2,1.2,.4,1); animation: stripes 1s linear infinite; background-size: 53px 100%; }
.trail span { position: absolute; top: -14px; margin-left: -17px; font-size: 2rem; line-height: 1.300; transform: rotate(45deg); transition: left .55s cubic-bezier(.2,1.2,.4,1); filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.short { color: #fff; text-align: center; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.question { --a: #7a45ff; --b: #3f6bff; position: relative; padding: 0 24px 22px; animation: swoop .45s cubic-bezier(.2,1.25,.4,1) both; }
.question.still { animation: none; }
.q-maths { --a: #5b35e8; --b: #3f8bff; } .q-english { --a: #ff3f8e; --b: #ff8a3d; } .q-science { --a: #0891b2; --b: #17cf8f; } .q-social { --a: #8a3a9c; --b: #ff7a59; } .q-computer { --a: #1b2f8f; --b: #00b8e6; } .q-gk { --a: #0b6b4f; --b: #7bc83a; }
.qbanner { display: flex; align-items: center; gap: 13px; margin: 0 -24px 14px; padding: 13px 22px; border-radius: 27px 27px 40% 40% / 27px 27px 22px 22px; background: linear-gradient(110deg, var(--a), var(--b)); color: #fff; line-height: 1.150; }
.qbanner small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; } .qbanner b { font-size: 1.350rem; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
.medal { width: 56px; height: 56px; flex: none; display: grid; place-items: center; font-size: 1.900rem; font-weight: 800; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--a); box-shadow: 0 0 0 5px rgba(255,255,255,.3), 0 8px 16px rgba(0,0,0,.28); animation: floaty 2.600s ease-in-out infinite; }
.robot.peek { width: 66px; height: 76px; margin: -8px 0 -22px auto; filter: drop-shadow(0 7px 8px rgba(0,0,0,.35)); }
.qtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; color: var(--soft); font-size: .94rem; }
.subj { color: #fff; border-radius: 99px; padding: 3px 14px; background: linear-gradient(110deg, var(--a, #7a45ff), var(--b, #3f6bff)); }
.say { margin-left: auto; font-size: 1.400rem; background: linear-gradient(180deg, #fff, #e8e3ff); border-radius: 18px; width: 52px; height: 46px; box-shadow: 0 5px 0 #cfc6f5; } .say:active { transform: translateY(4px); box-shadow: 0 1px 0 #cfc6f5; }
.question h2 { margin: 16px 0 20px; padding: 24px 22px; text-align: center; font-size: clamp(1.450rem, 4.200vw, 2.100rem); white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 28px; background: radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--b) 22%, #fff), #fff 70%); border: 3px solid color-mix(in srgb, var(--a) 30%, #fff); box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--a) 12%, #fff); }
.question h2.long { font-size: clamp(1.150rem, 3.200vw, 1.500rem); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.ans { --c: #3f6bff; --d: #1f3fb8; position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 78px; text-align: left; padding: 13px 16px; border-radius: 24px; font-size: 1.300rem; font-weight: 800; color: #fff; min-width: 0; text-shadow: 0 2px 0 rgba(0,0,0,.22); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 55%); box-shadow: 0 8px 0 var(--d), 0 18px 22px -12px rgba(10,0,50,.65), inset 0 2px 0 rgba(255,255,255,.5); transition: transform .15s cubic-bezier(.2,1.8,.4,1), box-shadow .15s, opacity .2s; animation: tile .45s cubic-bezier(.2,1.5,.4,1) both; }
.ans:nth-child(2) { animation-delay: .06s; } .ans:nth-child(3) { animation-delay: .12s; } .ans:nth-child(4) { animation-delay: .18s; } .still .ans { animation: none; }
.ans::before { content: ""; position: absolute; right: -22px; top: -30px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.16); }
.ans span { flex: 1; overflow-wrap: anywhere; } .ans:not(.sel):not(:disabled):hover { transform: scale(1.020); filter: brightness(1.08); } .ans:not(:disabled):active { transform: translateY(6px); box-shadow: 0 2px 0 var(--d); }
.ans i { flex: none; width: 44px; height: 44px; border-radius: 15px; background: #fff; color: var(--d); display: grid; place-items: center; font-style: normal; text-shadow: none; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.ans em { font-style: normal; font-size: 1.700rem; color: #fff; }
.a0 { --c: #3f6bff; --d: #2442bd; } .a1 { --c: #ff3f8e; --d: #bd1d62; } .a2 { --c: #ff9a0f; --d: #b96400; } .a3 { --c: #8b47ff; --d: #5a22bd; }
.ans.sel { transform: translateY(-4px) scale(1.035); outline: 6px solid var(--gold); outline-offset: 2px; box-shadow: 0 8px 0 var(--d), 0 0 34px 6px rgba(255,204,47,.85); } .ans.sel i { background: var(--gold); color: #4a2a00; animation: pop .35s cubic-bezier(.2,2.2,.4,1); } .ans.dim { opacity: .72; }
.after { min-height: 56px; display: grid; place-items: center; text-align: center; margin-top: 8px; } .after p { margin: 8px 0 0; } .hintline { color: var(--soft); font-size: .92rem; }
.nav { display: flex; gap: 12px; margin-top: 4px; }

/* popups */
#layer, #asleep { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(16,5,60,.66); backdrop-filter: blur(7px); }
.sheet { width: min(540px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; text-align: center; background: #fff; animation: popin .4s cubic-bezier(.2,1.6,.4,1); }
.sheet input { width: 150px; padding: 11px; font-size: 1.500rem; text-align: center; border-radius: 18px; border: 3px solid var(--violet); }
.dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 9px; max-height: 48vh; overflow: auto; padding: 5px; } .dots button { height: 46px; border-radius: 16px; background: #ece8ff; font-weight: 800; box-shadow: 0 4px 0 #cfc7f3; } .dots .done_ { background: linear-gradient(180deg, #6f95ff, #3f6bff); color: #fff; box-shadow: 0 4px 0 #2442bd; } .dots [aria-current] { outline: 4px solid var(--gold); outline-offset: 2px; }
.tiny { font-size: .83rem; }

/* result and other pages */
.result, .single { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; } .single > .chipbtn { align-self: flex-start; }
.trophy { position: relative; overflow: hidden; text-align: center; color: #fff; padding: 30px 20px; border-radius: 40px; background: linear-gradient(150deg, rgba(104,58,255,.97), rgba(209,50,170,.96) 65%, rgba(255,138,61,.96)); border: 3px solid rgba(255,255,255,.55); box-shadow: 0 34px 60px -26px rgba(10,0,50,.9); }
.trophy::before { content: ""; position: absolute; left: 50%; top: 190px; width: 900px; height: 900px; transform: translate(-50%,-50%); background: repeating-conic-gradient(rgba(255,255,255,.09) 0 9deg, transparent 9deg 22deg); border-radius: 50%; animation: spin 40s linear infinite; }
.trophy > * { position: relative; }
.starsrow { font-size: 4.600rem; line-height: 1; } .starsrow span { display: inline-block; color: rgba(255,255,255,.28); margin: 0 5px; } .starsrow span:nth-child(2) { font-size: 6rem; } .starsrow .on { color: var(--gold); text-shadow: 0 6px 0 #c47f00, 0 0 30px #ffe27a; animation: starin .7s both cubic-bezier(.2,1.9,.4,1); }
.bigscore { display: inline-block; min-width: 210px; margin: 6px 0 12px; padding: 4px 30px 14px; border-radius: 36px; background: #fff; color: var(--ink); box-shadow: 0 10px 0 rgba(40,0,80,.3); } .bigscore b { display: block; font-size: 5rem; font-weight: 800; line-height: 1.100; background: linear-gradient(110deg, #6a35f0, #ff3f8e); -webkit-background-clip: text; background-clip: text; color: transparent; } .bigscore small { display: block; font-weight: 700; color: var(--soft); }
.rank { background: var(--gold); color: #4a2a00; border-radius: 99px; display: inline-block; padding: 6px 20px; font-weight: 800; }
.meter { display: grid; grid-template-columns: 180px 1fr 56px; gap: 11px; align-items: center; font-weight: 800; margin: 10px 0; font-size: .94rem; } .meter div { height: 18px; background: #e9e5fb; border-radius: 12px; overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 12px; animation: grow 1s cubic-bezier(.2,.9,.3,1) both; } .meter b { text-align: right; }
.s-maths { background: linear-gradient(90deg, #5b35e8, #3f8bff); } .s-english { background: linear-gradient(90deg, #ff3f8e, #ff8a3d); } .s-science { background: linear-gradient(90deg, #0891b2, #17cf8f); } .s-social { background: linear-gradient(90deg, #8a3a9c, #ff7a59); } .s-computer { background: linear-gradient(90deg, #1b2f8f, #00b8e6); } .s-gk { background: linear-gradient(90deg, #0b6b4f, #7bc83a); }
.filters { flex-wrap: wrap; } .learn { list-style: none; padding: 4px; margin: 0; max-height: 460px; overflow: auto; } .learn li { background: #f5f3ff; border-left: 7px solid #b9b3d6; border-radius: 20px; padding: 12px 16px; margin-bottom: 10px; } .learn li.correct { border-color: var(--mint); background: #ebfff6; } .learn li.incorrect { border-color: var(--red); background: #fff0f2; } .learn p { margin: 0; font-weight: 700; white-space: pre-wrap; } .learn span { display: block; color: #087a52; font-weight: 800; } .learn small { display: block; color: var(--soft); }
.pay { text-align: center; color: #fff; padding: 30px 22px; border-radius: 40px; background: linear-gradient(150deg, rgba(59,43,184,.97), rgba(138,63,252,.96) 60%, rgba(255,63,142,.96)); border: 3px solid rgba(255,255,255,.55); box-shadow: 0 34px 60px -26px rgba(10,0,50,.9); } .pay .rocket { font-size: 5rem; line-height: 1.200; animation: floaty 2.600s ease-in-out infinite; } .price b { font-size: 4.800rem; color: var(--gold); font-weight: 800; text-shadow: 0 6px 0 rgba(0,0,0,.2); } .price span { margin-left: 8px; font-weight: 700; } .pay ul { list-style: none; padding: 0; display: inline-block; text-align: left; font-weight: 700; } .ask { font-weight: 800; }
.info p { font-size: .98rem; } .topics { font-size: .92rem !important; }

#confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; } #confetti i { position: absolute; top: -16px; width: 10px; height: 15px; border-radius: 3px; animation: fall linear forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.94); } }
@keyframes fade { from { opacity: 0; } }
@keyframes swoop { from { opacity: 0; transform: translateX(46px) rotate(1.200deg) scale(.96); } }
@keyframes tile { from { opacity: 0; transform: translateY(22px) scale(.86); } }
@keyframes popin { from { opacity: 0; transform: scale(.7); } }
@keyframes pop { from { transform: scale(.4) rotate(-30deg); } }
@keyframes floaty { 50% { translate: 0 -8px; } }
@keyframes hover { 50% { transform: translateY(-9px); } }
@keyframes shadow { 50% { transform: scale(.75); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes wave { 50% { transform: rotate(22deg); } }
@keyframes flame { to { transform: scaleY(.65); } }
@keyframes glowdot { to { fill: #ffe45c; } }
@keyframes glowpill { to { box-shadow: 0 0 16px #ffd23f; } }
@keyframes shine { 0%, 62% { left: -70px; } 100% { left: 130%; } }
@keyframes stripes { to { background-position: 53px 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes pulse { 50% { scale: 1.060; } }
@keyframes shake { 25% { transform: translateX(-9px); } 75% { transform: translateX(9px); } }
@keyframes roll { from { opacity: 0; transform: translateY(18px); } }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } }
@keyframes starin { from { transform: scale(0) rotate(-200deg); } }
@keyframes grow { from { width: 0; } }
@keyframes fall { to { transform: translate(var(--drift), 110vh) rotate(720deg); } }

@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } .mission, .league, .badges { grid-column: 1; grid-row: auto; } }
@media (max-width: 580px) {
  main { padding: 12px 10px 40px; } .robot.hero { width: 96px; height: 110px; }
  .answers { grid-template-columns: 1fr; gap: 13px; } .ans { min-height: 60px; padding: 10px 12px; font-size: 1.120rem; } .ans i { width: 36px; height: 36px; border-radius: 12px; }
  .question { padding: 0 13px 16px; border-radius: 26px; } .qbanner { margin: 0 -13px 10px; padding: 9px 14px; } .qbanner b { font-size: 1.100rem; } .medal { width: 44px; height: 44px; font-size: 1.450rem; } .robot.peek { width: 50px; height: 58px; margin-bottom: -14px; }
  .question h2 { padding: 15px 12px; margin: 11px 0 15px; } .hintline { font-size: .8rem; }
  .clock { font-size: 1.080rem; padding-right: 12px; } .clock svg { width: 34px; height: 34px; } .score { padding: 7px 12px; font-size: .98rem; } .hud .chipbtn { padding: 8px 12px; }
  .classes { grid-template-columns: repeat(2, 1fr); gap: 16px; } .classcard b { font-size: 3.200rem; } .boardcard { width: 100%; padding: 16px; } .boardcard span { font-size: 3.400rem; }
  .meter { grid-template-columns: 122px 1fr 48px; font-size: .82rem; } .chipbtn span { display: none; } .board li.p1 small, .board li.p2 small, .board li.p3 small { font-size: .58rem; } .mission .big { font-size: 1.350rem; padding: 14px 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } #confetti { display: none; } }
.legal { margin-top: 16px; } .legal a { color: inherit; text-decoration: underline; }
/* "Did you know?" fun fact card */
.fact { grid-column: 1 / -1; border-top: 8px solid var(--tc); }
.facthead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; } .facthead h2 { margin: 0; }
.fact .topic { background: var(--tc); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 99px; }
.factbody { display: flex; align-items: center; gap: 18px; margin: 14px 0; animation: popin .45s ease-out; }
.factemoji { font-size: 3.6rem; line-height: 1; flex: none; filter: drop-shadow(0 6px 8px rgba(20,0,70,.25)); animation: floaty 2.6s ease-in-out infinite; }
.factbody p { margin: 0; font-size: 1.22rem; font-weight: 700; }
.factfoot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.found { color: var(--soft); font-weight: 700; font-size: .9rem; } .factbtns { display: flex; gap: 10px; align-items: center; }
.big.small { padding: 10px 18px; font-size: 1rem; } .result > .fact { margin: 18px 0; }
.fact { position: relative; overflow: hidden; }
.factbar { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--tc); transform-origin: left; animation: factbar var(--secs, 3s) linear; }
.fact.paused .factbar { animation-play-state: paused; }
@keyframes factbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.offer { max-width: 460px; margin: 4px auto 6px; color: #fff; font-weight: 600; text-shadow: 0 2px 8px rgba(20,0,70,.65); line-height: 1.4; } .offer b { color: var(--gold); }
.offer { background: rgba(28,21,82,.62); padding: 10px 16px; border-radius: 18px; text-shadow: none; }
.auth .legal { display: table; margin: 16px auto 0; padding: 6px 16px; border-radius: 99px; background: rgba(28,21,82,.62); color: #fff; font-weight: 700; }
