:root{--bg:#111a1b;--panel:#182223;--panel2:#1e2a2a;--border:#2c3836;--text:#eeeae0;--muted:#94a49e;--gold:#d6b878;--green:#97b59b;--light:#dbe2ce;--dark:#56766a;--red:#df8c7c;--board:min(64vh,600px)}*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5;background:radial-gradient(ellipse at 73% 16%,#27352d33 0,transparent 55%),var(--bg)}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{transition:background .16s,transform .16s,border-color .16s}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit;text-decoration:none}svg{display:block;width:100%;height:100%}.sidebar{position:fixed;inset:0 auto 0 0;width:214px;padding:34px 20px 20px;border-right:1px solid var(--border);background:#111b1c;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;font-family:Georgia,serif;font-size:26px;letter-spacing:4px;line-height:1.15}.brand-mark{width:39px;height:39px;color:var(--gold)}.brand-sub{display:block;font-family:Arial,sans-serif;font-size:8px;letter-spacing:4.1px;margin-top:6px;color:var(--muted)}.nav-caption{font-size:8px;letter-spacing:1.8px;color:#657c73;margin:53px 10px 15px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;text-align:left;gap:13px;padding:13px 12px;width:100%;border-radius:7px;background:transparent;color:#9eada6;font-size:13px;white-space:nowrap}.nav-item>span[data-icon],.nav-item>svg{width:19px;height:19px;flex-shrink:0}.nav-item:hover{background:#26332d;color:var(--text)}.nav-item.active{background:#2c3a30;color:#e7d2a1;box-shadow:inset 2px 0 var(--gold)}.nav-dot{margin-left:auto;width:5px;height:5px;background:var(--gold);border-radius:50%}.sidebar-bottom{margin-top:auto}.club-note{padding:22px 10px;display:flex;gap:11px;color:#6f847b;font-size:11px;line-height:1.8}.club-note strong{font-weight:normal;color:#a5b4aa}.small-crown{width:24px;height:24px;color:#ae9566}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);padding:20px 8px 0;margin-top:10px;font-size:12px}.profile>span:nth-child(2){flex:1}.profile-dot,.local-badge i{width:5px;height:5px;border-radius:50%;background:#9cbb9d}.avatar{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#334338;color:var(--gold);font:19px Georgia,serif}.small{font-size:11px}.muted{color:var(--muted)}.profile .small{display:block;font-size:9px;margin-top:2px}.main-shell{margin-left:214px;padding:0 40px;max-width:1800px}.topbar{height:87px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{font-size:9px;letter-spacing:1.5px;color:#70887d}.breadcrumb span{margin:0 13px;color:#4c6158}.breadcrumb strong{font-weight:400;color:#becac1}.top-actions{display:flex;align-items:center;gap:15px}.local-badge{font-size:8px;letter-spacing:1.4px;color:#9cac9f;display:flex;align-items:center;gap:7px;margin-right:8px}.icon-btn{width:32px;height:32px;padding:7px;background:transparent;border:1px solid var(--border);border-radius:7px;color:#a5b5aa;display:inline-flex;align-items:center;justify-content:center}.icon-btn:hover{background:var(--panel2);color:var(--gold)}main{min-height:calc(100vh - 146px)}.footer{height:60px;display:flex;align-items:center;justify-content:space-between;color:#61746b;font-size:8px;letter-spacing:1.3px}.footer b{margin:0 10px;color:var(--gold)}.footer>span:last-child{font:italic 12px Georgia,serif;letter-spacing:.2px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2.7px;color:var(--gold);text-transform:uppercase;display:flex;gap:10px;align-items:center}.eyebrow:before{content:'';height:1px;width:21px;background:var(--gold)}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:clamp(40px,4.4vw,70px);line-height:1.07;letter-spacing:-2px}h1 em{color:var(--gold);font-weight:400}h2{font-size:30px;line-height:1.15;letter-spacing:-.5px}h3{font-size:23px;line-height:1.2}.home-hero{display:grid;grid-template-columns:1fr 1.03fr;gap:20px;align-items:center;min-height:426px;padding:30px 0 25px}.hero-copy{position:relative;z-index:2}.hero-copy h1{margin:24px 0 20px}.hero-copy>p{max-width:350px;color:var(--muted);font-size:13px;line-height:1.9}.hero-actions{display:flex;align-items:center;gap:13px;margin-top:27px}.btn{padding:12px 20px;border-radius:5px;background:var(--panel2);border:1px solid #3a4840;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:12px;line-height:1.4;font-weight:600;white-space:nowrap}.btn svg{width:17px;height:17px}.btn:hover{background:#334337}.btn-primary{background:var(--gold);color:#1a241e;border-color:var(--gold);box-shadow:0 3px 18px #d6b87812}.btn-primary:hover{background:#e4c88c;border-color:#e4c88c}.btn-ghost{background:transparent;border-color:transparent;color:#c0cec2}.btn-danger{border-color:#785448;color:#efb2a1}.text-link{background:none;color:var(--gold);font-size:11px;padding:0;display:flex;gap:8px;align-items:center}.text-link svg{width:15px;height:15px}.hero-foot{display:flex;gap:22px;color:#718a7d;font-size:9px;margin-top:23px}.hero-foot span{display:flex;align-items:center;gap:5px}.hero-foot svg{width:11px;height:11px}.hero-scene{height:365px;position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;perspective:800px}.hero-glow{position:absolute;inset:-30px;background:radial-gradient(ellipse,#8a9c6630,transparent 67%);z-index:-2}.hero-scene:after{content:'';width:280px;height:50px;position:absolute;bottom:18px;background:#0007;filter:blur(20px);border-radius:50%;z-index:-1}.decor-board{width:310px;height:310px;display:grid;grid-template-columns:repeat(8,1fr);position:absolute;transform:rotateX(57deg) rotateZ(-28deg);box-shadow:0 12px 0 #24342b,0 16px 0 #63705b,0 30px 40px #0008;border:9px solid #314335;border-radius:4px;background:#24362c;bottom:5px}.decor-board>i{background:#9cae8c}.decor-board>i.dark{background:#405e50}.hero-piece{position:absolute;filter:drop-shadow(12px 16px 7px #0007);animation:heroFloat 8s ease-in-out infinite}.hero-piece.main{width:195px;height:240px;top:12px;left:35%;z-index:3}.hero-piece.side{width:125px;height:155px;left:13%;top:116px;z-index:4;animation-delay:-3s}.hero-piece.back{width:107px;height:135px;right:5%;top:93px;z-index:2;animation-delay:-5s}.scene-label{position:absolute;right:2%;top:11px;font-size:8px;color:#a2b09c;letter-spacing:2px;writing-mode:vertical-rl;display:flex;align-items:center;gap:12px}.scene-label:before{content:'';width:1px;height:32px;background:#687d5b}.scene-chip{position:absolute;bottom:12px;right:0;font-size:9px;padding:9px 13px;border:1px solid #5e715244;background:#1c2a22e6;border-radius:5px;color:#c0cbb7;z-index:5;box-shadow:0 10px 20px #0003}.scene-chip b{color:var(--gold);margin-right:6px}.section-head{display:flex;justify-content:space-between;align-items:end;margin:7px 0 18px;gap:12px}.section-head h2{font-size:25px}.section-head p{font-size:11px;color:var(--muted);margin-top:7px}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.mode-card{background:linear-gradient(125deg,#23302a90,#192422);border:1px solid #364438;border-radius:9px;min-height:183px;padding:21px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow:hidden}.mode-card:hover{background:linear-gradient(125deg,#304334,#1d2c25);border-color:#758563;transform:translateY(-3px)}.card-icon{width:32px;height:32px;color:var(--gold);margin-bottom:15px}.mode-card h3{font-size:21px;z-index:1}.mode-card p{font-size:11px;line-height:1.7;color:var(--muted);max-width:180px;margin-top:8px;z-index:1}.card-kicker{position:absolute;right:19px;top:23px;font-size:8px;color:#7e9685;letter-spacing:1.5px}.card-arrow{position:absolute;right:19px;bottom:22px;width:21px;height:21px;color:var(--gold)}.home-bottom{display:grid;grid-template-columns:1.55fr 1fr;gap:18px;margin-top:20px}.daily-card{display:flex;gap:17px;align-items:center;padding:18px 22px;background:#1a2423;border:1px solid var(--border);border-radius:8px}.daily-icon{width:39px;height:39px;padding:8px;color:var(--gold);background:#364033;border-radius:8px;flex-shrink:0}.daily-text{flex:1}.daily-text h3{font-size:17px}.daily-text p{font-size:10px;color:var(--muted);margin-top:5px}.tiny-label{font-size:8px;letter-spacing:1.5px;color:#a7b694;margin-bottom:5px}.progress-teaser{display:flex;align-items:center;gap:17px;border:1px solid var(--border);border-radius:8px;padding:18px 22px;background:#162020}.progress-ring{height:46px;width:46px;border-radius:50%;border:3px solid #3c4b3e;display:grid;place-items:center;color:var(--gold);font:17px Georgia,serif;flex-shrink:0}.progress-teaser h3{font-size:17px}.progress-teaser p{font-size:10px;color:var(--muted);margin-top:5px}.page-intro{padding:33px 0 26px;display:flex;align-items:end;justify-content:space-between;gap:20px}.page-intro .eyebrow{margin-bottom:15px}.page-intro h1{font-size:43px;letter-spacing:-1px}.page-intro p{color:var(--muted);font-size:12px;margin-top:12px;max-width:540px}.stat-chip{color:var(--gold);border:1px solid #48563e;background:#253025;padding:10px 15px;border-radius:6px;white-space:nowrap;font-size:11px}.setup-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;padding:3px 0 25px}.setup-visual{background:radial-gradient(ellipse at 50% 30%,#354934,#172322 72%);border:1px solid var(--border);border-radius:10px;min-height:420px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;overflow:hidden}.setup-visual>.showpiece{width:220px;height:240px;filter:drop-shadow(0 15px 10px #0005)}.setup-visual h2{margin:14px 0 8px}.setup-visual p{color:var(--muted);font-size:12px}.setup-panel,.panel{background:var(--panel);border:1px solid var(--border);border-radius:9px;padding:25px}.field-label{font-size:9px;letter-spacing:1.5px;color:#afbeaf;text-transform:uppercase;margin-bottom:10px;display:block}.difficulty-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.choice{background:#1c2927;border:1px solid #36473d;border-radius:5px;padding:12px 8px;color:#9fb09f;font-size:11px;text-align:center}.choice.selected{background:#344333;border-color:var(--gold);color:#efdbac}.choice small{display:block;font-size:8px;color:#7f9786;letter-spacing:1.3px;margin-top:5px}.field-group{margin-top:22px}.segmented{display:flex;gap:7px}.segmented .choice{flex:1}.setup-panel>.btn{width:100%;margin-top:26px}.level-note{font-size:11px;color:var(--muted);min-height:34px;margin-top:12px;line-height:1.6}.switch-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--border)}.switch-line span strong{display:block;font-size:12px;font-weight:500}.switch-line span small{color:var(--muted);font-size:10px}.switch{width:37px;height:21px;border-radius:20px;background:#3c4841;padding:3px;display:flex;align-items:center;flex-shrink:0}.switch:after{content:'';height:15px;width:15px;background:#9fae9f;border-radius:50%;transition:.2s}.switch.on{background:var(--gold)}.switch.on:after{background:#243122;transform:translateX(16px)}.game-top{display:flex;align-items:center;justify-content:space-between;padding:22px 0 18px;gap:15px}.game-top h2{font-size:26px}.game-top p{font-size:10px;color:var(--muted);margin-top:5px}.game-layout{display:grid;grid-template-columns:minmax(260px,1fr) 280px;gap:27px;align-items:start;max-width:1100px;margin:auto}.board-area{max-width:650px;min-width:0;width:100%;margin:auto}.player-strip{display:flex;align-items:center;gap:10px;height:53px}.player-strip .player-meta{flex:1}.player-strip strong{font-size:12px;font-weight:500}.player-strip small{display:block;font-size:9px;color:var(--muted)}.player-strip .avatar{border-radius:8px;height:35px;width:35px}.player-strip .avatar svg{height:29px;width:29px}.player-strip.active .avatar{outline:1px solid var(--gold)}.clock{font:18px Georgia,serif;letter-spacing:1px;background:#25332e;border:1px solid #39483c;padding:5px 12px;border-radius:4px;min-width:72px;text-align:center}.player-strip.active .clock{background:#d7d6bd;color:#1f2c25;border-color:#d7d6bd}.board-shell{padding:17px 17px 20px;border-radius:7px;background:linear-gradient(145deg,#40533e,#253c30);box-shadow:0 12px 40px #0005,0 3px 0 #19271f;position:relative;width:min(100%,var(--board));margin:auto}.chessboard{aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);border:1px solid #223d2c;box-shadow:0 2px 8px #0005;touch-action:manipulation;user-select:none}.square{position:relative;background:var(--light);padding:0;border-radius:0;aspect-ratio:1;display:grid;place-items:center;isolation:isolate;transition:filter .14s;min-width:0;overflow:hidden}.square.dark{background:var(--dark)}.square:hover{filter:brightness(1.08)}.square:active{transform:none!important}.piece{width:93%;height:93%;position:relative;z-index:2;pointer-events:none;filter:drop-shadow(0 2px 1px #0004)}.square.selected:before,.square.last:before,.square.hinted:before,.square.checked:before{content:'';position:absolute;inset:0;z-index:0;background:#e3c65388}.square.last:before{background:#d3c16d60}.square.hinted:before{background:#edbe4caa;box-shadow:inset 0 0 0 3px #fce5a0}.square.checked:before{background:radial-gradient(#d7483bcb,#e37c6277)}.square.target:after{content:'';width:24%;height:24%;border-radius:50%;background:#1d443b55;z-index:3;position:absolute;pointer-events:none}.square.target.has-piece:after{width:88%;height:88%;border:5px solid #183c3977;background:transparent}.square .coord{position:absolute;z-index:4;font:8px Arial,sans-serif;pointer-events:none;font-weight:600;color:#486854}.square.dark .coord{color:#d9e1cc}.coord.file{bottom:2px;right:4px}.coord.rank{top:2px;left:4px}.board-under{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:#7d9586;font-size:9px;min-height:20px}.board-tools{display:flex;gap:6px}.board-tools .icon-btn{height:27px;width:29px;padding:6px}.board-status{display:flex;gap:7px;align-items:center}.board-status i{height:5px;width:5px;border-radius:50%;background:var(--gold)}.game-sidebar{padding-top:53px;display:flex;flex-direction:column;gap:14px}.game-sidebar .panel{padding:19px}.panel-label{font-size:9px;letter-spacing:1.5px;color:#9aad9b;display:flex;align-items:center;gap:7px;margin-bottom:13px}.panel-label svg{height:15px;width:15px;color:var(--gold)}.opponent-title{font:24px Georgia,serif;margin-bottom:7px}.opponent-copy{color:var(--muted);font-size:11px;line-height:1.7}.difficulty-bars{display:flex;gap:4px;margin-top:14px}.difficulty-bars i{height:4px;width:26px;background:#344339;border-radius:3px}.difficulty-bars i.filled{background:var(--gold)}.turn-indicator{font-size:11px;color:var(--gold);margin-top:14px;padding-top:11px;border-top:1px solid var(--border)}.move-list{height:158px;overflow:auto;scrollbar-width:thin;scrollbar-color:#485a48 transparent;font-family:monospace;font-size:12px}.move-row{display:grid;grid-template-columns:25px 1fr 1fr;gap:6px;padding:6px 8px;border-radius:3px}.move-row:nth-child(even){background:#21302a}.move-row>span:first-child{color:#667f6e}.move-row>span:last-child{color:#b8c9b6}.empty-moves{color:#748b7e;font:11px Arial,sans-serif;text-align:center;padding:35px 10px;line-height:1.8}.game-actions{display:flex;gap:7px;margin-top:13px}.game-actions .btn{flex:1;font-size:10px;padding:9px 7px}.game-actions .btn svg{height:13px;width:13px}.coach-box{background:linear-gradient(110deg,#2d3c2c,#233026)!important;border-color:#4c5a3e!important}.coach-box p{font-size:11px;color:#b7c6af;line-height:1.8}.lesson-copy{font-size:13px;line-height:1.8;color:#becabc;margin:12px 0 18px}.lesson-badge{font-size:9px;color:var(--gold);letter-spacing:2px;margin-bottom:12px}.lesson-success{color:#c9dfab;font-size:12px;line-height:1.8;padding:12px;border:1px solid #597247;background:#34472e;border-radius:5px;margin:10px 0}.lesson-error{font-size:11px;color:#edb58b;padding:9px 0}.lesson-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.lesson-actions .btn{flex:1;padding:10px 12px}.course-progress{height:3px;background:#324235;overflow:hidden;border-radius:5px;margin:18px 0 0}.course-progress span{display:block;height:100%;background:var(--gold)}.academy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding-bottom:24px}.lesson-card{border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:21px 18px;text-align:left;position:relative;min-height:178px}.lesson-card:hover{border-color:#788a5b;background:#223025;transform:translateY(-2px)}.lesson-card .lesson-symbol{width:49px;height:49px;margin:10px 0 13px}.lesson-number{position:absolute;right:17px;top:16px;color:#6b826f;font-size:10px;letter-spacing:1px}.lesson-card.completed .lesson-number{color:var(--gold)}.lesson-card h3{font-size:18px;margin-bottom:6px}.lesson-card p{color:var(--muted);font-size:10px}.tag{font-size:8px;text-transform:uppercase;letter-spacing:1.4px;color:var(--gold)}.academy-banner{display:flex;gap:22px;align-items:center;padding:21px 26px;background:linear-gradient(110deg,#2e3d2e,#1d2b23);border:1px solid #495a3f;border-radius:8px;margin-bottom:24px}.academy-banner>span{width:37px;height:37px;color:var(--gold);flex-shrink:0}.academy-banner h3{font-size:21px;margin-bottom:6px}.academy-banner p{font-size:11px;color:#aaba9f}.academy-banner .btn{margin-left:auto}.cups{display:grid;grid-template-columns:repeat(3,1fr);gap:19px}.cup{background:linear-gradient(150deg,#26352b,#182322 75%);border:1px solid #43513d;border-radius:10px;overflow:hidden;padding:29px 25px;text-align:center;position:relative}.cup.silver{border-color:#4d5e60;background:linear-gradient(150deg,#2c3c3d,#182322 75%)}.cup.gold{border-color:#766541;background:linear-gradient(150deg,#423e2b,#182322 75%)}.cup>.trophy-art{height:95px;width:95px;margin:10px auto 22px;color:#ba8b66;filter:drop-shadow(0 7px 15px #ba8b6625)}.cup.silver>.trophy-art{color:#bdcecb}.cup.gold>.trophy-art{color:var(--gold)}.cup h3{font-size:27px;margin-bottom:12px}.cup>p{font-size:11px;color:var(--muted);line-height:1.8;min-height:42px}.cup-meta{padding:19px 0;margin-top:18px;border-top:1px solid var(--border);display:flex;justify-content:space-between;font-size:9px;color:#9bac98}.cup .btn{width:100%}.cup .tag{position:absolute;top:16px;right:17px;font-size:7px}.tournament-rules{display:flex;gap:25px;justify-content:center;flex-wrap:wrap;font-size:10px;color:var(--muted);margin:26px 0}.tournament-rules span{display:flex;gap:6px;align-items:center}.tournament-rules svg{height:13px;width:13px;color:var(--gold)}.round-track{display:flex;align-items:center;justify-content:space-between;margin:19px 0 23px;position:relative;gap:8px}.round-step{flex:1;background:#243229;padding:12px 6px;text-align:center;border:1px solid #40533c;border-radius:5px;font-size:10px;color:#98ad94}.round-step.current{border-color:var(--gold);color:var(--gold);background:#3b3f29}.round-step.won{color:#bdddab;border-color:#7a9a65}.round-step small{display:block;font-size:8px;margin-bottom:4px;color:#778c74}.modal-overlay{position:fixed;inset:0;background:#060e10c9;backdrop-filter:blur(8px);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;animation:fadeIn .15s}.modal{width:min(100%,450px);background:linear-gradient(145deg,#243127,#152120);border:1px solid #5f6b4b;box-shadow:0 30px 100px #0008;border-radius:13px;padding:32px;position:relative;max-height:calc(100dvh - 40px);overflow:auto}.modal .close-modal{position:absolute;top:13px;right:13px;border:none}.modal h2{margin:12px 0 13px;font-size:32px}.modal p{color:#a7b9a5;font-size:12px;line-height:1.8}.modal-actions{display:flex;gap:10px;margin-top:25px}.modal-actions .btn{flex:1}.modal-emblem{width:62px;height:62px;color:var(--gold);margin-bottom:15px}.result-modal{text-align:center}.result-modal .modal-emblem{margin:4px auto 22px}.result-score{font:37px Georgia,serif;letter-spacing:8px;color:var(--gold);padding:12px 0}.promotion-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:20px}.promotion-choices button{padding:10px 4px;background:#374934;border:1px solid #607650;border-radius:7px;font-size:9px;color:#c6d5bb}.promotion-choices svg{height:65px;margin-bottom:6px}.promotion-choices button:hover{border-color:var(--gold)}#toast{position:fixed;bottom:24px;left:calc(50% + 80px);transform:translate(-50%,20px);background:#d5c79f;color:#253023;padding:11px 20px;font-size:12px;border-radius:7px;box-shadow:0 8px 30px #0006;opacity:0;pointer-events:none;z-index:200;transition:.2s;max-width:80vw;text-align:center}#toast.show{transform:translate(-50%,0);opacity:1}.captured{height:17px;display:flex;align-items:center;gap:0;color:#a4b79c;font-size:10px}.captured svg{height:18px;width:16px}.captured b{font-weight:400;margin-left:4px}.board-pause{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#13211ad9;z-index:20;border-radius:8px;color:var(--gold);font:22px Georgia,serif}.lesson-board-title{color:#91a58d;font-size:10px;letter-spacing:1px;display:flex;align-items:center;gap:9px}.lesson-board-title svg{height:17px;width:17px;color:var(--gold)}.puzzle-grid{grid-template-columns:repeat(4,1fr)}.puzzle-card{min-height:165px}.puzzle-card .card-icon{margin:13px 0 17px}.storage-note{margin:18px 0;color:#788f7e;font-size:10px}.move-animate{animation:piecePop .22s ease-out}@keyframes piecePop{from{transform:scale(.8);opacity:.5}to{transform:scale(1);opacity:1}}@keyframes heroFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-7px) rotate(0)}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@media(min-width:1500px){.main-shell{padding:0 60px}.home-hero{min-height:490px}.hero-scene{height:410px}.decor-board{width:360px;height:360px}.hero-piece.main{width:230px;height:280px}.hero-piece.side{width:150px;height:185px;top:150px}.hero-piece.back{width:140px;height:170px}.mode-card{min-height:210px}}@media(max-width:1150px){.sidebar{width:185px;padding:28px 14px 18px}.brand{font-size:23px;gap:8px}.brand-sub{font-size:7px}.main-shell{margin-left:185px;padding:0 25px}.nav-item{font-size:11px;gap:10px}.nav-caption{font-size:7px;letter-spacing:1.4px}.home-hero{min-height:390px}.hero-scene{height:330px}.decor-board{width:260px;height:260px}.hero-piece.main{width:165px;height:215px;left:30%;top:22px}.hero-piece.side{width:105px;height:135px;left:5%;top:116px}.hero-piece.back{width:90px;height:115px;right:1%;top:106px}.hero-actions{gap:3px}.hero-copy h1{font-size:48px}.local-badge{display:none}.mode-card{padding:18px 16px}.mode-card p{max-width:155px;font-size:10px}.mode-card h3{font-size:20px}.home-bottom{grid-template-columns:1.35fr 1fr}.daily-card,.progress-teaser{padding:16px}.game-layout{grid-template-columns:minmax(250px,1fr) 245px;gap:18px}.game-sidebar .panel{padding:15px}.academy-grid{grid-template-columns:repeat(3,1fr)}.cups{gap:12px}.cup{padding:24px 17px}.cup h3{font-size:23px}.setup-grid{gap:18px}.setup-panel{padding:20px}}@media(max-width:900px){.sidebar{width:76px;padding:28px 12px 16px}.brand{justify-content:center}.brand>span:last-child,.nav-caption,.club-note,.profile,.sidebar .nav-item>.nav-dot{display:none}.sidebar nav{margin-top:40px;gap:12px}.sidebar .nav-item{font-size:0;gap:0;justify-content:center;padding:14px}.sidebar .nav-item>span{width:22px;height:22px}.main-shell{margin-left:76px;padding:0 25px}.home-hero{grid-template-columns:1.1fr 1fr;gap:10px}.hero-copy h1{font-size:46px}.hero-copy>p{font-size:11px}.hero-actions .btn{font-size:10px;padding:11px 14px}.hero-foot{font-size:8px;gap:13px}.scene-chip{font-size:8px;padding:8px}.hero-scene{height:300px}.decor-board{width:220px;height:220px}.hero-piece.main{width:145px;height:190px;top:23px}.hero-piece.side{width:95px;height:125px;top:101px}.hero-piece.back{width:85px;height:110px;top:100px}.scene-label{right:-3%;font-size:7px}.game-layout{grid-template-columns:minmax(250px,1fr) 225px;gap:15px}.cup-meta{font-size:8px}.card-kicker{font-size:7px}.page-intro h1{font-size:38px}.setup-visual{min-height:390px}.setup-visual>.showpiece{width:180px;height:205px}.setup-visual h2{font-size:26px}.setup-visual p{font-size:10px}#toast{left:calc(50% + 38px)}}@media(max-width:700px){.main-shell{padding:0 17px}.topbar{height:64px}.breadcrumb{font-size:8px;letter-spacing:1px}.top-actions{gap:8px}.home-hero{min-height:330px;grid-template-columns:1.3fr 1fr}.hero-copy h1{font-size:39px;letter-spacing:-1.5px;margin:18px 0 15px}.eyebrow{font-size:7px;letter-spacing:1.5px}.hero-scene{height:260px}.decor-board{width:165px;height:165px;border-width:6px;bottom:35px}.hero-piece.main{width:112px;height:150px;left:22%;top:28px}.hero-piece.side{width:73px;height:97px;left:0;top:110px}.hero-piece.back{width:69px;height:90px;right:-5%;top:97px}.hero-actions{flex-wrap:wrap;gap:7px;margin-top:18px}.hero-actions .btn-ghost{padding-left:0}.hero-foot{display:none}.hero-copy>p{font-size:10px;max-width:240px}.scene-label{display:none}.scene-chip{font-size:7px;bottom:25px;right:-5%}.mode-grid{gap:9px}.mode-card{padding:16px 12px;min-height:182px}.mode-card h3{font-size:17px}.mode-card p{font-size:9px}.card-kicker{display:none}.card-arrow{width:16px;height:16px;bottom:15px;right:12px}.home-bottom{grid-template-columns:1fr}.progress-teaser{display:none}.section-head h2{font-size:22px}.section-head p{font-size:9px}.section-head .text-link{font-size:9px}.footer{font-size:6px;letter-spacing:.9px}.footer>span:last-child{font-size:10px}.setup-grid{grid-template-columns:1fr}.setup-visual{display:none}.game-layout{grid-template-columns:1fr}.game-sidebar{padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.game-sidebar .coach-box{grid-column:1/-1}.game-sidebar .opponent-panel{display:none}.board-shell{width:min(100%,56vh)}.game-top{padding:18px 0 10px}.game-top h2{font-size:23px}.game-top .btn{font-size:10px;padding:8px 11px}.game-sidebar.lesson-side{display:block}.game-sidebar.lesson-side .panel{margin-bottom:10px}.academy-grid{grid-template-columns:repeat(2,1fr)}.academy-banner{padding:17px;gap:14px}.academy-banner .btn{font-size:9px;padding:9px}.academy-banner h3{font-size:18px}.academy-banner p{font-size:10px}.cups{grid-template-columns:1fr}.cup{display:grid;grid-template-columns:74px 1fr;gap:5px 20px;text-align:left;padding:23px}.cup>.trophy-art{width:60px;height:70px;grid-row:1/4;margin:auto}.cup h3{font-size:23px}.cup>p{min-height:0;font-size:10px}.cup-meta{margin:4px 0 0;padding:10px 0;font-size:9px;grid-column:2}.cup .btn{grid-column:2}.cup .tag{font-size:6px;top:8px}.page-intro{padding:25px 0 22px}.page-intro h1{font-size:33px}.page-intro p{font-size:11px}.stat-chip{font-size:9px;padding:8px}.puzzle-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.sidebar{inset:auto 0 0;width:100%;height:61px;padding:6px 7px;background:#13201ff5;backdrop-filter:blur(12px);border-right:0;border-top:1px solid #415140}.sidebar .brand,.sidebar-bottom{display:none}.sidebar nav{margin:0;flex-direction:row;gap:2px;width:100%;height:100%}.sidebar .nav-item{flex:1;padding:6px;flex-direction:column;font-size:7px;gap:4px;border-radius:5px;letter-spacing:.2px}.sidebar .nav-item.active{box-shadow:inset 0 -2px var(--gold)}.sidebar .nav-item>span{height:19px;width:19px}.main-shell{margin-left:0;padding:0 17px 61px}.topbar{height:58px}.breadcrumb{font-size:7px}.breadcrumb span{margin:0 8px}.top-actions{gap:6px}.icon-btn{height:28px;width:28px;padding:6px}.home-hero{min-height:332px;gap:0;grid-template-columns:1.15fr .85fr}.hero-copy h1{font-size:39px}.hero-copy>p{font-size:10px;max-width:205px}.hero-scene{height:250px;margin-left:-12px;margin-right:-3px}.hero-piece.main{width:115px;height:150px;left:21%;top:32px}.hero-piece.side{left:-6%;top:117px;width:73px}.hero-piece.back{right:-7%;width:65px;top:102px}.decor-board{width:160px;bottom:20px}.scene-chip{bottom:9px;font-size:6px;padding:7px;right:-2%}.mode-card{min-height:170px;padding:13px 10px}.mode-card h3{font-size:16px}.mode-card p{font-size:9px;line-height:1.6}.card-icon{width:26px;height:26px;margin-bottom:13px}.hero-actions{margin-top:15px}.hero-actions .btn{font-size:10px;padding:10px 12px}.hero-actions .btn-ghost{font-size:9px;padding:0}.home-bottom{margin-top:13px}.daily-card{padding:14px;gap:10px}.daily-text h3{font-size:15px}.daily-text p{font-size:9px}.daily-card .text-link{font-size:9px}.daily-icon{height:32px;width:32px;padding:7px}.footer{font-size:6px;letter-spacing:.5px}.footer>span:last-child{font-size:9px}.board-shell{width:min(100%,60vh);padding:11px 11px 13px}.game-top h2{font-size:24px}.game-sidebar{grid-template-columns:1fr}.game-sidebar .coach-box{display:none}.game-sidebar .move-list{height:82px}.game-sidebar.lesson-side .coach-box{display:block}.player-strip{height:46px}.game-top{padding-top:16px}.game-sidebar.lesson-side .panel{padding:17px}.lesson-copy{font-size:12px;margin:10px 0}.lesson-side h3{font-size:23px}.lesson-actions{margin-top:12px}.page-intro{gap:10px}.page-intro h1{font-size:33px}.page-intro .stat-chip{font-size:8px;padding:7px;white-space:normal;min-width:63px;text-align:center}.academy-banner{gap:10px;padding:15px}.academy-banner>span{width:28px;height:28px}.academy-banner .btn{display:none}.academy-grid{gap:11px}.lesson-card{padding:17px 14px;min-height:163px}.lesson-card h3{font-size:17px}.lesson-card .lesson-symbol{width:43px;height:43px}.modal{padding:27px 23px}.modal h2{font-size:28px}.modal-actions .btn{font-size:10px;padding:11px 13px}#toast{left:50%;bottom:80px;font-size:11px}.setup-panel{padding:20px}.setup-grid{padding-bottom:5px}.page-intro p{font-size:11px}.board-under{margin-top:7px}.round-step{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Viewport-native layouts: every screen stays inside the game frame. */
html,body{width:100%;height:100%;height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none}body{position:relative}.main-shell{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}.topbar{height:64px;min-height:64px;flex-shrink:0}.footer{height:28px;min-height:28px;flex-shrink:0}main,#content{min-height:0!important;flex:1;overflow:hidden;display:flex;flex-direction:column}#content>*{min-width:0}.sidebar{overflow:hidden;padding-top:25px}.sidebar nav{flex-shrink:0}.nav-caption{margin-top:36px}.sidebar-bottom{min-height:0}.view-home .home-hero{min-height:0;flex:1;padding:20px 0;gap:18px}.view-home .hero-copy h1{font-size:clamp(38px,4.2vw,65px);margin:19px 0 16px}.view-home .hero-scene{height:min(36vh,365px);min-height:190px}.view-home .section-head{flex-shrink:0;margin:5px 0 13px;min-height:38px}.view-home .mode-grid{flex:0 0 174px;min-height:0;gap:15px}.view-home .mode-card{height:100%;min-height:0;padding:19px}.view-home .home-bottom{flex:0 0 80px;margin-top:15px;min-height:0}.view-home .daily-card,.view-home .progress-teaser{padding:13px 18px}.view-home .hero-foot{margin-top:17px}.page-intro{flex-shrink:0;padding:24px 0 20px;min-height:0}.page-intro .eyebrow{margin-bottom:11px}.page-intro h1{font-size:clamp(31px,3.4vw,43px)}.page-intro p{margin-top:9px}.academy-banner{flex-shrink:0;padding:16px 22px;margin-bottom:16px}.academy-banner h3{font-size:20px}.academy-grid.paged-grid,.puzzle-grid.paged-grid,.paged-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:14px;padding-bottom:0;overflow:hidden}.paged-grid .lesson-card{min-height:0;height:100%;padding:17px 19px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.paged-grid .lesson-symbol{height:clamp(28px,5.2vh,49px);width:clamp(28px,5.2vh,49px);margin:6px 0 10px;flex-shrink:0}.paged-grid .lesson-card h3{font-size:clamp(16px,1.55vw,21px);margin-bottom:5px}.paged-grid .lesson-card p{line-height:1.45;font-size:11px}.paged-grid .puzzle-card .card-icon{height:30px;width:30px;margin:5px 0 10px;flex-shrink:0}.pager{height:52px;min-height:52px;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:15px;color:var(--muted);font-size:11px}.pager .btn{padding:7px 13px;font-size:10px}.pager .icon-btn{height:28px;width:30px}.storage-note{flex-shrink:0;margin:9px 0;font-size:9px}.view-tournaments .cups{flex:1;min-height:0;padding-bottom:4px}.view-tournaments .cup{min-height:0;padding:clamp(17px,2.8vh,29px) 22px;display:flex;flex-direction:column;justify-content:center}.view-tournaments .cup>.trophy-art{height:clamp(55px,11vh,95px);width:clamp(55px,11vh,95px);flex-shrink:0;margin:6px auto 20px}.view-tournaments .cup h3{font-size:clamp(21px,2.2vw,29px)}.view-tournaments .cup>p{min-height:0}.view-tournaments .cup-meta{padding:14px 0;margin-top:14px}.tournament-rules{flex-shrink:0;margin:16px 0;gap:20px}.setup-grid{flex:1;min-height:0;padding-bottom:12px}.setup-visual{min-height:0;height:100%}.setup-panel{min-height:0;height:100%;padding:22px}.setup-panel .field-group{margin-top:17px}.setup-panel>.btn{margin-top:20px}.view-game .game-top{flex:0 0 66px;min-height:0;padding:12px 0;gap:10px}.view-game .game-layout{flex:1;min-height:0;width:100%;max-width:1120px;grid-template-columns:minmax(0,1fr) 266px;gap:23px;align-items:center;padding-bottom:7px}.view-game .board-area{width:min(100%,calc(100dvh - 268px));max-width:650px;min-height:0;align-self:center}.view-game .player-strip{height:40px;min-height:40px}.view-game .player-strip .avatar{width:30px;height:30px}.view-game .player-strip .avatar svg{height:26px;width:26px}.view-game .board-shell{width:100%;padding:12px 12px 14px}.view-game .board-under{min-height:26px;height:26px;margin-top:3px}.view-game .game-sidebar{padding-top:0;gap:11px;min-height:0;max-height:100%;align-self:center}.view-game .game-sidebar .panel{padding:15px}.view-game .panel-label{margin-bottom:9px}.view-game .opponent-title{font-size:22px}.view-game .opponent-copy{font-size:10px}.view-game .turn-indicator{margin-top:10px;padding-top:9px}.view-game .difficulty-bars{margin-top:10px}.view-game .move-list{height:auto;min-height:28px;max-height:none;overflow:hidden}.view-game .move-row{padding:4px 7px;min-height:24px}.view-game .empty-moves{padding:16px 10px}.view-game .game-actions{margin-top:10px}.view-game .coach-box p{font-size:10px;line-height:1.65}.view-game .lesson-copy{font-size:12px;line-height:1.65;margin:10px 0 13px}.view-game .lesson-badge{margin-bottom:8px}.view-game .lesson-side h3{font-size:24px}.view-game .lesson-actions{margin-top:12px}.view-game .lesson-success{font-size:11px;line-height:1.6;padding:10px;margin:8px 0}.view-game .lesson-error{font-size:10px;padding:6px 0}.view-game .course-progress{margin-top:13px}.view-game .game-sidebar .pager{height:29px;min-height:29px;gap:12px;font-size:9px}.view-game .game-sidebar .pager .btn{padding:4px 8px;font-size:9px}.view-game .game-sidebar .pager .icon-btn{width:25px;height:23px;padding:5px}.modal-overlay{overflow:hidden;padding:18px}.modal{overflow:hidden;max-height:calc(100dvh - 36px);padding:26px;display:flex;flex-direction:column;min-height:0}.modal h2{flex-shrink:0}.modal-actions,.switch-line,.promotion-choices{flex-shrink:0}.modal .switch-line{padding:11px 0}.modal-actions{margin-top:20px}.modal-emblem{height:50px;width:50px;margin-bottom:10px}.result-modal .modal-emblem{margin:0 auto 14px}.result-score{padding:7px 0}.round-track{margin:13px 0 17px}.round-step{padding:9px 5px}#toast{max-width:min(80vw,480px)}
@media(max-height:850px){.view-home .home-bottom{display:none}.view-home .hero-foot{display:none}.footer{display:none}.view-game .board-area{width:min(100%,calc(100dvh - 240px))}.view-home .hero-scene{height:min(43vh,340px)}.view-home .home-hero{padding:15px 0}.view-home .mode-grid{flex-basis:170px}.setup-panel .field-group{margin-top:13px}.setup-panel>.btn{margin-top:17px}.setup-panel .level-note{margin-top:9px;min-height:29px}.setup-panel .choice{padding:10px 7px}}
@media(max-width:1150px){.main-shell{padding-left:24px;padding-right:24px}.view-game .game-layout{grid-template-columns:minmax(0,1fr) 228px;gap:17px}.view-game .game-sidebar .panel{padding:12px}.view-game .board-area{width:min(100%,calc(100dvh - 242px))}.view-home .mode-card{padding:17px}.view-home .hero-copy h1{font-size:clamp(37px,4.5vw,53px)}.view-home .hero-copy>p{font-size:12px}.view-tournaments .cup{padding-left:16px;padding-right:16px}.setup-panel{padding:19px}.paged-grid .lesson-card{padding:15px}.view-game .lesson-side h3{font-size:22px}.view-game .lesson-copy{font-size:11px}.view-game .lesson-actions .btn{font-size:10px;padding:9px}}
@media(max-width:900px){.sidebar nav{margin-top:27px;gap:9px}.sidebar .nav-item{padding:12px}.main-shell{padding-left:22px;padding-right:22px}.view-home .mode-grid{gap:11px;flex-basis:170px}.view-home .mode-card{padding:16px 13px}.view-home .hero-copy h1{font-size:44px}.view-home .hero-copy>p{font-size:11px}.view-home .hero-scene{height:290px;min-height:0}.view-home .home-hero{gap:6px}.view-home .hero-actions{margin-top:22px}.view-home .hero-actions .btn{padding:11px 12px;font-size:10px}.view-game .game-layout{grid-template-columns:minmax(0,1fr) 218px;gap:13px}.view-game .game-sidebar .panel{padding:12px}.view-game .board-shell{padding:10px 10px 12px}.academy-banner{padding:15px 18px;gap:15px}.page-intro p{max-width:440px}.view-tournaments .cups{gap:12px}.view-tournaments .cup{padding:19px 12px}.view-tournaments .cup h3{font-size:23px}.view-tournaments .cup .btn{padding:10px 7px;font-size:10px}.view-tournaments .cup-meta{font-size:8px}.setup-grid{gap:17px}.setup-panel .choice{font-size:10px;padding:10px 6px}.setup-panel .field-group{margin-top:15px}}
@media(max-width:700px) and (min-width:481px){.view-game .game-layout{grid-template-columns:minmax(0,1fr) 192px;gap:10px}.view-game .game-sidebar{display:flex}.view-game .board-area{width:min(100%,calc(100dvh - 242px))}.view-game .game-sidebar .opponent-panel{display:none}.view-game .game-sidebar .coach-box{display:block}.view-game .game-sidebar .panel{padding:11px}.view-game .lesson-side h3{font-size:20px}.view-game .lesson-copy{font-size:11px}.view-game .lesson-actions{gap:6px}.view-game .lesson-actions .btn{padding:8px;font-size:9px}.view-game .game-top h2{font-size:23px}.setup-grid{grid-template-columns:1fr}.setup-visual{display:none}.view-tournaments .cup{display:flex}.view-tournaments .cups{grid-template-columns:repeat(3,minmax(0,1fr))}.view-tournaments .cup h3{font-size:20px}.view-tournaments .cup p{font-size:10px}.view-tournaments .cup-meta{flex-direction:column;gap:3px}.view-tournaments .cup .tag{font-size:6px;right:10px}}
@media(max-width:600px){.paged-grid,.academy-grid.paged-grid,.puzzle-grid.paged-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:11px}.academy-banner{padding:13px;gap:12px}.academy-banner h3{font-size:18px}.academy-banner p{font-size:10px}.academy-banner .btn{display:none}.page-intro{padding:22px 0 18px}.page-intro h1{font-size:33px}.page-intro p{font-size:11px}.paged-grid .lesson-card h3{font-size:19px}.paged-grid .lesson-card p{font-size:10px}.paged-grid .lesson-symbol{width:43px;height:43px}.pager{height:47px;min-height:47px}}
@media(max-width:480px){.main-shell{height:calc(100dvh - 61px);padding:0 16px;margin-left:0}.sidebar{height:61px;padding:5px 6px}.sidebar nav{margin-top:0;gap:1px}.sidebar .nav-item{padding:5px 3px;font-size:7px;gap:3px}.sidebar .nav-item>span{height:18px;width:18px}.topbar{height:52px;min-height:52px}.footer{display:none}.view-home .home-hero{flex:1;min-height:0;grid-template-columns:1.15fr .85fr;padding:10px 0;gap:0}.view-home .hero-copy h1{font-size:clamp(33px,10vw,40px);margin:15px 0 13px;letter-spacing:-1.3px}.view-home .hero-copy>p{font-size:10px;line-height:1.8;max-width:190px}.view-home .hero-actions{margin-top:17px;gap:10px}.view-home .hero-actions .btn{padding:10px 12px}.view-home .hero-actions .btn-ghost{padding:0}.view-home .hero-scene{height:235px;min-height:0;margin-left:-15px}.view-home .hero-piece.main{width:112px;height:145px;top:20px}.view-home .hero-piece.side{top:102px;height:92px}.view-home .hero-piece.back{top:88px;height:85px}.view-home .decor-board{bottom:19px;width:155px;height:155px}.view-home .scene-chip{bottom:4px;font-size:6px;padding:6px}.view-home .section-head{margin:4px 0 12px;min-height:35px}.view-home .section-head h2{font-size:23px}.view-home .mode-grid{flex:0 0 175px;gap:8px;margin-bottom:15px}.view-home .mode-card{padding:15px 10px}.view-home .mode-card h3{font-size:16px}.view-home .mode-card p{font-size:9px;line-height:1.6}.view-home .mode-card .card-icon{height:26px;width:26px;margin-bottom:13px}.view-home .home-bottom{display:none}.page-intro{padding:21px 0 18px;gap:8px}.page-intro .eyebrow{margin-bottom:10px}.page-intro h1{font-size:33px}.page-intro p{margin-top:9px;font-size:11px;line-height:1.6}.page-intro .stat-chip{min-width:62px;padding:7px;font-size:8px}.academy-banner{padding:14px;margin-bottom:13px}.academy-banner>span{height:27px;width:27px}.academy-banner h3{font-size:19px}.academy-banner p{font-size:10px}.paged-grid .lesson-card{padding:14px;justify-content:center}.paged-grid .lesson-card h3{font-size:19px;line-height:1.2}.paged-grid .lesson-card p{font-size:10px}.paged-grid .lesson-symbol{height:45px;width:45px;margin:9px 0 12px}.paged-grid .lesson-number{top:12px;right:13px}.pager{height:49px;min-height:49px}.storage-note{font-size:8px;margin:7px 0}.view-play .page-intro{padding-top:19px;padding-bottom:16px}.setup-grid{padding-bottom:12px;display:flex;flex-direction:column}.setup-panel{padding:18px;height:auto;flex:1;display:flex;flex-direction:column;justify-content:center}.setup-panel .choice{padding:11px 7px;font-size:11px}.setup-panel .field-group{margin-top:18px}.setup-panel .level-note{min-height:30px;margin-top:10px;font-size:11px}.setup-panel>.btn{margin-top:22px;padding:12px}.view-tournaments .page-intro{padding-bottom:14px}.view-tournaments .cups{grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:11px;min-height:0}.view-tournaments .cup{display:grid;grid-template-columns:57px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:4px;align-content:center;align-items:center;padding:15px 13px;text-align:left}.view-tournaments .cup>.trophy-art{grid-row:1/3;grid-column:1;width:49px;height:58px;margin:0}.view-tournaments .cup h3{grid-row:1;grid-column:2;font-size:22px;margin:0}.view-tournaments .cup>p{display:none}.view-tournaments .cup .cup-meta{grid-row:2;grid-column:2;margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:1px;font-size:8px}.view-tournaments .cup>.btn{grid-column:3;grid-row:1/3;width:auto;padding:9px 10px;font-size:9px;gap:5px}.view-tournaments .cup>.btn svg{width:13px;height:13px}.view-tournaments .cup .tag{top:7px;right:10px;font-size:6px;letter-spacing:1px}.tournament-rules{margin:13px 0;gap:8px 16px;font-size:9px}.view-game .game-top{flex-basis:53px;padding:8px 0;min-height:0}.view-game .game-top h2{font-size:23px}.view-game .game-top p{font-size:9px;margin-top:2px}.view-game .game-top>.btn{padding:7px 9px;font-size:9px}.view-game .game-layout{display:flex;flex-direction:column;gap:9px;padding-bottom:8px;align-items:stretch;justify-content:flex-start}.view-game .board-area{flex:none;width:min(100%,calc(100dvh - 413px));max-width:100%;margin:0 auto}.view-game .player-strip{height:33px;min-height:33px;gap:8px}.view-game .player-strip .avatar{height:25px;width:25px}.view-game .player-strip .avatar svg{height:23px;width:23px}.view-game .player-strip strong{font-size:10px}.view-game .player-strip small{font-size:8px}.view-game .clock{min-width:58px;padding:3px 8px;font-size:15px}.view-game .captured{height:12px;font-size:8px}.view-game .captured svg{height:13px;width:12px}.view-game .board-shell{width:100%;padding:8px 8px 10px}.view-game .board-under{height:24px;min-height:24px;margin-top:3px;font-size:8px}.view-game .board-tools .icon-btn{width:26px;height:23px;padding:5px}.view-game .game-sidebar{display:flex;flex:1;min-height:0;width:100%;max-height:none;gap:7px;margin:0;justify-content:flex-start}.view-game .game-sidebar .opponent-panel,.view-game .game-sidebar .coach-box{display:none}.view-game .game-sidebar>.panel{padding:10px 12px;min-height:0}.view-game .game-sidebar .panel-label{font-size:8px;margin-bottom:5px}.view-game .move-list{height:auto;min-height:22px;font-size:10px}.view-game .move-row{min-height:18px;padding:2px 6px;line-height:1.4;grid-template-columns:25px 1fr 1fr}.view-game .empty-moves{padding:6px 8px;font-size:10px}.view-game .game-actions{margin-top:6px}.view-game .game-actions .btn{padding:7px;font-size:9px}.view-game .game-sidebar .pager{height:24px;min-height:24px}.view-game .lesson-side{display:flex!important}.view-game .lesson-side .panel{margin:0;padding:11px 13px!important}.view-game .lesson-side .coach-box{display:none!important}.view-game .lesson-badge{font-size:8px;letter-spacing:1.4px;margin-bottom:3px}.view-game .lesson-side h3{font-size:22px}.view-game .lesson-copy{font-size:11px;line-height:1.55;margin:7px 0}.view-game .lesson-actions{margin-top:8px;gap:7px}.view-game .lesson-actions .btn{padding:8px 10px;font-size:10px}.view-game .lesson-success{font-size:10px;line-height:1.5;padding:8px;margin:6px 0}.view-game .lesson-error{padding:4px 0;font-size:10px}.view-game .course-progress{margin-top:9px}.view-game .lesson-board-title{font-size:9px}.view-game .game-layout:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 465px))}.modal{padding:24px 21px}.modal h2{font-size:27px;margin:10px 0}.modal .switch-line{padding:10px 0}.modal .switch-line span strong{font-size:11px}.modal .switch-line span small{font-size:9px}.modal p{font-size:11px;line-height:1.65}.modal-actions{margin-top:19px}.modal-actions .btn{padding:10px;font-size:10px}.modal-emblem{height:44px;width:44px}.result-score{font-size:31px}.promotion-choices svg{height:58px}#toast{bottom:72px;max-width:90vw;font-size:10px;padding:9px 14px}}
@media(max-height:700px) and (min-width:481px){.topbar{height:52px;min-height:52px}.footer{display:none}.page-intro{padding:17px 0 14px}.page-intro .eyebrow{margin-bottom:8px}.page-intro h1{font-size:34px}.page-intro p{font-size:11px;margin-top:7px}.view-home .home-hero{padding:8px 0}.view-home .hero-copy h1{font-size:43px;margin:15px 0 12px}.view-home .hero-copy>p{font-size:11px;line-height:1.7}.view-home .hero-actions{margin-top:17px}.view-home .hero-scene{height:250px}.view-home .mode-grid{flex-basis:145px}.view-home .mode-card{padding:15px}.view-home .mode-card .card-icon{height:26px;width:26px;margin-bottom:10px}.view-home .mode-card h3{font-size:19px}.view-home .mode-card p{font-size:10px;line-height:1.5;margin-top:6px}.academy-banner{padding:12px 16px;margin-bottom:12px}.academy-banner h3{font-size:18px}.academy-banner p{font-size:10px}.paged-grid{gap:11px}.paged-grid .lesson-card{padding:13px}.paged-grid .lesson-symbol{height:34px;width:34px;margin:5px 0 8px}.paged-grid .lesson-card h3{font-size:18px}.paged-grid .lesson-card p{font-size:10px}.pager{height:43px;min-height:43px}.view-game .game-top{flex-basis:53px}.view-game .board-area{width:min(100%,calc(100dvh - 213px))}.view-game .game-sidebar{gap:8px}.view-game .game-sidebar .panel{padding:11px}.view-game .game-sidebar .coach-box{display:none}.view-game .lesson-copy{font-size:11px}.view-game .opponent-copy{font-size:9px}.view-game .opponent-title{font-size:20px}.view-game .move-row{padding:3px 6px;min-height:21px}.view-game .panel-label{margin-bottom:7px}.setup-panel{padding:17px}.setup-panel .choice{padding:8px;font-size:10px}.setup-panel .field-label{margin-bottom:7px;font-size:8px}.setup-panel .field-group{margin-top:11px}.setup-panel .level-note{font-size:10px;line-height:1.5;min-height:25px;margin-top:8px}.setup-panel>.btn{margin-top:13px;padding:10px}.setup-visual>.showpiece{height:185px;width:185px}.view-tournaments .cup>.trophy-art{height:65px;width:65px;margin-bottom:14px}.view-tournaments .cup h3{font-size:24px}.view-tournaments .cup-meta{padding:12px 0;margin-top:11px}}
@media(max-width:480px) and (max-height:720px){.topbar{height:46px;min-height:46px}.view-home .hero-copy h1{font-size:35px;margin:11px 0}.view-home .hero-copy>p{font-size:9px;line-height:1.65}.view-home .hero-actions{margin-top:13px;gap:9px}.view-home .hero-actions .btn{font-size:9px;padding:9px 10px}.view-home .hero-actions .btn-ghost{padding:0;font-size:8px}.view-home .hero-scene{transform:scale(.9);transform-origin:center right;margin-left:-25px}.view-home .mode-grid{flex-basis:145px;margin-bottom:12px}.view-home .mode-card{padding:12px 8px}.view-home .mode-card h3{font-size:15px}.view-home .mode-card p{font-size:8px}.view-home .mode-card .card-icon{height:23px;width:23px;margin-bottom:9px}.view-home .section-head h2{font-size:20px}.page-intro{padding:16px 0 14px}.page-intro h1{font-size:29px}.page-intro p{font-size:10px;margin-top:7px}.page-intro .eyebrow{margin-bottom:8px}.academy-banner{padding:11px;margin-bottom:10px}.academy-banner h3{font-size:17px}.academy-banner p{font-size:9px}.paged-grid .lesson-card{padding:12px}.paged-grid .lesson-symbol{height:32px;width:32px;margin:5px 0 8px}.paged-grid .lesson-card h3{font-size:17px}.paged-grid .lesson-card p{font-size:9px}.pager{height:42px;min-height:42px}.view-game .game-top{flex-basis:47px}.view-game .game-top h2{font-size:21px}.view-game .board-area{width:min(100%,calc(100dvh - 381px))}.view-game .player-strip{height:29px;min-height:29px}.view-game .board-shell{padding:6px 6px 8px}.view-game .game-layout{gap:6px}.view-game .game-layout:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 430px))}.view-game .lesson-side .panel{padding:9px 11px!important}.view-game .lesson-side h3{font-size:19px}.view-game .lesson-copy{font-size:10px;line-height:1.5;margin:5px 0}.view-game .lesson-actions{margin-top:6px}.view-game .lesson-actions .btn{padding:7px;font-size:9px}.view-game .course-progress{margin-top:6px}.view-game .lesson-success{padding:6px;font-size:9px;line-height:1.4}.setup-panel{padding:15px}.setup-panel .field-group{margin-top:11px}.setup-panel .choice{padding:8px 6px;font-size:10px}.setup-panel .level-note{font-size:10px;min-height:25px;margin-top:7px}.setup-panel .field-label{font-size:8px;margin-bottom:8px}.setup-panel>.btn{margin-top:15px;padding:10px}.view-tournaments .cup{padding:12px 11px;grid-template-columns:45px minmax(0,1fr) auto;gap:4px 10px}.view-tournaments .cup>.trophy-art{height:48px;width:43px}.view-tournaments .cup h3{font-size:20px}.tournament-rules{font-size:8px;margin:10px 0}.modal{padding:20px}.modal h2{font-size:26px}.modal .switch-line{padding:8px 0}.modal-actions{margin-top:16px}}
@media(max-height:500px) and (min-width:481px){.sidebar{width:56px;padding:14px 7px 9px}.sidebar .brand-mark{height:29px;width:29px}.sidebar .brand>span:last-child,.sidebar .nav-caption,.sidebar .club-note,.sidebar .profile,.sidebar-bottom{display:none}.sidebar nav{margin-top:19px;gap:5px}.sidebar .nav-item{padding:9px 7px;font-size:0;gap:0;justify-content:center}.sidebar .nav-item>span,.sidebar .nav-item>svg{width:19px;height:19px}.sidebar .nav-item>.nav-dot{display:none}.main-shell{height:100dvh;margin-left:56px;padding:0 15px}.topbar{height:39px;min-height:39px}.breadcrumb{font-size:7px}.top-actions{gap:7px}.top-actions .icon-btn{height:26px;width:26px;padding:6px}.footer{display:none}.view-home .home-hero{padding:7px 0;grid-template-columns:1.05fr 1fr;gap:12px;min-height:0}.view-home .hero-copy .eyebrow{font-size:7px;letter-spacing:1.5px}.view-home .hero-copy h1{font-size:34px;line-height:1.06;letter-spacing:-1px;margin:9px 0}.view-home .hero-copy>p{display:none}.view-home .hero-actions{margin-top:11px;gap:8px;flex-wrap:nowrap}.view-home .hero-actions .btn{padding:8px 11px;font-size:9px}.view-home .hero-actions .btn svg{height:13px;width:13px}.view-home .hero-actions .btn-ghost{padding:5px;font-size:9px}.view-home .hero-scene{height:175px;min-height:0;transform:scale(.72);transform-origin:center center;margin:0}.view-home .decor-board{bottom:-16px}.view-home .hero-piece.main{top:-49px}.view-home .hero-piece.side{top:38px}.view-home .hero-piece.back{top:27px}.view-home .scene-chip{bottom:-29px}.view-home .section-head{min-height:25px;margin:0 0 7px;align-items:center}.view-home .section-head h2{font-size:18px}.view-home .section-head p{display:none}.view-home .section-head .text-link{font-size:9px}.view-home .mode-grid{flex-basis:100px;gap:10px;margin-bottom:10px}.view-home .mode-card{padding:12px;display:grid;grid-template-columns:29px 1fr;grid-template-rows:auto auto;column-gap:10px;row-gap:4px;align-content:center}.view-home .mode-card .card-icon{grid-column:1;grid-row:1/3;height:25px;width:25px;margin:0}.view-home .mode-card h3{grid-column:2;font-size:18px}.view-home .mode-card p{grid-column:2;font-size:9px;line-height:1.4;margin:0;max-width:180px}.view-home .mode-card .card-arrow{display:none}.view-home .mode-card .card-kicker{display:none}.page-intro{padding:13px 0 10px;align-items:center;gap:15px}.page-intro .eyebrow{font-size:7px;margin-bottom:5px}.page-intro h1{font-size:28px;line-height:1.1}.page-intro p{font-size:9px;line-height:1.5;margin-top:5px;max-width:540px}.page-intro .stat-chip{font-size:9px;padding:7px 11px}.academy-banner{display:none}.paged-grid,.academy-grid.paged-grid,.puzzle-grid.paged-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:9px}.paged-grid .lesson-card{padding:11px 12px;display:grid;grid-template-columns:35px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;row-gap:2px;align-content:center;justify-content:initial}.paged-grid .lesson-symbol,.paged-grid .puzzle-card .card-icon{grid-column:1;grid-row:1/3;width:30px;height:30px;margin:0;align-self:center}.paged-grid .lesson-card h3{grid-column:2;font-size:15px;margin:0;align-self:end;line-height:1.2}.paged-grid .lesson-card p{grid-column:2;font-size:8px;line-height:1.4;align-self:start}.paged-grid .lesson-card>.tag{grid-column:2;font-size:6px;display:none}.paged-grid .lesson-number{top:6px;right:7px;font-size:7px}.pager{height:36px;min-height:36px;font-size:9px;gap:11px}.pager .btn{padding:5px 10px;font-size:9px}.storage-note{display:none}.setup-grid{grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr);gap:15px;display:grid;padding:0 0 9px}.setup-visual{display:flex;min-height:0}.setup-visual>.showpiece{width:122px;height:130px}.setup-visual h2{font-size:22px;margin:5px 0}.setup-visual p{font-size:9px;max-width:190px;text-align:center}.setup-panel{padding:12px 14px;display:grid;grid-template-columns:1fr 1fr;gap:7px 13px;align-content:center;align-items:start;height:100%;min-height:0}.setup-panel>.field-label,.setup-panel>.difficulty-grid,.setup-panel>.level-note{grid-column:1/-1}.setup-panel>.field-label{margin:0;font-size:7px}.setup-panel .difficulty-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.setup-panel .choice{padding:7px 3px;font-size:8px}.setup-panel .choice small{font-size:6px;letter-spacing:.7px;margin-top:3px}.setup-panel>.level-note{font-size:9px;min-height:0;margin:0;line-height:1.4}.setup-panel .field-group{margin:1px 0 0;min-height:0}.setup-panel .field-label{font-size:7px;margin-bottom:5px}.setup-panel .segmented{gap:4px}.setup-panel>.btn{grid-column:1/-1;margin:2px 0 0;padding:8px;font-size:10px;min-height:30px}.setup-panel .switch-line{padding:5px 0;min-height:0}.setup-panel .switch-line strong{font-size:9px}.setup-panel .switch-line small{font-size:8px}.view-tournaments .cups{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr;gap:11px}.view-tournaments .cup{display:flex;padding:13px 14px;justify-content:center;text-align:center;gap:0}.view-tournaments .cup>.trophy-art{height:39px;width:39px;margin:0 auto 7px}.view-tournaments .cup h3{font-size:22px;margin-bottom:6px}.view-tournaments .cup>p{font-size:9px;line-height:1.45;min-height:0}.view-tournaments .cup-meta{margin-top:7px;padding:7px 0;font-size:8px;flex-direction:row;gap:4px}.view-tournaments .cup .btn{padding:7px;font-size:9px}.view-tournaments .cup .tag{font-size:6px;top:7px;right:9px}.tournament-rules{margin:9px 0;gap:17px;font-size:8px}.view-game .game-top{flex-basis:40px;padding:6px 0;gap:10px}.view-game .game-top h2{font-size:21px}.view-game .game-top p{font-size:8px;margin-top:1px}.view-game .game-top .btn{padding:6px 9px;font-size:9px}.view-game .game-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(190px,.95fr);gap:20px;padding-bottom:5px;align-items:center}.view-game .board-area{width:min(100%,calc(100dvh - 153px));margin:auto;min-height:0}.view-game .player-strip{height:26px;min-height:26px;gap:7px}.view-game .player-strip .avatar{height:22px;width:22px;border-radius:5px}.view-game .player-strip .avatar svg{height:21px;width:21px}.view-game .player-strip strong{font-size:9px}.view-game .player-strip small{font-size:7px}.view-game .clock{font-size:13px;min-width:52px;padding:2px 7px}.view-game .captured{height:10px;font-size:7px}.view-game .captured svg{height:11px;width:10px}.view-game .board-shell{padding:6px 6px 8px}.view-game .board-under{height:20px;min-height:20px;margin-top:0;font-size:7px}.view-game .board-tools .icon-btn{height:20px;width:23px;padding:4px}.view-game .game-sidebar{display:flex;gap:7px;padding:0;min-height:0;max-height:100%}.view-game .game-sidebar .opponent-panel,.view-game .game-sidebar .coach-box{display:none}.view-game .game-sidebar .panel{padding:12px;min-height:0}.view-game .game-sidebar .panel-label{font-size:8px;margin-bottom:6px}.view-game .move-list{height:auto;min-height:22px;font-size:11px}.view-game .move-row{min-height:22px;padding:3px 6px}.view-game .empty-moves{padding:13px 8px;font-size:10px}.view-game .game-actions{margin-top:8px}.view-game .game-actions .btn{padding:7px;font-size:9px}.view-game .lesson-side h3{font-size:22px}.view-game .lesson-badge{font-size:8px;margin-bottom:5px}.view-game .lesson-copy{font-size:11px;line-height:1.55;margin:8px 0 10px}.view-game .lesson-success{font-size:10px;line-height:1.4;padding:7px;margin:7px 0}.view-game .lesson-error{font-size:10px;padding:4px 0}.view-game .lesson-actions{margin-top:9px;gap:7px}.view-game .lesson-actions .btn{font-size:10px;padding:8px 11px}.view-game .course-progress{margin-top:9px}.view-game .game-sidebar .pager{height:25px;min-height:25px}.view-game .game-layout:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 153px))}.modal-overlay{padding:12px}.modal{width:min(100%,560px);max-height:calc(100dvh - 24px);padding:17px 23px}.modal h2{font-size:24px;margin:5px 0 8px}.modal p{font-size:10px;line-height:1.5}.modal-emblem{height:33px;width:33px;margin:0 0 5px}.result-modal .modal-emblem{height:34px;width:34px;margin:0 auto 6px}.modal .switch-line{padding:6px 0;min-height:0}.modal .switch-line span strong{font-size:10px}.modal .switch-line span small{font-size:8px}.modal-actions{margin-top:12px;gap:8px}.modal-actions .btn{font-size:10px;padding:8px 12px}.result-score{font-size:27px;padding:4px 0}.round-track{margin:9px 0 12px}.round-step{padding:7px 5px;font-size:9px}.round-step small{font-size:7px;margin-bottom:2px}.promotion-choices{margin-top:12px}.promotion-choices svg{height:54px}.promotion-choices button{padding:7px 3px}.modal .close-modal{height:25px;width:25px;top:8px;right:8px}#toast{bottom:11px;left:calc(50% + 28px);font-size:10px;padding:8px 13px}}
/* Final markup alignment and compact controls. */
:root{--game-board-reserve:276px}.view-home .home-modes{display:flex;flex-direction:column;flex:0 0 233px;min-height:0;padding-bottom:12px}.view-home .home-modes .mode-grid{flex:1;min-height:0}.view-game .board-area{width:min(100%,calc(100dvh - var(--game-board-reserve)))}.full-width{width:100%}.pager{justify-content:space-between;gap:12px}.pager>span{font-size:8px;letter-spacing:1px}.pager>div{display:flex;align-items:center;gap:11px}.pager b{font-weight:400;font-size:10px;white-space:nowrap}.pager [data-action=page-prev] svg{transform:rotate(180deg)}.move-pagination{height:27px;min-height:27px;display:flex;align-items:center;justify-content:center;gap:16px;font-size:9px;color:var(--muted)}.move-pagination button{width:27px;height:22px;background:#29392f;border:1px solid #3c4c3b;border-radius:4px;font-size:16px;line-height:1;padding:0 0 2px}.move-pagination button:hover{color:var(--gold);background:#3b4937}.view-game .lesson-panel{flex-shrink:0}.view-game .lesson-side .coach-box{flex-shrink:1;min-height:0}.view-game .is-lesson:has(.lesson-success) .lesson-copy,.view-game .is-lesson:has(.lesson-success) .lesson-actions{display:none}
@media(max-height:850px){:root{--game-board-reserve:248px}.view-home .home-modes{flex-basis:232px}}
@media(max-width:700px){.paged-grid,.academy-grid.paged-grid,.puzzle-grid.paged-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.view-home .home-modes{flex:0 0 231px;padding-bottom:0}.view-home .home-modes .mode-grid{margin-bottom:15px}.pager>span{font-size:6px;letter-spacing:.8px;max-width:100px}.pager>div{gap:7px}.pager .btn{font-size:9px;padding:6px 9px;gap:5px}.pager .btn svg{height:12px;width:12px}.view-game .board-area{width:min(100%,calc(100dvh - 413px))}.view-game .notation-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.view-game .notation-panel>.panel-label,.view-game .notation-panel>.move-list,.view-game .notation-panel>.move-pagination{grid-column:1/-1}.view-game .notation-panel>.panel-label{margin-bottom:0}.view-game .notation-panel>.move-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 5px}.view-game .notation-panel>.move-list .empty-moves{grid-column:1/-1}.view-game .notation-panel .move-row{grid-template-columns:19px 1fr 1fr;gap:3px;padding:2px 4px;min-height:18px;font-size:9px}.view-game .notation-panel .game-actions{display:contents}.view-game .notation-panel .game-actions .btn{font-size:8px;padding:6px 3px;gap:3px;min-width:0}.view-game .notation-panel .game-actions .btn svg{width:11px;height:11px}.view-game .move-pagination{height:23px;min-height:23px;font-size:8px}.view-game .move-pagination button{height:20px;width:26px}.view-game .game-layout.is-lesson .board-area{width:min(100%,calc(100dvh - 451px))}.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 451px))}}
@media(max-height:700px) and (min-width:481px){:root{--game-board-reserve:223px}.view-home .home-modes{flex-basis:203px}}
@media(max-width:480px) and (max-height:720px){.view-home .home-modes{flex-basis:197px}.view-game .board-area{width:min(100%,calc(100dvh - 393px))}.view-game .game-layout.is-lesson .board-area,.view-game .game-layout.is-lesson:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 415px))}}
@media(max-height:500px) and (min-width:481px){:root{--game-board-reserve:158px}.view-home .home-modes{flex-basis:143px;padding-bottom:0}.view-home .home-modes .mode-grid{margin-bottom:10px}.setup-panel>.segmented,.setup-panel>.field-group:nth-of-type(2){grid-column:1/-1}.setup-panel .field-group:nth-of-type(2) .level-note{min-height:0;font-size:8px;line-height:1.4;margin:5px 0 0}.setup-panel{gap:5px 12px;padding:10px 13px}.setup-panel .field-group{margin:0}.setup-panel .field-label{margin-bottom:4px}.setup-panel .difficulty-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.setup-panel .choice{padding:5px 3px}.setup-panel>.btn{padding:7px;min-height:28px}.view-game .board-area,.view-game .game-layout:has(.lesson-success) .board-area{width:min(100%,calc(100dvh - 158px))}.view-game .move-pagination{height:24px;min-height:24px}.view-game .notation-panel{max-height:100%}.view-game .game-actions{margin-top:6px}.view-game .game-sidebar .panel{padding:10px 12px}.view-game .game-sidebar .move-row{min-height:20px;padding:2px 6px}.view-game .game-sidebar .lesson-copy{font-size:10px;line-height:1.5}.view-game .lesson-side .lesson-panel{padding:11px 13px}.view-game .lesson-actions .btn{padding:7px 10px}.view-game .game-layout.is-lesson{grid-template-columns:minmax(180px,1fr) minmax(210px,.95fr)}}
@media(max-height:500px) and (min-width:481px) and (max-width:700px){.paged-grid,.academy-grid.paged-grid,.puzzle-grid.paged-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.view-home .mode-card h3{font-size:16px}.view-home .mode-card p{font-size:8px}.setup-grid{grid-template-columns:1fr}.setup-visual{display:none}.view-tournaments .cup h3{font-size:19px}}
.view-game .game-top>div{min-width:0}.view-game .game-top h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.view-game .game-top>.btn{flex-shrink:0}.sidebar nav .nav-item{min-height:0}
/* Final responsive polish for completed game actions and compact phones. */
.mobile-settings{display:none}.game-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-shrink:0}.game-top-actions .btn{flex-shrink:0}.view-game .game-top p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.mobile-settings{display:inline-flex}}
@media(max-width:480px){.view-home .hero-scene{transform:scale(.9);transform-origin:center right;margin-right:2px}.game-top-actions{gap:4px}.game-top-actions .btn{font-size:9px;padding:7px 8px;gap:5px}.game-top-actions .btn svg{width:13px;height:13px}}
@media(max-width:480px) and (max-height:650px){.view-play .page-intro{padding-top:13px;padding-bottom:12px}.view-play .page-intro p{display:none}.view-play .page-intro h1{font-size:27px}.view-play .page-intro .eyebrow{margin-bottom:7px}.view-play .setup-panel{padding:12px 13px}.view-play .setup-panel .field-group{margin-top:8px}.view-play .setup-panel .field-label{margin-bottom:6px}.view-play .setup-panel .choice{padding:7px 5px;font-size:10px}.view-play .setup-panel>.btn{margin-top:10px;padding:9px}.view-play .setup-panel .level-note{margin-top:5px;min-height:23px;font-size:9px;line-height:1.45}.view-tournaments .page-intro{padding:14px 0 12px}.view-tournaments .page-intro p{display:none}.view-tournaments .page-intro h1{font-size:28px}.view-tournaments .cup{padding:10px;grid-template-columns:39px minmax(0,1fr) auto;column-gap:8px;row-gap:3px}.view-tournaments .cup>.trophy-art{height:44px;width:38px}.view-tournaments .cup h3{font-size:19px;line-height:1.15}.view-tournaments .cup>.btn{font-size:8px;padding:8px 7px;gap:4px}.view-tournaments .cup>.btn svg{width:11px;height:11px}.view-tournaments .cup .cup-meta{font-size:7px;gap:1px}.view-tournaments .cup .tag{font-size:5px;top:5px;right:7px}.view-tournaments .tournament-rules{font-size:7px;margin:8px 0;gap:5px 11px}.view-tournaments .storage-note{font-size:7px;margin:5px 0}.view-home .hero-scene{transform:scale(.84)}.game-top-actions .btn{font-size:8px;padding:6px;gap:4px}.game-top-actions .btn svg{width:11px;height:11px}}
@media(max-height:500px) and (min-width:481px){.game-top-actions{gap:6px}.game-top-actions .btn{padding:6px 9px;font-size:9px;gap:5px}.game-top-actions .btn svg{width:13px;height:13px}}
