.splash-screen{position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden;background:#000;padding-top:env(safe-area-inset-top,0);padding-bottom:env(safe-area-inset-bottom,0);padding-left:env(safe-area-inset-left,0);padding-right:env(safe-area-inset-right,0)}.splash-video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1}@media (max-width: 768px){.splash-video{object-fit:contain;background:#000;width:100dvw;height:100dvh}}.btn-sound-toggle{position:absolute;top:16px;right:16px;z-index:3;width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.6);background:#0006;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;transition:all .2s;color:#fff}.btn-sound-toggle:hover{background:#0009;border-color:#ffffffe6;transform:scale(1.1)}.btn-sound-toggle:active{transform:scale(.95)}.splash-background{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1}.splash-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000000a6;z-index:2}.splash-content{position:absolute;z-index:3;bottom:15%;left:0;right:0;display:flex;justify-content:center;padding:0 20px}.splash-buttons{display:flex;flex-direction:row;gap:16px;justify-content:center}.btn-splash{min-width:180px;padding:18px 36px;font-size:20px;font-weight:800;text-transform:uppercase;letter-spacing:2px;border:none;border-radius:12px;cursor:pointer;transition:transform .15s,box-shadow .15s;background:#eead18;color:#1a1a1a;box-shadow:0 4px 16px #eead184d}.btn-splash:hover{transform:translateY(-2px);box-shadow:0 6px 24px #eead1866}.btn-splash:active{transform:translateY(0)}.btn-play{animation:splash-button-glow 2s infinite}@keyframes splash-button-glow{0%,to{box-shadow:0 4px 16px #eead184d}50%{box-shadow:0 6px 24px #eead1880}}.animate-fadeIn{animation:fadeIn .6s ease-out}@media (max-width: 768px){.splash-content{bottom:20%}.splash-buttons{gap:12px}.btn-splash{min-width:140px;padding:14px 24px;font-size:17px;letter-spacing:1.5px}}@media (max-width: 480px){.splash-content{bottom:15%}.splash-buttons{gap:10px;flex-direction:column;align-items:center}.btn-splash{min-width:200px;padding:14px 24px;font-size:16px;letter-spacing:1px}}.polygon,.polygon-lobby{color:#f9edcd;background:#0e292d url(/world-art/courtyard.png) center/cover;min-height:100dvh;position:relative;font-family:inherit;isolation:isolate}.polygon:before,.polygon-lobby:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#07282fce,#0b22243d 55%,#071c26d6);z-index:-1;pointer-events:none}.range-header,.range-other>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;position:relative;z-index:4;background:#071f29a8}.range-header>div{display:grid;gap:4px;text-align:center}.range-header small{font-size:10px;letter-spacing:2px;color:#f2cd82}.range-header strong{font-size:18px}.range-header button{margin:0;color:#fff3d2;background:#123a42;border:1px solid #bfa76c}.polygon .polygon-lobby{min-height:calc(100dvh - 90px);background:none;display:flex;align-items:center;justify-content:flex-end;padding:40px 6%;gap:40px}.polygon .polygon-lobby:before{display:none}.range-lobby-hero{position:absolute;left:7%;bottom:3%;width:min(34vw,400px);pointer-events:none;filter:drop-shadow(0 20px 14px #081a32aa)}.range-card{width:min(430px,100%);padding:30px;background:linear-gradient(140deg,#fff7dc,#e5d5ad);border:1px solid #e9c571;border-radius:18px;box-shadow:0 20px 60px #061b2780;color:#153940;position:relative;z-index:2}.range-card h1{font-size:34px;line-height:1.08;margin:12px 0 18px}.range-card p{line-height:1.5;margin:13px 0}.range-card button{display:block;width:100%;margin-top:12px}.range-card>small{display:block;margin-top:16px;line-height:1.5;color:#576450}.range-power{padding:14px;border-left:4px solid #be8b32;background:#ffecc0}.range-power p{margin:6px 0 0}.range-target-key{display:grid;grid-template-columns:1fr 1fr;font-size:12px;gap:8px;margin:20px 0}.range-record{font-size:20px;font-weight:800}.range-other .range-card{margin:8vh 6% 0 auto}.range-score{font-size:56px;font-weight:900;color:#875620}.range-score small{font-size:14px;font-weight:500}.range-comparison{display:flex;gap:26px;padding:14px 0;border-top:1px solid #b9a877;border-bottom:1px solid #b9a877}.range-comparison span{display:grid;gap:5px;font-size:12px}.range-comparison strong{font-size:24px}.range-medal{background:#fff4c5;padding:12px;border-radius:8px;font-weight:800}.range-hud{display:flex;justify-content:center;gap:50px;padding:14px 18px;background:#0b2a32dd;border-bottom:1px solid #dfc0855c}.range-hud span{display:grid;gap:3px;text-align:center}.range-hud small{font-size:10px;letter-spacing:1px;color:#d9c58f}.range-hud strong{font-size:25px}.range-hud .range-urgent{color:#ffbe80}.range-stage{position:relative;width:min(1100px,100%);aspect-ratio:1000/590;max-height:calc(100dvh - 205px);margin:auto;overflow:hidden;background:linear-gradient(180deg,#1c576046,#5a78642c 60%,#58432880);border-bottom:2px solid #e2bd7166}.range-stage canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:3;touch-action:none;cursor:crosshair;outline-offset:-4px}.range-stage canvas:focus-visible{outline:3px solid #ffe4a1}.range-lane{position:absolute;top:9%;right:4%;bottom:39%;left:42%;border:1px solid #f0d59e66;border-radius:42%;transform:rotate(-6deg);background:#11313e28}.range-shooting-hero{position:absolute;left:3%;bottom:-2%;width:29%;z-index:2;pointer-events:none;filter:drop-shadow(0 13px 7px #0c202ea0)}.range-callout{position:absolute;bottom:18px;right:6%;color:#fff5cc;font-size:17px;font-weight:700;pointer-events:none;z-index:4;text-shadow:0 2px 5px #132d32}.range-instruction{text-align:center;margin:12px;padding:0 16px;font-size:13px;color:#f4dfb5}.range-pause{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#061e31b8;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);display:grid;place-items:center;padding:22px}.officer-body-split{clip-path:inset(54% 0 0 0)}.officer-aim-rig{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:46% 53%;transform:rotate(var(--range-aim, var(--aim-angle, 0deg)));transition:transform .08s linear;will-change:transform}.officer-aim-rig>img{width:100%;height:100%;object-fit:contain;clip-path:inset(0 0 45.9% 0)}.range-shooting-hero .actor-rig{animation:range-breath 2.6s ease-in-out infinite}.range-stage[data-attack-phase=charge] .officer-aim-rig{filter:brightness(1.08)}.range-stage[data-attack-phase=fire] .officer-aim-rig{transform:rotate(calc(var(--range-aim, 0deg) - 4deg)) translate(-6px,3px)}.range-stage[data-attack-phase=fire] .actor-rig{animation:range-recoil .18s ease-out}.range-stage[data-attack-phase=impact]{box-shadow:inset 0 0 80px #ffd66b25}@keyframes range-breath{0%,to{transform:translateY(0) rotate(-.3deg)}50%{transform:translateY(-3px) rotate(.4deg)}}@keyframes range-recoil{0%{transform:translate(-7px,3px) rotate(-1deg)}to{transform:translate(0)}}.range-upgrade-actions{position:absolute;bottom:24px;left:50%;transform:translate(-50%);display:flex;gap:12px;z-index:5}.range-upgrade-actions .upgrade-done{position:static;transform:none;margin:0}.range-upgrade-actions .lesson-secondary{background:#fff2ce;color:#234648;padding:14px 20px;border-radius:12px;font-weight:800}@media (max-width: 700px){.range-header{padding:10px;gap:7px}.range-header strong{font-size:13px}.range-header small{font-size:8px;letter-spacing:1px}.range-header button{padding:9px;font-size:12px}.range-hud{gap:0;justify-content:space-around;padding:12px 5px}.range-hud strong{font-size:20px}.range-hud small{font-size:8px}.range-stage{aspect-ratio:3/4;max-height:calc(100dvh - 200px);min-height:340px}.range-shooting-hero{width:44%;left:-1%;bottom:0}.range-callout{font-size:13px;right:5%;bottom:12px;max-width:48%;text-align:right}.range-lane{top:11%;right:3%;bottom:40%;left:42%}.polygon .polygon-lobby{padding:230px 16px 24px;display:block;min-height:calc(100dvh - 66px)}.range-lobby-hero{width:175px;left:calc(50% - 87px);bottom:auto;top:0}.range-card{width:100%;padding:22px}.range-card h1{font-size:28px}.range-card>small{font-size:11px}.range-other .range-lobby-hero{top:70px}.range-other .range-card{margin:245px 16px 0;width:calc(100% - 32px)}.range-upgrade-actions{width:90%;flex-direction:column;bottom:18px}.range-instruction{font-size:11px}}@media (prefers-reduced-motion: reduce){.range-shooting-hero .actor-rig{animation:none}.officer-aim-rig{transition:none}}.range-tier{display:inline-block;color:#94652a;font-size:.7em;vertical-align:middle;border:1px solid #b89a60;border-radius:8px;padding:5px 10px;margin-left:4px}.range-result-stats{display:flex;gap:24px;align-items:center;margin:22px 0;font-size:30px;color:#8a5b25}.range-best-blast{display:flex;align-items:center;justify-content:space-between;gap:18px;border-block:1px solid #c6ae76;padding:16px 0}.range-best-blast span{font-size:11px;letter-spacing:.8px;font-weight:800}.range-best-blast strong{font-size:25px}.range-tested{color:#846016;font-weight:800}.range-card .range-power{margin:18px 0;padding:14px}.range-result-actions{margin-top:20px}.range-hud{gap:65px;padding:16px}.range-hud strong{font-size:24px}.range-lane{border:none;border-radius:0;background:linear-gradient(180deg,#052d3933,transparent)}.range-stage[data-attack-phase=impact][data-weapon-level="5"]{box-shadow:inset 0 0 110px #ffc45345}.range-shooting-hero .officer-body-split{clip-path:inset(46% 0 0 0)}@media (max-width: 700px){.range-hud{gap:16px;padding:13px 7px}.range-hud strong{font-size:19px}.range-result-stats{font-size:26px;gap:24px}.range-best-blast strong{font-size:22px}.polygon .polygon-lobby{padding-top:235px}.range-card .eyebrow{color:#886023}.range-stage{max-height:calc(100dvh - 160px)}}.energy-game{min-height:100dvh;background:linear-gradient(#0b2f40db,#10283aee),url(/world-art/courtyard.png) center/cover;color:#fff1cd;padding:16px;box-sizing:border-box}.energy-game header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.energy-game button{min-height:48px;border-radius:12px;border:2px solid #e1c67b;background:#fff1cd;color:#173d43;font-weight:700}.energy-game>p{text-align:center;padding:10px}.energy-stage{position:relative;width:min(1100px,100%);height:min(64dvh,620px);min-height:360px;margin:auto;overflow:hidden;background:radial-gradient(ellipse at 70% 40%,#285365aa,transparent);border:1px solid #bdd4ca44;border-radius:20px}.energy-actor{position:absolute;width:26%;height:72%;left:2%;bottom:2%}.energy-actor .hero-actor{width:100%;height:100%}.energy-target{position:absolute;width:64px;height:64px;transform:translate(-50%,-50%);font-size:30px;touch-action:none;z-index:3;box-shadow:0 0 20px #ffe28c44}.energy-target:focus-visible{outline:4px solid #59dcac;outline-offset:4px}.energy-links,.energy-effects{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.energy-links line{stroke:#c2eaff66;stroke-width:.4;stroke-dasharray:1 2}.energy-effects{z-index:4;filter:drop-shadow(0 0 4px #ffdf81)}.energy-mage .energy-effects{filter:drop-shadow(0 0 5px #62ceff)}.energy-charge{width:min(440px,90%);margin:12px auto;text-align:center}.energy-meter{position:relative;height:24px;background:#173645;border:1px solid #dbca93;border-radius:8px;margin-top:8px;overflow:hidden}.energy-meter i{position:absolute;height:100%;background:#48b48a}.energy-meter b{position:absolute;width:6px;height:100%;background:#fff}.energy-lobby{display:flex;gap:24px;align-items:center;box-sizing:border-box}.energy-lobby>div{flex:1;min-width:0}.energy-lobby-actor{height:65dvh;max-width:340px}.energy-lobby button{display:block;margin:12px 0;padding:14px}.energy-lobby-actor .hero-actor{height:100%;width:100%}@media (max-width:700px){.energy-game{padding:10px}.energy-game header span{font-size:12px}.energy-stage{height:58dvh}.energy-target{width:56px;height:56px}.energy-actor{width:33%;height:51%;left:-2%}.energy-lobby{flex-direction:column}.energy-lobby-actor{min-height:260px;width:200px;order:-1;max-height:32dvh}.energy-lobby .hero-actor{height:260px}.energy-game>p{font-size:14px}.energy-game header strong{font-size:14px}}.polygon-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1000px}.polygon-choice{border:1px solid #e0c57e;border-radius:18px;padding:24px;background:#153e49d9}.polygon-choice button{padding:14px;margin-top:16px}.polygon-choice>span{font-size:32px}.polygon-choice p{min-height:48px}@media (max-width:700px){.polygon-choices{grid-template-columns:1fr}}.energy-stage .energy-actor{height:auto;aspect-ratio:1086/1448}.energy-stage .energy-actor .hero-actor,.hero-task-action .task-actor .hero-actor{height:auto;aspect-ratio:var(--actor-ratio)}.energy-game .physical-target{width:70px;height:86px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;min-height:56px;transition:none;filter:drop-shadow(0 5px 4px #061c2588)}.physical-target svg{display:block;width:100%;height:100%;pointer-events:none}.energy-inventor .physical-target{pointer-events:none}.energy-stage{touch-action:none;isolation:isolate}.energy-game header button{min-width:48px;padding:0 12px}.energy-target.target-hit{animation:target-overload .65s ease-out both;pointer-events:none}.impact-burn{position:absolute;width:28px;height:28px;left:50%;top:38%;transform:translate(-50%,-50%);border-radius:50%;background:#fff8d4;box-shadow:0 0 12px 8px #ffc335}.energy-mage .impact-burn{background:#e4ffff;box-shadow:0 0 18px 10px #4ed5ff}.impact-sparks{position:absolute;left:50%;top:40%;width:5px;height:5px;border-radius:50%;background:#fff4b0;box-shadow:24px -24px #ffe591,-25px 15px #ffd369,34px 22px #fff8ce,-30px -28px #ffcf70;animation:sparks-out .6s ease-out both}.energy-feedback{position:absolute;z-index:8;left:50%;top:3%;transform:translate(-50%);display:grid;justify-items:center;gap:3px;padding:8px 22px;border-radius:15px;background:#0a243ddd;color:#fff1b0;pointer-events:none;animation:score-pop 1.2s ease-out both;min-width:110px;text-align:center}.energy-feedback strong{font-size:23px}.energy-feedback span{font-size:28px;font-weight:900;color:#ffe18c}.feedback-miss{color:#e2f5ff}.energy-reticle{position:absolute;width:66px;height:66px;transform:translate(-50%,-50%);border-radius:50%;z-index:7;pointer-events:none;padding:4px;box-sizing:border-box;filter:drop-shadow(0 0 3px #001d2f)}.energy-reticle:after{content:"";position:absolute;top:6px;right:6px;bottom:6px;left:6px;border:2px solid #fff0b2;border-radius:50%;background:#173a4933}.energy-reticle i,.energy-reticle b{position:absolute;background:#fff3c8;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%)}.energy-reticle i{width:20px;height:2px}.energy-reticle b{height:20px;width:2px}.reticle-charging{box-shadow:0 0 16px #ffdc8588}.energy-meter i{background:linear-gradient(90deg,#806839,#d6ac4f,#ffe9a3);transition:width .04s linear}.charge-labels{display:flex;justify-content:space-between;font-size:12px;margin-top:5px;color:#f5dfab}.energy-guide h2{text-align:center}.ghost-demo{position:relative;height:130px;background:#183e52;border-radius:18px;overflow:hidden;margin:18px 0}.ghost-object{position:absolute;width:36px;height:44px;border:4px solid #d8c590;border-radius:8px;background:#467e96;top:40px}.ghost-object.first{left:20%}.ghost-object.second{left:70%}.ghost-ray{position:absolute;top:61px;left:28%;width:43%;height:5px;background:#b6f4ff;box-shadow:0 0 12px #3ddeff;animation:ghost-shot 3s infinite}.ghost-hand{position:absolute;left:21%;top:55px;font-size:40px;color:#fff;animation:ghost-tap 3s infinite}.ghost-inventor .ghost-ray{background:#ffe28c;box-shadow:0 0 15px #ffb134}.ghost-inventor .ghost-hand{animation:ghost-aim 3s infinite}.new-upgrade-note{color:#ffdd82;font-weight:700}.polygon-choice small{display:block;line-height:1.5;color:#ffe8b1}.energy-game .energy-links{opacity:.6}@keyframes target-overload{0%{filter:brightness(2) drop-shadow(0 0 15px #8eeaff);transform:translate(-50%,-50%) rotate(-7deg)}20%{transform:translate(-50%,-50%) rotate(8deg)}40%{transform:translate(-50%,-50%) rotate(-6deg);opacity:1}to{transform:translate(-50%,-40%) scale(.5) rotate(12deg);opacity:0;filter:brightness(.2)}}@keyframes sparks-out{to{transform:scale(2.4);opacity:0}}@keyframes score-pop{0%{opacity:0;scale:.85}15%,75%{opacity:1;scale:1}to{opacity:0;translate:0 -12px}}@keyframes ghost-shot{0%,45%,90%,to{opacity:0}55%,75%{opacity:1}}@keyframes ghost-tap{0%,to{transform:translateY(25px);opacity:0}25%,45%{transform:translateY(0);opacity:1}65%{opacity:0}}@keyframes ghost-aim{0%{transform:translate(-40px);opacity:0}20%{opacity:1}45%,65%{transform:translate(80px);opacity:1}90%,to{opacity:0;transform:translate(80px)}}@media (max-width:700px){.energy-game .physical-target{width:60px;height:74px}.energy-reticle{width:70px;height:70px}.energy-feedback strong{font-size:18px}.energy-feedback span{font-size:23px}.energy-game>p{min-height:40px}.energy-stage{min-height:330px}.energy-lobby h1{font-size:28px}.energy-lobby-actor{min-height:220px}}@media (prefers-reduced-motion:reduce){.ghost-hand,.ghost-ray,.target-hit,.impact-sparks,.energy-feedback{animation-duration:.01ms!important}.ghost-ray,.energy-feedback{opacity:1}}@keyframes score-pop{0%{opacity:1;scale:.95}15%,80%{opacity:1;scale:1}to{opacity:0;translate:0 -12px}}.energy-game .product-panel .world-button{background:#216b5a;color:#fff2cd;border-color:#bdd2a1}.energy-feedback{background:#092236f5;text-shadow:0 1px 2px #000;box-shadow:0 2px 12px #061b2a77}.gosha-world .task-layout{align-items:start;grid-template-rows:auto 1fr!important;row-gap:0!important}.task-layout>.training-task-header{grid-column:2;grid-row:1;padding-bottom:0}.task-layout>.game-board-section{grid-column:1;grid-row:1 / span 2;align-self:start}.task-layout>.game-sidebar{grid-column:2;grid-row:2;align-self:start}.training-task-header p{margin:0;line-height:1.4;font-size:16px}.training-task-header .task-step{font-size:14px;font-weight:750;color:#1d695c}.training-task-header .turn-banner{margin:0;font-size:13px;max-width:100%;white-space:normal}.tactic-demo{border:1px solid #d6caa8;border-radius:12px;background:#f7f4e9;overflow:hidden;color:#173c41}.tactic-demo button{background:transparent;color:#174450;border:0;box-shadow:none;cursor:pointer}.tactic-demo .demo-toggle{width:100%;display:flex;justify-content:space-between;padding:10px;font-weight:700;min-height:40px;text-align:left}.demo-diagram{display:flex;gap:9px;padding:0 10px 8px;align-items:center}.demo-diagram svg{width:138px;height:138px;flex:0 0 138px;border:2px solid #506b5c;border-radius:4px}.demo-diagram p{font-size:13px;line-height:1.4}.tactic-demo>small{display:block;padding:0 10px;color:#536961;font-size:11px}.tactic-demo .demo-replay{display:block;padding:8px 10px;font-size:12px;text-decoration:underline}.task-layout .challenge-panel{padding-top:8px;gap:10px}.task-layout .lesson-actions{display:flex;flex-direction:column;gap:8px}.task-layout .piece-guide{margin-top:4px}.task-layout .lesson-hint{margin:0;background:#f7edcd;border-radius:10px;padding:12px;color:#314d43}.mate-recognition{display:grid;gap:8px}.gate-brief{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:15px}@media (max-width:1000px){.gosha-world .task-layout{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;gap:12px!important}.task-layout>.training-task-header{grid-column:1;grid-row:1}.task-layout>.game-board-section{grid-column:1;grid-row:2}.task-layout>.game-sidebar{grid-column:1;grid-row:3}.training-task-header{gap:8px!important}.training-task-header h1{font-size:23px}.demo-diagram svg{width:100px;height:100px;flex-basis:100px}.training-task-header .demo-diagram p{font-size:13px}.tactic-demo .demo-toggle{padding:8px 10px}.tactic-demo .demo-replay{min-height:36px}}.demo-king-search{animation:king-seeks-exit .7s ease-in-out 2}@keyframes king-seeks-exit{50%{translate:-3px 3px}}@media (prefers-reduced-motion:reduce){.demo-king-search{animation:none}.demo-diagram text{transition:none!important}}@media (min-width:1001px){.task-layout .training-task-header{gap:7px;padding-top:4px}.task-layout .training-task-header h1{font-size:22px;line-height:1.2}.task-layout .training-task-header p{font-size:14px;line-height:1.35}.task-layout .lesson-number{font-size:11px}.task-layout .challenge-panel{gap:6px;padding:8px 8px 0}.task-layout .lesson-actions{gap:4px}.task-layout .lesson-actions button{font-size:13px;min-height:32px;padding:6px 10px;line-height:1.25}.task-layout .lesson-actions .world-button{min-height:38px;font-size:14px;padding:8px 12px}.task-layout .demo-toggle{min-height:34px;padding:7px 9px;font-size:13px}.gosha-world .task-layout:has(.battle-video-wrapper){height:calc(var(--task-grid-height) + 58px);padding-bottom:40px!important;grid-template-rows:auto minmax(0,1fr)!important}.task-layout:has(.battle-video-wrapper)>.game-sidebar{align-self:stretch;min-height:0;height:100%;gap:10px;overflow:hidden}.task-layout:has(.battle-video-wrapper) .tactic-demo{display:none}.task-layout:has(.battle-video-wrapper) .challenge-panel{flex:0 1 auto;min-height:0;max-height:calc(100% - 130px);overflow-y:auto}.task-layout .battle-video-wrapper{flex:1 1 0;min-height:0;max-height:none;width:100%;padding:6px;align-items:stretch;margin-top:auto}.task-layout .battle-video-wrapper video{width:100%;height:100%;min-height:0;max-width:100%;max-height:100%;object-fit:contain;box-shadow:none;border-radius:8px}}.chess-piece{width:100%;height:100%;display:flex;align-items:center;justify-content:center;transition:transform .15s ease;pointer-events:none}.piece-image{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3));transition:all .2s ease;pointer-events:none;transform-origin:center bottom;transform:scale(1.8)}.piece-white .piece-image{filter:drop-shadow(0 2px 3px rgba(0,0,0,.4))}.piece-black .piece-image{filter:drop-shadow(0 2px 3px rgba(255,255,255,.2))}.chess-piece.selected .piece-image{transform:scale(1.15);filter:drop-shadow(0 0 8px rgba(74,144,217,.8));animation:pieceSelect .2s ease-out}@keyframes pieceSelect{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1.15)}}.chess-piece.check .piece-image{animation:pieceCheck .5s ease-in-out infinite;filter:drop-shadow(0 0 10px rgba(239,83,80,.8))}@keyframes pieceCheck{0%,to{transform:translate(0)}25%{transform:translate(-3px) rotate(-2deg)}75%{transform:translate(3px) rotate(2deg)}}.chess-piece.last-move .piece-image{filter:drop-shadow(0 0 8px rgba(255,215,0,.6))}.chess-piece:hover .piece-image{transform:scale(1.08)}.piece-move{animation:pieceMove .3s ease-out}@keyframes pieceMove{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}.chess-piece.capturing-ghost .piece-image{opacity:.5;filter:drop-shadow(0 0 8px rgba(255,215,0,.6));animation:ghostFade .3s ease-out forwards}@keyframes ghostFade{0%{opacity:.7;transform:scale(1.8)}to{opacity:.3;transform:scale(1.6)}}.chess-piece.capturing-attacker .piece-image{animation:captureJump .3s ease-out forwards;filter:drop-shadow(0 0 12px rgba(255,215,0,.9))}@keyframes captureJump{0%{transform:scale(1.8);filter:drop-shadow(0 0 4px rgba(255,215,0,.4))}30%{transform:scale(2.1) translateY(-8px);filter:drop-shadow(0 6px 16px rgba(255,215,0,.8))}70%{transform:scale(2);filter:drop-shadow(0 0 12px rgba(255,215,0,.7))}to{transform:scale(1.8);filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}}.capture-ghost-trail{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:5}.ghost-trail-dot{position:absolute;width:40%;height:40%;border-radius:50%;background:radial-gradient(circle,rgba(255,215,0,.6) 0%,transparent 70%);animation:ghostTrailFade .3s ease-out forwards}@keyframes ghostTrailFade{0%{opacity:.7;transform:scale(1)}to{opacity:0;transform:scale(.3)}}.chess-piece.capturing-target .piece-image{animation:captureShakeVanish .3s ease-out forwards}@keyframes captureShakeVanish{0%{opacity:1;transform:scale(1.8) translate(0);filter:drop-shadow(0 0 4px rgba(239,83,80,.4))}20%{transform:scale(1.9) translate(-3px);filter:drop-shadow(0 0 10px rgba(239,83,80,.7))}40%{transform:scale(1.9) translate(3px);filter:drop-shadow(0 0 12px rgba(239,83,80,.8))}60%{transform:scale(1.9) translate(-2px);opacity:.8}80%{transform:scale(1.5) translate(1px);opacity:.4}to{opacity:0;transform:scale(.5) translateY(-20px);filter:drop-shadow(0 0 20px rgba(239,83,80,.3))}}.capture-impact-flash{position:absolute;top:50%;left:50%;width:120%;height:120%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,255,200,.9) 0%,rgba(255,200,50,.4) 40%,transparent 70%);animation:impactFlash .25s ease-out forwards;pointer-events:none;z-index:10}@keyframes impactFlash{0%{opacity:1;transform:translate(-50%,-50%) scale(.3)}50%{opacity:.8;transform:translate(-50%,-50%) scale(1.2)}to{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}.capture-stars{position:absolute;top:50%;left:50%;width:100%;height:100%;transform:translate(-50%,-50%);pointer-events:none;z-index:8}.capture-star{position:absolute;font-size:14px;animation:starBurst .4s ease-out forwards}@keyframes starBurst{0%{opacity:1;transform:translate(0) scale(.5)}to{opacity:0;transform:translate(var(--star-x),var(--star-y)) scale(1.2)}}@keyframes pieceIdleSway{0%,to{transform:rotate(0) translateY(0)}25%{transform:rotate(1deg) translateY(-1px)}75%{transform:rotate(-1deg) translateY(1px)}}@keyframes pieceIdleBounce{0%,to{transform:translateY(0)}50%{transform:translateY(-3px)}}@keyframes pieceIdleBreathe{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes pieceIdleBlink{0%,48%,52%,to{filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}50%{filter:drop-shadow(0 2px 3px rgba(0,0,0,.3)) brightness(.95)}}.chess-piece:not(.selected):not(.check):not(.last-move) .piece-image{animation:pieceIdleSway 3s ease-in-out infinite,pieceIdleBounce 2s ease-in-out infinite,pieceIdleBreathe 4s ease-in-out infinite}.chess-piece.piece-p:not(.selected):not(.check) .piece-image{animation:pieceIdleSway 2.5s ease-in-out infinite,pieceIdleBounce 1.8s ease-in-out infinite,pieceIdleBreathe 3.5s ease-in-out infinite}.chess-piece.piece-k:not(.selected):not(.check) .piece-image{animation:pieceIdleSway 4s ease-in-out infinite,pieceIdleBreathe 5s ease-in-out infinite}.chess-piece.piece-q:not(.selected):not(.check) .piece-image{animation:pieceIdleSway 3.5s ease-in-out infinite,pieceIdleBounce 2.5s ease-in-out infinite,pieceIdleBreathe 4.5s ease-in-out infinite}.chess-piece.piece-n:not(.selected):not(.check) .piece-image{animation:pieceIdleSway 2s ease-in-out infinite,pieceIdleBounce 1.5s ease-in-out infinite}@media (max-width: 768px){.piece-image{width:90%;height:90%}.chess-piece:not(.selected):not(.check):not(.last-move) .piece-image{animation:pieceIdleSway 4s ease-in-out infinite,pieceIdleBreathe 5s ease-in-out infinite}}.chess-piece{position:relative}.piece-identity{position:absolute;bottom:1px;right:1px;z-index:8;display:grid;place-items:center;min-width:16px;height:18px;padding:0 2px;border:1px solid #826b46;border-radius:4px;background:#fff4d5;color:#152a36;font:18px/1 Segoe UI Symbol,serif;box-shadow:0 1px 2px #0005;pointer-events:none}.piece-black .piece-identity{background:#23353d;color:#fff2cf;border-color:#e6ce96}.square-container{position:relative}.piece-name-tip{display:none;position:absolute;left:50%;bottom:100%;transform:translate(-50%);z-index:1000;background:#173c43;color:#fff4d4;border:1px solid #e9cc85;border-radius:6px;padding:5px 7px;white-space:nowrap;font-size:12px;pointer-events:none}.square-container:hover .piece-name-tip,.square-container.piece-tapped .piece-name-tip{display:block}.square-container:has(.piece-name-tip):hover,.square-container.piece-tapped{z-index:25}.square-container .piece-name-tip{top:0;bottom:auto;left:0;transform:none;max-width:150px;font-size:11px}.square-container:last-child .piece-name-tip{left:auto;right:0}.check-animation-overlay{position:fixed;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:1100;display:flex;align-items:center;justify-content:center}.check-animation-scene{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.king-reaction{position:relative;display:flex;flex-direction:column;align-items:center;animation:kingReactionBounce .5s ease-out}@keyframes kingReactionBounce{0%{opacity:0;transform:scale(.5) translateY(-50px)}50%{transform:scale(1.2) translateY(0)}to{opacity:1;transform:scale(1) translateY(0)}}.king-crown{font-size:48px;position:relative;animation:crownShake .4s ease-out}@keyframes crownShake{0%,to{transform:rotate(0)}25%{transform:rotate(-15deg)}75%{transform:rotate(15deg)}}.helmet-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:60px;animation:helmetDrop .3s ease-out forwards}@keyframes helmetDrop{0%{opacity:0;transform:translate(-50%,-100%)}to{opacity:1;transform:translate(-50%,-50%)}}.king-face{font-size:64px;margin-top:-10px;animation:faceReaction .5s ease-out}@keyframes faceReaction{0%{opacity:0;transform:scale(.8)}50%{transform:scale(1.1)}to{opacity:1;transform:scale(1)}}.king-reaction.angry .king-face{animation:angryFace .5s ease-out}@keyframes angryFace{0%,to{transform:scale(1);filter:brightness(1)}50%{transform:scale(1.2);filter:brightness(1.3)}}.king-reaction.angry .king-crown{animation:angryCrown .3s ease-in-out infinite}@keyframes angryCrown{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.king-reaction.scared .king-face{animation:scaredFace .4s ease-out}@keyframes scaredFace{0%{transform:scale(1) translateY(0)}30%{transform:scale(1.3) translateY(-20px)}to{transform:scale(1) translateY(0)}}.king-reaction.scared .king-crown{animation:scaredCrown .2s ease-in-out infinite}@keyframes scaredCrown{0%,to{transform:translateY(0)}50%{transform:translateY(-3px)}}.king-reaction.cry .tear{width:12px;height:20px;background:#3498db;border-radius:0 50% 50%;position:absolute;top:60px;right:30px;opacity:0;animation:tearFall .8s ease-out .2s forwards}@keyframes tearFall{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(100px) scale(.8)}}.king-reaction.explode .explosion-lines{position:absolute;width:200px;height:200px;pointer-events:none}.king-reaction.explode .explosion-lines:before,.king-reaction.explode .explosion-lines:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100px;height:100px;border-radius:50%;opacity:0;animation:explosionRing .5s ease-out forwards}.king-reaction.explode .explosion-lines:before{background:radial-gradient(circle,#f39c12 0%,transparent 70%);animation-delay:.1s}.king-reaction.explode .explosion-lines:after{background:radial-gradient(circle,#e74c3c 0%,transparent 70%);animation-delay:.2s}@keyframes explosionRing{0%{opacity:1;transform:translate(-50%,-50%) scale(.5)}to{opacity:0;transform:translate(-50%,-50%) scale(2.5)}}.king-reaction.explode .king-face{animation:explodeFace .5s ease-out}@keyframes explodeFace{0%{transform:scale(1)}50%{transform:scale(1.5);filter:brightness(2)}to{transform:scale(1)}}.king-reaction.helmet .king-crown{animation:helmetCrownShake .3s ease-out}@keyframes helmetCrownShake{0%{transform:translateY(0)}50%{transform:translateY(10px)}to{transform:translateY(0)}}.check-text{position:absolute;top:20%;font-size:56px;font-weight:700;color:#e74c3c;text-shadow:3px 3px 0 #f39c12,-1px -1px 0 #fff;animation:checkTextPop .6s ease-out}@keyframes checkTextPop{0%{opacity:0;transform:scale(0) rotate(-180deg)}50%{opacity:1;transform:scale(1.2) rotate(0)}to{opacity:0;transform:scale(1) rotate(0)}}@media (max-width: 768px){.king-crown{font-size:36px}.king-face{font-size:48px}.check-text{font-size:40px}}.checkmate-animation-overlay{position:fixed;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:1200;display:flex;align-items:center;justify-content:center;background:#0000004d}.checkmate-animation-scene{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:space-around;padding:20px}.winner-side{display:flex;flex-direction:column;align-items:center;animation:winnerEnter .8s ease-out}@keyframes winnerEnter{0%{opacity:0;transform:translate(-100px) scale(.8)}to{opacity:1;transform:translate(0) scale(1)}}.winner-king{position:relative;display:flex;flex-direction:column;align-items:center;animation:winnerJump .6s ease-out infinite}@keyframes winnerJump{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.winner-crown{font-size:56px;animation:crownGlow .5s ease-in-out infinite}@keyframes crownGlow{0%,to{filter:brightness(1) drop-shadow(0 0 10px #f1c40f)}50%{filter:brightness(1.3) drop-shadow(0 0 20px #f39c12)}}.winner-face{font-size:72px;margin-top:-10px}.winner-celebration{position:relative;width:100px;height:100px}.confetti{position:absolute;width:100%;height:100%}.confetti:before,.confetti:after{content:"🎉";position:absolute;font-size:32px;animation:confettiFly 1s ease-out infinite}.confetti:before{left:0;animation-delay:0s}.confetti:after{right:0;animation-delay:.5s}@keyframes confettiFly{0%{opacity:1;transform:translateY(0) rotate(0) scale(1)}to{opacity:0;transform:translateY(-150px) rotate(360deg) scale(.5)}}.winner-text{margin-top:20px;font-size:28px;font-weight:700;color:#f1c40f;text-shadow:2px 2px 0 #000;animation:textPulse .8s ease-in-out infinite}@keyframes textPulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.loser-side{display:flex;flex-direction:column;align-items:center;animation:loserAppear .5s ease-out}@keyframes loserAppear{0%{opacity:0;transform:translate(100px)}to{opacity:1;transform:translate(0)}}.loser-king{position:relative;display:flex;flex-direction:column;align-items:center}.loser-crown{font-size:56px;position:relative}.loser-face{font-size:72px;margin-top:-10px}.loser-side.flag .loser-face{animation:sadFace .5s ease-out}@keyframes sadFace{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.white-flag{position:absolute;top:-20px;right:-40px;font-size:48px;animation:flagWave 1s ease-in-out infinite}@keyframes flagWave{0%,to{transform:rotate(-10deg)}50%{transform:rotate(10deg)}}.loser-side.suitcase .loser-face{animation:thinkingFace .5s ease-out}@keyframes thinkingFace{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.suitcase{position:absolute;bottom:-30px;font-size:48px;animation:suitcaseAppear .5s ease-out .3s forwards,suitcaseShake .3s ease-in-out infinite .8s;opacity:0}@keyframes suitcaseAppear{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}@keyframes suitcaseShake{0%,to{transform:translate(0)}50%{transform:translate(-5px)}}.loser-side.crown .crown-slide{position:absolute;top:0;left:0;font-size:56px;opacity:0;animation:crownSlide .8s ease-out .2s forwards}@keyframes crownSlide{0%{opacity:1;transform:translate(0) rotate(0)}to{opacity:0;transform:translate(50px,100px) rotate(180deg)}}.loser-side.crown .loser-crown{animation:crownLoosen .5s ease-out}@keyframes crownLoosen{0%,to{transform:rotate(0)}30%{transform:rotate(-15deg)}70%{transform:rotate(15deg)}}.loser-side.fall .loser-king{animation:theatricalFall 1s ease-out forwards}@keyframes theatricalFall{0%{opacity:1;transform:rotate(0) translateY(0)}30%{transform:rotate(-10deg) translateY(-20px)}to{opacity:.5;transform:rotate(-90deg) translateY(100px)}}.loser-side.fall .theatrical-fall{position:absolute;width:200px;height:200px}.theatrical-fall:before{content:"💫";position:absolute;font-size:40px;animation:starsCircle 1s ease-out .5s forwards;opacity:0}@keyframes starsCircle{0%{opacity:1;transform:rotate(0) translate(50px)}to{opacity:0;transform:rotate(360deg) translate(50px)}}.checkmate-text{position:absolute;top:15%;font-size:72px;font-weight:700;color:#f1c40f;text-shadow:4px 4px 0 #c0392b,-2px -2px 0 #fff;animation:checkmateTextBoom .8s ease-out}@keyframes checkmateTextBoom{0%{opacity:0;transform:scale(0) rotate(-180deg)}50%{opacity:1;transform:scale(1.3) rotate(0)}to{opacity:1;transform:scale(1) rotate(0)}}@media (max-width: 768px){.winner-crown,.loser-crown{font-size:40px}.winner-face,.loser-face{font-size:56px}.checkmate-text{font-size:48px;top:10%}.winner-text{font-size:20px}}.promotion-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.promotion-modal{background:#fff;border-radius:24px;padding:32px;box-shadow:0 20px 60px #0000004d;text-align:center;max-width:500px}.promotion-title{font-size:28px;font-weight:700;color:#212121;margin:0 0 8px}.promotion-subtitle{font-size:16px;color:#757575;margin:0 0 24px}.promotion-options{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.promotion-option{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 16px;background:#f5f5f5;border:3px solid transparent;border-radius:16px;cursor:pointer;transition:all .2s ease}.promotion-option:hover{background:#e8e8e8;border-color:#667eea;transform:translateY(-4px)}.promotion-option:active{transform:translateY(-2px)}.promotion-piece{width:64px;height:64px;display:flex;align-items:center;justify-content:center}.piece-icon{font-size:48px;line-height:1}.piece-white .piece-icon{color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.3)}.piece-black .piece-icon{color:#1a1a1a}.piece-label{font-size:14px;font-weight:600;color:#212121}@media (max-width: 600px){.promotion-options{grid-template-columns:repeat(2,1fr)}.promotion-piece{width:48px;height:48px}.piece-icon{font-size:36px}}.game-screen{min-height:100vh;min-height:100dvh;padding:12px;display:flex;align-items:center;justify-content:center;position:relative;overflow:clip}.game-background{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}.game-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#0006;z-index:1}.game-container{position:relative;z-index:2;max-width:1100px;width:100%;background:#fff;border-radius:24px;padding:16px;box-shadow:0 10px 40px #0003;display:grid;grid-template-columns:1fr 280px;gap:16px;align-items:start}.game-board-section{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-width:0}.game-sidebar{display:flex;flex-direction:column;gap:12px;justify-content:flex-start;min-width:0}.battle-video-wrapper{display:flex;justify-content:center;align-items:center;padding:12px;background:#000c;border-radius:12px}.battle-video-wrapper video{max-width:300px;max-height:300px;box-shadow:0 4px 20px #0000004d;border-radius:12px}.opponent-panel{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f5f5f5;border-radius:12px;margin-bottom:12px}.opponent-info{display:flex;align-items:center;gap:12px}.opponent-avatar-icon{width:48px;height:48px;object-fit:contain}.opponent-name-text{font-size:16px;font-weight:700;color:#212121;margin:0}.difficulty-text{font-size:13px;color:#757575;margin:0}.captured-pieces{display:flex;gap:4px;flex-wrap:wrap;max-width:120px}.captured-piece{font-size:18px}.captured-piece.captured-white,.captured-piece.captured-black{filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}.board-container{display:flex;justify-content:center;margin-bottom:0;position:relative;max-width:100%;overflow:clip}.board-wrapper{position:relative;display:flex;flex-direction:column;align-items:flex-start;z-index:1}.board-row{display:flex;align-items:center}.rank-label{width:20px;text-align:center;font-size:14px;font-weight:600;color:#757575;flex-shrink:0;margin-right:4px}.file-labels{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:var(--board-safe-size);padding-top:8px;margin-left:24px}.file-label{text-align:center;font-size:14px;font-weight:600;color:#757575}.square-container{width:calc(var(--board-safe-size) / 8);height:calc(var(--board-safe-size) / 8);display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.square-light{background:var(--board-light)}.square-dark{background:var(--board-dark)}.square{width:100%;height:100%;display:flex;align-items:center;justify-content:center;position:relative}.square.last-move{background:#ff06!important}.square.check{background:#ef535099!important;animation:shake .3s ease-in-out}.square.capture-from-highlight{background:#ffd7008c!important;animation:captureFromPulse .4s ease-out}@keyframes captureFromPulse{0%{background:#ffd700b3}to{background:#ffd7004d}}.square.capture-to-highlight{background:#ff64328c!important;animation:captureToPulse .5s ease-out}@keyframes captureToPulse{0%{background:#ff6432b3}to{background:#ff643233}}.board-wrapper.capture-shake{animation:boardShake .2s ease-out}@keyframes boardShake{0%,to{transform:translate(0)}25%{transform:translate(-3px)}50%{transform:translate(3px)}75%{transform:translate(-1px)}}.possible-move:after{content:"";position:absolute;width:28%;height:28%;background:#00000026;border-radius:50%;transition:all .15s}.square.possible-move:hover:after{background:#0000004d;transform:scale(1.2)}.capture-move:after{content:"";position:absolute;width:85%;height:85%;border:5px solid rgba(229,115,115,.8);border-radius:50%;background:transparent;animation:capturePulse 1.5s ease-in-out infinite}@keyframes capturePulse{0%,to{border-color:#e57373cc;transform:scale(1)}50%{border-color:#e5737366;transform:scale(1.05)}}.square.check:before{content:"⚠️";position:absolute;font-size:20px;top:-5px;right:-5px;animation:warningBlink 1s ease-in-out infinite}@keyframes warningBlink{0%,to{opacity:1}50%{opacity:.5}}.move-hint{position:absolute;width:28%;height:28%;background:#00000026;border-radius:50%}.capture-hint{position:absolute;width:85%;height:85%;border:5px solid rgba(229,115,115,.8);border-radius:50%}.piece{font-size:calc(var(--board-safe-size) / 10);cursor:pointer;transition:transform .1s;-webkit-user-select:none;user-select:none;z-index:1}.piece-white{color:#fff;text-shadow:0 0 2px #000,0 0 2px #000,1px 1px 2px rgba(0,0,0,.5)}.piece-black{color:#000;text-shadow:0 0 2px rgba(255,255,255,.5)}.piece.selected{transform:scale(1.15);animation:pop .2s ease-out}.piece:hover{transform:scale(1.1)}.player-panel{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f5f5f5;border-radius:12px;margin-bottom:12px}.player-info{display:flex;align-items:center;gap:10px}.turn-indicator{display:flex;align-items:center;gap:8px}.turn-dot{width:12px;height:12px;border-radius:50%;background:#bdbdbd;transition:background .3s}.turn-dot.active{background:var(--color-success);animation:pulse 1s infinite}.turn-text{font-size:16px;font-weight:600;color:#212121}.game-controls{display:flex;flex-direction:column;gap:12px}.game-controls .btn{width:100%}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@media (max-width: 1024px) and (min-width: 769px){.game-container{grid-template-columns:1fr 240px;padding:14px;gap:14px}.battle-video-wrapper video{max-width:220px;max-height:220px}.opponent-avatar-icon{width:40px;height:40px}.opponent-name-text{font-size:14px}.difficulty-text{font-size:12px}}@media (max-width: 768px){.game-screen{display:block;padding:4px;padding-bottom:max(4px,env(safe-area-inset-bottom,0));padding-left:max(4px,env(safe-area-inset-left,0));padding-right:max(4px,env(safe-area-inset-right,0));overflow:visible}.game-container{grid-template-columns:1fr;max-width:100%;width:100%;padding:6px;gap:8px;border-radius:16px}.game-board-section{margin-bottom:0;padding-left:0}.board-container{max-width:100%;overflow:visible;width:100%;display:flex;justify-content:center}.board-wrapper{width:min(100%,calc(100vw - 24px));max-width:calc(100dvh - 220px);aspect-ratio:1 / 1;height:auto;container-type:inline-size}.board-row{width:100%;position:relative}.square-container{width:12.5%;flex:0 0 12.5%;aspect-ratio:1 / 1;height:auto}.file-labels{width:100%;grid-template-columns:repeat(8,minmax(0,1fr));margin-left:0;padding-top:4px;padding-left:0}.file-label{font-size:9px}.rank-label{position:absolute;left:-16px;width:14px;font-size:9px;margin-right:0;z-index:2}.battle-video-wrapper video{max-width:180px;max-height:180px}.game-sidebar{width:100%;gap:8px;flex-direction:column;display:flex}.battle-video-wrapper{padding:6px;border-radius:8px}.battle-video-wrapper video{max-width:160px;max-height:160px;border-radius:8px}.opponent-panel,.player-panel{flex:1;min-width:0;padding:8px 10px;gap:8px}.game-controls{width:100%}.game-controls .btn{flex:1;max-width:none}.piece{font-size:10cqi}}@media (max-width: 480px){.battle-video-wrapper video{max-width:130px;max-height:130px}.opponent-avatar-icon{width:28px;height:28px}.opponent-name-text{font-size:13px}.difficulty-text{font-size:11px}.turn-text{font-size:12px}.captured-pieces{max-width:100px}.captured-piece{font-size:14px}.game-controls .btn{padding:10px 12px;font-size:13px}}@media (max-width: 375px){.file-label{font-size:8px}.rank-label{left:-14px;width:10px;font-size:8px}.battle-video-wrapper{padding:4px}.battle-video-wrapper video{max-width:100px;max-height:100px}.opponent-avatar-icon{width:24px;height:24px}.opponent-name-text{font-size:12px}}.locked-video-inline{background:linear-gradient(135deg,#1a1a2e,#16213e);border-radius:12px;padding:20px 16px;display:flex;flex-direction:column;align-items:center;gap:8px;border:2px solid rgba(255,255,255,.1)}.locked-icon-small{font-size:32px}.locked-title-small{color:#fff;font-size:14px;font-weight:700;text-align:center}.locked-desc-small{color:#ffffffb3;font-size:12px;text-align:center;line-height:1.4}.locked-btn-small{margin-top:8px;padding:8px 20px;background:linear-gradient(135deg,#0145a5,#003d91);color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:transform .2s}.locked-btn-small:hover{transform:scale(1.05)}.hero-select-screen{position:relative;width:100%;min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460)}.hero-select-bg{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 20% 50%,rgba(59,130,246,.15) 0%,transparent 50%),radial-gradient(circle at 80% 50%,rgba(139,92,246,.15) 0%,transparent 50%),radial-gradient(circle at 50% 80%,rgba(245,158,11,.1) 0%,transparent 50%);animation:bgPulse 8s ease-in-out infinite}@keyframes bgPulse{0%,to{opacity:.6}50%{opacity:1}}.hero-select-container{position:relative;z-index:1;width:100%;max-width:1100px;padding:clamp(1rem,3vw,2rem);display:flex;flex-direction:column;align-items:center;gap:clamp(1rem,3vw,2rem)}.hero-select-header{text-align:center}.hero-select-title{font-size:clamp(1.8rem,5vw,2.5rem);font-weight:800;color:#fff;margin:0 0 .5rem;text-shadow:0 0 30px rgba(245,158,11,.5);animation:titleGlow 2s ease-in-out infinite alternate}@keyframes titleGlow{0%{text-shadow:0 0 20px rgba(245,158,11,.3)}to{text-shadow:0 0 40px rgba(245,158,11,.7),0 0 60px rgba(245,158,11,.3)}}.hero-select-subtitle{font-size:1.1rem;color:#ffffffb3;max-width:500px;margin:0 auto;line-height:1.5}.hero-cards{display:flex;gap:clamp(.5rem,2vw,1rem);flex-wrap:wrap;justify-content:center;width:100%}.hero-card{position:relative;width:clamp(260px,28vw,300px);max-width:100%;padding:clamp(1rem,2vw,1.5rem);background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:24px;border:2px solid transparent;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden}.hero-card:hover{transform:translateY(-8px) scale(1.02);background:#ffffff1a;border-color:#ffffff4d}.hero-card.selected{transform:translateY(-8px) scale(1.05)}.hero-visual{position:relative;height:clamp(200px,35vw,380px);display:flex;align-items:center;justify-content:center;margin-bottom:1rem}.hero-avatar-big{font-size:clamp(3rem,8vw,5rem);position:relative;z-index:2;animation:heroIdle 3s ease-in-out infinite;display:flex;align-items:center;justify-content:center;width:clamp(150px,25vw,480px);height:clamp(150px,25vw,480px)}.hero-avatar-image{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 24px rgba(0,0,0,.4));border-radius:24px}.hero-avatar-video{width:100%;height:100%;object-fit:contain;border-radius:24px;filter:drop-shadow(0 8px 24px rgba(0,0,0,.4))}@keyframes heroIdle{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.hero-glow{position:absolute;width:100px;height:100px;border-radius:50%;filter:blur(30px);opacity:.4;animation:glowPulse 2s ease-in-out infinite alternate}@keyframes glowPulse{0%{opacity:.3;transform:scale(.8)}to{opacity:.6;transform:scale(1.2)}}.hero-weapon,.hero-magic,.hero-gadget,.hero-accessory{position:absolute;font-size:2rem;z-index:1;animation:floatIcon 4s ease-in-out infinite}.hero-weapon{right:20px;bottom:20px;transform:rotate(-45deg)}.hero-magic{top:10px;right:30px;animation-delay:.5s}.hero-gadget{bottom:20px;left:20px;animation-delay:1s}.hero-accessory{bottom:20px;right:20px}@keyframes floatIcon{0%,to{transform:translateY(0) rotate(0)}50%{transform:translateY(-15px) rotate(10deg)}}.hero-info{text-align:center}.hero-name{font-size:1.5rem;font-weight:700;margin:0 0 .5rem}.hero-description{font-size:.9rem;color:#fff9;margin:0 0 1rem;line-height:1.4}.hero-traits{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap}.trait{padding:.3rem .8rem;background:#ffffff1a;border-radius:20px;font-size:.85rem;color:#fffc}.hero-selected-badge{position:absolute;top:10px;right:10px;width:30px;height:30px;background:linear-gradient(135deg,#10b981,#059669);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:1.2rem;animation:badgePop .3s cubic-bezier(.4,0,.2,1)}@keyframes badgePop{0%{transform:scale(0)}to{transform:scale(1)}}.btn-hero-confirm{padding:1rem 3rem;font-size:1.3rem;font-weight:700;border:none;border-radius:16px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);background:linear-gradient(135deg,#4b5563,#374151);color:#ffffff80;min-width:280px}.btn-hero-confirm.active{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;box-shadow:0 8px 30px #f59e0b66;animation:btnBounce .5s cubic-bezier(.4,0,.2,1)}.btn-hero-confirm.active:hover{transform:translateY(-4px) scale(1.05);box-shadow:0 12px 40px #f59e0b80}.btn-hero-confirm.active:active{transform:translateY(0) scale(.98)}@keyframes btnBounce{0%{transform:scale(.9)}50%{transform:scale(1.05)}to{transform:scale(1)}}@media (max-width: 1024px){.hero-card{width:clamp(240px,30vw,280px)}.hero-visual{height:clamp(180px,30vw,320px)}.hero-avatar-big{width:clamp(130px,20vw,200px);height:clamp(130px,20vw,200px)}}@media (max-width: 768px){.hero-select-screen{position:fixed;top:0;left:0;right:0;bottom:0;padding:0;overflow:hidden;display:flex;flex-direction:column}.hero-select-bg{position:absolute;top:0;left:0;right:0;bottom:0}.hero-select-container{position:relative;z-index:1;padding:0;gap:0;display:flex;flex-direction:column;align-items:stretch;height:100%}.hero-select-header{padding:12px 12px 6px;flex-shrink:0}.hero-select-title{font-size:1.3rem;text-align:center;margin:0 0 2px}.hero-select-subtitle{font-size:.7rem;text-align:center;padding:0 4px;line-height:1.2;margin:0}.hero-cards{flex:1 1 0;min-height:0;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scroll-padding:0;gap:8px;padding:4px 8px;align-items:center;scrollbar-width:none;-ms-overflow-style:none}.hero-cards::-webkit-scrollbar{display:none}.hero-card{flex:0 0 98vw;width:98vw;max-width:none;min-width:0;max-height:100%;scroll-snap-align:center;padding:4px;border-radius:24px;border:3px solid transparent;transition:border-color .3s,box-shadow .3s;overflow:hidden;display:flex;flex-direction:column;align-items:center}.hero-card.selected{border-color:var(--hero-color, #667eea);box-shadow:0 0 30px var(--hero-color, #667eea66)}.hero-visual{height:85%;min-height:300px;margin-bottom:2px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.hero-avatar-big{font-size:8rem;width:320px;height:320px}.hero-avatar-image,.hero-avatar-video{filter:drop-shadow(0 4px 12px rgba(0,0,0,.4))}.hero-glow{display:none}.hero-info{text-align:center;flex:1;display:flex;flex-direction:column;justify-content:center}.hero-name{font-size:1.3rem;margin:0 0 6px}.hero-description{font-size:.85rem;line-height:1.3;margin:0 0 8px}.hero-traits{gap:6px;margin-top:6px;justify-content:center}.trait{padding:.25rem .7rem;font-size:.75rem}.btn-hero-confirm{position:fixed;bottom:max(16px,env(safe-area-inset-bottom,16px));left:16px;right:16px;z-index:100;min-width:auto;width:calc(100% - 32px);padding:14px 20px;font-size:1rem;border-radius:16px;margin:0;box-shadow:0 8px 30px #0000004d}}@media (max-width: 480px){.hero-select-container{padding:0 0 70px}.hero-select-header{padding:12px 12px 6px}.hero-select-title{font-size:1.2rem}.hero-select-subtitle{font-size:.7rem}.hero-cards{padding:6px;gap:6px}.hero-card{flex:0 0 98vw;min-width:0;padding:4px;border-radius:20px}.hero-visual{height:82%;min-height:260px}.hero-avatar-big{font-size:7rem;width:300px;height:300px}.hero-name{font-size:1.2rem}.hero-description{font-size:.8rem}.btn-hero-confirm{bottom:max(12px,env(safe-area-inset-bottom,12px));left:12px;right:12px;width:calc(100% - 24px);padding:14px 20px;font-size:1rem}}@media (max-width: 375px){.hero-select-title{font-size:1.1rem}.hero-card{flex:0 0 98vw;min-width:0;padding:4px}.hero-visual{height:80%;min-height:240px}.hero-avatar-big{font-size:6.5rem;width:280px;height:280px}.hero-name{font-size:.95rem}.btn-hero-confirm{padding:12px 16px;font-size:.9rem}}@media (max-width: 359px){.hero-card{flex:0 0 98vw;padding:2px}.hero-visual{height:78%;min-height:200px}.hero-avatar-big{font-size:5.5rem;width:240px;height:240px}.hero-name{font-size:.85rem}.btn-hero-confirm{padding:10px 14px;font-size:.85rem}}.restart-adventure{padding:16px 24px;border-top:1px solid #b99d66}.restart-adventure h2{font-size:21px}.restart-adventure p{max-width:680px;line-height:1.5}.restart-actions{display:flex;flex-wrap:wrap;gap:12px}.restart-actions button{min-height:44px}.gosha-world{min-height:100dvh;color:#15373c;background:#10252b;font-family:var(--font-family)}.gosha-world button{font-family:inherit;cursor:pointer}.gosha-world button:disabled{cursor:default;opacity:.55}.gosha-world button:focus-visible{outline:3px solid #ffd46a;outline-offset:4px}.world-button{border:1px solid #b8d5a6;border-radius:10px;background:linear-gradient(#267365,#125047);color:#fff9de;padding:14px 23px;font-weight:800;box-shadow:0 4px #082d2a,0 8px 22px #0003;font-size:16px;transition:filter .2s,transform .2s}.world-button:hover:not(:disabled){filter:brightness(1.13);transform:translateY(-1px)}.lesson-secondary{border:1px solid #759091;border-radius:9px;color:inherit;background:#ffffff12;padding:11px 16px;font-weight:650}.lesson-back,.text-button{border:0;background:none;color:inherit;text-decoration:underline;text-underline-offset:4px;padding:10px;font-size:14px}.scene-header{position:absolute;z-index:1000;top:0;left:0;right:0;padding:18px 28px;display:flex;justify-content:space-between;align-items:center;gap:15px;color:#fff8dc;background:linear-gradient(#081e2dd9,transparent);pointer-events:none}.scene-header>div{display:flex;flex-direction:column;text-shadow:0 2px 8px #000}.scene-header strong{font-size:21px;letter-spacing:.04em}.scene-header span{font-size:12px;opacity:.85;margin-top:4px}.scene-header button{pointer-events:auto;padding:10px 17px;border:1px solid #ffffff55;border-radius:9px;background:#0e354bdd;color:#fff8dc;font-weight:700}.world-scene{position:relative;height:100dvh;overflow:hidden;background:#0d2d40}.world-viewport{height:100%;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-x pan-y}.world-viewport::-webkit-scrollbar{display:none}.world-landscape{position:relative;width:max(100vw,1050px);aspect-ratio:3/2;min-height:100%;isolation:isolate}.landscape-art{position:absolute;width:100%;height:100%;object-fit:fill;-webkit-user-select:none;user-select:none}.travel-route{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;z-index:4}.travel-route polyline{fill:none;stroke:#ffda74;stroke-width:3;stroke-linecap:round;stroke-dasharray:2 9;filter:drop-shadow(0 0 5px #ffa600);opacity:.8}.place-label{position:absolute;z-index:800;transform:translate(-50%,-100%);border:2px solid #d4aa4e;border-radius:13px;background:linear-gradient(#fff7d9,#e8d49b);color:#183638;box-shadow:0 6px 14px #15282380;padding:10px 18px;font-size:16px;font-weight:800;white-space:nowrap;display:flex;align-items:center;gap:8px}.place-label img{width:33px;height:36px;object-fit:contain}.place-label span{display:flex;flex-direction:column}.place-label small{font-size:11px;font-weight:600;margin-top:3px;color:#476158}.place-label:hover:not(:disabled){box-shadow:0 0 24px #ffdb83}.place-label.territory-complete{border-color:#ffe073;background:linear-gradient(#fffbd8,#dbbc62)}.distant-place{position:absolute;z-index:4;transform:translate(-50%,-50%);font-size:12px;color:#fff7d8;text-shadow:0 2px 4px #000,0 1px 8px #000;background:#102b3999;border:1px solid #e9d09b55;border-radius:20px;padding:5px 11px}.map-actor-position{position:absolute;transform:translate(-50%,-100%);pointer-events:none;will-change:left,top;width:160px}.map-instruction{position:absolute;z-index:1000;bottom:16px;left:50%;transform:translate(-50%);padding:13px 28px;background:#0c2936ed;border:1px solid #ceb26966;color:#fff5d6;border-radius:14px;text-align:center;box-shadow:0 8px 25px #0004;font-size:16px;min-width:340px;pointer-events:none}.map-instruction small{display:block;opacity:.68;font-size:11px;margin-top:5px}.camp-label{position:absolute;left:34%;top:83%;transform:translate(-50%);color:#fff4c9;font-weight:800;text-shadow:0 2px 5px #000}.map-damage-mark{position:absolute;color:#ffe591;z-index:600;text-shadow:0 2px 4px #000;font-weight:900;font-size:16px}.hero-actor{width:100%;aspect-ratio:var(--actor-ratio);position:relative;pointer-events:none}.actor-rig{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:50% 94%;animation:actor-breathe 3.6s ease-in-out infinite;filter:drop-shadow(3px 5px 2px #0002)}.actor-body,.actor-leg{position:absolute;width:100%;height:100%;object-fit:contain;top:0;right:0;bottom:0;left:0;-webkit-user-select:none;user-select:none}.actor-leg{transform-origin:50% 70%;animation:actor-step .6s ease-in-out infinite;animation-delay:var(--leg-phase)}.actor-shadow{position:absolute;left:20%;right:4%;bottom:1%;height:8%;border-radius:50%;background:#13211977;filter:blur(6px);transform:skew(-20deg)}.weapon-anchor{position:absolute;width:2px;height:2px;transform:translate(-50%,-50%);border-radius:50%}.actor-upgrade{position:absolute;right:0;top:52%;color:#fff2b0;font-size:25px;filter:drop-shadow(0 0 9px #ffc54f)}.hero-actor.is-travelling .actor-rig{animation:actor-travel .6s ease-in-out infinite}.hero-actor.is-travelling.hero-inventor .actor-body{clip-path:polygon(0 0,100% 0,100% 59%,70% 59%,70% 60%,51% 60%,51% 68%,0 68%)}.hero-actor.is-travelling.hero-mage .actor-body{clip-path:polygon(0 0,100% 0,100% 72%,0 72%)}.hero-actor.is-travelling.hero-knight .actor-body{clip-path:polygon(0 0,100% 0,100% 64%,0 64%)}.is-travelling.hero-inventor .actor-leg{transform-origin:55% 62%;animation-duration:.5s}.is-travelling.hero-inventor .actor-rig{animation-duration:.5s}.hero-actor.is-attacking .actor-rig{animation:actor-charge .9s ease-in-out forwards}.hero-actor.is-celebrating .actor-rig{animation:actor-celebrate 1s ease-in-out 2}.hero-actor.is-attacking .weapon-anchor{box-shadow:0 0 15px 9px #ffd59f,0 0 30px 12px #ff8e2077}.hero-mage.is-attacking .weapon-anchor{box-shadow:0 0 15px 10px #c4f8ff,0 0 34px 15px #32aaff88}@keyframes actor-breathe{50%{transform:scaleY(1.009) rotate(.35deg)}}@keyframes actor-step{0%,to{transform:rotate(-4deg) translateY(0)}50%{transform:rotate(4deg) translateY(-1.5%)}}@keyframes actor-travel{0%,to{transform:translateY(0) rotate(calc(var(--facing) * -1deg))}50%{transform:translateY(-2%) rotate(calc(var(--facing) * 1.3deg))}}@keyframes actor-charge{0%{transform:rotate(-1deg)}70%{transform:rotate(-3deg) scale(1.015)}to{transform:none}}@keyframes actor-celebrate{50%{transform:translateY(-2%) rotate(2deg)}}.kingdom-scene{height:100dvh;min-height:650px;position:relative;isolation:isolate;overflow:hidden;background:#142b38}.kingdom-viewport{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;display:flex;justify-content:center;align-items:center}.kingdom-canvas{position:relative;width:max(100vw,150dvh);aspect-ratio:3/2;flex-shrink:0;isolation:isolate}.courtyard-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill}.damage-art{animation:damage-reveal .55s ease-out}@keyframes damage-reveal{0%{opacity:.2;filter:brightness(1.25)}to{opacity:1;filter:none}}.kingdom-hero{position:absolute;left:8%;bottom:8%;height:66%;aspect-ratio:1068/1440;z-index:10}.castle-hit-target{position:absolute;width:0;height:0;pointer-events:none}.castle-flags{position:absolute;top:35%;left:52%;width:29%;display:flex;justify-content:space-between;gap:5px;z-index:15;transform:rotate(-1deg)}.castle-flag{width:34px;height:45px;color:#c3d7e2;background:linear-gradient(#274263,#142c46);border:1px solid #c6a561;border-top:4px solid #b68c45;clip-path:polygon(0 0,100% 0,100% 100%,50% 83%,0 100%);font-weight:800;padding-bottom:7px;filter:drop-shadow(0 3px 3px #000)}.castle-flag.done{background:linear-gradient(#ecd182,#af7b29);color:#214941}.castle-flag.active{background:linear-gradient(#1e7b6a,#125149);color:#fff7c8;animation:active-flag 2s ease-in-out infinite}@keyframes active-flag{50%{filter:brightness(1.5) drop-shadow(0 0 5px gold)}}.kingdom-panel{position:absolute;z-index:40;bottom:5%;right:4%;width:min(385px,34vw);padding:23px 26px;background:linear-gradient(135deg,#fff5dfee,#e7dcbdef);border:1px solid #e8c56e;box-shadow:0 10px 30px #0a253777,inset 0 0 0 4px #fff6d933;border-radius:16px;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);color:#173a3b}.kingdom-kicker{font-size:10px;font-weight:900;letter-spacing:.12em;color:#4e6b66}.kingdom-panel h1{font:800 27px/1.15 var(--font-family);margin:9px 0}.kingdom-panel p{font-size:14px;line-height:1.45;margin:8px 0 17px}.kingdom-actions{display:grid;gap:10px}.kingdom-actions .world-button{font-size:15px}.scene-busy{bottom:6%;background:#102e3ae8;color:#fff7d6;pointer-events:none}.scene-busy .kingdom-kicker{color:#f8d47a}.hero-ability{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:20;pointer-events:none;overflow:visible}.laser-beam{filter:drop-shadow(0 0 7px #ff7f0f);animation:beam-flicker .16s infinite alternate}.lightning-bolt{filter:drop-shadow(0 0 9px #51c3ff);animation:beam-flicker .09s infinite alternate}.rocket-flight{filter:drop-shadow(-9px 2px 6px #ffbf68)}.ability-origin{filter:blur(2px);animation:beam-flicker .14s infinite alternate}.castle-impact{filter:blur(1px) drop-shadow(0 0 10px #fff3b4);animation:impact-fade .75s ease-out forwards;transform-origin:center}.impact-mage{filter:drop-shadow(0 0 13px #41aaff)}.impact-knight{filter:blur(2px) drop-shadow(0 0 17px #f89a37)}@keyframes beam-flicker{to{opacity:.62}}@keyframes impact-fade{to{opacity:0}}.stone-dust{position:absolute;left:63%;top:61%;z-index:21;pointer-events:none}.stone-dust i{position:absolute;width:calc(5px + var(--i) * .5px);height:calc(4px + var(--i) * .4px);background:#b7a386;border-radius:25%;box-shadow:0 0 16px 9px #c8b79988;animation:debris .95s ease-out forwards;animation-delay:calc(var(--i) * 15ms)}@keyframes debris{to{transform:translate(var(--dx),var(--dy)) rotate(130deg);opacity:0}}.lesson-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;background:#081822d9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:grid;place-items:center;padding:20px;overflow:auto}.lesson-modal-card{position:relative;width:min(580px,100%);padding:35px;background:#12303d;color:#fff6da;border:1px solid #e3c476;border-radius:20px;box-shadow:0 25px 100px #0008}.lesson-modal-card h2{font-size:26px;margin:0 20px 20px 0}.lesson-modal-card p{font-size:17px;line-height:1.6;margin:20px 0}.lesson-modal-card small{display:block;margin-top:15px;opacity:.65;font-size:11px}.modal-close{position:absolute;z-index:2100;right:12px;top:10px;border:1px solid #b7bfbd;border-radius:50%;background:#102e3e;color:#fff;width:34px;height:34px;font-size:25px}.fork-explanation{display:flex;align-items:center;justify-content:center;gap:15px}.fork-explanation img{width:100px;height:100px;object-fit:contain;filter:drop-shadow(0 5px 9px #0006)}.fork-explanation>span{color:#f3d478;font-size:30px}.fork-explanation>div{display:flex}.lesson-modal-card.show-demo{width:min(1130px,100%);padding:18px 4px 4px}.show-demo .game-screen{min-height:0}.original-puzzle{color:#212121;background:#102b36;min-height:100dvh}.original-puzzle .game-screen{min-height:100dvh}.lesson-panel{padding:12px 8px;color:#173c41;display:flex;flex-direction:column;gap:12px}.lesson-number{font-size:12px;text-transform:uppercase;font-weight:800;letter-spacing:.08em;color:#6c7e7b}.lesson-panel h1{font:800 27px/1.2 var(--font-family);margin:0}.lesson-prompt{font-size:16px;line-height:1.5}.lesson-status{font-size:13px;line-height:1.45;color:#617571;min-height:20px}.lesson-panel.correct h1{color:#18734f}.lesson-panel.correct .lesson-status{color:#1a7854;font-size:17px;font-weight:800}.lesson-panel.retry h1{color:#9a7523}.lesson-hint{padding:12px;background:#fff3ce;border-left:3px solid #d6b461;border-radius:7px;font-size:13px;line-height:1.4}.lesson-actions{display:flex;flex-direction:column;gap:11px;margin-top:12px}.lesson-legal-dot{position:absolute;width:22%;height:22%;border-radius:50%;background:#1b514d55;pointer-events:none}.original-piece-holder,.lesson-moving-piece{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.lesson-moving-piece{animation:lesson-piece-move .4s cubic-bezier(.22,.7,.3,1) both;position:relative;z-index:6}@keyframes lesson-piece-move{0%{transform:translate(var(--from-x),var(--from-y))}to{transform:none}}.attack-guides{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:9;pointer-events:none;overflow:visible;filter:drop-shadow(0 1px 2px #283721)}.attack-guides line{opacity:.8}.lesson-target:after,.lesson-source:after,.lesson-hinted:after{content:"";position:absolute;top:3px;right:3px;bottom:3px;left:3px;border:3px solid #81e19d;border-radius:8px;box-shadow:inset 0 0 14px #59ce7455,0 0 8px #59ce7488;pointer-events:none;z-index:8}.lesson-source:after{border-color:#f4d479;box-shadow:inset 0 0 15px #edc64b66}.lesson-hinted:after{border-color:#e9c460;box-shadow:0 0 12px #ffdc6c}.activity-shell{min-height:100dvh;padding:40px max(24px,calc((100vw - 1120px)/2));background:linear-gradient(#082c3ade,#082630ed),url(/world-art/courtyard.png) center/cover fixed;color:#fff6db}.activity-shell h1{font:800 34px/1.2 var(--font-family);margin:18px 0}.activity-shell h2{font:750 23px/1.3 var(--font-family);margin:16px 0}.activity-shell p{line-height:1.6;margin:12px 0}.eyebrow{font-size:11px;letter-spacing:.1em;color:#e4cc8c}.opponent-lineup{display:grid;grid-template-columns:repeat(5,1fr);gap:15px;margin:30px 0}.opponent-lineup button{border:1px solid #ffffff44;border-radius:18px;background:#183f4b;color:#f8edd0;padding:20px 12px;display:flex;align-items:center;flex-direction:column;gap:10px}.opponent-lineup button.selected{border:2px solid #e7c36c;background:#245653}.opponent-lineup img{width:80px;height:90px;object-fit:contain}.opponent-stars{color:#e4c16c}.opponent-lineup small{font-size:11px;opacity:.7}.side-choice{display:flex;gap:12px;align-items:center;margin:22px 0}.side-choice button{padding:10px 18px;border:1px solid #d4c7a6;background:#153945;color:#fff7dc;border-radius:9px}.side-choice button.selected{background:#39796b}.arena-toolbar{padding:12px 22px;background:#0b3042;color:#f5e7c4;display:flex;justify-content:space-between;align-items:center}.arena-toolbar>span{font-size:11px}.arena-end,.arena-error,.resign-dialog{position:fixed;z-index:1000;background:#fff4d9;color:#153c40;border-radius:18px;border:1px solid #d9b975;padding:22px;box-shadow:0 10px 60px #0005}.arena-end{bottom:25px;left:50%;transform:translate(-50%);text-align:center}.arena-end h2{margin:0 0 15px}.arena-error{top:60px;left:50%;transform:translate(-50%)}.resign-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1500;background:#081921b8;display:grid;place-items:center}.resign-dialog{position:static;width:min(440px,90vw);display:flex;flex-direction:column;gap:14px}.resume-ribbon{position:fixed;z-index:1200;bottom:112px;right:18px;background:#f3df9e;color:#214945;padding:10px 16px;border-radius:12px;font-size:13px}.resume-ribbon button{border:0;background:none;color:inherit;font-weight:800}.storage-warning{position:fixed;z-index:3000;top:0;left:0;right:0;background:#fff1c0;color:#53451f;padding:12px;text-align:center}.result-adventure{text-align:center}.result-hero{width:220px;height:235px}.first-win-reward{border:1px solid #efd184;border-radius:20px;padding:22px;max-width:590px;margin:10px auto;background:#173f4ccd}.first-win-reward>span{font-size:34px;color:#f2d88e}.result-feedback{max-width:600px;margin:20px auto}.review-success{color:#bbead6}.gosha-world .game-container{--board-safe-size: min(56vw, 68dvh, 640px)}@media (max-width: 768px){.scene-header{padding:14px 16px}.scene-header strong{font-size:16px}.scene-header button{font-size:12px;padding:8px 12px}.map-instruction{min-width:0;width:calc(100% - 24px);font-size:14px;bottom:12px;padding:12px 15px}.place-label{font-size:14px;padding:8px 12px}.kingdom-scene{min-height:750px}.kingdom-canvas{width:1120px;align-self:flex-start;transform:translate(-55px)}.kingdom-viewport{align-items:flex-start}.kingdom-hero{left:42%;height:43%;bottom:20%;transform:none}.kingdom-panel{bottom:20px;left:14px;right:14px;width:auto;padding:18px 20px}.kingdom-panel h1{font-size:23px}.kingdom-panel p{font-size:13px;margin-bottom:12px}.kingdom-kicker{font-size:9px}.kingdom-actions{gap:8px}.kingdom-viewport:after{content:"";position:absolute;top:60%;right:0;bottom:0;left:0;background:linear-gradient(transparent,#102f3c)}.castle-flags{left:40%;top:29%;width:32%}.castle-flag{width:29px;height:38px;font-size:11px}.kingdom-scene .scene-header>div{text-align:right}.lesson-modal{padding:8px}.lesson-modal-card{padding:28px 20px}.fork-explanation img{width:70px;height:85px}.lesson-modal-card.show-demo{padding:28px 0 0}.show-demo .original-puzzle,.show-demo .game-screen{min-height:0}.lesson-panel{padding:6px 3px;gap:7px}.lesson-panel h1{font-size:23px}.lesson-prompt{font-size:15px}.lesson-actions{gap:8px}.lesson-actions .world-button{padding:12px}.original-puzzle .game-sidebar{width:100%}.original-puzzle .game-container{grid-template-columns:1fr}.gosha-world .game-container{--board-safe-size: calc(100vw - 64px) }.gosha-world .board-wrapper{container-type:normal}.gosha-world .board-row{display:flex;width:auto;height:auto}.gosha-world .square-container{width:calc(var(--board-safe-size) / 8);height:calc(var(--board-safe-size) / 8);aspect-ratio:1;flex:0 0 auto}.gosha-world .rank-label{position:static;transform:none;width:14px;margin-right:2px;font-size:10px}.gosha-world .file-labels{width:var(--board-safe-size);margin-left:16px}.gosha-world .piece-image{width:90%;height:90%;object-fit:contain}.gosha-world .chess-piece{width:100%;height:100%}.activity-shell{padding:24px 16px}.activity-shell h1{font-size:29px}.opponent-lineup{grid-template-columns:repeat(2,1fr);gap:10px}.opponent-lineup button:last-child{grid-column:1/-1}.arena-toolbar>span{display:none}.arena-toolbar{padding:6px}.arena-toolbar button{font-size:12px}.resume-ribbon{bottom:105px;font-size:11px;max-width:90%}}@media (prefers-reduced-motion: reduce){.actor-rig,.actor-leg,.castle-flag,.laser-beam,.lightning-bolt{animation-duration:1.5s!important}.lesson-moving-piece{animation-duration:.15s}}.modal-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1600;background:#081921bb;display:grid;place-items:center;padding:20px}.world-dialog{background:#fff4d9;color:#153c40;border-radius:18px;border:1px solid #d9b975;padding:25px;width:min(440px,95vw);display:flex;flex-direction:column;gap:16px;box-shadow:0 10px 60px #0005}.mage-body-split{clip-path:polygon(0 44%,48% 44%,48% 0,100% 0,100% 100%,0 100%)}.scepter-arm{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:44% 46%;animation:scepter-raise .85s cubic-bezier(.2,.7,.3,1) forwards}.scepter-arm>img{width:100%;height:100%;clip-path:polygon(0 0,48% 0,48% 44%,0 44%);object-fit:contain}@keyframes scepter-raise{0%{transform:rotate(-12deg)}to{transform:rotate(0)}}.map-v2{width:100%;height:100dvh;isolation:isolate}.map-v2 .world-viewport{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;overflow:hidden;touch-action:auto}.map-v2 .world-landscape{width:100%;height:100%;min-height:0;aspect-ratio:auto}.map-v2 .landscape-art{object-fit:fill}.map-v2 .scene-header{padding:16px 24px}.map-v2 .scene-header nav{display:flex;gap:8px;pointer-events:auto}.hero-hud{position:absolute;z-index:1100;left:22px;top:85px;width:255px;display:flex;gap:8px;padding:13px;border:1px solid #d8b866;border-radius:14px 14px 24px 4px;background:linear-gradient(135deg,#142f3bf5,#123b41eb);box-shadow:0 5px 22px #071d3180;color:#fff3cf}.hero-hud>img{width:66px;height:85px;object-fit:cover;object-position:50% 40%;border:1px solid #c7aa66;border-radius:9px}.hero-hud>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.hero-hud strong{font-size:17px}.hero-hud span,.hero-hud small{font-size:12px;line-height:1.35}.hero-hud button{border:0;border-radius:5px;padding:7px;background:#e8cc88;color:#173d41;font-weight:800}.gosha-world progress{width:100%;height:7px;accent-color:#d8b864;border:0;border-radius:7px;overflow:hidden;background:#203d4830}.gosha-world progress::-webkit-progress-bar{background:#25455230;border-radius:7px}.gosha-world progress::-webkit-progress-value{background:linear-gradient(90deg,#9e7c38,#f9d780);border-radius:7px}.world-marker{position:absolute;z-index:820;transform:translate(-50%,-50%);display:flex;align-items:center;gap:0;background:none;border:0;color:#17383b;text-align:left;padding:36px 18px 18px;min-height:108px;transition:filter .2s,scale .2s}.world-marker:before{content:"";position:absolute;top:-30px;right:0;bottom:0;left:0;z-index:-1;border-radius:50%;opacity:0;background:radial-gradient(ellipse,#ffe69177,transparent 70%);transition:opacity .2s}.world-marker:hover:not(:disabled),.world-marker:focus-visible{scale:1.055;filter:drop-shadow(0 0 12px #ffe08a)}.world-marker:hover:before,.world-marker:focus-visible:before{opacity:1}.marker-scroll{display:flex;flex-direction:column;gap:4px;min-width:146px;max-width:195px;padding:10px 15px 10px 22px;margin-left:-12px;border:1px solid #e0bb64;border-radius:5px 14px 14px 5px;background:linear-gradient(#fff5d5f5,#e7d5aaf5);box-shadow:0 3px #6d502d,0 5px 18px #06213680}.marker-scroll strong{font-size:15px;line-height:1.15}.marker-scroll small{font-size:11px;font-weight:650}.marker-scroll progress{height:4px}.marker-shield{z-index:1;display:grid;place-items:center;flex-shrink:0;width:40px;height:54px;color:#ffdb85;background:linear-gradient(#155073,#122f47);border:2px solid #ecc477;border-radius:8px 8px 48% 48%;font-size:29px;box-shadow:0 2px 8px #0006}.world-marker.completed .marker-shield{background:linear-gradient(#ffe8a8,#b8822e);color:#234f43}.world-marker.completed .marker-scroll{border:2px solid #ffdf7b}.world-marker.in-progress .marker-shield{box-shadow:0 0 0 3px #fff2b760,0 0 18px #fff3a3a0}.map-v2 .map-actor-position{pointer-events:none}.map-v2 .camp-label{bottom:13%;left:35%;color:#fff2cf;background:#163d43dc;border:1px solid #b89a63;padding:6px 15px;border-radius:8px;z-index:600}.map-goal{position:absolute;z-index:1100;bottom:20px;left:50%;transform:translate(-50%);width:min(690px,calc(100% - 40px));box-sizing:border-box;display:flex;align-items:center;gap:20px;padding:13px 18px;background:linear-gradient(110deg,#153a42f5,#0c2737ef);border:1px solid #d1b273;border-radius:13px;color:#fff2d0;box-shadow:0 8px 25px #061a2670}.map-goal>div{display:flex;flex:1;flex-direction:column;gap:5px}.map-goal small{font-size:10px;letter-spacing:.13em;color:#e9ca84}.map-goal strong{font-size:15px;line-height:1.3}.map-goal button{white-space:nowrap;padding:10px 17px;font-size:14px}.equipment-art{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 2px 2px #39210c70)}.installed-part{position:absolute;aspect-ratio:1;transform:translate(-50%,-50%);z-index:5;pointer-events:none;filter:drop-shadow(0 0 3px #ffc35b80)}.install-reward .installed-part:last-child{animation:install-part 2.3s cubic-bezier(.2,.7,.2,1) both;animation-delay:.2s}@keyframes install-part{0%{transform:translate(230px,-80px) scale(3.4);filter:drop-shadow(0 0 20px #ffeab9);opacity:0}15%,40%{transform:translate(190px,-90px) scale(3.4);opacity:1}80%{transform:translate(-50%,-50%) scale(1.3);filter:drop-shadow(0 0 22px #ffdd8a)}to{transform:translate(-50%,-50%) scale(1)}}.new-part-reward{display:flex;gap:14px;align-items:center;padding:10px 14px;margin:10px 0;background:#fff2b9;border:1px solid #bf9639;border-radius:10px}.new-part-reward svg{width:52px;height:52px;flex-shrink:0}.new-part-reward span{display:flex;flex-direction:column;gap:5px}.new-part-reward small{font-size:12px}.chapter-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:12px 0}.chapter-tabs button{border:1px solid #b09d6b;border-radius:7px;background:#f9edcd;padding:7px 3px;color:#214647}.chapter-tabs button[aria-pressed=true]{background:#1b5b54;color:#fff3ca}.chapter-tabs b,.chapter-tabs span{display:block}.chapter-tabs span{font-size:10px;line-height:1.15;margin-top:5px}.reward-progress{display:flex;flex-direction:column;gap:5px;font-size:13px;margin:10px 0}.reward-progress small{font-size:12px}.move-choices{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.puzzle-growth{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid #d0ba7b;border-radius:9px;background:#f6edcf;font-size:13px;margin:12px 0}.puzzle-growth small{line-height:1.4}.lesson-panel .lesson-number{line-height:1.5;display:block}.journal-scrim{position:fixed;z-index:4000;top:0;right:0;bottom:0;left:0;background:#041521bd;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);display:grid;place-items:center;padding:24px}.hero-journal{width:min(1040px,100%);max-height:calc(100dvh - 48px);overflow:auto;border:2px solid #c4a568;border-radius:18px;background:linear-gradient(125deg,#faf2d8,#dfd4b4);box-shadow:0 20px 80px #0008;color:#193b40}.hero-journal>header{display:flex;justify-content:space-between;align-items:center;padding:15px 25px;border-bottom:1px solid #c9b98c}.journal-brand{letter-spacing:.16em;font-size:12px;font-weight:800}.hero-journal>header button{padding:4px 12px;font-size:25px}.hero-journal>nav{display:flex;gap:8px;padding:15px 25px}.hero-journal>nav button{flex:1;border:1px solid #c1a66d;border-radius:9px;padding:12px 8px;background:#eee1bc;color:#25474a;font-weight:750}.hero-journal>nav button[aria-pressed=true]{background:#215952;color:#fff6d8}.hero-chamber{display:grid;grid-template-columns:40% 60%;padding:0 25px 25px;gap:0}.chamber-portrait{position:relative;display:flex;align-items:center;justify-content:center;min-height:460px;background:radial-gradient(ellipse,#ebd995,transparent 68%)}.chamber-portrait .hero-actor{width:90%;height:auto;max-height:530px}.hero-plinth{position:absolute;bottom:0;background:#174948;border:2px solid #d6b260;border-radius:9px;padding:12px 30px;font-weight:800;color:#fff0c1;letter-spacing:.08em}.chamber-story{padding:10px 16px 8px 25px}.chamber-story h1{font-size:36px;margin:5px 0 12px}.chamber-story h2{font-size:18px;margin:20px 0 10px}.chamber-story p{line-height:1.45}.chamber-story .eyebrow{font-size:11px;margin:0}.equipment-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.equipment-list>div{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #c8af78;background:#f8efd2;border-radius:9px}.equipment-list .sealed{filter:grayscale(.65);opacity:.68}.equipment-list svg{height:45px;width:45px;flex-shrink:0}.equipment-list span{display:flex;flex-direction:column;gap:4px}.equipment-list strong{font-size:12px}.equipment-list small{font-size:10px}.next-upgrade{margin-top:17px;background:#21554b12;border:1px solid #a2b198;border-radius:10px;padding:13px}.next-upgrade p{margin:6px 0;font-size:14px}.next-upgrade small{display:block;font-size:11px;line-height:1.5;margin-top:8px}.action-counts{font-size:11px}.journal-content{padding:0 25px 28px}.journal-content h1{font-size:28px}.skill-collection{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.skill-collection article{position:relative;border:1px solid #c6b285;border-radius:10px;padding:18px;background:#fff8e6a0}.skill-seal{float:right;width:40px;height:46px;display:grid;place-items:center;background:#1d504c;color:#f4d78c;border-radius:7px 7px 50% 50%;font-size:29px}.skill-collection h2{font-size:20px;margin:3px 0 15px}.skill-collection strong{font-size:12px;display:block;margin-bottom:12px}.skill-collection p{font-size:13px}.skill-collection small{font-size:11px;line-height:1.6}.skill-collection .learned-concept{font-size:11px;color:#246659}.trophy-shelf{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.trophy-shelf article{display:flex;flex-direction:column;text-align:center;gap:8px;padding:16px 6px;border:1px solid #bfa169;background:linear-gradient(#fff4cf,#e3cca0);border-radius:10px}.trophy-shelf span{font-size:35px;color:#967020}.trophy-shelf strong{font-size:27px}.trophy-shelf small{font-size:12px}.weekly-days{padding:10px 0}.weekly-days h2{font-size:19px}.weekly-days div{display:flex;gap:8px;margin:12px 0}.weekly-days span{font-size:25px;color:#beb79e}.weekly-days .done{color:#aa781e;text-shadow:0 1px 0 #fff}.weekly-days small{font-size:12px}.world-record{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.world-record p{font-size:12px;padding:10px 0;border-bottom:1px solid #b6a682}.world-record b{display:block;margin-bottom:5px}.world-record small{float:right}.first-badge{padding:12px;background:#f9e2a9;border-radius:8px}.world-loading{height:100dvh;background:#17343c;color:#fff1c3;display:grid;place-items:center}.save-status{position:fixed;bottom:0;left:0;z-index:4500;font-size:11px;background:#fff1cc;padding:3px 9px;color:#4a3d25}@media (min-width: 761px) and (max-height: 800px){.hero-hud{width:212px;top:75px;padding:9px;left:16px}.hero-hud>img{width:47px;height:64px}.hero-hud strong{font-size:14px}.hero-hud small{font-size:10px}.world-marker{padding:25px 10px 10px}.marker-scroll strong{font-size:13px}.marker-scroll{min-width:132px;padding:8px 10px 8px 20px}.marker-scroll small{font-size:10px}.hero-journal{max-height:calc(100dvh - 30px)}.hero-chamber{padding-bottom:15px}.chamber-portrait{min-height:400px}.chamber-portrait .hero-actor{max-height:440px}.chamber-story h1{font-size:28px}.chamber-story{padding-top:0}.chamber-story h2{margin-top:10px}.hero-journal>nav{padding-top:10px;padding-bottom:10px}}@media (max-width: 760px){.map-v2 .scene-header{padding:12px}.map-v2 .scene-header strong{font-size:18px}.map-v2 .scene-header nav{gap:5px}.map-v2 .scene-header nav button{font-size:10px;padding:8px}.map-v2 .scene-header span{font-size:10px}.map-v2 .world-viewport{top:190px;bottom:108px;height:auto;overflow:hidden}.map-v2 .world-landscape{height:100%;width:100%;min-width:0}.hero-hud{top:68px;left:12px;right:12px;width:auto;padding:8px 12px;border-radius:10px;height:92px;box-sizing:border-box}.hero-hud>img{width:54px;height:72px}.hero-hud>div{display:grid;grid-template-columns:1fr auto;gap:3px 15px}.hero-hud strong{font-size:16px}.hero-hud progress{grid-column:1}.hero-hud small{grid-column:1;font-size:11px}.hero-hud button{grid-column:2;grid-row:2/5;align-self:center}.world-marker{padding:15px 3px;min-height:60px}.marker-shield{width:25px;height:35px;font-size:22px}.marker-scroll{min-width:0;width:98px;padding:6px 5px 6px 15px;border-radius:4px 8px 8px 4px}.marker-scroll strong{font-size:10px}.marker-scroll small{font-size:8px}.marker-scroll progress{height:3px}.marker-fork{left:50%!important;top:36%!important}.marker-pin{left:20%!important;top:12%!important}.marker-mate{left:19%!important;top:54%!important}.marker-doubleAttack{left:79%!important;top:12%!important}.marker-arena{left:81%!important;top:54%!important}.marker-defense{left:76%!important;top:84%!important}.map-v2 .map-actor-position{width:95px!important}.map-v2 .camp-label{font-size:10px;left:32%;bottom:6%;padding:4px 8px}.map-goal{bottom:12px;width:calc(100% - 24px);gap:10px;padding:11px}.map-goal strong{font-size:12px}.map-goal button{font-size:12px;padding:10px}.map-goal small{font-size:8px}.journal-scrim{padding:8px}.hero-journal{max-height:calc(100dvh - 16px);border-radius:12px}.hero-journal>header{padding:10px 14px}.hero-journal>nav{padding:10px;gap:5px}.hero-journal>nav button{font-size:11px;padding:10px 4px}.hero-chamber{display:flex;flex-direction:column;padding:0 12px 20px}.chamber-portrait{min-height:280px;height:280px}.chamber-portrait .hero-actor{width:185px;max-height:260px}.hero-plinth{font-size:12px;padding:8px 20px}.chamber-story{padding:20px 5px 0}.chamber-story h1{font-size:28px}.journal-content{padding:0 14px 20px}.journal-content h1{font-size:23px}.skill-collection{grid-template-columns:1fr}.trophy-shelf{grid-template-columns:repeat(3,1fr)}.world-record{grid-template-columns:1fr}.new-part-reward{padding:6px 8px;gap:8px;margin:5px 0}.new-part-reward svg{width:35px;height:35px}.new-part-reward small{font-size:10px}.chapter-tabs{margin:7px 0}.kingdom-panel .chapter-tabs span{font-size:9px}.kingdom-panel .reward-progress{font-size:11px;margin:6px 0}.puzzle-growth{font-size:12px}.lesson-panel .lesson-number{font-size:11px}}@media (prefers-reduced-motion: reduce){.installed-part,.install-reward .installed-part:last-child{animation:none}.world-marker{transition:none}}.map-v2 .camp-label{top:auto;bottom:13%}.mobile-map-hint{display:none}.chamber-story .eyebrow{color:#637262}@media (max-width: 760px){.map-v2 .world-viewport{overflow-x:auto;overflow-y:hidden;touch-action:pan-x}.map-v2 .world-landscape{width:max(600px,calc((100dvh - 298px)*1.5));height:100%;min-height:0}.map-v2 .marker-pin{left:20%!important;top:28%!important}.map-v2 .marker-fork{left:49%!important;top:29%!important}.map-v2 .marker-doubleAttack{left:80%!important;top:24%!important}.map-v2 .marker-mate{left:14%!important;top:49%!important}.map-v2 .marker-arena{left:87%!important;top:49%!important}.map-v2 .marker-defense{left:70%!important;top:73%!important}.map-v2 .camp-label{left:35%;bottom:13%}.mobile-map-hint{display:block;position:absolute;top:172px;left:0;right:0;text-align:center;color:#f2dca6;font-size:10px;z-index:1000}.map-v2 .map-actor-position{width:115px!important}.hero-hud small{font-size:10px}}.world-marker:before{top:-65px;right:-10px;bottom:-10px;left:-10px}.marker-fork:before{top:-150px;right:-35px;bottom:-10px;left:-35px}.result-equipment{width:90px;height:90px;margin:auto}.chapter-tabs button:disabled{opacity:.6}@media (max-width: 760px){.world-marker:before{top:-35px;right:-5px;bottom:-5px;left:-5px}.marker-fork:before{top:-80px;right:-15px;bottom:-5px;left:-15px}}.weapon-fx .weapon-charge{filter:drop-shadow(0 0 9px #ffc748);animation:charge-pulse .2s alternate infinite;transform-box:fill-box;transform-origin:center}@keyframes charge-pulse{0%{opacity:.6}to{opacity:1}}.weapon-idle-energy{position:absolute;transform:translate(-50%,-50%);width:10%;aspect-ratio:1;border-radius:50%;background:radial-gradient(#ffdb8140,transparent 65%);filter:drop-shadow(0 0 4px #ffb12f);animation:charge-pulse 1.8s alternate infinite;pointer-events:none}.weapon-idle-energy.energy-mage{background:radial-gradient(#85f2ff70,transparent 70%);filter:drop-shadow(0 0 7px #50c8ff)}.rocket-smoke-path{animation:smoke-reveal linear both;opacity:.65;filter:blur(3px)}@keyframes smoke-reveal{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}.muzzle-flash{animation:muzzle .24s ease-out both;transform-box:view-box}.weapon-fx .rocket-flight{filter:drop-shadow(0 0 4px #ffb231)}@keyframes muzzle{0%{opacity:1}to{opacity:0}}.impact-flash{animation:impact-light .6s ease-out both;transform-origin:center;transform-box:fill-box}.impact-ring{animation:impact-wave .8s ease-out both;transform-origin:center;transform-box:fill-box}.impact-chip{animation:chip-flight .85s ease-out both}.impact-smoke{animation:impact-smoke 1s ease-out both;filter:blur(5px);transform-box:fill-box;transform-origin:center}.weapon-fx .impact-knight{filter:drop-shadow(0 0 9px #ffb03e)}@keyframes impact-light{0%{opacity:1;transform:scale(.3)}25%{opacity:1;transform:scale(1.8)}to{opacity:0;transform:scale(2.4)}}@keyframes impact-wave{0%{opacity:1;transform:scale(.3)}to{opacity:0;transform:scale(2.2)}}@keyframes chip-flight{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(170deg)}}@keyframes impact-smoke{0%{opacity:.2;transform:scale(.4)}30%{opacity:.7}to{opacity:0;transform:translateY(-35px) scale(2.7)}}.hero-knight.is-attacking .actor-rig{animation:officer-aim .6s ease-out forwards;transform-origin:45% 65%}@keyframes officer-aim{0%{transform:rotate(3deg)}to{transform:rotate(0)}}.kingdom-scene[data-attack-phase=fire] .hero-knight .actor-rig,.upgrade-phase-fire .hero-knight .actor-rig{animation:officer-recoil .35s ease-out forwards}@keyframes officer-recoil{0%{transform:translate(0)}25%{transform:translate(-8px,4px) rotate(-1deg)}to{transform:translate(0)}}.upgrade-scene{position:relative;height:100dvh;overflow:hidden;background:#12313b;color:#fff4d3;isolation:isolate}.upgrade-stage{position:absolute;width:max(100vw,150dvh);height:100%;left:50%;transform:translate(-50%)}.upgrade-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:fill;filter:brightness(.5)}.upgrade-hero{position:absolute;left:27%;bottom:4%;width:37%;height:84%}.upgrade-old,.upgrade-new{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:flex-end;justify-content:center;transition:opacity .7s,filter .7s}.upgrade-new{opacity:0;filter:brightness(3)}.upgrade-old .hero-actor,.upgrade-new .hero-actor{width:auto;height:100%}.new-form .upgrade-new{opacity:1;filter:brightness(1)}.new-form .upgrade-old{opacity:0}.upgrade-light{position:absolute;top:-2%;right:-2%;bottom:-2%;left:-2%;pointer-events:none;background:radial-gradient(ellipse,#ffffdcb0,transparent 65%);opacity:0;mix-blend-mode:screen}.upgrade-phase-forge .upgrade-light,.upgrade-phase-reveal .upgrade-light{animation:forge-light 1.5s ease-in-out both}@keyframes forge-light{0%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.1)}to{opacity:0;transform:scale(1.3)}}.upgrade-title{position:absolute;z-index:50;top:5%;left:4%;max-width:35%;text-shadow:0 3px 12px #000}.upgrade-title>span{font-size:13px;letter-spacing:.12em;color:#ffd27d}.upgrade-title h1{font-size:clamp(24px,3vw,44px);margin:12px 0}.level-stars{display:flex;gap:8px}.level-stars i{display:block;width:25px;height:25px;background:#61716e;clip-path:polygon(50% 0,62% 35%,100% 38%,72% 61%,80% 100%,50% 77%,20% 100%,28% 61%,0 38%,38% 35%)}.level-stars .lit{background:linear-gradient(#fff4a3,#dfa844)}.upgrade-done{position:absolute;z-index:50;bottom:5%;right:5%;font-size:20px;padding:18px 35px}.upgrade-wait{position:absolute;bottom:8%;right:10%;color:#ffe18b;font-size:40px}.upgrade-scene .hero-ability{z-index:30}.upgrade-stage>.castle-hit-target{position:absolute}@media (max-width: 760px){.upgrade-hero{left:37%;height:65%;bottom:17%;width:28%}.upgrade-title{top:5%;left:6%;max-width:90%}.upgrade-title h1{font-size:28px}.upgrade-done{left:6%;right:6%;bottom:5%;font-size:16px}.upgrade-stage>.castle-hit-target{left:66%!important;top:42%!important}}@media (prefers-reduced-motion: reduce){.impact-flash,.impact-ring,.muzzle-flash{animation-duration:.65s}.laser-beam,.lightning-bolt,.weapon-charge{animation:none}.upgrade-old,.upgrade-new{transition:opacity .4s}.weapon-idle-energy{animation:none}}.game-badge{width:82px;height:92px;flex-shrink:0;filter:drop-shadow(0 4px 4px #0003)}.drawn-stars{display:flex;justify-content:center;gap:5px}.drawn-stars svg{width:23px;height:23px;fill:#566460;stroke:#a5a58a}.drawn-stars .lit{fill:#edc565;stroke:#fff0b9}.chapter-tabs .game-badge{width:35px;height:40px}.chapter-tabs button{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px}.checkpoint-dots{display:flex;gap:4px}.checkpoint-dots i{width:6px;height:6px;border:1px solid #727d64;border-radius:50%}.checkpoint-dots .done{background:#28775c;border-color:#28775c}.upgrade-old .hero-actor,.upgrade-new .hero-actor{flex-shrink:0}.hero-mage.is-attacking .weapon-anchor{box-shadow:0 0 15px 9px #b5f2ff,0 0 30px 12px #369cff88}.puzzle-growth .game-badge{width:52px;height:58px;float:left}.puzzle-growth>strong{font-size:28px}.lesson-actions>.lesson-back{border:1px solid #779784;border-radius:8px;padding:12px;color:#f6eac6;min-height:46px}.opponent-history{font-size:12px;color:#f3d998;margin-top:8px}.game-result{min-height:100dvh;box-sizing:border-box;background:radial-gradient(ellipse at 27% 48%,#47636a88,transparent 40%),linear-gradient(110deg,#102d36ef,#0c222ef7),url(/world-art/courtyard.png) center/cover;color:#fff0cb;padding:32px max(5vw,20px);display:grid;grid-template-columns:42% 58%;grid-template-rows:auto 1fr auto;align-items:center}.game-result>h1{grid-column:1/-1;text-align:center;font-size:clamp(28px,4vw,52px);letter-spacing:.06em;margin:0 0 15px}.result-character{grid-column:1;grid-row:2/4;height:min(72vh,650px);display:flex;justify-content:center}.result-character .hero-actor{height:100%;width:auto;flex-shrink:0}.result-rewards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-self:end}.result-rewards article{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;padding:18px 8px;background:linear-gradient(#ecdcbf12,#e7bf631b);border:1px solid #d8b86c55;border-radius:18px;min-height:215px}.result-rewards strong{font-size:19px}.result-rewards small{letter-spacing:.12em;color:#ead396}.result-rewards span{font-size:12px;max-width:140px;color:#bacdc4}.result-actions{grid-column:2;display:flex;flex-direction:column;align-items:center;gap:12px;padding:25px 0;min-height:150px}.result-actions .world-button{font-size:18px;width:100%;max-width:500px}.result-actions p{margin:4px}.game-result .lesson-secondary{color:#f9e6bd;border-color:#b9aa78}.game-result .lesson-back{color:#d8e8dc}.album-hero{display:grid;grid-template-columns:48% 52%;min-height:570px;background:radial-gradient(ellipse at 25% 55%,#d9cda9,transparent 53%)}.album-character{height:560px;position:relative;display:flex;justify-content:center;padding:20px 0 35px;box-sizing:border-box}.album-character>.hero-actor{height:100%;width:auto;flex-shrink:0}.album-hero-info{display:flex;flex-direction:column;justify-content:center;padding:20px 24px;gap:12px}.album-hero-info h1{font-size:32px;margin:0}.album-hero-info h2{font-size:20px;margin:0}.album-hero-info>.drawn-stars{justify-content:flex-start}.weapon-collection{display:flex;gap:8px;margin:15px 0}.weapon-collection>button{position:relative;border-radius:10px;flex:1;height:116px;background:#d8cdaf;border:2px solid #b7ab82;padding:8px 0 20px;overflow:hidden}.weapon-collection>button[aria-pressed=true]{background:#f7e4a8;border-color:#35806e;box-shadow:0 0 0 2px #35806e44}.weapon-collection>button:disabled{filter:grayscale(1);opacity:.3}.weapon-collection .hero-actor{height:100%;width:auto;margin:auto}.weapon-collection span{position:absolute;bottom:2px;left:0;width:100%;font-weight:800}.skill-album{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;align-items:start;margin:30px 0}.skill-medal{border:0;background:transparent;color:#183d44;text-align:center;padding:5px;cursor:pointer}.medal-ring{width:120px;height:120px;margin:auto;display:flex;align-items:center;justify-content:center;border-radius:50%;background:conic-gradient(#c89735 var(--progress),#cdc6ac 0);position:relative;isolation:isolate}.medal-ring:before{content:"";position:absolute;top:5px;right:5px;bottom:5px;left:5px;border-radius:50%;background:#e9dec4;z-index:-1}.medal-ring .game-badge{width:78px;height:88px}.skill-medal h2{font-size:17px;min-height:40px;margin:12px 0 3px}.skill-medal small{display:block;margin:8px}.medal-detail{display:block;background:#fff5da;padding:12px 7px;border-radius:9px;font-size:13px;line-height:1.6}.achievement-album{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.achievement-album article{display:flex;align-items:center;flex-direction:column;padding:12px;background:#fff8e133;border:1px solid #c6b987;border-radius:16px;gap:6px}.achievement-album strong{font-size:33px;color:#235456}.achievement-album small{font-size:11px;letter-spacing:.06em}.weekly-album{display:flex;align-items:center;justify-content:center;gap:14px;margin:24px 0}.weekly-album>.game-badge{width:47px;height:53px}.weekly-album strong{display:block;text-align:center;margin-bottom:7px}.castle-collection{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.castle-collection article{position:relative;border:2px solid #b5a57c;border-radius:10px;overflow:hidden;text-align:center;background:#eee1c1;display:flex;flex-direction:column;gap:8px;padding-bottom:10px}.castle-miniature{height:125px;background-size:510%;background-repeat:no-repeat}.castle-collection .game-badge{width:45px;height:50px;align-self:center;margin-top:-34px;z-index:1}.castle-collection strong{font-size:13px;padding:0 6px;min-height:34px}.castle-collection span{font-size:12px}.castle-collection progress{width:80%;align-self:center;height:5px}.castle-collection .conquered{border-color:#c08e31;box-shadow:0 0 0 2px #f2d185}.castle-collection .unexplored .castle-miniature{filter:saturate(.5) brightness(.7)}@media (max-width: 850px){.game-result{padding:20px;grid-template-columns:36% 64%}.result-rewards{gap:6px}.result-rewards article{padding:12px 5px}.result-rewards strong{font-size:15px}.result-rewards .game-badge{width:55px;height:65px}.result-character{height:60vh}.skill-album,.achievement-album,.castle-collection{grid-template-columns:repeat(3,1fr)}.album-hero{grid-template-columns:42% 58%;min-height:480px}.album-character{height:480px}.album-hero-info{padding:20px 12px}.weapon-collection{gap:4px}.weapon-collection>button{height:95px}}@media (max-width: 550px){.game-result{display:flex;flex-direction:column;padding:20px 12px;gap:12px}.game-result>h1{font-size:28px}.result-character{height:34vh;min-height:220px;width:100%}.result-rewards{width:100%;align-self:stretch}.result-rewards article{min-height:150px;gap:5px}.result-rewards strong{font-size:14px}.result-rewards span,.result-rewards small{font-size:10px}.result-rewards .game-badge{width:45px;height:51px}.result-actions{width:100%;padding:6px 0;min-height:100px}.result-actions .world-button{font-size:16px}.album-hero{display:flex;flex-direction:column}.album-character{height:360px}.album-hero-info{padding:0 20px 25px;text-align:center}.album-hero-info>.drawn-stars{justify-content:center}.album-hero-info h1{font-size:27px}.weapon-collection>button{height:107px}.skill-album{grid-template-columns:repeat(2,1fr);gap:12px}.medal-ring{width:103px;height:103px}.achievement-album{gap:8px}.achievement-album .game-badge{width:56px;height:64px}.achievement-album strong{font-size:28px}.castle-collection{grid-template-columns:repeat(2,1fr)}.castle-miniature{height:120px}.chapter-tabs .game-badge{width:28px;height:32px}.chapter-tabs button{font-size:10px!important;padding:5px!important}}.horse-head-rig{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:72% 40%;animation:horse-look .38s ease-out forwards}.horse-head-rig>img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;clip-path:polygon(65% 17%,88% 17%,90% 45%,84% 48%,75% 46%,65% 37%)}.horse-body-split{clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,65% 17%,65% 37%,75% 46%,84% 48%,90% 45%,88% 17%,65% 17%,0 0)}@keyframes horse-look{0%{transform:rotate(-5deg)}to{transform:rotate(0)}}.kingdom-scene[data-attack-phase=fire] .hero-inventor .actor-rig,.kingdom-scene[data-attack-phase=fire] .hero-mage .actor-rig,.upgrade-phase-fire .hero-inventor .actor-rig,.upgrade-phase-fire .hero-mage .actor-rig{animation:none;transform:none}.hero-ability .flying-rocket{filter:drop-shadow(0 0 4px #ffd98c)}@media (prefers-reduced-motion: reduce){.horse-head-rig{animation:none}}.lesson-actions>.lesson-back{background:#215d50;color:#fff4d6;font-weight:700;text-decoration:none;border-color:#215d50}.lesson-actions>.lesson-back:hover{background:#2b7765}.scene-header .sound-toggle{width:38px;height:38px;padding:7px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}@media (max-width: 550px){.scene-header .sound-toggle{width:30px;height:32px;padding:4px}}.actor-facing{position:absolute;top:0;right:0;bottom:0;left:0;transform:scaleX(var(--facing));transform-origin:50% 50%}.world-account{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#f5eed8;color:#163c3c;padding:24px;text-align:center}.world-account button,.account-back{padding:12px 22px;border:1px solid #a89c71;border-radius:12px;background:#1e5850;color:#fff;cursor:pointer}.account-loading{display:grid;place-items:center;min-height:100dvh;background:#f5eed8;color:#163c3c}.hero-change-link{font-weight:800;text-decoration:underline}.hero-roster{min-height:100dvh;background:radial-gradient(ellipse at 50% 30%,#fff7dc,#e2d3ad);padding:24px clamp(16px,4vw,60px);color:#193d40}.hero-roster header{text-align:center;margin-bottom:20px}.hero-roster h1{margin:16px 0 8px;font-size:clamp(24px,3vw,36px)}.roster-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1280px;margin:auto}.roster-card{background:#fff9e6;border:2px solid #c7b785;border-radius:20px;padding:18px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:8px;box-shadow:0 10px 25px #5d481c22}.roster-card.current{border-color:#2f7767}.roster-card h2{font-size:23px;margin:0}.roster-card>span{font-size:14px}.roster-actor{height:300px;width:225px;max-width:100%;display:flex;align-items:end}.roster-preview-status{font-size:13px;min-height:32px;margin:0}.roster-stages{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:10px}.roster-stages button{min-width:0;border:1px solid #b5a779;border-radius:8px;background:#ece5cc;color:#294d43;padding:5px 2px;cursor:pointer}.roster-stages button[aria-pressed=true]{border:2px solid #286252;background:#d6e7cf}.roster-stages span{font-size:12px;white-space:nowrap}.roster-card>.world-button{margin-top:auto;width:100%}.account-back{position:fixed;top:12px;left:12px;z-index:5000}@media (max-width: 700px){.roster-cards{grid-template-columns:1fr;max-width:420px}.roster-actor{height:270px;width:203px}.hero-roster{padding:16px}.scene-header nav{gap:4px;flex-wrap:wrap;justify-content:flex-end}.scene-header nav button{padding:7px 8px}}.hero-hud>.hud-portrait{flex:none;width:66px;height:85px;display:block;overflow:hidden;border:1px solid #c7aa66;border-radius:9px;background:#e6dfc3}.hud-portrait .hero-actor{width:100%;height:100%}@media (max-width: 700px){.hero-hud>.hud-portrait{width:54px;height:72px}.hero-hud button:not(.hero-change-link){grid-row:2;padding:4px 6px;font-size:11px}.hero-hud .hero-change-link{grid-row:3/5;padding:5px 6px;font-size:11px}}.mastery-path-panel .chapter-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.mastery-path-panel .chapter-tabs>span{padding:10px;border:1px solid #a99d73;border-radius:9px;opacity:.65;font-size:13px}.mastery-path-panel .chapter-tabs small{display:block;font-size:11px;margin-top:5px}.mastery-path-panel .chapter-tabs .path-current{opacity:1;border:2px solid #2e7768}.mastery-path-panel .chapter-tabs .path-done{opacity:1;background:#dfe9d3}.execution-recognition{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0;font-size:13px}.execution-recognition strong{display:block;color:#997224;letter-spacing:2px}.calibration-intro,.checkpoint-intro,.checkpoint-result{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center}.calibration-intro p,.checkpoint-intro p,.checkpoint-result p{max-width:520px}.calibration-intro .world-button{min-width:260px}.map-action-stack{display:flex;flex-direction:column;gap:6px;flex-shrink:0}.map-action-stack button{padding:8px 12px;font-size:13px}.motif-reveal{background:#deecd3;color:#254f3f;padding:10px;border-radius:8px}.recognition-summary{display:block;font-size:11px;line-height:1.5}.challenge-panel .lesson-actions{gap:9px}.challenge-panel .move-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}@media (max-width:700px){.map-action-stack button{font-size:11px;padding:6px 8px}.map-goal>div:first-child{min-width:0}.mastery-path-panel h1{font-size:23px}.mastery-path-panel .chapter-tabs{margin:10px 0}.mastery-path-panel .chapter-tabs>span{padding:6px}.mastery-path-panel .kingdom-actions{gap:8px}.mastery-path-panel p{font-size:13px}}.square-container.lesson-candidate{box-shadow:inset 0 0 0 4px #d7af5d}.world-marker.recommended-location .marker-scroll{box-shadow:0 0 0 3px #ffd368,0 0 28px #fc57}.world-marker.locked{filter:saturate(.35);opacity:.65}.future-location{position:absolute;z-index:3;display:flex;flex-direction:column;align-items:center;color:#eddfb7;background:#173139b8;padding:7px 10px;border:1px solid #a48c59;border-radius:9px;font-size:12px;transform:translate(-50%,-50%);pointer-events:none}.future-location small{font-size:10px}.fog-entry small{display:block;max-width:240px;font-size:11px;line-height:1.3;margin-top:4px}.fog-entry:disabled{opacity:.65}.turn-banner{font-weight:900;font-size:clamp(20px,2vw,27px);padding:10px 12px;border:2px solid #d6b565;border-radius:9px;margin:12px 0;background:#f8efd5;color:#102d34}.turn-b{background:#17333c;color:#fff3d2}.hero-task-action{position:relative;display:flex;align-items:center;gap:22px;min-height:120px;margin:10px 0;overflow:hidden;background:#17394314;border-radius:12px;padding:8px}.task-actor{position:relative;width:90px;height:112px;flex-shrink:0}.task-actor .hero-actor{width:100%;height:100%}.task-gate{display:flex;flex:1;flex-direction:column;gap:5px}.task-gate progress{width:100%;height:12px;accent-color:#d3a544}.task-gate small{color:#95701d}.task-projectile{display:none;position:absolute;left:65px;top:45%;height:5px;width:30px;background:#ffae32;box-shadow:0 0 10px #ffe57c;border-radius:50%}.task-hit .task-projectile{display:block;animation:task-shot .7s ease-out both}.task-hit .task-gate{animation:task-impact .8s ease-out}.mage .task-projectile{background:#9ae8ff;box-shadow:0 0 12px #54aaff}.inventor .task-projectile{height:3px;background:#fff365}@keyframes task-shot{0%{transform:translate(0);opacity:0}20%{opacity:1}80%{transform:translate(150px);opacity:1}to{transform:translate(180px);opacity:0}}@keyframes task-impact{50%{filter:brightness(1.8);transform:translate(4px)}65%{transform:translate(-3px)}to{transform:none}}.guardian-intro{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:80vh;text-align:center}.upgrade-impact-score{color:#ffe896;text-shadow:0 2px 5px #000}@media (max-width:600px){.hero-task-action{min-height:92px}.task-actor{height:90px;width:70px}.turn-banner{font-size:21px}.map-goal .map-action-stack{gap:6px}.fog-entry small{max-width:170px}.future-location{font-size:11px}}@media (prefers-reduced-motion:reduce){.task-hit .task-projectile,.task-hit .task-gate{animation:none}}.original-puzzle .lesson-actions .lesson-back{background:transparent!important;color:#254e59!important;border:0;box-shadow:none;font-weight:500;min-height:36px;padding:6px 10px}.original-puzzle .lesson-actions .lesson-secondary{background:transparent;color:#254e59}.future-location{width:100px;box-sizing:border-box}.fog-entry,.fog-entry small{white-space:normal!important;overflow-wrap:anywhere;letter-spacing:normal}.map-action-stack{min-width:0}.map-action-stack .world-button{white-space:normal}@media (max-width:600px){.map-goal .map-action-stack{width:53%;flex-shrink:1}.map-goal>div:first-child{flex:1}.fog-entry small{font-size:10px}}.map-v2 .world-marker{min-height:0;padding:8px}.map-v2 .world-marker.locked{opacity:1;filter:none;cursor:default}.map-v2 .world-marker:not(.recommended-location) .marker-scroll{background:#163b40e8;color:#f5e6bf;border:1px solid #bea46b80;box-shadow:0 3px 10px #102a3955;padding:7px 10px 7px 17px;min-width:0;max-width:160px}.map-v2 .world-marker:not(.recommended-location) .marker-scroll strong{font-size:12px}.map-v2 .world-marker:not(.recommended-location) .marker-scroll small{font-size:10px;font-weight:400}.map-v2 .world-marker:not(.recommended-location) .marker-shield{width:26px;height:35px;font-size:18px;border-width:1px}.map-v2 .world-marker.locked .marker-shield{display:none}.map-v2 .world-marker.locked .marker-scroll{margin:0;padding:7px 10px;border-radius:5px}.map-v2 .world-marker.recommended-location:after{content:"⚑ Сюда";position:absolute;left:20px;top:-23px;background:#ffd66e;color:#17383b;padding:4px 12px;border-radius:3px 12px 12px 0;font-size:12px;font-weight:800;box-shadow:0 0 18px #ffd66e}.map-v2 .recommended-location:before{opacity:1;animation:journey-beacon 2.8s ease-in-out infinite}@keyframes journey-beacon{50%{transform:scale(1.18);opacity:.5}}.map-v2 .marker-polygon .marker-scroll{max-width:115px}.map-v2 .marker-arena{scale:.9}.map-v2 .future-location{background:linear-gradient(transparent,#23434aaa,transparent);border:0;box-shadow:none;width:120px;text-shadow:0 2px 4px #102b39}.map-v2 .future-location strong{font-size:19px;letter-spacing:3px}.map-v2 .camp-label{left:35%;top:81%;bottom:auto;font-size:12px;padding:4px 10px}.misty-map-place{position:absolute;left:72%;top:79%;z-index:820;display:flex;flex-direction:column;gap:5px;max-width:190px;padding:10px 14px;border:0;border-radius:50%;background:radial-gradient(ellipse,#173d48e8,transparent);color:#f6e7c6;text-align:center}.misty-map-place:disabled{opacity:1;cursor:default}.misty-map-place small{font-size:11px}.map-v2 .map-goal{width:min(630px,calc(100% - 32px));border-radius:30px 30px 12px 12px;padding:16px 22px}.map-v2 .map-action-stack{flex:0 0 auto;width:auto}.map-v2 .travel-route polyline{stroke-width:4;opacity:1}@media (prefers-reduced-motion:reduce){.map-v2 .recommended-location:before{animation:none}}@media (max-width:600px){.map-v2 .map-goal{padding:12px;gap:10px}.map-v2 .map-goal strong{font-size:13px}.map-v2 .map-action-stack{width:auto}.map-v2 .world-marker:not(.recommended-location) .marker-scroll{max-width:115px}.map-v2 .marker-scroll{max-width:145px;min-width:0}}.map-v2 .misty-map-place{background:#173d48dd;border-radius:12px;color:#fff0ce;opacity:1;text-shadow:0 1px 2px #102b39}.map-v2 .misty-map-place:enabled{box-shadow:0 0 24px #d3e9d788;animation:journey-beacon 3s ease-in-out 2}@media (prefers-reduced-motion:reduce){.map-v2 .misty-map-place:enabled{animation:none}}.map-v2 .world-marker:not(.marker-polygon):before{content:"";position:absolute;inset:auto;left:50%;bottom:calc(100% - 8px);width:1px;height:24px;border-radius:0;background:#eed69c;opacity:.8;z-index:-1}.map-v2 .world-marker.recommended-location:before{width:60px;height:60px;left:calc(50% - 30px);bottom:calc(100% - 14px);border-radius:50%;background:radial-gradient(ellipse,#ffe79899,transparent 70%)}.map-v2 .world-marker.recommended-location:after{left:50%;top:-42px;transform:translate(-50%)}.map-v2 .world-marker.locked .marker-scroll{background:#12353adb;border:0;border-bottom:1px solid #d1b8759c;box-shadow:0 2px 5px #06213655;border-radius:4px;padding:6px 8px}.map-v2 .world-marker.locked .marker-scroll strong{font-size:12px}.map-v2 .marker-mate .marker-scroll{max-width:160px;min-width:0}.map-v2 .misty-map-place{left:84%;top:76%;max-width:165px;opacity:1}.map-v2 .misty-map-place:disabled{opacity:1}@media (min-width:701px){.map-v2 .hero-hud{top:auto;bottom:20px;left:18px;width:225px;padding:10px}.map-v2 .hero-hud strong{font-size:15px}.map-v2 .hero-hud .hud-portrait{width:60px;max-width:60px}}.world-state-layer{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:5;overflow:hidden}.castle-state{position:absolute;transform:translate(-50%,-50%);pointer-events:none}.castle-atmosphere{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;transition:background 1.6s,opacity 1.6s}.castle-locked .castle-atmosphere{background:radial-gradient(ellipse at 50% 60%,#17364680 10%,#59778175 43%,#b5c8c955 60%,transparent 74%);-webkit-backdrop-filter:saturate(.65);backdrop-filter:saturate(.65);-webkit-mask-image:radial-gradient(ellipse,#000 40%,transparent 72%);mask-image:radial-gradient(ellipse,#000 40%,transparent 72%)}.castle-locked:after{content:"";position:absolute;top:25%;right:-8%;bottom:-4%;left:-8%;border-radius:50%;background:radial-gradient(ellipse,#d9e5df85,transparent 70%);filter:blur(9px);animation:castle-fog 9s ease-in-out infinite alternate}.castle-recommended .castle-atmosphere{background:radial-gradient(ellipse,#ffdf7133 20%,#fff0b25c 48%,transparent 73%);mix-blend-mode:screen;animation:castle-light 3s ease-in-out infinite}.castle-beacon{position:absolute;left:48%;top:0;width:4%;height:95%;background:linear-gradient(transparent,#fff3aa99,transparent);filter:blur(5px);transform:rotate(8deg)}.castle-completed .castle-atmosphere{background:radial-gradient(ellipse at 50% 65%,#e9ffd129,#a6e8b34d 47%,transparent 73%)}.liberated-banner{position:absolute;left:50%;top:13%;display:flex;align-items:center;justify-content:center;width:38px;height:52px;background:linear-gradient(130deg,#206653,#103f3e);border:2px solid #ffdd80;clip-path:polygon(0 0,100% 0,100% 100%,50% 84%,0 100%);color:#ffe9a7;filter:drop-shadow(0 2px 3px #143f37);transform-origin:top;animation:victory-flag 4s ease-in-out infinite}.liberated-banner b{font-size:28px}.liberated-banner span{position:absolute;right:2px;bottom:10px;font-size:12px;font-weight:700}.opened-road{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:6;pointer-events:none}.opened-road polyline{fill:none;stroke:#ffe299;stroke-width:2.5;stroke-dasharray:2 12;stroke-linecap:round;filter:drop-shadow(0 0 3px #ffe792);opacity:.85;animation:road-revealed 2s ease-out both}.map-v2 .world-marker.recommended .marker-scroll{background:linear-gradient(110deg,#fff1b9,#e5bb64);border-radius:2px 4px 10px 2px;box-shadow:0 2px 5px #322b19,0 0 20px #ffe38c77;padding:7px 10px 7px 18px}.map-v2 .world-marker.completed .marker-scroll{background:#194b40e8;color:#fff0bb;border:1px solid #dabd72;border-radius:3px 3px 10px}.map-v2 .world-marker.completed .marker-shield{background:#235744;color:#ffe395}.map-v2 .world-marker .marker-scroll progress{display:none}@keyframes castle-fog{to{transform:translate(5%) scale(1.06);opacity:.65}}@keyframes castle-light{50%{opacity:.55}}@keyframes victory-flag{50%{transform:skewY(-5deg)}}@keyframes road-revealed{0%{opacity:0;stroke-dashoffset:32}to{opacity:.85;stroke-dashoffset:0}}@media (prefers-reduced-motion:reduce){.castle-state *,.castle-state:after,.opened-road polyline{animation:none!important;transition:none!important}}.liberated-banner{left:25%;top:8%;z-index:2}.castle-recommended:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(ellipse,#d9e5df99,transparent 70%);animation:fog-clears 2s ease-out both}@keyframes fog-clears{0%{opacity:.85;transform:scale(.9)}to{opacity:0;transform:scale(1.3)}}.map-goal .route-open-message{letter-spacing:normal;font-size:11px;color:#e7dba7}.opened-road polyline{stroke-width:3.5;stroke-dasharray:2 9}.castle-available .castle-atmosphere{background:radial-gradient(ellipse,#a5e5d918,transparent 70%)}.map-v2 .world-marker.available:not(.marker-arena):not(.marker-polygon) .marker-scroll{border:1px solid #9ad9be;background:#194e48e8;color:#fff0c8}.map-v2 .marker-pin .marker-scroll{max-width:140px}.map-v2 .misty-map-place{background:radial-gradient(ellipse,#546b82f0,#183b4cdd);border:1px solid #b6c7d680;box-shadow:0 0 25px 12px #b4c9dc33}.map-v2 .misty-map-place:before{content:"";position:absolute;top:-25px;right:-25px;bottom:-25px;left:-25px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,#b6ccdd55,transparent 70%);filter:blur(8px)}.map-v2 .world-marker{width:max-content;max-width:250px}.map-v2 .marker-pin .marker-scroll{min-width:120px;max-width:140px;flex-shrink:0}.gosha-world .turn-banner{font-size:13px!important;font-weight:600;padding:5px 10px!important;min-height:0;width:max-content;max-width:100%;border-width:1px;box-shadow:none;margin:8px 0;text-transform:none}.hero-task-action .task-actor{width:65px;height:90px;flex-shrink:0}.hero-task-action .task-gate{flex:1;min-width:140px}.gate-illustration{height:65px;width:95px;margin:0 auto 8px;border:9px solid #716959;border-bottom:0;border-radius:35px 35px 0 0;background:repeating-linear-gradient(90deg,#453328 0,#453328 12px,#251e19 13px,#251e19 16px);box-shadow:0 3px 10px #0007}.task-gate small{display:block;font-size:11px}.map-v2 .marker-arena .marker-scroll{background:#662f37ed!important;border-color:#dc9d8b!important}.map-v2 .marker-polygon .marker-scroll{background:#354e66ed!important;border-color:#94bdce!important}.world-tour{position:fixed;top:0;right:0;bottom:0;left:0;z-index:4000;overflow:hidden}.tour-spotlight{position:absolute;pointer-events:none;border:2px solid #ffdd8a;border-radius:16px;box-shadow:0 0 0 300vmax #071822b8;transition:all .35s}.tour-dialog{position:absolute;bottom:22px;left:50%;transform:translate(-50%);width:min(540px,calc(100% - 28px));box-sizing:border-box;background:#fff0cd;color:#193d43;padding:20px;border:2px solid #d9b369;border-radius:16px;box-shadow:0 8px 40px #0007}.tour-dialog p{font-size:19px;line-height:1.4;margin:10px 0 16px}.tour-dialog button{margin-right:12px}.tour-example{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.tour-example span{padding:8px;background:#ead69f;border-radius:6px;animation:tour-step 2.4s infinite}.tour-example span:nth-child(2){animation-delay:.5s}.tour-example span:nth-child(3){animation-delay:1s}.tour-example span:nth-child(4){animation-delay:1.5s}@keyframes tour-step{50%{background:#ffe67e;transform:translateY(-4px)}}@media (prefers-reduced-motion:reduce){.tour-spotlight{transition:none}.tour-example span{animation:none}}.piece-guide{font-size:12px;border-top:1px solid #c7b68f;padding-top:7px}.piece-guide summary{cursor:pointer;font-weight:700}.piece-guide>div{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px}.piece-guide>div>span{display:flex;align-items:center;gap:3px}.piece-guide img{width:20px;height:30px;object-fit:contain}.piece-guide b{font:20px Segoe UI Symbol,serif}.gate-illustration{position:relative;overflow:hidden}.gate-illustration[data-damage]:not([data-damage="0"]):after{content:"";position:absolute;top:5%;right:20%;bottom:5%;left:20%;background:#121918;clip-path:polygon(42% 0,58% 0,46% 30%,70% 47%,40% 67%,55% 100%,33% 100%,27% 64%,54% 46%,30% 30%)}.gate-illustration[data-damage="2"]{border-left-width:6px;filter:brightness(.85)}.gate-illustration[data-damage="3"]{border-right-width:4px;transform:rotate(-3deg);filter:brightness(.7)}.gate-illustration[data-damage="4"]{background:#17282c;border-top-style:dashed}.task-hit .gate-illustration{animation:gate-impact .55s ease-out}.damage-burst{display:block;color:#9e3b16;font-size:18px;margin:8px 0}@keyframes gate-impact{30%{transform:translate(4px);filter:brightness(1.8)}65%{transform:translate(-3px)}}@media (min-width:1000px){.original-puzzle{--board-safe-size:min(59vw,76dvh,720px)}.original-puzzle .game-container{max-width:1220px!important;grid-template-columns:1fr 300px!important}}@media (prefers-reduced-motion:reduce){.task-hit .gate-illustration{animation:none}}@media (min-width:1000px){.gosha-world .original-puzzle .game-container{--board-safe-size:min(59vw,76dvh,720px)}}@media (min-width:1001px){.gosha-world .game-container,.gosha-world .original-puzzle .game-container{max-width:1560px!important;grid-template-columns:minmax(0,1fr) 290px!important;gap:18px;padding:12px;--board-safe-size:min( calc(100vw - 410px) ,84dvh,960px)}.gosha-world .game-screen{padding:12px}.gosha-world .game-sidebar{min-width:0}}@media (min-width:701px) and (max-width:1000px){.gosha-world .game-container,.gosha-world .original-puzzle .game-container{grid-template-columns:1fr!important;max-width:900px!important;--board-safe-size:min( calc(100vw - 64px) ,78dvh,800px)}.gosha-world .game-sidebar{width:100%}}@media (max-width:700px){.gosha-world .game-screen{padding:6px}.gosha-world .game-container,.gosha-world .original-puzzle .game-container{padding:8px;grid-template-columns:1fr!important;--board-safe-size: calc(100vw - 44px) ;gap:12px}.gosha-world .game-sidebar{width:100%}.gosha-world .lesson-panel{padding:8px 2px}.gosha-world .lesson-actions button{min-height:44px}}.piece-carousel>div.piece-carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}.piece-carousel-controls button{width:38px;height:34px;border:1px solid #bca878;border-radius:6px;background:#fff3d4;color:#173c43;font-size:20px}.piece-carousel-controls small{font-size:11px}.piece-carousel>div.piece-carousel-track{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;touch-action:pan-x pan-y;scrollbar-width:thin;-webkit-user-select:none;user-select:none;cursor:grab;padding:3px 0 8px;max-width:100%}.piece-carousel-card{flex:0 0 145px;scroll-snap-align:start;background:#f6edd9;border:1px solid #cfbf98;border-radius:10px;padding:7px;box-sizing:border-box;text-align:center}.piece-carousel-card>div{display:flex;justify-content:center}.piece-carousel .piece-carousel-card img{width:59px;height:88px;object-fit:contain;pointer-events:none}.piece-carousel-card strong{font-size:14px;display:block;color:#183c44}.piece-carousel>summary{min-height:30px}.piece-carousel:focus-within{outline-offset:2px}.map-v2 .marker-arena .marker-shield{background:#7a293e;border-color:#ffbaa8}.map-v2 .marker-polygon .marker-shield{background:#2b587b;border-color:#99d5ef}.map-v2 .marker-arena .marker-scroll{background:#792d42f5!important}.map-v2 .marker-polygon .marker-scroll{background:#2b587bf5!important}.gosha-world .game-screen,.gosha-world .game-container,.gosha-world .game-sidebar,.gosha-world .lesson-panel,.piece-carousel,.piece-carousel-track,.piece-carousel-controls{box-sizing:border-box;min-width:0}.gosha-world .game-sidebar,.gosha-world .lesson-panel,.piece-carousel{max-width:100%;width:100%}@media (min-width:1001px){.gosha-world .game-container,.gosha-world .original-puzzle .game-container{width:min(100%,calc(var(--board-safe-size) + 380px));grid-template-columns:minmax(0,1fr) 300px!important;padding:18px;gap:24px;margin-inline:auto}.gosha-world .game-screen{padding:18px}}.piece-carousel-card{flex-basis:calc((100% - 10px)/2);min-width:130px}.piece-carousel-controls button{flex:0 0 38px}.piece-carousel-track{width:100%}.gosha-world .lesson-panel>button{max-width:100%;white-space:normal}.product-panel{background:#fff0cf;color:#173e43;padding:24px;border-radius:18px;width:min(520px,calc(100vw - 36px));max-height:85dvh;overflow:auto;box-sizing:border-box}.product-panel button{display:block;margin:12px 0;padding:12px}.product-panel li{margin:12px 0}.product-panel small{display:block}.activity-shell>button{margin:8px;padding:12px}.product-panel>button:not(.world-button),.activity-shell>button:not(.world-button){border:1px solid #c9b473;border-radius:10px;background:#fff2d0;color:#173e43;font:600 14px var(--font-family);min-height:44px}.product-panel ul{padding-left:20px}.product-panel button{width:100%}.product-panel button:focus-visible,.activity-shell>button:focus-visible{outline:3px solid #e6b845;outline-offset:3px}.product-panel p{line-height:1.45;margin:6px 0}.product-panel h2{margin-top:16px;margin-bottom:8px}.future-location.region-open{background:#174f48e8;color:#fff1b7;border:1px solid #ffe2a0;border-radius:14px;padding:10px;box-shadow:0 0 30px #fceaa377;cursor:pointer;max-width:210px}.future-location.region-open strong{font-size:18px}.future-location.region-locked{border:0;background:transparent;color:#fff6dc;opacity:.8}.future-location.region-open,.future-location.region-locked{width:210px;max-width:210px;letter-spacing:normal;z-index:650}.future-location.region-open{pointer-events:auto}.future-location.region-open strong,.future-location.region-locked strong{font-size:18px;letter-spacing:normal;overflow-wrap:normal}.future-location.region-open small,.future-location.region-locked small{font-size:12px}.profile-screen{position:relative;width:100%;min-height:100vh;min-height:100dvh;background:linear-gradient(180deg,#0f172a,#1e293b,#0f172a);color:#fff;overflow-y:auto;padding-bottom:max(100px,env(safe-area-inset-bottom,100px))}.profile-screen.loading{display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:#fff9}.profile-empty{padding:1.5rem}.profile-empty-card{width:min(420px,100%);padding:1.5rem;border-radius:18px;background:#0f172ae0;border:1px solid rgba(255,255,255,.14);box-shadow:0 20px 50px #00000040;text-align:center}.profile-empty-card h2{margin:0 0 .75rem;color:#fff;font-size:1.4rem}.profile-empty-card p{margin:0 0 1.25rem;color:#ffffffb8;font-size:1rem;line-height:1.45}.profile-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 30% 20%,rgba(59,130,246,.1) 0%,transparent 40%),radial-gradient(circle at 70% 60%,rgba(139,92,246,.1) 0%,transparent 40%),radial-gradient(circle at 50% 90%,rgba(245,158,11,.08) 0%,transparent 40%);pointer-events:none;z-index:0}.profile-header{position:sticky;top:0;z-index:10;background:#0f172ae6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:.8rem 1rem;border-bottom:1px solid rgba(255,255,255,.1)}.btn-back-profile{position:absolute;left:1rem;top:50%;transform:translateY(-50%);background:#ffffff1a;border:none;color:#fff;padding:.5rem 1rem;border-radius:10px;cursor:pointer;font-size:.9rem;transition:all .2s}.btn-back-profile:hover{background:#fff3}.profile-top-bar{display:flex;justify-content:space-between;align-items:center;margin-left:5rem}.profile-user-info{display:flex;align-items:center;gap:.8rem}.profile-avatar{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;box-shadow:0 0 20px #fff3;animation:avatarPulse 3s ease-in-out infinite;overflow:hidden}.profile-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%}@keyframes avatarPulse{0%,to{box-shadow:0 0 15px #ffffff26}50%{box-shadow:0 0 25px #ffffff4d}}.profile-name-level{display:flex;flex-direction:column}.profile-name{font-size:1.1rem;font-weight:700}.profile-level-badge{font-size:.8rem;background:linear-gradient(135deg,#f59e0b,#d97706);padding:.1rem .5rem;border-radius:8px;font-weight:600;margin-top:.2rem;width:fit-content}.profile-currencies{display:flex;gap:.8rem}.currency{display:flex;align-items:center;gap:.3rem;padding:.4rem .8rem;background:#ffffff1a;border-radius:20px;font-size:.9rem}.currency-icon{font-size:1rem}.currency-value{font-weight:600}.hero-zone{position:relative;z-index:1;padding:2.5rem 1rem 3rem;display:flex;flex-direction:column;align-items:center;gap:1.5rem}.hero-display{display:flex;justify-content:center}.hero-character{position:relative;width:260px;height:260px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;animation:heroFloat 4s ease-in-out infinite}@keyframes heroFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-15px)}}.hero-big-avatar{font-size:5rem;filter:drop-shadow(0 0 20px rgba(255,255,255,.3))}.hero-big-avatar-img{width:120px;height:120px;object-fit:contain;filter:drop-shadow(0 0 20px rgba(255,255,255,.3))}.hero-stage-badge{margin-top:.5rem;padding:.3rem .8rem;background:#ffffff26;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border-radius:20px;font-size:.8rem;color:#fffc}.hero-bubble{position:absolute;bottom:-60px;left:50%;transform:translate(-50%);background:#ffffff26;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:.6rem 1rem;border-radius:16px;border:1px solid rgba(255,255,255,.2);max-width:280px;text-align:center}.hero-bubble:before{content:"";position:absolute;top:-8px;left:50%;transform:translate(-50%);border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid rgba(255,255,255,.15)}.hero-speech{font-size:.85rem;color:#fff;margin:0;font-style:italic}.level-progress-section{width:100%;max-width:400px}.level-info{display:flex;justify-content:space-between;margin-bottom:.5rem}.level-text{font-size:1.1rem;font-weight:700}.xp-text{font-size:.9rem;color:#fff9}.xp-bar-bg{width:100%;height:16px;background:#ffffff1a;border-radius:10px;overflow:hidden}.xp-bar-fill{height:100%;border-radius:10px;transition:width .5s cubic-bezier(.4,0,.2,1);animation:xpShimmer 2s ease-in-out infinite}@keyframes xpShimmer{0%,to{filter:brightness(1)}50%{filter:brightness(1.2)}}.next-level-hint{text-align:center;font-size:.85rem;color:#ffffff80;margin-top:.5rem}.profile-tabs{display:flex;gap:.5rem;padding:0 1rem;overflow-x:auto;position:relative;z-index:1;margin-bottom:1rem}.tab-btn{padding:.6rem 1rem;background:#ffffff14;border:1px solid rgba(255,255,255,.1);border-radius:12px;color:#fff9;cursor:pointer;font-size:.9rem;white-space:nowrap;transition:all .2s}.tab-btn:hover{background:#ffffff26;color:#fff}.tab-btn.active{background:linear-gradient(135deg,#3b82f64d,#8b5cf64d);border-color:#3b82f680;color:#fff;font-weight:600}.profile-content{position:relative;z-index:1;padding:0 1rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1rem}.stat-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:1rem;text-align:center;transition:all .2s}.stat-card:hover{transform:translateY(-4px);background:#ffffff1a}.stat-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;margin:0 auto .5rem}.stat-value{font-size:1.5rem;font-weight:700;margin-bottom:.3rem}.stat-label{font-size:.8rem;color:#ffffff80}.achievements-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.achievement-card{background:#ffffff0d;border:2px solid rgba(255,255,255,.1);border-radius:16px;padding:1rem;transition:all .2s}.achievement-card:hover{transform:translateY(-4px)}.achievement-card.unlocked{background:#ffffff1a}.achievement-card.locked{filter:grayscale(.5)}.ach-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.ach-icon{font-size:1.5rem}.ach-rarity{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.ach-title{font-size:1rem;margin:0 0 .3rem}.ach-desc{font-size:.8rem;color:#ffffff80;margin:0 0 .8rem}.ach-progress{margin-bottom:.5rem}.ach-progress-bg{width:100%;height:8px;background:#ffffff1a;border-radius:4px;overflow:hidden;margin-bottom:.3rem}.ach-progress-fill{height:100%;border-radius:4px;transition:width .5s cubic-bezier(.4,0,.2,1)}.ach-progress-text{font-size:.75rem;color:#ffffff80}.ach-rewards{display:flex;gap:.8rem;font-size:.8rem;color:#f59e0b;font-weight:600}.missions-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.missions-header h3{margin:0;font-size:1.2rem}.missions-count{font-size:.9rem;color:#fff9}.missions-list{display:flex;flex-direction:column;gap:1rem}.mission-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:1rem;display:flex;align-items:center;gap:1rem;transition:all .2s}.mission-card:hover{background:#ffffff1a}.mission-card.completed{border-color:#10b98180;background:#10b9811a}.mission-card.claimed{opacity:.6}.mission-icon{font-size:2rem}.mission-info{flex:1}.mission-title{margin:0 0 .2rem;font-size:1rem}.mission-desc{margin:0 0 .5rem;font-size:.8rem;color:#ffffff80}.mission-progress-bar{width:100%;height:6px;background:#ffffff1a;border-radius:3px;overflow:hidden;margin-bottom:.3rem}.mission-progress-fill{height:100%;background:linear-gradient(90deg,#10b981,#34d399);border-radius:3px;transition:width .3s}.mission-progress-text{font-size:.75rem;color:#ffffff80}.mission-rewards{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;font-size:.8rem}.reward-xp{color:#f59e0b;font-weight:600}.reward-crystals{color:#8b5cf6;font-weight:600}.btn-claim{padding:.5rem 1rem;background:linear-gradient(135deg,#10b981,#059669);border:none;border-radius:10px;color:#fff;font-weight:600;cursor:pointer;transition:all .2s;animation:claimBounce .5s}.btn-claim:hover{transform:scale(1.05)}@keyframes claimBounce{0%{transform:scale(.8)}to{transform:scale(1)}}.mission-claimed{font-size:1.5rem;color:#10b981}.history-tab.empty{display:flex;justify-content:center;padding:3rem 0}.history-empty{text-align:center;color:#ffffff80}.history-empty-icon{font-size:4rem;display:block;margin-bottom:1rem}.history-empty-hint{font-size:.9rem;margin-top:.5rem}.history-list{display:flex;flex-direction:column;gap:.8rem}.history-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1rem;display:flex;align-items:center;gap:1rem}.history-card.win{border-left:4px solid #10B981}.history-card.lose{border-left:4px solid #EF4444}.history-card.draw{border-left:4px solid #F59E0B}.history-result{font-size:1.5rem}.history-info{flex:1;display:flex;flex-direction:column;gap:.2rem}.history-result-text{font-weight:600}.history-opponent{font-size:.85rem;color:#fff9}.history-details{font-size:.75rem;color:#fff6}.history-xp{font-size:.9rem;font-weight:700;color:#f59e0b}.profile-play-section{position:fixed;bottom:0;left:0;right:0;padding:max(1rem,env(safe-area-inset-bottom,1rem)) 1rem;background:linear-gradient(180deg,transparent 0%,rgba(15,23,42,.95) 30%,#0f172a 100%);display:flex;justify-content:center;z-index:10}.btn-profile-play{padding:1rem 3rem;font-size:1.3rem;font-weight:700;border:none;border-radius:16px;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 8px 30px #f59e0b4d}.btn-profile-play:hover{transform:translateY(-4px) scale(1.05);box-shadow:0 12px 40px #f59e0b80}.btn-profile-play:active{transform:translateY(0) scale(.98)}@media (max-width: 1024px){.stats-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.achievements-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}@media (max-width: 768px){.profile-top-bar{flex-direction:column;gap:.5rem;align-items:flex-start;margin-left:0}.profile-currencies{align-self:flex-end}.hero-character{width:200px;height:200px}.hero-big-avatar{font-size:4rem}.hero-big-avatar-img{width:90px;height:90px}.level-progress-section{max-width:300px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:.8rem}.stat-card{padding:.8rem}.stat-icon{width:32px;height:32px;font-size:1rem}.stat-value{font-size:1.2rem}.stat-label{font-size:.7rem}.achievements-grid{grid-template-columns:1fr}.mission-card{flex-direction:column;text-align:center;padding:.8rem}.mission-rewards{flex-direction:row;align-items:center}.profile-tabs{gap:.3rem;padding:0 .5rem}.tab-btn{padding:.5rem .8rem;font-size:.8rem}.btn-profile-play{padding:.8rem 2rem;font-size:1.1rem}}@media (max-width: 480px){.profile-screen{padding-bottom:80px}.profile-header{padding:.6rem .8rem}.btn-back-profile{padding:.4rem .8rem;font-size:.8rem}.profile-avatar{width:40px;height:40px;font-size:1.2rem}.profile-name{font-size:1rem}.profile-level-badge{font-size:.7rem}.currency{padding:.3rem .6rem;font-size:.8rem}.hero-zone{padding:1.5rem .5rem 2rem}.hero-character{width:160px;height:160px}.hero-big-avatar{font-size:3rem}.hero-big-avatar-img{width:70px;height:70px}.hero-stage-badge{font-size:.7rem;padding:.2rem .6rem}.hero-bubble{max-width:220px;padding:.4rem .8rem}.hero-speech{font-size:.75rem}.level-progress-section{max-width:260px}.level-text{font-size:.9rem}.xp-text{font-size:.75rem}.xp-bar-bg{height:12px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:.6rem}.stat-card{padding:.6rem}.stat-icon{width:28px;height:28px;font-size:.9rem}.stat-value{font-size:1rem}.history-card{padding:.8rem;gap:.8rem}.history-result{font-size:1.2rem}.history-opponent{font-size:.75rem}.profile-play-section{padding:.8rem}.btn-profile-play{padding:.7rem 2rem;font-size:1rem}}@media (max-width: 375px){.profile-header{padding:.5rem .6rem}.profile-avatar{width:36px;height:36px;font-size:1rem}.profile-name{font-size:.9rem}.hero-character{width:140px;height:140px}.hero-big-avatar{font-size:2.5rem}.hero-big-avatar-img{width:60px;height:60px}.tab-btn{padding:.4rem .6rem;font-size:.7rem}.stat-card{padding:.5rem}.stat-value{font-size:.9rem}.btn-profile-play{padding:.6rem 1.5rem;font-size:.9rem}}.premium-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-out}.premium-modal-content{background:#fff;border-radius:24px;padding:40px 32px 32px;max-width:400px;width:90%;text-align:center;position:relative;animation:scaleIn .3s ease-out;box-shadow:0 20px 60px #0000004d}.premium-modal-close{position:absolute;top:12px;right:16px;background:none;border:none;font-size:24px;color:#9e9e9e;cursor:pointer;padding:4px 8px;line-height:1}.premium-modal-close:hover{color:#212121}.premium-modal-icon{width:80px;height:80px;margin:0 auto 20px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:36px}.premium-modal-icon:before{content:"";display:block}.premium-modal-title{font-size:22px;font-weight:800;color:#212121;margin:0 0 12px}.premium-modal-text{font-size:15px;color:#666;line-height:1.5;margin:0 0 24px}.premium-modal-btn{padding:14px 40px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s;font-family:var(--font-family)}.premium-modal-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}@keyframes scaleIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.match-setup-screen{position:relative;min-height:100vh;min-height:100dvh;padding:16px;display:flex;align-items:center;justify-content:center}.match-setup-bg{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}.match-setup-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#00000080;z-index:1}.match-setup-container{position:relative;z-index:2;max-width:1000px;margin:0 auto;background:#fff;border-radius:20px;padding:24px;box-shadow:0 10px 40px #0003}.match-setup-header{display:flex;align-items:center;gap:16px;margin-bottom:16px}.back-btn{padding:8px 16px;background:#f5f5f5;border:none;border-radius:10px;font-size:14px;font-weight:600;color:#212121;cursor:pointer;transition:all .2s;font-family:var(--font-family)}.back-btn:hover{background:#e0e0e0}.match-setup-title{font-size:24px;font-weight:800;color:#212121;flex:1;text-align:center}.match-setup-body{display:grid;grid-template-columns:1fr 1.2fr;gap:16px;margin-bottom:16px}.setup-section{background:#f8f9fa;border-radius:16px;padding:16px}.setup-section-title{font-size:14px;font-weight:800;color:#212121;margin:0 0 10px;text-transform:uppercase;letter-spacing:.5px;text-align:center}.hero-section-title{background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.opponent-section-title{color:#868686}.hero-carousel{display:flex;flex-direction:column;align-items:center;gap:8px}.hero-carousel-visual{position:relative;width:160px;height:195px;display:flex;align-items:center;justify-content:center;touch-action:pan-y;-webkit-user-select:none;user-select:none}.hero-carousel-media{max-width:100%;max-height:100%;object-fit:contain;border-radius:14px}.hero-carousel-media.locked{filter:brightness(.7)}.hero-carousel-lock{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:64px;height:64px;background:#0009;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:transform .2s}.hero-carousel-lock:hover{transform:translate(-50%,-50%) scale(1.1)}.lock-icon{font-size:28px}.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:30px;background:#fff;border:none;border-radius:50%;font-size:20px;font-weight:700;color:#212121;cursor:pointer;box-shadow:0 2px 8px #00000026;display:flex;align-items:center;justify-content:center;transition:all .2s;z-index:2;line-height:1}.carousel-arrow:hover{background:#667eea;color:#fff}.carousel-arrow-left{left:-6px}.carousel-arrow-right{right:-6px}.hero-carousel-info{text-align:center}.hero-carousel-name{font-size:15px;font-weight:700;color:#212121;margin:0 0 2px}.hero-carousel-desc{font-size:11px;color:#666;margin:0;line-height:1.3}.hero-carousel-dots{display:flex;gap:6px;margin-top:6px}.hero-carousel-dot{width:8px;height:8px;border-radius:50%;background:#ddd;transition:all .3s}.hero-carousel-dot.active{background:#667eea;transform:scale(1.2)}.opponent-section{display:flex;flex-direction:column;align-items:center}.opponent-carousel{display:flex;align-items:center;gap:8px;margin-bottom:10px;touch-action:pan-y;-webkit-user-select:none;user-select:none}.opponent-nav{width:32px;height:32px;background:#fff;border:2px solid #E0E0E0;border-radius:50%;font-size:18px;font-weight:700;color:#212121;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0;line-height:1}.opponent-nav:hover:not(:disabled){border-color:#667eea;color:#667eea}.opponent-nav:disabled{opacity:.3;cursor:default}.opponent-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:200px;width:100%}.opponent-visual{width:160px;height:195px;background:#fff;border-radius:16px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000014;overflow:hidden}.opponent-image{max-width:100%;max-height:100%;object-fit:contain}.opponent-info-row{display:flex;flex-direction:column;align-items:center;gap:2px}.opponent-name{font-size:18px;font-weight:800;color:#212121;margin:0;text-align:center}.opponent-desc{font-size:11px;color:#666;margin:0;line-height:1.3;max-width:200px;text-align:center}.opponent-stars{display:flex;gap:2px;flex-shrink:0}.star{font-size:16px;color:#ddd}.star.filled{color:gold}.opponent-dots{display:flex;gap:6px}.opponent-dot{width:8px;height:8px;border-radius:50%;background:#ddd;cursor:pointer;transition:all .3s}.opponent-dot.active{background:#212121;transform:scale(1.3)}.color-section{text-align:center;margin-bottom:14px}.color-section-title{font-size:13px;font-weight:800;color:#212121;margin:0 0 10px;text-transform:uppercase;letter-spacing:.5px}.color-options{display:flex;gap:10px;max-width:320px;margin:0 auto}.color-option{flex:1;padding:10px;border:2px solid #E0E0E0;border-radius:12px;background:#fff;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;align-items:center;gap:4px}.color-option:hover{border-color:#4a90d9}.color-option.selected{border-color:#4a90d9;background:linear-gradient(135deg,#e3f2fd,#bbdefb);box-shadow:0 4px 12px #4a90d94d}.color-piece-image{width:44px;height:44px;object-fit:contain}.color-name{font-size:13px;font-weight:700;color:#212121}.match-setup-footer{margin-top:4px}.start-game-btn{width:100%;padding:14px 24px;font-size:17px}@media (max-width: 1024px) and (min-width: 769px){.match-setup-container{max-width:900px;padding:20px 16px}.match-setup-body{gap:14px}.hero-carousel-visual,.opponent-visual{width:140px;height:170px}.opponent-card{min-width:180px}}@media (max-width: 768px){.match-setup-screen{display:block;padding:12px;padding-left:max(12px,env(safe-area-inset-left,0));padding-right:max(12px,env(safe-area-inset-right,0));padding-bottom:max(12px,env(safe-area-inset-bottom,0));min-height:100dvh;height:auto}.match-setup-container{padding:16px 12px;border-radius:16px;margin:0;max-width:100%}.match-setup-body{grid-template-columns:1fr;gap:14px}.match-setup-title{font-size:20px;text-align:center}.match-setup-header{flex-direction:row;align-items:center;gap:12px;margin-bottom:14px}.hero-carousel-visual,.opponent-visual{width:130px;height:160px}.opponent-card{min-width:160px}.opponent-name{font-size:16px}.opponent-desc{font-size:11px}.setup-section{padding:12px}.setup-section-title{font-size:13px}.color-options{max-width:280px}.start-game-btn{font-size:16px;padding:14px 20px}}@media (max-width: 480px){.match-setup-screen{padding:8px}.match-setup-container{padding:12px 10px;margin-bottom:16px}.match-setup-header{flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:12px}.back-btn{padding:6px 12px;font-size:13px}.match-setup-title{text-align:left;font-size:18px}.setup-section{padding:10px}.setup-section-title{font-size:12px;margin-bottom:8px}.hero-carousel-visual{width:110px;height:140px}.hero-carousel-lock{width:44px;height:44px}.lock-icon{font-size:20px}.carousel-arrow{width:24px;height:24px;font-size:14px}.hero-carousel-name{font-size:13px}.hero-carousel-desc{font-size:10px}.opponent-visual{width:110px;height:140px}.opponent-nav{width:26px;height:26px;font-size:14px}.opponent-card{min-width:140px}.opponent-name{font-size:14px}.opponent-desc{font-size:10px;max-width:140px}.star{font-size:13px}.color-section-title{font-size:11px;margin-bottom:8px}.color-options{gap:8px;max-width:100%}.color-option{padding:8px}.color-piece-image{width:30px;height:30px}.color-name{font-size:11px}.start-game-btn{font-size:14px;padding:12px 16px}}@media (max-width: 375px){.match-setup-screen{padding:6px}.match-setup-container{padding:10px 8px}.match-setup-title{font-size:16px}.hero-carousel-visual,.opponent-visual{width:90px;height:115px}.opponent-card{min-width:120px}.opponent-name{font-size:13px}.color-piece-image{width:26px;height:26px}.start-game-btn{font-size:13px;padding:10px}}.result-screen{position:relative;min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px}@media (max-width: 768px){.result-screen{display:block;padding:16px}}.result-background{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}.result-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000000a6;z-index:1}.checkmate-video-container{position:fixed;top:0;right:0;bottom:0;left:0;padding-top:env(safe-area-inset-top,0);padding-bottom:env(safe-area-inset-bottom,0);z-index:10;display:flex;align-items:center;justify-content:center;background:#000;overflow:hidden}.checkmate-video{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;height:100dvh;object-fit:contain;z-index:10}.checkmate-video-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000004d}.result-container{position:relative;z-index:5;max-width:500px;width:90%;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:24px;padding:clamp(24px,5vw,40px) clamp(20px,5vw,32px);box-shadow:0 10px 40px #0000004d;text-align:center}.result-header{margin-bottom:clamp(20px,4vw,32px)}.result-emoji{font-size:clamp(50px,12vw,80px);margin-bottom:16px;animation:bounce .5s ease-in-out}.result-title{font-size:clamp(24px,6vw,36px);font-weight:800;color:#212121;margin-bottom:12px}.result-message{font-size:clamp(14px,3vw,18px);color:#757575;margin:0}.result-info{display:flex;justify-content:center;gap:clamp(16px,4vw,32px);padding:clamp(16px,3vw,24px);background:#f5f5f5;border-radius:16px;margin-bottom:clamp(20px,4vw,32px)}.result-stat{display:flex;flex-direction:column;gap:4px}.stat-label{font-size:14px;color:#757575;text-transform:uppercase;font-weight:600;letter-spacing:.5px}.stat-value{font-size:24px;font-weight:700;color:#212121}.result-actions{display:flex;flex-direction:column;gap:12px}.result-actions .btn{width:100%}@keyframes resultPop{0%{transform:scale(.7);opacity:0}60%{transform:scale(1.05)}to{transform:scale(1);opacity:1}}.animate-resultPop{animation:resultPop .5s cubic-bezier(.4,0,.2,1) forwards}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.confetti-container{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:6;overflow:hidden}.confetti{position:absolute;top:-20px;animation:confettiFall linear forwards;opacity:.9}@keyframes confettiFall{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(110vh) rotate(720deg);opacity:0}}.firework-spark{position:absolute;width:4px;height:4px;border-radius:50%;animation:spark 1.5s ease-out forwards}@keyframes spark{0%{transform:translate(0) scale(1);opacity:1}to{transform:translate(var(--spark-x),var(--spark-y)) scale(0);opacity:0}}@media (max-width: 480px){.result-container{padding:24px 16px;width:92%}.result-emoji{font-size:60px}.result-title{font-size:28px}.result-message{font-size:16px}.result-info{flex-direction:column;gap:12px;padding:16px}.stat-label{font-size:12px}.stat-value{font-size:20px}.result-actions .btn{padding:14px 20px;font-size:15px}}@media (max-width: 375px){.result-container{padding:20px 12px;width:95%}.result-emoji{font-size:48px}.result-title{font-size:24px}.result-message{font-size:14px}.result-info{padding:12px;gap:10px}.stat-label{font-size:11px}.stat-value{font-size:18px}.result-actions .btn{padding:12px 16px;font-size:14px}}.login-screen{position:fixed;top:0;left:0;width:100vw;height:100vh;height:100dvh;display:flex;align-items:center;justify-content:center;padding:clamp(12px,3vw,20px)}.login-background{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1}.login-overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;height:100dvh;background:#00000080;z-index:2}.login-container{position:relative;z-index:3;max-width:440px;width:90%;background:#fff;border-radius:24px;padding:clamp(24px,5vw,40px) clamp(20px,5vw,32px);box-shadow:0 20px 60px #0000004d}.login-header{text-align:center;margin-bottom:32px}.login-logo{margin:0;display:flex;align-items:center;justify-content:center}.login-logo-img{height:150px;width:auto;object-fit:contain}.login-logo-img-large{height:400px;width:auto;object-fit:contain}.login-subtitle{font-size:18px;color:#757575;margin:8px 0 0}.login-main{margin-bottom:24px}.login-form{display:flex;flex-direction:column;gap:20px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;margin-bottom:20px;border-radius:14px;background:#f3f4f6}.auth-tab{border:0;border-radius:10px;padding:10px 12px;background:transparent;color:#616161;font-size:15px;font-weight:700;cursor:pointer}.auth-tab.active{background:#fff;color:#0145a5;box-shadow:0 2px 8px #00000014}.form-group{display:flex;flex-direction:column;gap:6px}.form-label{font-size:14px;font-weight:600;color:#424242}.form-input{width:100%;padding:14px 16px;border:2px solid #e0e0e0;border-radius:12px;font-size:16px;color:#212121;transition:border-color .2s,box-shadow .2s;box-sizing:border-box;outline:none}.form-input:focus{border-color:#0145a5;box-shadow:0 0 0 3px #0145a51a}.form-input::placeholder{color:#bdbdbd}.btn:disabled{opacity:.65;cursor:not-allowed}.form-error{color:#e53935;font-size:14px;font-weight:500;margin:0;padding:8px 12px;background:#ffebee;border-radius:8px}.form-info{color:#166534;font-size:14px;font-weight:600;margin:0;padding:8px 12px;background:#dcfce7;border-radius:8px}.forgot-password-btn{display:block;margin:14px auto 0;border:0;background:transparent;color:#0145a5;font-size:14px;font-weight:700;cursor:pointer}.login-divider{display:flex;align-items:center;margin:24px 0;color:#bdbdbd;font-size:14px}.login-divider:before,.login-divider:after{content:"";flex:1;height:1px;background:#e0e0e0}.login-divider span{padding:0 16px}.btn-google{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#424242;border:2px solid #e0e0e0;border-radius:12px;padding:14px 24px;font-size:16px;font-weight:600;cursor:pointer;transition:border-color .2s,box-shadow .2s}.btn-google:hover{border-color:#0145a5;box-shadow:0 2px 8px #0145a526}.google-icon{flex-shrink:0}.login-footer{text-align:center}.login-footer-text{font-size:12px;color:#9e9e9e;margin:0}.animate-fadeIn{animation:fadeIn .4s ease-out}@media (max-width: 480px){.login-container{padding:24px 16px;border-radius:20px}.login-logo{justify-content:center}.login-logo-img{height:60px}.login-logo-img-large{height:160px}.login-subtitle{font-size:16px}.form-group{gap:4px}.form-label{font-size:13px}.form-input{padding:12px 14px;font-size:15px}.btn-google{padding:12px 16px;font-size:14px}.login-divider{margin:16px 0;font-size:13px}}@media (max-width: 375px){.login-container{padding:20px 12px}.login-logo-img{height:50px}.login-logo-img-large{height:130px}.login-subtitle{font-size:14px}.form-input{padding:10px 12px;font-size:14px}.btn-google{padding:10px 14px;font-size:13px}.login-footer-text{font-size:11px}}@media (max-width: 359px){.login-screen{padding:clamp(8px,2vw,12px)}.login-container{padding:16px 10px;border-radius:16px}.login-logo-img{height:40px}.login-logo-img-large{height:110px}.login-subtitle{font-size:12px}.form-input{padding:8px 10px;font-size:13px}.btn-google{padding:8px 12px;font-size:12px}.login-footer-text{font-size:10px}}.login-screen{align-items:flex-start;min-height:100vh;min-height:100dvh;height:auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.login-container{max-height:none;margin-top:clamp(16px,4vh,40px);margin-bottom:clamp(16px,4vh,40px)}@media (max-height: 820px){.login-header{margin-bottom:20px}.login-logo-img-large{height:clamp(160px,28vh,260px)}.login-form{gap:14px}.form-input{padding-top:12px;padding-bottom:12px}}@media (max-width: 480px){.login-screen{padding-top:max(12px,env(safe-area-inset-top,0));padding-bottom:max(24px,env(safe-area-inset-bottom,0))}}.login-screen{position:fixed;top:0;right:0;bottom:0;left:0;width:auto;height:auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:max(8px,env(safe-area-inset-top,0px)) clamp(10px,2vw,20px) max(8px,env(safe-area-inset-bottom,0px));box-sizing:border-box}.login-container{max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin:0;box-sizing:border-box}.login-container::-webkit-scrollbar{width:6px}.login-container::-webkit-scrollbar-thumb{background:#0145a538;border-radius:999px}@media (max-height: 900px){.login-container{padding-top:20px;padding-bottom:20px}.login-header{margin-bottom:16px}.login-logo-img-large{height:clamp(120px,20vh,190px)}.login-subtitle{margin-top:4px;font-size:16px}.login-main,.auth-tabs{margin-bottom:14px}.login-form{gap:12px}.form-group{gap:4px}.form-input{padding-top:11px;padding-bottom:11px}}@media (max-height: 760px){.login-screen{align-items:stretch}.login-container{max-height:calc(100dvh - 12px);align-self:center;padding-top:16px;padding-bottom:16px}.login-logo-img-large{height:clamp(92px,15vh,135px)}.login-subtitle{font-size:14px}.auth-tab{padding-top:8px;padding-bottom:8px}.form-label{font-size:13px}.form-input{padding-top:9px;padding-bottom:9px;font-size:15px}.btn-large{padding-top:12px;padding-bottom:12px}.forgot-password-btn{margin-top:10px}.login-footer{display:none}}@media (max-width: 480px){.login-container{width:min(94vw,440px);max-height:calc(100dvh - 16px)}}.subscribe-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;background:#0a1628;font-family:Nunito,sans-serif}.subscribe-background{position:fixed;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#0145a5,#0a1628);z-index:0}.subscribe-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000004d;z-index:1}.subscribe-content{position:relative;z-index:2;width:90%;max-width:480px;background:#fff;border-radius:20px;padding:24px;box-shadow:0 8px 32px #0000004d}.subscribe-header{margin-bottom:20px}.back-btn{background:none;border:none;color:#0145a5;font-size:16px;font-weight:600;cursor:pointer;padding:8px 0;margin-bottom:12px}.back-btn:hover{text-decoration:underline}.subscribe-title{font-size:28px;font-weight:800;color:#0145a5;margin:0}.subscribe-card{display:flex;flex-direction:column;gap:24px}.price-section{text-align:center;padding:16px;background:linear-gradient(135deg,#e8f0fe,#f0f7ff);border-radius:12px}.price-label{display:block;font-size:14px;color:#666;margin-bottom:4px}.price-value{display:block;font-size:42px;font-weight:900;color:#0145a5}.price-period{font-size:16px;color:#888}.features-list{display:flex;flex-direction:column;gap:12px}.feature-item{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#f8f9fa;border-radius:10px;font-size:15px;color:#333}.feature-icon{font-size:24px}.pay-btn{width:100%;padding:16px;background:linear-gradient(135deg,#0145a5,#003d91);color:#fff;border:none;border-radius:12px;font-size:18px;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s}.pay-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 16px #0145a566}.pay-btn:disabled{opacity:.6;cursor:not-allowed}.qr-section{display:flex;flex-direction:column;align-items:center;gap:16px;padding:20px;background:#f8f9fa;border-radius:12px}.qr-instruction{font-size:14px;color:#666;text-align:center;margin:0}.qr-image{width:300px;height:300px;object-fit:contain;border-radius:8px}.qr-container{position:relative;display:inline-block;padding:16px;background:#fff;border:3px solid #0145a5;border-radius:12px}.qr-timer{position:absolute;bottom:-14px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:6px;padding:4px 12px;background:#0145a5;color:#fff;border-radius:16px;font-size:13px;font-weight:700;white-space:nowrap}.sbp-pay-link{width:100%;display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;background:linear-gradient(135deg,#0145a5,#003d91);color:#fff;border-radius:10px;font-size:16px;font-weight:800;text-align:center;text-decoration:none;box-shadow:0 4px 14px #0145a547}.sbp-pay-link:hover{transform:translateY(-1px);box-shadow:0 6px 18px #0145a557}.sbp-pay-hint{margin:-6px 0 0;color:#666;font-size:12px;line-height:1.35;text-align:center}.timer-icon{font-size:14px}.qr-steps{display:flex;flex-direction:column;gap:8px;width:100%}.step{display:flex;align-items:center;gap:10px;font-size:14px;color:#333}.step-num{width:24px;height:24px;background:#0145a5;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0}.payment-status{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.status-dot{width:10px;height:10px;border-radius:50%;background:#ffc107}.status-dot.spinning{background:#2196f3;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.status-waiting{color:#f57c00}.status-processing{color:#1976d2}.status-success{color:#388e3c}.error-message{padding:12px;background:#ffebee;color:#c62828;border-radius:8px;font-size:14px;text-align:center}.subscription-note{font-size:12px;color:#999;text-align:center;margin:0}@media (max-width: 768px){.subscribe-content{padding:20px}.subscribe-title{font-size:24px}.price-value{font-size:36px}.qr-image{width:160px;height:160px}}.promo-code-panel{margin:18px 0;padding:14px;background:#f3f7ff;border:1px solid #d5e3fb;border-radius:14px}.promo-code-label{display:block;margin-bottom:10px;color:#0145a5;font-size:15px;font-weight:800}.promo-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.promo-code-input{width:100%;min-width:0;border:1px solid #c7d5ea;border-radius:10px;padding:12px;color:#172033;background:#fff;font-size:16px;font-weight:800;letter-spacing:0;text-transform:uppercase}.promo-code-input:focus{outline:none;border-color:#0145a5;box-shadow:0 0 0 3px #0145a524}.promo-code-button{border:0;border-radius:10px;padding:0 16px;background:#0145a5;color:#fff;font-size:14px;font-weight:800;cursor:pointer;white-space:nowrap}.promo-code-button:disabled,.promo-code-input:disabled{opacity:.65;cursor:not-allowed}.promo-code-error{margin-top:10px;padding:10px 12px;color:#b91c1c;background:#fee2e2;border-radius:10px;font-size:13px;font-weight:700}@media (max-width: 520px){.promo-code-row{grid-template-columns:1fr}.promo-code-button{min-height:46px}}.promo-code-input::placeholder{color:#9ca3af;font-size:14px;font-weight:500;text-transform:none}.payment-success-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;background:#0a1628;font-family:Nunito,sans-serif}.success-background{position:fixed;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#0145a5,#0a1628);z-index:0}.success-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000004d;z-index:1}.success-content{position:relative;z-index:2;width:90%;max-width:480px;background:#fff;border-radius:20px;padding:40px 24px;box-shadow:0 8px 32px #0000004d;text-align:center}.success-icon{font-size:80px;margin-bottom:16px;animation:bounceIn .6s ease-out}@keyframes bounceIn{0%{transform:scale(0);opacity:0}50%{transform:scale(1.2)}to{transform:scale(1);opacity:1}}.success-title{font-size:32px;font-weight:900;color:#0145a5;margin:0 0 8px}.success-subtitle{font-size:18px;color:#666;margin:0 0 24px}.success-details{background:#f0f7ff;border-radius:12px;padding:16px;margin-bottom:24px}.detail-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0}.detail-row:not(:last-child){border-bottom:1px solid #e0e0e0}.detail-label{font-size:14px;color:#888}.detail-value{font-size:16px;font-weight:700;color:#0145a5}.success-features{margin-bottom:32px}.features-title{font-size:16px;font-weight:700;color:#333;margin:0 0 16px}.feature-list{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.feature-badge{padding:8px 14px;background:linear-gradient(135deg,#e8f0fe,#f0f7ff);border-radius:20px;font-size:14px;font-weight:600;color:#0145a5}.start-play-btn{width:100%;padding:16px;background:linear-gradient(135deg,#4caf50,#388e3c);color:#fff;border:none;border-radius:12px;font-size:18px;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s}.start-play-btn:hover{transform:translateY(-2px);box-shadow:0 4px 16px #4caf5066}@media (max-width: 768px){.success-content{padding:32px 20px}.success-icon{font-size:64px}.success-title{font-size:28px}.feature-list{flex-direction:column;align-items:center}}.billing-required-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;background:#0a1628;font-family:Nunito,sans-serif}.billing-background{position:fixed;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#0145a5,#0a1628);z-index:0}.billing-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:1}.billing-content{position:relative;z-index:2;width:90%;max-width:480px;background:#fff;border-radius:20px;padding:32px 24px;box-shadow:0 8px 32px #0000004d;text-align:center}.billing-icon{font-size:64px;margin-bottom:16px}.billing-title{font-size:28px;font-weight:900;color:#0145a5;margin:0 0 12px}.billing-description{font-size:16px;color:#666;line-height:1.5;margin:0 0 24px}.billing-preview{display:flex;flex-direction:column;gap:8px;margin-bottom:32px;background:#f8f9fa;padding:16px;border-radius:12px}.preview-item{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#fff;border-radius:8px}.preview-locked{opacity:.8}.preview-icon{font-size:24px;width:32px;text-align:center}.preview-label{flex:1;text-align:left;font-size:15px;font-weight:600;color:#333;padding-left:8px}.preview-status{font-size:13px;font-weight:600}.preview-status.available{color:#388e3c}.preview-status.locked{color:#999}.billing-actions{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}.subscribe-btn{width:100%;padding:16px;background:linear-gradient(135deg,#0145a5,#003d91);color:#fff;border:none;border-radius:12px;font-size:18px;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s}.subscribe-btn:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0145a566}.pay-sbp-btn{width:100%;padding:16px;background:linear-gradient(135deg,#4caf50,#388e3c);color:#fff;border:none;border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s}.pay-sbp-btn:hover{transform:translateY(-2px);box-shadow:0 4px 16px #4caf5066}.play-free-btn{width:100%;padding:14px;background:transparent;color:#666;border:2px solid #e0e0e0;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s}.play-free-btn:hover{background:#f5f5f5;border-color:#ccc}.billing-note{font-size:12px;color:#999;margin:0}@media (max-width: 768px){.billing-content{padding:24px 20px}.billing-title{font-size:24px}.billing-icon{font-size:48px}}.admin-screen{min-height:100vh;padding:28px;background:#f4f7fb;color:#172033}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.admin-header h1{margin:0;font-size:30px;line-height:1.1}.admin-header p{margin:6px 0 0;color:#64748b}.admin-token-panel{display:flex;gap:10px;max-width:560px;margin-bottom:18px}.admin-token-panel input{flex:1;min-width:0;padding:12px 14px;border:1px solid #cbd5e1;border-radius:8px;font-size:15px}.admin-token-panel button,.admin-refresh{border:0;border-radius:8px;padding:12px 16px;background:#0145a5;color:#fff;font-weight:700;cursor:pointer}.admin-token-panel button:disabled,.admin-refresh:disabled{opacity:.6;cursor:not-allowed}.admin-error{max-width:560px;margin-bottom:18px;padding:12px 14px;border-radius:8px;background:#fee2e2;color:#991b1b;font-weight:700}.admin-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.admin-section-title{display:flex;align-items:center;gap:10px;margin:0 0 12px}.admin-section-title h2{margin:0;font-size:22px}.admin-section-title span{padding:3px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-weight:800;font-size:13px}.admin-support,.admin-events,.admin-popular-events{margin-bottom:22px}.admin-popular-events-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-popular-event-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:13px 16px;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0f}.admin-popular-event-row div{display:grid;gap:3px;min-width:0}.admin-popular-event-row div strong,.admin-popular-event-row div span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-popular-event-row div strong{color:#172033;font-size:14px}.admin-popular-event-row div span{color:#64748b;font-size:12px}.admin-popular-event-row>strong{flex:0 0 auto;min-width:48px;padding:6px 10px;border-radius:999px;background:#dbeafe;color:#1d4ed8;text-align:center;font-size:15px}.admin-events-list{overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0f}.admin-event-row{display:grid;grid-template-columns:minmax(260px,1.3fr) minmax(220px,1fr) 180px;gap:16px;align-items:center;padding:13px 16px;border-bottom:1px solid #e2e8f0}.admin-event-row:last-child{border-bottom:0}.admin-event-row div{display:grid;gap:3px;min-width:0}.admin-event-row strong,.admin-event-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-event-row strong{color:#172033;font-size:14px}.admin-event-row span,.admin-event-row time{color:#64748b;font-size:12px}.admin-support-layout{display:grid;grid-template-columns:minmax(260px,340px) 1fr;min-height:440px;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 8px 24px #0f172a0f}.admin-thread-list{border-right:1px solid #e2e8f0;background:#f8fafc;overflow-y:auto}.admin-thread-item{display:grid;gap:4px;width:100%;padding:13px 14px;border:0;border-bottom:1px solid #e2e8f0;background:transparent;color:#172033;text-align:left;cursor:pointer}.admin-thread-item.active{background:#eaf2ff}.admin-thread-item strong,.admin-thread-item span,.admin-thread-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-thread-item span{color:#64748b;font-size:13px}.admin-thread-item small{color:#334155;font-size:12px}.admin-conversation{display:flex;flex-direction:column;min-width:0}.admin-conversation-head{display:grid;gap:3px;padding:14px 16px;border-bottom:1px solid #e2e8f0}.admin-conversation-head span{color:#64748b;font-size:13px}.admin-conversation-messages{flex:1;overflow-y:auto;padding:16px;background:#fff}.admin-chat-message{margin-bottom:12px}.admin-chat-message.admin{text-align:right}.admin-chat-message div{display:inline-block;max-width:78%;padding:10px 12px;border-radius:10px;background:#e2e8f0;text-align:left;white-space:pre-wrap;line-height:1.35}.admin-chat-message.admin div{background:#0145a5;color:#fff}.admin-chat-message span{display:block;margin-top:4px;color:#64748b;font-size:11px}.admin-reply{display:grid;gap:8px;padding:12px;border-top:1px solid #e2e8f0}.admin-reply textarea{width:100%;resize:vertical;border:1px solid #cbd5e1;border-radius:8px;padding:10px;font:inherit;box-sizing:border-box}.admin-reply button{justify-self:end;border:0;border-radius:8px;padding:11px 16px;background:#0145a5;color:#fff;font-weight:800;cursor:pointer}.admin-reply button:disabled{opacity:.6;cursor:not-allowed}.admin-empty{padding:16px;color:#64748b;font-weight:700}.admin-summary div{padding:16px;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0f}.admin-summary span{display:block;color:#64748b;font-size:13px;font-weight:700}.admin-summary strong{display:block;margin-top:8px;font-size:28px}.admin-summary small{display:block;margin-top:8px;color:#64748b;font-size:12px;line-height:1.35}.admin-table-wrap{overflow-x:auto;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0f}.admin-table{width:100%;border-collapse:collapse;min-width:1180px}.admin-table th,.admin-table td{padding:13px 14px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:14px;white-space:nowrap}.admin-table th{background:#f8fafc;color:#475569;font-size:12px;text-transform:uppercase}.admin-event-cell{display:grid;gap:3px;min-width:180px}.admin-event-cell strong{overflow:hidden;color:#172033;font-size:13px;text-overflow:ellipsis}.admin-event-cell span{color:#64748b;font-size:12px}.admin-paid{color:#15803d;font-weight:800}.admin-unpaid{color:#94a3b8;font-weight:700}@media (max-width: 720px){.admin-screen{padding:18px}.admin-header,.admin-token-panel{flex-direction:column;align-items:stretch}.admin-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-support-layout{grid-template-columns:1fr}.admin-event-row{grid-template-columns:1fr;gap:8px}.admin-popular-events-list{grid-template-columns:1fr}.admin-thread-list{max-height:240px;border-right:0;border-bottom:1px solid #e2e8f0}}.admin-period-panel{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;padding:14px 16px;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0f}.admin-period-panel div:first-child{display:grid;gap:3px}.admin-period-panel span{color:#64748b;font-size:12px;font-weight:700;text-transform:uppercase}.admin-period-panel strong{color:#172033;font-size:18px}.admin-period-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.admin-period-buttons button{border:1px solid #cbd5e1;border-radius:999px;padding:9px 13px;background:#f8fafc;color:#334155;font-weight:800;cursor:pointer}.admin-period-buttons button.active{border-color:#0145a5;background:#0145a5;color:#fff}.admin-period-buttons button:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 720px){.admin-period-panel{align-items:stretch;flex-direction:column}.admin-period-buttons{justify-content:flex-start}}.admin-funnel{margin-bottom:22px}.admin-funnel-list{display:grid;gap:10px}.admin-funnel-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(320px,auto);gap:12px 18px;align-items:center;padding:14px 16px;border-radius:8px;background:#fff;box-shadow:0 8px 24px #0f172a0f}.admin-funnel-main{display:grid;gap:4px;min-width:0}.admin-funnel-main strong{overflow:hidden;color:#172033;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.admin-funnel-main span{overflow:hidden;color:#64748b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.admin-funnel-metrics{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.admin-funnel-metrics span{padding:6px 10px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:700}.admin-funnel-metrics strong{color:#0145a5;font-size:14px}.admin-funnel-bar{grid-column:1 / -1;height:8px;overflow:hidden;border-radius:999px;background:#e2e8f0}.admin-funnel-bar div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#0145a5,#38bdf8)}@media (max-width: 720px){.admin-funnel-row{grid-template-columns:1fr}.admin-funnel-metrics{justify-content:flex-start}}.support-chat{position:fixed;right:18px;bottom:18px;z-index:50;font-family:inherit}.support-toggle{position:relative;border:0;border-radius:999px;padding:13px 18px;background:#0145a5;color:#fff;font-size:15px;font-weight:800;box-shadow:0 12px 30px #0145a559;cursor:pointer}.support-unread-badge{position:absolute;top:-6px;right:-4px;min-width:22px;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border:2px solid #ffffff;border-radius:999px;background:#ffd43b;color:#172033;font-size:12px;font-weight:900;line-height:1;box-shadow:0 4px 12px #00000038;box-sizing:border-box}.support-panel{width:min(380px,calc(100vw - 24px));height:min(560px,calc(100vh - 96px));margin-bottom:12px;display:flex;flex-direction:column;overflow:hidden;border-radius:12px;background:#fff;color:#172033;box-shadow:0 18px 55px #00000047}.support-header{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;background:#0145a5;color:#fff}.support-header strong,.support-header span{display:block}.support-header span{margin-top:3px;font-size:12px;opacity:.82}.support-header button{width:30px;height:30px;border:0;border-radius:50%;background:#ffffff24;color:#fff;font-size:22px;cursor:pointer}.support-messages{flex:1;overflow-y:auto;padding:14px;background:#f8fafc}.support-empty{padding:14px;border-radius:10px;background:#eef4ff;color:#475569;font-size:14px;line-height:1.45}.support-guest-fields{display:grid;gap:8px;margin-bottom:12px}.support-guest-fields input{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:10px;font:inherit;box-sizing:border-box}.support-message{margin-bottom:12px}.support-message.user{text-align:right}.support-bubble{display:inline-block;max-width:82%;padding:10px 12px;border-radius:10px;background:#e2e8f0;text-align:left;white-space:pre-wrap;line-height:1.35}.support-message.user .support-bubble{background:#0145a5;color:#fff}.support-time{margin-top:4px;color:#64748b;font-size:11px}.support-error{padding:9px 12px;background:#fee2e2;color:#991b1b;font-size:13px;font-weight:700}.support-compose{display:grid;gap:8px;padding:12px;border-top:1px solid #e2e8f0}.support-compose textarea{width:100%;resize:none;border:1px solid #cbd5e1;border-radius:8px;padding:10px;font:inherit;box-sizing:border-box}.support-compose button{border:0;border-radius:8px;padding:11px 14px;background:#0145a5;color:#fff;font-weight:800;cursor:pointer}.support-compose button:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 520px){.support-chat{right:12px;bottom:12px}.support-panel{width:calc(100vw - 24px);height:min(520px,calc(100vh - 92px))}}.app{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}.boot-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;min-height:100dvh;font-size:24px;font-weight:700;color:#fff;animation:fadeIn .5s ease-out}@media (max-width: 768px){.app{padding:8px}}@media (min-width: 769px){.app{padding:16px}}.app:has(.gosha-world),.app:has(.world-account){padding:0}*{margin:0;padding:0;box-sizing:border-box}:root{--color-primary: #4A90D9;--color-primary-dark: #3A7BC8;--color-secondary: #F9A825;--color-success: #66BB6A;--color-error: #EF5350;--color-warning: #FFA726;--board-light: #F0D9B5;--board-dark: #B58863;--board-highlight: #AAA23A;--board-capture: #E57373;--bg-primary: #FFFFFF;--bg-secondary: #F5F5F5;--bg-accent: #E3F2FD;--text-primary: #212121;--text-secondary: #757575;--font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--board-safe-size: min(85vw, 80dvh)}html,body{font-family:var(--font-family);background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;min-height:100dvh;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent}#root{min-height:100vh;min-height:100dvh;padding-left:env(safe-area-inset-left,0);padding-right:env(safe-area-inset-right,0);display:flex;flex-direction:column}.container{max-width:1200px;margin:0 auto;padding:16px;width:100%}.no-overflow{overflow:hidden}.text-nowrap{white-space:nowrap}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flex-center{display:flex;align-items:center;justify-content:center}.flex-col{display:flex;flex-direction:column}.flex-wrap{flex-wrap:wrap}.grid-auto-fill{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr))}.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 24px;border:none;border-radius:12px;font-family:var(--font-family);font-size:16px;font-weight:700;cursor:pointer;transition:all .2s ease;touch-action:manipulation;-webkit-user-select:none;user-select:none}.btn:active{transform:scale(.95)}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn-primary{background:linear-gradient(135deg,var(--color-primary),var(--color-primary-dark));color:#fff;box-shadow:0 4px 12px #4a90d966}.btn-primary:hover:not(:disabled){box-shadow:0 6px 16px #4a90d980}.btn-secondary{background:linear-gradient(135deg,var(--color-secondary),#F57F17);color:#fff;box-shadow:0 4px 12px #f9a82566}.btn-secondary:hover:not(:disabled){box-shadow:0 6px 16px #f9a82580}.btn-success{background:linear-gradient(135deg,var(--color-success),#43A047);color:#fff}.btn-large{padding:16px 32px;font-size:18px}.btn-full{width:100%}.card{background:var(--bg-primary);border-radius:16px;padding:20px;box-shadow:0 4px 20px #0000001a}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}@keyframes pop{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-bounce{animation:bounce .5s ease-in-out}.animate-shake{animation:shake .3s ease-in-out}.animate-pop{animation:pop .3s ease-in-out}.animate-fadeIn{animation:fadeIn .5s ease-out}@media (min-width: 1200px){.container{max-width:1140px}}@media (max-width: 1199px){.container{max-width:960px}}@media (max-width: 1024px){.container{max-width:100%;padding:14px}}@media (max-width: 768px){.container{padding:12px}.btn{padding:10px 20px;font-size:14px}.btn-large{padding:14px 28px;font-size:16px}}@media (max-width: 480px){.container{padding:10px}.btn{padding:10px 16px;font-size:13px}.btn-large{padding:12px 20px;font-size:14px}.card{padding:16px;border-radius:12px}}@media (max-width: 375px){.container{padding:8px}.btn{padding:8px 14px;font-size:12px}}@media (max-width: 359px){.container{padding:6px}.btn{padding:6px 10px;font-size:11px}.btn-large{padding:10px 16px;font-size:12px}.card{padding:12px;border-radius:10px}}*{overflow-wrap:anywhere;word-break:break-word}
