.at-menu #topbar,.at-menu #objective,.at-menu #hud,.at-menu #xpBar,.at-menu #xpText,.at-menu #controlsHint,.at-menu #joystick,.at-menu #contextButton{display:none!important}.at-menu .shade{box-shadow:inset 0 0 160px #05282744;background:linear-gradient(90deg,#082e3220,#0c2f4425)}#mainMenu{position:absolute;inset:0;overflow:auto;padding:24px 30px 18px;z-index:3;display:flex;flex-direction:column;min-height:100dvh;color:#eff6ff}.overlay{z-index:20}#toast{z-index:40}.home-top{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}.home-mark{display:flex;align-items:center;gap:11px;font-weight:800;font-size:14px;letter-spacing:2px;text-shadow:0 2px 4px #153d34}.home-mark small{display:block;font:9px Pixel;letter-spacing:2px;margin-top:4px;color:#d0e7b9}.home-counters{display:flex;gap:9px;align-items:center}.home-counters>span,.home-counters>button{border:1px solid #cfe5ecab;border-radius:24px;background:#112d4aea;box-shadow:0 2px 0 #071a30cc;padding:10px 16px;font-size:10px;color:#dcecf5;white-space:nowrap}.home-counters b{font-family:Pixel;color:#f8dc82;font-size:14px;margin-left:8px}.home-counters>button:hover{background:#244e78}.home-counters #homeSound{border-radius:10px;font-size:19px;padding:5px 13px}.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:45px;flex:1;align-items:center;margin:18px auto 15px;width:min(1320px,100%)}.home-hero{text-align:center;display:flex;flex-direction:column;align-items:center;min-width:0;padding:15px 0}.hero-kicker{font-size:11px;letter-spacing:4px;color:#e3f0ce;text-shadow:0 2px 4px #153c2e;margin-bottom:10px}.home-hero h1{font:clamp(40px,5.4vw,86px)/.95 Pixel,monospace;font-weight:800;color:#fcd65c;text-shadow:3px 3px 0 #7d4f22,5px 5px 0 #183c37;letter-spacing:3px;margin:0 0 14px}.home-hero h1 span{font-size:.43em;display:block;color:#fff1b3;letter-spacing:12px;line-height:1.2;text-shadow:2px 2px 0 #4c6742;margin-bottom:3px}.hero-subtitle{font-size:14px;letter-spacing:3px;color:#edf2d0;text-shadow:0 2px 5px #113f25}.hero-subtitle span{margin:0 8px;color:#e5cd7a}.journey-pill{margin-top:21px;background:#173b4fe8;border:1px solid #e5bb59;border-radius:25px;padding:9px 15px;color:#f2d890;font-size:10px;box-shadow:0 3px 12px #12392733}.journey-pill i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#f2d56f;margin-right:7px;box-shadow:0 0 8px #f2d56f77}.hero-partner{width:240px;height:205px;border-radius:16px;border:2px solid #abdef2;outline:3px solid #193c5c;background:radial-gradient(ellipse at 50% 40%,#284e72,#102742 85%);box-shadow:inset 0 0 0 3px #324c65,0 14px 35px #0c30283b;margin-top:26px;position:relative;display:block;color:#d3e8f4;overflow:hidden}.hero-partner:after{content:'✦';position:absolute;right:28px;top:45px;color:#f8df87;font-size:18px;animation:twinkle 3s infinite}.hero-partner canvas{position:absolute;left:0;top:0;width:240px;height:200px;image-rendering:pixelated}.partner-number{position:absolute;top:14px;left:16px;font:9px Pixel;letter-spacing:2px;color:#adcadd;z-index:1}.partner-change{position:absolute;bottom:12px;right:14px;font-size:9px;color:#b5cfdd}.hero-partner:hover{background:radial-gradient(ellipse at 50% 40%,#345c80,#16314f 85%)}.partner-selector{display:flex;gap:24px;align-items:center;justify-content:center;margin-top:17px;min-width:270px}.partner-selector>button{border:1px solid #e1f0d35c;width:28px;height:29px;color:#e8f4d7;background:#153c348c;border-radius:7px;font:24px Pixel;line-height:20px}.partner-selector>div{display:flex;flex-direction:column;align-items:center;gap:7px}.partner-selector strong{font-size:23px;letter-spacing:2px;text-shadow:0 2px 6px #143d2d}.partner-type{font-size:9px;padding:3px 11px;border-radius:5px;color:#fff9e5;border:1px solid #ffffff50}.hero-evolution{color:#d8e9c9;font-size:10px;margin:12px 0 0;text-shadow:0 2px 4px #234c30}.hero-caption{margin-top:16px;display:flex;gap:11px;align-items:center;color:#f0e7b7;font-size:10px;text-shadow:0 2px 4px #143d2d}.hero-caption i{font-style:normal;color:#c3d4ad}.home-sidebar{width:100%}.home-nav{background:linear-gradient(135deg,#335891f5,#203b73fa);border:2px solid #b8d7ff;border-radius:15px;box-shadow:0 0 0 3px #12314d,0 14px 28px #06284440,inset 0 0 0 3px #6f96ce;overflow:hidden;padding:19px 16px 15px}.nav-heading{font:9px Pixel;letter-spacing:2px;color:#a8c8e9;display:flex;justify-content:space-between;margin:0 9px 12px}.nav-heading span{color:#edda84}.nav-item{display:flex;align-items:center;gap:14px;width:100%;border:0;background:transparent;color:#f4f6ff;text-align:left;padding:14px 12px;border-radius:8px;position:relative}.nav-item:hover{background:#638cd433}.nav-icon{width:30px;text-align:center;color:#a2d7ed;font-size:25px;filter:drop-shadow(1px 2px 0 #112847)}.nav-item strong{font-size:19px;letter-spacing:2px;display:block;text-shadow:0 2px 0 #16315d}.nav-item small{font-size:10px;color:#c0d8f4;display:block;margin-top:5px;line-height:1.5}.nav-item>b{margin-left:auto;font-size:20px;color:#f4d76a}.primary-nav{margin-bottom:6px;background:#112e611f}.primary-nav strong{color:#ffdd61;font-size:24px}.primary-nav .nav-icon{color:#f8e4bc}.notification{position:absolute;right:9px;top:20px;width:7px;height:7px;border-radius:50%;background:#ffcc69}.home-record{margin-top:15px;background:linear-gradient(120deg,#355b96ee,#243f78f5);border:2px solid #b8d7ff;border-radius:13px;box-shadow:0 0 0 3px #12314d,inset 0 0 0 2px #6f96ce;display:flex;gap:12px;flex-wrap:wrap;padding:17px;font-size:10px;color:#c5d9ef}.home-record b{font:14px Pixel;color:#f9f5d8;margin-left:3px}.home-record small{font-size:9px;flex-basis:100%;color:#aecaeb;margin-top:1px}.home-footer{font-size:9px;color:#d4e4c4aa;display:flex;align-items:center;gap:10px;text-shadow:0 2px 4px #153c33}.home-footer>span:last-child{margin-left:auto;font-family:Pixel;letter-spacing:2px}.home-footer a{color:#d4e4c4bb}.roster-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.roster-card{display:flex;align-items:center;gap:6px;border:1px solid #d0d8bf;border-radius:9px;background:#eeefdd;padding:7px;color:#315541;text-align:left;min-height:80px}.roster-card:hover{border-color:#678f58;background:#e2ebce}.roster-card.chosen{border:2px solid #53824b;padding:6px;background:#e1e9cb}.roster-card canvas{width:54px;height:54px;image-rendering:pixelated;flex-shrink:0}.roster-card strong{display:block;font-size:12px}.roster-card small{display:block;color:#7a8b6e;font-size:8px;line-height:1.6;margin-top:3px}.roster-card em{display:block;color:var(--tone);font-size:9px;font-style:normal;margin-top:4px}.roster-card>span{margin-left:auto;color:#688f57;font-size:13px}.roster-preview{border-radius:12px;background:#e4ead0;padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.roster-preview>div:last-child strong{font-size:15px}.roster-preview p{margin:6px 0;font-size:11px}.roster-preview small{font-size:10px;color:#798969;line-height:1.8}.evolution-forms{display:flex;justify-content:center;align-items:center;gap:7px}.evolution-forms>div{text-align:center;min-width:48px}.evolution-forms canvas{display:block;width:60px;height:58px;image-rendering:pixelated}.evolution-forms small{display:block;font-size:9px}.evolution-forms>span{color:#9aa67f;font-size:12px}.account-form{max-width:430px;margin:24px auto 5px;display:flex;flex-direction:column;gap:16px}.account-form label{font-size:12px;color:#5a7350;display:flex;flex-direction:column;gap:8px}input:not([type=checkbox]){border:1px solid #bac7a6;border-radius:8px;background:#fffcef;color:#315441;font:13px 'Microsoft JhengHei',sans-serif;padding:12px 13px;min-width:0}input:focus{outline:2px solid #88a677;outline-offset:1px}.account-form button{margin-top:5px}.auth-switch{text-align:center;font-size:11px;color:#839171;margin-top:20px}.auth-switch button{border:0;background:transparent;color:#365e45;padding:5px 9px;text-decoration:underline}.form-error{font-size:11px;line-height:1.8;color:#b2573e;background:#f4dfcb;border:1px solid #e4bca2;padding:10px 12px;border-radius:7px;margin:10px 0}.social-layout{display:grid;grid-template-columns:1.3fr 1fr;gap:25px;margin-top:20px}.social-layout h3{font-size:13px;margin:0 0 14px;color:#43633f}.text-button{border:0;background:transparent;color:#78936a;font:10px 'Microsoft JhengHei';padding:3px 7px}.social-layout h3 .text-button{float:right}.inline-form{display:flex;gap:8px}.inline-form input{flex:1;width:0;font-size:11px;padding:10px}.inline-form .primary,.inline-form .secondary{padding:10px 12px;font-size:10px}.room-create{background:#e4ebd2;border:1px solid #d0dbbb;border-radius:12px;padding:20px;text-align:center}.room-emblem{font-size:34px;color:#61865c;margin:6px 0 15px;letter-spacing:4px}.room-create p{font-size:11px}.room-create .notice{text-align:left;font-size:10px}.or-line{font-size:10px;color:#8a9b77;margin:20px 0 12px}.friend-list{margin-top:15px;max-height:360px;overflow:auto}.friend-row{display:flex;align-items:center;gap:10px;border:1px solid #d1dabe;background:#eeefdd;padding:12px;border-radius:9px;margin-top:8px}.friend-row strong{display:block;font-size:12px}.friend-row small{display:block;font-size:9px;color:#81946e;margin-top:5px}.friend-avatar{width:35px;height:35px;border-radius:8px;display:grid;place-items:center;background:#c7dcb3;color:#49704d;font-size:17px}.row-actions{display:flex;gap:5px;margin-left:auto}.row-actions button{border:1px solid #9db68a;background:#dae6c9;border-radius:5px;color:#4f774c;padding:5px 9px;font-size:10px}.row-actions .subtle{border-color:transparent;background:transparent;color:#8b947b}.empty-state{padding:35px 15px;text-align:center;font-size:12px;color:#8a9b78;background:#e9edd9;border-radius:9px}.empty-state small{display:block;font-size:10px;line-height:1.8;margin-top:10px}.room-code{font:22px Pixel;letter-spacing:4px;color:#3b674c;margin-left:8px}.room-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.room-player{border:1px solid #c6d2b0;background:#e8edd6;border-radius:12px;padding:15px 8px;text-align:center}.room-player canvas{image-rendering:pixelated;width:85px;height:85px;display:block;margin:auto}.room-player strong{font-size:12px;display:block;margin-top:8px;overflow-wrap:anywhere}.room-player small{font-size:10px;color:#81956d;display:block;margin-top:7px}.ready-label{font-size:9px;display:inline-block;border-radius:20px;padding:5px 10px;background:#d9ddc6;color:#919778;margin-top:14px}.ready-label.yes{background:#c2ddb0;color:#4f794a}.room-player.empty{border-style:dashed;background:#edf0df;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:205px}.room-player.empty>span{font-size:32px;color:#bac5a8}.guide-steps{display:flex;flex-direction:column;gap:16px;margin:25px 0}.guide-steps>div{display:flex;gap:18px;align-items:start}.guide-steps b{font:23px Pixel;color:#a7b78c;border:1px solid #d2ddbd;border-radius:8px;padding:10px}.guide-steps strong{font-size:14px}.guide-steps p{margin:5px 0 0;font-size:11px}#networkStatus{position:absolute;top:185px;left:28px;background:#143c3dde;color:#d0e8d1;border:1px solid #c5e1a64d;padding:8px 12px;border-radius:8px;font-size:10px;z-index:4}#networkStatus.waiting{color:#eacf89;border-color:#eacf8960}.at-menu #networkStatus{display:none!important}@keyframes twinkle{50%{opacity:.3;transform:scale(.7)}}
@media(min-width:1600px){.home-layout{grid-template-columns:minmax(0,1fr) 390px;gap:100px}.home-nav{padding:24px}.nav-item{padding:18px 14px}.nav-item strong{font-size:22px}.nav-item small{font-size:11px}.hero-partner{width:290px;height:245px}.hero-partner canvas{width:290px;height:240px}.partner-selector strong{font-size:27px}.home-record{font-size:11px}.home-counters>span,.home-counters>button{font-size:12px}}
@media(max-height:760px) and (min-width:901px){#mainMenu{padding-top:18px}.home-layout{margin:16px auto 12px}.home-hero{padding:0}.home-hero h1{font-size:62px}.hero-kicker{font-size:10px;margin-bottom:7px}.journey-pill{margin-top:15px}.hero-partner{margin-top:18px;height:173px;width:210px}.hero-partner canvas{width:210px;height:175px}.partner-selector{margin-top:12px}.partner-selector strong{font-size:20px}.hero-caption{margin-top:12px}.nav-item{padding:12px}.nav-item strong{font-size:17px}.primary-nav strong{font-size:22px}.nav-heading{margin-bottom:7px}.home-record{padding:13px}.home-hero .hero-evolution{margin-top:8px}}
@media(max-width:900px){#mainMenu{padding:15px 18px}.home-mark{font-size:12px}.home-mark small{font-size:8px}.home-counters>span{display:none}.home-counters>button{padding:8px 12px;font-size:10px}.home-layout{grid-template-columns:minmax(0,1fr) 260px;gap:20px}.home-hero h1{font-size:46px;letter-spacing:1px}.hero-subtitle{font-size:10px;letter-spacing:1px}.hero-kicker{font-size:9px;letter-spacing:2px}.journey-pill{font-size:9px;padding:8px 10px}.hero-partner{width:185px;height:170px}.hero-partner canvas{width:200px;height:170px;left:-8px}.partner-selector strong{font-size:19px}.partner-selector{gap:15px;min-width:210px}.hero-caption{font-size:9px;gap:6px}.home-nav{padding:16px 10px}.nav-item{padding:12px 9px;gap:10px}.nav-item strong{font-size:16px}.nav-item small{font-size:9px}.nav-icon{font-size:22px;width:24px}.primary-nav strong{font-size:20px}.home-record{font-size:9px;gap:8px;padding:12px}.home-record b{font-size:12px}.home-footer{font-size:8px}.home-footer>span:first-child{max-width:60%}.home-footer>span:last-child{display:none}.roster-grid{grid-template-columns:repeat(2,1fr)}.roster-preview{grid-template-columns:1fr;gap:10px}.social-layout{grid-template-columns:1fr}.room-create{text-align:left}.room-emblem{display:none}.room-slots{gap:7px}.room-player canvas{width:60px;height:65px}.room-player strong{font-size:10px}.room-player small{font-size:9px}.room-player{padding:10px 4px}.room-player.empty{min-height:170px}.modal-actions{flex-wrap:wrap}.modal-actions button{font-size:10px;padding:10px 13px}#networkStatus{top:135px;left:15px;font-size:9px;max-width:85vw}}
@media(max-width:590px){#mainMenu{padding:14px 16px 18px}.home-top{gap:7px}.home-mark{font-size:10px;gap:8px;letter-spacing:1px}.home-mark small{font-size:7px;letter-spacing:1px}.home-mark .ball-mark{width:27px;height:27px}.home-mark .ball-mark:after{left:7px;top:7px}.home-counters>button{font-size:9px;padding:8px 10px}.home-counters #homeSound{font-size:17px;padding:5px 8px}.home-layout{display:flex;flex-direction:column;gap:24px;align-items:stretch;margin-top:24px}.home-hero h1{font-size:52px}.home-hero h1 span{letter-spacing:8px}.hero-kicker{font-size:9px}.hero-subtitle{font-size:11px}.hero-partner{width:185px;height:166px;margin-top:18px}.hero-partner canvas{width:200px;height:166px}.journey-pill{margin-top:15px}.partner-selector{margin-top:14px}.partner-selector strong{font-size:21px}.home-nav{padding:17px 12px}.nav-heading{margin-bottom:8px}.nav-item{padding:13px;gap:15px}.nav-item strong{font-size:18px}.nav-item small{font-size:10px}.primary-nav strong{font-size:23px}.home-record{padding:16px;font-size:10px;gap:14px}.home-footer{margin-top:16px;line-height:1.7;align-items:end}.home-footer a{white-space:nowrap;margin-left:auto}.roster-grid{gap:6px}.roster-card{padding:6px;gap:2px}.roster-card canvas{width:40px;height:48px}.roster-card strong{font-size:11px}.roster-card small{font-size:7px}.roster-card em{font-size:8px}.roster-card.chosen{padding:5px}.roster-preview{padding:13px}.evolution-forms{gap:3px}.evolution-forms canvas{width:53px;height:53px}.room-slots{grid-template-columns:repeat(2,1fr)}.room-player.empty{min-height:170px}.guide-steps{gap:13px}.guide-steps>div{gap:11px}.guide-steps b{font-size:18px;padding:8px}.guide-steps strong{font-size:12px}.guide-steps p{font-size:10px}.account-form{margin-top:20px}}

.home-hero .champion-title{font-family:"Microsoft JhengHei","Noto Sans TC",sans-serif;font-weight:900;font-size:clamp(36px,4.6vw,70px);letter-spacing:5px;line-height:1.2}.home-hero .champion-title span{font-size:.52em;letter-spacing:9px;margin-bottom:8px}@media(max-width:590px){.home-hero .champion-title{font-size:45px}}

/* V11: compact, per-form defensive matchups. */
.type-matchups{display:grid;gap:9px;padding:13px;border:1px solid #6f9bab;background:#102f43}.type-matchups>div{display:grid;grid-template-columns:44px 1fr;gap:9px;align-items:start;font-size:12px}.type-matchups>div>strong{padding:5px 0;color:#eddfa7}.type-matchups>div>span{display:flex;flex-wrap:wrap;gap:6px}.matchup-type{display:inline-block;padding:5px 7px;background:#153c50;border:1px solid var(--type-color);color:#edf6ed;font-size:12px;white-space:nowrap}.type-matchups>div>span:empty:after{content:"—";padding:5px 0;color:#a3c2c9}
