@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;450;500;550;600;650;700;750;800;900&family=Marck+Script&display=swap');
:root{--paper:#f7f5ee;--ink:#273c32;--green:#234d40;--muted:#85877d;--line:#e4e4d8;--gold:#edc963;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Golos Text',Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #e2ae36;outline-offset:4px}button{transition:background .18s,transform .18s,box-shadow .18s}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit}svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}i{font-style:normal;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.hidden{display:none!important}#app{display:flex;min-height:100dvh}.sidebar{width:220px;flex-shrink:0;background:#efeee4;border-right:1px solid #dedfd2;padding:38px 21px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:5}.brand{display:flex;align-items:center;gap:12px;font-size:22px;letter-spacing:-1px;font-weight:900;line-height:.99;text-decoration:none;margin-left:7px}.brand-mark{width:46px;height:52px;background:var(--green);border-radius:14px;display:grid;place-items:center;transform:rotate(-7deg);color:#f3d77e}.brand-mark svg{width:29px;height:29px;stroke-width:1.8}.brand-dot{color:#bd8e3e}.school-label{font-size:10px;letter-spacing:1.7px;line-height:1.8;margin:22px 0 32px 10px;color:#697363}.school-label span{letter-spacing:.1px;font-size:12px}.sidebar nav{display:grid;gap:9px}.nav-item{display:flex;gap:12px;align-items:center;background:none;text-align:left;border-radius:9px;font-size:12px;font-weight:550;padding:15px 12px;color:#737c6e}.nav-item svg{width:19px;height:19px}.nav-item.active{background:var(--green);color:#fff}.nav-item:not(.active):hover{background:#e3e5d7}.nav-dot{display:none;width:5px;height:5px;background:#e7cd7b;border-radius:50%;margin-left:auto}.active .nav-dot{display:block}.sidebar-bottom{margin-top:auto;padding:55px 9px 0}.sidebar-bottom p{font-size:11px;line-height:1.8;color:#77806f}.version{font-size:8px;letter-spacing:1px;color:#9b9e8f}.stamp{width:75px;height:75px;border:2px solid #acb29d;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;font-size:23px;color:#929f83;transform:rotate(-14deg);outline:1px solid #acb29d;outline-offset:-6px;margin-bottom:20px}.stamp span{font-size:6px;letter-spacing:.6px}.main{margin-left:220px;width:calc(100% - 220px);max-width:1610px;padding:0 42px}.topbar{height:87px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.breadcrumb{font-size:11px;color:#909487}.breadcrumb span{margin:0 13px;color:#c4c7b8}.breadcrumb b{font-weight:500;color:#505f50}.top-actions{display:flex;align-items:center;gap:13px}.wallet{display:flex;align-items:center;gap:8px;font-size:12px;margin-right:8px}.wallet i{color:#b89744}.wallet span{color:#8e9284;font-size:10px}.wallet svg{width:17px;height:17px}.icon-button{width:36px;height:36px;display:grid;place-items:center;background:transparent;border:1px solid #dddfd2;border-radius:50%}.icon-button:hover{background:#e8ebdd}.icon-button svg{width:17px;height:17px}.page-heading{display:flex;justify-content:space-between;align-items:center;padding:34px 0 29px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:8px;letter-spacing:1.8px;font-weight:600;color:#7b866f}.eyebrow>span{width:6px;height:6px;border-radius:50%;background:#80966a}h1{font-size:clamp(35px,3.5vw,55px);font-weight:800;line-height:1.1;letter-spacing:-2.6px;margin:12px 0 10px}.title-star{display:inline-block;color:#bfa14d;font-size:34px;vertical-align:middle;margin-left:17px;transform:rotate(12deg)}.page-heading p{font-size:12px;color:#828779;margin:0;line-height:1.7}.day-tag{text-align:center;border:1px solid #d8ddcd;border-radius:8px;padding:12px 18px;transform:rotate(4deg);font-size:8px;letter-spacing:2px;color:#748165;margin-left:20px}.day-tag b{display:block;font-size:25px;color:#40563f;letter-spacing:-1px;margin:4px 0}.day-tag span{font-size:8px;letter-spacing:0}.lobby-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:26px}.chapter-card{background:#e8ecdc;border:1px solid #d8dfc9;border-radius:15px;position:relative;overflow:hidden;isolation:isolate}.chapter-top{display:flex;justify-content:space-between;padding:22px 26px 0}.chapter-number{font-size:9px;letter-spacing:1.4px;font-weight:650}.chapter-status{font-size:8px;letter-spacing:1px;display:flex;align-items:center;gap:6px;color:#61764d}.chapter-status>span{width:5px;height:5px;background:#7c9c60;border-radius:50%}.chapter-title{padding:18px 26px 0;position:relative;z-index:1;pointer-events:none}.chapter-title h2{font-size:34px;line-height:1.1;letter-spacing:-1.2px;margin:0 0 10px;font-weight:750}.chapter-title p{font-size:10px;color:#7d866e;margin:0}.chapter-art{height:275px;position:relative;margin-top:-17px}.chapter-art canvas{width:100%;height:100%;object-fit:contain}.art-note{font-family:'Marck Script',cursive;font-size:19px;position:absolute;right:22px;top:29px;color:#7b8d63;transform:rotate(8deg);line-height:1.05}.art-note svg{width:50px;height:45px;margin:5px 0 0 22px;stroke-width:1.5}.chapter-bottom{padding:6px 26px 19px;background:linear-gradient(transparent,#e8ecdc 28%);position:relative;z-index:2}.chapter-facts{display:flex;gap:21px;margin-bottom:18px;color:#718064;font-size:9px}.chapter-facts span{display:flex;align-items:center;gap:6px}.chapter-facts svg{width:14px;height:14px}.primary{display:flex;justify-content:center;align-items:center;gap:12px;background:var(--green);color:white;min-height:54px;border-radius:9px;padding:14px 23px;font-size:13px;font-weight:600;box-shadow:0 4px 0 #173a2e}.primary:hover{background:#30604e;box-shadow:0 5px 0 #173a2e}.primary>span{margin-left:auto}.primary>i svg{width:17px;height:17px}.chapter-bottom .primary{width:100%}.start-hint{text-align:center;font-size:9px;color:#88917b;margin:14px 0 0}.notice{display:flex;align-items:flex-start;position:relative;gap:13px;padding:21px 17px;margin-top:18px;border:1px solid #e5e2d4;border-radius:10px;background:#f5f1e5}.notice-icon{background:#eee4c8;color:#a58a48;border-radius:8px;padding:9px}.notice-icon svg{width:20px;height:20px}.notice b{font-size:11px;font-weight:600}.notice p{font-size:10px;line-height:1.7;color:#8b8979;margin:6px 0 10px}.notice-sign{position:absolute;bottom:10px;right:17px;font-family:'Marck Script',cursive;color:#9a987e;font-size:15px}.section-caption{display:flex;align-items:center;justify-content:space-between;margin:1px 0 16px}.section-caption h2{font-size:14px;letter-spacing:-.3px;margin:0;font-weight:600}.section-caption>span{font-size:9px;color:#929985}.hero-choices{display:flex;gap:8px}.hero-choice{border:1px solid #e0e2d5;background:#efefe5;border-radius:9px;flex:1;min-width:0;height:91px;position:relative;overflow:hidden;padding:0;isolation:isolate}.hero-choice.selected{border:2px solid var(--green);background:#e4e8d8}.hero-choice:hover{background:#e1e5d6}.hero-choice .hero-sprite{width:88px;height:130px;position:absolute;left:50%;top:5px;transform:translateX(-50%)}.hero-choice .choice-check{position:absolute;right:4px;bottom:4px;background:var(--green);color:#fff;border-radius:50%;width:17px;height:17px;font-size:10px;display:grid;place-items:center;z-index:2}.hero-sprite{background-image:url('assets/teachers.png');background-repeat:no-repeat;background-size:300% 100%;background-position:var(--hero-pos) center;aspect-ratio: .665;display:block}.hero-detail{margin-top:12px;border:1px solid #dfdfd2;border-radius:12px;overflow:hidden;background:#faf9f3}.hero-stage{position:relative;height:228px;background:radial-gradient(ellipse at 50% 76%,#dcdacb 0%,#efeee3 47%,#f4f2e9 80%);overflow:hidden}.hero-stage:before{content:'';position:absolute;left:13%;right:13%;height:60px;border:1px solid #dedfcf;border-radius:50%;bottom:11px;transform:rotate(-5deg)}.hero-stage:after{content:'';position:absolute;width:60%;height:18px;background:#b8b6a547;filter:blur(9px);left:20%;bottom:16px;border-radius:50%;z-index:0}.hero-stage .hero-sprite{height:235px;width:156px;margin:auto;position:relative;top:0;z-index:1}.hero-stage .hero-id{position:absolute;left:17px;top:15px;font-size:8px;letter-spacing:1px;color:#aaa99a}.hero-stage .hero-subject-icon{position:absolute;right:17px;top:15px;color:#a7ac92}.hero-info{padding:18px}.hero-role{font-size:7px;letter-spacing:1.3px;color:#989c8a;font-weight:600}.hero-info h3{font-size:19px;letter-spacing:-.6px;margin:7px 0}.hero-info>p{font-size:10px;line-height:1.8;color:#8a8d7c;margin:0 0 14px}.passive{display:flex;align-items:flex-start;gap:9px;border-top:1px solid #e7e6da;padding-top:13px}.passive>i{padding:7px;background:var(--hero-pale);color:var(--hero-color);border-radius:7px}.passive>i svg{width:17px;height:17px}.passive b{font-size:10px}.passive p{font-size:9px;color:#959684;line-height:1.6;margin:4px 0 0}.mini-tip{display:flex;align-items:center;gap:11px;color:#969a87;font-size:9px;line-height:1.8;padding:15px 7px}.mini-tip svg{width:17px;height:17px}footer{display:flex;justify-content:space-between;gap:20px;margin:29px 0 23px;padding-top:19px;border-top:1px solid var(--line);font-size:7px;letter-spacing:1.5px;color:#9a9d8c}footer>span{letter-spacing:0;font-size:9px}.panel-heading{padding:34px 0 24px}.panel-heading h1{font-size:36px}.panel-heading p{color:#838978;line-height:1.7}.gear-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.gear-card{background:#eeeee2;border:1px solid #dfe2d2;padding:25px;border-radius:12px}.gear-art{width:85px;height:85px;border-radius:20px;background:#e0e7d4;color:#647a4f;display:grid;place-items:center;margin-bottom:25px}.gear-art svg{width:45px;height:45px}.gear-card h2{font-size:18px}.gear-card p{font-size:12px;color:#89917b;line-height:1.7}.gear-card .primary{width:100%;margin-top:24px;min-height:44px;font-size:11px}.gear-level{font-size:10px;font-weight:600;color:#8a9d72;letter-spacing:1px}.info-note{padding:20px;background:#eeecdf;border-radius:9px;font-size:12px;line-height:1.8;color:#7b826f;margin-top:24px}.tabs{display:flex;gap:8px;margin:0 0 22px;flex-wrap:wrap}.tab{padding:10px 15px;border:1px solid #dfe2d2;background:#eeeee2;border-radius:7px;font-size:12px}.tab.active{background:var(--green);color:white;border-color:var(--green)}.catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-card{display:flex;align-items:flex-start;gap:15px;border:1px solid #e0e2d4;border-radius:10px;padding:18px;background:#faf9f3}.catalog-icon{padding:12px;border-radius:10px;background:#e7eadb;color:#708858}.catalog-card h3{font-size:13px;margin:0 0 7px}.catalog-card p{font-size:11px;color:#89907b;line-height:1.7;margin:0}.catalog-card small{display:block;color:#ad9458;margin-top:8px;font-size:9px}.empty-state{text-align:center;padding:65px 20px;background:#efefe5;border:1px dashed #d3d8c5;border-radius:14px}.empty-state>svg{margin:auto;width:42px;height:42px;color:#98a485}.empty-state h2{font-size:21px}.empty-state p{line-height:1.8;color:#879078;font-size:12px}.empty-state .primary{margin:25px auto 0;width:max-content}.record-row{display:grid;grid-template-columns:35px 1fr 90px 70px;gap:15px;align-items:center;border-bottom:1px solid #e0e3d5;padding:20px 5px}.record-row>span{color:#8d997f}.record-row b{font-size:13px}.record-row small{display:block;font-size:10px;color:#929882;margin-top:6px}.record-score{color:#58714c;font-size:19px;font-weight:700}.record-room{font-size:10px;text-align:right}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#15291fd1;backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px;padding-top:max(20px,var(--safe-top));padding-bottom:max(20px,var(--safe-bottom))}.modal-card{background:var(--paper);border:1px solid #d6ddc8;border-radius:18px;padding:32px;width:min(680px,100%);max-height:90dvh;overflow:auto;box-shadow:0 25px 100px #0004}.modal-card h2{font-size:29px;letter-spacing:-1px;margin:9px 0 12px}.modal-card>p{color:#7c8870;line-height:1.8;font-size:12px}.modal-card .eyebrow{color:#9d9e7f}.modal-actions{display:flex;gap:12px;margin-top:23px}.modal-actions button{flex:1}.secondary{background:#e7e9dd;border:1px solid #d9decd;border-radius:9px;padding:14px 20px;min-height:49px;font-weight:550;font-size:12px}.secondary:hover{background:#dde3ce}.upgrade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0 0}.upgrade-card{text-align:left;background:#eeefe4;border:1px solid #d9decc;border-radius:11px;padding:18px 15px;display:flex;flex-direction:column;min-height:210px}.upgrade-card:hover{border-color:#738d58;background:#e4ead7;transform:translateY(-3px)}.upgrade-card>i{width:44px;height:44px;background:#dee7cf;border-radius:10px;color:#668746;margin-bottom:18px}.upgrade-card small{font-size:7px;letter-spacing:1px;color:#96a180}.upgrade-card h3{font-size:14px;line-height:1.4;margin:7px 0 10px}.upgrade-card p{font-size:11px;color:#7c8770;line-height:1.7;margin:0}.upgrade-card>span{font-size:10px;margin-top:auto;padding-top:18px;color:#627c4c}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:24px 0}.result-stats>div{background:#e9ecdf;padding:17px 10px;text-align:center;border-radius:9px}.result-stats strong{display:block;font-size:27px}.result-stats span{display:block;font-size:9px;color:#8b947d;margin-top:7px}.result-quote{font-family:'Marck Script',cursive;font-size:25px!important;color:#6f8460!important}.help-steps{display:grid;gap:14px;margin-top:25px}.help-step{display:flex;gap:15px;align-items:center}.help-step>i{width:42px;height:42px;background:#e4e9d8;border-radius:9px;color:#6c8555}.help-step b{font-size:12px}.help-step p{font-size:11px;line-height:1.7;color:#89927b;margin:4px 0}.toast-visible{opacity:1!important;transform:translate(-50%,0)!important}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);z-index:150;background:#254b3f;color:white;padding:14px 23px;border-radius:9px;box-shadow:0 6px 20px #0002;opacity:0;pointer-events:none;transition:all .2s;font-size:12px;text-align:center;max-width:90vw}
#gameScreen{position:fixed;inset:0;background:#15291f;z-index:20;display:flex;justify-content:center;padding:var(--safe-top) 0 var(--safe-bottom);touch-action:none;overscroll-behavior:none}.game-shell{display:flex;flex-direction:column;width:min(100%,540px);height:100%;background:#f0f0e3;box-shadow:0 0 80px #0006}.game-header{display:flex;gap:13px;align-items:center;padding:12px 18px 6px;flex-shrink:0}.game-header>div:nth-child(2){flex:1}.game-header span{display:block;font-size:8px;letter-spacing:1.5px;color:#929881;margin-bottom:5px}.game-header b{font-size:12px;font-weight:600}.run-wallet{display:flex;gap:7px;align-items:center}.run-wallet svg{width:15px;color:#b2974d}.health-line{display:flex;align-items:center;gap:8px;margin:5px 19px 11px;font-size:10px;flex-shrink:0}.health-line>i{color:#d1876d}.health-line>i svg{width:15px;height:15px}.health-track{flex:1;height:7px;background:#d9dfca;border-radius:5px;overflow:hidden}.health-track>div{height:100%;width:100%;background:#729762;border-radius:5px;transition:width .12s}.health-line>b{font-size:9px;color:#869375;min-width:55px;text-align:right}#shieldStatus{color:#7badc5}.arena-wrap{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#677b62}.arena-wrap canvas{height:100%;width:100%;object-fit:contain;touch-action:none;user-select:none}.room-banner{position:absolute;left:0;right:0;top:32%;text-align:center;pointer-events:none;color:white;background:#234d40ed;padding:22px 15px;opacity:0;transform:translateY(10px);transition:all .4s;font-size:20px;font-weight:650;letter-spacing:-.5px}.room-banner.visible{opacity:1;transform:translateY(0)}.room-banner small{display:block;font-size:10px;font-weight:400;margin-top:8px;letter-spacing:1px;color:#cbdbb9}.game-bottom{min-height:58px;padding:9px 16px 10px;display:flex;flex-direction:column;gap:6px;align-items:center;flex-shrink:0}.game-bottom>span{font-size:9px;color:#929a83}.build-slots{display:flex;gap:5px;min-height:22px;justify-content:center;flex-wrap:wrap}.build-slot{width:25px;height:25px;background:#dce5ce;border:1px solid #cbd9b8;border-radius:6px;display:grid;place-items:center;color:#6e8952}.build-slot svg{width:15px;height:15px}.build-empty{font-size:9px;color:#a0a78f;padding:7px}.joystick{position:absolute;width:96px;height:96px;border:2px solid #ffffff5c;border-radius:50%;background:#ffffff18;pointer-events:none;transform:translate(-50%,-50%);z-index:4}.joystick>span{position:absolute;left:27px;top:27px;width:38px;height:38px;border-radius:50%;background:#fff7;border:1px solid #fff9}.boss-hud{position:absolute;top:10px;left:20%;right:20%;text-align:center;pointer-events:none}.boss-hud>span{font-size:8px;letter-spacing:1px;color:#744a43;font-weight:700}.boss-hud>div{height:6px;background:#824c433d;border-radius:5px;margin-top:4px;overflow:hidden}.boss-hud i{height:100%;background:#bd735f;display:block;width:100%}body.playing{overflow:hidden}
@media(min-width:1500px){.main{padding:0 60px}.lobby-grid{grid-template-columns:minmax(0,1fr) 340px;gap:34px}.chapter-art{height:330px}.hero-stage{height:270px}.hero-stage .hero-sprite{height:270px;width:180px}.hero-choice{height:103px}.hero-choice .hero-sprite{width:103px;height:153px}.chapter-title h2{font-size:40px}}
@media(max-width:1190px){.sidebar{width:185px;padding:30px 14px}.brand{font-size:19px;gap:8px}.brand-mark{width:39px;height:46px}.main{margin-left:185px;width:calc(100% - 185px);padding:0 26px}.lobby-grid{grid-template-columns:minmax(0,1fr) 245px;gap:18px}.chapter-title h2{font-size:29px}.art-note{font-size:16px;right:12px}.chapter-art{height:254px}.chapter-top,.chapter-bottom{padding-left:20px;padding-right:20px}.hero-stage{height:204px}.hero-stage .hero-sprite{height:211px;width:141px}.hero-info{padding:15px}.hero-info h3{font-size:17px}.hero-choice{height:80px}.hero-choice .hero-sprite{width:79px;height:117px}.chapter-facts{gap:10px;font-size:8px}.day-tag{display:none}.chapter-title{padding-left:20px}.gear-grid{gap:12px}.gear-card{padding:18px}}
@media(max-width:960px){.sidebar{width:76px;padding:28px 12px}.brand{margin:0;justify-content:center}.brand>span:last-child,.school-label,.sidebar-bottom,.nav-item .nav-dot{display:none}.sidebar nav{margin-top:43px}.nav-item{font-size:0;padding:15px;justify-content:center}.nav-item i{margin:0}.nav-item svg{width:21px;height:21px}.main{margin-left:76px;width:calc(100% - 76px);padding:0 23px}.page-heading p{font-size:11px}.eyebrow{font-size:7px;letter-spacing:1.2px}.lobby-grid{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.chapter-facts span:last-child{display:none}.notice{padding:16px 12px}.notice p{font-size:9px}}
@media(max-width:700px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:calc(66px + var(--safe-bottom));padding:5px 7px var(--safe-bottom);border:0;border-top:1px solid #dbdfcf;background:#f3f2e9f5;backdrop-filter:blur(12px);z-index:10}.brand{display:none}.sidebar nav{margin:0;display:flex;gap:4px;justify-content:space-around}.nav-item{flex:1;padding:9px 3px 6px;display:flex;flex-direction:column;gap:5px;font-size:8px;border-radius:8px}.nav-item.active{background:#e2e8d6;color:var(--green)}.nav-item svg{width:19px;height:19px}.main{margin:0;width:100%;padding:var(--safe-top) 18px 78px}.topbar{height:62px}.breadcrumb{font-size:10px}.breadcrumb>span,.breadcrumb>b{display:none}.top-actions{gap:8px}.wallet{gap:5px;margin-right:0}.wallet span{display:none}.icon-button{width:32px;height:32px}.page-heading{padding:25px 0 22px}.eyebrow{font-size:6.5px;letter-spacing:1px}h1{font-size:39px;letter-spacing:-1.9px;margin-top:10px}.title-star{font-size:25px;margin-left:10px}.page-heading p{font-size:10px}.lobby-grid{display:flex;flex-direction:column;gap:19px}.teachers-panel{order:-1;display:flex;flex-direction:column}.section-caption{margin-bottom:10px}.section-caption h2{font-size:12px}.hero-choices{gap:9px}.hero-choice{height:83px}.hero-choice .hero-sprite{width:93px;height:140px;top:4px}.hero-choice:after{content:attr(data-subject);position:absolute;bottom:0;left:0;right:0;padding:17px 0 5px;background:linear-gradient(transparent,#e5e7daf2 60%);color:#3c5143;font-size:9px;font-weight:600;z-index:1}.hero-detail{margin-top:9px;display:flex;min-height:82px;overflow:visible;background:#faf9f3}.hero-stage{display:none}.hero-info{padding:12px 13px;width:100%;position:relative}.hero-info h3{font-size:15px;margin:0 0 6px}.hero-role,.hero-info>p{display:none}.passive{padding:0;border:0;gap:7px}.passive>i{padding:4px}.passive>i svg{width:13px;height:13px}.passive b{font-size:9px}.passive p{font-size:8px;line-height:1.6;margin-top:2px}.mini-tip{display:none}.chapter-top{padding-top:17px}.chapter-title{padding-top:15px}.chapter-title h2{font-size:30px}.chapter-title p{font-size:9px}.chapter-art{height:220px;margin-top:-15px}.art-note{top:35px;font-size:16px}.chapter-bottom{padding:3px 18px 17px}.chapter-facts{margin-bottom:13px;font-size:9px}.chapter-facts span:last-child{display:flex}.primary{font-size:12px}.notice{margin-top:14px}.notice p{font-size:10px}.notice-sign{font-size:14px}footer{margin:24px 0 14px;font-size:6px;letter-spacing:.8px;line-height:1.8}footer>span{font-size:8px;max-width:95px;text-align:right}.gear-grid{grid-template-columns:1fr}.gear-card{display:grid;grid-template-columns:65px 1fr;gap:0 16px}.gear-art{width:62px;height:62px;grid-row:1/4;margin:0}.gear-art svg{width:33px;height:33px}.gear-level{font-size:8px}.gear-card h2{font-size:15px;margin:5px 0}.gear-card p{font-size:11px;margin:0}.gear-card .primary{grid-column:1/3;margin-top:17px}.panel-heading{padding:25px 0 19px}.panel-heading h1{font-size:32px}.panel-heading p{font-size:11px}.catalog{grid-template-columns:1fr}.catalog-card{padding:14px}.tabs{gap:5px}.tab{font-size:10px;padding:10px}.modal-card{padding:24px 20px}.modal-card h2{font-size:25px}.upgrade-grid{grid-template-columns:1fr;gap:9px;margin-top:20px}.upgrade-card{min-height:0;padding:13px;display:grid;grid-template-columns:40px 1fr;gap:0 12px}.upgrade-card>i{grid-row:1/5;width:38px;height:38px;margin:0}.upgrade-card small{font-size:6px}.upgrade-card h3{font-size:12px;margin:4px 0}.upgrade-card p{font-size:10px;line-height:1.5}.upgrade-card>span{display:none}.modal-actions{gap:8px}.modal-actions .primary,.modal-actions .secondary{font-size:11px;padding:12px;min-height:46px}.result-stats strong{font-size:24px}.record-row{grid-template-columns:22px 1fr 58px 49px;gap:8px}.record-row b{font-size:11px}.record-score{font-size:17px}.game-shell{width:100%;max-width:540px}.game-header{padding-top:9px}.game-header b{font-size:11px}.game-bottom{min-height:62px}.info-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.records-tabs{display:flex;gap:6px;margin:4px 0 16px}.records-tabs .tab{flex:1;background:#eeece0;color:#697363;padding:11px;border-radius:9px;font-size:11px;font-weight:600;letter-spacing:.4px}.records-tabs .tab.active{background:var(--green);color:#fff}
.lb-wrap{margin-top:2px}.lb-state{display:grid;place-items:center;gap:10px;padding:40px 0;color:var(--muted);font-size:12px;text-align:center}
.lb-table{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fffdf6}.lb-row{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid var(--line);font-size:12px}.lb-row:last-child{border-bottom:0}
.lb-rank{width:30px;font-weight:800;color:#a2a49a}.lb-rank.lb-top1{color:#c8902e}.lb-rank.lb-top2{color:#8a8f97}.lb-rank.lb-top3{color:#a9714a}
.lb-nick{flex:1;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lb-you{margin-left:7px;font-style:normal;font-size:8px;font-weight:700;letter-spacing:.5px;background:var(--green);color:#fff;padding:2px 6px;border-radius:9px;vertical-align:1px}
.lb-score{font-weight:800;font-size:13px}.lb-room,.lb-time{color:var(--muted);font-size:11px;min-width:34px;text-align:right}.lb-time{min-width:38px}
.lb-row.lb-self{background:#eef3e4;box-shadow:inset 3px 0 0 var(--green)}
.nick-input{width:100%;margin-top:14px;padding:13px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:15px;background:#fff;color:var(--ink)}.nick-input:focus{outline:3px solid #e2ae36;outline-offset:2px;border-color:var(--green)}
.spin{width:14px;height:14px;border:2px solid #cfd6bd;border-top-color:var(--green);border-radius:50%;display:inline-block;animation:lbspin .8s linear infinite}@keyframes lbspin{to{transform:rotate(360deg)}}
@media(max-width:700px){.lb-row{flex-wrap:wrap;gap:4px 10px;padding:10px 12px}.lb-time{display:none}}
