@charset "UTF-8";
:root{color-scheme:light;--ink:#28253f;--muted:#686577;--paper:#f7f6f2;--line:#dedce5;--violet:#6557a6;--gold:#f0d890;--green:#24796a;--font:"Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:600 16px/1.6 var(--font)}button,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ac82eb;outline-offset:4px}a{color:inherit;text-decoration:none}button{border:0}img{max-width:100%}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h2{font-size:28px;line-height:1.4}h3{font-size:20px}.eyebrow{font:800 12px/1.4 Arial,sans-serif;letter-spacing:.2em;color:var(--violet);margin-bottom:9px}.skip-link{position:fixed;top:-100px;z-index:100;background:white;padding:12px}.skip-link:focus{top:5px}.primary,.secondary,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;padding:12px 22px;font-weight:800;min-height:48px;transition:background .18s,transform .18s}.primary{background:var(--ink);color:#fff}.primary:hover{background:#504678;transform:translateY(-1px)}.primary.gold{background:var(--gold);color:#27233c}.secondary{background:transparent;color:var(--ink);border:1px solid #bab5cd}.secondary:hover{background:#eeebf6}.text-button{background:transparent;color:var(--violet);padding:8px 10px;min-height:44px}.game-header{min-height:82px;max-width:1400px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 36px;border-bottom:1px solid var(--line)}.game-brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:900;line-height:1.3}.game-brand span span{display:block;font:700 9px Arial;letter-spacing:.14em;margin-top:5px}.game-header nav{display:flex;align-items:center;gap:24px;font-size:13px}.game-header nav button{background:none;color:var(--ink);padding:12px 0}.game-main{max-width:1280px;margin:auto;padding:32px 36px 48px;min-height:70vh}.game-footer{border-top:1px solid var(--line);padding:22px 36px;max-width:1400px;margin:auto;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:11px}.game-footer>span:first-child{font:800 10px Arial;letter-spacing:.14em}.game-footer a{text-decoration:underline}.loading{padding:100px 20px;text-align:center}
.intro{position:relative;isolation:isolate;background:#26223d;border-radius:12px;min-height:380px;overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr;color:white}.intro::before{content:"";position:absolute;inset:0;z-index:-2;background:url('../events/assets/champions-stadium.webp') center 50%/cover;opacity:.35}.intro::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#25213fe8,#282240a0 45%,#26223d05)}.intro-copy{padding:44px 0 42px 44px}.intro .eyebrow{color:var(--gold);font-size:12px}.intro h1{font:900 italic clamp(35px,5.5vw,68px)/.97 Arial,sans-serif;letter-spacing:-.065em;margin:18px 0 20px}.intro h1 span{display:block}.intro h1 em{font-style:inherit;color:var(--gold)}.intro .tagline{font-size:24px;font-weight:800;letter-spacing:.02em}.intro-stats{display:flex;gap:24px;margin-top:26px;font-size:11px;color:#d8d3ea}.intro-stats b{font:900 28px Arial;color:white;margin-right:5px}.intro-art{position:relative;display:grid;place-items:center}.hero-ball{width:165px;filter:drop-shadow(0 20px 30px #18112a99);transform:rotate(-14deg);z-index:1}@keyframes hover-mon{50%{translate:0 -9px}}
.setup{padding:28px 0;display:grid;grid-template-columns:1.4fr .9fr auto;align-items:end;gap:25px}.field-label{display:block;font-size:13px;color:var(--muted);margin-bottom:9px}.opponent-field{display:flex;align-items:center;gap:12px}.member-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;border:3px solid white;box-shadow:0 1px 6px #29243f20}.setup select{border:0;border-bottom:2px solid var(--line);background:transparent;width:100%;height:50px;padding:0 20px 0 2px;min-width:0;color:var(--ink);font-weight:800}.setup .primary{min-width:210px}.resume-row{display:flex;justify-content:flex-end;margin:0 0 20px;gap:14px;align-items:center}.resume-row p{font-size:13px;color:var(--muted)}.roster-summary{display:flex;justify-content:space-between;align-items:center;padding:20px 0 0;border-top:1px solid var(--line);gap:20px}.roster-summary p{font-size:14px;color:var(--muted)}
.session-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:0 0 25px}.session-heading .eyebrow{margin-bottom:5px}.session-heading h1{font-size:28px;letter-spacing:-.02em}.round-count{font:800 italic 42px/.9 Arial;letter-spacing:-.06em;color:var(--violet);min-width:105px;text-align:right}.round-count span{font-size:21px;color:#aaa4bc;margin-left:5px}.scout-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.candidate{background:linear-gradient(150deg,#fff 45%,#efecf8);border:1px solid #e1ddea;border-radius:9px;overflow:hidden;position:relative;transition:transform .2s,border-color .2s}.candidate:hover{border-color:#afa1d2;transform:translateY(-3px)}.candidate-main{width:100%;background:transparent;text-align:center;color:var(--ink);padding:10px 12px 13px;display:block}.candidate h2{font-size:17px;white-space:nowrap;margin-bottom:5px}.type-row{display:flex;gap:4px;align-items:center;justify-content:center}.type-badge{display:inline-flex;align-items:center;gap:3px;font-size:10px;background:#fff9;border:1px solid #c9c3d630;border-radius:4px;padding:2px 4px;white-space:nowrap}.candidate-trait{font-size:11px;color:var(--muted);margin-top:8px}.candidate-scout{width:100%;padding:9px;background:#e4dff0;color:#493768;font-weight:800;font-size:13px;border-top:1px solid #d6cfe5}.candidate-scout:hover{background:#d6cce9}.mega-flag{position:absolute;top:8px;left:9px;font:800 9px Arial;letter-spacing:.05em;color:#76602d;background:#f3e9c5;border-radius:3px;padding:2px 5px}.party-strip{margin-top:28px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:25px}.party-strip>p{font:800 11px Arial;letter-spacing:.12em;flex-shrink:0}.party-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:20px}.party-slot{display:flex;align-items:center;gap:10px;min-width:0}.party-slot span{font-size:13px}.party-slot.empty{color:#9c96ad;font:800 italic 30px Arial;min-height:56px}.party-slot.empty::after{content:"";height:1px;width:60%;background:var(--line);margin-left:10px}.scout-hint{display:flex;justify-content:space-between;margin-top:15px;font-size:12px;color:var(--muted)}
.ready-layout{display:grid;grid-template-columns:1fr 250px;gap:32px;margin-top:30px}.ready-party{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ready-party .candidate{cursor:pointer}.lead-label{padding:10px;background:#ebe7f3;text-align:center;font-size:13px}.lead-label.selected{background:var(--ink);color:var(--gold)}.ready-opponent{text-align:center;border-left:1px solid var(--line);padding:12px 0 12px 25px}.ready-opponent .member-avatar{width:72px;height:72px}.ready-opponent h2{font-size:18px;margin:8px 0 4px}.opponent-preview{display:flex;justify-content:center;margin:15px 0}.ready-actions{display:flex;align-items:center;justify-content:space-between;margin-top:30px;gap:15px}.ready-actions .primary{min-width:230px}.ready-actions p{font-size:13px;color:var(--muted)}
.battle-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.battle-heading .eyebrow{margin:0}.battle-heading h1{font-size:22px}.opponent-name{display:flex;align-items:center;gap:9px;font-size:13px}.opponent-name .member-avatar{width:34px;height:34px}.battle-turn{font:800 italic 21px Arial;color:var(--violet)}.battle-arena{position:relative;height:clamp(340px,33vw,420px);border-radius:10px;overflow:hidden;background:url('../events/assets/champions-stadium.webp') center 54%/cover;isolation:isolate}.battle-arena::after{content:"";position:absolute;inset:0;background:linear-gradient(#24213c42,transparent 38%,#24213c15);z-index:-1}.combatant{position:absolute;width:34%;height:56%;bottom:14%;display:grid;place-items:end center}.combatant.player{left:7%}.combatant.cpu{right:7%}.battle-token{height:100%;max-height:235px;max-width:100%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 15px 5px #19264f66);transform-origin:50% 80%;animation:breathe 3s ease-in-out infinite}.player .battle-token{scale:-1 1}.battle-token.fainted{opacity:.3;filter:grayscale(1) drop-shadow(0 8px 4px #18264a33);animation:none;transform:scale(.75)}@keyframes breathe{50%{transform:translateY(-5px) scale(1.015)}}.battle-token.attack{animation:lunge .6s ease-in-out}.battle-token.arrive{animation:arrive .65s ease-out}.battle-token.hit{animation:hit .45s ease-out}.battle-token.evolving{animation:evolve 1s ease-in-out}@keyframes lunge{45%{transform:translateX(-25px) scale(1.06)}}@keyframes arrive{from{transform:scale(.05);filter:brightness(3);opacity:.1}}@keyframes hit{30%{transform:translateX(-12px);filter:brightness(1.8)}60%{transform:translateX(10px)}}@keyframes evolve{50%{filter:brightness(2.2) drop-shadow(0 0 30px #d1b8ff);transform:scale(1.2)}}.arena-effects{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}.health-panel{position:absolute;z-index:5;top:20px;width:31%;background:#fffef4ed;padding:12px 16px;border-radius:7px;box-shadow:0 4px 16px #27334715;color:#272b48;border-bottom:3px solid #b9abd9}.health-panel.player{left:20px}.health-panel.cpu{right:20px;border-color:#d7bd72}.health-name{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:17px;line-height:1.3}.health-name small{font:700 10px Arial;white-space:nowrap}.health-track{height:8px;background:#dce0dd;border-radius:2px;margin:9px 0 5px;overflow:hidden}.health-fill{height:100%;background:#39a48b;transition:width .65s ease;min-width:0}.health-fill.low{background:#dd735d}.health-fill.mid{background:#d8a63f}.health-bottom{display:flex;justify-content:space-between;font-size:11px;color:#656677}.team-dots{display:flex;gap:4px}.team-dots i{display:block;width:10px;height:10px;background:#726097;border:2px solid #f8f7f4;border-radius:50%;box-shadow:0 0 0 1px #9185ad}.team-dots i.out{background:#d6d3dc;box-shadow:none}.status-tag{font-size:10px;background:#735bb0;color:white;padding:1px 4px;border-radius:3px;margin-left:5px}.field-condition{position:absolute;top:17px;left:50%;transform:translateX(-50%);font-size:11px;background:#26223dd9;color:white;padding:3px 9px;border-radius:4px;z-index:6;text-align:center}.battle-message{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);max-width:90%;padding:8px 18px;background:#27233ee8;color:#fffdf2;font-size:15px;border-radius:5px;z-index:6;text-align:center;white-space:pre-line}.battle-toolbar{display:flex;justify-content:space-between;align-items:center;padding:15px 0;gap:10px}.battle-toolbar p{font-size:14px}.timer{font:700 13px Arial;color:var(--muted);display:flex;align-items:center;gap:7px}.timer strong{font-size:24px;color:var(--ink);min-width:32px}.timer.urgent strong{color:#bb4d39}.timer small{font:600 11px var(--font)}.mega-toggle{display:flex;align-items:center;gap:7px;font-size:12px;padding:9px 14px;border:1px solid #c6b29a;border-radius:6px;background:#f4eddb;color:#6e5325;min-height:44px}.mega-toggle[aria-pressed=true]{background:#55437b;color:#fff0ba;border-color:#55437b}.mega-toggle img{width:21px;height:21px}.battle-controls{display:grid;grid-template-columns:1fr 245px;gap:20px}.move-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.move-button{background:#fff;border:1px solid #dcd7e5;border-left:5px solid var(--move-color,#a69bb9);border-radius:6px;padding:12px 15px;text-align:left;color:var(--ink);min-height:77px;transition:background .15s,transform .15s}.move-button:hover:not(:disabled){background:#ede8f6;transform:translateY(-2px)}.move-title{display:flex;gap:7px;align-items:center;font-size:16px;font-weight:900}.move-meta{display:flex;gap:12px;font-size:10px;color:var(--muted);margin-top:5px}.move-meta b{margin-left:auto;font-size:11px;color:var(--violet)}.battle-party{border-left:1px solid var(--line);padding-left:18px;display:grid;gap:5px}.switch-button{display:flex;align-items:center;gap:9px;border-radius:5px;background:#eeebf2;color:var(--ink);text-align:left;padding:3px 9px;font-size:12px;min-height:49px;width:100%}.switch-button span{display:block;flex:1}.switch-button small{font-size:10px;color:var(--muted)}.switch-button.active{background:#ded7ea}.switch-button .hp-mini{height:3px;background:#cfccd6;margin-top:4px}.hp-mini i{display:block;background:#4d9d88;height:100%}.battle-bottom{display:flex;justify-content:space-between;align-items:flex-start;margin-top:17px;gap:16px}.battle-log{flex:1;font-size:12px;color:var(--muted)}.battle-log summary{cursor:pointer;min-height:36px}.battle-log ol{max-height:170px;overflow:auto;list-style:none;padding:10px 14px;background:#efedf2;border-radius:6px}.battle-log li{padding:3px 0;border-bottom:1px solid #e2dee8}.result-cover{position:absolute;inset:0;z-index:9;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#242039d4;color:white;text-align:center;backdrop-filter:blur(4px)}.result-cover .eyebrow{color:var(--gold);font-size:15px}.result-cover h2{font:900 italic clamp(38px,7vw,76px)/1.1 Arial;letter-spacing:-.045em;color:#fff2c1}.result-cover p{margin:14px 0 22px}.result-cover .result-actions{display:flex;gap:10px}.result-cover .secondary{color:white;border-color:#a79bbd}.result-cover .secondary:hover{background:#64517c}.result-cover .primary{background:var(--gold);color:var(--ink)}
dialog{border:0;border-radius:12px;background:var(--paper);color:var(--ink);padding:30px;width:min(620px,calc(100% - 30px));max-height:88dvh;box-shadow:0 25px 100px #10102344;overflow:auto}dialog::backdrop{background:#201b35a6;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:12px;top:10px;width:38px;height:38px;background:#ebe7f2;color:var(--ink);border-radius:50%;font:400 26px Arial;z-index:3}.detail-hero{display:flex;gap:24px;align-items:center;margin:4px 0 20px}.detail-hero h2{font-size:25px}.detail-hero .type-row{justify-content:flex-start;margin-top:10px}.detail-traits{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-block:1px solid var(--line);padding:15px 0;font-size:13px}.detail-traits dt{font-size:11px;color:var(--muted);margin-bottom:4px}.detail-traits dd{margin:0}.detail-traits small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.detail-moves{margin-top:15px}.detail-move{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.detail-move b{font-size:14px;display:flex;align-items:center;gap:6px}.detail-move span{font-size:10px;color:var(--muted);white-space:nowrap}.detail-stats{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;margin:15px 0}.detail-stats b{margin-left:3px}.dialog-actions{margin-top:24px;display:flex;justify-content:flex-end;gap:10px}.help-steps{padding-left:22px;margin:25px 0}.help-steps li{margin:0 0 18px}.help-steps p,#help-dialog>p:not(.eyebrow){font-size:13px;font-weight:500;color:var(--muted);margin-top:7px}.roster-dialog{width:min(900px,calc(100% - 24px))}.roster-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:25px}.roster-entry{padding:10px 4px;text-align:center;font-size:11px;background:#eeebf3;border-radius:5px}.roster-entry small{display:block;color:#81652b;font-size:9px;min-height:16px}.error-toast,.save-warning{position:fixed;bottom:18px;left:50%;translate:-50% 0;padding:14px 22px;background:#3a2e48;color:white;z-index:80;border-radius:8px;max-width:90vw;box-shadow:0 8px 35px #25213d33;font-size:13px}.save-warning{bottom:auto;top:10px;z-index:90;background:#725721}
.scout-animation{position:fixed;inset:0;background:radial-gradient(ellipse at 50% 55%,#565184,#25213f 58%,#18152a);z-index:70;display:flex;align-items:center;justify-content:center;overflow:hidden;perspective:700px}.scout-call{position:absolute;top:17%;font:900 italic clamp(34px,7vw,68px) Arial;letter-spacing:.09em;color:#fff1bd;text-align:center}.scout-call span{display:block;font:600 14px var(--font);letter-spacing:.06em;color:#dcd7ee;margin-top:12px}.scout-halo{position:absolute;width:65vmin;height:65vmin;border:1px solid #c4add352;box-shadow:0 0 100px #9982b92b,inset 0 0 80px #b597d71a;border-radius:50%;transform:rotateX(65deg);top:48%}.ball-flight{position:absolute;inset:30% 0 15%;display:flex;justify-content:center;align-items:center;gap:clamp(10px,4vw,65px)}.scout-ball{width:clamp(55px,9vw,110px);height:clamp(55px,9vw,110px);position:relative;animation:ball-in .85s cubic-bezier(.18,.8,.3,1) both;animation-delay:calc(var(--i)*.13s);filter:drop-shadow(0 20px 12px #0005)}.scout-ball::after{content:"";position:absolute;inset:5%;border-radius:50%;background:#fff8d7;filter:blur(12px);opacity:0;animation:ball-light .8s 1.5s both}.ball-half{position:absolute;inset:0}.ball-half.top{clip-path:inset(0 0 50%);animation:ball-open-top .65s 1.4s forwards}.ball-half.bottom{clip-path:inset(50% 0 0);animation:ball-open-bottom .65s 1.4s forwards}.scout-ball img{width:100%;height:100%}.scout-animation>button{position:absolute;bottom:10%;color:#e4ddee;border-color:#847598;z-index:5;background:#28213d}.scout-animation>button:hover{background:#4e4264}@keyframes ball-in{from{transform:translate3d(var(--x),var(--y),-800px) rotate(-200deg);opacity:0}70%{opacity:1}to{transform:translate3d(0,0,0) rotate(0)}}@keyframes ball-open-top{to{transform:translateY(-35px) rotate(-15deg);opacity:0}}@keyframes ball-open-bottom{to{transform:translateY(25px) rotate(12deg);opacity:0}}@keyframes ball-light{45%{opacity:.9;transform:scale(1.5)}to{opacity:0;transform:scale(2)}}
@media(min-width:1400px){.game-main{padding-top:38px}.scout-grid{gap:20px}.candidate-main{padding:12px 12px 16px}}
@media(max-width:1000px){.game-main{padding:25px 24px}.game-header{padding:14px 24px}.setup{grid-template-columns:1fr 1fr}.setup>.primary{grid-column:1/-1}.intro-copy{padding-left:28px}.hero-ball{width:130px}.scout-grid{gap:10px}.candidate h2{font-size:15px}.type-badge{font-size:9px}.candidate-trait{font-size:10px}.battle-controls{grid-template-columns:1fr 210px}.ready-layout{grid-template-columns:1fr}.ready-opponent{border-left:0;border-top:1px solid var(--line);padding:20px 0;display:flex;align-items:center;justify-content:center;gap:20px}.ready-opponent .opponent-preview{margin:0}.health-panel{width:35%}.roster-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:650px){body{font-size:14px}.game-header{padding:12px 16px;min-height:68px;gap:10px}.game-brand{gap:7px;font-size:13px}.game-brand img{width:33px;height:33px}.game-brand span span{font-size:7px;letter-spacing:.07em}.game-header nav{font-size:11px;gap:12px}.game-header nav a{max-width:70px;line-height:1.4}.game-main{padding:20px 16px 32px}.intro{min-height:350px;grid-template-columns:1fr}.intro-copy{padding:26px 22px 150px}.intro h1{font-size:45px;margin:14px 0}.intro .tagline{font-size:17px}.intro-stats{gap:16px;margin-top:15px;font-size:9px}.intro-stats b{font-size:21px}.intro-art{position:absolute;right:0;bottom:0;width:62%;height:175px}.hero-ball{width:90px}.setup{gap:16px;padding:23px 0}.opponent-field{gap:7px}.setup .member-avatar{width:38px;height:38px;border-width:2px}.setup select{height:44px;font-size:13px;padding-right:2px}.field-label{font-size:11px}.setup .primary{width:100%}.roster-summary{gap:10px;align-items:flex-start}.roster-summary p{font-size:11px}.roster-summary button{font-size:12px;padding:5px 3px;white-space:nowrap}.resume-row{flex-wrap:wrap;justify-content:center}.resume-row p{font-size:11px}.session-heading{align-items:flex-start;margin-bottom:18px}.session-heading h1{font-size:23px}.session-heading .eyebrow{font-size:10px}.round-count{font-size:35px;min-width:85px}.scout-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.candidate-main{padding:10px 8px 12px}.candidate h2{font-size:16px}.type-badge{font-size:9px}.candidate-trait{font-size:10px}.candidate-scout{padding:10px}.party-strip{gap:10px;margin-top:20px;align-items:flex-start;flex-direction:column}.party-slots{gap:7px}.party-slot{gap:2px;flex-direction:column;text-align:center}.party-slot span{font-size:10px}.party-slot.empty{height:67px;justify-content:center;flex-direction:row}.party-slot.empty::after{width:25%;margin-left:5px}.scout-hint{font-size:10px;align-items:center}.scout-hint button{font-size:11px;padding:4px}.ready-party{gap:8px}.ready-party .candidate h2{font-size:12px}.ready-party .type-row{gap:2px;flex-wrap:wrap}.ready-party .type-badge{font-size:8px;padding:1px 2px}.ready-party .candidate-trait{font-size:9px;overflow-wrap:anywhere}.ready-party .mega-flag{font-size:7px;padding:1px 3px;left:4px;top:4px}.ready-party .lead-label{padding:8px 2px;font-size:11px}.ready-opponent{gap:9px;flex-wrap:wrap}.ready-opponent .member-avatar{width:45px;height:45px}.ready-opponent h2{font-size:14px}.ready-actions{flex-direction:column;margin-top:10px}.ready-actions .primary{width:100%}.battle-heading{flex-wrap:wrap;gap:4px;margin-bottom:12px}.battle-heading h1{font-size:18px}.battle-heading .eyebrow{font-size:9px}.opponent-name{font-size:11px}.opponent-name .member-avatar{width:29px;height:29px}.battle-turn{font-size:17px;margin-left:auto}.battle-arena{height:300px;margin:0 -6px;border-radius:7px;background-size:auto 100%;background-position:50% 50%}.health-panel{top:14px;width:43%;padding:9px 9px 6px}.health-panel.player{left:10px}.health-panel.cpu{right:10px}.health-name{font-size:12px}.health-name small{font-size:8px}.health-track{height:6px;margin:7px 0 4px}.health-bottom{font-size:9px}.team-dots i{width:8px;height:8px;border-width:1px}.combatant{width:41%;height:48%;bottom:18%}.combatant.player{left:3%}.combatant.cpu{right:3%}.battle-token{max-height:155px}.battle-message{font-size:12px;bottom:10px;padding:7px 12px;max-width:95%;width:max-content}.field-condition{top:92px;font-size:9px}.battle-toolbar{padding:12px 0;flex-wrap:wrap}.battle-toolbar p{font-size:12px}.mega-toggle{padding:6px 9px;min-height:38px;font-size:10px}.mega-toggle img{width:18px;height:18px}.timer{font-size:10px;gap:4px}.timer strong{font-size:20px;min-width:24px}.timer small{font-size:9px}.battle-controls{grid-template-columns:1fr;gap:12px}.move-grid{gap:8px}.move-button{padding:10px 9px;min-height:74px;border-left-width:4px}.move-title{font-size:14px;gap:5px}.move-meta{gap:7px;font-size:9px;flex-wrap:wrap}.move-meta b{font-size:10px}.battle-party{border-left:0;border-top:1px solid var(--line);padding:12px 0 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.switch-button{flex-direction:column;gap:0;padding:6px 3px;text-align:center;min-width:0;font-size:10px}.switch-button span{width:100%;overflow-wrap:anywhere}.switch-button small{font-size:9px}.battle-bottom{margin-top:12px}.battle-bottom button{font-size:11px;padding:7px}.battle-log{font-size:10px}.game-footer{padding:18px 16px;flex-wrap:wrap;gap:8px;font-size:9px}.game-footer>span:nth-child(2){order:3;width:100%}.game-footer a{margin-left:auto}.result-cover h2{font-size:43px}.result-cover p{font-size:12px}.result-cover .result-actions{flex-direction:column}.result-actions button{font-size:12px;padding:9px 17px;min-height:40px}.roster-grid{grid-template-columns:repeat(3,1fr);gap:7px}.roster-entry{font-size:9px}dialog{padding:25px 20px}.detail-hero{gap:12px;margin-top:10px}.detail-hero h2{font-size:21px}.detail-traits{gap:10px}.detail-move b{font-size:12px}.detail-move span{font-size:9px}.scout-call{top:22%}.scout-call span{font-size:12px}.ball-flight{gap:8px}.scout-ball{width:52px;height:52px}.scout-ball:nth-child(n+4){display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.scout-animation{display:none!important}}

.health-types{justify-content:flex-start;margin-top:5px}.health-types .type-badge{font-size:9px;padding:0 3px;border:0;background:transparent}.health-name b{min-width:0;overflow-wrap:anywhere}body{overflow-anchor:none}@media(max-width:650px){.health-types .type-badge{font-size:8px}.health-track{margin-top:5px}}
.party-notice{font-size:14px;color:#5d596b;padding:14px 0;border-top:1px solid var(--line);line-height:1.8}.special-challenger{border-left:3px solid #a78d4b;padding:10px 18px;margin-bottom:18px}.special-challenger strong{font-size:20px}.special-challenger p{font-size:15px}.special-challenger .text-button{padding-left:0}.opponent-preparing{min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px}.opponent-preparing .member-avatar{width:100px;height:100px}.setup select:disabled{opacity:1;color:#645123;border-color:#ad955b}.move-matchup{display:block;width:fit-content;padding:3px 8px;margin-top:8px;border-radius:3px;font-size:13px;font-weight:800;background:#eeeaf3;color:#514b68}.move-matchup[data-effect=strong]{color:#176146;background:#e2f0e5}.move-matchup[data-effect=weak]{color:#775727;background:#f4eddd}.move-matchup[data-effect=immune]{color:#74434c;background:#f2e4e8}.move-matchup[data-effect=status]{background:transparent;padding-left:0;color:var(--muted)}#share-dialog{width:min(640px,92vw)}#share-dialog h2{margin-bottom:22px}#share-text{font:600 15px/1.8 var(--font);color:var(--ink);width:100%;padding:16px;border:1px solid #c7c3d2;background:#fcfbf8;border-radius:6px;resize:vertical;min-height:270px}.share-count{text-align:right;font-size:13px;margin:7px 0 15px}.result-actions{flex-wrap:wrap}.game-embedded .game-header{padding:8px 0;min-height:46px;justify-content:flex-end}.game-embedded .game-brand,.game-embedded .game-header nav>a,.game-embedded .skip-link{display:none}.game-embedded .game-main{padding:16px 0 32px;min-height:0;max-width:none}.game-embedded .game-footer{padding:18px 0}.game-embedded body{background:var(--paper)}
@media(min-width:651px){body{font-size:18px}.game-header nav{font-size:16px}.eyebrow{font-size:14px}.field-label{font-size:16px}.setup select{font-size:19px}.roster-summary p,.resume-row p,.scout-hint,.ready-actions p{font-size:16px}.candidate h2{font-size:21px}.candidate-trait{font-size:14px}.type-badge{font-size:12px}.candidate-scout,.lead-label{font-size:16px}.party-slot span{font-size:14px}.battle-heading h1{font-size:28px}.opponent-name{font-size:16px}.health-name{font-size:21px}.health-bottom{font-size:14px}.health-types .type-badge{font-size:12px}.battle-message{font-size:19px}.battle-toolbar p{font-size:16px}.move-button{min-height:122px;padding:14px 18px}.move-title{font-size:21px}.move-meta,.move-meta b{font-size:13px}.move-matchup{font-size:14px}.switch-button{font-size:16px}.switch-button small{font-size:13px}.battle-controls{grid-template-columns:minmax(0,1fr) 270px}.timer,.timer small{font-size:13px}.mega-toggle{font-size:15px}.detail-traits,.detail-move b{font-size:17px}.detail-traits dd small,.detail-move span{font-size:14px}.detail-stats{font-size:14px}.battle-log,.game-footer{font-size:14px}.result-cover p{font-size:19px}.result-actions button{font-size:16px}.game-footer>span:first-child{font-size:12px}.roster-entry{font-size:14px}}
@media(min-width:651px) and (max-width:900px){.candidate h2{font-size:17px}.scout-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.battle-controls{grid-template-columns:minmax(0,1fr) 220px}.move-button{padding:12px}.move-title{font-size:18px}.type-badge{font-size:10px}.candidate-trait{font-size:12px}}
@media(max-width:650px){.move-button{min-height:107px}.move-matchup{font-size:11px;padding:2px 5px}.party-notice{font-size:12px}.special-challenger strong{font-size:17px}.special-challenger p{font-size:13px}.result-cover{padding:20px 10px}.result-cover .result-actions{gap:6px}.result-cover h2{font-size:36px}.result-actions button{min-height:35px;padding:7px 15px}.game-embedded .game-main{padding-top:12px}.game-embedded .battle-arena{margin:0}.game-embedded .game-header{padding:0}.game-embedded .game-header nav{font-size:13px}.opponent-preparing h2{font-size:22px}}

html:has(dialog[open]){overflow:hidden}#share-dialog{max-height:calc(100dvh - 32px)}#share-dialog .dialog-actions{flex-wrap:wrap}#share-dialog .dialog-actions a{font-size:15px}
.switch-button small{display:block}

.roster-summary{flex-direction:column;align-items:flex-start;gap:4px}.roster-summary p{margin:0;font-size:16px;line-height:1.7}.roster-summary .text-button{padding-left:0}
@media(max-width:650px){.roster-summary p{font-size:14px}}
.scout-mix{margin:-10px 0 20px;color:var(--violet);font-weight:800;letter-spacing:.04em}.mega-choices{display:flex;gap:6px;padding:0 10px 10px}.mega-choice{flex:1;min-width:0;min-height:40px;border:1px solid #c9c2d8;border-radius:5px;background:transparent;color:var(--ink);font-size:14px;font-weight:800}.mega-choice[aria-pressed=true]{background:#514578;border-color:#514578;color:white}.mega-form-label{font-size:13px;color:var(--violet);text-align:center;min-height:40px;padding:7px 5px;font-weight:800}
@media(max-width:650px){.ready-party .mega-choices{padding:0 3px 8px;gap:3px}.ready-party .mega-choice{font-size:11px;padding:4px 2px}}
.candidate{display:flex;flex-direction:column}.candidate-scout,.lead-label{margin-top:auto}

/* Keep the opening separate from the command UI without shifting the arena. */
.battle-opening>.battle-toolbar,.battle-opening>.battle-controls,.battle-opening>.battle-bottom{visibility:hidden;pointer-events:none}
.battle-playing .health-fill,.battle-playing .hp-mini i{transition:none!important}
.hp-mini i.mid{background:#c29a3d}.hp-mini i.low{background:#bd5a4d}
.move-slot{position:relative;min-width:0}.move-slot>.move-button{width:100%;height:100%;padding-right:42px}.move-info{position:absolute;right:7px;top:8px;display:grid;place-items:center;width:30px;height:30px;border:1px solid #c8c3d1;border-radius:50%;background:#f8f7fb;color:#655782;font:800 16px Georgia,serif;z-index:1}.move-info:hover,.move-info:focus-visible{background:#e9e3f2;outline:2px solid #83749e;outline-offset:2px}.combatant[role=button]{cursor:help}.combatant[role=button]:focus-visible{outline:2px dashed #e8e4c9;outline-offset:-5px;border-radius:12px}
.battle-hint{position:fixed;z-index:1000;width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:16px 18px;background:#fffef9;color:#302c42;border:1px solid #bcb3cb;border-radius:8px;box-shadow:0 6px 24px #24203325;font:600 15px/1.7 var(--font);text-align:left}.battle-hint[hidden]{display:none}.hint-title{display:block;font-size:17px;line-height:1.4;padding-bottom:8px;border-bottom:1px solid #e5e0e9}.hint-description{margin:10px 0 0;overflow-wrap:anywhere}.boost-list{margin:9px 0 0}.boost-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0}.boost-list dt{font-weight:700}.boost-list dd{display:flex;align-items:center;gap:10px;margin:0}.boost-marks{font-size:13px;letter-spacing:1px}.boost-count{width:26px;text-align:right;font-variant-numeric:tabular-nums;font-weight:900}.boost-up dd{color:#bb4f46}.boost-down dd{color:#3975a8}.boost-neutral{color:#85818d}
@media(max-width:650px){.move-slot>.move-button{padding-right:12px}.move-title{padding-right:24px}.move-info{right:5px;top:5px;width:28px;height:28px}.battle-hint{font-size:14px;width:290px}.hint-title{font-size:16px}}

/* Rare encounters shimmer once every five seconds, without a rapid flash. */
.legendary-candidate{border-color:#b49b56;background:linear-gradient(150deg,#fffdf4 40%,#eee8cc)}
.legendary-glint{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden;border-radius:inherit}
.legendary-glint::before{content:"";position:absolute;inset:-30% -70%;background:linear-gradient(110deg,transparent 42%,#fff9d900 46%,#fffcebb0 50%,#fff9d900 54%,transparent 58%);transform:translateX(-65%);animation:legendary-glint 5s ease-in-out infinite;animation-delay:var(--glint-delay,0s)}
@keyframes legendary-glint{0%,58%{transform:translateX(-65%);opacity:0}62%{opacity:.85}84%{transform:translateX(65%);opacity:.85}90%,100%{transform:translateX(65%);opacity:0}}
@keyframes legendary-aura{0%,58%,90%,100%{filter:drop-shadow(0 5px 2px #2b205f18)}72%{filter:drop-shadow(0 0 11px #dec369a0) brightness(1.12)}}
@media(prefers-reduced-motion:reduce){.legendary-glint{display:none}}

/* Image-free Pokémon presentation. Member portraits and generated venues stay in place. */
.player .battle-token.attack{animation:lunge-player .6s ease-in-out}@keyframes lunge-player{45%{transform:translateX(25px) scale(1.06)}}
.candidate-main{padding:34px 12px 18px;min-height:146px}.candidate h2{white-space:normal;overflow-wrap:anywhere;line-height:1.5}.candidate .type-row{flex-wrap:wrap}.candidate .type-badge{font-size:12px}.type-badge{border:1px solid #d5d0dd;border-left:3px solid var(--type-color,#8d829e);padding:2px 6px;font-weight:700}.party-slot{flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:56px}.party-slot>.type-row{flex-wrap:wrap;justify-content:flex-start}.party-slot>span{font-size:15px}.opponent-preview{display:grid;gap:8px;text-align:left}.opponent-pokemon{display:block;border-bottom:1px solid var(--line);padding:5px 0}.opponent-pokemon>strong{font-size:15px}.opponent-pokemon .type-row{justify-content:flex-start;margin:3px 0}.ready-party .candidate-main{min-height:166px}.lead-label{width:100%}.detail-hero{padding-right:30px}.detail-move{flex-wrap:wrap}.detail-move>span{white-space:normal}.detail-move .type-badge{font-size:11px;color:var(--ink)}.roster-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.roster-entry{padding:14px 8px;font-size:14px;overflow-wrap:anywhere}.roster-entry .type-row{margin-top:6px;flex-wrap:wrap}.roster-entry small{margin-top:5px}.switch-button{padding:10px 12px;min-height:65px}.move-title{flex-wrap:wrap;gap:5px 10px}.move-title .type-badge{font-size:11px;margin-left:auto}.move-meta{flex-wrap:wrap}.intro-art .hero-ball{width:clamp(110px,15vw,180px);filter:none}.battle-token{height:auto;min-height:100px;max-height:none;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:18px 10px;background:#f8f6f0f5;color:#28253f;border:1px solid #d9d4e0;border-top:5px solid var(--token-color);border-radius:8px;box-shadow:0 10px 22px #18284735;filter:none;image-rendering:auto;text-align:center}.battle-token>strong{font-size:clamp(16px,1.8vw,25px);line-height:1.5;overflow-wrap:anywhere}.player .battle-token{scale:1}.battle-token .type-row{flex-wrap:wrap}.battle-token .type-badge{font-size:12px}.combatant{height:42%;width:30%;bottom:23%}.combatant.player{left:9%}.combatant.cpu{right:9%}.health-types .type-badge{border-left:3px solid var(--type-color)}
@media(max-width:1000px){.ready-opponent .opponent-preview{display:flex;gap:15px;flex-wrap:wrap;justify-content:center}.roster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.intro{min-height:290px}.intro-copy{padding:26px 22px 40px}.intro-art{width:95px;height:95px;right:16px;bottom:16px;opacity:.3;z-index:-1}.intro-art .hero-ball{width:85px}.candidate-main{min-height:148px;padding:30px 9px 15px}.candidate .type-badge{font-size:11px}.candidate-trait{font-size:12px}.party-slot{align-items:center}.party-slot>.type-row{justify-content:center}.party-slot>span{font-size:12px}.party-slot.empty{height:58px}.ready-party{grid-template-columns:1fr}.ready-party .candidate-main{min-height:0;padding:30px 12px 16px}.ready-party .candidate h2{font-size:18px}.ready-party .candidate-trait{font-size:12px}.ready-party .type-badge{font-size:12px;padding:2px 6px}.ready-party .lead-label{font-size:14px}.ready-opponent .opponent-preview{width:100%;flex-direction:column;gap:3px}.opponent-pokemon{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}.roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-entry{font-size:13px}.detail-move{gap:5px}.detail-move b{flex-wrap:wrap}.battle-token{min-height:90px;padding:10px 6px;gap:5px}.battle-token>strong{font-size:15px}.battle-token .type-badge{font-size:10px;padding:1px 4px}.combatant{width:41%;height:38%;bottom:23%}.combatant.player{left:3%}.combatant.cpu{right:3%}.move-title .type-badge{font-size:10px;margin-left:0}.switch-button{padding:9px 5px;font-size:12px}.switch-button small{font-size:11px}}

/* Type artwork is shared with the event party display. */
.type-badge{border:1px solid #d5d0dd;gap:4px}.type-badge>span{font:inherit}.type-badge img{display:block;width:18px;height:18px;object-fit:contain;flex:none}.health-types .type-badge{border:0;padding:0 2px}.health-types img{width:14px;height:14px}@media(max-width:650px){.type-badge img{width:16px;height:16px}.health-types img{width:12px;height:12px}.battle-token .type-badge img{width:14px;height:14px}.battle-token .type-row{gap:3px}}

.substitute-tag{display:inline-block;margin-top:4px;padding:2px 8px;border:1px solid #a6dccc;border-radius:4px;background:#173b39;color:#dcfff2;font-size:12px;font-weight:700}.substitute-tag[hidden]{display:none}
