@charset "UTF-8";.activity-badge{display:inline-block;background:#f0edff;color:#534ab7;font-size:12px;font-weight:800;padding:4px 14px;border-radius:20px;letter-spacing:.04em;text-transform:uppercase}.dots{display:flex;gap:8px;justify-content:center}.dots span{width:10px;height:10px;border-radius:50%;background:#534ab7;animation:dot-pulse 1.2s infinite ease-in-out}.dots span:nth-child(2){animation-delay:.2s}.dots span:nth-child(3){animation-delay:.4s}@keyframes dot-pulse{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.teacher-lobby{padding:24px 20px;display:flex;flex-direction:column;gap:24px;max-width:680px;margin:0 auto}.lobby-header h1{font-size:28px;font-weight:900;color:#1a1a24;margin:8px 0 4px}.lobby-header p{font-size:14px;color:#8a889a;margin:0}.students-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px}.student-card{display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border-radius:18px;padding:16px 10px;border:2px solid #ede9fe;box-shadow:0 2px 10px #534ab70f}.student-avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#534ab7,#7c3aed);color:#fff;font-size:18px;font-weight:900;display:grid;place-items:center}.student-name{font-size:12px;font-weight:700;color:#1a1a24;text-align:center}.ready-dot{width:8px;height:8px;border-radius:50%;background:#10b981}.empty-student{grid-column:1/-1;padding:32px;text-align:center;color:#8a889a}.empty-student i{font-size:28px;margin-bottom:10px;display:block}.empty-student p{margin:0;font-size:14px}.lobby-info-cards{display:flex;gap:12px;flex-wrap:wrap}.info-card{flex:1;min-width:160px;display:flex;align-items:flex-start;gap:12px;background:#fff;border-radius:16px;padding:14px 16px;border:1.5px solid #ede9fe}.info-card .info-icon{font-size:22px;flex-shrink:0}.info-card .info-label{font-size:10px;font-weight:700;color:#8a889a;text-transform:uppercase}.info-card .info-val{font-size:13px;font-weight:700;color:#1a1a24;margin-top:2px;line-height:1.3}.btn-start{background:linear-gradient(135deg,#534ab7,#7c3aed);color:#fff;border:none;padding:18px 32px;border-radius:18px;font-size:17px;font-weight:800;cursor:pointer;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;transition:opacity .15s}.btn-start:disabled{opacity:.5;cursor:not-allowed}.btn-start:not(:disabled):hover{opacity:.9}.preparing-view{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:64px 24px;text-align:center}.preparing-view .prep-spinner{font-size:64px;animation:float 2s ease-in-out infinite alternate}.preparing-view h2{font-size:24px;font-weight:900;color:#1a1a24;margin:0}.preparing-view p{color:#8a889a;margin:0}@keyframes float{0%{transform:translateY(0)}to{transform:translateY(-10px)}}.teacher-game-view{padding:20px;display:flex;flex-direction:column;gap:20px;max-width:680px;margin:0 auto}.game-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.global-timer{font-size:22px;font-weight:900;color:#534ab7;background:#f0edff;padding:6px 16px;border-radius:16px}.global-timer.urgent{background:#fee2e2;color:#ef4444;animation:pulse-text 1s infinite alternate}@keyframes pulse-text{0%{transform:scale(1)}to{transform:scale(1.08)}}.chart-card{background:#fff;border-radius:24px;padding:24px;border:2px solid #ede9fe;box-shadow:0 4px 20px #534ab714}.chart-card h2{font-size:16px;font-weight:800;color:#1a1a24;margin:0 0 20px}.bar-chart{display:flex;flex-direction:column;gap:14px}.bar-row{display:grid;grid-template-columns:24px 130px 1fr 60px;align-items:center;gap:10px}.bar-rank{font-size:14px;font-weight:900;color:#534ab7;text-align:center}.bar-name{font-size:13px;font-weight:700;color:#1a1a24;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-track{height:28px;background:#f3f4f6;border-radius:8px;overflow:hidden}.bar-fill{height:100%;border-radius:8px;transition:width .6s cubic-bezier(.34,1,.64,1)}.bar-score{font-size:13px;font-weight:800;color:#534ab7;text-align:right}.chart-empty{text-align:center;color:#8a889a;padding:24px}.chart-empty i{font-size:28px;display:block;margin-bottom:8px}.chart-empty p{margin:0;font-size:13px}.btn-end-early{background:#fee2e2;color:#ef4444;border:none;padding:14px 24px;border-radius:14px;font-size:14px;font-weight:700;cursor:pointer;width:100%;transition:background .15s}.btn-end-early:hover{background:#fecaca}.ended-view{display:flex;flex-direction:column;align-items:center;gap:20px;padding:40px 24px;text-align:center}.ended-view .end-trophy{font-size:72px;animation:pop-in .5s cubic-bezier(.34,1.56,.64,1) both}.ended-view h1{font-size:28px;font-weight:900;color:#1a1a24;margin:0}.final-ranking{background:#fff;border-radius:20px;padding:16px 20px;border:2px solid #ede9fe;width:100%;max-width:340px;display:flex;flex-direction:column;gap:10px}.rank-row{display:flex;align-items:center;gap:12px}.rank-medal{font-size:20px;width:28px}.rank-name{flex:1;font-size:14px;font-weight:700;color:#1a1a24}.rank-pts{font-size:14px;font-weight:800;color:#534ab7}.ended-view .btn-return{background:linear-gradient(135deg,#534ab7,#7c3aed);color:#fff;border:none;padding:14px 32px;border-radius:16px;font-size:15px;font-weight:800;cursor:pointer}.student-waiting{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:48px 24px;text-align:center;min-height:80vh}.student-waiting .wait-illustration{font-size:72px;animation:float 2s ease-in-out infinite alternate}.student-waiting h1{font-size:28px;font-weight:900;color:#1a1a24;margin:0}.student-waiting .wait-sub{font-size:15px;color:#8a889a;margin:0}.wait-card{background:#fff;border-radius:20px;padding:20px 40px;border:2px solid #ede9fe;box-shadow:0 4px 16px #534ab714}.wait-stat{display:flex;flex-direction:column;align-items:center;gap:4px}.wait-stat .ws-num{font-size:40px;font-weight:900;color:#534ab7}.wait-stat .ws-label{font-size:13px;color:#8a889a;font-weight:600}@keyframes pop-in{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}.page{min-height:100dvh;background:#f5f3ff;display:flex;flex-direction:column;align-items:center;padding:16px 16px 28px;box-sizing:border-box;gap:14px}.loading-view{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.load-spinner{width:80px;height:80px}@keyframes spin{to{transform:rotate(360deg)}}.load-label{font-size:17px;font-weight:700;color:#4f46e5;margin:0}.game-view{display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%;max-width:700px}.stats-bar{display:grid;grid-template-columns:1fr auto 1fr;background:#fff;border-radius:24px;box-shadow:0 4px 20px #00000012;overflow:hidden}.stat-col{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 12px;gap:4px}.stat-left{align-items:flex-start;padding-left:22px;border-right:1px solid #f0eeff}.stat-right{align-items:flex-end;padding-right:22px;border-left:1px solid #f0eeff}.stat-center{padding:10px 24px}.stat-label{font-size:10px;font-weight:800;color:#9ca3af;letter-spacing:.12em;text-transform:uppercase}.stat-counter{display:flex;align-items:baseline;gap:3px}.stat-big{font-size:36px;font-weight:900;color:#1a1a24;line-height:1}.stat-slash{font-size:18px;font-weight:600;color:#9ca3af}.progress-dashes{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;max-width:160px}.dash{height:6px;width:20px;border-radius:3px;background:#e5e7eb;transition:all .3s}.dash.dash-done{background:#10b981}.dash.dash-active{background:#6366f1;width:28px}.big-timer{position:relative;width:140px;height:140px;filter:drop-shadow(0 0 14px rgba(251,191,36,.35));transition:filter .3s}.big-timer.timer-urgent{filter:drop-shadow(0 0 14px rgba(239,68,68,.45))}.ring-svg{width:140px;height:140px;transform:rotate(-90deg)}.ring-track{fill:none;stroke:#f3f4f6;stroke-width:9}.ring-progress{fill:none;stroke-width:9;stroke-linecap:round;stroke-dasharray:351.9;transition:stroke-dashoffset .9s linear}.timer-inner{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.timer-time{font-size:28px;font-weight:900;color:#1a1a24;font-variant-numeric:tabular-nums;line-height:1}.timer-unit{font-size:11px;font-weight:600;color:#9ca3af}.score-display{display:flex;align-items:baseline;gap:4px}.score-val{font-size:32px;font-weight:900;color:#16a34a;line-height:1}.score-unit{font-size:14px;font-weight:700;color:#16a34a}.last-xp-pill{display:flex;align-items:center;gap:4px;background:#dcfce7;color:#15803d;font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px}.encouragement{display:flex;align-items:center;gap:8px}.encouragement .enc-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid #e0e7ff}.encouragement .enc-text{font-size:12px;font-weight:700;color:#6366f1;line-height:1.3;max-width:110px}.encouragement-placeholder{width:36px}.fb-correct{font-size:17px;font-weight:900;color:#059669}.fb-wrong{display:flex;flex-direction:column;gap:3px}.fb-wrong .fb-wrong-label{font-size:12px;font-weight:700;color:#9ca3af;text-transform:uppercase}.fb-wrong .fb-sentence{font-size:15px;font-weight:700;color:#dc2626;line-height:1.4}.end-view{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;padding:24px;position:relative;overflow:hidden;width:100%;max-width:500px}.confetti-layer{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}.confetti-p{position:absolute;top:-5%;font-size:20px;left:calc(var(--i) * 6.5%);color:var(--color);animation:fall calc(2.2s + var(--i) * .12s) linear calc(var(--i) * .08s) infinite}@keyframes fall{0%{transform:translateY(0) rotate(0);opacity:1}to{transform:translateY(110vh) rotate(720deg);opacity:0}}.end-trophy{font-size:88px;z-index:1;animation:pop .5s cubic-bezier(.34,1.56,.64,1) both}.end-title{font-size:34px;font-weight:900;color:#1e1b4b;margin:0;z-index:1;animation:pop .4s .1s both}.end-sub{font-size:15px;color:#6d6a9c;margin:-10px 0 0;z-index:1;animation:pop .4s .15s both}@keyframes pop{0%{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}.end-stats-bar{display:flex;align-items:stretch;width:100%;background:#fff;border-radius:24px;border:2px solid #ede9fe;box-shadow:0 4px 20px #6366f11a;overflow:hidden;z-index:1;animation:pop .4s .2s both}.end-stat{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px 12px;gap:4px}.end-stat .es-icon{font-size:22px}.end-stat .es-val{font-size:26px;font-weight:900;color:#4338ca}.end-stat .es-lbl{font-size:10px;font-weight:700;color:#9ca3af;text-transform:uppercase;letter-spacing:.06em}.end-stat.xp-stat{background:#f5f3ff}.end-stat.xp-stat .es-val{font-size:30px}.end-divider{width:1px;background:#ede9fe}.xp-added-pill{background:linear-gradient(135deg,#6366f1,#4338ca);color:#fff;border-radius:20px;padding:13px 26px;font-size:15px;font-weight:800;z-index:1;animation:pop .4s .3s both;box-shadow:0 4px 16px #6366f159}.rank-chip{display:flex;align-items:center;gap:8px;background:#fef9c3;border:2px solid #fbbf24;border-radius:20px;padding:10px 22px;font-size:15px;font-weight:800;color:#92400e;z-index:1;animation:pop .4s .35s both}.end-view .btn-return{background:linear-gradient(135deg,#6366f1,#4338ca);color:#fff;border:none;padding:17px 44px;border-radius:50px;font-size:16px;font-weight:800;cursor:pointer;z-index:1;box-shadow:0 6px 20px #6366f166;animation:pop .4s .4s both;transition:all .15s}.end-view .btn-return:hover{transform:translateY(-1px);box-shadow:0 8px 24px #6366f180}.end-view .btn-return:active{transform:translateY(2px)}@keyframes shake{0%,to{transform:translate(0)}25%,75%{transform:translate(-6px)}50%{transform:translate(6px)}}*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}body{font-family:Nunito,Segoe UI,system-ui,-apple-system,sans-serif;font-weight:400;font-size:1rem;line-height:1.5;color:#1e1b4b;background:linear-gradient(180deg,#fffffc,#f4eefd);min-height:100vh;overflow-x:hidden}a{color:inherit;text-decoration:none}button{font-family:Nunito,Segoe UI,system-ui,-apple-system,sans-serif;cursor:pointer;border:none;background:none;outline:none}ul,ol{list-style:none}img{max-width:100%;height:auto;display:block}input,textarea,select{font-family:Nunito,Segoe UI,system-ui,-apple-system,sans-serif;font-size:.875rem;border:none;outline:none}::selection{background:#c4b5fd;color:#4c1d95}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#c4b5fd;border-radius:9999px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
