:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#193249;background:#f5f8fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}.shell{min-height:100vh}.top{background:#fff;box-shadow:0 1px 10px #18385c12;min-height:77px;display:flex;align-items:center;gap:17px;padding:12px max(18px,calc((100vw - 1040px)/2));justify-content:space-between}.logo{display:flex;align-items:center;gap:10px;cursor:pointer}.logo-icon{background:#e7f2ff;border-radius:13px;color:#1b5bb5;display:grid;place-items:center;width:44px;height:44px}.logo b{letter-spacing:.11em;color:#17345f;font-size:20px}.logo small{display:block;letter-spacing:.095em;color:#7790a8;font-size:9px;font-weight:800}.testing{font-size:10px;letter-spacing:.1em;color:#8a6b1b;border:1px solid #eed8a6;background:#fffbef;border-radius:100px;padding:6px 9px;font-weight:800}.profile{display:flex;align-items:center;gap:11px;font-weight:650;color:#346082}.profile button{border:0;background:#eaf1fa;border-radius:9px;padding:9px;color:#42637f;display:grid;place-items:center}.nav{display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;border-bottom:1px solid #e7eef5;padding:8px 12px;flex-wrap:wrap}.nav button{display:flex;align-items:center;gap:6px;border:0;background:transparent;border-radius:9px;padding:10px 14px;font-size:13px;color:#536f8a;font-weight:700}.nav button.active{color:#1655a9;background:#e6f1ff}.content{width:min(100% - 28px,970px);margin:28px auto 70px}.hero{overflow:hidden;position:relative;border-radius:24px;background:linear-gradient(114deg,#194371,#3167ad);color:#fff;padding:40px 42px 45px;box-shadow:0 12px 35px #265da92a}.hero h1{font-size:clamp(26px,4vw,40px);margin:18px 0 12px;position:relative;z-index:1}.hero p{color:#d6eaff;max-width:470px;margin:0 0 25px;line-height:1.6;position:relative;z-index:1}.hero .btn{background:#fff;color:#184986}.hero-brain{position:absolute;right:65px;top:60px;opacity:.13;transform:rotate(-12deg)}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.09em;display:flex;align-items:center;gap:6px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:18px 0 35px}.stats>div{background:#fff;border-radius:17px;padding:23px 21px;border:1px solid #e5edf7;box-shadow:0 4px 13px #10335808}.stats small{font-weight:800;font-size:10px;color:#66829c;letter-spacing:.075em}.stats strong{display:flex;align-items:center;gap:7px;font-size:29px;color:#173c6b;margin-top:12px}.stats strong span{font-size:14px;color:#7e92a6}.stats svg{color:#e6aa37}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:10px 0 19px;gap:14px}.section-heading small{font-size:11px;color:#577d9b;font-weight:800;letter-spacing:.08em}.section-heading h2{margin:6px 0;color:#17385b;font-size:26px}.stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.stage{text-align:left;display:flex;align-items:center;gap:15px;background:#fff;border:1px solid #e3eaf2;border-radius:17px;padding:17px;min-height:99px;transition:transform .1s,box-shadow .1s}.stage:enabled:hover{transform:translateY(-2px);box-shadow:0 9px 25px #16375912}.stage-badge{height:50px;width:50px;border-radius:13px;background:var(--stage-bg);color:var(--stage);display:grid;place-items:center;font-weight:900;font-size:23px;flex-shrink:0}.stage div:nth-child(2){flex:1}.stage small{display:block;font-size:10px;font-weight:800;color:var(--stage);letter-spacing:.1em}.stage strong{display:block;margin:4px 0;font-size:17px;color:#244364}.stage p{font-size:12px;color:#6b8297;margin:5px 0}.stage>svg{color:var(--stage)}.notice{background:#f4f9fe;color:#4f6e89;border:1px solid #dce8f5;padding:18px;margin-top:24px;border-radius:12px;line-height:1.6;font-size:13px}.panel{background:#fff;border:1px solid #e3ebf4;border-radius:20px;padding:26px;box-shadow:0 3px 18px #213d5b08}.center{text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;justify-content:center;padding:55px 20px;color:#315d8c}.center h2{margin:0;color:#173b66}.center p{color:#6d879f;max-width:450px;line-height:1.6}.btn{border:0;border-radius:11px;padding:12px 18px;background:#2763aa;color:#fff;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.btn.outline{border:1px solid #cbddef;color:#275b8d;background:#fff}.btn.quiet{background:#edf4fb;color:#55728f}.alert{margin:15px auto -8px;width:min(970px,calc(100% - 28px));background:#fff1ed;color:#92452a;padding:14px 18px;border:1px solid #f0ccc0;border-radius:12px;display:flex;justify-content:space-between}.alert button{border:0;background:transparent;font-size:21px;color:inherit}.question{border-top:4px solid var(--stage)}.qtop{display:flex;justify-content:space-between;gap:8px;color:#638098;font-size:12px;text-transform:capitalize}.qtop span{display:flex;align-items:center;gap:5px}.question h2{font-size:clamp(20px,3vw,28px);line-height:1.45;margin:27px 0}.choices{display:grid;gap:11px}.choices button{display:flex;text-align:left;align-items:center;gap:13px;border:1px solid #dce7f1;background:#f9fcff;border-radius:12px;padding:15px;color:#2a4664;min-height:54px}.choices button b{display:grid;place-items:center;width:29px;height:29px;background:#e4edf8;color:#41658c;border-radius:9px;flex-shrink:0}.choices button.picked{border-color:#286fc6;background:#e7f2ff}.choices button.correct{border-color:#29a47e;background:#e3f9f1}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.result{margin-top:19px;border-radius:12px;padding:18px;background:#f0f8ff;border:1px solid #cfe3f5}.result.yes{background:#e9f9f1;border-color:#b9e8d1}.result h3{margin:0 0 12px;color:#164d3d}.result p{line-height:1.6}.lounge-layout{display:grid;grid-template-columns:300px 1fr;gap:17px}.panel h3{display:flex;align-items:center;gap:8px;color:#284763;margin:0 0 16px}.member{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #eff3f7;font-size:14px}.member small{margin-left:auto;color:#8295a5;font-size:11px}.dot{width:8px;height:8px;border-radius:50%;background:#a4adbc;flex-shrink:0}.dot.online{background:#23a46b}.message-list{height:345px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:10px 2px}.message{border-radius:12px;background:#f4f8fd;padding:11px 13px}.message b{color:#2b5c90;font-size:12px}.message small{color:#8499aa;font-size:10px;margin-left:10px}.message p{margin:6px 0 0;line-height:1.5;overflow-wrap:anywhere;font-size:14px}.chat-input{display:flex;gap:8px;margin-top:14px}.chat-input input{flex:1;min-width:60px}.leader{display:flex;align-items:center;gap:12px;padding:15px 6px;border-bottom:1px solid #eef3f8}.leader>b{width:32px;color:#376ab0}.leader span{flex:1}.leader small{color:#7a90a4}.leader strong{color:#c39332}.login{min-height:calc(100vh - 90px);display:grid;place-items:center;padding:25px}.login-card{width:min(100%,480px);display:flex;flex-direction:column;gap:12px;padding:35px}.login-card>svg{color:#2166b4}.login-card h1{font-size:30px;margin:5px 0;line-height:1.24;color:#153960}.login-card h1 em{color:#347cc5;font-style:normal}.login-card p{color:#70859b;line-height:1.5;margin:0 0 10px}form label{display:block;color:#3d5874;font-size:13px;font-weight:700;margin:13px 0}input,select{border:1px solid #ceddec;border-radius:10px;background:#fff;padding:12px 13px;outline-color:#3771b3;color:#163659}form label input{display:block;width:100%;margin-top:7px}.login form .btn,.account-form .btn{width:100%;margin-top:10px}.muted{color:#7b92a7;font-size:13px}footer{text-align:center;padding:22px;font-size:11px;color:#8a9bab}.visual,.note{background:#f4f7fa;padding:10px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:680px){.top{padding:12px 15px}.logo b{font-size:18px}.testing{display:none}.profile{font-size:12px}.nav{justify-content:space-between;gap:0;padding:5px 4px}.nav button{font-size:11px;padding:9px;gap:4px;flex-direction:column}.content{margin-top:17px}.hero{padding:28px 24px}.hero-brain{right:-40px;opacity:.08}.stats{gap:7px}.stats>div{padding:14px 11px}.stats small{font-size:9px;line-height:1.3;display:block}.stats strong{font-size:21px}.stats strong svg{width:16px}.stages{grid-template-columns:1fr}.section-heading h2{font-size:22px}.lounge-layout{grid-template-columns:1fr}.panel{padding:17px}.qtop{font-size:11px}.login-card{padding:24px}.message-list{height:290px}}:root{color:#142a47;background:#eff3ff}body{background:radial-gradient(ellipse at 5% 2%,#e4e4ff,transparent 40%),radial-gradient(ellipse at 98% 15%,#dcf9f0,transparent 35%),#f3f6ff}.top{background:linear-gradient(100deg,#172c6c,#6436a2);color:#fff}.logo b,.logo small{color:#fff}.logo-icon{background:#ffffff29;color:#fff}.profile{color:#fff}.profile button{background:#ffffff2c;color:#fff}.hero{background:linear-gradient(120deg,#1c3191,#7040b8 55%,#ba438f);box-shadow:0 16px 45px #5033a448}.hero h1{font-weight:850}.hero-brain{opacity:.2}.stats>div{border:1px solid #c7d5ef;box-shadow:0 8px 22px #263a8b12}.stage{border:2px solid var(--stage);background:linear-gradient(115deg,#fff,var(--stage-bg));box-shadow:0 8px 20px #18346610}.stage-badge{color:#fff;background:var(--stage)}.btn{background:linear-gradient(105deg,#315bd7,#7640bc);box-shadow:0 5px 13px #4a43ac30}.choices button{border:2px solid #b8c8e5;background:#f5f8ff;font-weight:650}.choices button:hover{border-color:#7252c4}.choices button.picked{border-color:#623bc4;background:#e9e2ff}.panel{box-shadow:0 9px 30px #20347810}.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:360px;margin:15px auto}.memory-tile{aspect-ratio:1;display:grid;place-items:center;font-size:clamp(32px,6vw,55px);background:#fff;border:2px solid #9a8be0;border-radius:16px;color:#5634a4;box-shadow:0 4px 14px #4233a31a}.memory-timer{display:flex;justify-content:center;align-items:center;gap:8px;font-weight:800;color:#5032a5}.memory-exercise{background:linear-gradient(145deg,#f1eaff,#e5f5ff);border:1px solid #d3c8ef;border-radius:18px;padding:20px;text-align:center}.memory-hidden{min-height:190px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;color:#4a3b93}.study-note{font-weight:700;text-align:center;color:#5238a1}.message-list{background:#f2f5ff;border-radius:15px;padding:14px}.message{max-width:85%;background:#fff;border:1px solid #dce5fa}.message.mine{align-self:flex-end;background:#d8f4e5;border-color:#b1e2c7}.message.theirs{align-self:flex-start}.message small{display:inline-block}.chat-input input{min-height:48px}.login{background:radial-gradient(circle at 10% 15%,#e2e1ff,transparent 40%),radial-gradient(circle at 90% 80%,#d5f5f0,transparent 40%)}.login-card{border-top:5px solid #7650bd}@media(max-width:680px){.memory-grid{gap:7px}.memory-exercise{padding:12px}.message{max-width:92%}}.admin-head{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}.admin-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:13px;margin-top:22px}.account-edit{border:1px solid #d4daec;border-radius:16px;padding:16px;background:linear-gradient(155deg,#fff,#f4f4ff)}.account-edit .account-label{font-size:12px;font-weight:850;color:#55399c}.account-edit label{font-size:12px;margin:10px 0}.account-edit input{width:100%;margin-top:5px}.account-edit .btn{width:100%}.success-note{border-radius:10px;background:#e8f7ed;color:#12633e;padding:10px 12px}.member{min-width:0}.member span:nth-child(2){overflow-wrap:anywhere}.message-list{scrollbar-width:thin}@media(max-width:680px){.admin-head .btn{width:100%}.account-edit{padding:13px}}.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:14px;margin:20px 0 35px}.avatar-card{border:2px solid #cdd4f1;border-radius:18px;background:linear-gradient(145deg,#fff,#eff1ff);padding:10px;min-width:0;box-shadow:0 7px 18px #243c7d12;display:flex;flex-direction:column;align-items:center;gap:7px;transition:transform .15s,border-color .15s}.avatar-card img{width:100%;aspect-ratio:1;border-radius:16px;object-fit:cover}.avatar-card strong{font-size:12px;line-height:1.25}.avatar-card small{font-size:10px;color:#6b78a4}.avatar-card:not(:disabled):hover{transform:translateY(-5px);border-color:#7551cb}.avatar-card.selected{border:4px solid #10b899;background:#e9fff8}.avatar-card:disabled:not(.selected){opacity:.48}.avatar-card.dormant img{filter:grayscale(1);opacity:.5}.avatar-card.wilting img{filter:saturate(.5);opacity:.74}.avatar-card.legend{background:linear-gradient(140deg,#fff4ca,#efdefb)}.avatar-description{background:linear-gradient(115deg,#fff,#eef1ff)}.avatar-description p{line-height:1.55}.battle-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.battle-form label{flex:1;min-width:170px}.battle-form input,.battle-form select{width:100%;margin-top:5px}.battle-list{display:grid;gap:12px}.battle-list-item{display:flex;justify-content:space-between;gap:16px;align-items:center}.battle-list-item p{font-size:12px;color:#7183a7;margin:6px 0}.battle-modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#091034dd;z-index:100;overflow:auto;padding:20px;display:grid;place-items:start center}.battle-modal>.panel{width:min(850px,100%)}.battle-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center}.battle-toolbar h2{margin:6px 0}.battle-timer{margin:15px 0;padding:15px;border-radius:15px;background:linear-gradient(100deg,#271d73,#673ab8);color:#fff;display:flex;align-items:center;justify-content:space-between;font-weight:700}.battle-timer strong{font-size:30px;font-variant-numeric:tabular-nums;color:#fff59c}.battle-question h2{line-height:1.4}.rankings>div{display:flex;justify-content:space-between;padding:11px;border-bottom:1px solid #dce4f2;gap:9px}.rankings span{font-size:12px;color:#4e6284}.alert-local{background:#fff0f0;color:#8c2841;border:1px solid #f0b8c7;border-radius:12px;padding:13px}.battle-question{box-shadow:none;background:#f6f8ff}@media(max-width:700px){.avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.avatar-card{padding:5px;border-radius:11px}.avatar-card strong{font-size:10px}.battle-modal{padding:7px}.battle-modal>.panel{padding:12px}.battle-list-item{flex-direction:column;align-items:stretch}.battle-form label{min-width:100%}.nav button{font-size:10px}}.rules-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:13px}.rules-grid label{font-size:13px;font-weight:700;color:#3c4d83}.rules-grid input{display:block;width:100%;margin-top:6px}:root{color-scheme:dark;color:#eef8f6;background:#0e171b;--emerald:#53e0b0;--gold:#f6c96b}body{background:radial-gradient(ellipse at 12% 0%,#183e39 0%,transparent 40%),radial-gradient(ellipse at 100% 25%,#192e3b 0%,transparent 45%),#0e171b;color:#eaf6f2}.top{background:linear-gradient(110deg,#101e26,#173a36);border-bottom:1px solid #2a504b;box-shadow:0 4px 22px #0003}.logo-icon{background:#24584c;color:#69f0bf}.logo b{color:#f4fffc}.logo small{color:#b1d9ce}.profile{color:#effaf7}.nav{background:#14252b;border-bottom:1px solid #2b484b;gap:5px}.nav button{color:#d0e6e2;min-height:44px}.nav button.active{color:#102922;background:#62e3b4}.nav button:hover{background:#25433f;color:#fff}.nav button.active:hover{background:#62e3b4;color:#102922}.hero{background:linear-gradient(120deg,#14342e,#1b5145 58%,#203a4a);box-shadow:0 16px 40px #0005;border:1px solid #3a7565}.hero p{color:#d1f0e5}.hero .btn{background:#63e5b6;color:#0b2b22}.panel,.stats>div{background:#1b2c34;border:1px solid #37505a;color:#f0faf7;box-shadow:0 8px 26px #0003}.stats strong,.section-heading h2,.panel h3,.stage strong,.center h2,.login-card h1{color:#f2faf8}.stats small,.section-heading small,.qtop,.stage p,.muted,.member small,.leader small{color:#b4cacb}.stats strong svg,.leader strong{color:#f7ce74}.stage{background:#1b3037;border:1px solid #3c615c;box-shadow:none}.stage:hover:enabled{background:#25433e}.stage small{color:#81eac4}.stage-badge{background:#2c6558;color:#fff}.stage>svg{color:#75e7bc}.notice{background:#1a3537;border-color:#3e6c62;color:#d4eae5}.btn{background:#50d9a7;color:#0c2a23;box-shadow:none;min-height:44px}.btn:hover:enabled{background:#76edc2}.btn.outline{background:#203b3e;border-color:#55897a;color:#e9fff6}.btn.quiet{background:#294148;color:#ecfaf7}.question{background:#1a3037;border-color:#58dfac}.question h2{color:#fff}.choices{gap:13px}.choices button{background:#263f48;border:2px solid #58727a;color:#f5fffd;font-size:clamp(16px,2.2vw,19px);font-weight:750;min-height:65px;padding:17px 19px;border-radius:15px;touch-action:manipulation}.choices button b{background:#345e5a;color:#d4fff0;width:38px;height:38px}.choices button:hover:enabled{border-color:#72e5ba;background:#31534f}.choices button.picked{border-color:#64e9b8;background:#235f4d;color:#fff}.choices button.correct{border-color:#78e5a0;background:#20533f}.result{background:#203b43;border-color:#4e7b77;color:#f0faf7}.result.yes{background:#1a483c;border-color:#65bb95}.result h3{color:#b4ffdc}input,select,textarea{background:#20343d;color:#f5fffd;border-color:#537079;min-height:44px}input::placeholder{color:#abc0c3}form label{color:#d9f3ea}.login-card h1 em{color:#68e3b4}.login-card p{color:#c5d9d6}.member{border-bottom-color:#35515a}.dot.online{background:#62f2ae;box-shadow:0 0 0 3px #62f2ae26}.message{background:#29424b;color:#f5fffd;max-width:94%;align-self:flex-start}.message.mine{background:#205644;align-self:flex-end}.message b{color:#94f0ce}.message small{color:#c2d6d7}.message-list{height:min(52vh,460px);padding:12px 5px}.message-header{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.message-header small{margin-left:0}.delete-message{margin-left:auto;display:grid;place-items:center;border:1px solid #668b89;border-radius:8px;color:#d5e8e6;background:#29464a;min-height:34px;min-width:34px}.delete-message:hover:enabled{background:#6d363d;color:#fff}.online-count{font-size:12px;background:#205542;color:#a9ffdc;padding:5px 9px;border-radius:99px;margin-left:auto;white-space:nowrap}.chat-input input{background:#203a40}.leader{border-color:#37545a}.leader>b{color:#8ce8c4}.login-card>svg{color:#68e3b4}.avatar-card{background:#21353c;border-color:#45615e;color:#f3fffb}.avatar-card strong{color:#fff}.avatar-card small{color:#c2d6d3}.avatar-card.legend{background:linear-gradient(130deg,#3d342c,#2c3545)}.avatar-description{background:#21353c}.battle-list-item p,.rankings span{color:#c7d7d6}.battle-question{background:#20383f}.battle-timer{background:linear-gradient(90deg,#145244,#294c5c)}.battle-timer strong{color:#ffe49b}@media(max-width:680px){.content{width:calc(100% - 20px)}.nav{justify-content:flex-start;gap:4px}.nav button{font-size:11px;padding:10px 8px;min-width:65px}.choices button{min-height:68px;font-size:17px;padding:14px}.lounge-layout{grid-template-columns:1fr}.chat-panel{min-width:0}.message-list{height:45vh}.stats>div{padding:15px 10px}.panel{padding:16px}.section-heading{align-items:flex-start;flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
