:root{font-family:'Noto Sans JP',sans-serif;color:#edf1f7;background:#101522;font-size:16px;--bg:#101522;--panel:#192131;--line:#30394c;--muted:#99a7bd;--green:#b8f07b;--purple:#bca7f7}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer;border:0;border-radius:12px;padding:12px 20px;background:var(--green);color:#17231c;font-weight:800;transition:transform .15s,filter .15s}button:hover{filter:brightness(1.08);transform:translateY(-2px)}button:disabled{opacity:.4;cursor:default;transform:none}button.secondary{background:#293347;color:#e4eaf5;border:1px solid #46516a}button.quiet{background:transparent;color:var(--muted);padding:8px 12px}button.danger{background:#7e3846;color:white}input,select{border:1px solid #46516a;background:#111928;color:white;border-radius:10px;padding:12px;width:100%}label{display:block;color:#c3ccda;font-size:.9rem;margin:16px 0 7px}a{color:var(--green)}.appbar{height:86px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4vw;gap:22px}.brand{display:flex;gap:12px;align-items:center;font-weight:900;white-space:nowrap}.brandmark{display:grid;place-items:center;background:var(--green);color:#152119;width:40px;height:40px;border-radius:12px;font-family:'Space Grotesk';font-size:22px;transform:rotate(-8deg)}.brand small{display:block;color:var(--muted);font-size:.65rem;letter-spacing:3px;margin-top:3px}.nav{display:flex;gap:6px}.nav button{background:transparent;color:var(--muted);font-size:.9rem;padding:13px 18px}.nav button.active{background:#26342c;color:var(--green)}.user{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:.85rem}.user svg{width:42px;height:42px}.shell{max-width:1400px;margin:auto;padding:35px 4vw 60px}.eyebrow{font-family:'Space Grotesk';font-weight:700;letter-spacing:3px;color:var(--green);font-size:.8rem}.heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}h1{font-size:clamp(1.8rem,3.5vw,2.8rem);margin:8px 0;line-height:1.4;letter-spacing:-1px}h2{font-size:1.4rem;margin:0 0 15px}h3{font-size:1.05rem;margin:0 0 8px}p{color:var(--muted);line-height:1.85;margin:8px 0 18px}.tag{display:inline-flex;gap:7px;align-items:center;border:1px solid #46516a;border-radius:30px;padding:6px 12px;font-size:.8rem;color:#c9d3e3}.green{color:var(--green)}.muted{color:var(--muted)}.layout{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:24px}.hero{height:370px;position:relative;border-radius:22px;overflow:hidden;background:#b7d4b9;color:#22332b;padding:34px;border:1px solid #c4dfca}.hero .copy{position:relative;z-index:2;max-width:52%}.hero h2{font-size:2rem;line-height:1.5;margin:13px 0}.hero p{color:#405e49;font-size:.9rem}.hero .tag{border-color:#668a70;color:#304e39;background:#e0eedc88}.hero button{background:#223a2a;color:#e5f5de}.landscape{position:absolute;inset:0;overflow:hidden}.sun{position:absolute;background:#eef3c0;width:125px;height:125px;right:13%;top:32px;border-radius:50%}.hill{position:absolute;width:800px;height:310px;right:-210px;bottom:-200px;background:#67896d;border-radius:50%;transform:rotate(-10deg)}.hill.back{background:#93b699;bottom:-130px;right:-200px}.hero-mon{position:absolute;width:260px;right:0;bottom:20px;filter:drop-shadow(0 17px 8px #3a4b2930);animation:float 4s ease-in-out infinite}.hero-mon.small{width:125px;right:200px;bottom:5px;animation-delay:-1s}.hero-mon.tiny{width:90px;right:55px;bottom:15px;animation-delay:-2s}.spark{position:absolute;font-size:30px;color:#f6f8d2}.panel{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:24px}.side-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.side-title h2{font-size:1rem;margin:0}.party{display:flex;gap:13px;align-items:center;border-top:1px solid var(--line);padding:15px 0}.party:first-of-type{border-top:0}.party svg{width:68px;height:68px;border-radius:14px;background:#263348}.party strong{font-size:.95rem}.party small{display:block;color:var(--muted);margin-top:5px;font-size:.8rem}.party-num{font-family:'Space Grotesk';font-size:.75rem;color:var(--muted)}.divider{height:1px;background:var(--line);margin:20px 0}.statsline{display:flex;justify-content:space-between;gap:8px;margin-top:22px}.statsline strong{display:block;font-family:'Space Grotesk';font-size:1.7rem;color:#eaf0fa}.statsline small{font-size:.75rem;color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:center;margin:29px 0 16px}.section-head h2{font-size:1.15rem;margin:0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mode-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:22px;position:relative;overflow:hidden}.mode-card .icon{width:42px;height:42px;background:#343347;color:var(--purple);display:grid;place-items:center;border-radius:13px;font-size:1.4rem;margin-bottom:20px}.mode-card p{font-size:.85rem;min-height:48px}.mode-card button{width:100%;font-size:.9rem}.mode-card:nth-child(2) .icon{background:#393325;color:#efcd84}.mode-card:nth-child(3) .icon{background:#243c40;color:#88d2d7}.note{font-size:.8rem;color:var(--muted);line-height:1.8}.onboard{max-width:1000px;margin:50px auto;padding:0 25px;text-align:center}.onboard h1{font-size:2.6rem}.starter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:25px 0}.starter{border:2px solid var(--line);border-radius:22px;background:var(--panel);padding:20px;cursor:pointer}.starter.selected{border-color:var(--green);background:#26382e}.starter svg{width:100%;max-width:185px}.starter h3{font-size:1.2rem}.starter p{font-size:.85rem}.formrow{display:flex;gap:14px;align-items:flex-end}.formrow>*{flex:1}.formrow button{flex:0 0 auto}.avatar-editor{display:grid;grid-template-columns:160px 1fr;gap:24px;text-align:left;align-items:center}.avatar-editor svg{width:160px}.formgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:18px}.moncard{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:18px;text-align:center;position:relative}.moncard.selected{border-color:#7cb15d}.moncard svg{width:160px;height:145px}.moncard h3{font-size:1.15rem}.moncard .tag{font-size:.7rem}.moncard button{padding:9px 12px;font-size:.85rem;margin-top:10px}.moncard.unknown svg{filter:brightness(0) opacity(.3)}.numbers{display:flex;justify-content:space-evenly;margin:15px 0}.numbers small{display:block;color:var(--muted);font-size:.7rem}.numbers b{font-family:'Space Grotesk';font-size:1.2rem}.xp{height:5px;background:#334052;border-radius:5px;overflow:hidden}.xp span{display:block;height:100%;background:var(--purple)}.shiny{position:absolute;right:14px;top:14px;color:#f3d47d;font-size:1.3rem}.team-summary{position:sticky;bottom:15px;z-index:3;margin:25px auto 0;max-width:650px;background:#25382ff2;border:1px solid #789c65;padding:14px 20px;border-radius:15px;display:flex;align-items:center;gap:15px;justify-content:space-between;box-shadow:0 8px 40px #0006}.team-summary strong{font-size:.9rem}.modal-back{position:fixed;inset:0;background:#050910cb;display:grid;place-items:center;padding:25px;z-index:20;backdrop-filter:blur(8px)}.modal{width:100%;max-width:620px;max-height:90vh;overflow:auto;border:1px solid #4a5871;background:#192131;padding:30px;border-radius:23px}.modal .close{float:right}.modal p{font-size:.9rem}.modal .formgrid{grid-template-columns:1fr 1fr}.modal footer{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:15px 24px;border:1px solid #8fb66e;background:#24352d;color:#effbdd;border-radius:14px;z-index:50;display:none;max-width:90vw;box-shadow:0 10px 40px #0007}.arena{min-height:calc(100vh - 90px)}.arena-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.arena-head h1{font-size:1.5rem}.stage{position:relative;min-height:350px;background:radial-gradient(ellipse at 50% 100%,#45505e 0%,#283345 40%,#1b2434 85%);border:1px solid #414e64;border-radius:23px;overflow:hidden;display:grid;grid-template-columns:1fr 80px 1fr;padding:25px 45px}.stage:before{content:'';position:absolute;inset:auto -20% -70% -20%;height:100%;border:1px solid #67758966;border-radius:50%;background:#33455833}.fighter{position:relative;z-index:1;text-align:center}.fighter .monster-art{height:210px;width:230px;max-width:100%;filter:drop-shadow(0 15px 8px #0004)}.fighter.right .monster-art{transform:scaleX(-1)}.fighter .nameplate{display:flex;align-items:center;justify-content:center;gap:10px}.nameplate svg{width:38px;height:38px}.fighter h3{margin:5px 0}.hp{height:12px;border-radius:10px;background:#101824;margin:10px auto 5px;max-width:300px;overflow:hidden}.hp span{display:block;height:100%;background:var(--green);transition:width .4s}.right .hp span{background:var(--purple)}.versus{display:grid;place-items:center;color:#b2bed2;font:700 1.7rem 'Space Grotesk';z-index:2}.hptext{font:500 .85rem 'Space Grotesk';color:#c4cfdf}.reserve{font-size:.75rem;color:var(--muted);margin-left:10px}.typing{max-width:900px;margin:22px auto 0;text-align:center;border:1px solid #414e64;background:var(--panel);border-radius:20px;padding:25px;position:relative}.typing .kana{font-size:1.35rem;font-weight:700;margin:14px 0}.roman{font-family:'Space Grotesk',monospace;font-size:clamp(1.2rem,3vw,2rem);letter-spacing:3px;overflow-wrap:anywhere;color:#b8c3d8;min-height:45px}.roman .done{color:var(--green)}.typeinput{margin:15px auto 6px;max-width:600px;text-align:center;font-family:'Space Grotesk';background:#111827;caret-color:var(--green)}.typeinput:focus{border-color:var(--green);outline:2px solid #b8f07b22}.typeinput.error{background:#542f3b;animation:shake .15s}.timer{font-family:'Space Grotesk';font-size:1.5rem;color:var(--green)}.countdown{font-size:3rem;font-family:'Space Grotesk';font-weight:700;color:var(--green)}.progresses{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:14px 0 0}.progresses label{font-size:.8rem;margin:0 0 7px;display:flex;justify-content:space-between}.progress{height:7px;border-radius:4px;background:#101827;overflow:hidden}.progress span{display:block;height:100%;background:var(--green);transition:width .25s}.progresses>div:last-child .progress span{background:var(--purple)}.damage{position:absolute;top:55%;left:50%;transform:translate(-50%,-50%);font:700 3.5rem 'Space Grotesk';color:#fff5a8;text-shadow:0 3px 0 #473319;animation:pop 1s both;pointer-events:none}.resultbanner{padding:18px;border:1px solid #61794e;background:#283b2c;border-radius:15px;text-align:center;margin:18px 0}.resultbanner h2{color:var(--green);margin:4px 0}.catch-options{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}.catch-options button{background:#2b3749;color:#f1f5fb;border:1px solid #50617b;padding:20px 12px}.catch-options button small{display:block;font-size:.8rem;color:#bdc9dc;margin-top:8px}.catch-options button:last-child{border-color:var(--purple);background:#39324e}.room-code{font-family:'Space Grotesk';font-size:1.4rem;letter-spacing:3px;color:var(--green);background:#111928;padding:10px 18px;border-radius:10px;display:inline-block;overflow-wrap:anywhere;max-width:100%}.lobby{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:850px;margin:30px auto}.lobby .panel{text-align:center;min-height:240px}.lobby svg{height:100px}.waiting{border:2px dashed #414e64;color:var(--muted);border-radius:20px;display:grid;place-items:center}.bracket{display:flex;gap:22px;overflow:auto;padding:15px 0 30px}.bracket-round{min-width:240px;display:flex;flex-direction:column;justify-content:space-around;gap:18px;flex:1}.match{border:1px solid #414e64;background:var(--panel);border-radius:14px;padding:16px}.match.active{border-color:var(--green)}.match p{margin:6px 0;font-size:.9rem}.match b{color:var(--green)}.entries{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.entries .tag svg{width:30px;height:30px}.spectating .stage{min-height:45vh}.spectating .fighter .monster-art{height:30vh;width:32vw}.spectating .typing{max-width:none}.spectating .kana{font-size:2rem}.spectating .roman{font-size:2.2rem}.spectating .progresses{font-size:1.2rem}.loading{display:grid;place-items:center;min-height:80vh;color:var(--green)}.actions{display:flex;gap:10px;flex-wrap:wrap}.rightalign{margin-left:auto}.hidden{display:none!important}footer.page-footer{margin-top:40px;display:flex;justify-content:space-between;color:#78879e;font-size:.75rem;border-top:1px solid var(--line);padding-top:20px}.key{border:1px solid #5e6b80;border-bottom-width:3px;border-radius:5px;padding:2px 7px;font-family:monospace;font-size:.85rem}button.link{color:var(--green);padding:0;background:none;font-size:.85rem}.wide{width:100%}@keyframes float{50%{transform:translateY(-9px)}}@keyframes shake{50%{transform:translateX(4px)}}@keyframes pop{0%{opacity:0;translate:0 15px;scale:.5}25%{opacity:1;scale:1.2}100%{opacity:1;translate:0 -20px;scale:1}}@media(max-width:1000px){.layout{grid-template-columns:1fr}.sidebar{display:none}.appbar{padding:0 20px}.nav button{padding:12px}.brand small{display:none}.hero-mon{right:-20px}.hero-mon.small{right:170px}.user span{display:none}}@media(max-width:650px){.appbar{height:auto;min-height:76px;flex-wrap:wrap;padding:15px 18px;gap:12px}.brand{font-size:.9rem}.brandmark{width:32px;height:32px}.nav{order:3;width:100%;justify-content:space-between}.nav button{font-size:.8rem;padding:10px}.user{margin-left:auto}.shell{padding:24px 18px}.heading{align-items:flex-start}.heading .tag{display:none}.hero{height:420px;padding:25px}.hero .copy{max-width:100%}.hero h2{font-size:1.7rem}.hero p{max-width:75%}.hero-mon{width:185px;bottom:-15px}.hero-mon.small{width:100px;right:135px;bottom:-5px}.hero-mon.tiny{display:none}.cards{grid-template-columns:1fr}.mode-card{display:grid;grid-template-columns:45px 1fr;gap:0 15px;padding:18px}.mode-card .icon{grid-row:1/3;margin:0}.mode-card p{min-height:0;margin:4px 0 15px}.mode-card button{grid-column:2}.starter-grid{gap:8px}.starter{padding:12px 7px}.starter h3{font-size:.95rem}.starter p{font-size:.75rem}.onboard h1{font-size:1.9rem}.avatar-editor{grid-template-columns:1fr}.avatar-editor>div:first-child{text-align:center}.formgrid{grid-template-columns:repeat(2,1fr)}.formrow{flex-wrap:wrap}.formrow>*{flex-basis:100%}.roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.moncard{padding:12px}.moncard svg{width:130px;max-width:100%}.stage{padding:18px 10px;grid-template-columns:1fr 30px 1fr;min-height:300px}.fighter .monster-art{height:170px}.fighter .nameplate{font-size:.8rem}.nameplate svg{display:none}.fighter h3{font-size:.9rem}.versus{font-size:1rem}.typing{padding:20px 12px}.typing .kana{font-size:1.1rem}.roman{letter-spacing:1px}.catch-options{gap:8px}.catch-options button{padding:16px 6px;font-size:.9rem}.arena-head{flex-wrap:wrap}.arena-head h1{font-size:1.2rem}.progresses{gap:15px}.lobby{gap:12px}.modal{padding:22px}.spectating .fighter .monster-art{width:36vw;height:24vh}.spectating .kana{font-size:1.3rem}.spectating .roman{font-size:1.5rem}footer.page-footer{gap:15px;flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.spell{position:absolute;left:50%;top:48%;width:1px;height:1px;pointer-events:none;z-index:3}.spell i{position:absolute;display:block;width:32px;height:15px;background:var(--c);box-shadow:0 0 18px var(--c);transform:rotate(calc(var(--i)*60deg)) translateX(40px);animation:spellburst .8s both;animation-delay:calc(var(--i)*.03s);border-radius:90% 0 90% 0}.spell-fox i{width:65px;height:6px;border-radius:80%;background:#f2b6da}.spell-rock i,.spell-bear i{width:24px;height:24px;border-radius:4px;border:3px solid #fff8}.spell-cloud i,.spell-round i{border-radius:50%;width:24px;height:24px;background:transparent;border:4px solid var(--c)}.spell-star i{clip-path:polygon(50% 0,62% 35%,100% 50%,62% 65%,50% 100%,38% 65%,0 50%,38% 35%);width:35px;height:35px;border-radius:0}.spell-rabbit i{width:50px;height:8px;background:#f3d2ff}.spell-drop i{border-radius:70% 30% 60% 40%;width:20px;height:30px}@keyframes spellburst{0%{opacity:0;scale:.3;translate:0 0}25%{opacity:1}100%{opacity:0;scale:1.8;translate:calc((var(--i) - 3)*20px) -50px}}

.world-title{isolation:isolate;position:relative;width:100%;height:100svh;min-height:550px;overflow:hidden;background:#4fabe6;color:white;font-family:system-ui,'Yu Gothic',sans-serif}
.world-sky{z-index:-2;position:absolute;inset:0;background:linear-gradient(0deg,#10243755,transparent 24%),url('/title-world.jpg') center 55%/cover no-repeat}
.world-title button{font-weight:950;color:white;letter-spacing:.02em;text-shadow:0 2px 1px #263341,1px 0 2px #243344;transition:filter .18s,transform .18s}
.world-title button:hover{filter:brightness(1.16);transform:translateY(-2px)}
.world-title button:focus-visible{outline:4px solid white;outline-offset:4px}
.world-hud,.world-record button,.world-watch{background:linear-gradient(#384f71,#142d51 66%,#294063);border:2px solid #ffe3a3;box-shadow:0 0 0 2px #334464,inset 0 0 0 2px #8cabc4,0 4px 10px #10274c66}
.world-hud{display:flex;gap:12px;align-items:center;position:absolute;left:2%;top:3%;border-radius:40px;padding:4px 18px 4px 4px;line-height:1.22}
.world-portrait{width:clamp(38px,4vw,62px);aspect-ratio:1;display:block;border-radius:50%;background:#8acaff;border:2px solid #fff1ac;overflow:hidden}.world-portrait svg{width:100%;height:100%}
.world-hud strong,.world-hud small{display:block}.world-hud small{color:#cde2f3;font-size:.68rem}.world-level{color:#ffe686;font-size:.75rem}
.world-record{position:absolute;right:2%;top:4%;display:flex;gap:10px}.world-record button,.world-watch{border-radius:24px;padding:7px 16px;font-size:.85rem}
.world-logo{position:absolute;top:4%;left:50%;transform:translateX(-50%) rotate(-3deg);margin:0;display:flex;flex-direction:column;align-items:center;line-height:.99;white-space:nowrap;font-weight:1000;letter-spacing:-.07em;filter:drop-shadow(0 4px 0 #19334c) drop-shadow(0 0 7px white)}
.world-logo span,.world-logo b{display:block;paint-order:stroke fill;-webkit-text-stroke:clamp(5px,.8vw,12px) #172b67;text-shadow:0 5px 0 #304587,0 8px 0 #142957}
.world-logo span{font-size:clamp(48px,6.8vw,110px);color:#ebffff}.world-logo b{font-size:clamp(62px,8vw,132px);color:#ffcb38;-webkit-text-stroke-color:#67241e;text-shadow:0 5px #e96a17,0 9px #7f211e}
.world-logo small{margin:10px 0 0;background:#134d7f;border-block:2px solid #8ce4ff;padding:4px 24px;border-radius:25%;font-size:clamp(12px,1.35vw,22px);letter-spacing:.02em;color:white}
.world-cup{position:absolute;top:25%;left:2%;display:grid;gap:6px;text-align:left;border:3px solid #ffdc91;border-radius:12px;padding:12px 22px;background:radial-gradient(at right,#8853ac,#322d68 65%,#152244);box-shadow:inset 0 0 0 2px #b080ba,0 4px 12px #22395788}.world-cup strong{color:#fff0b8;font-size:clamp(16px,2vw,30px)}.world-cup small,.world-cup span{font-size:.72rem}.world-watch{position:absolute;top:15%;right:2%}
.world-controls{position:absolute;bottom:4%;width:100%;display:grid;justify-items:center;gap:clamp(15px,3vh,34px)}
.world-start{font-size:clamp(24px,3.3vw,54px);padding:.22em 1.2em .34em;border-radius:1.4em;background:linear-gradient(#fff5ad 0,#ffcb35 12%,#ff9310 40%,#e75702 67%,#ffb719 92%,#ffe779);border:4px solid #ffefa1;box-shadow:0 0 0 3px #c2780e,inset 0 0 0 3px #ffce49,0 0 20px #ffd451,0 6px 9px #49331a99;text-shadow:0 3px 1px #984000!important}.world-start span{font-size:.75em}
.world-controls nav{width:min(95%,1500px);display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.75vw}
.world-controls nav button{min-height:clamp(45px,6vw,78px);padding:6px;border:3px solid #ffe7ab;border-radius:19px;background:linear-gradient(#ffffff70,transparent 18%,#0002 45%,#0005 70%,#ffffff38),var(--plaque);box-shadow:inset 0 0 0 2px #ffffff77,0 3px 0 #493824,0 5px 9px #121a3499;display:flex;align-items:center;justify-content:center;gap:8px;font-size:clamp(13px,1.55vw,24px);line-height:1.17}
.world-controls nav i{font-size:1.6em;font-style:normal}.violet{--plaque:#8044ad}.leaf{--plaque:#277849}.sea{--plaque:#20639c}.ruby{--plaque:#ad3343}.gold{--plaque:#ad7414}.slate{--plaque:#435370}
.world-particles{pointer-events:none;position:absolute;inset:0;overflow:hidden}.world-particles i{position:absolute;left:var(--x);bottom:12%;width:5px;height:5px;background:#fff9af;box-shadow:0 0 7px #fff2a0;animation:firefly 7s var(--delay) infinite ease-in-out}@keyframes firefly{0%,100%{opacity:0;transform:translate(0,0) rotate(45deg)}45%{opacity:.95}90%{transform:translate(30px,-180px) rotate(140deg);opacity:0}}
.stage{background:linear-gradient(#1729504d,#19432c73),url('/title-world.jpg') center 65%/cover}.fighter .monster-art{animation:float 2.8s ease-in-out infinite}.fighter.right .monster-art{animation-delay:-1.2s}.typing .done{text-shadow:0 0 12px #99e96399}.key-strike{position:absolute;pointer-events:none;z-index:4;top:55%;left:23%;width:22px;height:8px;border-radius:70%;background:#fff7a1;box-shadow:0 0 13px 3px #ffd681;animation:keystreak .34s linear forwards}@keyframes keystreak{to{left:75%;top:43%;opacity:0}}
@media(max-width:760px){.world-title{min-height:600px}.world-logo{top:15%}.world-record{gap:4px}.world-record button{font-size:.68rem;padding:6px 8px}.world-hud{gap:5px;font-size:.76rem;padding-right:10px}.world-level{display:none}.world-cup{top:43%;left:3%;padding:7px 11px}.world-watch{top:35%;font-size:.73rem}.world-controls nav{grid-template-columns:repeat(3,1fr);gap:7px}.world-controls nav button{border-radius:12px;font-size:.85rem}.world-controls{bottom:2%}.world-sky{background-position:50% 50%}}
@media(prefers-reduced-motion:reduce){.world-particles i,.fighter .monster-art,.key-strike{animation:none}}

.area-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.area-card{display:grid;place-content:center;min-height:115px;background:var(--zone,#24784a);color:white;border:3px solid #ffffff80;border-radius:18px;font-size:1.15rem}.area-card b{font-size:2rem}.area-card[aria-pressed=true]{outline:4px solid #ffc648;outline-offset:2px}.zone-1{--zone:#20749c}.zone-2{--zone:#a24c30}.zone-3{--zone:#576ba4}.area-detail{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}.field-partner{display:flex;align-items:end;justify-content:center;flex-wrap:wrap}.field-partner .avatar{width:25%;height:auto}.field-partner .monster-art{width:55%}.field-partner strong{width:100%;text-align:center}.wild-list{display:flex}.wild-list .monster-art{width:18%;height:auto}.encounter{text-align:center}.encounter .monster-art{max-height:32vh}.avatar-layers{position:relative;display:inline-block;aspect-ratio:2/3;isolation:isolate}.avatar-layers img,.avatar-layers i{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;mask-size:contain;mask-repeat:no-repeat;mask-position:center}.hair-tint{mix-blend-mode:color}.shiny-art{filter:hue-rotate(65deg) saturate(1.4)}.arena .stage{background:radial-gradient(ellipse at 50% 120%,#555b73,#25384b 55%,#142135)}.fighter .monster-art{object-fit:contain}.right img.monster-art{transform:scaleX(-1)}@media(max-width:700px){.area-grid{grid-template-columns:repeat(2,1fr)}.area-detail{grid-template-columns:1fr}.area-card{min-height:74px}.field-partner .monster-art{max-height:16vh}}

.evolution-pair{display:flex;align-items:center;justify-content:center}.evolution-pair .monster-art{width:45%}.fighter{position:relative}.strike-flight,.strike-impact{pointer-events:none;position:absolute;top:40%;left:45%;z-index:4}.strike-flight{--distance:clamp(80px,24vw,350px);--glow:#a7abff;width:20%;height:1rem;border-radius:90%;background:linear-gradient(90deg,transparent,var(--glow),white);box-shadow:0 0 14px var(--glow);animation:arrive .45s ease-in both}.fighter:not(.right) .strike-flight{--distance:clamp(80px,24vw,350px)}.fighter.right .strike-flight{--distance:clamp(-350px,-24vw,-80px)}.strike-flight.leaf{--glow:#95e867}.strike-flight.fire{--glow:#ff7732}.strike-flight.water{--glow:#55d4ff}.strike-flight.rock{--glow:#cba186}.strike-flight img,.strike-impact{width:100%;height:auto}.strike-impact{width:25%;animation:arrive .32s .44s both}@keyframes arrive{0%{opacity:0;translate:var(--distance,0) 0}20%{opacity:1}85%{opacity:1}100%{opacity:0;translate:0 0}}@media(prefers-reduced-motion:reduce){.strike-flight,.strike-impact,.spell{display:none}}

.cup-tabs,.key-guide>div{display:flex;justify-content:center;gap:.45rem;margin:.55rem 0}.cup-tabs button{flex:1}.cup-tabs [aria-pressed=false]{background:#253b4e;color:#e7f1fa}.key-guide kbd{display:grid;place-items:center;width:clamp(18px,3vw,44px);height:1.8rem;border:1px solid #708496;border-radius:5px;background:#21354b;color:#eef6ff;font-weight:bold}.key-guide kbd.on{background:#ffc041;color:#142535}.entry-mon{width:40px;height:40px}

.camp{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:4vw;padding:6vh 6vw;min-height:calc(100svh - 86px);background:linear-gradient(110deg,#15253b99,#102337dd),url('/title-world.jpg') center/cover}.camp-party{text-align:center;color:white}.camp-party>div{display:flex;align-items:end;justify-content:center}.camp-party .avatar{width:28%;height:auto}.camp-party .monster-art{width:52%;height:auto;max-height:42vh}.camp-party h1{font-size:clamp(20px,3vw,42px)}.camp-menu{display:grid;gap:12px}.camp-action{display:grid;gap:3px;text-align:left;padding:13px 26px;border:2px solid #ffffffa6;border-radius:16px;background:linear-gradient(125deg,#ffe597,#ffac30);color:#17263c;box-shadow:0 4px 0 #13243988}.camp-action strong{font-size:clamp(20px,2vw,32px)}.camp-action small{font-size:15px}.camp-1{background:linear-gradient(125deg,#c6f2ff,#77cafa)}.camp-2{background:linear-gradient(125deg,#ebdbff,#b6a2ef)}.camp-3{background:linear-gradient(125deg,#fedfe4,#ff9cb8)}.camp-4{background:linear-gradient(125deg,#fff4c9,#e8bc61)}@media(max-width:720px){.camp{grid-template-columns:1fr;padding:22px}.camp-party .monster-art{height:14vh;width:auto}.camp-party .avatar{width:64px}}

.title-actions{bottom:12%;gap:18px}.title-actions a{text-decoration:none;color:white;text-align:center}.title-login{padding:8px 20px;background:#182f4bd9;border:1px solid #d1e8ff;border-radius:24px;font-weight:700}.entry-screen{max-width:780px;margin:5vh auto;padding:clamp(20px,4vw,44px)}.match-actions{margin:18px 0;flex-wrap:wrap}.starter{display:grid;justify-items:center;color:inherit}.starter strong{font-size:1.15rem}.starter[aria-pressed=true]{outline:3px solid #ffc64a}

.creator-page{margin:20px auto 40px;max-width:1000px}.creator-page>h1{margin:14px 0 18px}.avatar-editor{grid-template-columns:minmax(175px,.8fr) minmax(0,1.45fr);gap:24px;margin-bottom:18px;align-items:start}
#avatar-preview{display:grid;place-items:center;min-height:270px;padding:8px;border-radius:18px;background:radial-gradient(ellipse at 50% 85%,#a7ebff70,transparent 65%),linear-gradient(#367bbb50,#16605135);border:1px solid #9bd1e852}
#avatar-preview .avatar{display:block;width:min(100%,260px);height:auto}.avatar-layers{min-width:0}.skin-tint{mix-blend-mode:multiply}
.avatar-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.avatar-options fieldset{min-width:0;margin:0;padding:7px 8px 9px;border:1px solid #7392a85c;border-radius:10px}
.avatar-options legend{font-weight:700;padding:0 4px;color:#eaf3ff}.avatar-choices{display:flex;flex-wrap:wrap;gap:4px}.avatar-choices button{background:#223952;color:#e6f0ff;min-height:36px;padding:4px 7px;border:1px solid #7599b7}.avatar-choices .avatar-swatch{width:31px;min-height:31px;background:var(--swatch);border-radius:50%}
.avatar-choices [aria-pressed=true]{outline:2px solid #ffd171;outline-offset:1px;color:#fff}.camp-action:has(.game-icon){display:flex;align-items:center;gap:12px}.camp-action small,.camp-action strong{display:block}.game-icon{width:1.55em;height:1.55em;object-fit:contain;vertical-align:middle}.camp-action .game-icon{width:46px;height:46px}.scene-accent{width:1.4em;height:1.4em;vertical-align:middle;object-fit:contain}
.starter .monster-art{display:block;width:100%;max-height:180px;object-fit:contain}
@media(max-width:700px){.avatar-editor{grid-template-columns:1fr}.creator-page{padding:0}.creator-page .panel{padding:14px}#avatar-preview{min-height:180px}#avatar-preview .avatar{width:145px}}
@media(max-width:420px){.avatar-options{grid-template-columns:1fr}}

/* Battle composition follows the landscape screen references. */
.shell[data-screen=solo],.shell[data-screen=room]{max-width:none;padding:12px 2vw 18px}
body:has(.battle-stage) .appbar{height:48px;min-height:48px;padding:4px 2vw;background:#092240}
.arena:has(.battle-stage){--battle-gold:#eabd62;--battle-blue:#083a68;position:relative;isolation:isolate;max-width:1640px;margin:auto;border:2px solid var(--battle-gold);border-radius:24px;overflow:hidden;background:linear-gradient(#122b4660,#143d5d44),url('/title-world.jpg') center/cover;box-shadow:0 8px 32px #05142680}
.arena:has(.battle-stage)::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 50%,#08294bdd)}
.solo-arena[data-zone="0"]{background-image:linear-gradient(#10263f30,#15384a35),url('/assets/backgrounds/field-forest.png'),url('/title-world.jpg')}
.solo-arena[data-zone="1"]{background-image:linear-gradient(#1e6f9660,#112c4c40),url('/assets/backgrounds/field-ravine.png'),url('/title-world.jpg')}
.solo-arena[data-zone="2"]{background-image:linear-gradient(#b9532050,#44233260),url('/assets/backgrounds/field-volcano.png'),url('/title-world.jpg')}
.solo-arena[data-zone="3"]{background-image:linear-gradient(#d7eeff70,#37598240),url('/assets/backgrounds/field-snow.png'),url('/title-world.jpg')}
.online-arena:has(.battle-stage){background-image:linear-gradient(#15345440,#22315d55),url('/assets/backgrounds/arena-battle.png'),url('/title-world.jpg')}
.arena:has(.battle-stage) .arena-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;background:linear-gradient(90deg,#071f45f2,#174a72d9);border-bottom:2px solid var(--battle-gold);margin:0;min-height:58px}
.arena:has(.battle-stage) .arena-head h1{display:inline;margin:0;font-size:clamp(20px,2.2vw,30px);color:white;letter-spacing:0}
.arena:has(.battle-stage) .arena-head .eyebrow{display:none}
.battle-location{display:inline-block;margin-left:20px;color:#fff3c2;font-weight:800}
.arena:has(.battle-stage) .arena-head .tag{font-size:14px;border-color:#dcbf78;color:white}
.arena:has(.battle-stage) .arena-head button{padding:6px 12px;font-size:14px;color:white}
.battle-stage{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);gap:10px;min-height:0;height:clamp(245px,39svh,440px);padding:12px 20px 0;background:none!important;border:0;border-radius:0;overflow:visible}
.battle-stage .fighter{display:grid;grid-template-rows:auto minmax(0,1fr);justify-items:stretch;align-content:stretch;position:relative;min-width:0;text-align:left}
.combat-hud{position:relative;z-index:2;max-width:500px;width:100%;padding:8px 16px 6px;border:2px solid #f1d085;border-radius:18px;background:linear-gradient(120deg,#092a59f5,#075584e8);box-shadow:0 3px 0 #04193288;color:white}
.right .combat-hud{justify-self:end;background:linear-gradient(120deg,#4d1739ed,#78213fe6)}
.combat-player{display:flex;gap:8px;align-items:center;font-size:14px}
.combat-player .avatar{width:28px;height:28px;object-fit:contain}
.combat-player>span{margin-left:auto;color:#d6eafa}
.combat-name{display:flex;align-items:center;justify-content:space-between;gap:12px}
.combat-name h2{margin:0;font-size:clamp(18px,2vw,27px);font-weight:900;color:white}
.combat-name>span{font-size:16px;white-space:nowrap}
.combat-hud .hp{height:15px;background:#10253b;border:1px solid #d5e9fa;border-radius:20px;margin:5px 0 0}
.combat-hud .hp>span{display:block;height:100%;background:linear-gradient(#c8ff5b,#51cb22);border-radius:inherit}
.combat-hud .hptext{font-size:14px;margin:0;text-align:right;color:white;font-weight:800}
.combat-figure{position:relative;display:flex;justify-content:center;align-items:end;min-height:0}
.battle-stage .combat-figure>.monster-art{width:85%;height:100%;max-height:none;margin:0;object-fit:contain;filter:drop-shadow(0 9px 4px #12331a55);animation:none}
.battle-stage .versus{align-self:center;color:#ffe9a0;font-size:clamp(30px,4vw,64px);font-style:italic;text-shadow:0 3px #793c16}
.battle-stage .damage{position:absolute;top:8%;left:45%;color:#fff1ac;font-size:clamp(28px,4vw,55px);font-weight:900;text-shadow:2px 3px #a32d22;z-index:5}
.battle-console{padding:0!important;margin:0 14px 10px!important;border:2px solid #bfe5ff!important;border-radius:20px!important;background:#082951ec!important;overflow:hidden}
.console-status{display:grid;grid-template-columns:auto auto minmax(50px,1fr);align-items:center;gap:18px;padding:7px 20px;background:#072e58}
.console-status .tag{color:white;border:0;padding:0;font-size:14px}
.console-status .timer{font-size:21px;font-weight:900;color:white}
.console-status progress{width:100%;height:15px;accent-color:#ffd644}
.question-panel{position:relative;background:linear-gradient(#fffdf3,#fff0cb);padding:10px 22px 8px;border-radius:18px;color:#08244f;box-shadow:inset 0 0 0 3px #edce8b}
.question-panel .kana{font-size:clamp(22px,3vw,42px);font-weight:900;line-height:1.3;margin:0 0 8px;letter-spacing:.02em}
.question-panel .roman{font-size:clamp(17px,2.3vw,31px);font-weight:800;letter-spacing:.11em;line-height:1.4;overflow-wrap:anywhere;color:#0c2e53;margin:0;text-transform:uppercase}
.question-panel .roman .done{background:#1473e8;color:white;border-radius:5px}
.question-panel .countdown:not(:empty){position:absolute;inset:0;background:#092750df;display:grid;place-items:center;color:white;font-size:64px;border-radius:inherit;z-index:6}
.question-panel .countdown:empty{display:none}
.question-panel .typeinput{display:block;width:100%;height:25px;min-height:0;margin:4px 0 0;padding:2px 6px;background:#fff6;color:#123357;border:1px solid #b3cce3;border-radius:6px;font-size:14px;box-shadow:none}
.battle-console .key-guide{margin:6px auto 0;width:fit-content;max-width:100%}
.battle-console .key-guide>div{gap:8px;margin:4px 0}
.battle-console .key-guide kbd{height:clamp(25px,4svh,42px);width:clamp(25px,4.6vw,65px);font-size:clamp(15px,1.6vw,23px);background:linear-gradient(#fff,#d4dce8);color:#0c284b;border:1px solid #9db9d6;border-bottom:4px solid #7f94b0;box-shadow:0 2px 4px #031f4180}
.battle-console .key-guide kbd.on{background:linear-gradient(#ffe887,#ffb800);color:#742c00;border-color:#fff1a0;box-shadow:0 0 12px #ffce34}
.battle-console #type-hint{text-align:center;color:#d1e2f5;padding:2px 8px 5px;font-size:14px}
.arena:has(.battle-stage) .progresses{margin:5px 18px 10px}
.arena:has(.battle-stage) .resultbanner{background:#092b51e8;border-top:2px solid #e3bd6d;margin:0;padding:16px}
@media(min-width:1000px) and (min-height:750px){.battle-stage{height:43svh}}
@media(max-width:650px){.battle-stage{grid-template-columns:1fr 25px 1fr;padding:8px;height:280px}.combat-hud{padding:6px 8px}.combat-player .avatar{display:none}.combat-player{font-size:12px}.combat-name{display:block}.combat-name h2{font-size:18px}.combat-hud .hptext{font-size:12px}.console-status{grid-template-columns:1fr auto;gap:5px;padding:8px 12px}.console-status progress{grid-column:1/-1}.battle-console .key-guide>div{gap:4px}.arena:has(.battle-stage) .arena-head{flex-wrap:wrap}.battle-location{margin:0 8px}.question-panel{padding:10px}.arena-head .actions{flex-wrap:wrap}}

/* Shared visual language for the supplied landscape game screens. */
:root{--navy:#082b55;--gold:#e4b65a;--paper:#fff7e3;--ink:#092a50;--muted:#425c70;color:var(--ink);background:#71bde9}
body{background:#71bde9;color:var(--ink)}
body:has([data-screen]){background:url('/assets/backgrounds/adventure-menu.png') center/cover fixed}
h1,h2,h3{font-weight:900}
p,.note,.muted{color:#415d73}
.appbar{height:64px;padding:8px 3vw;background:linear-gradient(100deg,#06234fe8,#105d8de0);border-bottom:3px solid #e8c171;box-shadow:0 3px 12px #0b234c45;color:white}
.brand{font-size:clamp(18px,1.6vw,24px);text-shadow:1px 2px #041836}
.appbar button.quiet{color:white}
button{border:2px solid #fff0b1;background:linear-gradient(#fff2a4,#ffca39 35%,#ffa219);color:#4b2107;box-shadow:0 3px 0 #8d601d,0 4px 6px #17354a40;border-radius:15px}
button.secondary{background:linear-gradient(#eefaff,#b6dcf4);color:#0a3159;border:2px solid #c29b4f;box-shadow:0 3px 0 #6d8da7}
button.quiet{color:#123e68;background:#fff8e8de;border:1px solid #c8ab64;box-shadow:0 2px 0 #a6b4bc}
button:disabled{opacity:.62;filter:grayscale(.6)}
button:hover{transform:translateY(-1px)}
input,select{background:#fffdf5;color:#132d50;border:2px solid #9aaabc;border-radius:12px;min-height:48px}
label{color:#123455;font-size:16px;font-weight:800}
.shell{max-width:none;width:100%;min-height:calc(100svh - 64px);padding:22px 3vw 32px;background-position:center;background-size:cover}
.shell[data-screen=setup]{background-image:url('/assets/backgrounds/character-create.png')}
.shell[data-screen=roster]{background-image:url('/assets/backgrounds/monster-care.png')}
.shell[data-screen=dex]{background-image:url('/assets/backgrounds/dex.png')}
.shell[data-screen=explore]{background-image:url('/assets/backgrounds/area-select.png')}
.shell[data-screen=match-entry],.shell[data-screen=cup-entry],.shell[data-screen=tournament],.shell[data-screen=room]{background-image:url('/assets/backgrounds/arena-lobby.png')}
.shell[data-screen=solo]{background-image:url('/assets/backgrounds/field-forest.png')}
.world-sky{background-image:url('/assets/backgrounds/title.png')}
.panel,.modal{color:var(--ink);background:linear-gradient(125deg,#fffdf3f5,#fff2d5f2);border:3px solid #dfbb73;border-radius:24px;box-shadow:inset 0 0 0 3px #fff9e9,0 5px 14px #14375440}
.panel h2,.modal h2{color:#092b54}
.modal{max-width:1080px;width:min(96vw,1080px)}
.modal-back{background:#06162b99}
.modal .monster-art{max-height:35svh;object-fit:contain}
.modal:has(.avatar-editor){background:linear-gradient(#e8f2ffbd,#fff3dfdf),url('/assets/backgrounds/character-create.png') center/cover}
.modal:has([data-confirm-evolve]){background:linear-gradient(#072e59bb,#0a2d59bb),url('/assets/backgrounds/evolution.png') center/cover;color:white}
.modal:has([data-confirm-evolve]) p,.modal:has([data-confirm-evolve]) h2{color:white}
.heading{align-items:center;margin-bottom:18px;gap:12px}
.heading h1,.creator-page>h1{display:inline-block;margin:0;padding:8px 30px;border:3px solid #e5bd64;border-radius:24px;background:linear-gradient(100deg,#072957,#135f89);color:white;text-shadow:0 2px #041e3f;font-size:clamp(23px,2.5vw,38px);box-shadow:inset 0 0 0 2px #ffffff60,0 3px 6px #0d2b4d55}
.heading .eyebrow{display:none}
.tag{background:#0a315bdf;color:white;border:2px solid #e1c276;font-size:14px}
.camp{min-height:calc(100svh - 64px);padding:4vh 4vw;background-image:url('/assets/backgrounds/adventure-menu.png');grid-template-columns:1fr 1.05fr}
.camp-party{align-self:end;padding-bottom:4vh}
.camp-party>div{height:50svh;align-items:end;gap:0}
.camp-party .avatar{width:45%;height:100%;max-height:none;object-fit:contain}
.camp-party .monster-art{width:48%;height:70%;max-height:none;object-fit:contain;filter:drop-shadow(0 10px 7px #1e402d50)}
.camp-party h1{font-size:clamp(18px,2vw,29px);padding:10px 18px;background:#fff7e8e8;color:#0a2b4d;border:3px solid #dab65e;border-radius:15px;margin:8px 0}
.camp-party>p{color:#082b55;display:inline-block;background:#fff8e9e8;padding:3px 16px;border-radius:12px;font-weight:800}
.camp-menu{gap:14px}
.camp-action{min-height:90px;border:3px solid #fff4bf;box-shadow:0 0 0 2px #c29445,0 5px 0 #324a5970;padding:12px 24px;gap:22px!important}
.camp-action .game-icon{width:64px;height:64px}
.camp-action strong{font-size:clamp(24px,2.5vw,40px)}
.camp-action small{font-size:16px}
.creator-page{max-width:1500px;margin:0 auto;padding:0;text-align:left}
.creator-page>.tag{float:right}
.creator-page>.panel{margin-top:18px;background:transparent;border:0;box-shadow:none;padding:0}
.creator-page>.panel>.avatar-editor{display:grid;grid-template-columns:1fr 1.05fr;gap:6vw;margin-bottom:8px}
#avatar-preview{min-height:0;height:54svh;background:transparent;border:0}
#avatar-preview .avatar{width:100%;height:100%;max-width:430px;object-fit:contain;filter:drop-shadow(0 7px 4px #13384d40)}
.avatar-options{display:grid;grid-template-columns:1fr;gap:7px;padding:18px;border:3px solid #d1af6a;border-radius:23px;background:linear-gradient(#fff9eaf5,#f7ebd4f5);box-shadow:inset 0 0 0 3px #fff9ef}
.avatar-options fieldset{display:grid;grid-template-columns:105px 1fr;align-items:center;padding:3px 0 6px;border:0;border-bottom:1px solid #c6b99d;border-radius:0;min-width:0}
.avatar-options fieldset:last-child{border:0}
.avatar-options legend{float:left;color:white;background:#123b66;padding:6px 10px;border-radius:12px;font-size:14px}
.avatar-choices{gap:6px;flex-wrap:wrap}
.avatar-choices button{padding:2px;min-width:42px;height:50px;min-height:0;position:relative;background:#fffaf2;border:2px solid #c8bfae;color:#123251;box-shadow:none;border-radius:10px;overflow:hidden}
.avatar-choices .avatar-swatch{height:33px;min-height:33px;min-width:33px;width:33px;background:var(--swatch)}
.avatar-choices [aria-pressed=true]{outline:3px solid #ffbd21;box-shadow:0 0 8px #ffcd30;color:#09254a}
.choice-avatar{display:block;width:42px;height:46px;object-fit:contain}
.choice-avatar.avatar-layers{position:relative;aspect-ratio:2/3}
.creator-page>.panel>label{display:inline-block;background:#fff4dce8;padding:6px 12px;border-radius:8px;margin:4px 0}
.creator-page #player-name{width:45%;display:block;margin-bottom:12px}
.creator-page>.panel>.wide{float:right;width:43%;margin-top:-68px;min-height:58px;font-size:24px}
.creator-page>.secondary{font-size:14px}
.starter-grid{max-width:1300px;margin:5vh auto 28px;gap:28px}
.starter{background:linear-gradient(#fff9eac7,#d6f5f0e8);border:3px solid #b7d9e8;border-radius:24px;padding:20px;min-height:350px;box-shadow:0 6px 0 #52768960}
.starter .monster-art{height:33svh;max-height:340px}
.starter strong{font-size:24px}
.starter[aria-pressed=true]{border-color:#ffc73a;box-shadow:0 0 0 4px #fff2a7,0 0 28px #ffc82c}
.care-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:3vw}
.care-portrait{position:relative;text-align:center;min-width:0}
.care-portrait>h2{display:inline-block;background:#0b315ce8;border:2px solid #e7c171;color:white;padding:6px 15px;border-radius:16px}
.level-medal{display:block;font-size:27px;font-weight:900;color:#0a2d51;text-shadow:0 0 4px white,0 0 4px white}
.care-portrait>.monster-art{height:34svh;max-width:100%;width:85%;object-fit:contain}
.care-portrait>.xp{height:17px;border:2px solid #103454;border-radius:20px;background:#fff9ea;margin:8px 7%}
.care-portrait>.xp span{display:block;height:100%;background:linear-gradient(#b7ff48,#55cd30);border-radius:inherit}
.care-portrait>p{display:inline-block;background:#fff8ebeb;padding:1px 12px;border-radius:8px;font-weight:700;margin:0}
.party-strip{display:flex;overflow-x:auto;gap:8px;padding:10px 4px}
.party-strip button{min-width:90px;width:110px;flex-shrink:0;padding:6px;background:#fff4dfeb;color:#0a3156;border:2px solid #e6c67e;box-shadow:0 3px #26486a60}
.party-strip button[aria-pressed=true]{outline:3px solid #ffc42e}
.party-strip .monster-art{width:100%;height:75px;object-fit:contain}
.party-strip strong,.party-strip small{display:block}
.care-stats{padding:25px}
.care-stats>h2,.dex-detail>h2{background:linear-gradient(90deg,#0c345e,#175d88);color:white;border-radius:12px;padding:9px 14px}
.stat-row{display:flex;align-items:center;gap:18px;padding:17px 8px;border-bottom:1px solid #d8c8a2;font-size:18px}
.stat-row>strong{flex:1}
.stat-row meter{width:28%;height:20px;accent-color:#50c875}
.stat-row>b{font-size:26px}
.care-actions{display:grid;gap:12px;margin-top:24px}
.care-actions button{font-size:19px;padding:12px}
.evolve-button{background:linear-gradient(#ffe67a,#ffb021)}
.team-summary{margin-top:14px;background:linear-gradient(#123e69ed,#0b2b51ed);border:3px solid #d9b260;border-radius:20px;padding:12px 24px;color:white;display:flex;justify-content:space-between;align-items:center;gap:20px}
.team-summary p{color:white;margin:4px 0}
.dex-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:22px;align-items:start}
.dex-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:14px}
.dex-card{display:grid;justify-items:center;padding:7px;background:linear-gradient(#c9edff,#fff9ea);border:2px solid #86a6b2;border-radius:16px;box-shadow:none;color:#0b2949;min-width:0}
.dex-card[aria-pressed=true]{outline:3px solid #ffd145}
.dex-card .monster-art{height:105px;width:100%;object-fit:contain}
.dex-card>span:nth-child(2){width:100%}
.dex-card>span:first-child,.dex-card small{font-size:12px}
.dex-card strong{font-size:16px}
.undiscovered{filter:brightness(0) opacity(.45)}
.dex-detail{padding:18px;min-width:0}
.dex-detail>.monster-art{display:block;margin:auto;width:90%;height:32svh;object-fit:contain;background:linear-gradient(#ffffff10,#ddf2df50);border-radius:20px}
.dex-detail p{font-size:17px}
.evolution-pair{display:flex;align-items:center;justify-content:center}
.evolution-pair .monster-art{width:40%;height:120px;object-fit:contain}
.unknown-emblem{font-size:150px;text-align:center;color:#587a9d}
.area-grid{margin:12px 0 24px;gap:16px}
.area-card{height:130px;border:3px solid #fff8b3;box-shadow:0 0 0 2px #436e92;font-size:24px;text-shadow:0 2px 3px #102c44}
.area-card.zone-0{background:linear-gradient(transparent,#124520d9),url('/assets/backgrounds/field-forest.png') center/cover}
.area-card.zone-1{background:linear-gradient(transparent,#08365fd9),url('/assets/backgrounds/field-ravine.png') center/cover}
.area-card.zone-2{background:linear-gradient(transparent,#702a16d9),url('/assets/backgrounds/field-volcano.png') center/cover}
.area-card.zone-3{background:linear-gradient(transparent,#284b70d9),url('/assets/backgrounds/field-snow.png') center/cover}
.area-detail{min-height:45svh}
.field-partner{min-height:35svh}
.field-partner>.avatar{height:32svh;width:38%;object-fit:contain}
.field-partner>.monster-art{height:30svh;width:55%;object-fit:contain}
.field-partner strong{font-size:20px;padding:6px;background:#123b65;border:2px solid #e8bd6e;border-radius:12px;color:white}
.area-detail .wild-list .monster-art{height:95px;width:18%;object-fit:contain}
.entry-screen{max-width:1250px;margin:3vh auto;padding:30px 4vw}
.entry-screen>h1{font-size:36px;color:#0b3157}
.entry-screen>.match-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.entry-screen>.match-actions button{min-height:90px;font-size:23px}
.cup-tabs{gap:16px}
.cup-tabs button{min-height:65px;font-size:22px}
.cup-tabs [aria-pressed=false]{color:#12395d;background:linear-gradient(#f8fcff,#cbdce8)}
#cup-form{max-width:850px;margin:22px auto 0}
#cup-form>footer button{min-height:65px;font-size:24px;width:100%}
.lobby{gap:30px;padding:20px}
.lobby .panel{min-height:250px;text-align:center}
.lobby .waiting{color:#fff8c4;display:grid;place-items:center;font-size:25px;background:#13395ac9;border:3px solid #dbbd78;border-radius:24px}
.entries{gap:10px;display:grid;grid-template-columns:1fr 1fr}
.entries>.tag{padding:8px 16px;font-size:20px;color:#102f50;background:#fff7df;border:2px solid #c8aa63;border-radius:15px}
.entries .entry-mon{width:65px;height:65px;object-fit:contain}
.bracket{background:#123657cc;border:3px solid #e0bc6c;border-radius:20px;padding:22px;gap:24px;overflow-x:auto}
.bracket-round{min-width:230px}
.bracket-round>h3{color:#fff3c6}
.match{background:linear-gradient(#fffdf0,#e4e4f5);color:#102c50;border:2px solid #e6c476;border-radius:18px;padding:12px;margin-bottom:20px}
.match p{color:#102c50;font-weight:800}
.match.active{outline:3px solid #ffd23d}
@media(max-width:850px){.care-layout,.dex-layout{grid-template-columns:1fr}.dex-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.creator-page>.panel>.avatar-editor{grid-template-columns:1fr}.creator-page #avatar-preview{height:32svh}.avatar-options{gap:6px}.creator-page #player-name{width:100%}.creator-page>.panel>.wide{float:none;width:100%;margin:0}.camp{grid-template-columns:1fr}.camp-party>div{height:28svh}.camp-party{padding-bottom:5px}.camp-action{min-height:70px}.entry-screen>.match-actions{grid-template-columns:1fr}.entries{grid-template-columns:1fr}.care-portrait>.monster-art{height:30svh}.stat-row{padding:10px 6px}.dex-card .monster-art{height:80px}.area-card{font-size:18px;height:100px}}
@media(max-width:500px){.shell{padding:15px 12px}.avatar-options fieldset{grid-template-columns:80px 1fr}.avatar-options legend{font-size:12px}.avatar-choices{gap:4px}.avatar-choices button{min-width:34px;width:36px}.choice-avatar{width:30px}.dex-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.team-summary{flex-wrap:wrap}.entry-screen{padding:20px}.heading h1{font-size:23px;padding:8px 16px}}


/* Keep layered artwork inside its allocated stage and preview. */
#avatar-preview{position:relative;overflow:hidden}
#avatar-preview .avatar{position:absolute;inset:0;margin:auto;width:100%;height:100%;max-width:none;min-height:0;aspect-ratio:auto}
.avatar-layers img{object-fit:contain}
.battle-stage{grid-template-rows:minmax(0,1fr)}
.battle-stage .fighter{height:100%;min-height:0}
.combat-figure{overflow:hidden}
.battle-stage .combat-figure>.monster-art{position:absolute;inset:0;margin:auto;width:100%;height:100%;max-height:100%;object-fit:contain}
.battle-console{max-width:none!important;width:calc(100% - 28px)!important}
.arena:has(.battle-stage) .combat-player .avatar{flex-shrink:0}
.shell[data-screen=solo],.shell[data-screen=room]{padding:8px 1.2vw 16px}
.appbar .quiet{color:#123b65}
.creator-page>.panel>.avatar-editor{align-items:start}
@media(min-width:851px) and (max-height:800px){.avatar-options{padding:12px;gap:4px}.avatar-options fieldset{padding:2px 0 4px}.avatar-choices button{height:40px;min-width:38px}.choice-avatar{height:36px;width:33px}.avatar-options legend{padding:4px 8px}.creator-page>.panel{margin-top:12px}.creator-page>.panel>.wide{min-height:50px;margin-top:-62px}.battle-stage{height:36svh}.combat-hud{padding:5px 14px}.combat-name h2{font-size:21px}.combat-player .avatar{height:22px;width:22px}.combat-hud .hptext{font-size:12px}.battle-console .key-guide kbd{height:26px}.battle-console .kana{font-size:28px}.battle-console .roman{font-size:23px}.battle-console .question-panel{padding:7px 15px}}


.shell:has(.creator-page[data-step=starter]){background-image:url('/assets/backgrounds/starter-select.png')}
.encounter.panel{border:0;box-shadow:none;background:transparent;min-height:calc(100svh - 110px);padding:18px 3vw;text-align:center}
.shell:has(.encounter[data-zone="1"]){background-image:url('/assets/backgrounds/field-ravine.png')}
.shell:has(.encounter[data-zone="2"]){background-image:url('/assets/backgrounds/field-volcano.png')}
.shell:has(.encounter[data-zone="3"]){background-image:url('/assets/backgrounds/field-snow.png')}
.encounter>h1{color:#fff4bd;font-size:clamp(26px,3.8vw,56px);text-shadow:3px 3px 0 #743b23,-2px -2px 0 #743b23,0 0 7px #fff8db}
.encounter .area-detail{grid-template-columns:1fr 1fr;min-height:48svh}
.encounter .field-partner{align-items:end;min-height:43svh}
.encounter .field-partner .avatar{height:40svh;width:45%;max-height:40svh}
.encounter .field-partner .monster-art{height:30svh;width:45%;max-height:30svh}
.encounter-enemy .monster-art{height:40svh;max-height:40svh;width:95%;object-fit:contain;filter:drop-shadow(0 0 30px #fff3b2)}
.encounter-enemy h2{background:#fff8e8ef;border:3px solid #ddb76a;border-radius:18px;margin:0 6%;padding:8px;font-size:26px}
.encounter>button{min-width:160px;margin:14px 7px;font-size:23px;padding:13px 30px}
.encounter>button:first-of-type{min-width:35%}
.entry-party{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;background:#e1eff99c;border-radius:18px;padding:8px 15px;border:1px solid #a3becf;margin:10px 0}
.entry-party-art{display:flex;justify-content:center;gap:12px}
.entry-party figure{margin:0;text-align:center;min-width:0}
.entry-party .monster-art{height:140px;width:100%;object-fit:contain}
.entry-party figcaption{font-size:14px;font-weight:800}
.lobby .panel>.monster-art{height:27svh;max-width:100%;object-fit:contain}
.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:15px auto;max-width:1000px}
.result-stats>section{border:2px solid #9ac8e9;background:#0a3762;border-radius:18px;padding:12px 20px;color:white}
.result-stats>section:last-child{background:#602744}
.result-stats h2{color:#fff3be!important}
.result-stats dl>div{display:flex;justify-content:space-between;gap:20px;margin:7px 0}
.result-stats dd{font-weight:900;margin:0}
.capture-celebration{text-align:center;padding:1vh 3vw}
.capture-celebration>h1{color:#ffef91;text-shadow:3px 4px #a23d10,-2px -2px #9f4b11;font-size:clamp(36px,5vw,70px);margin:0}
.capture-ribbon{display:inline-block;background:linear-gradient(#f75028,#b41c23);color:white;padding:7px 40px;border:2px solid #ffd575;font-weight:900;font-size:22px;border-radius:15px;margin:0}
.capture-layout{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:4vw;margin:15px auto}
.capture-art{position:relative;display:grid;place-items:center;height:48svh}
.capture-art>.monster-art{width:85%;height:100%;object-fit:contain;filter:drop-shadow(0 0 20px #fff79b);z-index:1}
.capture-glow{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:.8}
.capture-layout .panel h2{font-size:36px;margin-top:20px}
.capture-celebration>.actions{justify-content:center}
.evolution-result{text-align:center;color:white;background:linear-gradient(#07325660,#082b5b95),url('/assets/backgrounds/evolution.png') center/cover;padding:20px;border-radius:20px}
.modal:has(.evolution-result){padding:12px;background:#10345f}
.evolution-result h2{color:#ffdc66!important;font-size:48px;text-shadow:0 3px #8a3d0e}
.evolution-result .evolution-pair .monster-art{height:35svh;width:45%}
.evolution-values{display:flex;justify-content:center;gap:24px;background:#fff4daed;border:2px solid #edc67c;border-radius:15px;margin:14px 0}
.evolution-values p{color:#12304b}
.evolution-values strong{color:#187f37}
.shell[data-screen=solo]:has(.capture-celebration){background-image:url('/assets/backgrounds/field-forest.png')}
@media(max-width:650px){.entry-party{grid-template-columns:1fr}.entry-party .monster-art{height:100px}.capture-layout{grid-template-columns:1fr}.capture-art{height:28svh}.result-stats{gap:8px}.result-stats>section{padding:12px}.result-stats dl>div{display:block}.encounter .area-detail{gap:8px}.encounter .field-partner .avatar{height:28svh}.encounter-enemy .monster-art{height:28svh}.evolution-values{display:block}}


.combat-hud{height:88px;padding:5px 14px}
.combat-player{height:20px;font-size:13px;line-height:20px}
.combat-player .avatar{height:20px!important;width:20px!important}
.combat-name h2{font-size:23px;line-height:27px}
.combat-hud .hp{height:17px;max-width:none;width:100%;margin:2px 0 0}
.combat-hud .hptext{position:absolute;right:18px;bottom:7px;line-height:17px;font-size:12px;text-shadow:1px 1px #163521}
.battle-stage{height:42svh}
.battle-stage::before{display:none}
#battle-bottom>.typing{background:linear-gradient(#fffcf0f5,#f3e2bbf5);color:#0b3157;border:3px solid #dfbc74;margin:12px auto;padding:14px 24px;border-radius:20px;max-width:calc(100% - 28px)}
#battle-bottom>.typing h1,#battle-bottom>.typing h2{color:#0c345c}
#battle-bottom>.battle-console{background:#082951ec!important;margin:0 14px 10px!important;padding:0!important}
.shell[data-screen=solo] .arena-head .actions .quiet{color:#0c3157}
@media(min-width:851px) and (max-height:800px){.battle-stage{height:40svh}.combat-hud{height:82px}.combat-name h2{font-size:21px}.battle-console .question-panel{padding:6px 15px}.battle-console .key-guide>div{margin:3px 0}.battle-console .key-guide kbd{height:24px}.battle-console #type-hint{padding-bottom:2px;font-size:12px}.console-status{padding:5px 18px}.console-status .timer{font-size:18px}.arena:has(.battle-stage) .arena-head{min-height:48px;padding:6px 16px}.arena:has(.battle-stage) .arena-head h1{font-size:25px}}

.battle-stage .combat-figure>.monster-art{scale:1.32;transform-origin:50% 70%}

.team-summary{position:static;transform:none;left:auto;bottom:auto;max-width:none;width:100%;z-index:auto}
.care-stats{align-self:start}
@media(min-width:851px) and (max-height:800px){.care-stats{padding:18px}.care-stats>.stat-row{padding:10px 8px}.care-actions{gap:9px;margin-top:16px}.care-actions button{font-size:17px;padding:9px}.party-strip .monster-art{height:65px}.care-portrait>.monster-art{height:30svh}.dex-card .monster-art{height:95px}}

#room-bottom>.typing{background:linear-gradient(#fffbedf5,#f5e5c5f5);color:#0b3157;border:3px solid #dbba72;border-radius:20px;max-width:calc(100% - 28px);margin:10px auto;padding:14px 20px}
#room-bottom>.typing h2,#room-bottom>.typing h3{color:#123b61}
#room-bottom>.battle-console{background:#082951ec!important;margin:0 14px 10px!important;padding:0!important}
#room-bottom>.typing .roman{color:#123b61;overflow-wrap:anywhere}
#room-bottom>.typing p{color:#40596f}
.arena .arena-head h1>.note{color:#dfedff;font-size:14px}
.room-code{font-family:inherit;font-size:18px;letter-spacing:1px;background:#092c53;border:2px solid #c6aa65;color:#fff2c7;padding:5px 14px;border-radius:10px}
.spectating .battle-stage{height:43svh;min-height:0}
.spectating .combat-figure>.monster-art{height:100%;width:100%}
.spectating .progresses{font-size:16px}
.spectating .progresses label{color:#123454;font-size:16px}
.spectating .typing>.tag{color:white}
.spectating #room-bottom>.typing .kana{font-size:clamp(23px,3vw,38px);margin:8px 0}
.spectating #room-bottom>.typing .roman{font-size:clamp(20px,2.5vw,30px);margin:4px 0}
.spectating #room-bottom>.typing .timer{color:#0c3157;font-size:19px}

.shell[data-screen=login],.shell[data-screen=signup]{background-image:url('/assets/backgrounds/character-create.png')}
.account-screen{max-width:580px;margin:2vh auto;padding:24px 32px}
.account-screen h1{font-size:32px;color:#123659;margin:0 0 12px}
.account-screen .wide{margin-top:14px;min-height:48px;font-size:18px}
.account-screen .note{margin:6px 0;font-size:14px}
.account-screen label{margin-top:12px}
.account-error{color:#a72130!important;font-weight:700;min-height:1.5em;margin:12px 0}
.admin-signin{display:block;text-align:center;margin:20px auto 10px;color:#174b7a;text-decoration:underline;font-weight:700}
.header-signout{color:white;font-size:14px;font-weight:700;margin:0 6px}
.login-id{font-size:14px;color:#f5e7b9}
.admin-screen{max-width:1300px;margin:2vh auto;padding:26px}
.admin-screen .heading h1{font-size:28px}
.admin-table-wrap{overflow-x:auto}
.admin-table{border-collapse:collapse;width:100%;text-align:left}
.admin-table th{background:#123b64;color:white;padding:12px}
.admin-table td{padding:12px;border-bottom:1px solid #d6c4a0}
.admin-table td:last-child{display:flex;gap:12px;flex-wrap:wrap}
.admin-table strong{overflow-wrap:anywhere}
.admin-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:22px}
.shell[data-screen=admin-users]{background-image:url('/assets/backgrounds/arena-lobby.png')}
form[data-account-form] .wide{min-height:48px;margin-top:12px}
@media(max-width:650px){.appbar{height:auto;min-height:64px;flex-wrap:wrap;gap:6px}.appbar .actions{flex-wrap:wrap}.account-screen{padding:20px}.admin-screen{padding:16px}.admin-screen .heading{flex-wrap:wrap}.admin-table td{padding:9px}.admin-table button{font-size:14px}.admin-pagination{gap:8px}}

.shell[data-screen=admin-login]{background:linear-gradient(135deg,#e8f0f8,#c2d5e8);display:grid;place-items:center}
.admin-login-screen{text-align:center;width:min(100%,580px);margin:0 auto;padding:36px}
.admin-login-button{display:block;padding:16px 20px;border-radius:14px;background:linear-gradient(#174e7d,#0c3159);border:2px solid #d4b16b;color:white;text-decoration:none;font-size:20px;font-weight:800}
.back-to-game{display:inline-block;margin-top:18px;color:#16456e}
.admin-appbar a{color:white;font-size:15px;font-weight:700;margin:0 8px;text-decoration:none}
.admin-appbar .actions{flex-wrap:wrap}
.brand-logo{display:block;width:210px;height:60px;flex-shrink:0;overflow:hidden}
.world-title .world-audio{position:absolute;right:18px;top:18px;z-index:3;font-size:16px;padding:9px 16px;min-height:40px;background:#0a3159e8;border:2px solid #f6dc8b;border-radius:24px}
.world-audio-hint{position:absolute;right:20px;top:65px;padding:3px 10px;margin:0;color:white;background:#082d54ca;border-radius:10px;font-size:12px}
.team-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px}
.team-summary button{font-size:16px;padding:10px 16px;min-height:42px}
.capture-celebration{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px;min-height:0;padding:4px 2vw}
.capture-celebration>.capture-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:24px;min-height:0;margin:0}
.capture-art{position:relative;display:block;min-height:0;height:100%;isolation:isolate;align-self:stretch;overflow:hidden}
.capture-art>.monster-art{position:absolute;inset:0;margin:auto;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;transform:none;animation:none;filter:drop-shadow(0 0 14px #fff9aa)}
.capture-celebration .capture-art{height:100%}
.care-portrait>.monster-art{scale:1.3}
.capture-art>.capture-glow{position:absolute;inset:0;z-index:-1;max-height:100%;object-fit:contain}
.capture-layout>.panel{padding:18px;align-self:center;min-width:0}
.capture-layout>.panel h2{font-size:30px;margin:10px 0}
.capture-layout>.panel p{margin:6px 0 12px}
.capture-layout .care-actions{margin-top:12px}
.capture-choice{height:100%;min-height:0}
.capture-choice-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;height:calc(100% - 76px);min-height:0;align-items:center}
.capture-choice-art{height:100%;min-height:0;position:relative}
.capture-choice-art>.monster-art{position:absolute;inset:0 0 52px;width:100%;height:calc(100% - 52px);object-fit:contain}
.capture-choice-art h2{position:absolute;bottom:0;left:5%;width:90%;margin:0;text-align:center;color:#10375e;background:#fff7e8ed;border:2px solid #dcbd74;border-radius:16px;padding:8px}
.capture-choice-layout>.panel{padding:24px;min-width:0}
.capture-choice-layout .catch-options{display:grid;grid-template-columns:1fr;gap:10px}
.capture-choice-layout .catch-options button{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:21px;padding:12px 18px}
.capture-choice-layout .catch-options small{display:inline;font-size:14px;margin:0}
.capture-retry{font-weight:800;color:#8a5020!important;background:#fff1cf;border-radius:10px;padding:8px}
.capture-suspense{height:100%;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:0;background:radial-gradient(ellipse,#fff8b580,#092d5840);border-radius:24px}
.capture-suspense h1{font-size:clamp(28px,4vw,48px);background:#092f58e8;border:2px solid #e7c771;color:#fff3a8;padding:8px 24px;border-radius:22px;margin:12px 0}
.capture-ritual{flex:1;width:min(100%,650px);position:relative;min-height:0}
.capture-ritual>.monster-art{position:absolute;inset:0;margin:auto;width:80%;height:100%;object-fit:contain;animation:capture-gather .8s ease-in forwards}
.capture-orb{position:absolute;left:50%;top:52%;width:clamp(90px,15svh,160px);aspect-ratio:1;display:grid;place-items:center;border:6px solid #ffe791;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,#62edff 12%,#1f93dd 40%,#174d9c 74%);box-shadow:0 0 35px 10px #fff69d,inset 0 0 15px #fff;opacity:0;animation:orb-arrive .5s .45s forwards,orb-wobble .45s .8s 3}
.capture-orb>span{font-size:54px;color:#fff9b1;text-shadow:0 0 15px white}
.capture-ring{position:absolute;inset:10%;border:4px solid #fff5a666;border-radius:50%;opacity:0;animation:seal-ring 1.5s .2s forwards}
.capture-dots{display:flex;gap:18px;padding:12px}
.capture-dots i{height:16px;width:16px;border-radius:50%;background:#153f66;box-shadow:0 0 0 2px #fff2a5;animation:catch-dot .5s forwards}
.capture-dots i:nth-child(1){animation-delay:.4s}.capture-dots i:nth-child(2){animation-delay:.85s}.capture-dots i:nth-child(3){animation-delay:1.3s}
.capture-suspense>p{font-size:18px;font-weight:800;color:#103c61;background:#fff8e8e8;padding:6px 18px;border-radius:14px;margin:6px 0 14px}
.capture-reveal .capture-art{animation:friend-reveal .85s ease-out}
.battle-stage .combat-figure.key-pulse>.monster-art{animation:key-power .15s ease-out}
.question-panel.key-correct{animation:correct-border .15s ease-out}
.word-complete .fighter:first-child .combat-figure>.monster-art{animation:word-power .7s ease-out!important}
.word-complete-label{position:absolute;left:8%;top:42%;z-index:8;font-size:clamp(24px,4vw,48px);font-weight:950;color:#fff8a6;text-shadow:3px 3px #a83e0b,-2px -2px #a83e0b;animation:word-label .6s ease-out forwards;pointer-events:none}
.combo-float{position:absolute;left:14%;top:40%;z-index:7;font-size:clamp(22px,3vw,36px);font-weight:950;color:#fff4a0;text-shadow:2px 2px #84361a;animation:word-label .8s ease-out forwards;pointer-events:none}
.question-panel.word-finished{box-shadow:inset 0 0 30px #fff09f,0 0 18px #ffe15c}
.key-strike{width:34px;height:10px;box-shadow:0 0 18px 5px #ffe075}
@keyframes capture-gather{0%,35%{opacity:1;scale:1;filter:drop-shadow(0 0 10px #fff)}100%{opacity:0;scale:.05;filter:brightness(4)}}
@keyframes orb-arrive{from{opacity:0;transform:translate(-50%,-50%) scale(.3)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes orb-wobble{0%,100%{rotate:0deg}30%{rotate:-16deg}70%{rotate:14deg}}
@keyframes seal-ring{0%{opacity:0;scale:.4}25%{opacity:1}100%{opacity:0;scale:1.4}}
@keyframes catch-dot{to{background:#fff28b;box-shadow:0 0 14px #ffdd47}}
@keyframes friend-reveal{from{opacity:.3;scale:.8;filter:brightness(2)}to{opacity:1;scale:1;filter:brightness(1)}}
@keyframes key-power{50%{filter:brightness(1.35) drop-shadow(0 0 9px #78f3ff);translate:4px -3px}}
@keyframes correct-border{50%{box-shadow:inset 0 0 18px #aceeff,0 0 8px #69d6ff}}
@keyframes word-power{0%,100%{filter:brightness(1) drop-shadow(0 0 8px #fff08a)}40%{filter:brightness(1.8) drop-shadow(0 0 28px #ffef6b);translate:8px -8px}}
@keyframes word-label{0%{opacity:0;translate:0 12px;scale:.8}20%,70%{opacity:1;scale:1}100%{opacity:0;translate:0 -20px}}
@media(min-width:851px) and (max-height:650px){.brand-logo{width:155px;height:44px}.capture-layout>.panel{padding:12px}.capture-layout .care-actions button{font-size:15px}.capture-ribbon{font-size:17px;padding:5px 18px}.capture-choice-layout>.panel{padding:14px}.capture-choice-layout h2{font-size:21px}.capture-choice-layout p{font-size:14px;line-height:1.6;margin:8px 0}.capture-choice-layout .catch-options button{font-size:18px;padding:9px 12px}.capture-celebration>h1{font-size:36px}}
@media(max-width:850px){.capture-celebration{height:auto;grid-template-rows:auto auto auto auto}.capture-celebration>.capture-layout,.capture-choice-layout{grid-template-columns:1fr;height:auto}.capture-art{height:32svh}.capture-choice-art{height:32svh}.capture-choice{height:auto}.capture-choice-layout>.panel{padding:16px}.team-summary{grid-template-columns:1fr 1fr}.team-summary>div{grid-column:1/-1}.brand-logo{width:160px;height:46px}}
@media(prefers-reduced-motion:reduce){.capture-ritual>.monster-art{animation:none;opacity:0}.capture-orb{animation:none;opacity:1;transform:translate(-50%,-50%)}.capture-dots i{animation:none;background:#fff28b}.word-complete .fighter:first-child .combat-figure>.monster-art{animation:none!important;filter:brightness(1.2) drop-shadow(0 0 15px #ffe892)}.word-complete-label,.combo-float{animation:none;opacity:1}}
.shell[data-screen=admin-audio]{background:linear-gradient(135deg,#e7eff8,#c8dbee);color:#123659}
.audio-manager{max-width:1500px;margin:auto;display:grid;gap:18px;padding-bottom:24px}
.audio-manager .panel{padding:20px 24px}
.audio-manager h1{font-size:30px;margin:0 0 8px}
.audio-manager h2{font-size:24px;margin:0 0 10px}
.audio-manager p{color:#405c73;line-height:1.6;margin:8px 0 12px}
.audio-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.audio-toolbar>span{font-size:14px;font-weight:700}
.audio-toolbar audio{height:36px;max-width:240px}
.audio-heading{position:sticky;top:-115px;z-index:4}
.audio-manager form>button[type=submit]{min-width:160px;justify-self:start;white-space:nowrap}
.audio-manager summary{cursor:pointer;color:#123659;font-size:19px;font-weight:800;padding:8px 0}
.audio-manager form{display:grid;grid-template-columns:1fr 130px minmax(220px,1.2fr);gap:12px;align-items:end}
.audio-manager form label{margin:0;color:#123659}
.audio-manager form input[type=file]{font-size:14px;padding:10px;min-height:48px}
.audio-manager form p{grid-column:1/-1}
.audio-library-list{max-height:300px;overflow:auto;margin-top:14px;border:1px solid #c2b48e;border-radius:12px}
.audio-library-list article{display:flex;gap:9px;align-items:center;padding:10px 14px;border-bottom:1px solid #d7c8ac}
.audio-library-list article>div{flex:1;min-width:0;overflow-wrap:anywhere}
.audio-library-list small{display:block;color:#51687a;font-size:13px;margin-top:4px}
.audio-library-list button{font-size:14px;padding:7px 12px}
.audio-manager .audio-slot{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(160px,1.2fr) 130px auto;gap:12px;align-items:center;border-bottom:1px solid #d3c6a7;padding:12px 0}
.audio-slot>label{margin:0;font-size:15px;color:#123659}
.audio-slot:has(.audio-loop){grid-template-columns:minmax(130px,.8fr) minmax(160px,1.2fr) 120px 75px 110px auto}
.audio-volume output{font-size:13px}
.audio-slot input[type=range],.modal input[type=range]{width:100%;height:26px;min-height:0;padding:0;accent-color:#0879bb}
.audio-slot select{font-size:14px;padding:8px;min-height:40px}
.audio-slot button{padding:8px 12px;font-size:15px}
.audio-loop{display:flex;gap:7px;align-items:center}
.audio-loop input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:#0879bb}
.audio-reset button{margin:4px 8px 4px 0}
.audio-mappings details+details{margin-top:12px}
@media(max-width:1150px){.audio-slot:has(.audio-loop){grid-template-columns:150px minmax(160px,1fr) 110px auto}.audio-slot .audio-loop,.audio-slot .audio-fade{grid-row:2}.audio-slot .audio-fade{grid-column:2}.audio-manager form{grid-template-columns:1fr 1fr}.audio-slot:has(.audio-loop)>button{grid-column:4;grid-row:1/3}}
@media(max-width:700px){.audio-manager .panel{padding:14px}.audio-manager .audio-slot,.audio-slot:has(.audio-loop){grid-template-columns:1fr 1fr}.audio-slot>label:first-child{grid-column:1/-1}.audio-slot:has(.audio-loop)>button{grid-column:auto;grid-row:auto}.audio-slot .audio-loop,.audio-slot .audio-fade{grid-row:auto;grid-column:auto}.audio-manager form{grid-template-columns:1fr}.audio-library-list article{flex-wrap:wrap}.audio-library-list article>div{flex-basis:100%}}

/* Viewport-sized desktop scenes, with scrolling reserved for long lists. */
.appbar button.quiet{color:#123b65!important;text-shadow:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.world-title{height:100svh;min-height:0;background:#102e4c}
.world-sky{background: url('/assets/backgrounds/title-online.png?v=29') center/contain no-repeat}
.world-controls.title-actions{bottom:max(12px,3svh);gap:8px}
.world-controls .world-start{min-height:48px;padding:10px 44px;font-size:clamp(22px,2.8vw,34px)}
.world-controls .title-login{padding:6px 24px;min-height:34px;font-size:16px;background:#082a54e8;border:2px solid #fff1bf;box-shadow:0 2px 8px #082a54}
.shell,.camp,.panel,.avatar-options,.dex-grid,.care-layout>*{min-width:0}
.modal{max-height:92svh;overflow-y:auto;overscroll-behavior:contain}
.admin-table-wrap{max-height:calc(100svh - 300px);overflow:auto}
@media(min-width:851px){
 .shell{height:calc(100svh - 64px);min-height:0;overflow:auto;padding:14px 2.5vw}
 .camp{height:calc(100svh - 64px);min-height:0;padding:18px 4vw;overflow:auto}
 .camp-menu{min-height:0;gap:12px}
 .camp-action{min-height:0;height:clamp(64px,12svh,108px);padding:8px 20px}
 .camp-action .game-icon{width:clamp(38px,7svh,64px);height:clamp(38px,7svh,64px)}
 .camp-party{align-self:center;padding:0}
 .camp-party>div{height:46svh}
 .camp-party p{margin:4px 0 10px}
 .heading{margin-bottom:14px}
 .dex-layout{height:calc(100% - 78px);align-items:stretch}
 .dex-grid,.dex-detail{overflow-y:auto;overscroll-behavior:contain}
 .dex-grid{align-content:start}
 .dex-detail>.monster-art{height:25svh}
 .dex-detail h3{margin-top:12px}
 .dex-detail .evolution-pair .monster-art{height:85px}
 .entry-screen{margin:0 auto;padding:18px 3vw}
 .entry-screen>h1{margin:0 0 8px}
 .entry-screen .entry-party-art .monster-art{height:15svh}
 .entry-screen>.match-actions button{min-height:54px;font-size:20px}
 .cup-tabs button{min-height:44px;font-size:19px}
 #cup-form{margin:12px auto 0}
 #cup-form>footer button{min-height:48px;font-size:21px}
 .creator-page #avatar-preview{height:42svh}
 .creator-page .avatar-options{max-height:46svh;overflow-y:auto}
 .creator-page>.panel>.avatar-editor{gap:3vw}
 .creator-page #player-name{margin-bottom:8px}
 .creator-page>.panel>.wide{margin-top:-59px;min-height:48px}
 .starter-grid{margin:18px auto;gap:18px}
 .starter{min-height:0;padding:12px}
 .starter .monster-art{height:36svh}
 .area-card{min-height:0;height:clamp(70px,14svh,130px)}
 .area-grid{margin:10px 0 16px}
 .area-detail{min-height:0;padding:16px;gap:24px}
 .field-partner{min-height:0}
 .field-partner>.avatar{height:30svh}
 .field-partner>.monster-art{height:27svh}
 .area-detail .wild-list .monster-art{height:65px}
 .area-detail label{margin:8px 0 4px}
 .encounter{padding:18px}
 .encounter .area-detail{padding:0;margin:10px 0}
 .encounter-enemy>.monster-art{height:33svh}
 .encounter h1{font-size:clamp(24px,3vw,36px);margin:6px 0}
 .care-layout{height:calc(100% - 176px);min-height:0}
 .care-stats{height:100%;overflow-y:auto;padding:14px 20px}
 .care-portrait{display:flex;flex-direction:column;align-items:center;height:100%;min-height:0}
 .care-portrait>h2{margin:0 0 4px}
 .care-portrait>.monster-art{min-height:70px;flex:1;height:0;width:85%}
 .care-portrait>.xp{width:86%;flex-shrink:0}
 .party-strip{width:100%;flex-shrink:0}
 .party-strip .monster-art{height:48px}
 .party-strip button{min-width:80px;width:90px;font-size:13px}
 .care-stats h2{margin:0 0 8px;padding:6px 12px}
 .care-stats>.stat-row{padding:8px 6px;font-size:16px}
 .care-stats>.stat-row>b{font-size:22px}
 .care-actions{gap:8px;margin-top:12px}
 .care-actions button{padding:8px;font-size:16px;min-height:38px}
 .team-summary{margin-top:10px;padding:8px 18px;min-height:76px}
 .team-summary p{line-height:1.4;margin:2px 0}
 .account-screen{margin:0 auto;padding:20px 28px}
 .account-screen h1{font-size:28px}
 .account-screen label{margin-top:8px}
 .account-screen .wide{margin-top:8px;min-height:42px}
 .account-screen .account-error{margin:6px 0}
}
@media(min-width:851px) and (max-height:650px){
 .appbar{height:48px;padding:0 2.5vw;gap:10px}
 .appbar .actions{gap:4px}
 .appbar button{padding:6px 10px;font-size:13px}
 .shell,.camp{height:calc(100svh - 48px);padding-top:10px;padding-bottom:10px}
 .shell[data-screen=solo],.shell[data-screen=room]{padding:4px 1vw}
 .heading{margin-bottom:8px}
 .heading h1,.creator-page>h1{font-size:24px;padding:5px 18px}
 .camp-action strong{font-size:25px}
 .camp-action small{font-size:13px}
 .camp-menu{gap:9px}
 .camp-party>div{height:40svh}
 .camp-party h1{font-size:19px;padding:6px;margin:4px 0}
 .avatar-options{padding:8px;gap:3px}
 .avatar-options fieldset{grid-template-columns:88px 1fr;padding:3px 0}
 .avatar-options legend{font-size:12px;padding:4px 7px}
 .avatar-choices button{height:32px;min-width:31px;width:32px}
 .avatar-choices .avatar-swatch{height:28px;min-height:28px;min-width:28px;width:28px}
 .choice-avatar{height:28px;width:28px}
 .creator-page>.panel{margin-top:6px}
 .creator-page #avatar-preview{height:46svh}
 .creator-page .avatar-options{max-height:54svh}
 .creator-page>.panel>label{font-size:13px;padding:3px 8px}
 .creator-page #player-name{padding:8px}
 .creator-page>.panel>.wide{font-size:19px;min-height:42px;margin-top:-50px}
 .creator-page>.secondary{padding:5px 10px}
 .care-layout{height:calc(100% - 158px)}
 .care-stats>.stat-row{padding:5px 6px;min-height:0}
 .care-stats .care-actions{grid-template-columns:1fr 1fr;margin-top:8px;gap:7px}
 .care-actions .evolve-button{grid-column:1/-1}
 .care-portrait>h2{font-size:18px}
 .level-medal{font-size:21px}
 .team-summary{min-height:64px;font-size:13px}
 .team-summary button{padding:8px 14px}
 .dex-layout{height:calc(100% - 57px)}
 .dex-card .monster-art{height:72px}
 .dex-grid{gap:8px;padding:10px}
 .dex-detail{padding:12px}
 .dex-detail h2{font-size:20px;margin-bottom:8px}
 .dex-detail p{font-size:14px;line-height:1.5;margin:5px 0 10px}
 .dex-detail .stat-row{padding:5px;font-size:15px}
 .dex-detail .evolution-pair .monster-art{height:65px}
 .entry-screen{padding:12px 24px}
 .entry-screen h1{font-size:27px}
 .shell[data-screen=cup-entry] .entry-screen{padding-top:8px;padding-bottom:8px}
 .shell[data-screen=cup-entry] .entry-screen>h1{line-height:1.25}
 .entry-screen p{margin:4px 0 6px;font-size:13px;line-height:1.5}
 .entry-screen #cup-form>h3{font-size:15px;margin-bottom:4px}
 .entry-screen input,.entry-screen select{padding:6px;min-height:36px;height:36px}
 .entry-screen label{margin:7px 0 4px}
 .entry-screen .entry-party-art .monster-art{height:8svh}
 .entry-party{padding:8px}
 .entry-screen>.match-actions{gap:10px}
 .entry-screen>.match-actions button{font-size:17px;min-height:42px;padding:8px}
 .entry-screen .cup-tabs button{font-size:17px;min-height:36px;padding:6px 12px}
 #cup-form{margin-top:8px}
 #cup-form>footer{margin-top:6px}
 #cup-form>footer button{padding:8px;min-height:40px;font-size:19px}
 .battle-stage{height:36svh}
 .spectating .battle-stage{height:40svh}
 .combat-hud{height:70px;padding:3px 12px}
 .combat-name h2{font-size:18px;line-height:22px}
 .combat-player{font-size:12px;height:17px;line-height:17px}
 .combat-hud .hptext{bottom:5px}
 .arena:has(.battle-stage) .arena-head{min-height:36px;padding:4px 12px}
 .arena:has(.battle-stage) .arena-head h1{font-size:21px}
 .battle-console .kana{font-size:24px;margin:4px 0}
 .battle-console .roman{font-size:20px;margin:4px 0}
 .battle-console .question-panel{padding:4px 12px}
 .battle-console .key-guide kbd{height:20px;font-size:13px}
 .battle-console .key-guide>div{margin:2px 0}
 .battle-console #typing-input{padding:5px;font-size:16px}
 .console-status{padding:3px 14px}
 .console-status .timer{font-size:16px}
 .account-screen{padding:12px 24px}
 .account-screen h1{font-size:24px}
 .account-screen input{padding:8px;min-height:36px;height:36px}
 .account-screen .note{font-size:12px;line-height:1.5}
 .account-screen label{font-size:13px;margin:6px 0 4px}
 .account-screen .wide{min-height:36px;padding:6px 12px;font-size:16px}
 .account-screen .account-error{min-height:1em;margin:4px 0}
 .modal #avatar-preview{height:34svh}
 .modal .avatar-editor{margin-bottom:8px;gap:16px}
 .modal{padding:20px}
 .modal h2{margin-bottom:8px}
 .modal label{margin:8px 0 4px}
 .modal input{height:38px;min-height:38px;padding:8px}
 .modal footer{margin-top:10px}
 .lobby{gap:18px;padding:12px}
 .lobby .panel{min-height:190px;padding:14px}
 .entries{max-height:40svh;overflow:auto}
 .entries>.tag{font-size:16px;padding:6px 10px}
 .entries .entry-mon{width:44px;height:44px}
 .bracket{max-height:52svh;overflow:auto;padding:12px;gap:18px}
 .bracket-round{min-width:200px}
 .match{padding:8px;margin-bottom:10px}
 .capture-art{height:37svh}
 .capture-layout{margin:8px auto}
 .capture-celebration>h1{font-size:38px}
 .capture-ribbon{font-size:18px;padding:5px 24px}
 .capture-layout .panel{padding:14px}
 .capture-layout .panel h2{font-size:28px;margin-top:8px}
 .evolution-result{padding:12px}
 .evolution-result h2{font-size:34px;margin:0 0 6px}
 .evolution-result .evolution-pair .monster-art{height:29svh}
 .evolution-values{margin:8px 0}
 .result-stats{gap:12px;margin:10px auto}
 .result-stats>section{padding:10px 16px}
}
/* Character parts share the source artwork's fixed coordinate system. */
.avatar-rig{display:inline-block;overflow:visible}
.avatar-options [hidden]{display:none!important}
.avatar-editor,.creator-page>.panel>.avatar-editor{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,1.5fr);gap:20px;align-items:stretch;min-height:0}
.avatar-editor #avatar-preview,.creator-page #avatar-preview{height:100%;min-height:240px;max-height:none;border-radius:22px;background:radial-gradient(ellipse at 50% 70%,#fffdf3 15%,#edf4f4e8 85%);border:1px solid #d8cba2}
.avatar-options,.creator-page .avatar-options{display:flex;flex-direction:column;gap:5px;padding:12px;max-height:none;min-width:0;overflow:auto;background:#fffaf0f5}
.avatar-tabs{display:flex;gap:8px;margin-bottom:4px}
.avatar-tabs button{flex:1;min-height:36px;padding:6px 10px;font-size:15px}
.avatar-tabs button[aria-pressed=false]{background:#eef3f6;color:#173c5b;box-shadow:none}
.avatar-options fieldset{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:8px;padding:4px 0;min-width:0;margin:0}
.avatar-options legend{font-size:13px;padding:6px 8px;width:auto;max-width:100%}
.avatar-choices{display:flex;gap:5px;flex-wrap:wrap;min-width:0}
.avatar-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3px;width:60px;min-width:60px;height:70px;border-radius:12px;overflow:hidden;background:#fffdf6;color:#143957}
.avatar-choices button[aria-pressed=true]{background:#fff3be;outline:3px solid #ffbf21;outline-offset:1px}
.avatar-choices .choice-image{display:block;width:50px;height:48px;line-height:48px;font-size:25px}
.avatar-choices .choice-avatar{display:block;width:100%;height:100%;max-width:none;min-height:0}
.avatar-choices small{font-size:11px;line-height:15px;white-space:nowrap;font-weight:700}
.avatar-choices .avatar-swatch{min-width:32px;width:32px;min-height:32px;height:32px;padding:0;background:var(--swatch);border-radius:50%}
.avatar-hint{font-size:12px;margin:4px 0;color:#42617a}
.avatar-save-bar{display:flex;align-items:end;gap:18px;margin-top:14px}
.avatar-save-bar label{flex:1;margin:0;font-size:14px}
.avatar-save-bar input{margin-top:5px;min-height:42px;padding:8px 12px}
.avatar-save-bar button{min-height:44px;min-width:125px}
.modal:has(.avatar-editor){width:min(1160px,96vw);padding:24px;max-height:96svh}
.modal:has(.avatar-editor)>h2{font-size:23px;margin:0 40px 14px 0}
.modal .avatar-editor{height:clamp(300px,calc(100svh - 230px),530px)}
.monster-display{position:relative;display:grid;place-items:center;isolation:isolate;min-width:0;min-height:0;border:2px solid #d7c395;border-radius:26px;background:radial-gradient(ellipse at 50% 35%,#fffef7 15%,#eff5ed 68%,#e2eee8 100%);overflow:hidden}
.monster-display:before{content:'';position:absolute;inset:auto 20% 6%;height:9%;background:#55726724;filter:blur(6px);border-radius:50%;z-index:-1}
.monster-display>.monster-art{display:block;width:94%;height:94%;max-width:none;max-height:none;min-height:0;scale:1;filter:drop-shadow(0 7px 3px #1636271f)}
.monster-display>.shiny-art{filter:hue-rotate(45deg) drop-shadow(0 0 8px #ffd352)}
.care-portrait{display:grid;grid-template-rows:auto minmax(120px,1fr) auto auto auto;gap:6px;min-height:0;min-width:0}
.care-portrait>h2{margin:0;justify-self:center;max-width:100%;font-size:clamp(18px,2vw,28px)}
.care-display{width:100%;height:100%}
.care-display>.level-medal{position:absolute;top:8px;right:12px;z-index:1;margin:0;padding:3px 10px;border-radius:20px;background:#fffdf5e8;font-size:20px}
.care-portrait>.xp{width:100%;margin:0;height:15px}
.care-portrait>p{margin:0;justify-self:center;font-size:14px}
.care-portrait .party-strip{margin:0;gap:8px;min-height:0;padding:4px}
.care-portrait .party-strip button{min-width:90px;padding:5px;height:auto}
.care-portrait .party-strip .monster-art{width:65px;height:54px;min-height:0;max-height:none;scale:1}
.care-portrait .party-strip strong,.care-portrait .party-strip small{display:block;line-height:1.25;font-size:13px}
.dex-grid,.dex-detail{background:#fffaf0fa}
.dex-card{background:linear-gradient(#f0f6f2,#fffdf7);border:2px solid #c9ceca;color:#113c5b}
.dex-card[aria-pressed=true]{background:linear-gradient(#e5f5f5,#fff1b8);border-color:#eab426}
.dex-display{height:clamp(120px,27svh,310px);margin:8px 0 14px}
.dex-detail .dex-display>.monster-art{width:94%;height:94%;max-height:none}
.battle-stage .combat-figure>.framed-monster{scale:1}
.fighter.right>.combat-figure>.framed-monster{transform:scaleX(-1)}
@media(min-width:851px){.creator-page>.panel>.avatar-editor{height:clamp(280px,calc(100svh - 300px),540px)}}
@media(min-width:851px) and (max-height:700px){
 .modal:has(.avatar-editor){padding:16px 20px}
 .modal .avatar-editor{height:calc(100svh - 190px);min-height:280px}
 .avatar-editor,.creator-page>.panel>.avatar-editor{gap:12px;grid-template-columns:minmax(180px,.65fr) minmax(0,1.5fr)}
 .avatar-options{padding:8px;gap:2px}
 .avatar-options fieldset{padding:2px 0;grid-template-columns:65px minmax(0,1fr)}
 .avatar-choices button{width:54px;min-width:54px;height:62px}
 .avatar-choices .choice-image{width:46px;height:42px}
 .avatar-save-bar{margin-top:8px}
 .care-portrait .party-strip .monster-art{height:43px}
 .care-portrait>h2 button{font-size:13px;padding:5px 8px}
 .dex-display{height:23svh;margin:5px 0}
}
@media(max-width:850px){
 .avatar-editor,.creator-page>.panel>.avatar-editor{grid-template-columns:1fr;height:auto}
 .avatar-editor #avatar-preview,.creator-page #avatar-preview{height:260px;min-height:260px}
 .modal .avatar-editor{height:auto}
 .avatar-options fieldset{grid-template-columns:65px minmax(0,1fr)}
 .avatar-choices button{width:54px;min-width:54px;height:64px}
 .avatar-choices .choice-image{width:46px;height:44px}
 .avatar-save-bar{position:sticky;bottom:-16px;background:#fffaf5;padding:8px 0;gap:10px}
 .avatar-save-bar button{min-width:90px}
 .care-portrait{min-height:420px;grid-template-rows:auto minmax(200px,1fr) auto auto auto}
}
@media(min-width:851px){
 .creator-page>.panel>.avatar-editor{width:100%;height:clamp(280px,calc(100svh - 250px),540px)}
}
@media(min-width:851px) and (max-height:700px){
 .creator-page .avatar-hint{display:none}
 .creator-page>.panel>.avatar-editor{grid-template-columns:minmax(180px,.65fr) minmax(0,1.5fr)}
 .creator-page .avatar-options{padding:8px;gap:2px}
 .creator-page .avatar-options fieldset{grid-template-columns:65px minmax(0,1fr);padding:2px 0}
}
@media(min-width:851px) and (max-height:700px){
 .creator-page>.panel>.avatar-editor{height:clamp(280px,calc(100svh - 270px),430px)}
 .creator-page .avatar-choices button{height:56px}
 .creator-page .avatar-choices .choice-image{height:36px}
 .creator-page .avatar-choices .avatar-swatch{height:32px}
}
.player-sound-options{display:grid;gap:14px}
.player-sound-channel{padding:12px 16px;border:1px solid #d6c28f;background:#fffdf4;border-radius:16px}
.player-sound-channel label{margin:8px 0;color:#173d60}
.player-sound-channel .sound-switch{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:800}
.sound-switch input{width:24px;height:24px;accent-color:#1686c2;cursor:pointer}
.sound-switch span{margin-left:auto;color:#14567d;font-size:15px}
.player-sound-channel input[type=range]{display:block;width:100%;accent-color:#1686c2;cursor:pointer}
.player-sound-channel output{float:right}
/* Tournament entry uses real tabs and one action for each entry role. */
.tournament-tabs{display:flex;gap:6px;border-bottom:3px solid #d1ad61;margin:0 0 18px;padding:0}
.tournament-tabs [role=tab]{flex:1;border-radius:18px 18px 0 0;box-shadow:none;border:2px solid #a8bdca;border-bottom:0;background:#e5eef2;color:#34526b;padding:12px 16px;min-height:48px}
.tournament-tabs [aria-selected=true]{background:#123f69;color:white;border-color:#d1ad61;position:relative}
.tournament-tabs [aria-selected=true]:after{content:'';position:absolute;bottom:-3px;left:0;right:0;height:4px;background:#123f69}
.cup-entry-actions{display:flex;gap:14px;margin-top:14px}
.cup-entry-actions>button{flex:1}
.shell[data-screen=cup-entry] .entry-screen{overflow:auto}
.tournament-bracket{position:relative;min-width:220px;flex:none}
.bracket-lines{position:absolute;inset:0;pointer-events:none;overflow:visible}
.bracket-column{position:absolute;top:0;width:220px;height:100%}
.bracket-column>h3{text-align:center;color:#fff3c6;margin:0;padding:6px}
.bracket-match{position:absolute;left:0;width:220px;height:74px;background:#fffaf0;border:2px solid #d2b46b;border-radius:12px;box-shadow:0 3px 8px #071d3f45;color:#163c5b;padding:4px 46px 4px 8px}
.bracket-player{display:flex;justify-content:space-between;align-items:center;gap:3px;height:31px;font-size:14px;white-space:nowrap}
.bracket-player>span{overflow:hidden;text-overflow:ellipsis}
.bracket-player+.bracket-player{border-top:1px solid #dccba3}
.bracket-player.winner{color:#8a5105;font-weight:900}
.bracket-player b{font-size:10px;background:#ffcf3e;color:#6a3608;border-radius:4px;padding:2px}
.bracket-open{position:absolute;right:4px;top:15px;padding:5px 4px;font-size:11px;min-height:38px;background:#e5f0f7;color:#174970;border:1px solid #b5c8d3;box-shadow:none}
.capture-art>.monster-art{width:min(78%,320px);height:min(78%,320px);max-width:320px;max-height:320px}
.capture-art>.capture-glow{width:85%;height:85%;margin:auto}
.ime-warning{font-size:13px;line-height:1.5;background:#fff0bd;color:#75360b;border:1px solid #dbb95e;border-radius:8px;padding:5px 10px;margin:5px 0}
.ime-warning[hidden]{display:none}
@media(max-width:600px){.cup-entry-actions{flex-direction:column}.tournament-tabs [role=tab]{padding:10px 5px;font-size:14px}.capture-art>.monster-art{max-width:220px;max-height:220px}}
.tournament-heading{align-items:center;margin-bottom:12px}
.tournament-heading h1{font-size:clamp(22px,3vw,36px);margin:0}
.tournament-progress{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;margin-bottom:12px}
.current-match-names{display:block;margin-top:4px;font-size:15px}
.tournament-participants,.tournament-management{background:#fff9e9ed;color:#143a5a;border-radius:12px;margin-top:10px;padding:10px 16px}
.tournament-participants summary,.tournament-management summary{cursor:pointer;font-weight:800}
.tournament-participants .entries{margin-top:12px}
.tournament-champion{background:#fff0b9;color:#874c00;text-align:center;border-radius:12px;padding:12px;font-size:25px;font-weight:900;margin-bottom:12px}
.shell[data-screen=tournament] .bracket{display:block;max-height:calc(100svh - 265px);min-height:160px;overflow:auto;padding:12px}
@media(max-width:700px){.tournament-progress{flex-direction:column;align-items:stretch}.tournament-heading .actions{flex-wrap:wrap}}
/* Keep account navigation distinct from the form's primary action. */
.account-screen>form{margin-bottom:20px}
.account-screen>button.secondary.wide{margin:0 0 20px}
.account-screen>button.quiet{display:block;margin-top:4px;padding:12px 18px;min-height:44px}
.account-screen .account-error:empty{min-height:12px;margin:8px 0}
.capture-choice-art>.monster-art{inset:0 0 58px;margin:auto;width:min(70%,320px);height:min(calc(100% - 68px),320px);max-height:320px;max-width:320px}
.finishing-attack .hp>span{transition:width .55s ease-out}
.fighter.defeated .combat-figure>.monster-art{animation:monster-defeated .75s ease-in forwards}
@keyframes monster-defeated{0%{opacity:1;translate:0 0;filter:brightness(2)}25%{translate:-12px 3px;filter:brightness(1)}50%{translate:9px 8px}100%{opacity:.2;translate:0 30px;rotate:9deg;scale:.8}}
.solo-victory{text-align:center;max-width:850px;margin:auto}
.solo-victory .victory-partner .monster-art{width:min(45vw,260px);height:28svh}
.solo-victory>button{margin:10px 8px}
.evolution-stage{height:clamp(180px,34svh,340px);position:relative;isolation:isolate;overflow:hidden}
.evolution-before,.evolution-after{position:absolute;inset:0;display:grid;place-items:center}
.evolution-stage .monster-art{width:75%;height:90%;max-width:340px}
.evolution-before{animation:evolution-before 3.2s forwards}
.evolution-after{opacity:0;animation:evolution-after 3.2s forwards}
.evolution-ring{position:absolute;inset:10% 25%;border:8px solid #fff2aa;box-shadow:0 0 35px #a5f5ff,inset 0 0 35px #fff7a3;border-radius:50%;animation:evolution-ring 3.2s forwards}
.evolution-flash{position:absolute;inset:0;pointer-events:none;background:radial-gradient(white,#fff9c980,transparent 70%);opacity:0;animation:evolution-flash 3.2s forwards}
.evolution-sequence{text-align:center}
.evolution-details{visibility:hidden;animation:evolution-details 3.2s forwards}
.evolution-skip{position:absolute;bottom:20px;left:50%;translate:-50% 0;animation:evolution-hide-skip 3.2s forwards}
.evolution-sequence .evolution-values{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}
.evolution-values p{margin:6px 0}
.evolution-sequence .evolution-details h3{font-size:21px}
.evolution-complete .evolution-before{animation:none;opacity:0}
.evolution-complete .evolution-after{animation:none;opacity:1}
.evolution-complete .evolution-ring,.evolution-complete .evolution-flash,.evolution-complete .evolution-skip{display:none}
.evolution-complete .evolution-details{animation:none;visibility:visible}
@keyframes evolution-before{0%,15%{opacity:1}35%,58%{filter:brightness(0) drop-shadow(0 0 18px white);opacity:1;scale:1.05}72%,100%{opacity:0;scale:.5}}
@keyframes evolution-after{0%,65%{opacity:0;scale:.6;filter:brightness(3)}85%,100%{opacity:1;scale:1;filter:brightness(1)}}
@keyframes evolution-ring{0%{opacity:0;scale:.4}30%{opacity:1;scale:1;rotate:120deg}65%{opacity:1;scale:.7;rotate:240deg}100%{opacity:0;scale:1.5;rotate:360deg}}
@keyframes evolution-flash{0%,50%{opacity:0}65%{opacity:1}100%{opacity:0}}
@keyframes evolution-details{0%,90%{visibility:hidden}100%{visibility:visible}}
@keyframes evolution-hide-skip{0%,90%{visibility:visible}100%{visibility:hidden}}
@media(max-width:850px){.capture-choice-art>.monster-art{max-height:210px;max-width:210px}.evolution-sequence .evolution-values{gap:12px}}
@media(prefers-reduced-motion:reduce){.evolution-before,.evolution-ring,.evolution-flash,.evolution-skip{display:none}.evolution-after{opacity:1}.evolution-details{visibility:visible}}
.final-battle-result{animation:result-after-hit 1.5s ease-out both}
@keyframes result-after-hit{0%,80%{opacity:0;visibility:hidden;translate:0 8px}100%{opacity:1;visibility:visible;translate:0 0}}
.capture-art>.monster-art{width:min(68%,260px);height:min(68%,260px);max-width:260px;max-height:260px}
@media(min-width:851px) and (max-height:700px){
 .account-screen>form{margin-bottom:16px}
 .account-screen>button.secondary.wide{margin-bottom:16px}
 .area-detail #course-length{padding:5px;min-height:34px;height:34px}
 .area-detail label[for=course-length]{margin:5px 0 3px}
 .area-detail #course-length~.note{font-size:11px;line-height:1.35;margin:5px 0}
 .area-detail .wide{margin-top:5px;min-height:38px;padding:6px}
 .evolution-stage{height:24svh;min-height:140px}
 .evolution-sequence h2{font-size:30px}
 .evolution-sequence .evolution-details h3{font-size:18px;line-height:1.4}
 .evolution-sequence .evolution-values{gap:16px;font-size:13px}
}
.explore-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.explore-settings>div{min-width:0}
@media(min-width:851px) and (max-height:800px){
 .area-detail>div:last-child h2{font-size:24px;margin:0 0 5px}
 .area-detail>div:last-child>p{margin:4px 0;font-size:13px;line-height:1.4}
 .area-detail>div:last-child h3{font-size:16px;margin:6px 0 3px}
 .area-detail .wild-list{height:66px;margin:0;gap:5px}
 .area-detail .wild-list .monster-art{height:60px;width:60px}
 .area-detail .explore-settings label{font-size:12px;margin:6px 0 4px}
 .area-detail .explore-settings select{padding:5px;min-height:34px;height:34px;font-size:13px}
 .area-detail .explore-settings~.note{font-size:11px;line-height:1.4;margin:6px 0}
 .area-detail .wide{margin-top:6px;min-height:38px;padding:6px}
}
@media(max-width:600px){.explore-settings{grid-template-columns:1fr}}
/* Tournament code is an invitation, independent of site visibility. */
.tournament-code-banner{display:flex;align-items:center;justify-content:center;gap:24px;padding:12px 20px;margin:0 0 12px;border:3px solid #d4ad54;border-radius:20px;background:linear-gradient(120deg,#fffdf2,#fff0bf);box-shadow:0 3px 0 #8e692d44;color:#113c64}
.tournament-code-banner strong{font-size:19px}
.tournament-code-banner p{font-size:13px;margin:3px 0;color:#34516c}
.tournament-code{display:block;font-size:clamp(30px,4.5vw,62px);font-weight:950;letter-spacing:.1em;color:#103c68;line-height:1.2;overflow-wrap:anywhere;text-align:center}
.your-match{display:block;color:#a14805;font-size:22px;margin-bottom:3px}
.tournament-progress{flex-wrap:wrap}
.admission-count{flex-basis:100%;margin:0;font-size:14px;color:#264e70}
.tournament-progress:has(.your-match){border-color:#f2c62e;box-shadow:0 0 0 3px #fff1a7}
.rental-badge{display:inline-block;font-size:11px;font-weight:800;line-height:1.4;background:#e7eef6;color:#21517d;border:1px solid #a5bfd4;border-radius:6px;padding:1px 5px;margin:2px 4px}
.entry-party:has(.rental-note){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px}
.entry-party .rental-note{grid-column:1/-1;margin:0;font-size:12px;line-height:1.4;color:#31536b}
.online-arena:has(.match-outcome){height:100%;display:flex;flex-direction:column;background:linear-gradient(#0c2d51a6,#152d4dbb),url('/assets/backgrounds/arena-battle.png') center/cover}
#room-content:has(.match-outcome){flex:1;min-height:0;overflow:auto}
.match-outcome{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;gap:12px;min-height:100%;padding:16px 24px;border:3px solid #83b3dc;border-radius:24px;background:linear-gradient(135deg,#10325df5,#112644f5);color:#fff}
.match-outcome.outcome-win{border-color:#ffe17e;background:radial-gradient(ellipse at 50% 10%,#895b2099,transparent 65%),linear-gradient(135deg,#153d65f5,#162f50f5)}
.outcome-win:before{content:'✦　✧　　　✦　✧　　　✦';position:absolute;inset:10px 3% auto;color:#ffdf6d;letter-spacing:3vw;text-align:center;pointer-events:none;z-index:-1;font-size:22px}
.outcome-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,1fr) minmax(0,1fr);align-items:center;gap:12px}
.outcome-heading{text-align:center}
.match-outcome .outcome-title{font-size:clamp(54px,7.5vw,100px);line-height:1;margin:6px 0;color:#ffe491;letter-spacing:.04em;text-shadow:0 4px 0 #975016,0 0 25px #f5c45366;font-weight:950}
.match-outcome.outcome-lose .outcome-title{color:#d9eaff;text-shadow:0 4px 0 #31507c,0 0 24px #82bdff55}
.match-outcome.outcome-draw .outcome-title{font-size:clamp(44px,6vw,80px);color:#e2d9ff;text-shadow:0 4px #584777}
.match-outcome .outcome-heading h2{color:white;font-size:clamp(17px,2vw,26px);margin:5px 0}
.match-outcome .outcome-heading p{color:#ffedb7;font-size:15px;line-height:1.5;margin:4px 0}
.result-monster{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;text-align:center}
.result-monster>.monster-art{width:100%;height:clamp(95px,20svh,190px);max-width:260px;filter:drop-shadow(0 0 12px #fff1a555)}
.result-monster.result-loser>.monster-art{filter:grayscale(.4);opacity:.7;translate:0 6px;rotate:-4deg}
.result-monster>strong{color:white;font-size:16px;overflow-wrap:anywhere}
.outcome-badge{font-size:20px;font-weight:950;padding:1px 18px;border-radius:10px}
.outcome-badge.winner{background:#ffe084;color:#783d04}
.outcome-badge.loser{background:#d4e2f4;color:#24436a}
.result-comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.result-scorecard{padding:10px 16px;background:#ffffff0e;border:1px solid #87a8c7;border-radius:14px;min-width:0}
.match-outcome .result-scorecard h3{color:white;font-size:17px;margin:0 0 7px;border-bottom:1px solid #7995b166;padding-bottom:4px}
.result-scorecard dl{margin:0;display:grid;gap:4px}
.result-scorecard dl>div{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.result-scorecard dt{color:#cbdff3}
.result-scorecard dd{margin:0;color:white;font-weight:800}
.match-outcome footer{text-align:center;margin:2px 0 0}
.match-outcome footer button{min-width:min(320px,90%);font-size:20px}
.match-outcome .eyebrow{color:#d6e7fa}
.result-reason{color:#e2edf7;text-align:center;margin:0}
.result-resolving{text-align:center;font-size:28px;color:white;background:#15395dd9;padding:16px}
.shell[data-screen=tournament] .bracket{max-height:calc(100svh - 370px)}
@media(min-width:851px) and (max-height:700px){
 .match-outcome{padding:10px 18px;gap:8px}
 .result-monster>.monster-art{height:95px}
 .match-outcome .outcome-title{font-size:64px}
 .result-scorecard{padding:7px 12px}
 .result-scorecard dl>div{font-size:12px}
 .tournament-code-banner{padding:8px 14px;gap:16px}
 .tournament-code{font-size:40px}
 .entry-party-art figure{margin:0 5px}
}
@media(max-width:700px){
 .tournament-code-banner{flex-wrap:wrap;gap:8px;text-align:center}
 .tournament-code-banner>div{width:100%}
 .tournament-code{font-size:32px}
 .entry-party:has(.rental-note){grid-template-columns:1fr}
 .match-outcome{padding:12px;gap:12px}
 .outcome-hero{grid-template-columns:1fr 1fr;gap:8px}
 .outcome-heading{grid-column:1/-1;grid-row:1}
 .result-monster>.monster-art{height:100px}
 .result-comparison{gap:8px}
 .result-scorecard{padding:8px}
 .result-scorecard dl>div{flex-direction:column;gap:0}
}
.online-arena>.arena-head h1,.online-arena>.arena-head .note{color:#fff}
/* Collection browsing and entry-team selection have separate controls. */
.roster-footer{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:16px;margin-top:14px;border-radius:18px;background:#123e5bea;color:white;flex-wrap:wrap}.roster-footer p{margin-right:auto}.team-pick-slots{display:flex;gap:10px;flex-wrap:wrap;padding:12px;border-radius:14px;background:#eff4ef}.team-pick-slots>div{flex:1;min-width:130px;display:flex;align-items:center;flex-direction:column;gap:5px}.team-pick-slots .monster-art{width:90px;height:80px}.team-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px;max-height:33vh;overflow:auto;margin-top:15px;padding:4px}.team-pick-grid button{display:flex;flex-direction:column;align-items:center;gap:5px}.team-pick-grid .monster-art{width:85px;height:70px}.team-pick-grid [aria-pressed=true]{outline:3px solid #ffc532;background:#fff5cd}.avatar-v61{overflow:visible}.avatar-options .avatar-choices{flex-wrap:wrap}.avatar-options .choice-image .avatar-v61{width:100%;height:100%}.key-strike,.spell{display:none!important}.word-complete .fighter:first-child .combat-figure>.monster-art{animation:word-glow .7s ease-out!important}@keyframes word-glow{0%,100%{filter:none}35%{filter:brightness(1.5) drop-shadow(0 0 20px #fff3a3)}}.battle-stage .combat-figure.key-pulse>.monster-art{animation:key-glow .15s ease-out}@keyframes key-glow{50%{filter:brightness(1.35) drop-shadow(0 0 9px #ffe697)}}
@media(max-height:700px){.avatar-editor{gap:12px}.avatar-options .avatar-choices button{min-height:54px}.avatar-options fieldset{padding:6px}.team-pick-grid{max-height:29vh}.roster-footer{padding:10px}}
.combat-figure>.reaction-pose{position:absolute;left:50%;top:0;transform:translateX(-50%);opacity:0;animation:receive-hit 2s both}.combat-figure>.attack-then-hurt{animation:attack-before-hit 2s both}@keyframes receive-hit{0%,24%{opacity:0}25%,85%{opacity:1}100%{opacity:0}}@keyframes attack-before-hit{0%,24%{opacity:1}25%,85%{opacity:0}100%{opacity:1}}@media(prefers-reduced-motion:reduce){.combat-figure>.reaction-pose{animation:none;display:none}.combat-figure>.attack-then-hurt{animation:none}}
.roster-footer p{color:#fff}.avatar-options .choice-avatar{overflow:hidden!important}.avatar-options .choice-image{display:block;flex:none}.avatar-options .avatar-choices button small{display:block;position:static;font-size:10px;line-height:1.15;max-width:100%;white-space:normal;overflow-wrap:anywhere}.modal:has(.team-picker){overflow:hidden;max-height:92svh}.team-picker{display:flex;flex-direction:column;max-height:calc(92svh - 65px);gap:8px}.team-picker>h2,.team-picker>p{margin:0 0 4px}.team-pick-slots{flex-shrink:0;padding:8px}.team-pick-slots>div{display:grid;grid-template-columns:54px 1fr auto;grid-template-rows:auto auto;align-items:center;gap:4px}.team-pick-slots>div>b{grid-column:1}.team-pick-slots>div>strong{grid-column:2/4}.team-pick-slots .monster-art{width:52px;height:48px;grid-column:1}.team-pick-slots button{font-size:12px;padding:7px 10px;min-height:34px}.team-pick-grid{min-height:80px;flex:1;max-height:38vh;overflow:auto;margin:0}.team-picker>footer{flex-shrink:0;margin:0;padding-top:8px;border-top:1px solid #d1c49f;background:#fffcf1}
.avatar-options .avatar-choices .avatar-swatch{width:34px;min-width:34px;height:34px;min-height:34px;aspect-ratio:1;border-radius:50%;padding:0}.fighter:not(.right) .strike-flight img{scale:-1 1}
/* v21: corner HUD, progression receipts, and rare encounters */
.arena .battle-stage{height:clamp(265px,43svh,500px);grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:8px;padding:8px 16px 0}
.arena .battle-stage .fighter{display:block;position:relative}
.arena .battle-stage .combat-hud{position:absolute;top:0;left:0;width:min(82%,350px);max-width:350px;height:64px;padding:4px 10px;border-radius:12px;z-index:3}
.arena .battle-stage .right .combat-hud{left:auto;right:0}
.arena .battle-stage .combat-player{height:16px;font-size:12px;line-height:16px;gap:5px}
.arena .battle-stage .combat-player .avatar{width:16px;height:18px}
.arena .battle-stage .combat-player>span{font-size:11px}
.arena .battle-stage .combat-name{height:22px;gap:6px;align-items:center}
.arena .battle-stage .combat-name h2{display:flex;align-items:center;gap:6px;font-size:18px;line-height:22px;margin:0;min-width:0;white-space:nowrap}
.arena .battle-stage .combat-name>span{font-size:12px;white-space:nowrap}
.arena .battle-stage .combat-hud .hp{height:13px;margin:2px 0 0}
.arena .battle-stage .combat-hud .hptext{font-size:11px;line-height:13px;bottom:5px;right:14px}
.arena .battle-stage .combat-figure{position:absolute;inset:65px 0 3px;overflow:visible}
.arena .battle-stage .combat-figure>.framed-monster{inset:auto 0 0;scale:1;width:84%;height:78%;max-height:100%;transform-origin:50% 100%}
.arena .battle-stage .rarity-rare .combat-figure>.framed-monster{width:95%;height:90%}
.arena .battle-stage .rarity-legendary .combat-figure>.framed-monster,.arena .battle-stage .rarity-ultra .combat-figure>.framed-monster{width:100%;height:100%;filter:drop-shadow(0 4px 12px #ffe39a55)}
.arena .battle-stage .combat-figure>.reaction-pose{inset:auto 0 0;transform:none}
.arena .battle-stage .right .combat-figure>.framed-monster{transform:scaleX(-1)}
.arena .battle-stage .damage{top:16%;left:50%}
.rarity-tags{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;vertical-align:middle}
.rarity-badge{display:inline-block;white-space:nowrap;font-size:14px;line-height:1.5;font-weight:900;border:1px solid currentColor;border-radius:7px;padding:1px 7px;color:#315159;background:#edf4ef}
.badge-rare{color:#edf8ff;background:#1554ad;border-color:#8ee6ff}.badge-legendary{color:#512a00;background:linear-gradient(#fff4ac,#ffc044);border-color:#a76113}.badge-ultra{color:white;background:linear-gradient(110deg,#5b208a,#304cb4,#b83288);border-color:#f4dc91}.badge-shiny{color:#632178;background:#ffeefc;border-color:#e4a3e7}
.combat-name .rarity-badge{font-size:10px;padding:0 4px}.party-strip .rarity-badge{font-size:10px;padding:0 3px}
.growth-receipt{margin:14px auto;padding:14px 20px;max-width:850px;border:2px solid #dfb76e;border-radius:18px;background:#fffbed;color:#123b65;text-align:left;box-shadow:0 3px 9px #08253f20}
.growth-heading{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.growth-heading b{color:#755104}.growth-receipt progress{display:block;width:100%;height:19px;margin:10px 0;accent-color:#55b92b}.growth-receipt p{margin:0;font-size:15px;color:#315975}
.growth-receipt.level-up{border-color:#ffba21;background:linear-gradient(110deg,#ffefb0,#fffdf4);box-shadow:0 0 23px #ffd06b80}
.growth-result{text-align:center;max-width:650px;margin:auto}.growth-result h2{color:#123b65}.growth-monster .monster-art{width:100%;height:210px}.growth-result.level-up .growth-monster{animation:level-bloom 1.4s ease-out both}.growth-result.level-up h2{font-size:clamp(28px,4vw,46px);color:#a85b00;text-shadow:0 2px #ffe59e}
@keyframes level-bloom{0%{transform:scale(.85);filter:brightness(1)}45%{transform:scale(1.07);filter:brightness(1.5) drop-shadow(0 0 25px #ffd340)}100%{transform:scale(1);filter:brightness(1.08) drop-shadow(0 0 12px #ffcc55)}}
.mission-screen{max-width:820px;margin:auto}.mission-list{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.mission-list li{border:1px solid #cbb580;border-radius:12px;padding:12px;background:#fffdf5}.mission-list p{margin:5px 0 0;font-size:14px}.mission-done{border-color:#6db547!important;background:#eff9e9!important}.mission-done strong{color:#297120}.guarantee-stock{padding:14px;border-radius:12px;background:#e8f3ff;margin:14px 0}.guarantee-stock p{margin:6px 0}.mission-screen details{margin:15px 0}.mission-screen summary{cursor:pointer;font-weight:800}
.encounter{position:relative;isolation:isolate;overflow:hidden}.encounter-enemy{position:relative;z-index:1}.encounter-banner{min-height:24px}.encounter-banner .rarity-badge{font-size:clamp(20px,3vw,32px);padding:3px 18px}
.encounter-rare .encounter-enemy::before,.encounter-legendary .encounter-enemy::before,.encounter-ultra .encounter-enemy::before,.encounter-shiny .encounter-enemy::after{content:"";position:absolute;z-index:-1;inset:7% 0 10%;border-radius:50%;pointer-events:none;animation:encounter-aura 1.6s ease-out both}
.encounter-rare .encounter-enemy::before{background:radial-gradient(ellipse,#97eaff90,transparent 67%);box-shadow:inset 0 0 50px #6abaff80}
.encounter-legendary .encounter-enemy::before{background:repeating-conic-gradient(from 10deg,#ffe78a00 0deg 18deg,#ffd35b77 20deg 23deg,#ffe78a00 25deg 40deg);filter:drop-shadow(0 0 15px #ffcc44)}
.encounter-ultra .encounter-enemy::before{background:conic-gradient(#79f9ff77,#ff8ff777,#fff18877,#a8ffcc77,#79f9ff77);box-shadow:0 0 45px #d7b0ff,inset 0 0 55px #ffffee;animation:ultra-reveal 2s ease-out both}
.encounter-shiny .encounter-enemy::after{inset:5% -3%;border:3px solid #ffc8ff;box-shadow:0 0 28px #ff9bf2,inset 0 0 28px #fff8cf;background:radial-gradient(ellipse,transparent 55%,#fff1fc88 70%,transparent 73%);animation:shiny-reveal 1.8s ease-out both}
.encounter-legendary .encounter-enemy>.monster-art,.encounter-ultra .encounter-enemy>.monster-art{height:clamp(250px,38svh,430px);width:100%;max-height:none}
@keyframes encounter-aura{0%{opacity:0;transform:scale(.3) rotate(-15deg)}60%{opacity:1;transform:scale(1.08) rotate(2deg)}100%{opacity:1;transform:scale(1)}}
@keyframes ultra-reveal{0%{opacity:0;transform:scale(.2) rotate(-80deg)}65%{opacity:1;transform:scale(1.1) rotate(12deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes shiny-reveal{0%{opacity:0;transform:scale(1.3) rotate(20deg)}55%{opacity:1;transform:scale(.95)}100%{opacity:1;transform:scale(1)}}
@media(min-width:851px) and (max-height:700px){.arena .battle-stage{height:36svh;min-height:220px}.arena .battle-stage .combat-hud{height:58px}.arena .battle-stage .combat-figure{top:59px}.arena .battle-stage .combat-name h2{font-size:16px}.arena .battle-stage .combat-name{height:18px}.growth-monster .monster-art{height:130px}.growth-receipt{padding:10px 15px;margin:8px auto}.growth-result h2{margin:8px 0}}
@media(max-width:700px){.arena .battle-stage{height:300px;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);padding:6px}.arena .battle-stage .combat-hud{width:100%;padding:5px;height:74px}.arena .battle-stage .combat-player{font-size:10px}.arena .battle-stage .combat-player>span{display:none}.arena .battle-stage .combat-name{height:31px;align-items:flex-start}.arena .battle-stage .combat-name h2{font-size:14px;flex-wrap:wrap;line-height:16px;gap:2px}.arena .battle-stage .combat-name>span{font-size:10px}.arena .battle-stage .combat-figure{top:78px}.arena .battle-stage .combat-hud .hptext{right:9px;font-size:10px}.combat-name .rarity-tags{max-width:100%}.mission-list{grid-template-columns:1fr}.growth-receipt{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.growth-result .growth-monster,.encounter-enemy::before,.encounter-enemy::after{animation:none!important}}
.modal:has(.mission-screen){width:min(980px,94vw)}.modal .mission-screen .mission-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modal .mission-screen{max-height:none}.modal .mission-screen .mission-list>li{min-width:0}@media(max-width:700px){.modal .mission-screen .mission-list{grid-template-columns:1fr}}
.solo-defeat{text-align:center;max-width:1100px;margin:auto}.solo-defeat>.eyebrow{color:#585895;font-size:clamp(38px,7vw,72px);text-shadow:0 2px white}.solo-defeat>h1{font-size:clamp(24px,3.8vw,42px);color:#183c64}.retry-opponent .monster-art{height:clamp(140px,23svh,250px);width:min(100%,500px)}.retry-opponent h2{margin:5px}.solo-defeat footer{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}.solo-defeat footer button{min-height:48px}
.public-browser{margin:24px 0;padding:20px;border:1px solid #b0c5d5;border-radius:18px;background:#f1f7f9}.discovery-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.discovery-controls>label:first-child{flex:1;min-width:180px;margin:0}.discovery-controls .watch-filter{display:flex;align-items:center;gap:8px;width:100%;font-size:14px}.discovery-controls input[type=checkbox]{width:20px;height:20px;min-height:20px;padding:0;accent-color:#126dc3}.public-list{display:grid;gap:12px;margin-top:16px}.public-entry{display:grid;grid-template-columns:85px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px;background:#fffdf4;border:1px solid #d5c18e;border-radius:16px}.public-entry .monster-art{width:80px;height:80px}.public-entry h3{margin:6px 0;font-size:21px}.public-entry p{margin:3px 0;font-size:14px}.public-entry-actions{display:flex;gap:8px;flex-direction:column}.public-entry-actions button{font-size:14px;min-height:42px}.public-empty{padding:20px;color:#33516a}.room-entry-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.room-entry-tabs [aria-selected=true]{background:linear-gradient(#fff8b7,#ffb723);outline:2px solid #c18b26}.public-browser button{white-space:nowrap}@media(max-width:700px){.room-entry-tabs{gap:6px}.room-entry-tabs button{font-size:14px;padding:10px 7px}.public-browser{padding:12px}.public-entry{grid-template-columns:60px minmax(0,1fr)}.public-entry .monster-art{width:60px;height:60px}.public-entry-actions{grid-column:1/-1;flex-direction:row}.public-entry-actions button{flex:1}}
.room-entry-tabs [role=tab]:not([aria-selected=true]){background:linear-gradient(#e4f5ff,#afdbef);color:#174d76;outline:none}
.game-admin-heading{margin-bottom:18px}.game-admin-heading .actions{gap:12px}.visual-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.visual-preview-panel{position:sticky;top:14px;min-width:0}.visual-preview-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.visual-preview-choices label{font-size:14px;margin:0}.visual-preview-choices select{padding:7px 12px;min-height:40px}.visual-preview-choices .inline-check{display:flex;align-items:center;gap:6px}.inline-check input[type=checkbox]{width:20px;min-height:20px;height:20px}.visual-adjustments label{display:block}.visual-field{padding:14px 0;border-bottom:1px solid #d2c4a5;display:grid!important;grid-template-columns:1fr 100px;gap:8px;align-items:center}.visual-field>strong{grid-column:1/-1}.visual-field>input[type=range]{grid-column:1/-1;width:100%;height:30px;min-height:30px;padding:0;accent-color:#147bc2}.visual-field>input[type=number]{grid-column:1;min-height:42px;height:42px;padding:6px 12px}.visual-field>button{grid-column:2;font-size:14px;padding:8px}.visual-adjustments{position:sticky;top:14px}#visual-preview{position:relative;aspect-ratio:16/9;width:100%;overflow:hidden;border:2px solid #c6a461;border-radius:14px;background:#d9ebf2}#visual-canvas{width:1280px;height:720px;position:absolute;left:0;top:0;transform-origin:top left;background:linear-gradient(#80b8ee20,#c1d2e550),url('/assets/backgrounds/home-base.png'),url('/title-world.jpg');background-size:cover;background-position:center;overflow:hidden;color:#123e67}#visual-canvas .visual-avatar{position:absolute;left:440px;top:30px;width:400px;height:660px;display:grid;place-items:center}#visual-canvas .visual-avatar>.avatar-v61{width:400px;height:660px;max-height:none}#visual-canvas .visual-avatar.head-zoom{left:250px;top:20px;width:780px;height:680px}#visual-canvas .visual-avatar.head-zoom>.avatar-v61{width:780px;height:680px}#visual-canvas .camp-party{width:100%;height:100%;position:relative;padding:30px}#visual-canvas .camp-party>div{display:flex;justify-content:center;align-items:end;width:100%;height:570px;gap:40px}#visual-canvas .camp-party .avatar-v61{width:300px;height:540px;max-height:none}#visual-canvas .camp-party .monster-art{width:400px;height:390px;max-height:none}#visual-canvas .camp-party h2{position:relative;margin:20px;text-align:center}#visual-canvas .encounter{height:100%;padding:20px;background:none;box-shadow:none;border:0}#visual-canvas .area-detail{height:100%;display:grid;grid-template-columns:1fr 1fr;align-items:center}#visual-canvas .field-partner{height:610px;display:flex;align-items:end;justify-content:center;gap:0}#visual-canvas .field-partner .avatar-v61{width:260px;height:520px;max-height:none}#visual-canvas .field-partner .monster-art{width:300px;height:330px;max-height:none}#visual-canvas .encounter-enemy>.monster-art{width:580px;height:530px;max-height:none}#visual-canvas .preview-battle{height:100%;border:0;background:linear-gradient(#23345620,#153a4c40),url('/assets/backgrounds/arena-battle.png') center/cover}#visual-canvas .preview-battle .battle-stage{height:450px!important;min-height:0}#visual-canvas .preview-battle .typing{margin:15px;padding:30px;text-align:center;background:#fff8e7;color:#123e67}#visual-canvas .preview-battle .typing h2{font-size:38px}#visual-canvas .preview-battle .typing p{font-size:28px}#visual-canvas .capture-choice{padding:28px;height:100%}#visual-canvas .capture-choice>h1{font-size:42px}#visual-canvas .capture-choice-layout{height:540px}#visual-canvas .capture-choice-art>.monster-art{width:500px;height:430px;max-height:none}#visual-canvas .capture-choice .panel{padding:20px}#visual-canvas .capture-choice button{display:block;margin:10px;width:90%}#visual-canvas .care-preview{text-align:center;padding:30px}#visual-canvas .care-display{width:650px;height:480px;margin:20px auto}#visual-canvas .care-display>.monster-art{width:100%;height:100%;max-height:none}.word-manager .admin-table td small{display:block;color:#52718b}.word-manager input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:#147bc2}.word-manager .word-roman{max-width:360px;overflow-wrap:anywhere;font-family:monospace}.word-search{display:flex;align-items:end;gap:12px;margin:16px 0}.word-search label{flex:1;margin:0}.word-search button{min-height:48px}#word-edit-form{max-width:760px;margin:auto}#word-edit-form input,#word-edit-form select{width:100%}#word-edit-form footer{margin-top:18px;gap:14px}#word-try-status{padding:12px;border-radius:10px;background:#e4f2fb;color:#123e67;overflow-wrap:anywhere}.modal:has(#word-edit-form){width:min(880px,94vw)}.admin-appbar .actions{flex-wrap:wrap;gap:12px}.admin-appbar a{font-size:14px}@media(max-width:1050px){.visual-admin-layout{grid-template-columns:1fr}.visual-preview-panel,.visual-adjustments{position:static}.visual-adjustments #visual-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.visual-preview-choices{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.visual-preview-choices{grid-template-columns:repeat(2,1fr)}.visual-adjustments #visual-fields{grid-template-columns:1fr}}
.game-admin-heading{padding:18px 24px}.game-admin-heading h1{font-size:32px;margin:0 0 8px}.game-admin-heading p{margin:6px 0;font-size:14px}.game-admin-heading .actions{margin-top:12px}.game-admin-heading button{font-size:14px;padding:10px 16px}.visual-preview-primary{display:flex;align-items:center;gap:18px;margin-bottom:12px}.visual-preview-primary label{margin:0;flex:1;font-size:14px}.visual-preview-primary select{padding:7px 12px;min-height:40px}.visual-preview-primary .inline-check{display:flex;align-items:center;gap:7px}.visual-appearance{margin-top:12px}.visual-appearance summary{font-weight:800;cursor:pointer;padding:6px}.visual-appearance .visual-preview-choices{margin-top:12px}
.title-credits{position:absolute;right:18px;bottom:12px;z-index:4;color:#fff;font-size:14px;text-shadow:0 1px 3px #082346;padding:7px 12px;background:#123b658c;border-radius:8px}.credits-page{min-height:100svh;background:linear-gradient(#0a315d50,#0a315d80),url('/title-world.jpg') center/cover fixed}.credits-panel{max-width:900px;margin:6vh auto;color:#173d61}.credits-panel h1{font-size:clamp(28px,4vw,42px)}.credits-panel article{padding:18px 0;border-top:1px solid #ccb67b}.credits-panel a{color:#125ba0}.credits-panel .note{margin:24px 0}


/* Size desktop scenes from the available area below the actual header. */
@media (min-width:851px) {
 #app:has(> main[data-screen]:not([data-screen^=admin])) {
  display:grid; grid-template-rows:auto minmax(0,1fr); height:100svh;
 }
 #app > :is(.shell,.camp)[data-screen]:not([data-screen^=admin]) {
  height:auto; min-height:0; overflow-x:hidden; overflow-y:auto;
 }
 #app > .camp {
  padding-block:clamp(10px,2svh,22px);
  grid-template-rows:minmax(min-content,1fr);
  align-items:center;
 }
 .camp > .camp-menu {gap:clamp(8px,1.2svh,14px);margin:0;}
 .camp > .camp-menu .camp-action {
  height:auto;min-height:clamp(58px,10.6svh,108px);
  padding:clamp(6px,1svh,13px) clamp(12px,2vw,26px);
 }
 .camp > .camp-menu .camp-action strong {font-size:clamp(23px,min(2.5vw,4.8svh),40px);line-height:1.1;}
 .camp > .camp-menu .camp-action small {font-size:clamp(13px,2svh,16px);line-height:1.25;margin-top:4px;}
 .camp > .camp-menu .game-icon {width:clamp(36px,6.5svh,64px);height:clamp(36px,6.5svh,64px);}
 .camp > .camp-party > div:first-child {height:clamp(180px,43svh,490px);}
 .camp > .camp-party h1 {padding-block:clamp(5px,1svh,10px);overflow-wrap:anywhere;}
 .camp > .camp-party .actions {justify-content:center;gap:8px;}
 .camp > .camp-party .actions button {padding:8px 12px;}

 .shell[data-screen=dex] {display:grid;grid-template-rows:auto minmax(0,1fr);gap:clamp(8px,1.5svh,16px);}
 .shell[data-screen=dex] > .heading {margin:0;}
 .shell[data-screen=dex] > .dex-layout {height:auto;min-height:0;gap:clamp(10px,2vw,22px);}
 .dex-layout > :is(.dex-grid,.dex-detail) {min-height:0;scrollbar-gutter:stable;}
 .dex-layout > .dex-detail {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:start;align-items:start;gap:12px;padding:clamp(12px,2svh,20px);}
 .dex-detail > h2 {grid-column:1/-1;margin:0;font-size:clamp(18px,3.4svh,28px);}
 .dex-detail > .dex-display {height:clamp(140px,31svh,300px);margin:0;}
 .dex-facts {min-width:0;}
 .dex-facts > p {margin:2px 0 8px;font-size:clamp(14px,2svh,17px);line-height:1.45;}
 .dex-facts .stat-row {padding:5px 0;}
 .dex-facts > h3 {margin:9px 0 3px;font-size:clamp(15px,2.2svh,19px);}
 .dex-facts .evolution-pair {gap:4px;}
 .dex-facts .evolution-pair .monster-art {height:clamp(46px,10svh,86px);}

 .shell:is([data-screen=match-entry],[data-screen=cup-entry]) .entry-screen {
  display:flex;flex-direction:column;gap:clamp(6px,1.2svh,14px);
  max-height:100%;padding:clamp(12px,2.5svh,26px) clamp(14px,3vw,38px);
  overflow:auto;
 }
 .entry-screen > h1,.entry-screen > .cup-tabs,.entry-screen > .note {margin:0;}
 .entry-screen > h1 {font-size:clamp(23px,4svh,36px);line-height:1.2;}
 .entry-screen > .cup-tabs button {min-height:clamp(38px,6svh,56px);padding:6px 9px;}
 .entry-screen :is(#room-form,#cup-form) {margin:0;min-height:0;}
 .entry-screen #room-form[data-mode=browse] {display:flex;flex-direction:column;}
 .entry-screen #room-form > .note {margin:4px 0;}
 .entry-screen #room-form:not([data-mode=browse]),.entry-screen #cup-form[data-mode=join] {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px clamp(12px,2.4vw,28px);align-items:start;
 }
 .entry-screen #room-form:not([data-mode=browse]) > .note {grid-column:1;grid-row:2;}
 .entry-screen #room-form:not([data-mode=browse]) > .entry-fields {grid-column:2;grid-row:1/3;}
 .entry-screen .entry-party {margin:2px 0;gap:6px;padding:6px 10px;}
 .entry-screen .entry-party-art .monster-art {height:clamp(45px,12svh,116px);}
 .entry-screen .entry-party button,.entry-fields button {font-size:clamp(14px,2.2svh,18px);padding:6px 10px;}
 .entry-screen .entry-fields label {margin:7px 0 3px;}
 .entry-screen .entry-fields :is(input,select) {height:clamp(34px,5.3svh,48px);min-height:0;padding:5px 9px;}
 .entry-fields .actions,.entry-fields .cup-entry-actions {margin-top:8px;gap:6px;flex-wrap:wrap;}
 .entry-screen .public-browser {display:flex;flex-direction:column;min-height:0;margin:5px 0 0;padding:clamp(9px,1.8svh,18px);}
 .entry-screen .public-browser h2 {margin:0 0 6px;font-size:clamp(17px,2.8svh,25px);}
 .entry-screen .discovery-controls {gap:5px 10px;}
 .entry-screen .discovery-controls .watch-filter {width:auto;margin:0;}
 .entry-screen .discovery-controls #public-query {height:clamp(34px,5.3svh,48px);min-height:0;}
 .entry-screen .discovery-controls > button {min-height:0;padding:7px 12px;}
 .entry-screen #public-results {overflow:auto;overscroll-behavior:contain;max-height:28svh;}
 .entry-screen .public-empty {padding:8px 0;margin:0;}
 .entry-screen .public-list {margin-top:8px;}
 .shell[data-screen=solo] :is(.solo-victory,.solo-defeat) {padding:clamp(10px,2svh,20px);}
 .shell[data-screen=solo] .victory-partner .monster-art {height:clamp(120px,29svh,300px);}
}
@media (min-width:851px) {
 #app > :is(.shell,.camp)[data-screen]:not([data-screen^=admin]) {
  align-self:stretch;
  height:100%;
 }
 .camp > .camp-party > .actions {height:auto;}
}
@media (min-width:851px) {
 .entry-screen #cup-form[data-mode=create] .entry-fields label {margin-block:4px 2px;}
 .entry-screen #cup-form[data-mode=create] .entry-fields :is(input,select) {height:clamp(32px,4.6svh,42px);}
 .entry-screen #cup-form[data-mode=create] .entry-party-art .monster-art {height:clamp(35px,7svh,68px);}
 .entry-screen #cup-form[data-mode=create] .entry-fields .note {margin:2px 0;}
 .shell[data-screen=roster] .roster-footer {margin-bottom:0;padding-bottom:4px;}
}

/* Finished preset labels stay legible in the compact creator. */
.avatar-options .avatar-choices button small{font-size:12px;line-height:1.2}
.avatar-options .avatar-choices button{min-height:74px}

.avatar-options .avatar-choices button:not(.avatar-swatch){width:84px;min-width:84px;height:86px}
.avatar-options .avatar-choices button small{font-size:14px;line-height:1.15}
.avatar-options .avatar-choices .choice-image{width:58px;height:50px}
@media(min-width:851px) and (max-height:800px){.creator-page>.panel>.avatar-editor{height:clamp(270px,calc(100svh - 330px),470px)}}

.avatar-options .avatar-choices button.avatar-swatch{background:var(--swatch)}
.avatar-hint{font-size:14px;line-height:1.5}

/* Shared world coordinates preserve species proportions and pose registration. */
.arena .battle-stage .fighter .combat-figure>.world-monster{width:100%;height:100%;max-height:100%;scale:1;inset:auto 0 0;transform-origin:50% 100%}
.world-monster{overflow:visible}
#visual-canvas .size-comparison{display:grid;grid-template-columns:1fr 1fr;align-items:end;height:100%;padding:35px 15px 55px;gap:0;background:linear-gradient(transparent 87%,#2d8fcb22 87%)}
.size-comparison figure{display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;margin:0;min-width:0}
#visual-canvas .size-comparison .monster-art{width:100%;height:560px;max-height:100%;scale:1}
.size-comparison figcaption{font-size:24px;color:#fff;background:#123e67e8;border-radius:12px;padding:8px 14px}
.visual-adjustments #visual-fields{max-height:60svh;overflow-y:auto;padding-right:8px}

#visual-canvas[data-scene="sizes"]{background:linear-gradient(#deefff 0%,#f3f8fb 80%,#c1d4bb 80%)}
#visual-canvas .preview-battle .combat-name h2{color:#fff}

/* Preview scenes share production selectors; animation is paused for adjustment. */
.visual-preview-primary [hidden]{display:none!important}
#visual-canvas[data-scene=avatar]{background:radial-gradient(ellipse,#fffdf5,#dbe9eb)}
#visual-canvas[data-scene=avatar] .visual-avatar{left:420px;width:440px}
#visual-canvas[data-scene=avatar] .visual-avatar.head-zoom{left:250px;width:780px}
#visual-canvas[data-scene=avatar] .head-zoom>.avatar-v61{width:780px}
#visual-canvas[data-scene=growth],#visual-canvas[data-scene=dex],#visual-canvas[data-scene=evolution]{background:radial-gradient(ellipse,#fffdf5,#dbe9eb)}
#visual-canvas .capture-celebration,#visual-canvas .capture-suspense,#visual-canvas .growth-result,#visual-canvas .evolution-sequence,#visual-canvas .solo-defeat,#visual-canvas .solo-victory{height:100%;padding:28px;text-align:center;max-width:none;margin:0}
#visual-canvas .capture-celebration .capture-layout{height:490px}
#visual-canvas .capture-ritual{height:470px}
#visual-canvas .capture-ritual>.monster-art{width:600px;height:470px;animation:none}
#visual-canvas .growth-monster>.monster-art{width:600px;height:480px}
#visual-canvas .dex-detail{display:block;padding:25px;height:100%}
#visual-canvas .dex-display{height:500px;width:680px;margin:auto}
#visual-canvas .evolution-stage{height:500px;display:grid;grid-template-columns:1fr 1fr;overflow:visible}
#visual-canvas .evolution-before,#visual-canvas .evolution-after{position:relative;inset:auto;opacity:1;animation:none;scale:1;filter:none}
#visual-canvas .evolution-stage .monster-art{height:400px;max-width:none}
#visual-canvas .result-monster>.monster-art{height:380px;max-height:none}
#visual-canvas .victory-partner>.monster-art,#visual-canvas .retry-opponent>.monster-art{width:600px;height:480px;max-height:none}
.visual-adjustments .note{line-height:1.6}

#visual-canvas[data-scene=home]{background:linear-gradient(#80b8ee20,#c1d2e530),url('/assets/backgrounds/adventure-menu.png') center/cover}
#visual-canvas[data-scene=field],#visual-canvas[data-scene=capture],#visual-canvas[data-scene=captureSuccess],#visual-canvas[data-scene=captureRitual],#visual-canvas[data-scene=defeat],#visual-canvas[data-scene=victory]{background:linear-gradient(#80b8ee20,#c1d2e530),url('/assets/backgrounds/field-forest.png') center/cover}
#visual-canvas[data-scene=roster]{background:url('/assets/backgrounds/monster-care.png') center/cover}
#visual-canvas[data-scene=dex]{background:url('/assets/backgrounds/dex.png') center/cover}
#visual-canvas[data-scene=evolution]{background:url('/assets/backgrounds/evolution.png') center/cover}
#visual-canvas[data-scene=result]{background:url('/assets/backgrounds/arena-battle.png') center/cover}


.question-panel{position:relative;cursor:text}.question-panel .typeinput{position:absolute!important;left:0;bottom:0;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0;pointer-events:none}

.ime-ready-note{margin:12px 0;padding:10px 14px;border:1px solid #d5b768;border-radius:12px;background:#fff7d9;color:#173d61;font-size:clamp(13px,1.1vw,16px);line-height:1.5}.ime-ready-note strong{color:#123e67}

.online-lead{color:#375d7a;margin:6px 0 20px}.online-steps{list-style:none;padding:0;display:flex;gap:12px;margin:18px auto;max-width:800px}.online-steps li{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #9ab8d0;background:#e6eff5;color:#47647e;border-radius:12px;padding:12px 8px;font-weight:700}.online-steps li span{display:grid;place-items:center;background:#fff;border-radius:50%;width:28px;height:28px;flex-shrink:0}.online-steps .current{background:#0f5081;color:white;border-color:#e2be66;box-shadow:0 3px 0 #07375e}.match-rules{background:#103c63;color:#fff2c5;border:1px solid #d4b45f;border-radius:12px;padding:12px 18px;font-weight:700}.lobby-heading{text-align:center;color:#113c63}.lobby-next{text-align:center;max-width:680px;margin:12px auto 24px;padding:0 16px}.lobby-next .ime-ready-note{text-align:left}.lobby-next>button{min-height:58px;min-width:260px}.entry-screen .room-entry-tabs,.entry-screen .tournament-tabs{gap:12px;margin:20px 0}.entry-screen [role=tab][aria-selected=true]{background:linear-gradient(#ffe97e,#ffad18);color:#173d61;border-color:#c29139}.online-arena .lobby .panel{background:linear-gradient(#fffdf3,#e8f3fa);color:#173d61;border:2px solid #d4b45f}.online-arena .lobby .monster-art{width:170px;height:170px;margin:auto}.online-arena .waiting{background:#e6f1fae8;color:#173d61;min-height:240px;padding:20px;text-align:center}.tournament-progress .actions{justify-content:center;flex-direction:column;align-items:stretch}.tournament-progress .ime-ready-note{font-size:14px}.tournament-progress [data-watch-match]{min-height:60px;font-size:20px}.entry-fields #question-genre{width:100%;margin-bottom:4px}.public-entry{border-color:#bba061}.tournament-code-banner{box-shadow:0 5px 16px #09274330}@media(max-width:650px){.online-steps{gap:5px}.online-steps li{font-size:12px;padding:8px 4px;gap:4px;flex-direction:column}.lobby-next>button{min-width:0;width:100%}.match-rules{font-size:13px}}

.bracket-route{stroke:#7792a8;stroke-width:2;opacity:.65;stroke-linejoin:round;stroke-linecap:round}.bracket-route.advanced{stroke:#ffd566;stroke-width:6;opacity:1;filter:drop-shadow(0 0 3px #f8b72d90)}.bracket-travel{stroke:#fffbe5;stroke-width:7;stroke-linecap:round;stroke-dasharray:.18 1;stroke-dashoffset:.18;filter:drop-shadow(0 0 5px #fff1a3);animation:bracket-travel 1.8s linear var(--age,0ms) both}.bracket-player.winner{background:linear-gradient(90deg,#fff1b8,#ffe18a);border-radius:6px;box-shadow:inset 3px 0 #df9d17;padding:0 5px}.bracket-player.loser{background:#334455;color:#dbe3eb;border-radius:6px;padding:0 5px;opacity:.65}.bracket-player .lose-badge{background:#1d2b3b;color:#dbe3eb}.just-decided .winner{animation:bracket-win 1.8s ease-out var(--age,0ms) both}.just-decided .loser{animation:bracket-lose 1.8s ease-out var(--age,0ms) both}.bracket-player.just-arrived{animation:bracket-arrive 1.8s cubic-bezier(.2,.8,.3,1) var(--arrival-age,0ms) both}.champion-match.decided{border-color:#ffdb66;box-shadow:0 0 0 2px #a66d17,0 0 20px #ffd24f70}.champion-match .winner:before{content:'♛';color:#99600b;font-size:20px}.champion-reveal .champion-match{animation:bracket-crown 1.8s ease-out var(--age,0ms) both}@keyframes bracket-win{0%{background:#fff;box-shadow:0 0 20px #fff9a8;filter:brightness(1.5)}25%{box-shadow:0 0 14px #ffdf54;filter:brightness(1.2)}100%{box-shadow:inset 3px 0 #df9d17;filter:none}}@keyframes bracket-lose{0%,12%{opacity:1;background:#fffaf0;color:#163c5b}45%,100%{opacity:.65;background:#334455;color:#dbe3eb}}@keyframes bracket-travel{0%,25%{stroke-dashoffset:.18;opacity:0}30%{opacity:1}75%{stroke-dashoffset:-1;opacity:1}100%{stroke-dashoffset:-1;opacity:0}}@keyframes bracket-arrive{0%,60%{opacity:.25;transform:translateX(-12px);filter:brightness(1)}78%{opacity:1;transform:translateX(3px);filter:brightness(1.2)}100%{opacity:1;transform:none;filter:none}}@keyframes bracket-crown{0%,65%{box-shadow:0 0 6px #ffd24f40}85%{box-shadow:0 0 32px #ffe477;transform:scale(1.025)}100%{box-shadow:0 0 20px #ffd24f70;transform:none}}@media(prefers-reduced-motion:reduce){.bracket-travel{display:none}.just-decided .winner,.just-decided .loser,.bracket-player.just-arrived,.champion-reveal .champion-match{animation:none!important}}

.broadcast-title{display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 16px;color:#fff5d4;background:#061f3fe6;border-top:1px solid #bda25c;border-bottom:1px solid #bda25c}.live-pill{color:#fff;background:#b51c42;border-radius:20px;padding:5px 12px;font-size:13px;font-weight:900}.broadcast-title>strong{overflow-wrap:anywhere}.spectating .match-rules{margin:8px 16px;font-size:13px}.spectating .battle-stage{height:clamp(280px,40svh,500px)}.broadcast-deck{background:linear-gradient(135deg,#07274e,#123f6c);border-top:2px solid #d9b66d;padding:14px 20px 18px;color:#fff}.broadcast-commentary{min-height:42px;text-align:center;display:grid;place-items:center;font-size:clamp(17px,2vw,25px);font-weight:900;color:#ffed9e;margin:0 0 12px}.broadcast-commentary[data-tone=climax]{background:linear-gradient(90deg,transparent,#873e3670,transparent);color:#ffe27c;text-shadow:0 0 12px #ff9d3d70}.broadcast-question{position:relative;text-align:center;background:#fff9eb;color:#133b61;border:2px solid #dec17c;border-radius:16px;padding:14px 110px 14px 20px;min-height:100px}.broadcast-question>span{font-size:12px;font-weight:bold;color:#52718a}.broadcast-question h2{font-size:clamp(24px,3vw,38px);margin:4px 0;overflow-wrap:anywhere}.broadcast-roman{font-family:monospace;text-transform:uppercase;letter-spacing:2px;margin:4px 0;overflow-wrap:anywhere}.broadcast-question small{display:block;color:#42647f}.broadcast-clock{position:absolute;right:16px;top:50%;transform:translateY(-50%);display:grid;gap:4px;min-width:80px;color:#123d67}.broadcast-clock #countdown{font-size:25px;color:#ad6420}.broadcast-clock #timer{font-size:21px;font-variant-numeric:tabular-nums}.broadcast-stats{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:12px}.broadcast-player{padding:12px 16px;border:1px solid #55bdf0;border-radius:14px;background:#0b3158}.broadcast-player.side-1{border-color:#ee8b9e;background:#4d2446}.broadcast-player header{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.broadcast-player header>span{color:#ffe585;font-weight:800}.broadcast-player .progress{height:13px;background:#031c37;border:1px solid #88b1c7}.broadcast-player .progress>span{background:linear-gradient(90deg,#2dabec,#8deaff);transition:width .45s ease-out}.broadcast-player.side-1 .progress>span{background:linear-gradient(90deg,#df4a86,#ffc0c9)}.broadcast-player dl{display:flex;gap:18px;justify-content:space-between;margin:10px 0}.broadcast-player dl>div{flex:1}.broadcast-player dt{font-size:12px;color:#c1d8e9}.broadcast-player dd{margin:2px 0;font-size:clamp(16px,1.8vw,24px);font-weight:900;font-variant-numeric:tabular-nums}.broadcast-player small{font-size:11px;color:#bbd0e0}.broadcast-damage{display:flex;justify-content:center;gap:30px}.broadcast-damage p{display:grid;gap:5px;margin:8px 0}.broadcast-damage b{color:#a25a0b;font-size:24px}.broadcast-damage span{color:#286341;font-weight:800}.broadcast-return{color:#ffecac;text-align:center;font-weight:700;margin:20px}.broadcast-swap .monster-art{animation:broadcast-entry .5s ease-out both}@keyframes broadcast-entry{from{opacity:.3;transform:translateY(12px) scale(.94)}to{opacity:1;transform:none}}@media(max-width:650px){.broadcast-title{font-size:13px;gap:8px;flex-wrap:wrap}.broadcast-deck{padding:10px}.broadcast-question{padding:10px 80px 10px 10px}.broadcast-clock{right:8px;min-width:64px}.broadcast-clock #timer{font-size:16px}.broadcast-stats{gap:8px}.broadcast-player{padding:10px 8px}.broadcast-player header{flex-direction:column;gap:3px}.broadcast-player dl{gap:5px;flex-wrap:wrap}.broadcast-player dl>div{min-width:60px}.broadcast-player dd{font-size:15px}.broadcast-player small{display:none}.broadcast-roman{font-size:13px;letter-spacing:1px}.broadcast-damage{gap:14px}.broadcast-damage b{font-size:18px}}

.capture-suspense.friendship-wait .capture-ritual>.monster-art{opacity:1;transform:none;animation:friendship-breathe 1.2s ease-in-out infinite;filter:brightness(1.06) drop-shadow(0 0 12px #fff4c080);transition:filter .65s ease-out}.capture-suspense.friendship-unsure .capture-ritual>.monster-art{animation:none;filter:none;opacity:1;transform:none}.friendship-message{font-size:clamp(18px,2.2vw,28px);font-weight:700;line-height:1.6;min-height:2em}.friendship-wait .capture-ritual{width:min(600px,85vw);height:clamp(220px,44svh,480px);margin:12px auto}.friendship-farewell .capture-choice-art>.monster-art{filter:none}.capture-reveal .capture-art{animation:friendship-joy .65s ease-out}.capture-reveal h1{font-size:clamp(30px,5vw,62px)}@keyframes friendship-breathe{0%,100%{filter:brightness(1.02) drop-shadow(0 0 7px #fff4c060)}50%{filter:brightness(1.14) drop-shadow(0 0 18px #fff4c0a0)}}@keyframes friendship-joy{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.capture-suspense.friendship-wait .capture-ritual>.monster-art{animation:none;opacity:1;transform:none;filter:brightness(1.08)}.capture-suspense.friendship-unsure .capture-ritual>.monster-art{filter:none;transition:none}.capture-reveal .capture-art{animation:none}}

.my-records{max-width:1320px;margin:auto;color:#153e61}.record-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:28px 32px;border:2px solid #e5c275;border-radius:22px;background:linear-gradient(120deg,#092d53,#175b83);color:#fff6d5;box-shadow:0 10px 25px #082e5020}.record-hero>div>span{letter-spacing:4px;font-size:13px;color:#f7d87d}.record-hero h1{font-size:clamp(25px,3vw,39px);margin:8px 0}.record-hero p{margin:6px 0;color:#d4e8f5}.record-tabs{display:flex;gap:12px;margin:22px 0}.record-tabs button{flex:1;background:#e2eff6;color:#173f61;border:1px solid #93afc3;min-height:58px}.record-tabs [aria-selected=true]{background:linear-gradient(#ffe998,#ffbb38);border:2px solid #be8c31;color:#213c52}.record-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.record-stat{background:#fffaf0;border:1px solid #d8bb78;border-radius:15px;padding:18px 20px;box-shadow:0 4px 10px #163c5b12}.record-stat>span{display:block;font-size:14px;font-weight:700;color:#49677e}.record-stat>strong{display:block;font-size:clamp(25px,3vw,40px);line-height:1.5;color:#123b62}.record-stat small{font-size:14px;margin-left:5px;color:#6b7a86}.record-section{padding:24px;margin:20px 0;border:1px solid #c8b480;border-radius:20px;background:#fffdf2f5;box-shadow:0 6px 18px #153f6015}.record-section h2{font-size:24px;margin:0 0 16px}.record-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.record-gold-tag{display:inline-block;background:#fff0bc;border:1px solid #d3ad54;border-radius:20px;padding:5px 12px;color:#795012;font-size:12px;font-weight:700}.record-filters,.record-mode{display:flex;gap:18px;align-items:end;flex-wrap:wrap}.record-filters label,.record-mode label{display:grid;gap:6px;font-weight:700;min-width:180px}.record-mode>p{flex:1;min-width:230px;margin:0 0 10px;color:#516d82}.record-filters select,.record-mode select{width:100%;min-height:44px}.best-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.best-stats .record-stat{background:linear-gradient(#fff5cc,#fffdf3);border-color:#d2a94e}.record-note{font-size:13px;line-height:1.7;color:#587187}.record-chart{margin:20px 0 0;padding:20px;border-radius:14px;background:#eaf4f8}.record-chart figcaption{font-weight:bold;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.record-chart figcaption small,.record-chart p{font-weight:normal;font-size:12px;color:#517086}.record-chart svg{display:block;width:100%;max-height:220px;margin-top:10px}.record-empty{text-align:center;padding:28px 20px;border:2px dashed #acc1cd;border-radius:14px;background:#f2f7f9;color:#537185;line-height:1.8}.record-match{display:flex;align-items:center;gap:20px;border-bottom:1px solid #dcd4b8;padding:20px 0}.record-match>section{flex:1;min-width:0}.record-match h3{margin:0 0 6px;font-size:20px}.record-match p{margin:4px 0;font-size:13px;color:#4b6980;overflow-wrap:anywhere}.record-outcome{padding:10px 12px;min-width:70px;text-align:center;border-radius:10px;background:#dce6ee;color:#466079;font-weight:900;font-size:18px}.record-outcome.win{background:linear-gradient(#ffe99a,#ffc75a);color:#78500b}.record-outcome.lose{background:#163d63;color:#dce9f5}.record-team{display:flex;gap:5px}.record-team>.monster-art{width:52px;height:52px;max-height:none}.record-pagination{display:flex;align-items:center;justify-content:center;gap:20px;padding:18px 0}.record-cups{display:grid;gap:18px;margin:20px 0}.record-cup{display:flex;align-items:center;gap:22px;background:#fffdf3;border:1px solid #cbbb8c;border-radius:18px;padding:24px}.record-cup.champion{border:2px solid #d8ae47;background:linear-gradient(120deg,#fff3bf,#fffdf5)}.record-cup>section{flex:1}.record-cup h2{margin:8px 0}.record-cup-emblem{display:grid;place-items:center;width:70px;height:70px;border-radius:50%;background:#113c65;color:#ffdc72;font-size:42px;flex-shrink:0}.practice-intro{background:linear-gradient(120deg,#eef8fa,#fff8db)}.practice-intro h2{margin:14px 0}.practice-tips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.practice-tips>article{padding:20px;background:#fffdf3;border:1px solid #cfbc85;border-radius:14px}.practice-tips b{display:block;font-size:32px;color:#165a86;margin:8px 0}.practice-tips p{font-size:14px;line-height:1.7}.practice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.practice-tile{border:1px solid #bbcdd5;border-radius:12px;background:#f0f7f9;padding:16px}.practice-tile>div:first-child{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.practice-tile>div>span{font-size:13px;color:#355f7b}.practice-meter{height:9px;border-radius:10px;background:#cfdee6;margin:12px 0;overflow:hidden}.practice-meter>i{display:block;height:100%;background:linear-gradient(90deg,#2d8eb4,#7bc9be);border-radius:10px}.practice-tile p{font-size:12px;color:#5a7385;margin:6px 0}.practice-keys{margin:24px 0}.practice-keys summary{cursor:pointer;font-weight:bold;padding:14px;border-radius:12px;background:#e2eef5;margin-bottom:16px}.personal-best-flash{padding:12px;background:#ffeda5;color:#70480b;border-radius:12px;border:2px solid #e9bd48;font-weight:900;animation:best-appear .5s ease-out}@keyframes best-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:800px){.record-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.best-stats{grid-template-columns:1fr}.practice-grid,.practice-tips{grid-template-columns:repeat(2,minmax(0,1fr))}.record-team{display:none}.record-hero{padding:22px;flex-wrap:wrap}.record-cup{flex-wrap:wrap}.record-cup>button{width:100%}}@media(max-width:520px){.record-section{padding:16px}.record-tabs{gap:6px}.record-tabs button{padding:10px 5px;font-size:13px}.practice-grid,.practice-tips{grid-template-columns:1fr}.record-match{gap:12px}.record-stat{padding:14px}.record-hero h1{font-size:24px}.record-filters{display:grid;grid-template-columns:1fr}.record-filters label{min-width:0}}

.practice-session{max-width:900px;margin:0 auto;color:#133e60}.practice-session-head{position:relative;padding:28px;border:2px solid #d8b364;border-radius:20px;background:linear-gradient(120deg,#103b64,#176388);color:#fff8db}.practice-session-head>span{font-size:12px;letter-spacing:3px;color:#ffe28b}.practice-session-head h1{font-size:clamp(25px,3vw,38px);margin:10px 0}.practice-session-head p{line-height:1.7;margin:8px 0;color:#dcebf5}.practice-position{display:inline-block;margin-top:10px;padding:5px 15px;border:1px solid #92b9ce;border-radius:20px}.practice-question{padding:30px;margin:22px 0;background:#fffcf1;border:2px solid #d3b471;border-radius:20px;text-align:center}.practice-question h2{font-size:clamp(26px,4vw,40px);margin:8px 0 16px}.practice-question #practice-roman{font:700 clamp(23px,3vw,34px) monospace;letter-spacing:3px;overflow-wrap:anywhere;min-height:1.5em;margin:14px 0}.practice-question #practice-roman>span{color:#087dc2;text-shadow:0 0 8px #99ddff70}.practice-question label{display:block;color:#51718a;font-size:14px;margin-top:20px}.practice-question input{width:100%;max-width:600px;margin:12px auto;text-align:center;font-family:monospace;background:#f0f7fa;border:2px solid #a5bfcd;min-height:54px}.practice-question input:focus{outline:3px solid #7dc8ee;outline-offset:3px}#practice-feedback{font-weight:700;min-height:2em;color:#175c79;margin-top:16px}.practice-session-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}.practice-session-actions button{min-height:54px;min-width:180px}.practice-topic-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 22px}.practice-tips button{width:100%;margin-top:8px}#connection-state{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(760px,calc(100vw - 24px));padding:14px 18px;border:2px solid #d5ad53;border-radius:14px;background:#fff6da;color:#173f61;z-index:10000;box-shadow:0 6px 24px #071d3f55;display:flex;gap:14px;align-items:center;justify-content:space-between;max-height:35svh;overflow:auto;font-size:14px;line-height:1.6}#connection-state[hidden]{display:none}#connection-state[data-state=offline]{border-color:#bc7c37;background:#fff0d6}#connection-state[data-state=recovered]{border-color:#48937a;background:#e8faf0}#connection-state button{flex-shrink:0;font-size:13px;padding:8px 12px;min-height:40px}.combat-sequence .hp>span{transition:width .5s ease-out}.combat-sequence .damage{animation:pop 1s .28s both}.combat-sequence .combat-figure>.reaction-pose{animation:combat-reaction 1.4s both}.combat-sequence .combat-figure>.attack-then-hurt{animation:combat-launch 1.4s both}@keyframes combat-reaction{0%,19%{opacity:0}20%,80%{opacity:1}100%{opacity:0}}@keyframes combat-launch{0%,19%{opacity:1}20%,80%{opacity:0}100%{opacity:1}}@media(max-width:600px){.practice-question{padding:22px 16px}.practice-session-head{padding:22px}.practice-session-actions button{min-width:0;flex:1}#connection-state{flex-direction:column;align-items:stretch;padding:10px 14px;font-size:12px}#connection-state button{align-self:flex-end}}@media(prefers-reduced-motion:reduce){.combat-sequence .combat-figure>.reaction-pose{display:none;animation:none}.combat-sequence .combat-figure>.attack-then-hurt{animation:none}.combat-sequence .hp>span{transition:none}.combat-sequence .damage{animation:none}}

.practice-question #practice-roman{text-transform:uppercase}

.combat-sequence .hp>span,.finishing-attack .hp>span{transition:width .4s ease-out}
/* Legendary encounters: one short, skippable reveal; no continuous particle loop. */
.legend-intro{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 50% 48%,#645124e8,#071425fa 75%);color:#fff7d8;text-align:center}
.legend-intro-halo{position:absolute;z-index:-1;width:min(100vw,900px);aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(#ffda6a00 0deg 16deg,#ffda6a55 20deg 23deg,#ffda6a00 29deg 40deg);animation:legend-halo-in 1.7s ease-out both}
.legend-intro-content{max-width:94vw;animation:legend-name-in .65s ease-out both}
.legend-intro-label{letter-spacing:.22em;font-weight:900;font-size:clamp(18px,3vw,36px);margin:.2em 0;color:#ffe296}
.legend-intro h2{margin:.05em 0;font-size:clamp(28px,5vw,68px);line-height:1.2;text-shadow:0 3px #754800,0 0 22px #ffdc63}
.legend-intro-content>p:last-child{font-size:clamp(16px,2vw,24px);margin:.6em 0}
.legend-intro-art{height:min(49svh,420px);width:min(76vw,680px);margin:auto;display:grid;place-items:center}
.legend-intro-art .monster-art{height:100%;max-height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 0 23px #ffe8a6)}
.legend-intro-skip{position:absolute;right:24px;bottom:max(18px,env(safe-area-inset-bottom));font-size:16px;min-height:44px;background:#0d2e4be8;color:white;border:2px solid #ffe49a;padding:10px 22px}
.intro-ultra{background:radial-gradient(ellipse at 50% 50%,#23315fe8,#040817 80%);animation:ultra-dark-in .7s ease-out both}
.intro-ultra .legend-intro-halo{background:conic-gradient(#76e8ff66,#b093ff88,#f7a2d577,#ffe88688,#95ffd177,#76e8ff66);filter:blur(15px);animation:legend-halo-in 2.5s ease-out both}
.intro-ultra .legend-intro-label{color:#bbf6ff}.intro-ultra h2{text-shadow:0 3px #403167,0 0 25px #a8cfff}
.legend-guarantee-notice{padding:10px 16px;margin:0 0 12px;border:1px solid #e8c46d;border-radius:12px;background:#102e4aee;color:#fff3c1;font-size:15px;line-height:1.6}
.shell[data-encounter-rarity="ultra"],.shell:has(.encounter-ultra),.solo-arena[data-rarity="ultra"]{background-image:linear-gradient(#0c214b33,#11244244),url('/assets/backgrounds/ultra-sanctuary.png');background-position:center;background-size:cover}
.solo-arena[data-rarity="legendary"]{box-shadow:inset 0 0 90px #ffd65e55;border-color:#ffe6a3}
.shell:has(.encounter-legendary){box-shadow:inset 0 0 110px #ffd65e55}
@keyframes legend-name-in{from{opacity:0;transform:translateY(16px) scale(.94)}to{opacity:1;transform:none}}
@keyframes legend-halo-in{from{opacity:0;transform:scale(.6) rotate(-12deg)}to{opacity:1;transform:scale(1.1) rotate(8deg)}}
@keyframes ultra-dark-in{from{background-color:#02030a}to{background-color:#091529}}
.intro-reduced,.intro-reduced *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.legend-intro,.legend-intro *{animation:none!important;transition:none!important}}
@media(max-height:520px){.legend-intro-art{height:36svh}.legend-intro-content>p:last-child{margin:.25em 0}.legend-intro-skip{bottom:10px;right:12px}}
/* Keep the sprite palette inside the image, independent of stage glow/attack filters. */
.shiny-art[data-shiny-palette]{filter:drop-shadow(0 0 9px #fff0a5a0)}
.intro-shiny .legend-intro-label{color:#ffe5ff;text-shadow:0 0 14px #e5a1ff}
.intro-shiny .legend-intro-halo{background:conic-gradient(#fff3b988,#f7afffaa,#a3f2ffaa,#fff3b988)}
/* A brief star reveal; does not cover labels/buttons or alter monster sizing. */
.encounter-sparkles{position:absolute;inset:8% 2% 18%;pointer-events:none;z-index:3;overflow:visible;--star-color:#c9f6ff;--star-glow:#75d8ff}
.encounter-sparkles.sparkle-shiny{--star-color:#fff3ad;--star-glow:#ffc24b}
.encounter-sparkles>i{position:absolute;left:var(--star-x);top:var(--star-y);width:var(--star-size);height:var(--star-size);opacity:0;background:var(--star-color);clip-path:polygon(50% 0,61% 37%,100% 50%,61% 63%,50% 100%,39% 63%,0 50%,39% 37%);filter:drop-shadow(0 0 5px var(--star-glow));animation:encounter-star-once 1250ms ease-out var(--star-delay) 1 both}
.legend-intro-art{position:relative}.legend-intro-art .encounter-sparkles{inset:0}
@keyframes encounter-star-once{0%{opacity:0;transform:translate(-50%,12px) scale(.15) rotate(-20deg)}24%{opacity:1;transform:translate(-50%,0) scale(1.1) rotate(0)}60%{opacity:.85}100%{opacity:0;transform:translate(-50%,-24px) scale(.35) rotate(35deg)}}
@media(prefers-reduced-motion:reduce){.encounter-sparkles>i{animation:none;opacity:.85;transform:translate(-50%,-50%);filter:none}}
.next-step-note{background:#123d5ef0;color:#fff5cb;border-left:4px solid #f4cc60;border-radius:10px;padding:10px 16px;line-height:1.6;font-weight:700;margin:12px 0;font-size:16px}
.connection-pause{max-width:760px;text-align:center;margin:24px auto;padding:clamp(20px,4vw,40px);border:2px solid #e4c375;background:#102f4df5;color:#fff6df}.connection-pause h2{color:inherit}.connection-pause p{line-height:1.8}.connection-pause #reconnect-clock{display:block;color:#ffe08b;font-size:clamp(24px,4vw,40px);font-variant-numeric:tabular-nums;margin:18px 0}
.match-growth-feedback{background:#ffffff18;border:1px solid #ffdc8c;border-radius:12px;padding:12px;line-height:1.6;font-size:clamp(15px,1.6vw,20px);color:#fff6cc}
.admin-table td:last-child{display:flex;gap:10px;flex-wrap:wrap;min-width:260px}.admin-table td:last-child button{min-height:44px;margin:0}.recovery-review{padding:18px;border:2px solid #c8a45e;border-radius:14px;margin-top:18px;background:#fff9ea}.recovery-review p{line-height:1.7}
.evolution-ready-note{background:#fff8e5ec;color:#143c5e;border:2px solid #e8c16f;border-radius:14px;padding:10px;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:700px){.admin-table-wrap{overflow:auto}.next-step-note{padding:8px 12px}.connection-pause{margin:12px auto}}
.admin-appbar nav a[aria-current=page]{color:#ffe195;border-bottom:3px solid #ffe195;padding-bottom:6px}.admin-appbar .brand{white-space:normal;min-width:200px}.admin-appbar{height:auto;min-height:64px;gap:12px;padding:14px 24px}.admin-appbar nav.actions{gap:12px;justify-content:flex-end}
.admin-overview{max-width:1280px;margin:auto;display:grid;gap:20px}.admin-overview h1{margin:6px 0 14px}.admin-overview h2{font-size:24px}.admin-overview p{line-height:1.7}.admin-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.admin-menu-card{text-decoration:none;color:#163f61;display:flex;flex-direction:column;gap:14px;padding:22px;border:2px solid #cda65b;transition:box-shadow .2s}.admin-menu-card:hover,.admin-menu-card:focus-visible{box-shadow:0 0 0 3px #318fcc}.admin-menu-card strong{font-size:21px}.admin-menu-card span{font-size:16px;line-height:1.65}.admin-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-rule-grid>div{background:#edf5fa;border:1px solid #bed3e3;border-radius:12px;padding:18px}.admin-rule-grid dt{font-weight:700;font-size:15px}.admin-rule-grid dd{margin:10px 0 0;font-size:20px;font-weight:800}.admin-rule-grid small{display:block;font-size:14px;margin-top:6px;font-weight:400}.admin-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.admin-summary-grid article{display:grid;gap:8px}.admin-current-rules caption{text-align:left;font-weight:800;margin:18px 0 12px}.admin-current-rules td:last-child{display:table-cell;min-width:0}.admin-current-rules details{margin-top:20px;line-height:1.8}
.visual-preview-primary{flex-wrap:wrap;gap:12px}.visual-preview-primary>label{flex:1 1 150px}.visual-preview-options{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:10px 0}.visual-preview-options label{margin:0;font-size:15px;display:flex;align-items:center;gap:8px}.visual-preview-options input[type=checkbox]{width:20px;height:20px;min-height:20px}.visual-preview-options [hidden]{display:none!important}
#visual-canvas .preview-intro{position:absolute;inset:0;z-index:2;width:1280px;height:720px;animation:none}#visual-canvas .preview-intro .legend-intro-art{height:410px;width:700px}#visual-canvas .preview-intro h2{font-size:54px}#visual-canvas .preview-intro .legend-intro-label{font-size:30px}#visual-canvas .preview-intro .legend-intro-content>p:last-child{font-size:22px}#visual-canvas .preview-intro .legend-intro-halo{width:860px}#visual-canvas .preview-intro .legend-intro-content{max-width:none}
.word-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.word-search label{flex:1 1 170px}
@media(max-width:1100px){.admin-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-admin-layout{grid-template-columns:minmax(0,1fr) 300px}.admin-appbar nav.actions{justify-content:flex-start}}
@media(max-width:800px){.visual-admin-layout{grid-template-columns:minmax(0,1fr)}.visual-preview-panel,.visual-adjustments{position:static}.admin-rule-grid,.admin-summary-grid{grid-template-columns:minmax(0,1fr)}.admin-appbar{padding:12px}.admin-appbar nav a{margin:0}.admin-menu-grid{grid-template-columns:minmax(0,1fr)}}
.visual-adjustments #visual-fields{display:block;overflow-x:hidden;overflow-y:auto;max-height:65svh;padding-right:8px}.visual-adjustments .visual-field{grid-template-columns:minmax(0,1fr) 80px!important;width:100%;min-width:0}.visual-adjustments .visual-field>input[type=number]{width:100%;min-width:0}.visual-adjustments{min-width:0}.visual-adjustments>label>select{max-width:100%}
body:has(.admin-appbar){background:#e9f1f7}.admin-appbar{background:#103957}.shell[data-screen^=admin]{background:#e9f1f7}.admin-overview .eyebrow{color:#246d9b}
.entry-primary-action{position:fixed;bottom:12px;left:3vw;right:3vw;z-index:25;display:flex;justify-content:center;gap:12px;max-width:1040px;margin:0 auto;padding:12px 16px;border:2px solid #e6c36f;border-radius:18px;background:#123d5bf5;box-shadow:0 5px 22px #071a3e55}.entry-primary-action>button{flex:1;min-height:52px;margin:0}.shell:has(.entry-primary-action){padding-bottom:120px!important}.entry-team-details{margin:18px 0;padding:14px;border:1px solid #b9cedc;border-radius:14px;background:#f4f9fbdc}.entry-team-details>summary{cursor:pointer;font-size:17px;font-weight:800}.entry-team-details .entry-party{margin-top:14px}
.shell[data-screen=match-entry] .online-steps,.shell[data-screen=cup-entry] .online-steps{display:none}.room-entry-tabs,.tournament-tabs{position:sticky;top:0;z-index:8;background:#f8f5e9;padding:8px 0;border-radius:12px}.public-browser{margin:12px 0}.discovery-controls{align-items:end}.public-listing-state{font-weight:800;color:#155b43;background:#effadb;border:2px solid #a3c47a;padding:12px;border-radius:12px}#room-content[data-status=waiting]{display:flex;flex-direction:column}#room-content[data-status=waiting]>.online-steps{order:-3}#room-content[data-status=waiting]>.lobby-heading{order:-2}#room-content[data-status=waiting]>.lobby-next{order:-1;margin-bottom:18px}
@media(max-width:650px){.entry-primary-action{left:10px;right:10px;bottom:8px;padding:10px;gap:8px}.entry-primary-action>button{font-size:16px;padding:10px}.public-entry{grid-template-columns:65px minmax(0,1fr)}.public-entry-actions{grid-column:1/-1;display:flex;gap:10px}.public-entry-actions>button{flex:1}}
.shell[data-screen=match-entry] #room-form{display:block}.shell[data-screen=match-entry] #room-form>.entry-fields{width:100%;max-width:900px;margin:0 auto}.shell[data-screen=match-entry] #room-form>.entry-team-details{max-width:900px;margin:20px auto}.audio-slot>label>small{display:block;font-size:13px;font-weight:400;line-height:1.5;margin-top:5px}
.screen-actions{position:fixed;z-index:24;left:2.5vw;right:2.5vw;bottom:10px;display:flex;justify-content:center;align-items:stretch;gap:10px;padding:10px 14px;max-width:1100px;margin:auto;border:2px solid #e4bf67;border-radius:18px;background:#123d5bf5;box-shadow:0 5px 22px #071a3e55}.screen-actions>button{flex:1;width:auto;min-width:0;min-height:46px;margin:0!important;float:none!important}.screen-actions>button.quiet{color:#fff9e5;background:#ffffff18;border:1px solid #a6becb}.screen-actions>button[hidden]{display:none!important}.screen-actions small{display:block;font-size:13px;line-height:1.4}.shell.has-screen-actions{padding-bottom:120px!important}.has-screen-actions .account-screen{margin-bottom:20px}.screen-actions .catch-options{display:contents}.screen-actions>button[data-catch]{display:block}.screen-actions>button[data-catch] small{white-space:normal}.modal-back .modal>.close{position:sticky;float:right;top:0;right:0;z-index:15;align-self:flex-end;margin-left:auto}.modal-back .modal>footer{position:sticky;bottom:0;z-index:12;background:#fff9eb;padding:12px 0 0;border-top:1px solid #d6c394}.modal-back .modal>h2{padding-right:44px}
@media(max-width:650px){.screen-actions{left:8px;right:8px;bottom:8px;padding:8px;gap:8px;flex-wrap:wrap}.screen-actions>button{flex:1 1 calc(50% - 8px);font-size:15px;padding:8px 10px}.screen-actions>button:only-child{flex-basis:100%}.shell.has-screen-actions{padding-bottom:160px!important}}
@media(max-height:650px) and (min-width:651px){.screen-actions>button{min-height:42px;font-size:16px;padding:8px 12px}.has-screen-actions .creator-page>.panel>.avatar-editor{min-height:180px;height:calc(100svh - 330px)}.has-screen-actions .creator-page #avatar-preview{min-height:180px}.has-screen-actions .starter-grid .monster-art{max-height:25svh}}

/* Trial is a real battle presentation with only transient state. */
.world-controls.title-actions{display:grid;grid-template-columns:1fr 1fr;width:min(760px,90vw);gap:10px}
.world-controls.title-actions .world-start{padding:10px 18px;font-size:clamp(19px,2.6vw,30px)}
.title-trial{background:linear-gradient(#effbff,#8edaff);color:#10385c;border:3px solid #fff5c9;border-radius:38px;font-size:clamp(18px,2.3vw,26px);padding:8px 16px;box-shadow:0 3px 0 #a87924}
.title-trial small{display:block;font-size:12px;line-height:1.3}
.world-controls.title-actions .title-login{grid-column:1/-1;justify-self:center}
.trial-intro,.trial-result{max-width:960px;margin:0 auto;text-align:center;padding-bottom:100px}
.trial-intro h1,.trial-result h1{font-size:clamp(25px,3.8vw,40px)}
.trial-question{background:#fff6df;border:2px solid #ebcc7c;border-radius:22px;padding:12px 22px;text-align:center;color:#0e2e51}
.trial-question h2{margin:0;font-size:clamp(24px,3.2vw,40px)}
.trial-roman{font-size:clamp(23px,3.2vw,36px);font-weight:900;letter-spacing:.09em;margin:6px;overflow-wrap:anywhere}
.trial-roman span{color:#168dd4}
#trial-input{max-width:640px;margin:0 auto;height:38px;text-align:center}
#trial-feedback{min-height:24px;margin:6px 0 0;font-weight:700}
.trial-clock{display:flex;align-items:center;gap:20px;margin:6px 0;color:white}.trial-clock progress{flex:1}
.trial-actions{position:fixed;z-index:24;bottom:10px;left:3vw;right:3vw;max-width:1000px;margin:auto;display:flex;gap:12px;padding:10px;border:1px solid #e3c37e;border-radius:22px;background:#0a3054f5;box-shadow:0 5px 22px #00152c55}
.trial-actions button{flex:1;margin:0;min-height:46px}.trial-actions [hidden]{display:none!important}
.trial-arena{padding-bottom:100px}.trial-arena .battle-stage{height:clamp(180px,32svh,340px);min-height:180px}.trial-arena .combat-player .avatar{display:none}
.trial-verdict{color:#ffa900;text-shadow:2px 3px #9d3d0c;font-weight:1000;font-size:clamp(40px,7vw,76px)}
.trial-result-monster{height:clamp(100px,23svh,220px)}.trial-result-monster .monster-art{height:100%;max-width:100%}.trial-result h2{font-size:clamp(19px,2.5vw,28px)}
.trial-flash .monster-art{animation:trial-glow .7s ease-out}.trial-defeated .monster-art{animation:trial-defeat 1.2s forwards}
@keyframes trial-glow{40%{filter:brightness(1.8) drop-shadow(0 0 16px #b9f9ff)}}
@keyframes trial-defeat{to{opacity:.15;transform:translateY(14px)}}
@media(max-width:650px){.trial-actions{flex-wrap:wrap;gap:8px}.trial-actions button{flex:1 1 42%;font-size:15px;padding:8px}.trial-actions button:last-child:nth-child(3){flex-basis:100%}.trial-result{padding-bottom:140px}.trial-question{padding:10px}.trial-arena .combat-player{font-size:12px}.trial-arena .combat-name h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.trial-flash .monster-art,.trial-defeated .monster-art{animation:none}.trial-defeated .monster-art{opacity:.25}}

.world-controls.title-actions{left:50%;transform:translateX(-50%)}

.title-trial small{font-size:14px}
.trial-arena .arena-head{min-height:0;margin:0;padding:6px 16px;gap:8px}.trial-arena .arena-head h1{margin:0;font-size:24px}.trial-arena .arena-head .tag{font-size:14px}
.trial-arena .battle-stage{height:clamp(160px,29svh,300px);min-height:160px}
.trial-arena .combat-figure .monster-art{height:100%;max-width:100%;object-fit:contain}
.trial-arena .trial-question{padding:8px 16px}.trial-arena .trial-question h2{font-size:30px}.trial-arena .trial-roman{margin:2px;font-size:30px}
.trial-arena #trial-input{box-sizing:border-box;padding:4px 10px;height:36px;font-size:18px}.trial-arena #trial-feedback{margin:3px 0 0;min-height:22px;font-size:16px}
.trial-result-monster{display:flex;justify-content:center}.trial-result p{margin:8px}.trial-result h1{margin:4px 0}.trial-result h2{margin:10px 0}

@media(min-width:851px){
 .shell[data-screen=match-entry] .entry-screen,.shell[data-screen=cup-entry] .entry-screen{margin:0 auto;padding:16px 24px}
 .shell[data-screen=match-entry] .entry-screen h1,.shell[data-screen=cup-entry] .entry-screen h1{margin:0 0 8px}
 .entry-screen .online-lead{margin:6px 0}.entry-screen .cup-tabs{margin:12px 0}
 #room-form[data-mode=create]>.entry-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
 #room-form .entry-option{min-width:0}#room-form .entry-option label{margin:0 0 5px}#room-form .entry-option .note{margin:5px 0;font-size:14px}#room-form .entry-option input,#room-form .entry-option select{margin:0;width:100%}
}

@media(min-width:851px) and (max-height:700px){
 .shell[data-screen=match-entry] .entry-screen{gap:4px;padding:12px 20px}
 .shell[data-screen=match-entry] .entry-screen>h1{margin:0;font-size:24px}
 .shell[data-screen=match-entry] .entry-screen>.online-lead{margin:2px 0;font-size:14px}
 .shell[data-screen=match-entry] .entry-screen>.cup-tabs{margin:6px 0}
 .shell[data-screen=match-entry] #room-form[data-mode=create]>.entry-fields{gap:8px 20px}
}

/* Attack sprites are direct siblings: they inherit exactly the same placement. */
.completed-attack-effect{position:absolute;inset:0;pointer-events:none}
.completed-attack-sprite{pointer-events:none;animation:completed-attack-glow .8s ease-out}
@keyframes completed-attack-glow{25%{filter:brightness(1.5) drop-shadow(0 0 12px #c1f7ff)}}
@media(prefers-reduced-motion:reduce){.completed-attack-sprite{animation:none}}

/* Reward details stay on the result page; only the actual next action is shown. */
.growth-receipt.reward-received{animation:reward-received .7s ease-out}
@keyframes reward-received{from{box-shadow:0 0 0 5px #ffe28a}to{box-shadow:0 3px 12px #12324a18}}
.modal-back{z-index:200}
.encounter .encounter-title{display:table;margin:12px auto 18px;padding:10px 24px;max-width:100%;color:#fff8e4!important;background:#0b3558ed;border:2px solid #edc96f;border-radius:18px;text-shadow:0 2px 2px #001830;font-size:clamp(24px,3vw,42px);line-height:1.35;box-shadow:0 4px 16px #06233b55}
.encounter .area-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:24px;height:clamp(260px,53svh,550px);min-height:0}
.encounter .field-partner,.encounter .encounter-enemy{display:grid;grid-template-rows:minmax(0,1fr) 64px;align-items:stretch;min-height:0;height:100%;padding:0;position:relative;gap:0}
.encounter .encounter-party-art{display:flex;align-items:flex-end;justify-content:center;min-height:0;position:relative}
.encounter .encounter-party-art>.avatar{height:100%;max-height:100%;width:45%;align-self:end}
.encounter .encounter-party-art>.monster-art{height:88%;max-height:100%;width:55%;align-self:end}
.encounter .encounter-enemy>.monster-art{height:100%;max-height:100%;width:100%;align-self:end;min-height:0}
.encounter .encounter-banner{position:absolute;top:8px;left:12px;right:12px;z-index:2}
.encounter .field-partner>.encounter-nameplate,.encounter .encounter-enemy>.encounter-nameplate{position:static;inset:auto;display:flex;align-items:center;justify-content:center;width:100%;height:64px;min-height:64px;box-sizing:border-box;margin:0;padding:8px 12px;border:2px solid #e7c66f;border-radius:16px;font-size:clamp(18px,2vw,28px);line-height:1.2;text-align:center}
.encounter .field-partner>.encounter-nameplate{background:#123b65;color:#fff}.encounter .encounter-enemy>.encounter-nameplate{background:#fff7e4f5;color:#10365b}
@media(max-width:650px){.encounter .area-detail{gap:10px;height:44svh;min-height:240px}.encounter .field-partner,.encounter .encounter-enemy{grid-template-rows:minmax(0,1fr) 60px}.encounter .field-partner>.encounter-nameplate,.encounter .encounter-enemy>.encounter-nameplate{height:60px;min-height:60px;font-size:16px;padding:6px}.encounter .encounter-title{padding:8px 12px;margin-bottom:10px;font-size:24px}}
@media(prefers-reduced-motion:reduce){.growth-receipt.reward-received{animation:none}}

/* Capture stages share a full-size art viewport above the action dock. */
.shell[data-screen=solo]:has(.capture-choice,.capture-celebration){--capture-height:clamp(190px,34svh,350px)}
.capture-choice,.capture-celebration{height:auto;min-height:0;padding:0 0 12px}
.capture-choice>.growth-receipt,.capture-celebration>.growth-receipt{margin:0 auto 10px;padding:12px 20px;max-width:1000px}.capture-choice>.growth-receipt p,.capture-celebration>.growth-receipt p{margin:8px 0 0}
.capture-choice>.heading{margin:6px 0 12px}.capture-choice>.heading h1,.capture-celebration>h1{font-size:clamp(26px,3vw,42px);margin:6px 0}
.capture-celebration>.capture-ribbon{margin:4px auto 10px;padding:6px 20px}
.capture-choice-layout,.capture-celebration>.capture-layout{height:auto;margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:center}
.capture-choice-art{height:calc(var(--capture-height) + 52px);display:grid;grid-template-rows:minmax(0,1fr) 52px;align-items:stretch;min-height:0}
.capture-choice-art>.world-monster{position:static;inset:auto;margin:0;width:100%;height:100%;max-width:none;max-height:none;min-height:0;transform:none}
.capture-choice-art>h2{position:static;inset:auto;width:100%;height:52px;box-sizing:border-box;margin:0;display:flex;gap:8px;align-items:center;justify-content:center;padding:8px;font-size:24px}
.capture-celebration .capture-art{height:var(--capture-height);min-height:0;align-self:center;overflow:visible;animation:none}
.capture-celebration .capture-art>.world-monster{position:static;inset:auto;width:100%;height:100%;max-width:none;max-height:none;transform:none;animation:none;margin:0;filter:drop-shadow(0 0 20px #fff2a9)}
.capture-reveal .capture-art::before{content:'✦';position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(160px,25vw,300px);color:#fff4a2;opacity:0;pointer-events:none;animation:friendship-success-bloom 1.3s ease-out}
@keyframes friendship-success-bloom{0%{opacity:0;transform:rotate(-30deg)}30%{opacity:.7}100%{opacity:0;transform:rotate(40deg)}}
.shell[data-screen=solo]:has(.friendship-wait){padding-bottom:16px!important}
.capture-suspense.friendship-wait{padding:16px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 48%,#377d8a99,#081f46ef 76%);border:2px solid #e8c46c;box-sizing:border-box;min-height:calc(100svh - 110px);justify-content:center;color:#fff8df}
.friendship-wait header{z-index:3}.friendship-wait header>.tag{background:#092c55b3;border:1px solid #a3d6e4;color:#fff8df}
.capture-suspense.friendship-wait h1{margin:10px 0;font-size:clamp(28px,4vw,48px);background:#092b53dc;color:#fff7cb;text-shadow:0 3px #001a33;box-shadow:0 0 26px #ebd17733}
.friendship-wait .capture-ritual{position:relative;isolation:isolate;flex:1;min-height:180px;width:min(800px,90vw);height:clamp(210px,48svh,480px);max-height:52svh;margin:0 auto;display:grid;place-items:center}
.capture-suspense.friendship-wait .capture-ritual>.world-monster{position:relative;z-index:2;width:100%;height:100%;max-width:none;max-height:none;opacity:1;transform:none;animation:none;filter:drop-shadow(0 0 16px #fff2b477);transition:filter .6s}
.friendship-halo{position:absolute;inset:5% 10%;z-index:0;border-radius:50%;background:radial-gradient(ellipse,#fff4b17a,#9debe633 45%,transparent 70%);animation:friendship-light 1.1s ease-in-out 3 alternate;pointer-events:none}
.friendship-lights{position:absolute;inset:0;z-index:3;pointer-events:none}.friendship-lights i{position:absolute;left:var(--x);top:var(--y);font-size:clamp(20px,3vw,36px);font-weight:900;font-style:normal;color:#fff7b8;text-shadow:0 0 10px #f7d85a;opacity:0;animation:friendship-word 2s ease-out var(--delay) both}
.friendship-shimmer{position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,#fff4ae33 49%,transparent 63%);z-index:1;opacity:0;animation:friendship-shimmer 2.8s ease-out;pointer-events:none}
.capture-suspense.friendship-wait>.friendship-message{z-index:3;margin:4px auto 10px;min-height:1.5em;background:#082a50de;color:#fff8d2;border:1px solid #b9dce8;padding:10px 24px;font-size:clamp(19px,2.3vw,28px)}
.friendship-progress{height:6px;width:min(420px,70%);border-radius:10px;background:#041b35;overflow:hidden;margin:6px auto 12px;box-shadow:0 0 8px #c6f7ff44}.friendship-progress>span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#5edbff,#fff4a3);transform-origin:left;animation:friendship-progress 3.2s linear both}
.friendship-wait[data-friendship-phase=listening] .world-monster{filter:brightness(1.08) drop-shadow(0 0 22px #ffe6a6aa)}
.friendship-wait[data-friendship-phase=waiting] .friendship-halo{background:radial-gradient(ellipse,#fff4b1a6,#9debe644 45%,transparent 72%)}
.friendship-wait.friendship-unsure .friendship-lights,.friendship-wait.friendship-unsure .friendship-halo{opacity:.2;animation:none}.friendship-wait.friendship-unsure .world-monster{filter:none}.friendship-wait.friendship-unsure>.friendship-message{color:#e1eaff}
@keyframes friendship-light{from{opacity:.35}to{opacity:1}}
@keyframes friendship-word{0%{opacity:0;translate:0 45px}30%{opacity:1}100%{opacity:0;translate:0 -70px}}
@keyframes friendship-shimmer{0%{opacity:0;translate:-25% 0}45%{opacity:.85}100%{opacity:0;translate:25% 0}}
@keyframes friendship-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-height:650px) and (min-width:651px){.shell[data-screen=solo]:has(.capture-choice,.capture-celebration){--capture-height:clamp(160px,32svh,220px)}.capture-choice>.growth-receipt,.capture-celebration>.growth-receipt{padding:8px 16px;margin-bottom:6px}.capture-choice>.growth-receipt p,.capture-celebration>.growth-receipt p{margin-top:4px;font-size:14px}.capture-choice>.heading{margin:4px 0 8px}.capture-choice-layout>.panel{padding:16px}.capture-suspense.friendship-wait{padding:10px}.friendship-wait .capture-ritual{height:40svh;max-height:40svh}}
@media(max-width:650px){.capture-choice-layout,.capture-celebration>.capture-layout{grid-template-columns:minmax(0,1fr);gap:12px}.shell[data-screen=solo]:has(.capture-choice,.capture-celebration){--capture-height:30svh}.capture-choice-layout>.panel{padding:14px}.capture-choice-art>h2{font-size:20px}.capture-suspense.friendship-wait{padding:8px}.friendship-wait .capture-ritual{width:100%;max-height:42svh}.capture-suspense.friendship-wait>.friendship-message{font-size:18px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.friendship-halo,.friendship-lights i,.friendship-shimmer,.friendship-progress>span,.capture-reveal .capture-art::before{animation:none}.friendship-halo{opacity:.8}.friendship-lights i{opacity:.6}.friendship-progress>span{transform:none}}

/* Keep the anticipation camera bounded; SVG intrinsic size must not stretch it. */
.capture-suspense.friendship-wait{height:calc(100svh - 100px);min-height:0}
.friendship-wait .capture-ritual{flex:0 0 clamp(190px,44svh,380px);height:clamp(190px,44svh,380px);max-height:44svh;width:min(640px,86vw);min-height:0;display:block}
.capture-suspense.friendship-wait .capture-ritual>.world-monster{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:0}
.capture-celebration>h1{display:table;margin:8px auto 10px;background:#0b3558ed;color:#fff7dc;text-shadow:0 2px #05223b;border:2px solid #e8c66e;border-radius:18px;padding:8px 24px;line-height:1.3}
@media(max-height:650px){.friendship-wait .capture-ritual{flex-basis:38svh;height:38svh;max-height:38svh}.capture-suspense.friendship-wait h1{font-size:28px;padding:8px 16px}.capture-suspense.friendship-wait>.friendship-message{padding:8px 12px;margin:4px auto;font-size:19px}}

#visual-canvas .capture-suspense.friendship-wait{height:720px;min-height:0}
#visual-canvas .friendship-wait .capture-ritual{flex:0 0 380px;width:640px;height:380px;max-height:380px}
#visual-canvas .capture-suspense.friendship-wait .capture-ritual>.world-monster{height:100%;width:100%;max-height:100%}

.capture-celebration>.growth-receipt{justify-self:stretch;width:100%;box-sizing:border-box}
@media(max-height:650px) and (min-width:651px){
 .capture-celebration{gap:4px}.capture-celebration>h1{font-size:26px;line-height:1.2;padding:6px 18px;margin:2px auto 4px}
 .capture-celebration>.capture-ribbon{font-size:18px;line-height:1.3;padding:4px 18px;margin:2px auto 4px}
 .capture-celebration>.growth-receipt,.capture-choice>.growth-receipt{padding:8px 16px;margin:2px auto 4px}
 .capture-celebration .growth-heading,.capture-choice .growth-heading{font-size:16px;line-height:1.3}
 .capture-celebration .growth-receipt progress,.capture-choice .growth-receipt progress{height:10px;margin:5px 0}
 .capture-celebration .growth-receipt p,.capture-choice .growth-receipt p{font-size:14px;line-height:1.3;margin:4px 0 0}
 .capture-layout>.panel{padding:12px}.capture-layout>.panel h2{font-size:26px;margin:6px 0}.capture-layout>.panel p{font-size:14px;line-height:1.4;margin:6px 0}
}

/* Dodge moves only the normal sprite; HUD, size and impact location stay fixed. */
.arena .battle-stage .combat-figure>.dodge-sprite{animation:km-dodge var(--dodge-duration,550ms) ease-in-out var(--dodge-delay,130ms) both;will-change:transform}
.dodge-label{position:absolute;top:28%;left:50%;translate:-50% -50%;padding:5px 18px;border:2px solid #a9f5ff;border-radius:18px;background:#073458e8;color:#fff4aa;text-shadow:0 2px #03213e;white-space:nowrap;font-size:clamp(26px,3.7vw,44px);font-weight:900;z-index:7;pointer-events:none;opacity:0;animation:km-dodge-label .9s ease-out var(--dodge-delay,130ms) both}
.dodge-chance{position:absolute;left:12px;right:12px;top:70px;text-align:center;font-size:14px;color:#fff4ae;text-shadow:0 2px #05203d;pointer-events:none;animation:km-dodge-chance 2s both}
@keyframes km-dodge{0%{transform:translateX(0)}28%,64%{transform:translateX(calc(-1 * var(--dodge-travel,18px)))}100%{transform:translateX(0)}}
@keyframes km-dodge-label{0%{opacity:0}15%,70%{opacity:1}100%{opacity:0}}
@keyframes km-dodge-chance{0%,80%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.arena .battle-stage .combat-figure>.dodge-sprite{animation:none;will-change:auto}.dodge-label{animation:none;opacity:1}}
.practice-session kbd,.screen-actions kbd{display:inline-block;border:1px solid currentColor;border-radius:6px;padding:1px 7px;margin-left:12px;font:700 .8em system-ui;opacity:.9;line-height:1.4;white-space:nowrap}.practice-key-note{font-size:14px;text-align:center;margin:8px;color:#45627b}

button[data-shortcut]{position:relative;padding-right:56px!important}button[data-shortcut]>.shortcut-key{position:absolute;right:12px;top:50%;translate:0 -50%;margin:0;border:1px solid currentColor;border-radius:6px;padding:1px 6px;font:700 13px system-ui;line-height:1.4;opacity:.9;pointer-events:none}

/* Waiting players flank the progress guide; the start action stays with it. */
.online-arena:has(.waiting-room){height:100%;min-height:0;display:flex;flex-direction:column;gap:8px}
.online-arena:has(.waiting-room)>.arena-head{margin:0;min-height:0;gap:10px;align-items:center}
.online-arena:has(.waiting-room)>.arena-head h1{font-size:clamp(20px,2.4vw,30px);margin:0}
.online-arena:has(.waiting-room)>.next-step-note{display:none}
.online-arena:has(.waiting-room)>.match-rules{margin:0;padding:8px 14px;font-size:14px}
#room-content[data-status=waiting]:has(.waiting-room){flex:1;min-height:0;display:grid;align-items:center}
.waiting-room{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,1.5fr) minmax(0,1fr);align-items:center;gap:clamp(12px,2vw,28px);width:100%;max-width:1400px;margin:auto;padding:12px 0}
.waiting-room .lobby-player{min-width:0;text-align:center;padding:clamp(12px,1.5vw,24px);min-height:0;border:2px solid #d4b45f;background:linear-gradient(#fffdf3,#e8f3faf5);color:#173d61;border-radius:24px}
.waiting-room .lobby-player>.monster-art{display:block;width:100%;height:clamp(120px,26svh,260px);margin:0 auto}
.waiting-room .lobby-player h2{font-size:clamp(17px,2vw,26px);margin:6px 0;overflow-wrap:anywhere}
.waiting-room .lobby-player p{font-size:13px;line-height:1.5;color:#3f5d72;margin:8px 0;overflow-wrap:anywhere}
.lobby-side{display:block;font-weight:800;color:#3c607e;font-size:14px}
.waiting-room .lobby-placeholder{display:grid;place-items:center;height:clamp(120px,26svh,260px);font-size:70px;color:#7998af}
.lobby-center{min-width:0;text-align:center;padding:14px;border-radius:22px;background:#fff9ebed;border:1px solid #d4b45f}
.lobby-center .online-steps{margin:0 0 16px;gap:6px}
.lobby-center .online-steps li{font-size:13px;padding:9px 5px;flex-direction:column;line-height:1.4}
.lobby-center .online-steps li span{color:#173d61}
.lobby-center .lobby-heading{font-size:clamp(18px,2.1vw,27px);margin:0 0 10px}
.lobby-center .lobby-next{padding:0;margin:0;max-width:none}
.lobby-center .lobby-next p{margin:8px 0;font-size:14px;line-height:1.6;color:#32546d}
.lobby-center .ime-ready-note{padding:10px;font-size:13px;margin:8px 0}
.lobby-center .lobby-start{width:100%;min-width:0;font-size:clamp(14px,1.5vw,20px);min-height:50px}
@media(max-height:650px) and (min-width:701px){.waiting-room{padding:4px 0;gap:12px}.lobby-center{padding:10px}.lobby-center .online-steps{margin-bottom:8px}.lobby-center .online-steps li{padding:5px}.lobby-center .ime-ready-note{font-size:12px;padding:6px}.waiting-room .lobby-player>.monster-art,.waiting-room .lobby-placeholder{height:22svh}.online-arena:has(.waiting-room)>.arena-head button{padding:7px 12px;font-size:14px}.lobby-center .lobby-next p{font-size:12px;margin:5px 0}}
@media(max-width:700px){.waiting-room{grid-template-columns:1fr 1fr;gap:10px}.lobby-center{grid-column:1/-1;grid-row:2}.waiting-room .lobby-player{padding:10px;grid-row:1}.waiting-room .lobby-player>.monster-art,.waiting-room .lobby-placeholder{height:17svh}.waiting-room .lobby-player p{font-size:11px}.lobby-center .online-steps li{flex-direction:row}.online-arena:has(.waiting-room){height:auto}.lobby-center .lobby-start{position:sticky;bottom:8px}}

/* Keep match instructions and rules in one compact information strip. */
.online-arena>.match-context{display:flex;align-items:center;justify-content:space-between;gap:6px 16px;flex-wrap:wrap;margin:4px 0 6px;padding:5px 12px;background:#103c63ec;border:1px solid #d4b45f;border-radius:10px}
.online-arena>.match-context>p{font-size:12px;line-height:1.5;padding:0;margin:0;border:0;border-radius:0;background:none;color:#fff2d0;min-height:0}
.online-arena:has(.waiting-room)>.match-context>.next-step-note{display:none}
.online-arena>.arena-head{padding:5px 12px;min-height:0;margin:0;gap:8px;align-items:center}
.online-arena>.arena-head .eyebrow{display:none}
.online-arena>.arena-head h1{font-size:clamp(18px,2vw,26px);margin:0;line-height:1.3}
.online-arena>.arena-head .note{display:none}
.online-arena>.arena-head .actions{gap:6px;align-items:center}
.online-arena>.arena-head button{min-height:32px;font-size:13px;padding:6px 12px}
.online-arena>.arena-head .room-code{font-size:13px;letter-spacing:1px;padding:6px 10px}
@media(max-width:650px){.online-arena>.arena-head{flex-wrap:wrap}.online-arena>.match-context{gap:2px;padding:5px 8px}.online-arena>.match-context>p{font-size:11px}}

.online-arena:has(.battle-stage){height:100%;min-height:0;display:flex;flex-direction:column}
.online-arena #room-content:has(>.battle-stage){display:flex;flex-direction:column;flex:1;min-height:0}
.online-arena #room-content>.battle-stage{height:auto;min-height:150px;flex:1}
.online-arena #room-bottom{flex:none}
.online-arena #room-bottom>.progresses{margin:3px 16px 4px}
@media(min-width:701px) and (max-height:700px){.online-arena .battle-console .key-guide kbd{height:18px;font-size:12px;min-height:0}.online-arena .battle-console .key-guide>div{margin:1px 0;gap:5px}.online-arena .battle-console .key-guide{margin-top:3px}.online-arena .battle-console .question-panel{padding:4px 12px;min-height:0}.online-arena .battle-console .kana{font-size:22px;margin:0 0 4px}.online-arena .battle-console .roman{font-size:20px;margin:0}.online-arena .battle-console #type-hint{font-size:11px;padding:1px 5px;line-height:1.4}.online-arena #room-bottom>.battle-console{margin-bottom:4px!important}.online-arena .progresses label{font-size:11px;line-height:1.2;margin-bottom:3px}}
.online-arena>.arena-head button.secondary,.online-arena>.arena-head button.quiet{color:#123c60}

/* Retire only the defeated side, then bring in the next teammate. */
.fighter{--replacement-direction:-1}.fighter.right{--replacement-direction:1}
.fighter.replacement-exit .combat-figure>.monster-art{animation:team-retreat .45s ease-in forwards!important}
.fighter.replacement-enter .combat-figure>.monster-art{animation:team-arrival .55s cubic-bezier(.2,.8,.2,1) both!important}
.replacement-label{position:absolute;bottom:6%;left:50%;translate:-50% 0;z-index:9;max-width:95%;width:max-content;padding:6px 12px;border:1px solid #edcf79;border-radius:20px;background:#082c50f2;color:#fff5c6;font-size:clamp(12px,1.5vw,20px);font-weight:900;text-align:center;pointer-events:none;animation:replacement-caption 1.4s ease both}
@keyframes team-retreat{0%{opacity:1;transform:translate(0,0);filter:brightness(1)}30%{opacity:.8;filter:brightness(.8)}100%{opacity:0;transform:translate(calc(var(--replacement-direction)*55px),24px);filter:brightness(.7)}}
@keyframes team-arrival{0%{opacity:0;transform:translate(calc(var(--replacement-direction)*65px),10px);filter:brightness(1.7)}70%{opacity:1;transform:translate(calc(var(--replacement-direction)*-5px),0);filter:brightness(1.15)}100%{opacity:1;transform:translate(0,0);filter:brightness(1)}}
@keyframes replacement-caption{0%{opacity:0}15%,80%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.fighter.replacement-exit .combat-figure>.monster-art{animation:none!important;opacity:0}.fighter.replacement-enter .combat-figure>.monster-art{animation:none!important}.replacement-label{animation:none}}

/* A compact light meter lives between the HP cards, above VS. */
.perfect-meter{position:absolute;z-index:6;top:8px;left:50%;translate:-50% 0;width:clamp(210px,29%,360px);padding:7px 12px;border:1px solid #e6c96b;border-radius:14px;background:linear-gradient(135deg,#092d53f5,#154c70f2);color:#fff4cb;box-shadow:0 3px 12px #001a3e66;pointer-events:none}
.perfect-meter header{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px;font-weight:800;letter-spacing:.06em}
.perfect-meter header strong{font-size:23px;line-height:1;color:#fff2a0;text-shadow:0 0 12px #ffcf61}
.perfect-meter header strong small{font-size:11px;margin-left:4px}
.perfect-light-track{height:10px;margin:6px 0;border:1px solid #80949b;border-radius:20px;background:#041b38;position:relative;overflow:hidden}
.perfect-light-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#27b6ed,#9ceff5,#fff29a);box-shadow:0 0 12px #c3fdff,inset 0 0 4px white;transition:width .55s ease-out}
.perfect-light-track>.legend-mark{position:absolute;left:50%;top:0;height:100%;border-left:2px solid #fff5c0}
.perfect-meter p{display:flex;justify-content:space-between;gap:5px;margin:0;color:#fff4cb;font-size:10px;line-height:1.4}
.perfect-meter-note{display:block;text-align:center;font-size:9px;color:#cbe9fb;line-height:1.4;margin-top:2px}
.perfect-meter.practice-meter p{font-size:10px;margin-top:5px}
.word-complete-label.charge-label{left:13%;top:52%;font-size:clamp(14px,1.5vw,22px);color:#f5f6d5;text-shadow:1px 2px #123b60;animation:charge-caption .6s ease-out forwards}
.word-complete-label.perfect-label{display:flex;flex-direction:column;align-items:center;left:25%;top:38%;translate:-50% 0;font-size:clamp(32px,4.5vw,70px);line-height:1.05;color:#fff3a3;text-shadow:0 0 14px #ffb82e,3px 3px #a83e0b,-1px -1px #a83e0b;animation:perfect-caption .7s ease-out forwards}
.perfect-label>b{font-weight:950}.perfect-label>small{font-size:.33em;letter-spacing:.1em;margin-top:6px;color:#fff}
.charged-complete .fighter:first-child .combat-figure>.monster-art{animation:charge-glow .6s ease-out!important}
.perfect-complete .fighter:first-child .combat-figure>.monster-art{animation:perfect-glow .7s ease-out!important}
@keyframes charge-caption{0%{opacity:0;transform:translateY(5px)}20%,75%{opacity:1}100%{opacity:0;transform:translateY(-8px)}}
@keyframes perfect-caption{0%{opacity:0;transform:scale(.85) translateY(8px)}20%{opacity:1;transform:scale(1.08)}55%,80%{opacity:1;transform:scale(1)}100%{opacity:0;transform:translateY(-10px)}}
@keyframes charge-glow{40%{filter:brightness(1.15) drop-shadow(0 0 8px #fff4c0)}}
@keyframes perfect-glow{35%{filter:brightness(1.8) drop-shadow(0 0 26px #ffe778)}}
@media(min-width:701px) and (max-height:700px){.perfect-meter{top:4px;padding:5px 9px}.perfect-meter header strong{font-size:19px}.perfect-meter header{font-size:10px}.perfect-light-track{height:8px;margin:4px 0}.perfect-meter p{font-size:9px}}
@media(max-width:700px){.solo-arena .battle-stage:has(.perfect-meter){padding-top:70px;height:360px}.perfect-meter{top:3px;width:min(310px,88%);padding:5px 10px}.perfect-meter header strong{font-size:18px}.perfect-meter header{font-size:10px}.perfect-light-track{height:7px;margin:4px 0}.perfect-meter-note{font-size:8px}.word-complete-label.perfect-label{font-size:32px;top:48%}.word-complete-label.charge-label{font-size:13px;top:60%}}
@media(prefers-reduced-motion:reduce){.perfect-light-track>span{transition:none}.word-complete-label.perfect-label,.word-complete-label.charge-label{animation:none}.perfect-complete .fighter:first-child .combat-figure>.monster-art,.charged-complete .fighter:first-child .combat-figure>.monster-art{animation:none!important}}

@media(min-width:701px){.solo-arena .battle-stage:has(.perfect-meter) .combat-hud{width:min(70%,350px)}}

/* Facing belongs to the SVG image; CSS remains free to move the outer sprite. */
.arena .battle-stage .fighter .combat-figure>.framed-monster[data-facing]{transform:none}

/* A power bar, with a luminous fill and segmented metal frame. */
.perfect-meter{background:none;border:0;box-shadow:none;border-radius:0;padding:4px 5px;width:clamp(210px,29%,380px);filter:drop-shadow(0 2px 2px #041d3c)}
.perfect-meter header{padding:0 6px;color:#fff7c9;text-shadow:0 2px 3px #03162b;font-size:11px}
.perfect-meter header strong{font-size:17px;line-height:1}
.perfect-light-track{height:21px;margin:5px 0 4px;border:2px solid #e4cc83;border-radius:7px;background:linear-gradient(#111b2a,#334255 48%,#0c1726 52%);box-shadow:0 0 0 1px #142135,inset 0 2px 5px #020916,0 1px 0 #fff4b1;overflow:visible;isolation:isolate}
.perfect-light-track::before,.perfect-light-track::after{content:'';position:absolute;top:-4px;width:7px;height:25px;background:linear-gradient(90deg,#88672c,#fff5b9,#96753a);border:1px solid #fff1b8;border-radius:3px;z-index:3}
.perfect-light-track::before{left:-5px;transform:skew(-12deg)}.perfect-light-track::after{right:-5px;transform:skew(-12deg)}
.perfect-light-track>span{height:100%;border-radius:4px;position:relative;overflow:hidden;background:#ffd34e;box-shadow:0 0 8px #ffd34e88}
.perfect-light-track>span::after{content:none}
.perfect-light-track>.legend-mark{z-index:2;top:-4px;height:25px;border-left:2px solid #fff7ba;filter:drop-shadow(0 0 3px #ffe58b)}
.perfect-meter p{padding:0 6px;text-shadow:0 1px 3px #04172e;font-size:10px;font-weight:800}.perfect-meter-note{text-shadow:0 1px 3px #04172e}
.monster-display>.shiny-art[data-shiny-palette]{filter:drop-shadow(0 0 9px #fff0a5a0)}
@media(max-height:700px){.perfect-meter{padding:3px 5px}.perfect-meter header strong{font-size:16px}.perfect-light-track{height:16px;margin:4px 0}.perfect-light-track::before,.perfect-light-track::after,.perfect-light-track>.legend-mark{height:20px;top:-4px}.perfect-meter p{font-size:9px}}

.perfect-meter header{position:relative}.perfect-step-bonus{position:absolute;right:0;top:16px;color:#fff5a6;font-size:clamp(22px,3vw,36px);font-weight:950;text-shadow:0 0 12px #ffc83d,0 2px #805219;animation:perfect-bonus-up 1.5s ease-out both;z-index:8}
@keyframes perfect-bonus-up{0%{opacity:0;translate:0 8px}15%,70%{opacity:1}100%{opacity:0;translate:0 -25px}}
.release-monster{font-size:14px;margin-top:14px;color:#6b5360!important;border:1px solid #b6a29a!important}.release-confirm{text-align:center}.release-confirm>.monster-art{height:180px;max-width:100%}.release-confirm footer{display:flex;gap:14px;flex-wrap:wrap}.release-confirm footer button{flex:1;min-width:180px}
@media(prefers-reduced-motion:reduce){.perfect-step-bonus{animation:none}}

.care-stats .release-note{grid-column:1/-1;font-size:11px;color:#596c7b;line-height:1.5}.care-stats .care-actions .release-monster{grid-column:1/-1;min-height:34px;padding:7px 12px;margin-top:4px}

.time-meter{position:relative;min-width:0;width:100%;display:flex;align-items:center}.time-meter>#time-bar{display:block;width:100%}
.perfect-time-line{position:absolute;z-index:3;top:-4px;bottom:-4px;width:2px;translate:-1px 0;background:#fffbe2;box-shadow:0 0 3px #18385c,0 0 7px #fff8a3;pointer-events:none}
@media(max-width:650px){.console-status>.time-meter{grid-column:1/-1}}

.battle-rule-help{padding:10px 14px;border:1px solid #c5b77d;border-radius:12px;background:#fff8de;color:#234966;font-size:14px;line-height:1.7;margin:8px 0 14px}.public-rule{font-size:13px!important;line-height:1.6!important;color:#234966}.public-rule strong{color:#0a5380}
/* Dedicated effects are anchored to the receiving figure, never its sprite. */
.special-strike{position:absolute;inset:0;z-index:6;pointer-events:none;--attack-direction:1}.fighter:not(.right) .special-strike{--attack-direction:-1}.special-projectile{position:absolute;left:calc(50% + var(--attack-x));top:calc(48% + var(--attack-y));width:calc(130px * var(--attack-scale));height:calc(130px * var(--attack-scale));object-fit:contain;transform-origin:center;filter:drop-shadow(0 0 12px #ffe9a8);animation:special-straight var(--attack-duration) ease-in both}.special-energy svg{width:100%;height:100%;overflow:visible}.attack-fall .special-projectile{animation-name:special-fall}.attack-rise .special-projectile{animation-name:special-rise}.attack-beam .special-projectile{animation-name:special-beam}.attack-burst .special-projectile{animation-name:special-burst}.special-impact{position:absolute;left:calc(50% + var(--attack-x));top:calc(48% + var(--attack-y));width:calc(150px * var(--attack-scale));height:calc(150px * var(--attack-scale));object-fit:contain;animation:special-impact var(--attack-duration) ease-out both;transform:translate(-50%,-50%)}.special-impact-ring{border:5px solid #fff1a0;border-radius:50%;box-shadow:0 0 22px #ffc94e,inset 0 0 22px #ffe3a3}
@keyframes special-straight{0%{opacity:0;translate:calc(-240px * var(--attack-direction)) -50%;scale:.6}15%{opacity:1}70%{opacity:1;translate:-50% -50%;scale:1}100%{opacity:0;translate:-50% -50%;scale:1.15}}
@keyframes special-fall{0%{opacity:0;translate:calc(-160px * var(--attack-direction)) -330%;rotate:calc(-25deg * var(--attack-direction))}15%{opacity:1}72%{opacity:1;translate:-50% -50%;rotate:calc(-25deg * var(--attack-direction))}100%{opacity:0;translate:-50% -50%;scale:1.15}}
@keyframes special-rise{0%{opacity:0;translate:-50% 80%;scale:.7 .1}20%{opacity:1}70%{opacity:1;translate:-50% -65%;scale:1 1.3}100%{opacity:0;translate:-50% -80%;scale:1 1.4}}
@keyframes special-beam{0%{opacity:0;translate:-50% -210%;scale:.15 2.5}20%{opacity:1}65%{opacity:1;translate:-50% -80%;scale:1 2.5}100%{opacity:0;translate:-50% -80%;scale:1.2 2.8}}
@keyframes special-burst{0%{opacity:0;translate:-50% -50%;scale:.05}20%{opacity:1}70%{opacity:1;translate:-50% -50%;scale:1.5}100%{opacity:0;translate:-50% -50%;scale:1.8}}
@keyframes special-impact{0%,55%{opacity:0;scale:.1}70%{opacity:1;scale:.5}100%{opacity:0;scale:1.4}}
.combat-admin-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(400px,1.1fr);gap:18px;align-items:start}.combat-tabs{margin:18px 0}.combat-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.combat-field-grid label,.combat-fields>label{display:grid;gap:8px;margin:12px 0}.combat-fields input[type=number]{min-width:0;width:100%}.combat-fields td label{font-size:12px}.effect-upload-thumb{max-width:120px;max-height:120px;background:#183455;border-radius:12px}.combat-effect-preview{height:290px;position:relative;overflow:hidden;margin:16px 0;border:1px solid #b4cfe0;border-radius:16px;background:radial-gradient(ellipse at bottom,#42778a,#102d50)}.combat-effect-preview .effect-actor,.combat-effect-preview .effect-target{position:absolute;bottom:28px;width:42%;height:170px}.combat-effect-preview .effect-actor{left:4%}.combat-effect-preview .effect-target{right:4%}.combat-effect-preview.preview-left .effect-actor{left:auto;right:4%}.combat-effect-preview.preview-left .effect-target{right:auto;left:4%}.combat-effect-preview .monster-art{width:100%;height:100%}.combat-effect-preview .combat-figure{position:relative;width:100%;height:100%}.capture-bonus{background:#fff2b1;border:1px solid #d4ab48;padding:12px;border-radius:12px;font-weight:700}
@media(max-width:1000px){.combat-admin-grid{grid-template-columns:1fr}.combat-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.special-projectile{animation:special-impact .4s ease-out both}.special-impact{animation-duration:.4s}}
/* Crop only the display window: retain the supplied logo artwork unchanged. */
.dojo-logo{display:block;position:relative;width:156px;aspect-ratio:25/7;overflow:hidden;isolation:isolate}.dojo-logo img{position:absolute;width:125%;max-width:none;height:auto;left:-12.5%;top:-160.7143%;mix-blend-mode:multiply}.title-footer{position:absolute;inset:auto 16px 12px;z-index:4;display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.maker-badge{display:grid;justify-items:center;gap:3px;padding:7px 12px;background:#fffef5;border:1px solid #e4cb87;border-radius:12px;box-shadow:0 2px 8px #08234655;color:#173d61;text-decoration:none;font-size:14px;font-weight:700;line-height:1.35}.maker-badge:hover{background:#fff}.title-footer .title-credits{position:static;flex:none;font-size:14px;background:#10365ce8;border:1px solid #dfcb8a;text-decoration:none}.world-title .world-controls.title-actions{bottom:max(100px,12svh)}.creator-credit .dojo-logo{width:min(280px,100%);margin:0 0 20px}.creator-credit h2{font-size:18px;margin:16px 0 4px}.creator-credit p{margin:0 0 16px}.music-credit-heading{margin-top:28px}.credits-panel .back-to-game{display:inline-block;padding:12px 20px;border:1px solid #a88842;border-radius:12px;background:#e4f2fa;text-decoration:none;color:#173d61;font-weight:700}
@media(max-width:480px){.title-footer{inset:auto 10px 10px;gap:8px}.maker-badge{padding:6px 9px}.maker-badge .dojo-logo{width:132px}.title-footer .title-credits{padding:9px}.world-title .world-controls.title-actions{bottom:96px}}
.legendary-flight{--projectile-width:calc(clamp(150px,21vw,250px) * var(--attack-scale));left:calc(50% + var(--attack-x));top:calc(48% + var(--attack-y));width:var(--projectile-width);height:auto;margin-left:calc(var(--projectile-width) / -2);margin-top:calc(var(--projectile-width) / -4);background:none;box-shadow:none;border-radius:0;animation-duration:var(--attack-duration);filter:drop-shadow(0 0 7px #fff3b070)}.legendary-flight img{display:block;width:100%;height:auto}.legendary-impact{left:calc(50% + var(--attack-x));top:calc(48% + var(--attack-y));width:calc(105px * var(--attack-scale));height:auto;transform:translate(-50%,-50%);animation:legendary-impact var(--attack-duration) ease-out both}@keyframes legendary-impact{0%,55%{opacity:0;scale:.45}72%{opacity:1;scale:1}100%{opacity:0;scale:1.4}}.solo-defeat+.screen-actions{max-width:1250px}.solo-defeat+.screen-actions>button:last-child{flex:.7}.combat-effect-preview .fighter.right .legendary-flight{--distance:-230px}.combat-effect-preview .fighter:not(.right) .legendary-flight{--distance:230px}
@media(max-width:650px){.solo-defeat+.screen-actions{flex-wrap:nowrap}.solo-defeat+.screen-actions>button{flex:1 1 0;font-size:13px;padding:8px 6px}.solo-defeat+.screen-actions kbd{margin-left:4px;padding:1px 4px}.solo-defeat+.screen-actions>button:last-child{flex:.7}}
@media(prefers-reduced-motion:reduce){.legendary-flight{display:block;animation:legendary-impact .35s ease-out both}.legendary-impact{animation-duration:.35s}}
.combat-figure:has(.special-strike){overflow:visible}.camp>.camp-party>.evolution-ready-note{height:auto;min-height:0;align-items:center;justify-content:center;margin:8px 0 12px;padding:10px 14px;gap:10px}.camp>.camp-party>.evolution-ready-note strong{line-height:1.5}.camp>.camp-party>.evolution-ready-note button{flex:none;min-height:42px;margin:0}
/* Keep the clock's changing digits independent of the time-bar track. */
.console-status{grid-template-columns:minmax(0,auto) 7ch minmax(0,1fr);column-gap:14px}.console-status>.timer{width:7ch;min-width:7ch;max-width:7ch;margin:0;justify-self:end;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}.console-status>.time-meter{min-width:0;justify-self:stretch}.account-screen form>button[type=submit]{display:block;width:100%;margin:24px 0 8px;min-height:50px}.account-screen form{padding-bottom:8px}.dojo-links{display:flex;gap:12px;flex-wrap:wrap}.dojo-links>a{display:inline-block;padding:8px 12px;background:#e7f3fa;border:1px solid #bacdd6;border-radius:10px}.encounter-banner{display:grid;justify-items:center;gap:6px}.encounter-reason{background:#fff9e9ed;color:#173d60;font-size:13px;font-weight:700;padding:5px 10px;border-radius:9px}.attack-miss{position:absolute;top:28%;left:50%;transform:translateX(-50%);z-index:8;white-space:nowrap;font-size:clamp(19px,2.5vw,34px);font-weight:900;color:white;text-shadow:2px 2px #263c63,-2px -2px #263c63,0 2px 7px #142a45}
/* Reserve an unchanging console area while poses, hits and interval text change. */
.arena:has(.battle-stage){--battle-console-height:clamp(300px,44svh,370px)}.solo-arena:has(.battle-stage){height:100%;min-height:480px;display:flex;flex-direction:column}.solo-arena>.arena-head{flex:none}.solo-arena>.battle-stage,.online-arena #room-content>.battle-stage{height:0;flex:1 1 0;min-height:160px}.solo-arena>#battle-bottom{block-size:var(--battle-console-height);min-block-size:var(--battle-console-height);max-block-size:var(--battle-console-height);flex:none}.online-arena:not(.spectating) #room-bottom{block-size:calc(var(--battle-console-height) + 42px);min-block-size:calc(var(--battle-console-height) + 42px);max-block-size:calc(var(--battle-console-height) + 42px);flex:none}.solo-arena #battle-bottom>.battle-console,.online-arena:not(.spectating) #room-bottom>.battle-console{height:var(--battle-console-height);box-sizing:border-box;display:flex;flex-direction:column;margin-top:0!important;margin-bottom:0!important}.battle-console>.console-status,.battle-console>.key-guide,.battle-console>#type-hint{flex:none}.battle-console>.question-panel{flex:1;min-height:85px;overflow:auto}.online-arena #room-bottom>.typing:not(.battle-console){height:var(--battle-console-height);box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;margin-block:0}.battle-console .word-meaning{font-size:12px;line-height:1.4;margin:4px 0}.online-arena #room-bottom>.progresses{height:36px;overflow:hidden;margin-block:3px}
@media(max-width:650px){.console-status{grid-template-columns:minmax(0,1fr) 7ch;gap:5px 12px}.console-status>.time-meter{grid-column:1/-1}.arena:has(.battle-stage){--battle-console-height:clamp(310px,46svh,390px)}.account-screen form>button[type=submit]{margin-top:22px}}

/* The portrait height belongs to the art row, never the shortcut buttons. */
.camp>.camp-party>.actions{height:auto;min-height:0;align-items:center;gap:6px}
@media(max-width:650px){
 #app>.appbar:not(.admin-appbar){display:grid;grid-template-columns:minmax(85px,110px) minmax(0,1fr);gap:6px;min-height:58px;height:auto;padding:6px 8px}
 #app>.appbar:not(.admin-appbar) .brand{min-width:0;width:100%}
 #app>.appbar:not(.admin-appbar) .brand-logo{width:100%;max-height:42px}
 #app>.appbar:not(.admin-appbar) .actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;min-width:0}
 #app>.appbar:not(.admin-appbar) .actions :is(button,a){font-size:12px;min-height:30px;padding:4px 7px;margin:0}
 #app>.appbar:not(.admin-appbar) .login-id{font-size:12px}
 #app>.camp{min-height:0;height:auto;padding:8px 10px;gap:8px;align-items:start}
 .camp>.camp-party{padding:0;align-self:start}
 .camp>.camp-party>div:first-child{height:clamp(100px,16svh,145px)}
 .camp>.camp-party h1{font-size:16px;line-height:1.3;padding:5px 8px;margin:3px 0}
 .camp>.camp-party>p{font-size:13px;margin:3px 0 6px;padding:3px 10px}
 .camp>.camp-party>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .camp>.camp-party>.actions button{font-size:13px;min-height:34px;padding:5px 6px;margin:0}
 .camp>.camp-party>.evolution-ready-note{margin:4px 0;padding:5px 8px;font-size:12px;gap:5px}
 .camp>.camp-party>.evolution-ready-note button{font-size:12px;min-height:30px;padding:4px 6px}
 .camp>.camp-menu{gap:5px;margin:0}
 .camp>.camp-menu .camp-action{min-height:50px;height:auto;padding:5px 12px;gap:10px}
 .camp>.camp-menu .camp-action strong{font-size:20px;line-height:1.15}
 .camp>.camp-menu .camp-action small{font-size:12px;line-height:1.25;margin-top:2px}
 .camp>.camp-menu .game-icon{width:32px;height:32px}
}

.boot-title{position:fixed;inset:0;margin:0}.boot-caption{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);padding:8px 18px;border-radius:20px;background:#10365ce8;color:white;font:700 14px sans-serif;white-space:nowrap}

.direct-route .boot-title .world-sky{background:none}

/* Prioritize the complete question over the optional keyboard illustration. */
.battle-console{container-type:size}
.battle-console>.question-panel{min-height:120px;overflow:hidden;flex:1 1 auto}
.battle-console .question-panel .kana{font-size:max(18px,calc(clamp(22px,2.6vw,36px) * var(--question-scale,1)));line-height:1.2;margin:0 0 5px;overflow-wrap:anywhere}
.battle-console .question-panel .roman{font-size:max(16px,calc(clamp(17px,2vw,27px) * var(--question-scale,1)));line-height:1.3;letter-spacing:.07em}
.battle-console .key-guide{margin-top:4px}
.battle-console .key-guide>div{margin:2px 0;gap:6px}
.battle-console .key-guide kbd{height:clamp(14px,5cqh,25px);min-height:0;font-size:clamp(12px,4.6cqh,19px);border-bottom-width:2px}
.battle-console #type-hint{font-size:12px;line-height:1.3;padding:2px 6px 4px;margin:0}
@media(max-height:650px){.battle-console .key-guide kbd{height:16px;font-size:12px}.battle-console .key-guide>div{margin:1px 0}.battle-console>.question-panel{min-height:112px}}
@media(max-width:650px){.battle-console .key-guide>div{gap:3px}.battle-console .key-guide kbd{width:clamp(17px,5.5vw,31px)}.battle-console .word-meaning{font-size:11px;margin:2px 0}}
/* The receiving figure owns the effect, but its trajectory starts at the attacker. */
.combat-figure .anchored-flight{margin:0;transform:translate(-50%,-50%);animation-name:monster-projectile;animation-timing-function:ease-in}
.combat-figure .anchored-flight img{transform:scaleX(var(--flight-facing,1))}
.combat-figure .strike-impact:not(.legendary-impact){transform:translate(-50%,-50%);animation:legendary-impact .75s ease-out both}
@keyframes monster-projectile{0%{opacity:1;translate:var(--distance) var(--travel-y)}70%{opacity:1;translate:0 0}100%{opacity:0;translate:0 0}}
@media(prefers-reduced-motion:reduce){.combat-figure .anchored-flight{animation:legendary-impact .35s ease-out both;translate:0 0}}

.battle-console.compact-keyboard>.key-guide{display:none}

.shell[data-screen=solo]:has(.battle-stage),.shell[data-screen=room]:has(.battle-stage){height:calc(100svh - 48px);min-height:0;padding-block:8px;overflow:hidden}
@media(max-height:500px){.solo-arena:has(.battle-stage){min-height:0}.arena:has(.battle-stage){--battle-console-height:190px}.battle-console>.key-guide{display:none}.solo-arena>.battle-stage,.online-arena #room-content>.battle-stage{min-height:70px}.solo-arena .battle-stage:has(.perfect-meter){padding-top:0}.battle-console>.question-panel{min-height:105px}}

/* Center the visible projectile art, not a 1rem-high trail wrapper. */
.combat-figure .strike-flight.anchored-flight:not(.legendary-flight){height:auto;aspect-ratio:1;background:none;box-shadow:none;border-radius:0}
.combat-figure .strike-flight.anchored-flight:not(.legendary-flight)>img{display:block;width:100%;height:100%;object-fit:contain}

/* Legendary power condenses in open space, then launches after the charge. */
.legend-charge{position:absolute;z-index:7;pointer-events:none;width:clamp(28px,4vw,62px);aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,#fff 0 13%,var(--charge-color,#c8f1ff) 30%,transparent 70%);box-shadow:0 0 20px var(--charge-color,#c8f1ff);animation:legend-charge var(--charge-duration,200ms) ease-out both}
.legend-charge::before,.legend-charge::after{content:'';position:absolute;border:2px solid var(--charge-color,#c8f1ff);border-radius:50%;inset:-15%;animation:charge-ring var(--charge-duration,200ms) ease-out both}
.legend-charge::after{inset:-35%;animation-direction:reverse}
@keyframes legend-charge{0%{opacity:0;scale:.2}55%{opacity:1;scale:.8}90%{opacity:1;scale:1.15}100%{opacity:0;scale:.75}}
@keyframes charge-ring{from{opacity:0;scale:1.8}60%{opacity:1}to{opacity:0;scale:.3}}
.charged-strike .anchored-flight{animation-fill-mode:forwards;opacity:0}
@media(prefers-reduced-motion:reduce){.legend-charge::before,.legend-charge::after{animation:none}.legend-charge{animation:legend-charge .2s ease-out both}}
/* Rush owns its compact layout: the word, hint and actions stay in the viewport. */
.rush-entry{margin-top:24px;padding:20px;border:1px solid #b7d9e5;border-radius:20px;background:linear-gradient(120deg,#eaf9fb,#fff3ce);display:flex;gap:16px;align-items:center;justify-content:space-between}.rush-entry small,.rush-eyebrow{font-size:12px;letter-spacing:.19em;font-weight:900;color:#977027}.rush-entry h3{font-size:26px;margin:4px 0}.rush-entry p{margin:0;font-size:15px}.rush-entry button{flex-shrink:0;font-size:16px}
[data-screen="rush"]{padding:clamp(10px,2vh,24px);max-width:1400px;margin:auto}.rush-prep,.rush-result{background:linear-gradient(135deg,#fffdf2f7,#f1f7f5f5);border:2px solid #ddba69;border-radius:28px;padding:clamp(18px,3vw,36px);text-align:center;box-shadow:0 14px 45px #06244144}.rush-prep h1,.rush-result h1{font-size:clamp(28px,4vw,48px);margin:8px 0}.rush-prep p,.rush-result p{margin:10px 0}.rush-prep-grid{display:grid;grid-template-columns:1fr 1.2fr;align-items:center;gap:30px;max-width:1000px;margin:12px auto}.rush-buddy{display:grid;justify-items:center;align-content:center;gap:8px}.rush-buddy>.monster-art{width:100%;height:clamp(140px,28vh,300px);max-width:340px;object-fit:contain}.rush-buddy strong{font-size:20px}.rush-buddy>span{font-size:13px;letter-spacing:.12em;color:#597387}.rush-settings{text-align:left}.rush-settings h2{margin:0 0 12px}.rush-settings select{width:100%}.rush-course-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.rush-course-options button{font-size:19px;line-height:1.35;padding:15px 8px}.rush-course-options small{display:block;font-size:12px;margin-top:6px}.rush-course-options [aria-pressed="true"]{background:linear-gradient(#fff1a3,#ffd55a);outline:3px solid #f2b52d;outline-offset:2px}.rush-rule{line-height:1.7;font-size:15px}.rush-input-note{font-size:13px;color:#587184}.rush-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px}.rush-actions button{min-width:220px}.rush-actions kbd,.rush-play-footer kbd{margin-left:14px}.rush-error{color:#ae3450;font-weight:700;min-height:22px}
.rush-arena{position:relative;height:calc(100dvh - 125px);min-height:360px;max-height:900px;display:flex;flex-direction:column;overflow:hidden;border:2px solid #d7b966;border-radius:24px;color:#fff5d6;background:radial-gradient(ellipse at 50% 47%,#166681 0%,#102d50 45%,#08162c 100%);box-shadow:inset 0 0 80px #00101f,0 15px 40px #001b3c66}.rush-hud{display:grid;grid-template-columns:1fr 100px 120px;align-items:center;padding:16px 26px;gap:16px;background:#08203bc9}.rush-hud>div:first-child{display:grid;gap:4px}.rush-hud small{font-size:12px;letter-spacing:.08em;color:#a6cdd9}.rush-hud b{font-size:24px}.rush-combo,.rush-clock{text-align:center;display:grid;font-variant-numeric:tabular-nums}.rush-combo b{color:#ffdf71}.rush-clock b{font-size:32px}.rush-time-track{height:4px;background:#031b30}.rush-time-track span{display:block;width:100%;height:100%;transform-origin:left;background:#ffd25e;box-shadow:0 0 14px #ffc84f}.rush-stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;position:relative;isolation:isolate}.rush-stage:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.22;background:repeating-conic-gradient(from 0deg at 50% 46%,transparent 0 14deg,#40cde2 14.5deg 15deg,transparent 15.5deg 28deg);mask-image:radial-gradient(ellipse,transparent 12%,#000 80%)}.rush-slab{position:relative;width:min(900px,93%);min-height:clamp(110px,25vh,245px);padding:25px 15px;display:flex;align-items:center;justify-content:center;border:3px solid #679cb3;border-radius:12px 34px 16px 28px;background:linear-gradient(155deg,#335a6e,#193445 50%,#2c5365);box-shadow:inset 0 2px 14px #aeeaff66,inset 0 -12px 24px #061d35,0 0 35px #3de1f122,0 18px 0 #06162977;transition:border-color .12s,box-shadow .12s}.rush-slab h1{z-index:1;margin:0;font-family:ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#f5f8fc;text-shadow:0 3px 4px #001324;line-height:1.25}.rush-slab h1 span{color:#ffdf6b;text-shadow:0 0 18px #ffce47}.rush-cracks{position:absolute;inset:8px;pointer-events:none;opacity:var(--crack,0);background:linear-gradient(125deg,transparent 23%,#b6faff 23.3%,transparent 23.8%),linear-gradient(48deg,transparent 68%,#b6faff 68.3%,transparent 68.8%),linear-gradient(165deg,transparent 48%,#b6faff 48.3%,transparent 48.8%);filter:drop-shadow(0 0 3px #80eeff)}.rush-giant{border-color:#ddcbff;background:linear-gradient(135deg,#7653a8,#293f76 65%,#4e3c83);box-shadow:inset 0 0 30px #b9c8ff55,0 0 40px #b8a6ff33}.rush-slab>#rush-giant{position:absolute;top:8px;font-size:11px;letter-spacing:.2em;color:#e7d7ff}.rush-hint{text-align:center;min-height:2.6em;max-width:860px;color:#c2e3ef;font-size:clamp(13px,1.6vw,18px);margin:20px 0 4px;line-height:1.4}.rush-feedback{min-height:30px;color:#ffdf70;font-size:20px;font-weight:900;letter-spacing:.06em;text-align:center}.rush-typing-label{font-size:12px;color:#99bfce;margin:6px 0}.rush-stage input{width:min(480px,90%);height:40px;text-align:center;padding:6px 12px;background:#081f35;color:#fff6cf;border:1px solid #6fb6ce;border-radius:10px;font:18px ui-monospace,Consolas,monospace}.rush-stage input:focus{outline:2px solid #e9c765;outline-offset:3px}.rush-play-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;background:#05162bba;font-size:13px;letter-spacing:.04em}.rush-play-footer button{font-size:14px}.rush-countdown{position:absolute;inset:0;display:grid;place-content:center;background:#061a31ef;text-align:center;font-size:64px;color:#ffdf70;font-weight:900;z-index:3}.rush-countdown[hidden]{display:none}.rush-burst{position:absolute;top:40%;left:50%;pointer-events:none;z-index:4}.rush-burst i{position:absolute;width:20px;height:32px;background:linear-gradient(135deg,#f1fdff,#51d4e7);clip-path:polygon(20% 0,100% 25%,65% 100%,0 70%);animation:rush-shatter .5s ease-out forwards;transform-origin:center;box-shadow:0 0 12px #a3faff}.rush-big-burst i{background:linear-gradient(#fff6d3,#bc9cff);width:27px;height:38px}@keyframes rush-shatter{0%{opacity:1;transform:rotate(var(--angle)) translateX(25px) scale(.6)}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance)) rotate(110deg) scale(.4)}}
.rush-earned{font-size:clamp(28px,4vw,50px);font-weight:950;color:#b87a00;text-shadow:0 2px #fff}.rush-earned small{font-size:18px}.rush-growth{display:flex;justify-content:center;align-items:center;gap:40px;margin:0 auto;max-width:650px}.rush-result-buddy{position:relative;width:min(65%,360px)}.rush-result-buddy>.monster-art{width:100%;height:clamp(120px,23vh,260px);object-fit:contain}.rush-result-buddy #rush-level-flash{position:absolute;bottom:5%;width:100%;font-size:clamp(18px,2.8vw,30px);font-weight:950;color:#a86600;text-shadow:0 0 10px #fff8a3,0 2px #fff}.rush-level-tower{display:grid;justify-items:center;gap:9px;min-width:95px}.rush-level-tower>strong{font-size:26px}.rush-vertical-track{height:clamp(110px,23vh,255px);width:48px;background:#0b2b44;border:3px solid #ccaa59;border-radius:24px;overflow:hidden;box-shadow:inset 0 0 12px #0008,0 0 15px #dfc66d22;position:relative}.rush-vertical-track span{position:absolute;inset:0;transform-origin:bottom;transform:scaleY(0);background:linear-gradient(to top,#f6ac17,#ffe86f);box-shadow:0 -4px 15px #fff49e}.rush-level-tower>small{font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}.rush-level-change{font-size:22px}.rush-stat-gains{display:flex;justify-content:center;gap:16px}.rush-stat-gains>div{display:grid;gap:5px;min-width:120px;border-radius:12px;padding:12px;background:#e5f0ed}.rush-stat-gains em{font-style:normal;color:#397b4a;font-weight:800}.rush-evolution{color:#8251a0;font-weight:800}
@media(max-width:700px){.rush-entry{flex-direction:column;align-items:stretch}.rush-prep-grid{grid-template-columns:1fr;gap:10px}.rush-buddy>.monster-art{height:130px}.rush-buddy>span{display:none}.rush-settings h2{font-size:18px}.rush-prep h1,.rush-result h1{font-size:26px}.rush-actions{gap:8px}.rush-actions button{min-width:0;flex:1;font-size:14px;padding:12px 8px}.rush-actions kbd,.rush-play-footer kbd{display:none}.rush-hud{grid-template-columns:1fr 60px 80px;padding:12px;gap:6px}.rush-hud b{font-size:18px}.rush-clock b{font-size:25px}.rush-hud small{font-size:10px}.rush-stage{padding:12px}.rush-hint{margin-top:18px}.rush-play-footer{padding:10px}.rush-play-footer button{padding:10px;font-size:12px}.rush-growth{gap:16px}.rush-stat-gains{gap:6px}.rush-stat-gains>div{min-width:0;flex:1;padding:9px 4px;font-size:13px}.rush-result{padding:18px 12px}}
@media(max-height:650px) and (min-width:701px){.rush-prep,.rush-result{padding:16px 24px}.rush-prep h1,.rush-result h1{font-size:28px}.rush-prep-grid{margin:5px auto;gap:20px}.rush-buddy>.monster-art{height:160px}.rush-rule{font-size:13px}.rush-actions{margin-top:12px}.rush-growth{height:160px}.rush-result-buddy>.monster-art{height:150px}.rush-vertical-track{height:115px}.rush-earned{font-size:32px}.rush-stat-gains>div{padding:6px 12px}.rush-result p{margin:6px 0}.rush-stage{padding:12px}.rush-slab{min-height:100px}.rush-hint{margin:14px 0 0}.rush-arena{height:calc(100dvh - 105px)}}
@media(prefers-reduced-motion:reduce){.rush-burst i{animation:none;display:none}.rush-slab{transition:none}}
.rush-countdown>.monster-art{width:230px;height:200px;object-fit:contain;margin:0 auto 20px}.rush-countdown>b{font-size:40px}
@media(min-width:901px){[data-screen="roster"] .care-stats{overflow:visible;padding:16px 20px;display:flex;flex-direction:column}[data-screen="roster"] .care-stats h2{font-size:22px;margin-bottom:7px}[data-screen="roster"] .care-stats .stat-row{padding:10px 4px;min-height:38px}[data-screen="roster"] .care-actions{gap:6px}[data-screen="roster"] .care-actions button{min-height:36px;padding:7px 12px;font-size:15px}[data-screen="roster"] .release-note{font-size:11px}[data-screen="roster"] .rush-entry{margin-top:auto;padding:14px 16px;gap:12px}[data-screen="roster"] .rush-entry h3{font-size:23px}[data-screen="roster"] .rush-entry p{font-size:12px}[data-screen="roster"] .rush-entry button{font-size:14px;padding:11px}}
.rush-prep,.rush-result{padding:20px 26px}.rush-prep h1{font-size:38px}.rush-prep-grid{margin:5px auto}.rush-buddy>.monster-art{height:190px}.rush-result h1{font-size:34px;margin:5px 0}.rush-result .rush-earned{font-size:36px;margin:5px 0}.rush-result .rush-growth{height:185px}.rush-result-buddy>.monster-art{height:175px}.rush-result .rush-vertical-track{height:145px}.rush-result .rush-level-tower{gap:5px}.rush-result .rush-stat-gains>div{padding:8px 12px;gap:3px}.rush-result .rush-actions{margin-top:12px}.rush-result .rush-actions button{padding:11px 18px}.rush-result p{font-size:15px;margin:7px 0}.rush-result .rush-level-change{font-size:21px}.rush-result .rush-earned small{font-size:16px}
@media(max-width:700px){.rush-prep,.rush-result{padding:16px 12px}.rush-prep h1,.rush-result h1{font-size:26px}.rush-buddy>.monster-art{height:115px}.rush-prep-grid{gap:6px}.rush-rule{font-size:13px}.rush-settings .rush-input-note{font-size:12px}.rush-settings select{padding:8px}.rush-course-options button{font-size:16px;padding:11px 6px}.rush-course-options{margin-bottom:8px}.rush-result .rush-growth{height:160px}.rush-result .rush-vertical-track{height:120px}.rush-result-buddy>.monster-art{height:145px}.rush-result .rush-stat-gains>div{padding:7px 4px}.rush-result .rush-actions button{padding:10px 6px}}
@media(min-width:901px){[data-screen="roster"] .care-stats{height:100%;min-height:0;overflow:auto;padding:12px 16px}[data-screen="roster"] .care-stats h2{height:34px;min-height:34px;margin:0 0 6px;font-size:20px;line-height:1.2}[data-screen="roster"] .care-stats .stat-row{min-height:28px;padding:5px 4px;font-size:14px;line-height:1.3;flex:1 0 28px}[data-screen="roster"] .care-stats .stat-row b{font-size:19px;line-height:1.2}[data-screen="roster"] .care-actions{gap:4px;flex-shrink:0}[data-screen="roster"] .care-actions button{padding:5px 10px;min-height:28px;font-size:13px;line-height:1.3}[data-screen="roster"] .care-actions .release-note{font-size:10px;line-height:1.3}[data-screen="roster"] .rush-entry{margin-top:8px;padding:10px 12px;min-height:72px;flex-shrink:0}[data-screen="roster"] .rush-entry h3{font-size:21px;margin:2px 0}[data-screen="roster"] .rush-entry small{font-size:10px}[data-screen="roster"] .rush-entry p{line-height:1.3;font-size:11px}[data-screen="roster"] .rush-entry button{font-size:13px}}
/* Readable questions share the same fixed console in adventure, matches and tournaments. */
.battle-console>.question-panel{display:flex;flex-direction:column;justify-content:safe center;align-items:center;gap:8px;padding:12px 18px}
.battle-console .question-panel .kana{font-size:max(24px,calc(clamp(30px,3.5vw,50px)*var(--question-scale,1)));line-height:1.25;margin:0;text-align:center;width:100%}
.battle-console .question-panel .roman{font-size:max(20px,calc(clamp(24px,2.8vw,36px)*var(--question-scale,1)));line-height:1.3;margin:0;letter-spacing:.04em;text-align:center;width:100%}
/* Care rows stay compact; extra height belongs to actions and the illustrated training card. */
[data-screen="roster"] .care-stats{display:flex;flex-direction:column;min-height:0;overflow:auto;padding:14px 18px;gap:10px}
[data-screen="roster"] .care-statistics{flex:0 0 auto;max-height:50%;min-height:0}
[data-screen="roster"] .care-statistics h2{font-size:22px;height:auto;min-height:32px;line-height:1.3;margin:0 0 6px;padding:5px 12px}
[data-screen="roster"] .care-statistics .stat-row{flex:none;min-height:30px;padding:7px 4px;font-size:15px;line-height:1.35}
[data-screen="roster"] .care-statistics .stat-row b{font-size:21px;line-height:1.3}
[data-screen="roster"] .care-actions{flex:0 0 auto;display:grid;gap:7px;margin:0}
[data-screen="roster"] .care-actions button{font-size:15px;line-height:1.3;min-height:35px;padding:7px 12px}
[data-screen="roster"] .care-actions .release-note{font-size:12px;line-height:1.4}
[data-screen="roster"] .rush-entry{display:grid;grid-template-columns:minmax(105px,30%) minmax(0,1fr);align-items:stretch;flex:1 0 122px;min-height:122px;margin:0;padding:0;gap:0;overflow:hidden;border:1px solid #dbb85c;border-radius:16px;background:linear-gradient(115deg,#f4fbfa,#fff1bc)}
[data-screen="roster"] .rush-entry-art{display:block;width:100%;height:100%;min-height:122px;max-height:230px;object-fit:cover;object-position:70% center}
[data-screen="roster"] .rush-entry>div{padding:12px 16px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px}
[data-screen="roster"] .rush-entry small{font-size:13px;letter-spacing:.06em;color:#785c24}
[data-screen="roster"] .rush-entry h3{font-size:clamp(19px,2vw,27px);line-height:1.3;margin:0}
[data-screen="roster"] .rush-entry p{font-size:14px;line-height:1.5;margin:0}
[data-screen="roster"] .rush-entry button{font-size:15px;padding:9px 18px;min-height:36px;margin-top:3px}
[data-screen="roster"]:not(.has-screen-actions) .care-layout{flex:1;min-height:0}
[data-screen="roster"]:not(.has-screen-actions) .roster-footer{flex:none;padding:5px 12px;min-height:0;background:#0b3455d9;border-radius:12px}
[data-screen="roster"] .roster-footer p{font-size:13px;margin:3px 0;line-height:1.5}
.dex-description{grid-column:1/-1;padding:18px 22px;border-top:1px solid #c7ae78;background:#fff9e9bd;border-radius:14px;color:#173b57}
.dex-description h3{margin:0 0 9px;font-size:20px}.dex-description p{font-size:18px;line-height:1.9;margin:0;max-width:48em}
/* New crystal arena: image background stays still, bounded foreground pieces move. */
[data-screen="rush"]{max-width:1600px;padding:12px 18px 18px}
.rush-prep,.rush-result{color:#f1f7ff;background:linear-gradient(#06192c46,#061b316b),url('/assets/rush/training.png') center/cover;border-color:#69bbdc;box-shadow:inset 0 0 90px #00152933,0 14px 40px #00162d55;text-shadow:0 2px 4px #00182c88}
.rush-prep{padding:22px 28px}.rush-prep h1{color:#fff2bb}.rush-prep .rush-eyebrow,.rush-result .rush-eyebrow{color:#ffdf8a}.rush-prep .rush-subtitle{font-size:17px;color:#d5e9f4}
.rush-prep-grid{gap:24px;max-width:1060px}.rush-buddy{align-self:stretch;padding:20px 8px}.rush-buddy>.monster-art{height:210px;max-width:360px;filter:drop-shadow(0 10px 18px #001b3a66)}.rush-buddy>span{color:#d0e6f5;font-size:14px}.rush-buddy strong{color:#fff5ca}
.rush-settings{padding:20px;background:#071e39db;border:1px solid #7eb9d16b;border-radius:20px;backdrop-filter:blur(4px)}.rush-settings h2{color:#eaf9ff;font-size:22px}.rush-settings label{color:#e5f3fe;font-size:15px}.rush-settings .rush-input-note{color:#c2ddeb;font-size:14px}.rush-rule{color:#e6f4fc;font-size:15px}.rush-settings select{background:#eff8fc;color:#103753}.rush-settings .rush-error{color:#ffcfad}.rush-settings .rush-course-options button{font-size:19px;text-shadow:none}.rush-settings .rush-course-options small{font-size:13px}.rush-settings .rush-course-options [aria-pressed="true"]{color:#25384e}.rush-prep .rush-actions .secondary,.rush-result .rush-actions .secondary{background:#143c59;color:#eef8ff;border-color:#92cce0}
.rush-arena{height:calc(100dvh - 108px);background:linear-gradient(#00193616,#00142733),url('/assets/rush/forward.png') center/cover;border-color:#58aeca;box-shadow:inset 0 0 80px #00132b66,0 15px 40px #001b3c66}
.rush-hud{grid-template-columns:minmax(190px,1fr) 150px 190px 115px;padding:12px 24px;gap:20px;flex-shrink:0;background:#031b35cb}.rush-hud>div:first-child>b{font-size:22px}.rush-hud small{font-size:13px}.rush-combo b,.rush-live-xp b{display:block;font-size:44px;line-height:1.1;color:#ffdf75;font-variant-numeric:tabular-nums;transform-origin:center}.rush-combo,.rush-live-xp{display:grid;justify-items:center;text-align:center;min-width:0}.rush-live-xp b{color:#fff1ae}.rush-clock b{font-size:30px}
.rush-stage{padding:6px 16px;gap:3px}.rush-stage:before{display:none}.rush-stage #rush-burst{display:none}
.rush-slab,.rush-slab.rush-giant{width:92%;max-width:760px;height:clamp(130px,27vh,245px);min-height:0;padding:0;flex:0 1 auto;overflow:hidden;border:0;border-radius:0;background:none;box-shadow:none;transition:none;isolation:isolate}
.rush-slab img.rush-wall,.rush-cut-piece>img{position:absolute;left:0;top:50%;width:100%;height:auto;max-width:none;transform:translateY(-50%);pointer-events:none;z-index:0}
.rush-slab h1,.rush-cut-word{position:relative;width:72%;max-width:72%;margin:0 auto;color:#f6faff;font-family:ui-monospace,Consolas,monospace;font-weight:900;white-space:pre-wrap;overflow-wrap:anywhere;text-align:center;line-height:1.2;text-shadow:0 3px 5px #00182e,0 0 7px #001934;z-index:2}
.rush-slab h1 span{color:#ffe59b;text-shadow:0 0 12px #ffdd7955}.rush-slab.rush-giant img.rush-wall{filter:drop-shadow(0 0 10px #a5e8ff)}
.rush-slab>#rush-giant{top:14px;font-size:12px;z-index:3}.rush-cut-overlay{position:absolute;inset:0;z-index:4;pointer-events:none}.rush-cut-piece{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;will-change:transform,opacity}.rush-cut-word{display:block;color:#ffe59b}.rush-slash{position:absolute;left:-3%;top:50%;width:106%;height:3px;transform:rotate(var(--slash-angle));background:linear-gradient(90deg,transparent,#c4fcff 10%,#fffbdc 50%,#9defff 90%,transparent);box-shadow:0 0 8px #ecffff,0 0 22px #56d6ff;transform-origin:center;z-index:6}.rush-cut-giant .rush-slash{height:5px;box-shadow:0 0 14px #fff6b9,0 0 28px #8beaff}
.rush-meaning{width:min(800px,93%);background:#f0faffef;color:#123958;padding:9px 20px;border:1px solid #9cdbef;border-radius:14px;box-shadow:0 7px 20px #001b3a33;text-align:center;flex-shrink:0}.rush-meaning>small{display:block;font-size:12px;color:#486f89;font-weight:700;letter-spacing:.08em}.rush-meaning .rush-hint{color:#103d5c;font-size:clamp(18px,2.1vw,26px);font-weight:800;line-height:1.45;min-height:0;margin:2px 0;max-width:none}
.rush-feedback{min-height:27px;font-size:20px;margin-top:5px}.rush-xp-gain{position:absolute;right:8%;top:12%;font-size:23px;color:#fff0a1;font-weight:900;pointer-events:none;opacity:0}.rush-typing-label{font-size:13px;margin:2px 0}.rush-stage input{height:38px;flex-shrink:0}.rush-play-footer{flex-shrink:0;padding:8px 20px}.rush-play-footer>span{font-size:14px}.rush-play-footer>span b{font-size:19px;color:#ffedac}.rush-countdown{background:linear-gradient(#03152acc,#03152a88),url('/assets/rush/training.png') center/cover}.rush-countdown b{font-size:38px}
.rush-result{padding:18px 26px}.rush-result h1{color:#fff2c9}.rush-result .rush-earned{font-size:42px;color:#ffdf80;text-shadow:0 3px 7px #001125}.rush-result .rush-earned>span{display:inline-block;font-variant-numeric:tabular-nums;min-width:2ch}.rush-result-buddy{display:grid;justify-items:center;gap:4px}.rush-result-buddy #rush-level-flash{position:static;min-height:30px;font-size:26px;line-height:1.15;color:#ffe48a;text-shadow:0 0 12px #15364d}.rush-result-buddy>strong{font-size:18px;color:#f4faff}.rush-result-buddy>.monster-art{height:145px}.rush-result .rush-growth{height:225px}.rush-result .rush-level-tower>strong{color:#fff2bd}.rush-result .rush-level-tower>small{font-size:14px;color:#deeff9}.rush-result .rush-level-change{font-size:22px;color:#fff2bd}.rush-result .rush-stat-gains>div{background:#092b47df;border:1px solid #80bad277;padding:9px 18px}.rush-result .rush-stat-gains small{font-size:14px;color:#c5e1f0}.rush-result .rush-stat-gains b{color:#f7fbff}.rush-result .rush-stat-gains em{color:#c1f3a6}.rush-result p{color:#e7f4fc}.rush-result p.rush-evolution{color:#fff0a0}
@media(max-width:900px){[data-screen="roster"] .care-statistics{max-height:none}[data-screen="roster"] .rush-entry h3{font-size:21px}[data-screen="roster"] .rush-entry-art{max-height:180px}.rush-hud{grid-template-columns:1fr 1fr 1fr;gap:8px;padding:10px 16px}.rush-hud>div:first-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.rush-hud>div:first-child>b{font-size:17px}.rush-hud>div:first-child>small{font-size:12px}.rush-combo b,.rush-live-xp b{font-size:34px}.rush-clock b{font-size:27px}}
@media(max-width:700px){[data-screen="rush"]{padding:8px}.rush-prep{padding:14px 12px}.rush-prep h1{font-size:27px}.rush-prep .rush-subtitle{font-size:14px}.rush-prep-grid{gap:8px}.rush-buddy{padding:6px}.rush-buddy>.monster-art{height:110px}.rush-buddy strong{font-size:17px}.rush-settings{padding:13px}.rush-settings h2{font-size:18px}.rush-settings .rush-course-options button{font-size:16px}.rush-settings .rush-course-options small{font-size:12px}.rush-settings .rush-input-note{font-size:13px}.rush-rule{font-size:14px}.rush-arena{height:calc(100dvh - 90px);min-height:460px}.rush-stage{padding:6px 7px}.rush-slab,.rush-slab.rush-giant{width:100%;height:clamp(130px,24vh,200px)}.rush-slab>#rush-giant{top:10px;font-size:10px}.rush-meaning{width:94%;padding:8px 10px}.rush-meaning .rush-hint{font-size:18px;line-height:1.45}.rush-feedback{font-size:18px}.rush-typing-label{font-size:12px}.rush-play-footer{padding:8px}.rush-play-footer>span{font-size:11px}.rush-play-footer>span b{font-size:16px}.rush-result{padding:15px 12px}.rush-result h1{font-size:25px}.rush-result .rush-earned{font-size:34px}.rush-result .rush-growth{height:205px}.rush-result-buddy>.monster-art{height:130px}.rush-result-buddy #rush-level-flash{font-size:21px;min-height:24px}.rush-result-buddy>strong{font-size:16px}.rush-result .rush-stat-gains>div{padding:8px 6px}.rush-result .rush-actions{gap:7px}.dex-description{padding:14px}.dex-description p{font-size:16px;line-height:1.8}}
@media(max-height:680px) and (min-width:701px){.rush-prep{padding:13px 20px}.rush-prep h1{font-size:29px}.rush-prep-grid{gap:18px}.rush-buddy{padding:4px}.rush-buddy>.monster-art{height:150px}.rush-settings{padding:12px}.rush-settings h2{font-size:19px;margin-bottom:8px}.rush-course-options button{padding:10px 8px}.rush-settings p{margin:6px 0}.rush-hud{padding:7px 20px}.rush-combo b,.rush-live-xp b{font-size:34px}.rush-slab,.rush-slab.rush-giant{height:clamp(120px,25vh,180px);max-width:560px}.rush-meaning{padding:6px 14px}.rush-meaning .rush-hint{font-size:20px}.rush-feedback{font-size:17px;min-height:22px;margin:0}.rush-result h1{font-size:28px}.rush-result .rush-growth{height:165px}.rush-result-buddy>.monster-art{height:100px}.rush-result .rush-earned{font-size:32px}.rush-result .rush-stat-gains>div{padding:5px 12px}.rush-result .rush-level-change{font-size:19px}.rush-result-buddy #rush-level-flash{font-size:20px;min-height:23px}.rush-result .rush-actions{margin-top:8px}}
[data-screen="roster"] .care-stats{padding:10px 14px;gap:6px}
[data-screen="roster"] .care-statistics h2{font-size:21px;line-height:1.2;min-height:30px;padding:4px 10px;margin-bottom:5px;background:linear-gradient(90deg,#0b3159,#1a6785);color:#fff;border-radius:12px}
[data-screen="roster"] .care-statistics .stat-row{height:30px;min-height:30px;padding:3px 4px;font-size:14px;line-height:1.25}
[data-screen="roster"] .care-statistics .stat-row b{font-size:19px;line-height:1.2}
[data-screen="roster"] .care-actions{gap:5px}
[data-screen="roster"] .care-actions button{font-size:14px;line-height:1.25;min-height:30px;padding:4px 10px}
[data-screen="roster"] .care-actions .release-note{font-size:11px;line-height:1.3}
.rush-prep,.rush-result{display:flex;flex-direction:column;max-height:calc(100dvh - 100px);overflow:hidden}
.rush-prep>.rush-eyebrow,.rush-prep>h1,.rush-prep>.rush-subtitle,.rush-prep>.rush-actions,.rush-result>.rush-actions{flex-shrink:0}
.rush-prep-grid{min-height:0;overflow:auto;flex:1 1 auto;width:100%;padding:3px}
.rush-prep .rush-actions,.rush-result .rush-actions{margin-top:10px}
.rush-result .rush-growth{min-height:160px;height:190px;max-height:225px;flex:1 1 auto;width:100%}
.rush-result .rush-stat-gains,.rush-result>.rush-level-change,.rush-result>.rush-earned{flex-shrink:0}
@media(max-width:700px){.rush-prep,.rush-result{max-height:calc(100dvh - 82px)}.rush-prep-grid{display:flex;flex-direction:column;align-items:stretch}.rush-buddy{gap:3px}.rush-buddy>.monster-art{height:90px}.rush-prep .rush-actions{padding-top:5px}.rush-settings{flex-shrink:0}.rush-settings .rush-rule{font-size:13px}.rush-result .rush-growth{min-height:150px}.rush-result .rush-stat-gains>div{min-width:0}.rush-result>p:last-of-type{font-size:13px;line-height:1.4}}
[data-screen="roster"] .rush-entry>div{padding:8px 12px;gap:2px}
[data-screen="roster"] .rush-entry small{font-size:12px;line-height:1.2}
[data-screen="roster"] .rush-entry h3{font-size:22px;line-height:1.2}
[data-screen="roster"] .rush-entry p{font-size:13px;line-height:1.3}
[data-screen="roster"] .rush-entry button{font-size:14px;line-height:1.25;min-height:32px;padding:5px 12px;margin-top:2px}
.rush-error:empty{display:none}
.rush-typing-label{color:#e6f5ff;background:#06243ee6;padding:3px 8px;border-radius:6px;text-shadow:0 1px 2px #00182b}
@media(max-height:680px) and (min-width:701px){.rush-settings label{margin:8px 0 5px}.rush-settings select{padding:8px;min-height:36px}.rush-settings .rush-course-options button{padding:8px}.rush-settings .rush-course-options small{margin-top:3px}.rush-settings .rush-rule{font-size:14px;line-height:1.45}.rush-settings .rush-input-note{font-size:13px}}

/* Roster actions and immediate-input Rush HUD. */
[data-screen="roster"] .care-actions{gap:10px;margin:0}
[data-screen="roster"] .care-actions button{min-height:60px;padding:12px 16px;font-size:19px;line-height:1.3}
[data-screen="roster"] .care-actions .release-monster{background:#fffaf0;color:#63596b;box-shadow:none;border:1px solid #afa29a}
[data-screen="roster"] .release-note{font-size:12px;line-height:1.3}
[data-screen="roster"] .care-statistics{max-height:none}
[data-screen="roster"] .rush-entry{grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:110px;flex:1 0 110px;max-height:160px;padding:12px 16px;gap:12px}
[data-screen="roster"] .rush-entry>div{padding:0;gap:5px}
[data-screen="roster"] .rush-entry h3{font-size:23px}
[data-screen="roster"] .rush-entry p{font-size:16px;line-height:1.5}
[data-screen="roster"] .rush-entry button{font-size:18px;min-height:52px;min-width:160px;padding:10px 15px;margin:0;white-space:normal}
@media(min-width:901px){
 [data-screen="roster"]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;height:calc(100dvh - 64px);padding:12px 2.5vw;overflow:hidden}
 [data-screen="roster"].has-screen-actions{grid-template-rows:auto minmax(0,1fr) auto auto}
 [data-screen="roster"]>.heading{margin:0}
 [data-screen="roster"]>.heading h1{font-size:clamp(28px,4dvh,42px);line-height:1.2;padding:10px 20px;margin:0}
 [data-screen="roster"] .care-layout{height:auto;min-height:0;align-items:stretch}
 [data-screen="roster"] .care-portrait{height:100%;min-height:0;grid-template-rows:auto minmax(90px,1fr) auto auto auto}
 [data-screen="roster"] .care-stats{align-self:stretch;gap:8px;overflow:auto}
 [data-screen="roster"] .care-statistics .stat-row{height:30px;min-height:30px;padding:3px 4px}
}
.rush-hud{display:flex;justify-content:space-between;gap:18px}
.rush-hud>div:first-child{display:grid}
.rush-hud-metrics{display:flex;align-items:center;gap:32px}
.rush-breaks{text-align:center;display:grid;gap:3px;font-variant-numeric:tabular-nums}
.rush-breaks b{font-size:32px;color:#ffe390;min-width:3ch}
.rush-question-row{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:20px;align-items:end;width:100%;max-width:min(100%,calc(81dvh + 200px));position:relative}
.rush-question-row .rush-slab{width:100%;max-width:none;overflow:visible}
.rush-score-panel{position:relative;z-index:8;display:grid;gap:14px;padding:16px 18px;border-radius:16px;border:1px solid #80d7f077;background:#031c37d9;box-shadow:0 5px 22px #00152b66;align-self:end;margin-bottom:8px}
.rush-score-panel .rush-combo,.rush-score-panel .rush-live-xp{display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:right}
.rush-score-panel b{display:block;height:1em;width:100%;font-size:68px;line-height:1;color:#ffe071;filter:drop-shadow(0 0 6px #ffc84033)}
.rush-score-panel .rush-live-xp b{font-size:55px;color:#fff2b4}
.rush-score-panel small{font-size:14px;letter-spacing:.12em;color:#d8edff}
.rush-digital{display:block;width:100%;height:1em;overflow:visible}
.rush-score-panel .rush-xp-gain{right:0;top:-34px;font-size:25px;white-space:nowrap}
.rush-feedback{min-height:54px;display:flex;align-items:center;justify-content:center;margin:2px 0;font-size:16px;line-height:1.2}
.rush-feedback[data-tone="break"],.rush-feedback[data-tone="perfect"]{font-size:34px;font-weight:950;font-style:italic;letter-spacing:.04em;text-shadow:0 2px 4px #001d34,0 0 18px #5ad6ff;color:#eaffff}
.rush-feedback[data-tone="perfect"]{color:#ffe27b;text-shadow:0 2px 4px #001d34,0 0 18px #ffc84899}
.rush-countdown>.monster-art{width:min(470px,65vw);height:clamp(210px,43dvh,410px);margin:0 auto 15px;--mon-scale:1}
.rush-countdown{justify-items:center}
.rush-growth-history{display:grid;gap:12px}.rush-growth-item{display:flex;align-items:center;gap:15px;padding:14px;border:1px solid #c8b581;border-radius:14px;background:#fffdf3}
.rush-growth-item .monster-art{width:90px;height:90px;flex-shrink:0}.rush-growth-item h3,.rush-growth-item p{margin:4px 0}
.rush-growth-item strong{color:#8d6200}.rush-growth-item time{font-size:13px;color:#49647c}
@media(max-width:900px){
 [data-screen="roster"] .rush-entry{grid-template-columns:1fr;padding:16px;gap:12px;max-height:none;flex:none}
 [data-screen="roster"] .rush-entry button{width:100%}
 .rush-hud>div:first-child{display:grid;gap:3px}.rush-hud-metrics{gap:14px}.rush-breaks b{font-size:26px}
 .rush-question-row{display:flex;flex-direction:column;align-items:stretch;gap:2px;max-width:620px}
 .rush-question-row .rush-slab{height:clamp(110px,22dvh,180px)}
 .rush-score-panel{display:flex;gap:22px;align-self:flex-end;padding:9px 14px;margin:0 3% 8px;width:260px}
 .rush-score-panel>div{flex:1;min-width:0}.rush-score-panel b{font-size:45px}.rush-score-panel .rush-live-xp b{font-size:40px}
 .rush-feedback{min-height:42px}.rush-feedback[data-tone]{font-size:26px}
 .rush-hud small{font-size:11px}.rush-hud>div:first-child>b{font-size:17px}
}
@media(max-height:680px) and (min-width:901px){
 [data-screen="roster"] .care-actions button{min-height:48px;padding:9px 12px;font-size:17px}
 [data-screen="roster"] .care-actions{gap:8px}
 [data-screen="roster"] .care-actions .release-note{display:none}
 [data-screen="roster"] .care-stats{padding:8px 12px;gap:6px}
 [data-screen="roster"] .care-statistics .stat-row{height:24px;min-height:24px}
 [data-screen="roster"] .rush-entry{min-height:94px;flex-basis:94px;padding:10px 12px}
 [data-screen="roster"] .rush-entry p{font-size:14px}.rush-feedback{min-height:42px}
 .rush-question-row{max-width:720px}.rush-question-row .rush-slab{height:150px}
 .rush-score-panel{padding:10px 15px;gap:10px}.rush-score-panel b{font-size:58px}.rush-score-panel .rush-live-xp b{font-size:48px}
}

[data-screen="roster"] .care-stats .care-actions .release-monster{min-height:60px;margin:0;padding:12px 16px;font-size:19px}
@media(min-width:901px){[data-screen="roster"] .care-statistics h2{min-height:28px;padding:3px 10px;margin-bottom:4px}[data-screen="roster"] .care-statistics .stat-row{min-height:28px;height:28px}[data-screen="roster"] .care-portrait .party-strip{padding:0 4px;max-height:123px}}
@media(max-height:680px) and (min-width:901px){[data-screen="roster"] .care-stats .care-actions .release-monster{min-height:48px;padding:9px 12px;font-size:17px}[data-screen="roster"] .care-statistics .stat-row{min-height:24px;height:24px}}

[data-screen="roster"] .care-stats .care-actions{grid-template-columns:1fr}
@media(min-width:901px){[data-screen="roster"] .care-statistics .stat-row{height:24px;min-height:24px;padding:1px 4px}}
@media(max-height:680px) and (min-width:901px){[data-screen="roster"] .care-statistics .stat-row{height:20px;min-height:20px;font-size:13px;padding:1px 4px}[data-screen="roster"] .care-statistics .stat-row b{font-size:17px}}

/* Keep the target centered independently of counter width. */
.rush-question-row{display:block;max-width:none;width:100%;--rush-panel-width:min(76%,760px,81dvh)}
.rush-question-row .rush-slab{width:var(--rush-panel-width);margin:0 auto}
.rush-score-panel{position:absolute;left:calc(50% + min(32.68%,326.8px,34.83dvh) + 12px);bottom:12px;width:auto;right:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:10px;pointer-events:none}
.rush-score-panel .rush-combo,.rush-score-panel .rush-live-xp{display:flex;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:6px;text-align:left}
.rush-score-panel b,.rush-score-panel .rush-live-xp b{width:auto;max-width:calc(100% - 50px);height:1em;font-size:clamp(40px,4.7vw,72px);color:#ffdc38;flex:0 1 auto;min-width:0}
.rush-score-panel small{font-size:clamp(17px,1.8vw,27px);font-weight:900;letter-spacing:0;color:#ffdc38;text-transform:lowercase}
.rush-score-panel .rush-digital{width:auto;max-width:100%;height:1em}
.rush-score-panel .rush-xp-gain{left:0;right:auto;top:-36px}
@media(max-width:900px){.rush-question-row{display:flex;flex-direction:column;align-items:center;gap:4px}.rush-question-row .rush-slab{width:min(100%,620px)}.rush-score-panel{position:relative;inset:auto;align-self:flex-end;display:flex;justify-content:flex-end;width:auto;max-width:100%;gap:18px;margin:0 3% 6px}.rush-score-panel>div{flex:none}.rush-score-panel b,.rush-score-panel .rush-live-xp b{font-size:40px;max-width:none}.rush-score-panel small{font-size:17px}.rush-score-panel .rush-xp-gain{left:auto;right:0}}

/* A readable definition immediately beneath the centered target. */
.rush-prompt-group{width:100%;display:flex;flex-direction:column;align-items:center;gap:0}
.rush-prompt-group .rush-meaning{display:flex;align-items:center;justify-content:center;width:var(--rush-panel-width);max-width:100%;min-height:3.2em;height:3.2em;margin:-4px 0 0;padding:0 12px;border:0;border-radius:0;background:none;box-shadow:none;color:#ecf7ff;text-align:center;text-shadow:0 2px 5px #001225,0 0 7px #001225;font-size:clamp(17px,1.8vw,23px);font-weight:600;line-height:1.6}
.rush-score-panel{bottom:calc(3.2em + 16px)}
.rush-course-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rush-settings .rush-course-options button{font-size:18px;padding:14px 8px}
.rush-settings .rush-course-options small{font-size:13px;line-height:1.4}
.rush-hints-choice{display:flex;align-items:center;gap:9px;font-size:15px;margin:10px 0}
.rush-hints-choice input{width:20px;height:20px;min-height:0}
.rush-fixed-tier{font-size:15px;display:block;color:#d9edff;margin:14px 0 5px}
.rush-key-help{width:min(540px,95%);text-align:center;margin:2px auto 0}
.rush-key-help button{font-size:13px;padding:4px 12px;min-height:28px;background:#062743cc;color:#e6f6ff;border-color:#66a4ba}
#rush-keyboard{margin-top:5px}#rush-keyboard[hidden]{display:none}
.rush-key-row{display:flex;justify-content:center;gap:4px;margin:3px 0}
.rush-key-row kbd{display:grid;place-items:center;min-width:26px;height:23px;padding:0 5px;border:1px solid #9fbaca;border-radius:4px;background:#e3edf5;color:#17364c;font:700 15px ui-monospace,monospace;box-shadow:0 2px 0 #4c718b}
.rush-key-row .target-key{background:#ffe06e;border-color:#ffdc52;color:#19334c;box-shadow:0 0 12px #ffe17c88}
#rush-keyboard p{font-size:14px;color:#ffe79d;margin:5px 0 0;line-height:1.2}
.rush-key-course .rush-question-row .rush-slab{height:clamp(110px,22dvh,170px)}
.rush-key-course .rush-feedback{min-height:42px}
.rush-key-course .rush-feedback[data-tone]{font-size:28px}
[data-screen="roster"] .care-statistics .stat-row:not(:last-child){height:48px;min-height:48px;padding:10px 4px;font-size:16px}
[data-screen="roster"] .care-statistics .stat-row:last-child{height:28px;min-height:28px}
[data-screen="roster"] .care-stats .care-actions.has-evolution{grid-template-columns:1fr 1fr}
[data-screen="roster"] .care-actions.has-evolution button{font-size:17px}
[data-screen="roster"] .care-actions .release-note{grid-column:1/-1}
.practice-menu{max-width:900px!important;width:94vw}.practice-menu h2{margin-bottom:8px}.practice-menu>p{font-size:16px;line-height:1.6}
.practice-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.practice-menu-grid button{text-align:left;min-height:88px;padding:13px 16px;white-space:normal}
.practice-menu-grid strong{display:block;font-size:18px}.practice-menu-grid small{display:block;font-size:14px;line-height:1.5;margin-top:4px}
.practice-menu-intro{display:flex;align-items:center;gap:15px;justify-content:space-between;background:#edf6fb;padding:16px;border-radius:14px}
@media(max-width:900px){.rush-prompt-group .rush-meaning{width:96%;font-size:18px;margin:0;height:3.2em}.rush-score-panel{bottom:auto}.rush-key-course .rush-prompt-group .rush-meaning{font-size:16px}.rush-key-course .rush-feedback{min-height:35px}.rush-key-course .rush-question-row .rush-slab{height:120px}}
@media(max-width:600px){.rush-settings .rush-course-options{grid-template-columns:1fr}.rush-settings .rush-course-options button{padding:9px;font-size:17px}.rush-settings .rush-course-options small{margin-top:3px}.rush-key-row{gap:3px}.rush-key-row kbd{min-width:20px;height:21px;padding:0 3px;font-size:13px}.practice-menu-grid{grid-template-columns:1fr 1fr;gap:8px}.practice-menu-grid button{padding:10px}.practice-menu-grid strong{font-size:16px}.practice-menu-intro{display:block}.practice-menu-intro button{margin-top:10px}.rush-key-course .rush-stage{justify-content:center;gap:1px}}
@media(max-height:680px) and (min-width:901px){[data-screen="roster"] .care-statistics .stat-row:not(:last-child){height:40px;min-height:40px;padding:7px 4px;font-size:15px}[data-screen="roster"] .care-statistics .stat-row:last-child{height:24px;min-height:24px}.rush-key-course .rush-stage{gap:0;padding:2px 12px}.rush-key-course .rush-question-row .rush-slab{height:100px}.rush-key-course .rush-prompt-group .rush-meaning{font-size:16px;height:2.8em;min-height:2.8em}.rush-key-course .rush-feedback{min-height:32px;font-size:24px}.rush-key-course .rush-key-row kbd{height:19px;font-size:13px}.rush-key-course .rush-key-help button{min-height:23px;padding:2px 9px}.rush-key-course .rush-stage input{height:32px}}

.rush-prompt-group{width:var(--rush-panel-width);margin:0 auto}.rush-question-row .rush-prompt-group .rush-slab{width:100%}.rush-prompt-group .rush-meaning{width:100%}@media(max-width:900px){.rush-prompt-group{width:min(100%,620px)}}

@media(min-width:901px){[data-screen="roster"] .care-stats{padding:8px 12px;gap:6px}}
.rush-key-course .rush-question-row{--rush-panel-width:min(70%,620px,62dvh)}
.rush-key-course .rush-question-row .rush-slab{height:140px}
.rush-key-course .rush-prompt-group .rush-meaning{font-size:17px;line-height:1.3;min-height:2.6em;height:2.6em;margin:0}
.rush-key-course .rush-feedback{min-height:32px}
.rush-key-course .rush-score-panel{left:calc(50% + min(30.1%,266.6px,26.66dvh) + 12px);bottom:54px}
.rush-key-course .rush-key-row kbd{height:20px}
@media(max-width:900px){.rush-key-course .rush-question-row{--rush-panel-width:min(100%,520px)}.rush-key-course .rush-score-panel{left:auto;bottom:auto}.rush-key-course .rush-question-row .rush-slab{height:110px}.rush-key-course .rush-key-row kbd{height:19px}}
@media(max-height:680px) and (min-width:901px){.rush-key-course .rush-question-row{--rush-panel-width:min(70%,520px,58dvh)}.rush-key-course .rush-question-row .rush-slab{height:110px}.rush-key-course .rush-key-row kbd{height:18px}.rush-key-course .rush-keyboard p{font-size:13px}.rush-key-course .rush-score-panel{left:calc(50% + min(30.1%,223.6px,24.94dvh) + 12px);bottom:48px}}

.rush-key-course .rush-stage input{min-height:38px}
@media(max-height:680px) and (min-width:901px){
 .rush-key-course .rush-stage input{height:32px;min-height:32px}
 .rush-key-course .rush-key-help{position:absolute;left:8px;bottom:12px;width:290px;margin:0}
 .rush-key-course .rush-key-row{gap:2px;margin:2px 0}
 .rush-key-course .rush-key-row kbd{min-width:18px;padding:0 2px;height:18px;font-size:12px}
 .rush-key-course .rush-key-help button{font-size:12px;min-height:24px}
 .rush-key-course #rush-keyboard p{font-size:13px}
}

.rush-stage input{min-height:38px}@media(max-height:680px) and (min-width:901px){.rush-stage input{height:36px;min-height:36px}.rush-key-course .rush-stage input{height:32px;min-height:32px}}
