:root{color-scheme:dark;--bg:#081321;--panel:#101f32;--panel-raised:#152840;--line:#263a51;--text:#f0f5fa;--muted:#a2b1c2;--gold:#f3cf75;--teal:#74d9d1;--danger:#ffb1ab;font-family:Inter,Segoe UI,Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 70% 0%,#153147 0,transparent 47%),var(--bg);color:var(--text);min-height:100vh}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--teal);outline-offset:4px}button,input{border-radius:8px}button{color:inherit}p{line-height:1.55;margin:0 0 14px}h1,h2,h3{line-height:1.15;margin:0}h1{font-size:clamp(26px,2.5vw,36px);letter-spacing:-1px}h2{font-size:24px;letter-spacing:-.5px}h3{font-size:20px}small{font-size:11px}strong{font-weight:650}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;left:16px;top:8px;z-index:10;padding:12px;background:var(--gold);color:#142032;transform:translateY(-200%)}.skip-link:focus{transform:none}
.topbar{min-height:93px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:20px max(28px,calc((100vw - 1480px)/2));border-bottom:1px solid var(--line);background:#081321dd}.brand{display:flex;gap:13px;align-items:center;font-size:18px;font-weight:800;letter-spacing:1.1px;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:3px;color:var(--muted);margin-top:6px}.brand-symbol{color:var(--gold);font-size:46px;font-weight:400;line-height:1}.header-actions{display:flex;gap:26px;align-items:center}.quiet-link{font-size:13px;color:var(--muted)}.quiet-link:hover{color:white}.trial-tag,.small-tag{font-size:10px;letter-spacing:1.6px;font-weight:700;white-space:nowrap;border:1px solid var(--line);border-radius:5px;padding:6px 8px;color:var(--muted)}.trial-tag{color:var(--gold);border-color:#6a5834;background:#4b3d221f}.eyebrow{font-size:10px;line-height:1.6;letter-spacing:2px;font-weight:700;color:var(--teal);display:block;margin-bottom:12px}
.workspace{max-width:1480px;margin:0 auto;display:grid;grid-template-columns:300px minmax(0,1fr);gap:48px;padding:42px 28px 64px}.sidebar-heading>p{color:var(--muted);font-size:14px;margin-top:17px}.account-card{margin-top:29px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:23px 0}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:8px}.section-heading h2{font-size:16px;letter-spacing:0}.muted{color:var(--muted);font-size:14px}.account-card label{display:block;font-size:12px;color:var(--muted);margin:16px 0 7px}input[type=text],input[type=password],input[type=search]{color:var(--text);border:1px solid var(--line);background:#071421;width:100%;padding:11px 12px;min-height:44px}.login-note,.fine-print{font-size:11px;color:var(--muted);line-height:1.6}.login-note{margin-top:14px}.button{display:inline-flex;justify-content:center;align-items:center;gap:23px;padding:13px 18px;border:1px solid transparent;font-size:13px;font-weight:700;min-height:46px}.primary{color:#162335;background:var(--gold);box-shadow:0 5px 24px #0003}.primary:hover:enabled{background:#ffe3a0}.secondary{color:var(--text);border-color:var(--line);background:#14253a}.secondary:hover:enabled{background:#1d354f}.full-width{width:100%}.status-message{font-size:12px;margin:14px 0 0;color:var(--muted);min-height:0}.status-message:empty{display:none}.status-message.is-error{color:var(--danger)}.profile-name{font-size:23px;font-weight:700;margin-bottom:4px;overflow-wrap:anywhere}.profile-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin:21px 0}.profile-stats div{padding-left:12px;border-left:2px solid var(--line)}.profile-stats dt{font-size:10px;letter-spacing:1px;color:var(--muted);text-transform:uppercase;margin-bottom:4px}.profile-stats dd{margin:0;font-size:19px;font-weight:600}.account-actions{display:flex;justify-content:space-between;gap:15px;margin:20px 0}.text-button{padding:4px 0;border:0;border-radius:0;background:transparent;font-size:12px;color:var(--teal);text-decoration:underline;text-underline-offset:4px}.trial-note{display:flex;gap:12px;padding:25px 0 0;font-size:12px}.trial-note p{font-size:12px;color:var(--muted);margin-top:7px}.note-dot{width:7px;height:7px;flex:0 0 auto;background:var(--gold);border-radius:100%;margin-top:5px}.build-info{color:#73879c;font-size:10px;margin-top:19px;line-height:1.7;overflow-wrap:anywhere}
.main-column{min-width:0}.launch-card{min-height:190px;border:1px solid #425353;border-radius:14px;background:linear-gradient(115deg,#193549,#142538 62%,#283c3b);padding:30px 32px;display:flex;align-items:center;justify-content:space-between;gap:26px;position:relative;overflow:hidden}.launch-card:before{content:"";position:absolute;right:-40px;top:-90px;width:280px;height:280px;border:1px solid #79978626;border-radius:50%;pointer-events:none}.launch-card h2{font-size:30px;margin-bottom:12px}.launch-card p{color:#bdcbd7;font-size:13px;margin:0;max-width:420px}.launch-card .button{position:relative;flex-shrink:0}.launch-card .eyebrow{color:var(--gold)}.content-tabs{display:flex;gap:30px;border-bottom:1px solid var(--line);margin:24px 0 28px}.content-tabs button{padding:19px 2px 17px;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);font-size:14px;font-weight:600;display:flex;gap:10px;align-items:center}.content-tabs button[aria-selected=true]{color:var(--text);border-color:var(--gold)}.tab-count{color:var(--muted);background:var(--panel-raised);font-size:10px;padding:3px 6px;border-radius:5px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.panel-heading h2{font-size:22px;margin-bottom:8px}.panel-heading p{margin-bottom:0;font-size:12px}.team-list{display:grid;gap:15px}.team-card{border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:22px;transition:border-color .15s}.team-card.is-selected{border-color:var(--teal);box-shadow:inset 0 0 0 1px #74d9d120}.team-card-heading{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:20px}.team-card-heading h3{font-size:17px;overflow-wrap:anywhere}.team-card-heading p{color:var(--muted);font-size:11px;margin:5px 0 0}.team-select{border:1px solid var(--line);padding:9px 12px;font-size:11px;background:var(--panel-raised);min-width:83px}.is-selected .team-select{border-color:var(--teal);color:var(--teal);background:#194045}.team-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.team-slot{min-width:0;text-align:center;background:#0a1727;border:1px solid #24384a;border-radius:7px;padding:10px 4px 9px}.figure-art{display:block;width:100%;height:82px;object-fit:contain;filter:drop-shadow(0 4px 9px #0006)}.figure-placeholder{display:flex;align-items:center;justify-content:center;color:#40556c;font-size:36px;height:82px}.slot-name{font-size:10px;font-weight:600;line-height:1.35;margin:8px 0 4px;overflow-wrap:anywhere}.slot-info{font-size:9px;color:var(--muted);margin:0}.team-details{margin-top:15px;color:var(--muted);font-size:11px;line-height:1.7}.team-details p{margin:0}.team-details details{margin-top:7px}.team-details summary{cursor:pointer;color:#bed0de}.team-details ul{padding-left:18px;margin-bottom:0}.empty-state{border:1px dashed var(--line);border-radius:10px;padding:25px;font-size:13px;color:var(--muted)}
.collection-filters{display:flex;gap:20px;align-items:center;margin-bottom:14px}.search-label{flex:1}.saved-filter{font-size:12px;white-space:nowrap;color:var(--muted);display:flex;align-items:center;gap:7px}.saved-filter input{accent-color:var(--teal);width:17px;height:17px}.figure-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:19px}.figure-card{min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:15px 12px}.figure-card .figure-art,.figure-card .figure-placeholder{height:110px}.figure-card h3{font-size:13px;line-height:1.4;margin:13px 0 8px;overflow-wrap:anywhere}.figure-card p{font-size:10px;color:var(--muted);line-height:1.6;margin:0}.rarity{display:inline-block;color:var(--gold);font-size:9px;letter-spacing:1px;margin-top:8px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:25px}.pagination .button{font-size:11px;padding:10px 14px;min-height:39px}.pagination span{font-size:11px;color:var(--muted)}
.battle-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#050c15;color:var(--text)}.battle-dialog[open]{display:flex;flex-direction:column}.battle-dialog::backdrop{background:#050c15}.battle-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:0 0 auto;padding:14px 22px;border-bottom:1px solid var(--line);background:var(--bg)}.battle-toolbar .eyebrow{margin:0 0 5px;font-size:9px}.battle-toolbar h2{font-size:17px}.battle-toolbar .button{min-height:37px;font-size:11px;padding:9px 12px}.battle-status{flex:0 0 auto;padding:10px 22px;margin:0;font-size:11px;color:var(--muted);background:#101f32}.battle-frame-host{flex:1;min-height:0;position:relative}.battle-frame-host iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#050c15}
@media(min-width:1500px){.workspace{gap:58px;grid-template-columns:320px minmax(0,1fr)}}@media(max-width:1100px){.workspace{grid-template-columns:265px minmax(0,1fr);gap:28px}.launch-card{padding:26px;align-items:flex-start;flex-direction:column;gap:20px}.launch-card h2{font-size:27px}.figure-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.team-card{padding:18px 14px}.team-slots{gap:5px}.figure-art,.figure-placeholder{height:62px}.team-slot{padding:8px 3px}.slot-name{font-size:9px}.collection-filters{flex-direction:column;align-items:stretch;gap:13px}}
@media(max-width:760px){.topbar{min-height:78px;padding:16px 20px;gap:15px}.brand{font-size:13px;gap:9px}.brand small{font-size:7px;letter-spacing:2px}.brand-symbol{font-size:34px}.header-actions{gap:12px;flex-direction:column;align-items:flex-end}.trial-tag{font-size:8px;padding:4px 6px}.quiet-link{font-size:10px}.workspace{display:flex;flex-direction:column;gap:27px;padding:28px 20px 45px}.sidebar-heading .eyebrow{font-size:9px}.sidebar-heading h1{font-size:29px}.sidebar-heading h1 br{display:none}.sidebar-heading>p{font-size:13px;margin-bottom:0}.account-card{margin-top:22px;padding:17px 0}.section-heading{margin-bottom:13px}#guest-account>p{font-size:12px}#login-form{display:grid;grid-template-columns:1fr 1fr;gap:9px 13px}#login-form label{margin:5px 0 0}#login-form label[for=identifier]{grid-column:1;grid-row:1}#identifier{grid-column:1;grid-row:2}#login-form label[for=password]{grid-column:2;grid-row:1}#password{grid-column:2;grid-row:2}.login-note{grid-column:1/-1;margin:2px 0;font-size:10px}#login-button{grid-column:1/-1;margin-top:4px;min-height:42px}.trial-note{padding-top:17px}.trial-note p{font-size:11px;margin-bottom:0}.build-info{margin:12px 0 0;font-size:9px}.launch-card{min-height:0;gap:20px;padding:24px}.launch-card h2{font-size:26px}.launch-card .button{width:100%}.content-tabs{margin-top:8px;margin-bottom:23px}.panel-heading h2{font-size:21px}.team-slots{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.team-card{padding:18px}.figure-art,.figure-placeholder{height:76px}.slot-name{font-size:11px}.slot-info{font-size:10px}.team-card-heading h3{font-size:16px}.figure-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.figure-card{padding:12px 9px}.figure-card .figure-art,.figure-card .figure-placeholder{height:82px}.figure-card h3{font-size:11px}.figure-card p{font-size:9px}.collection-filters{gap:12px}.profile-stats{grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.profile-stats dd{font-size:17px}.profile-stats dt{font-size:8px}.battle-toolbar{padding:12px}.battle-toolbar h2{font-size:13px}.battle-toolbar .eyebrow{font-size:7px}.battle-toolbar .button{font-size:10px;padding:8px}.battle-status{padding:9px 12px;font-size:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* HTML game menus share the same page lifecycle; battles occupy their own frame. */
.content-tabs{gap:20px;overflow-x:auto}.content-tabs button{flex-shrink:0}.menu-dialog{width:min(640px,94vw);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);padding:24px}.menu-dialog::backdrop{background:#000a}.menu-dialog textarea{min-height:130px}.menu-dialog form{display:grid;gap:15px}.setting-row{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line)}.setting-row input[type=range]{max-width:230px;flex:1}.setting-row output{min-width:45px}.menu-card{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:10px;margin:15px 0}.menu-card h3{font-size:18px;margin-bottom:12px}.menu-card progress{width:100%}.menu-card .button{margin:7px 8px 0 0}.menu-grid{display:grid;gap:12px}.menu-table{width:100%;border-collapse:collapse;font-size:13px}.menu-table th,.menu-table td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line)}.menu-table button{padding:5px 9px;min-height:32px}.search-row,.chat-form{display:flex;gap:10px;margin:20px 0}.chat-messages{height:360px;max-height:50dvh;overflow:auto;border:1px solid var(--line);border-radius:9px;background:#071421;padding:10px;overscroll-behavior:contain}.chat-message{padding:10px;border-bottom:1px solid #263a5166;overflow-wrap:anywhere}.chat-message .text-button{margin-right:12px;font-weight:600}.chat-message-body{white-space:pre-wrap;font-size:13px}.chat-mention{background:#654e263d;border-left:3px solid var(--gold)}.hub-content h2{margin:22px 0 16px}
.hub-content .portrait-progress-region {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  text-align: left;
}
.hub-content .portrait-progress-region progress { grid-column: 1 / -1; width: 100%; }.hub-content>h3{margin:24px 0 12px}.hub-content>input{margin:12px 0}.hub-content select{margin:10px}.hub-content select,.menu-dialog select{color:var(--text);background:var(--panel-raised);padding:10px;border:1px solid var(--line);border-radius:8px}.hub-content textarea,.menu-dialog textarea{color:var(--text);background:var(--bg);padding:12px;border:1px solid var(--line);border-radius:8px;width:100%}.hub-content>.content-tabs{flex-wrap:wrap}.sidebar-heading{position:relative}.battle-toolbar{min-height:60px}@media(max-width:760px){.content-tabs{gap:16px}.menu-table th,.menu-table td{padding:8px 4px;font-size:11px}.menu-dialog{padding:18px}.search-row{flex-direction:column}.chat-form{gap:6px}.setting-row{flex-wrap:wrap}.setting-row input[type=range]{max-width:180px}.hub-content>.content-tabs{gap:8px}}
/* Native menu palette, using one existing cached website background.
   Keep this theme after the feature styles: no web fonts, filters or animation. */
:root{
  --bg:#071426;--panel:#0c2342;--panel-raised:#12365a;
  --line:#218de3;--text:#f0f6ff;--muted:#b6c9e1;
  --gold:#ffda72;--teal:#55d9ff;--danger:#ffaaa4;
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
}
body{
  background-color:var(--bg);
  background-image:linear-gradient(#06132694,#061326db),url("/assets/game/character-background.3c8d16cfb7f0.jpg");
  background-position:center top;background-size:cover;background-attachment:fixed;
}
h1,h2,h3{letter-spacing:.3px}
h1,h2{font-weight:700}
.topbar{
  min-height:84px;padding-block:14px;background:#081d39f5;
  border-bottom:2px solid var(--line);box-shadow:0 3px 0 #041020;
}
.brand{
  color:var(--gold);font-family:Georgia,"Times New Roman",serif;
  font-size:20px;letter-spacing:1px;text-shadow:0 2px 0 #020a17;
}
.brand small{color:#ecf6ff;letter-spacing:5px;text-align:center;font-family:"Trebuchet MS","Segoe UI",sans-serif}
.brand-symbol{
  position:relative;display:block;width:38px;height:38px;flex:0 0 38px;
  border:3px solid var(--gold);border-radius:50%;
  background:linear-gradient(#df4560 0 43%,#07152b 43% 57%,#f1f5fc 57%);
}
.brand-symbol:after{
  content:"";position:absolute;left:50%;top:50%;width:12px;height:12px;
  transform:translate(-50%,-50%);border:3px solid #07152b;border-radius:50%;background:#f1f5fc;
}
.header-actions{gap:16px;flex-wrap:wrap;justify-content:flex-end}
.quiet-link{color:#cbddf2}
.workspace{gap:24px;padding-top:28px;grid-template-columns:280px minmax(0,1fr)}
.sidebar{
  align-self:start;padding:23px 20px;background:#091e3bf5;
  border:2px solid var(--line);border-radius:16px;
  box-shadow:inset 0 0 0 3px #06162c,0 6px 15px #0003;
}
.sidebar-heading .eyebrow{color:var(--gold);letter-spacing:1.3px}
.sidebar-heading h1{font-size:29px;letter-spacing:.2px}
.sidebar-heading>p{font-size:13px;margin-top:12px}
.account-card{margin-top:22px;padding:20px 0 4px;border-bottom:0}
.section-heading h2,.panel-heading h2{color:#e4efff}
.small-tag,.trial-tag{border-color:#58799c;background:#102e50;color:#d4e6fb}
.account-card label{color:#d2e2f7}
.profile-stats div{border-color:var(--teal)}
.profile-name{color:var(--gold)}
.build-info{color:#a9bdd7}
.launch-card{
  min-height:166px;padding:25px 28px;border:2px solid var(--line);border-radius:17px;
  background:linear-gradient(110deg,#0c2c52f5,#0a2040f5);
  box-shadow:inset 0 0 0 3px #06162c,0 5px 14px #0003;
}
.launch-card:before{display:none}
.launch-card h2{color:var(--gold);font-size:29px;letter-spacing:.5px}
.launch-card p{color:#c6d7ec}
.eyebrow{color:var(--teal)}
.button,.account-action,.team-select{
  min-height:44px;border:2px solid var(--line);border-radius:10px;
  background:linear-gradient(#10365d,#0a2343);color:var(--text);
  box-shadow:inset 0 0 0 2px #071a33,0 2px 0 #030e20;
  font-weight:700;font-size:13px;letter-spacing:.4px;
}
.button{gap:12px}
.button.primary{
  color:#ffe59b;border-color:#e4bd56;background:linear-gradient(#244468,#0b264b);
  text-transform:uppercase;box-shadow:inset 0 0 0 2px #10213a,0 3px 0 #030e20;
}
.button:hover:enabled,.account-action:hover:enabled,.team-select:hover:enabled{
  background:#174979;border-color:#66d9ff;color:white;
}
.button.primary:hover:enabled{background:#1b426c;color:#fff1bc;border-color:#ffe59b}
.button:active:enabled,.account-action:active:enabled{background:#09213d;box-shadow:inset 0 2px 3px #0005}
button:disabled{opacity:.5}
.text-button{color:var(--teal);min-height:36px}
.content-tabs{
  gap:8px;padding:9px;margin:18px 0;border:2px solid var(--line);
  border-radius:13px;background:#081e3cf5;scrollbar-width:thin;
  scrollbar-color:var(--line) #06162c;
}
.content-tabs button{
  min-height:44px;padding:11px 15px;border:1px solid #326594;border-radius:8px;
  color:#c1d5ee;background:#102c4d;justify-content:center;line-height:1.3;
}
.content-tabs button[aria-selected=true]{
  color:var(--gold);border-color:var(--gold);background:#153d64;
}
.content-tabs button:hover{background:#164572;color:white}
.tab-count{color:#def2ff;background:#071c36;border:1px solid #4777a2}
.main-column>section[role=tabpanel]{
  padding:22px;background:#091e3bf5;border:2px solid var(--line);border-radius:15px;
  box-shadow:inset 0 0 0 3px #06162c;
}
.mode-navigation{gap:9px;margin-bottom:18px}
.mode-navigation .button[aria-current=true],.account-feature-nav button[aria-pressed=true],
.account-build-list button[aria-pressed=true]{border-color:var(--gold);color:var(--gold);background:#153d64}
.mode-section,.menu-card,.team-card,.account-team-card,.account-editor-slot,
.account-shop-card,.account-inventory-row{
  border:2px solid #257bbd;border-radius:12px;background:#0b2444;
  box-shadow:inset 0 0 0 2px #07182e;
}
.mode-section{padding:21px}
.mode-section>h3,.menu-card h3,.team-card-heading h3{color:var(--gold)}
.mode-stage{background:#081a32;border-color:#286b9f;border-radius:10px}
.mode-stage h4{color:#dfedff}
.team-card.is-selected{border-color:var(--gold);box-shadow:inset 0 0 0 2px #183f65}
.is-selected .team-select{border-color:var(--gold);color:var(--gold);background:#163f65}
.team-slot,.figure-card,.account-figure-option{
  background:#081d37;border:1px solid #287bbc;border-radius:10px;
}
.figure-card h3,.slot-name{color:#eaf3ff}
.figure-art{filter:none}
.account-feature-content h2,.account-feature-content h3{color:var(--gold)}
.account-feature-content .account-team-editor h3{color:var(--text)}
.account-field>span{color:#c7d9ef}
.account-help,.account-move-effect{color:var(--muted)}
.account-build-list,.account-plate-deck,.account-avatar-preview{border-color:#287bbc;background:#081b34}
.account-wheel-table th,.menu-table th{background:#103356;color:#def0ff}
.account-wheel-table td,.account-wheel-table th,.menu-table th,.menu-table td{border-color:#235880}
input[type=text],input[type=password],input[type=search],
.account-feature-content input,.account-feature-content select,.account-feature-content textarea,
.account-confirm input,.account-confirm textarea,.account-picker input,
.hub-content select,.menu-dialog select,.hub-content textarea,.menu-dialog textarea,
.mode-field select,.mode-field input{
  color:var(--text);background:#06192f;border:1px solid #398ccd;border-radius:8px;
  min-height:44px;
}
input::placeholder,textarea::placeholder{color:#94adc9;opacity:1}
.menu-dialog,.account-picker,.account-confirm{
  border:2px solid var(--line);border-radius:16px;background:#0b2342;
  box-shadow:inset 0 0 0 3px #06162c,0 12px 32px #0006;
}
.account-picker>.account-row{background:#0b2342}
.menu-dialog::backdrop,.account-picker::backdrop,.account-confirm::backdrop{background:#020917bf}
.chat-messages{border-color:#328ed1;background:#06192f}
.chat-message{border-color:#24466d}
.chat-mention{background:#4d422b;border-left-color:var(--gold)}
.chat-message-body{color:#eef5ff}
.empty-state{border-color:#527698;color:var(--muted);background:#081c35}
.setting-row{border-color:#28587f}
.battle-toolbar{background:#081e3c;border-color:var(--line)}
.battle-status{background:#0b274a}
:is(.content-tabs,.chat-messages,.account-build-list,.menu-dialog,.account-picker,.account-confirm){
  scrollbar-color:#338fcf #06162c;scrollbar-width:thin;
}
@media(min-width:1500px){.workspace{grid-template-columns:300px minmax(0,1fr);gap:28px}}
@media(max-width:1100px){
  .workspace{grid-template-columns:245px minmax(0,1fr);gap:18px;padding-inline:20px}
  .sidebar{padding:20px 16px}.sidebar-heading h1{font-size:25px}
  .main-column>section[role=tabpanel]{padding:17px}
  .launch-card{padding:24px}.content-tabs button{padding-inline:12px}
}
@media(max-width:760px){
  body{background-attachment:scroll;background-size:auto 100svh;background-repeat:no-repeat}
  .topbar{padding:12px 16px;gap:12px;min-height:76px}
  .brand{font-size:15px;gap:10px}.brand small{font-size:8px;letter-spacing:3px}
  .brand-symbol{width:30px;height:30px;flex-basis:30px;border-width:2px}
  .brand-symbol:after{width:10px;height:10px;border-width:2px}
  .header-actions{gap:8px}.header-actions .button{font-size:11px;padding:9px 12px}
  .header-actions .fine-print{max-width:180px;text-align:right}
  .workspace{padding:18px 12px 32px;gap:18px}
  .sidebar{width:100%;padding:20px}.sidebar-heading h1{font-size:26px}
  .sidebar-heading>p{margin-top:8px}.account-card{margin-top:16px}
  .launch-card{padding:22px;gap:17px}.launch-card h2{font-size:26px}
  .content-tabs{gap:7px;padding:7px;margin:14px 0}
  .content-tabs button{padding:10px 12px;font-size:12px;min-height:44px}
  .main-column>section[role=tabpanel]{padding:15px}
  .mode-section{padding:17px}.mode-navigation .button{min-height:44px}
  .hub-content>.content-tabs{gap:7px}
  .account-action{font-size:12px;min-height:44px}
  .menu-dialog{padding:18px}
}
/* Player Hub dashboard and native-style page navigation. Background selectors
   fetch only the current page's small image; no hidden image elements/preloads. */
.game-menu-layout{--menu-art:url("menu_art/hub.a5c416a67197b2957277.webp");background-image:linear-gradient(#06132675,#061326bc),var(--menu-art)}
.game-menu-layout[data-menu-background=challenge]{--menu-art:url("menu_art/challenge.c37dbb097e75e0cd32fa.webp")}
.game-menu-layout[data-menu-background=tower]{--menu-art:url("menu_art/tower.2b2e7b1dc7eab6d7a4b1.webp")}
.game-menu-layout[data-menu-background=store]{--menu-art:url("menu_art/store.51e8fb404b3bd475be8f.webp")}
.game-menu-layout[data-menu-background=inventory]{--menu-art:url("menu_art/inventory.398d88e561698385613c.webp")}
.game-menu-layout[data-menu-background=history]{--menu-art:url("menu_art/history.383150d63b927cc55f7a.webp")}
.game-menu-layout .workspace{display:block;max-width:1440px;padding:25px 24px 35px}
.home-top{display:grid;grid-template-columns:minmax(270px,1fr) minmax(0,2fr);gap:18px;margin-bottom:18px}
.home-top .sidebar{width:100%;height:100%;border-color:#74a3cf}
.home-top .sidebar-heading h1{font-size:25px}
.home-top .account-card{padding-top:13px;margin-top:14px}
.home-top .account-card label{margin-top:12px}
.home-top .profile-stats{margin:16px 0}
.home-top .account-actions{margin:12px 0 0}
.home-top .build-info{margin-top:12px}
.home-banner{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  padding:32px;border:2px solid #cba75d;border-radius:18px;
  background:#092653c9;box-shadow:inset 0 0 0 3px #081b35;
}
.home-banner h2{color:var(--gold);font-size:clamp(27px,3.1vw,43px);max-width:600px;line-height:1.15}
.home-banner p{max-width:480px;color:#d5e5fa;margin:18px 0 0}
.home-quick-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}
.home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.home-card{
  display:flex;flex-direction:column;align-items:flex-start;gap:12px;
  min-width:0;min-height:165px;padding:22px;text-align:left;
  border:2px solid #629ed4;border-radius:15px;background:#0a2851ed;
  color:var(--text);box-shadow:inset 0 0 0 3px #081b35;
}
.home-card-title{color:#f1d88e;font-size:22px;font-weight:700;line-height:1.2}
.home-card>span:not(.home-card-title){color:#bcd4ee;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.home-card>b{color:#65dbff;font-size:10px;letter-spacing:1px;margin-top:auto;padding-top:5px}
.home-card:hover:enabled{border-color:var(--teal);background:#103b69}
.home-card:active:enabled{background:#081f3f}
.home-navigation{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;
  padding:10px;margin-top:18px;border:2px solid #cba75d;border-radius:14px;background:#09244bf5;
}
.home-navigation .button{min-height:57px;font-size:12px;padding:10px 7px;line-height:1.35;white-space:normal}
.menu-page-heading{display:flex;flex-wrap:wrap;align-items:center;gap:18px;padding:16px 20px;margin-bottom:18px;border:2px solid var(--line);border-radius:14px;background:#09244bf2}
.menu-page-heading h1{color:var(--gold);font-size:28px;flex:1;min-width:0;overflow-wrap:anywhere}
.menu-page-heading h1:focus{outline:none}
.menu-page-heading .status-message{flex-basis:100%;margin:0}
.game-menu-layout .main-column>[data-menu-panel]{padding:24px;background:#081d38e3;border:2px solid var(--line);border-radius:15px;box-shadow:inset 0 0 0 3px #06162c;min-width:0}
.selected-team-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:13px 18px;margin-bottom:16px;border:1px solid #408bd0;border-radius:10px;background:#0b2549ed}
.selected-team-bar>span{flex:1;min-width:160px;color:#cde3fa;font-size:14px;overflow-wrap:anywhere}
.selected-team-bar .button{font-size:12px}
.game-button-list{display:grid;gap:16px;width:min(600px,100%);margin:16px auto;padding:12px}
.game-button-list .button{min-height:67px;font-size:18px;letter-spacing:1px;text-transform:uppercase}
.game-menu-layout .account-feature-nav,#hub-features-host>.content-tabs{display:none}
.game-menu-layout .account-feature-content>h2:first-child,.game-menu-layout .hub-content>h2:first-child{margin-top:0}
.game-menu-layout .team-list+.launch-card{margin-top:20px;flex-wrap:wrap;min-height:0}
.game-menu-layout .mode-columns>.button{justify-self:start}
@media(max-width:1100px){
  .home-top{grid-template-columns:300px minmax(0,1fr)}
  .home-banner{padding:26px}.home-card{padding:18px;min-height:155px}.home-card-title{font-size:20px}
  .home-navigation{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-navigation .button{min-height:48px}
}
@media(max-width:760px){
  .game-menu-layout .workspace{padding:16px 12px 30px}
  .home-top{grid-template-columns:1fr;gap:14px;margin-bottom:14px}
  .home-banner{padding:24px}.home-banner h2{font-size:29px}
  .home-banner p{font-size:13px}.home-quick-actions{gap:9px;margin-top:18px}
  .home-top .sidebar{padding:18px}.home-top .build-info{margin-bottom:0}
  .home-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .home-card{padding:16px;min-height:165px;gap:10px}
  .home-card-title{font-size:19px}.home-card>span:not(.home-card-title){font-size:12px}
  .home-card>b{font-size:9px;line-height:1.4}
  .home-navigation{gap:7px;padding:8px;margin-top:14px}
  .home-navigation .button{font-size:10px;letter-spacing:.2px}
  .menu-page-heading{padding:13px;gap:12px}.menu-page-heading h1{font-size:24px}
  .menu-page-heading>.button{font-size:11px}
  .game-menu-layout .main-column>[data-menu-panel]{padding:15px}
  .selected-team-bar{padding:12px;gap:8px}.selected-team-bar>span{flex-basis:100%;font-size:13px}
  .game-button-list{padding:5px}.game-button-list .button{font-size:16px;min-height:59px}
}
/* Native menu artwork stays in small static images; no animated models. */
.hub-identity{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;align-items:center}
.player-avatar-button{display:block;position:relative;width:110px;height:110px;flex-shrink:0;padding:0;border:2px solid #67bdf5;border-radius:15px;background:#0a2042;overflow:hidden;box-shadow:inset 0 0 0 3px #06192f}
.player-avatar-button:hover{border-color:var(--gold)}
.player-avatar{display:block;width:100%;height:100%;position:relative;overflow:hidden}
.player-avatar-figure,.avatar-fallback{display:block;width:100%;height:100%;object-fit:contain}
.player-avatar-layer{position:absolute;max-width:none;height:auto;pointer-events:none}
.hub-identity .sidebar-heading h1{font-size:24px;overflow-wrap:anywhere}
.hub-identity .eyebrow{font-size:9px;letter-spacing:.6px;margin-bottom:8px}
.menu-button-icon{display:block;object-fit:contain;width:29px;height:29px;flex-shrink:0}
.home-quick-actions .menu-button-icon{width:25px;height:25px}
.home-card{position:relative}
.home-card-icon{position:absolute;right:17px;top:17px;width:40px;height:40px;object-fit:contain}
.home-card-title{padding-right:47px;min-height:44px}
img[data-menu-icon]:not([src]){visibility:hidden}
.mode-section[data-difficulty=hard]{--challenge-accent:#ffa254;border-color:#c5864d}
.mode-section[data-difficulty=expert]{--challenge-accent:#c797ff;border-color:#986ada}
.mode-section[data-difficulty=normal]{--challenge-accent:#56c9ff}
.gym-badge-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}
.gym-badge-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;min-width:0;min-height:230px;padding:17px 12px;border:2px solid var(--challenge-accent,#398bd5);border-radius:13px;color:var(--text);background:#061d3c;box-shadow:inset 0 0 0 3px #08152c}
.gym-badge-art{display:block;width:112px;height:112px;object-fit:contain;flex-shrink:0;margin-bottom:4px}
.gym-badge-card strong{font-size:17px;line-height:1.3}
.gym-badge-leader{font-size:13px;letter-spacing:.5px;color:#bbd4ee;text-transform:uppercase}
.trainer-card-state{display:block;font-size:11px;line-height:1.4;letter-spacing:.6px;margin-top:auto;color:#a6c9ed}
.gym-badge-card:disabled{opacity:1}.gym-badge-card.is-locked .gym-badge-art{opacity:.35}
.gym-badge-card.is-completed{border-color:#5ae0c7}.is-completed .trainer-card-state{color:#72e5c8}
.gym-badge-card:hover:enabled{background:#10375d;border-color:#8ee6ff}
.elite-four-entry{display:flex;align-items:center;gap:20px;padding:20px;margin-top:18px;border:2px solid #d0b56b;border-radius:13px;background:#061528}
.elite-four-entry>div{flex:1;min-width:0}.elite-four-entry h3{font-size:20px;color:var(--gold);margin-bottom:8px}.elite-four-entry p{font-size:12px;margin:0;overflow-wrap:anywhere}
.league-crown{width:64px;height:64px;object-fit:contain;flex-shrink:0}
.gym-trainer-preview{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:28px;align-items:center;padding:24px 10px 10px}
.gym-leader-portrait{display:block;width:100%;height:340px;object-fit:contain;object-position:center top}
.gym-trainer-detail{min-width:0}.gym-trainer-detail h3{font-size:29px;color:var(--gold);margin:10px 0}.gym-trainer-detail h4{font-size:18px;margin:10px 0}
.gym-preview-badge{display:block;width:80px;height:80px;object-fit:contain;margin:18px 0 5px}
.gym-trainer-detail>.button{margin:10px 8px 0 0}
.elite-trainer-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:22px 0}
.elite-trainer-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:15px 10px;border:2px solid var(--challenge-accent,#5599d7);border-radius:13px;background:#071c38;color:var(--text);overflow:hidden;text-align:center}
.elite-trainer-card:disabled{opacity:1}
.elite-trainer-art{display:block;width:100%;height:205px;object-fit:cover;object-position:center top;margin-bottom:4px}
.elite-trainer-card:not(.is-current):not(.is-defeated) .elite-trainer-art{opacity:.4}
.elite-card-number{position:absolute;left:12px;top:10px;color:#83daff;font-weight:700;font-size:19px;z-index:1}
.elite-card-crown{position:absolute;right:10px;top:10px;width:29px;height:29px;object-fit:contain}
.elite-card-role{font-size:11px;letter-spacing:1px;color:var(--challenge-accent,#8ad5fc)}
.elite-trainer-card strong{font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.elite-trainer-card.is-current{border-color:var(--gold);background:#11375a}.is-current .trainer-card-state{color:var(--gold)}
.elite-trainer-card.is-defeated .trainer-card-state{color:#70e7b8}
@media(max-width:1000px){.elite-trainer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gym-badge-grid{gap:10px}.gym-badge-card{padding:14px 8px;min-height:216px}.gym-badge-card strong{font-size:15px}.gym-badge-art{width:100px;height:100px}}
@media(max-width:760px){
  .hub-identity{grid-template-columns:100px minmax(0,1fr)}.player-avatar-button{width:100px;height:100px}
  .home-navigation .button{flex-direction:column;gap:5px;min-height:70px}.home-navigation .menu-button-icon{width:25px;height:25px}
  .home-card-icon{width:31px;height:31px;top:15px;right:12px}.home-card-title{font-size:18px;padding-right:32px;min-height:42px}
  .gym-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gym-badge-card{min-height:210px}
  .elite-four-entry{flex-wrap:wrap;padding:15px;gap:12px}.elite-four-entry h3{font-size:17px}.elite-four-entry .button{width:100%}.league-crown{width:45px;height:45px}
  .gym-trainer-preview{grid-template-columns:1fr;gap:16px;padding-top:18px}.gym-leader-portrait{height:260px;max-width:280px;justify-self:center}
  .gym-trainer-detail h3{font-size:25px}.gym-trainer-detail{padding:0 5px}.gym-trainer-detail>.button{min-height:46px}
  .elite-trainer-art{height:180px}.elite-trainer-card strong{font-size:18px}
}
@media(max-width:480px){.elite-trainer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.elite-trainer-art{height:175px}.elite-trainer-card{padding:13px 8px}.gym-badge-card strong{font-size:14px}}

.header-actions .menu-button-icon{width:23px;height:23px}.profile-stats>div{position:relative}.menu-coin-icon{position:absolute;right:2px;top:4px;width:22px;height:22px;object-fit:contain}.profile-stats>div:has(.menu-coin-icon){padding-right:25px}
/* Game banner carousel: one current image and manual controls. */
.home-banner.banner-panel{padding:18px;align-items:stretch;justify-content:center;gap:0}
.home-carousel{position:relative;width:100%;aspect-ratio:1024/270;min-height:132px;border:1px solid #577ca7;border-radius:12px;overflow:hidden;background:#06172f}
.home-banner-open{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.home-banner-open:disabled{opacity:1}.home-banner-open img{display:block;width:100%;height:100%;object-fit:contain}
.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:50px;padding:0;border:1px solid #5d94c38c;border-radius:9px;background:#06182dbd;color:#e1f0ff;font-size:36px;line-height:1}
.carousel-previous{left:7px}.carousel-next{right:7px}.carousel-arrow:hover{background:#123d68}
.carousel-dots{position:absolute;left:50%;bottom:3px;transform:translateX(-50%);display:flex;padding:0 5px;border-radius:18px;background:#06182dc9}
.carousel-dot{display:grid;place-items:center;width:30px;height:30px;min-width:30px;padding:0;border:0;background:transparent}
.carousel-dot:before{content:"";display:block;width:8px;height:8px;border:1px solid #9ed7fc;border-radius:50%;background:#2a5077}
.carousel-dot[aria-pressed=true]:before{background:#41cfff}
.banner-panel #home-banner-caption{font-size:11px;color:#bdd6f0;margin:10px 2px 0;text-align:center}
.banner-panel .app-recommendation{font-size:13px;line-height:1.65;color:#c4d8f1;max-width:none;margin:16px 0 0;padding:14px 5px 0;border-top:1px solid #48759f}
.app-recommendation a{color:var(--gold);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
/* Native-style choice buttons and saved-team list/selected-team preview. */
.mode-choice-group{min-width:0;margin:18px 0;padding:0;border:0}
.mode-choice-group>legend{padding:0;margin-bottom:10px;color:#c6dff7;font-size:13px;font-weight:700}
.mode-choice-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}
.mode-choice-buttons>.button{min-width:0;min-height:49px;white-space:normal;overflow-wrap:anywhere;line-height:1.4;padding:10px}
.mode-choice-buttons>.button[aria-pressed=true]{border-color:var(--gold);background:#16416a;color:#ffe4a1}
.match-team-picker{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;margin:20px 0;padding:15px;border:2px solid #317eb8;border-radius:13px;background:#061a33}
.match-team-list-pane,.match-team-preview{min-width:0}
.match-team-list-pane>h3,.match-team-preview>h3{font-size:17px;color:#c6def7;margin:0 0 12px;text-transform:uppercase}
.match-team-list-pane>input{width:100%;margin-bottom:4px}
.match-team-list-pane .mode-choice-group{margin:12px 0}
.match-team-list-pane .mode-choice-group>legend{font-size:11px;margin-bottom:7px}
.match-team-list-pane .mode-choice-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.match-team-list-pane .mode-choice-buttons>.button{font-size:10px;padding:7px 3px;min-height:40px;letter-spacing:0}
.match-team-rows{display:grid;align-content:start;gap:9px;max-height:min(58dvh,550px);overflow-y:auto;padding:3px 7px 3px 1px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#358ac7 #06162c}
.match-team-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:9px;align-items:center;min-width:0;min-height:76px;width:100%;padding:10px;border:2px solid #2f79b2;border-radius:10px;background:#0b2647;color:#ecf5ff;text-align:left}
.match-team-row strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.match-team-row:hover{background:#12395e}.match-team-row[aria-pressed=true]{border-color:var(--gold);background:#143d62}
.match-team-icons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;min-width:0}
.match-team-icon{display:block;width:100%;height:42px;object-fit:contain}
.match-team-list-pane>.fine-print{margin:9px 0 0;color:#a4c6e9}
.match-team-preview{padding:16px;border:1px solid #337eb5;border-radius:10px;background:#0b2546;align-self:start}
.match-team-preview>h4{font-size:18px;color:var(--gold);margin:10px 0 18px;overflow-wrap:anywhere}
.match-preview-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:16px}
.match-preview-slot{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:8px 4px;border:1px solid #2d76a9;border-radius:8px;background:#081c36;text-align:center}
.match-preview-art{display:block;width:100%;height:83px;object-fit:contain}
.match-preview-slot strong{font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.match-preview-slot small{font-size:10px;line-height:1.4;color:#afd0ee}
@media(max-width:1000px){.match-team-picker{padding:12px;gap:12px}.match-team-row{grid-template-columns:1fr;padding:8px;gap:3px;min-height:82px}.match-team-icon{height:33px}.match-team-preview{padding:12px}.match-preview-art{height:65px}.match-preview-slots{gap:6px}}
@media(max-width:760px){
 .home-banner.banner-panel{padding:13px}.home-carousel{min-height:127px}.banner-panel .app-recommendation{font-size:12px;margin-top:12px}
 .carousel-arrow{width:40px;height:48px;font-size:32px}.carousel-previous{left:3px}.carousel-next{right:3px}
 .match-team-picker{grid-template-columns:1fr;padding:12px}.match-team-rows{max-height:42dvh}.match-team-row{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;min-height:72px}
 .match-team-preview{padding:13px}.match-preview-art{height:76px}.match-team-preview>h4{font-size:17px}
 .mode-choice-buttons{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px}.mode-choice-buttons>.button{font-size:12px;min-height:47px}
}
/* Native title, compact centered choice panels and dashboard details. */
.home-game-title{margin:0 0 10px;text-align:center;color:var(--gold);font:700 26px Georgia,serif}
.home-game-title img{display:block;width:min(620px,100%);height:74px;object-fit:contain;margin:auto}
.home-game-title img:not([src]){display:none}.home-game-title:has(img[src])>span{display:none}
.banner-panel .home-carousel{aspect-ratio:auto;height:155px;min-height:125px}
.banner-panel .app-recommendation{margin-top:10px;padding-top:10px}
.home-top .sidebar.is-signed-in .section-heading,.sidebar.is-signed-in #profile-name,.sidebar.is-signed-in .profile-stats,.sidebar.is-signed-in .build-info{display:none}
.home-top .sidebar.is-signed-in .account-card{border:0;margin:8px 0 0;padding:0}
.home-top .sidebar.is-signed-in .account-actions{justify-content:center}
.home-top .sidebar.is-signed-in #account-status{font-size:10px;text-align:center}
.hub-identity #profile-rank{font-size:12px;margin:8px 0 0;line-height:1.5}
.home-cards .home-card{min-height:215px;padding:15px;gap:10px}
.home-card .home-card-icon{left:15px;right:auto;top:16px;width:24px;height:24px}
.home-card .home-card-title{padding:0 55px 10px 34px;width:100%;font-size:16px;line-height:1.5;min-height:36px;border-bottom:1px solid #8faec5}
.home-card-count{position:absolute;right:16px;top:20px;font-size:12px;color:#cadff5}
.home-card #home-stats-summary,.home-card #home-collection-summary,.home-card #home-teams-summary{display:none}
.home-card>span.dashboard-stat-grid,.home-card>span.dashboard-progress-list,.home-card>span.dashboard-figure-strip,.home-card>span.dashboard-team-strip,.home-card>span.dashboard-inventory-strip{max-width:none;width:100%}
.dashboard-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:1}
.dashboard-stat-grid>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px 4px;background:#082342;border:1px solid #2c7eba;border-radius:10px}
.dashboard-stat-grid small{font-size:9px;color:#b6cde5}.dashboard-stat-grid strong{font-size:24px;color:#f1f7ff}
.home-card[data-menu=profile]>b{display:none}
.dashboard-progress-list{display:grid;align-content:center;gap:14px;min-height:95px}
.dashboard-region-progress{display:grid;gap:8px}.dashboard-region-progress>span{font-size:12px;color:#d1e8ff}
.dashboard-region-progress progress{width:100%;height:12px;accent-color:#24c7ff}
.dashboard-figure-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.dashboard-figure-strip>span{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}
.dashboard-figure-strip .figure-art{height:84px}.dashboard-rarity{font-size:17px;color:#ffe190;text-shadow:1px 1px #298cc6}
.dashboard-team-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.dashboard-team-tile{display:grid;gap:6px;padding:5px;border:1px solid #2b7bb6;border-radius:9px;background:#08223e;min-width:0}
.dashboard-team-icons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px}.dashboard-team-icons .figure-art{height:34px}
.dashboard-team-tile>strong{font-size:10px;text-align:center;color:#62d8ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-inventory-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.dashboard-inventory-strip>img{width:100%;height:42px;object-fit:contain}
.dashboard-inventory-item{grid-column:span 3;font-size:11px;line-height:1.4;color:#b6d5ef}
#menu-pages[data-simple-menu=true]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100dvh - 160px)}
.game-menu-layout #menu-pages[data-simple-menu=true]>#play-panel{width:min(540px,100%);padding:30px 38px;background:#0c182af7}
.native-menu-title{display:block;width:100%;height:85px;object-fit:contain;margin:0 auto}
.native-menu-heading{font-size:24px;text-align:center;color:#ecf5ff;border-top:1px solid #728699;padding-top:18px}
#menu-pages[data-simple-menu=true] .mode-columns{gap:16px}
#menu-pages[data-simple-menu=true] .game-button-list{padding:0;margin:6px 0 0;width:100%;gap:11px}
#menu-pages[data-simple-menu=true] .game-button-list>.button{min-height:64px;font-size:19px}
.account-team-manager .account-art{max-width:none;width:100%;height:50px;aspect-ratio:auto;object-fit:contain}
.account-team-manager .match-preview-slot .account-art{height:95px}
.account-team-manager .match-team-preview>.account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
/* A single SVG hover card is created only while a Pokémon is inspected. */
.figure-hover-card{position:fixed;z-index:100000;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:16px;border:2px solid #35a9f1;border-radius:14px;background:#0a203d;color:#eff7ff;box-shadow:0 10px 24px #0007;scrollbar-width:thin;scrollbar-color:#3187bf #06182b}
.figure-preview-header{position:sticky;top:-16px;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0 10px;background:#0a203d;border-bottom:1px solid #2c6a9a}
.figure-preview-header h2{font-size:21px;margin:0}.figure-preview-header .fine-print{font-size:11px;margin:7px 0 0;line-height:1.5}
.figure-preview-header .button{flex-shrink:0;min-height:40px;padding:9px 12px;font-size:11px}
.menu-wheel-svg{display:block;width:min(320px,100%);height:auto;margin:14px auto}
.figure-hover-card h3{font-size:15px;color:var(--gold);margin:8px 0}.figure-preview-ability{font-size:12px;line-height:1.5;color:#c7dbef;margin:8px 0 13px;white-space:pre-wrap}
.figure-preview-moves{display:grid;gap:6px}.figure-preview-move{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:9px;font-size:12px;padding:6px 0;border-bottom:1px solid #284e72}
.figure-preview-move>span{overflow-wrap:anywhere}.figure-preview-move strong{font-size:12px}
.wheel-colour-dot{display:block;width:10px;height:10px;border:1px solid #c1d1e2;border-radius:50%}
.figure-preview-links,.figure-preview-related{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.figure-preview-links .button,.figure-preview-related .button{font-size:11px;padding:9px 12px;min-height:42px}
[data-figure-ref]{touch-action:manipulation}
@media(max-width:1000px){.home-card .home-card-title{font-size:13px}.home-card-count{font-size:10px}.dashboard-team-icons .figure-art{height:29px}.dashboard-team-tile>strong{font-size:9px}}
@media(max-width:760px){
 .home-game-title{font-size:21px}.home-game-title img{height:65px}.banner-panel .home-carousel{height:130px}.home-cards .home-card{min-height:210px;padding:12px;gap:8px}
 .home-card .home-card-icon{left:12px;width:21px;height:21px}.home-card .home-card-title{font-size:13px;padding-left:27px;padding-right:0}.home-card-count{position:static;align-self:flex-end;margin-top:-5px;font-size:10px}
 .dashboard-stat-grid{gap:5px}.dashboard-stat-grid>span{padding:8px 3px}.dashboard-stat-grid small{font-size:7px}.dashboard-stat-grid strong{font-size:20px}
 .dashboard-team-strip{grid-template-columns:1fr}.dashboard-team-tile{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);align-items:center;gap:4px}.dashboard-team-icons{grid-template-columns:repeat(6,minmax(0,1fr))}.dashboard-team-icons .figure-art{height:23px}.dashboard-team-tile:nth-child(n+3){display:none}
 .dashboard-figure-strip{gap:3px;grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-figure-strip .figure-art{height:54px}.dashboard-rarity{font-size:12px}
 .dashboard-inventory-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.dashboard-inventory-strip>img{height:30px}.dashboard-inventory-strip>img:nth-child(n+9){display:none}
 .game-menu-layout #menu-pages[data-simple-menu=true]>#play-panel{padding:23px;max-width:490px}.native-menu-title{height:73px}#menu-pages[data-simple-menu=true] .game-button-list>.button{font-size:16px;min-height:56px}
 .account-team-manager .match-preview-slot .account-art{height:78px}.figure-hover-card{padding:13px}.figure-preview-header{top:-13px}.figure-preview-header h2{font-size:19px}.menu-wheel-svg{width:min(280px,100%)}
}

/* Once Godot is ready, the duel uses the entire viewport. Its pause menu owns exit. */
.room-team-status{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;padding:8px 12px;border-bottom:1px solid var(--line);font-size:12px;font-weight:700}
.room-team-status span[data-ready="true"]{color:#65e9a4}
.room-code-fallback{align-self:center;width:min(220px,90%);margin:6px;padding:8px;text-align:center}
.battle-dialog[data-state="playing"]>.battle-toolbar,.battle-dialog[data-state="playing"]>.battle-status,.battle-dialog[data-state="playing"]>.room-team-status,.battle-dialog[data-state="playing"]>.room-code-fallback{display:none}

.battle-preload-status{position:fixed;left:50%;bottom:max(2px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:50;display:grid;grid-template-columns:minmax(0,1fr) auto 48px;align-items:center;gap:7px;width:300px;max-width:calc(100vw - 24px);padding:3px 8px;border:1px solid #168dff66;border-radius:6px;background:#07182ee8;color:#c8e9ff;font-size:10px;line-height:1.2;pointer-events:none}
.battle-preload-status progress{width:48px;height:4px;accent-color:#23ceff}
.battle-preload-status[data-phase=ready],.battle-preload-status[data-phase=deferred]{grid-template-columns:1fr;width:auto;max-width:calc(100vw - 24px)}
.battle-preload-status[data-phase=ready]{color:#8be0ce}
@media(max-height:500px){.battle-preload-status{padding:2px 6px;width:250px;font-size:9px;gap:5px}}
@media(max-width:600px) and (orientation:portrait){.battle-preload-status{bottom:24px}}

/* Download recommendation shown on entry to the browser hub. */
#app-download-dialog {
  box-sizing: border-box;
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.25rem, 5vw, 2rem);
  overflow: auto;
  border: 2px solid #238ff1;
  border-radius: 18px;
  background: linear-gradient(145deg, #102d50, #0b192d 75%);
  color: #f0f6ff;
  box-shadow: 0 12px 48px #0008;
}
#app-download-dialog::backdrop { background: #06111fcc; }
#app-download-dialog h2 { margin: 0 2.5rem .6rem 0; font-size: clamp(1.35rem, 5vw, 1.8rem); }
#app-download-dialog p { margin: 0; color: #c3d7ec; line-height: 1.5; }
.app-download-close {
  position: absolute; inset: .5rem .5rem auto auto; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: #c3d7ec;
  font: inherit; font-size: 1.7rem; cursor: pointer;
}
.app-download-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1.3rem; }
.app-download-platforms a {
  display: grid; justify-items: center; align-content: center; gap: .45rem; min-height: 5rem;
  border: 1px solid #378aca; border-radius: 10px; background: #112e50; color: #f0f6ff;
  text-decoration: none; font-size: .95rem; font-weight: 700;
}
.app-download-platforms svg { width: 26px; height: 26px; color: #72d9ff; }
.app-download-platforms a:hover, .app-download-close:hover { background: #1b4169; }
#app-download-dialog :focus-visible { outline: 2px solid #ffdb76; outline-offset: 2px; }
