:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#24394b;background:#eff5fb;font-size:15px;--ink:#24394b;--muted:#6e8090;--line:#ccdae6;--blue:#347bc1;--red:#ce3e51;--paper:#fbfdff;--shadow:#29445d}*{box-sizing:border-box}body{margin:0;background-image:radial-gradient(#bfd0de70 .8px,transparent .8px);background-size:22px 22px}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #d49e2d;outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:36px;line-height:1.15;letter-spacing:-1.4px;margin-bottom:12px}h2{font-size:25px;letter-spacing:-.8px;margin-bottom:12px}h3{font-size:17px;letter-spacing:-.3px;margin-bottom:7px}p{line-height:1.6}small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#6c8493;margin-bottom:13px}.topbar{height:83px;background:#fbfdff;border-bottom:3px solid var(--ink);display:flex;align-items:center;position:sticky;top:0;z-index:20;box-shadow:0 4px 0 #c4d5e44d}.brand{height:100%;padding:0 42px 0 30px;display:flex;gap:13px;align-items:center;background:var(--red);color:#fff7e6;clip-path:polygon(0 0,94% 0,100% 100%,0 100%);min-width:365px}.brand-mark{font-size:47px;line-height:1}.brand b{font-size:21px;letter-spacing:2px;display:block;line-height:1.1}.brand strong{font-size:9px;letter-spacing:.8px;display:block;margin-top:5px}.brand em{font-style:normal;color:#ffd395;margin-left:4px}.topbar nav{display:flex;gap:27px;padding:0 30px;font-size:12px;font-weight:700}.topbar nav a:hover{color:var(--red)}.account{display:flex;gap:19px;align-items:center;margin-left:auto;padding-right:30px}.local-badge{font-size:9px;letter-spacing:1px;font-weight:800;color:#547267;white-space:nowrap}.local-badge i{display:inline-block;width:6px;height:6px;background:#67a77c;border-radius:50%;margin-right:6px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:11px 19px;border:1.5px solid var(--ink);border-radius:10px;background:white;font-size:12px;font-weight:750;box-shadow:0 3px 0 #24394b18;transition:transform .15s,background .15s}.button:hover:not(:disabled){background:#e9f2f9;transform:translateY(-1px)}.button.primary{background:var(--blue);color:white;border-color:#285781;box-shadow:0 3px 0 #244965}.button.primary:hover:not(:disabled){background:#286bab}.button.warm{background:#ffe1a1;border-color:#8f733c;color:#59482b;box-shadow:0 3px 0 #8f733c}.button.danger{color:#b63f50;border-color:#d1a0aa}.button.compact{min-height:37px;padding:8px 13px}.button.full,.full{width:100%}.text-button{background:none;border:0;color:#4d799c;font-weight:650;font-size:12px;padding:10px 0}.text-button:hover{text-decoration:underline}.page-footer{max-width:1200px;margin:38px auto 0;padding:20px 0;border-top:1px solid var(--line);display:flex;gap:20px;align-items:center;font-size:10px;color:#7c8d99}.page-footer>span:nth-child(2){margin-left:auto}.page-footer .text-button{font-size:10px}#app{max-width:1200px;margin:auto;padding:30px 0 10px;min-height:calc(100vh - 194px)}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:11px;color:#8192a0;margin-bottom:21px}.breadcrumb span:last-child{color:#344d62}.breadcrumb button{border:0;background:none;padding:0;color:#6c8090;font-size:11px;cursor:pointer}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:29px 0 17px}.section-heading h2{font-size:19px;margin:0}.section-heading small{color:var(--muted)}.panel{border:1.5px solid #bfcfdb;border-radius:16px;background:var(--paper);padding:24px;box-shadow:0 4px 0 #cad8e35e}.welcome-grid{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:20px}.hero{padding:30px;min-height:284px;background:#f6f9ec;border:2px solid #496859;border-radius:18px;box-shadow:0 5px 0 #294d3e;position:relative;overflow:hidden;display:flex;align-items:center}.hero-copy{width:54%;position:relative;z-index:2}.hero .eyebrow{color:#587b58;font-size:9px}.hero h1{font-size:37px;color:#284d43;line-height:1.09;max-width:370px}.hero p{font-size:12px;color:#678173;max-width:270px;margin-bottom:22px}.hero canvas{position:absolute;right:0;top:0;width:53%;height:100%;mask-image:linear-gradient(to right,transparent,black 18%);image-rendering:pixelated}.hero:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 55px #bac79322}.hero-stamp{position:absolute;bottom:17px;right:20px;border:1px solid #e3efda75;background:#f4fae6dd;border-radius:6px;padding:6px 9px;color:#4c7156;letter-spacing:1.2px;font-size:8px;font-weight:800;transform:rotate(-3deg)}.profile-panel{border:2px solid var(--ink);box-shadow:0 5px 0 #24394b;background:#f9fcff;padding:20px;border-radius:17px;display:flex;flex-direction:column;position:relative}.profile-panel .eyebrow{font-size:9px;letter-spacing:1.5px;margin-bottom:13px}.profile-body{display:flex;gap:14px;align-items:center}.portrait{width:65px;height:65px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 0 #24394b15)}.portrait-frame{background:#e9f1fa;border:1px solid #c3d3e3;border-radius:16px;padding:6px;display:inline-flex;justify-content:center;align-items:center}.profile-body h3{font-size:18px;margin-bottom:3px}.profile-body p{font-size:11px;margin:0;color:var(--muted)}.type{display:inline-block;font-size:9px;letter-spacing:.5px;padding:4px 8px;border-radius:5px;background:#e1f0df;color:#4e7f49;font-weight:750}.profile-progress{margin-top:20px}.progress-label{display:flex;justify-content:space-between;font-size:9px;color:#7990a3;margin-bottom:8px}.progress-track{background:#dfe9f2;height:6px;border-radius:4px;overflow:hidden}.progress-track>i{display:block;height:100%;background:#7bbf9b;border-radius:4px}.profile-stats{display:flex;justify-content:space-between;border-top:1px solid #dbe6ef;margin-top:auto;padding-top:14px;font-size:11px}.profile-stats span{color:#8a9caa}.profile-stats b{color:#42627a;margin-left:7px}.menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.menu-tile{background:#fbfdff;border:2px solid var(--ink);border-left:7px solid var(--tile);border-radius:13px;box-shadow:0 4px 0 var(--shadow);padding:19px;display:flex;align-items:center;gap:15px;min-height:101px;text-align:left;transition:transform .15s,box-shadow .15s}.menu-tile:hover{transform:translateY(-3px);box-shadow:0 7px 0 var(--shadow)}.tile-icon{width:49px;height:49px;display:grid;place-items:center;flex-shrink:0;background:color-mix(in srgb,var(--tile),transparent 87%);border:1px solid color-mix(in srgb,var(--tile),transparent 50%);border-radius:11px;color:var(--tile)}.tile-icon svg{width:26px;height:26px}.menu-tile strong{display:block;font-size:15px;margin-bottom:6px}.menu-tile small{display:block;font-size:10px;color:#7a8c9c}.tile-arrow{margin-left:auto;color:#96a7b5;font-size:22px}.home-bottom{margin-top:28px;display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.note-panel{display:flex;gap:16px;align-items:center;padding:18px 21px;background:#e5eef7;border:1px solid #c8d8e6;border-radius:12px}.note-panel .round-icon{color:#648bae;font-size:25px;flex-shrink:0}.note-panel h3{font-size:12px;margin-bottom:4px}.note-panel p{font-size:11px;color:#6e8598;margin:0}.quick-guide{display:flex;gap:12px;align-items:center;padding:5px}.step-dots{display:flex;gap:5px}.step-dots span{width:27px;height:27px;display:grid;place-items:center;border:1px solid #c0d1dd;background:#f7fbff;border-radius:50%;font-size:10px;color:#638097}.quick-guide p{font-size:11px;color:#778d9e;margin:0}.screen-banner{display:flex;align-items:center;justify-content:space-between;background:#2c455b;color:#fff;border:2px solid #23394d;border-radius:16px;padding:25px 29px;box-shadow:0 4px 0 #182c3d;margin-bottom:26px}.screen-banner .eyebrow{color:#a9c4d4;margin-bottom:8px}.screen-banner h1{font-size:29px;letter-spacing:-.8px;margin:0}.screen-banner p{color:#bbcbd8;font-size:12px;margin:8px 0 0}.banner-icon{font-size:40px;color:#f4ddaa}.dungeon-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.dungeon-card{padding:0;overflow:hidden;border:2px solid #344f62;box-shadow:0 4px 0 #344f62}.dungeon-art{height:172px;position:relative;background:var(--accent)}.dungeon-art canvas{width:100%;height:100%;display:block;image-rendering:pixelated}.dungeon-art .difficulty{position:absolute;top:13px;left:13px;background:#fbfff0e8;padding:5px 9px;border:1px solid #ffffffc0;border-radius:6px;font-size:9px;color:#365342;font-weight:700}.dungeon-content{padding:23px}.dungeon-content h2{font-size:21px}.dungeon-content p{font-size:12px;color:#718597;min-height:57px}.dungeon-meta{display:flex;justify-content:space-between;font-size:10px;margin:18px 0;color:#597487}.dungeon-content .button{width:100%}.inline-notice{margin-bottom:21px;padding:13px 18px;background:#fff4d9;border:1px solid #dfcda2;border-radius:10px;font-size:12px;color:#7b673d}.rooms-layout{display:grid;grid-template-columns:1fr 320px;gap:22px}.room-row{display:flex;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.room-row:last-child{border-bottom:0}.room-row p{font-size:11px;color:var(--muted);margin:5px 0 0}.room-row .button{margin-left:auto}.empty{padding:32px 20px;text-align:center;color:var(--muted);font-size:13px}.empty strong{display:block;color:#47647b;margin:10px 0}.empty-mark{font-size:35px;color:#96afc1}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:650;margin:15px 0;color:#576c7c}input,select{min-height:46px;width:100%;padding:11px 13px;background:#fbfdff;border:1px solid #bbcddb;border-radius:9px;color:var(--ink)}input::placeholder{color:#9babb7}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:22px}.pokemon-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.pokemon-card{text-align:center;padding:18px 16px}.pokemon-card .portrait{width:84px;height:84px}.pokemon-card h3{margin-top:10px}.pokemon-card .move{font-size:11px;color:#6c8192;margin:12px 0}.mini-stats{display:flex;justify-content:space-around;font-size:10px;border-top:1px solid #e1e9ee;padding-top:11px;color:#7890a1}.mini-stats b{display:block;color:#344f63;font-size:13px;margin-top:4px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}td,th{padding:13px 15px;border-bottom:1px solid var(--line)}th{font-size:10px;color:#7890a1}.guide-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.guide-number{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;background:#e1edf6;color:#527a9d;font-weight:800;margin-bottom:16px}.guide-steps p,.panel p{font-size:12px}.quiz{max-width:690px;margin:20px auto}.quiz-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;font-size:11px;color:#8296a4}.quiz-card{padding:42px;background:#fcfdf8;border:2px solid #637d6c;box-shadow:0 5px 0 #496454;text-align:center}.quiz-card h1{font-size:28px;line-height:1.3;margin:24px 0 27px}.quiz-symbol{font-size:45px;color:#c6ad6c}.quiz-choice{display:flex;align-items:center;gap:13px;width:100%;padding:15px 16px;background:#fff;border:1.5px solid #cfdbd0;border-radius:10px;margin:11px 0;text-align:left;font-size:13px;line-height:1.4}.quiz-choice span{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;font-size:10px;background:#edf2e9;color:#72916e;flex-shrink:0}.quiz-choice:hover,.quiz-choice.selected{background:#e9f2e3;border-color:#6a9567}.quiz-actions{display:flex;justify-content:space-between;margin-top:24px}.reveal .portrait{width:150px;height:150px}.reveal h1{margin:17px 0}.reveal p{font-size:14px;color:#6e8478}.gender-choices{display:grid;grid-template-columns:1fr 1fr;gap:15px}.gender-choices button{text-align:center;display:block;padding:25px}.gender-choices span{display:block;font-size:30px;width:auto;height:auto;background:none;margin-bottom:8px}.game-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.game-header h1{font-size:24px;margin-bottom:6px}.game-header p{font-size:11px;color:var(--muted);margin:0}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px}.battle-panel{padding:0;overflow:hidden;border:2px solid #304a59;box-shadow:0 4px 0 #304a59}.battle-hud{display:flex;justify-content:space-between;padding:17px 21px;background:#fcfdff}.battle-hud small{display:block;color:#899ca9;font-size:9px;letter-spacing:1px;margin-bottom:5px}.battle-hud b{font-size:17px}.battle-hud .hp{color:#c56265}.battle-hud .gold{color:#aa873c}.battle-map{position:relative;background:#638864;aspect-ratio:18/12}.battle-map canvas{width:100%;height:100%;display:block;cursor:crosshair;image-rendering:pixelated}.map-label{position:absolute;bottom:12px;left:12px;background:#223f34d9;color:#f6fbe8;padding:8px 12px;border:1px solid #b7d8b766;border-radius:7px;font-size:10px;pointer-events:none;max-width:80%}.battle-toolbar{padding:14px;display:flex;gap:10px;align-items:center;background:#eaf2f9}.battle-toolbar .button{font-size:11px}.battle-toolbar small{color:#698297;margin-left:auto;font-size:10px}.roster{padding:18px}.roster h3{font-size:14px}.roster>p{font-size:10px;color:#8596a3}.tower-choice{display:flex;align-items:center;gap:11px;padding:10px;width:100%;border:1px solid #d0dce5;border-radius:10px;background:#fbfdff;margin-bottom:9px;text-align:left}.tower-choice.selected{border:2px solid #5293c2;background:#eaf3fb;padding:9px}.tower-choice .portrait{width:43px;height:43px}.tower-choice b{font-size:12px;display:block}.tower-choice small{font-size:9px;display:block;color:#8193a1;margin-top:3px}.tower-choice>strong{margin-left:auto;font-size:12px;color:#a48a53}.player-row{display:flex;align-items:center;gap:8px;font-size:11px;margin:11px 0}.player-row .portrait{width:30px;height:30px}.player-row small{color:#91a3af;font-size:9px;margin-left:auto}.chat-panel{margin-top:17px;padding:17px}.chat-panel h3{font-size:13px}.messages{height:135px;overflow:auto;font-size:10px;scrollbar-width:thin}.messages p{font-size:10px;margin-bottom:8px;overflow-wrap:anywhere}.messages b{color:#5d87a8}.chat-form{display:flex;gap:7px;margin-top:10px}.chat-form input{font-size:11px;min-height:37px;padding:8px}.chat-form .button{min-height:37px;padding:7px 10px}.battle-result{background:#f9f7e9;border:2px solid #b8a269;border-radius:13px;padding:22px;margin-bottom:20px;display:flex;gap:18px;align-items:center}.battle-result h2{margin-bottom:4px}.battle-result p{margin:0;font-size:12px}.battle-result .button{margin-left:auto}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stat-card span{color:#7a90a2;font-size:10px}.stat-card b{display:block;font-size:29px;margin-top:10px}.settings-row{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);gap:20px}.settings-row h3{font-size:14px}.settings-row p{font-size:12px;color:#8294a3;margin:0}.settings-row input{width:19px;height:19px;min-height:0}.settings-row select{max-width:150px}.error{color:#b74053;font-size:12px;min-height:16px}dialog{width:min(450px,calc(100% - 32px));border:2px solid #314c60;border-radius:19px;padding:33px;background:#f9fcff;color:var(--ink);box-shadow:0 8px 0 #263f4f,0 30px 100px #162c5140}dialog::backdrop{background:#23394f80;backdrop-filter:blur(5px)}dialog .eyebrow{margin-top:19px;font-size:9px}dialog h2{font-size:28px}dialog p{font-size:12px}.dialog-mark{font-size:39px;color:#bf984e}.close-button{position:absolute;right:16px;top:12px;background:none;border:0;font-size:26px;color:#8a9cac}#auth-toggle{margin-top:13px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(80px);transition:transform .25s;background:#243e52;color:#fff;padding:13px 21px;border:1px solid #7997ad;border-radius:10px;box-shadow:0 4px 20px #243e5230;font-size:12px;z-index:100;max-width:90vw}#toast.visible{transform:translateX(-50%) translateY(0)}.loading{padding:90px;text-align:center;color:#7e93a3}.code{font-family:Consolas,monospace;letter-spacing:3px;color:#517da0;font-size:20px}.selected-tower{margin-top:14px;padding:15px;background:#f2f6e9;border:1px solid #c6d1b3;border-radius:10px}.selected-tower p{font-size:11px;margin:7px 0}.subtle-tag{display:inline-block;background:#e8eff5;border:1px solid #cfdee9;color:#7990a0;padding:4px 7px;font-size:9px;border-radius:5px}.asset-status{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}.asset-status span{font-size:10px;padding:6px 9px;background:#e5f0e5;border-radius:5px;color:#5f815e}.inline-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.inline-row .button{margin-left:auto}[hidden]{display:none!important}
@media(min-width:1550px){#app{padding-top:38px}.welcome-grid{grid-template-columns:minmax(0,1fr) 310px}.hero{min-height:310px}.hero h1{font-size:40px}}
@media(max-width:1260px){#app{margin:0 28px}.page-footer{margin:35px 28px 0}.topbar nav{gap:18px;padding:0 22px}.account{gap:14px;padding-right:20px}.brand{min-width:320px;padding-left:23px}.local-badge{display:none}}
@media(max-width:1000px){.topbar nav{display:none}.welcome-grid{grid-template-columns:1fr 265px}.hero{padding:24px}.hero h1{font-size:30px}.menu-tile{padding:15px;gap:10px}.menu-tile strong{font-size:13px}.menu-tile small{font-size:9px}.tile-icon{width:40px;height:40px}.game-layout{grid-template-columns:minmax(0,1fr) 245px}.pokemon-grid{grid-template-columns:repeat(3,1fr)}.dungeon-grid{gap:14px}.dungeon-content{padding:17px}.dungeon-content h2{font-size:19px}}
@media(max-width:760px){.topbar{height:72px}.brand{min-width:0;padding:0 25px 0 16px;gap:8px}.brand b{font-size:17px}.brand strong{font-size:7px;letter-spacing:.3px}.brand-mark{font-size:35px}.account{padding-right:14px}.account .button{font-size:10px;padding:8px;gap:4px}.welcome-grid{grid-template-columns:1fr}.profile-panel{display:none}.hero{min-height:275px}.hero-copy{width:61%}.hero canvas{width:53%}.menu-grid{grid-template-columns:repeat(2,1fr);gap:14px}.menu-tile{min-height:97px}.home-bottom{grid-template-columns:1fr;gap:15px}.quick-guide{padding-left:5px}.dungeon-grid{grid-template-columns:1fr}.dungeon-card{display:grid;grid-template-columns:40% 1fr}.dungeon-art{height:100%;min-height:235px}.dungeon-content p{min-height:0}.rooms-layout,.game-layout{grid-template-columns:1fr}.roster-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tower-choice{margin:0}.battle-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:15px}.chat-panel{margin:0}.battle-toolbar{flex-wrap:wrap}.grid-two{grid-template-columns:1fr}.guide-steps{grid-template-columns:1fr}.pokemon-grid{grid-template-columns:repeat(3,1fr);gap:12px}.pokemon-card{padding:13px 10px}.pokemon-card h3{font-size:14px}.pokemon-card .portrait{width:65px;height:65px}.screen-banner{padding:20px}.screen-banner h1{font-size:25px}.page-footer>span:nth-child(2){display:none}.page-footer .text-button{margin-left:auto}#app{margin:0 18px;padding-top:23px}.page-footer{margin:30px 18px 0}.quiz-card{padding:25px}.quiz-card h1{font-size:24px}.battle-result{flex-wrap:wrap}.stats-row{gap:10px}.stat-card{padding:15px}}
@media(max-width:460px){.hero h1{font-size:29px}.hero{padding:22px 19px;min-height:290px}.hero-copy{width:68%}.hero p{max-width:190px;font-size:11px}.hero .button{font-size:11px}.hero-stamp{font-size:7px;bottom:10px;right:10px}.menu-tile{padding:13px 9px;gap:9px;border-left-width:5px;min-height:86px}.menu-tile small{font-size:8px}.menu-tile strong{font-size:12px}.tile-icon{width:32px;height:36px;border-radius:8px}.tile-icon svg{width:21px}.tile-arrow{display:none}.section-heading small{font-size:10px}.section-heading h2{font-size:17px}.dungeon-card{display:block}.dungeon-art{height:155px;min-height:0}.pokemon-grid{grid-template-columns:repeat(2,1fr)}.battle-sidebar{display:block}.chat-panel{margin-top:15px}.roster-choices{grid-template-columns:1fr 1fr}.battle-hud{padding:13px}.battle-hud b{font-size:14px}.brand em{display:none}.brand strong{font-size:6.5px}.brand b{font-size:16px}.brand-mark{font-size:30px}.account .button span{display:none}.hero .eyebrow{font-size:8px}.quiz-card{padding:23px 17px}.stats-row{grid-template-columns:1fr 1fr 1fr}.stat-card b{font-size:24px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* In-game portrait viewport hides the native expression label; original PNGs stay intact. */
.portrait{clip-path:inset(0 0 12.5% 0 round 5px)}.hero canvas{object-fit:cover;object-position:68% center}.archive-card{margin-top:24px;min-height:225px;padding:32px;border:2px solid #50616a;box-shadow:0 4px 0 #344b59;border-radius:16px;background:linear-gradient(90deg,#273d4ef5,#273d4e8c),url("/assets/extracted/ui/wallpaper_sub_dungeon01.png") center/cover;color:#fff5de}.archive-card p{font-size:12px;color:#cbd6d7}.archive-card .eyebrow{color:#d3c39c}.archive-card h2{font-size:28px}.archive-card .button{margin-top:7px}

/* Searchable full native roster. Only the current page creates portrait elements. */
.collection-filters{margin-bottom:23px;padding:19px 22px}.roster-controls{display:grid;grid-template-columns:minmax(200px,2fr) minmax(135px,1fr) minmax(145px,1fr);gap:15px;align-items:end}.roster-controls label{margin:0;font-size:11px;gap:6px}.roster-controls input,.roster-controls select{font-size:12px;min-height:41px;padding:9px 11px}.roster-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:10px}.roster-summary p{font-size:11px;margin:0}.roster-summary .text-button{white-space:nowrap;font-size:11px}.pokemon-number{font-size:9px;color:#7d91a1;min-height:24px;line-height:1.5}.pokemon-types{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;min-height:24px;align-items:center}.pokemon-card h3{overflow-wrap:anywhere;min-height:21px}.pokemon-card .model-link{display:inline-block;margin-top:10px;padding:5px 0;font-size:10px}.roster-empty{grid-column:1/-1;border:1px dashed #b8cbd9;background:#f8fbfe;border-radius:13px}.roster-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:22px 0 10px;font-size:11px;color:#6b8395}.roster-pagination .button{font-size:11px}.roster-current{display:flex;align-items:center;gap:12px;border:1px solid #b8cfe0;background:#ecf4fb;border-radius:11px;padding:10px 13px;margin:15px 0}.roster-current .portrait{width:48px;height:48px;flex-shrink:0}.roster-current>div{min-width:0}.roster-current small{display:block;font-size:8px;letter-spacing:.6px;color:#6485a0}.roster-current strong{display:block;font-size:13px;margin:3px 0;overflow-wrap:anywhere}.roster-current span{display:block;font-size:10px;color:#71879a}.roster-current .text-button{margin-left:auto;white-space:nowrap;font-size:10px}.compact-controls{grid-template-columns:minmax(160px,2fr) repeat(3,minmax(100px,1fr));gap:9px}.compact-controls input,.compact-controls select{min-height:36px;font-size:11px;padding:8px}.roster-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.roster-choices .tower-choice{margin:0;gap:8px;min-width:0}.roster-choices .tower-choice>span{min-width:0;flex:1}.roster-choices .tower-choice b{overflow-wrap:anywhere;font-size:11px}.roster-choices .tower-choice small{line-height:1.4;overflow-wrap:anywhere}.roster-choices .tower-choice>strong{font-size:10px}.roster-choices .portrait{flex-shrink:0;width:36px;height:36px}
@media(max-width:1000px){.compact-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-controls .roster-search{grid-column:1/-1}.roster-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.roster-controls{grid-template-columns:1fr 1fr;gap:12px}.roster-controls .roster-search{grid-column:1/-1}.compact-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.collection-filters{padding:17px}.roster-summary{gap:8px}.roster-summary p{font-size:10px}.pokemon-number{min-height:28px;font-size:8px}.section-heading{gap:15px}.section-heading small{text-align:right}.roster-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.roster-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-choices .tower-choice{flex-wrap:wrap}.roster-choices .tower-choice>span{flex-basis:calc(100% - 46px)}.roster-choices .tower-choice>strong{margin-left:auto}.roster-pagination{gap:12px}.roster-pagination .button{padding:8px 10px}.compact-controls{gap:7px}.compact-controls label{font-size:10px}.compact-controls select{font-size:10px;padding:7px 5px}.roster-current{padding:9px}.roster-current .text-button{font-size:9px}}

/* Expedition preparation, persistent partners, and six-player parties. */
.dungeon-filters{display:grid;grid-template-columns:minmax(200px,2fr) minmax(180px,1fr) auto;gap:20px;align-items:end;margin-bottom:24px;padding:18px 22px}.dungeon-filters label{margin:0}.dungeon-filters p{font-size:11px;margin:0 0 13px}.destination-actions{display:grid;gap:10px}.destination-actions .button{min-height:40px}.destination-actions .button:last-child{font-size:10px}.view-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:0 0 24px;padding-bottom:12px}.view-tabs button{border:1px solid #c2d2df;border-radius:9px;background:#f9fcff;padding:12px 17px;font-size:12px;font-weight:700}.view-tabs button.active{background:#347bc1;color:#fff;border-color:#285781}.collection-summary{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}.collection-summary>span{background:#e1edf5;border:1px solid #c7d7e2;border-radius:8px;padding:10px 15px;font-size:12px;color:#59738a}.collection-summary b{color:#2b4e68}.collection-sections{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.collection-sections .section-heading{margin-top:0}.owned-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.owned-card{display:grid;grid-template-columns:60px minmax(0,1fr);gap:10px;padding:18px;align-items:center}.owned-card .portrait{width:58px;height:58px}.owned-heading h3{font-size:15px;overflow-wrap:anywhere;margin-bottom:5px}.owned-heading p{font-size:10px;margin-bottom:7px}.owned-card details{grid-column:1/-1;border-top:1px solid #dce6ec;padding-top:12px;margin-top:5px}.owned-card summary,.tower-genetics summary{font-size:11px;color:#587b97;cursor:pointer;font-weight:650;min-height:25px}.genetics-table{margin-top:12px}.genetics-table table{font-size:9px;min-width:310px;table-layout:fixed}.genetics-table caption{font-size:9px;color:#738a9d;text-align:left;margin-bottom:8px}.genetics-table td,.genetics-table th{padding:7px 4px;text-align:center;font-size:9px}.genetics-table th:first-child{width:48px}.genetics-table p{font-size:9px!important;color:#7e92a2;margin:10px 0 0}.nursery-panel h2{font-size:23px}.nursery-panel>p{font-size:11px}.egg-list{border-top:1px solid var(--line);margin-top:20px;padding-top:15px}.egg-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #dde7ef}.egg-row img{image-rendering:pixelated;object-fit:contain}.egg-row strong{display:block;font-size:11px}.egg-row small{display:block;font-size:10px;color:#8194a4;margin-top:5px}.egg-row .button{margin-left:auto;font-size:10px}.form-feedback{font-size:10px!important;min-height:30px;margin:13px 0 0}.ball-shop{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.ball-card{text-align:center;padding:20px 17px}.ball-art{object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 2px #29445d20)}.ball-card .ball-art{width:50px;height:50px;margin:2px 0 13px}.ball-card h3{font-size:15px}.ball-card p{font-size:11px;min-height:68px;margin-top:14px}.ball-card .button{font-size:11px}.battle-sidebar .party-panel,.battle-sidebar .capture-panel{padding:18px}.party-panel>.eyebrow{font-size:9px}.party-panel>p{font-size:10px;margin:16px 0 0;padding-top:13px;border-top:1px solid #dbe5ec}.capture-panel{margin-top:18px}.capture-panel h3{font-size:13px;margin:0}.capture-panel .inline-row{justify-content:space-between;gap:6px}.capture-panel .text-button{font-size:10px}.capture-panel label{font-size:10px;margin:12px 0}.capture-panel select{font-size:11px;min-height:39px;padding:9px}.selected-ball{display:flex;gap:9px;align-items:center;padding:10px;background:#eaf2f9;border:1px solid #d1e0eb;border-radius:9px}.selected-ball strong{font-size:11px}.selected-ball p{font-size:9px;line-height:1.4;margin:4px 0 0;color:#748b9d}.capture-help{font-size:10px!important;margin:12px 0}.capture-targets{max-height:290px;overflow:auto;scrollbar-width:thin}.capture-target{display:flex;align-items:center;gap:7px;padding:8px 0;border-bottom:1px solid #dbe5ec}.capture-target .portrait{width:31px;height:31px;flex-shrink:0}.capture-target>div{min-width:0}.capture-target strong{display:block;font-size:10px;overflow-wrap:anywhere}.capture-target small{display:block;font-size:9px;color:#7a90a1;margin-top:4px}.capture-target .button{margin-left:auto;padding:6px 8px;min-height:31px;font-size:9px}.chat-panel h3 span{color:#9cb0be;font-size:10px}.battle-owned-controls{grid-template-columns:minmax(160px,2fr) minmax(110px,1fr)}.selected-tower{padding:17px;background:#f7faef}.selected-tower-heading{display:flex;gap:12px;align-items:center}.selected-tower-heading .portrait{width:49px;height:49px;flex-shrink:0}.selected-tower-heading h3{font-size:15px;margin-bottom:3px}.selected-tower-heading p{font-size:10px;margin:0;color:#7b8f75}.status-pill{display:inline-flex;margin-left:auto;border-radius:6px;padding:5px 8px;font-size:9px;font-weight:750;background:#dfedd7;color:#608153;white-space:nowrap}.status-pill.ko{background:#f2dadd;color:#ad4f60}.tower-health{display:flex;align-items:center;gap:13px;margin:13px 0}.tower-health>span{font-size:10px;white-space:nowrap;color:#628451}.health-track{height:8px;overflow:hidden;border-radius:7px;background:#d8e2ce;flex:1;max-width:350px}.health-track i{display:block;height:100%;background:#6cad72;border-radius:7px;transition:width .2s}.tower-combat-stats{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:14px;font-size:10px;color:#7a8c72}.tower-combat-stats b{color:#4d6747;margin-left:4px}.tower-actions{display:flex;gap:8px;flex-wrap:wrap}.tower-actions .button,.evolution-controls .button{font-size:10px}.evolution-controls{display:flex;gap:12px;align-items:end;margin-top:11px}.evolution-controls label{flex:1;margin:0;font-size:10px}.evolution-controls select{font-size:11px;min-height:37px;padding:8px 10px}.evolution-controls .button{margin-bottom:0}.tower-genetics{margin-top:14px;border-top:1px solid #dbe4d2;padding-top:12px}.tower-genetics .genetics-table{max-width:550px}.selected-tower>p.muted{font-size:10px}.matchmaking-panel{margin-bottom:22px;background:#f4f9fd}.matchmaking-panel .inline-row{justify-content:space-between}.matchmaking-panel .eyebrow{font-size:9px}.matchmaking-panel h2{font-size:22px;margin-bottom:0}.matchmaking-panel>p{font-size:11px;margin:17px 0 0}.countdown{font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;color:#347bc1;background:#e0edf8;border:1px solid #b9d1e4;border-radius:9px;padding:12px}.matchmaking-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:21px}.match-slot{text-align:center;padding:18px 7px;background:#eaf1f7;border:1px dashed #b8cddd;border-radius:12px;min-width:0}.match-slot.occupied{border:1.5px solid #83ad91;background:#eef7ed}.match-slot .portrait{display:block;margin:auto;width:59px;height:59px}.match-slot strong{display:block;font-size:11px;margin:9px 0 5px;overflow-wrap:anywhere}.match-slot small{display:block;color:#7c94a5;font-size:9px}.searching-symbol{display:grid;place-items:center;height:59px;color:#96b1c6;font-size:38px}
@media(max-width:1100px){.collection-sections{grid-template-columns:minmax(0,1fr) 300px}.ball-shop{grid-template-columns:repeat(3,minmax(0,1fr))}.owned-grid{grid-template-columns:1fr}.battle-toolbar{flex-wrap:wrap}.battle-toolbar small{flex-basis:100%;margin-left:0}}
@media(max-width:760px){.dungeon-filters{grid-template-columns:1fr 1fr;gap:13px;padding:17px}.dungeon-filters p{grid-column:1/-1;margin:0}.collection-sections{grid-template-columns:1fr}.owned-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ball-shop{grid-template-columns:repeat(2,minmax(0,1fr))}.nursery-panel{margin-top:8px}.battle-sidebar{grid-template-columns:1fr 1fr}.battle-sidebar .capture-panel{margin-top:0}.battle-sidebar .chat-panel{grid-column:1/-1}.matchmaking-slots{grid-template-columns:repeat(3,minmax(0,1fr))}.match-slot{padding:12px 6px}.matchmaking-panel .eyebrow{font-size:8px}.matchmaking-panel h2{font-size:19px}.countdown{font-size:16px;padding:10px}.tower-actions .button{flex:1}.selected-tower-heading{gap:9px}.selected-tower-heading h3{font-size:13px}}
@media(max-width:460px){.dungeon-filters{grid-template-columns:1fr}.dungeon-filters p{grid-column:auto}.owned-grid{grid-template-columns:1fr}.collection-summary{gap:7px}.collection-summary>span{font-size:10px;padding:9px 10px}.view-tabs button{padding:11px 12px;font-size:11px}.ball-card{padding:17px 12px}.ball-card p{min-height:95px;font-size:10px}.ball-card .button{font-size:10px;padding:8px}.battle-sidebar{display:block}.battle-sidebar .capture-panel{margin-top:17px}.battle-toolbar .button{flex:1;padding:9px;font-size:10px}.battle-hud small{font-size:8px;letter-spacing:0}.status-pill{font-size:8px;padding:5px}.selected-tower-heading .portrait{width:40px;height:40px}.evolution-controls{flex-wrap:wrap}.evolution-controls label{flex-basis:100%}.evolution-controls .button{width:100%}.matchmaking-panel{padding:17px}.matchmaking-panel .inline-row{gap:15px}.match-slot strong{font-size:10px}.match-slot small{font-size:8px}.matchmaking-slots{gap:8px}.match-slot .portrait{width:48px;height:48px}.searching-symbol{height:48px}.map-label{max-width:92%;font-size:9px}.battle-result .button{margin-left:0}}

/* Rare event raids share the expedition navigation and visual language. */
.event-intro{display:flex;gap:30px;align-items:center;margin-bottom:22px;background:#f9f6fd;border-color:#cdbddd}.event-intro h3{font-size:16px}.event-intro p{margin-bottom:0;max-width:800px;color:#7c7590}.event-rule{margin-left:auto;white-space:nowrap;text-align:center;font-size:11px;line-height:1.8;color:#9173a8;font-weight:700;border-left:1px solid #dacde6;padding-left:28px}.event-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.event-card{text-align:center;background:#fefcff;padding:20px 18px}.event-card>.inline-row{justify-content:space-between;font-size:9px;color:#8798a5}.event-rarity{font-size:8px;text-transform:uppercase;letter-spacing:1px;color:#9472ad;background:#f0e7f6;border:1px solid #ddcbe9;border-radius:5px;padding:5px 7px}.event-card>.portrait{width:90px;height:90px;margin:17px 0 10px}.event-card h2{font-size:20px;margin:6px 0 11px}.event-card p{font-size:11px;color:#8291a4;min-height:53px}.event-card .button{font-size:10px;padding:10px}.raid-search{padding:20px 24px;margin-bottom:22px;background:#f3f6fd}.raid-search .inline-row{justify-content:space-between}.raid-search .eyebrow{font-size:9px}.raid-search h2{font-size:21px;margin-bottom:0}.raid-search>p{font-size:11px;color:#7c8fa1;margin:16px 0 0}.raid-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:start}.raid-arena{padding:0;overflow:hidden;border:2px solid #46516c;box-shadow:0 4px 0 #46516c}.raid-boss-hud{display:flex;align-items:center;gap:20px;padding:18px 22px;background:#fcfaff}.raid-boss-hud .eyebrow{font-size:8px;letter-spacing:1.3px;margin-bottom:6px;color:#9575b1}.raid-boss-hud h2{font-size:21px;margin:0}.raid-boss-health{margin-left:auto;min-width:35%;text-align:right}.raid-boss-health strong{display:block;font-size:12px;color:#9b587f;margin-bottom:9px;font-variant-numeric:tabular-nums}.raid-boss-health .health-track{max-width:none;background:#ecdae6;height:10px}.raid-boss-health .health-track i{background:#b46498}.raid-canvas-wrap{position:relative;aspect-ratio:18/12;background:#3d3a4b}.raid-canvas-wrap canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.raid-phase{position:absolute;left:15px;bottom:15px;padding:9px 12px;background:#273349db;border:1px solid #9dabc370;border-radius:8px;color:#f5eeff;font-size:11px;font-weight:650}.raid-arena-toolbar{padding:15px 18px;background:#e9eef7;display:flex;gap:12px;align-items:center}.raid-arena-toolbar>p{font-size:10px;margin:0;color:#7a8a9d}.raid-arena-toolbar .button{margin-left:auto;font-size:10px;white-space:nowrap}.raid-move-panel{margin-top:21px;padding:20px}.raid-move-panel>.inline-row{justify-content:space-between}.raid-move-panel h3{font-size:15px;margin:0}.raid-move-panel>.inline-row>span{font-size:11px;color:#9272aa}.raid-move-panel>p{font-size:11px;margin:11px 0 16px}.raid-moves{display:grid;grid-template-columns:1fr 1fr;gap:12px}.raid-move{text-align:left;padding:15px;background:#fcfdff;border:1px solid #c3d0e0;border-radius:11px;box-shadow:0 3px 0 #becbda44;min-width:0}.raid-move:hover:not(:disabled){background:#f3eef9;border-color:#a589be}.raid-move.queued{border:2px solid #9671b2;background:#f1e9f8;padding:14px}.raid-move>.inline-row{gap:7px;justify-content:space-between}.raid-move strong{font-size:13px;overflow-wrap:anywhere}.raid-move .type{font-size:8px;letter-spacing:0;background:#e4edf8;color:#6d8096}.raid-move small{display:block;color:#8292a6;font-size:10px;line-height:1.5;margin-top:10px;min-height:30px}.move-readiness{display:block;color:#9374a6;font-size:9px;font-weight:700;margin-top:10px}.raid-move-panel>#raid-player-status{font-size:11px;margin-bottom:0}.raid-party-panel{margin-top:20px;padding:20px}.raid-party-panel .section-heading{margin:0 0 17px}.raid-party-panel h2{font-size:16px}.raid-party{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.raid-player{text-align:center;border:1px solid #c5d6e2;border-radius:11px;padding:14px 10px;background:#f4f8fc;min-width:0}.raid-player.vacant{border-style:dashed;background:#edf2f7}.raid-player>.portrait{width:54px;height:54px}.raid-player>strong{display:block;overflow-wrap:anywhere;font-size:11px;margin:7px 0}.raid-player>span{display:block;font-size:9px;color:#8395a6}.raid-player>.health-track{height:6px;margin-top:10px;max-width:none}.raid-player>div:last-child{margin-top:7px}.raid-player.knocked-out{background:#f2e7ed;border-color:#d9beca}.raid-player.knocked-out .portrait{filter:grayscale(1);opacity:.65}.raid-status{display:inline-block;font-size:8px;line-height:1.4;color:#9a688d;background:#eee2ef;border:1px solid #dfcce1;border-radius:4px;padding:3px 5px;margin:5px 3px 0 0}.raid-log-panel{padding:18px;position:sticky;top:105px}.raid-log-panel>h3{font-size:15px}.raid-log-panel>p{font-size:10px;color:#8694a5}.raid-log{height:510px;overflow:auto;scrollbar-width:thin}.raid-log>p{font-size:10px;line-height:1.55;color:#71859a;border-bottom:1px solid #e0e7ef;padding:11px 0;margin:0;overflow-wrap:anywhere}.raid-log>p>span{display:block;font-size:8px;color:#a48db3;margin-bottom:4px}
@media(max-width:1000px){.event-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.raid-layout{grid-template-columns:minmax(0,1fr) 230px}.raid-boss-hud{padding:17px}.raid-boss-hud h2{font-size:18px}.raid-arena-toolbar{flex-wrap:wrap}.raid-arena-toolbar>p{flex:1}}
@media(max-width:760px){.event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.event-intro{gap:18px}.event-rule{padding-left:18px;font-size:10px}.raid-layout{grid-template-columns:1fr}.raid-log-panel{position:static}.raid-log{height:200px}.raid-party{grid-template-columns:repeat(3,minmax(0,1fr))}.raid-boss-hud h2{font-size:20px}}
@media(max-width:460px){.event-intro{display:block;padding:18px}.event-rule{display:block;margin:15px 0 0;border-left:0;border-top:1px solid #dacde6;padding:12px 0 0;text-align:left}.event-card{padding:16px 11px}.event-card h2{font-size:17px}.event-card .button{font-size:9px;padding:9px 6px}.event-card p{font-size:10px;min-height:75px}.event-card .event-rarity{font-size:7px;letter-spacing:.4px;padding:4px 5px}.event-card>.inline-row{gap:4px}.event-card>.portrait{width:75px;height:75px}.raid-search{padding:18px}.raid-search .inline-row{gap:16px}.raid-search h2{font-size:19px}.raid-boss-hud{padding:14px;gap:10px}.raid-boss-hud h2{font-size:17px}.raid-boss-health strong{font-size:10px}.raid-boss-health{min-width:36%}.raid-move-panel{padding:16px}.raid-moves{gap:9px}.raid-move{padding:11px}.raid-move.queued{padding:10px}.raid-move strong{font-size:11px}.raid-move .type{font-size:7px;padding:3px 5px}.raid-move small{font-size:9px}.move-readiness{font-size:8px}.raid-player{padding:11px 6px}.raid-party{gap:8px}.raid-player>.portrait{width:45px;height:45px}.raid-player>strong{font-size:10px}.raid-status{font-size:7px;padding:3px}.raid-phase{font-size:9px;left:10px;bottom:10px}.raid-party-panel{padding:16px}.raid-arena-toolbar{padding:12px}}
.join-raid-form{display:flex;gap:16px;align-items:end;padding:16px 22px;margin-bottom:22px}.join-raid-form label{margin:0;flex:1}.join-raid-form input{max-width:420px;text-transform:uppercase;letter-spacing:2px;font-size:12px}.join-raid-form .button{min-height:46px}@media(max-width:460px){.join-raid-form{padding:16px;flex-wrap:wrap}.join-raid-form label{flex-basis:100%}.join-raid-form .button{width:100%}}
.destination-actions>.text-button{padding:4px 0 0;font-size:10px}.creature-picker{width:min(510px,calc(100% - 32px))}.picker-preview{display:flex;gap:15px;align-items:center;background:#edf4f9;border:1px solid #c7dae7;border-radius:11px;padding:15px;margin:15px 0 23px}.picker-preview .portrait{width:66px;height:66px;flex-shrink:0}.picker-preview h3{font-size:17px;margin-bottom:5px}.picker-preview p{font-size:11px;color:#7c91a2;margin-bottom:8px}.creature-picker .inline-row{justify-content:space-between}.party-picker{width:min(620px,calc(100% - 32px));max-height:90vh}.party-picker>p{font-size:12px}.party-picker-list{max-height:360px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px;padding:2px}.party-picker-choice{margin:0;display:flex;flex-direction:row;align-items:center;gap:9px;border:1px solid #ccdae5;border-radius:10px;padding:10px;background:#f7faff;cursor:pointer}.party-picker-choice:has(input:checked){border-color:#6b9dbc;background:#e9f3fa}.party-picker-choice input{width:17px;height:17px;min-height:17px;padding:0;margin:0;flex-shrink:0}.party-picker-choice .portrait{width:39px;height:39px;flex-shrink:0}.party-picker-choice span{min-width:0}.party-picker-choice strong{display:block;font-size:11px;overflow-wrap:anywhere}.party-picker-choice small{display:block;font-size:9px;color:#8297a8;margin-top:4px}.picker-count{font-size:12px;color:#6183a0;font-weight:700}.party-picker .inline-row{justify-content:space-between}.breeding-item-shop{display:grid;grid-template-columns:1fr 1fr;gap:20px}.breeding-item-shop .ball-card{text-align:left;position:relative;padding:22px}.held-item-symbol{font-size:35px;color:#a67b9f;float:left;margin:0 18px 18px 0;width:43px;text-align:center}.breeding-item-shop .ball-card p{min-height:0;clear:both}.breeding-item-shop .ball-card h3{font-size:18px}.shiny-star{color:#c6a14e;text-shadow:0 1px 0 #fff2bd}.genetics-table p.nature-detail{margin:0 0 12px!important;color:#7a638e;font-size:10px!important}.event-card .event-solo{margin-top:10px;background:#fbf8fd;font-size:10px;min-height:36px;padding:8px}.raid-move-panel #raid-actor-label{font-size:11px;margin:14px 0}.raid-move-panel #raid-actor-choice{font-size:12px;max-width:440px}.inline-row>#defender-count{margin-left:auto}
@media(max-width:460px){.party-picker-list{grid-template-columns:1fr}.party-picker{padding:24px}.breeding-item-shop{grid-template-columns:1fr}.picker-preview{padding:11px;gap:12px}.picker-preview h3{font-size:16px}.creature-picker h2,.party-picker h2{font-size:25px}.creature-picker select{font-size:12px}}

/* Shared Rescue Square and the persistent, game-wide chat bar. */
body.has-world-chat{padding-bottom:198px}body.has-world-chat.world-chat-collapsed{padding-bottom:46px}.world-chat-widget{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(1200px,calc(100% - 56px));z-index:30;background:#253d4c;border:2px solid #172c3d;border-bottom:0;border-radius:13px 13px 0 0;box-shadow:0 -4px 24px #22374830;color:#e8f0f3;overflow:hidden}.world-chat-widget>header{display:flex;align-items:center;gap:15px;min-height:38px;background:#304c5d;border-bottom:1px solid #516b7b;padding:0 13px}.world-chat-toggle{display:flex;gap:10px;align-items:center;border:0;background:none;color:#fff0be;font-size:11px;font-weight:750;padding:10px 0;white-space:nowrap}.world-chat-toggle>span:first-child{color:#d1bd7d;font-size:16px;line-height:1}.world-chat-count{color:#a6bbc7;font-size:9px;font-weight:500}.world-chat-chevron{font-size:11px;color:#9fb6c3;margin-left:5px}.world-chat-status{font-size:9px;color:#91bcad}.world-chat-town{margin-left:auto;border:0;background:none;color:#e0cc96;font-size:10px;font-weight:650;padding:10px 0}.world-chat-body{padding:8px 13px 11px}.world-chat-widget.collapsed .world-chat-body{display:none}.world-chat-widget.collapsed>header{border-bottom:0}.world-chat-log{height:99px;overflow:auto;scrollbar-width:thin;scrollbar-color:#5d7987 #243a47;font-family:"Trebuchet MS","Segoe UI",sans-serif;overflow-wrap:anywhere}.world-chat-log>p{font-size:11px;line-height:1.45;margin:2px 0;color:#e6e6d9}.world-chat-log>p>strong{color:#a9d7f6;font-weight:700}.world-chat-log>p.own-message>strong{color:#e3ca85}.world-chat-log>.world-chat-empty{color:#9eb2b9;font-style:italic}.world-chat-form{display:flex;align-items:center;gap:9px;border-top:1px solid #4c6472;margin-top:5px;padding-top:8px}.world-chat-speaker{font-size:11px;color:#e3ca85;font-weight:750;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.world-chat-form input{min-height:28px;height:28px;border:0;background:transparent;border-radius:3px;color:#fff4d4;font-size:11px;padding:5px;flex:1;min-width:0}.world-chat-form input::placeholder{color:#8aa3b0}.world-chat-form input:focus-visible{outline:1px solid #9cb4c3;outline-offset:1px}.world-chat-form button{border:1px solid #7d8b85;background:#d9cca8;color:#3d4c4a;border-radius:5px;min-height:28px;padding:5px 13px;font-size:10px;font-weight:700}.world-chat-form button:disabled{opacity:.6}.world-chat-widget~#toast{bottom:210px}.hub-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px;align-items:start}.hub-plaza{padding:0;overflow:hidden;border:2px solid #43594d;box-shadow:0 4px 0 #43594d}.hub-plaza-toolbar{display:flex;gap:15px;align-items:center;justify-content:space-between;background:#edf5ec;padding:15px 18px;color:#7a907d;font-size:10px}.hub-plaza-toolbar .subtle-tag{background:#dfecdc;border-color:#bfd3b9;color:#66815e;font-size:9px}.hub-canvas-wrap{position:relative;overflow:hidden;aspect-ratio:24/18;background:#82a184}.hub-canvas-wrap canvas{display:block;width:100%;height:100%;cursor:crosshair;image-rendering:pixelated}.hub-map-tip{position:absolute;bottom:12px;left:12px;max-width:92%;padding:8px 11px;background:#294c3de3;border:1px solid #aec7a26b;border-radius:7px;color:#e9f3dd;font-size:10px;pointer-events:none}.hub-explorers-panel{padding:20px}.hub-explorers-panel>.eyebrow{font-size:9px;letter-spacing:1.5px}.hub-explorer-list{max-height:330px;overflow:auto;scrollbar-width:thin}.hub-explorer{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #e0e9ed}.hub-explorer .portrait{width:39px;height:39px;flex-shrink:0}.hub-explorer>div{min-width:0}.hub-explorer strong{display:block;font-size:11px;overflow-wrap:anywhere}.hub-explorer strong>small{font-size:8px;color:#9baf9c;margin-left:4px}.hub-explorer span{display:block;font-size:10px;color:#81959b;margin-top:4px}.hub-explorers-panel>p{font-size:10px;color:#7b8f9e;margin:18px 0}.hub-explorers-panel>.button{font-size:10px;margin-top:10px}.hub-label-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}.hub-avatar-label{position:absolute;transform:translate(-50%,-100%);text-align:center;white-space:nowrap;pointer-events:none}.hub-avatar-name{display:block;font-family:"Trebuchet MS","Segoe UI",sans-serif;font-size:11px;font-weight:700;color:#f5f0d8;text-shadow:1px 1px 0 #203124,-1px 1px 0 #203124,1px -1px 0 #203124,-1px -1px 0 #203124,0 2px 2px #132517}.hub-avatar-label.you .hub-avatar-name{color:#d7f0b4}.hub-overhead-chat{display:block;max-width:300px;white-space:normal;overflow-wrap:anywhere;margin-bottom:5px;line-height:1.25;font-family:"Trebuchet MS","Segoe UI",sans-serif;font-size:15px;font-weight:750;color:#ffed38;text-shadow:1px 1px 0 #201a04,-1px 1px 0 #201a04,1px -1px 0 #201a04,-1px -1px 0 #201a04,0 2px 2px #201a04}.genetics-guide summary{font-size:12px;color:#69859c;cursor:pointer}
@media(max-width:1100px){.world-chat-widget{width:calc(100% - 56px)}.hub-layout{grid-template-columns:minmax(0,1fr) 235px}.hub-plaza-toolbar{font-size:9px;padding:13px}.hub-explorers-panel{padding:17px}}
@media(max-width:760px){.world-chat-widget{width:calc(100% - 28px)}.world-chat-status{font-size:8px}.world-chat-widget>header{gap:9px}.world-chat-count{font-size:8px}.world-chat-town{font-size:9px}.world-chat-log{height:115px}.world-chat-speaker{max-width:85px;font-size:10px}.world-chat-form{gap:6px}.world-chat-form button{padding:5px 9px;font-size:9px}.world-chat-form input{font-size:11px}.world-chat-toggle{font-size:10px}.hub-layout{grid-template-columns:1fr}.hub-explorer-list{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;max-height:200px}.hub-explorers-panel>.button{max-width:300px}.hub-overhead-chat{font-size:13px;max-width:220px}.hub-avatar-name{font-size:9px}.hub-canvas-wrap{aspect-ratio:4/3}.hub-map-tip{font-size:9px}body.has-world-chat{padding-bottom:215px}body.has-world-chat.world-chat-collapsed{padding-bottom:44px}}
@media(max-width:460px){.world-chat-widget{width:calc(100% - 16px);border-radius:10px 10px 0 0}.world-chat-widget>header{padding:0 10px;gap:7px}.world-chat-toggle{gap:6px}.world-chat-count{font-size:7px}.world-chat-status{display:none}.world-chat-body{padding:7px 9px 9px}.world-chat-log>p{font-size:10px}.world-chat-speaker{display:none}.world-chat-form input{font-size:10px}.hub-plaza-toolbar{gap:8px;font-size:8px;padding:12px 10px}.hub-plaza-toolbar .subtle-tag{font-size:8px}.hub-overhead-chat{font-size:12px;max-width:190px}.hub-explorer-list{grid-template-columns:1fr 1fr;gap:0 10px}.hub-explorer{gap:7px}.hub-explorer strong{font-size:10px}.hub-explorer .portrait{width:32px;height:32px}.hub-map-tip{font-size:8px;padding:7px;left:8px;bottom:8px}.game-header:has(#hub-change-pokemon){gap:12px;flex-wrap:wrap}.game-header:has(#hub-change-pokemon) .button{font-size:10px;min-height:38px;padding:9px 12px}}
body.has-world-chat #toast{bottom:210px}body.has-world-chat.world-chat-collapsed #toast{bottom:58px}@media(max-width:760px){body.has-world-chat:not(.world-chat-collapsed) #toast{bottom:225px}}
.hub-avatar-name.you{color:#d7f0b4}

.account-rank{display:inline-flex;align-items:center;vertical-align:middle;border-radius:20px;padding:3px 8px;font-size:9px;font-weight:750;line-height:1.4;border:1px solid #cad6dc;color:#768c99;background:#eef4f7}.rank-owner{background:#fff2cd;border-color:#d7bc75;color:#8a6629}.rank-admin{background:#efe6fa;border-color:#c5afe0;color:#8057a0}.rank-mod{background:#e2f3e9;border-color:#a7cfb8;color:#418064}.hub-explorer .account-rank{display:inline-flex;margin:0 0 0 4px;font-size:8px}.staff-search{display:flex;align-items:end;gap:15px;max-width:650px}.staff-search label{flex:1;margin:0}.staff-users{margin-top:20px}.staff-user{padding:20px 0;border-top:1px solid #d9e4e9;display:flex;gap:20px;align-items:center;justify-content:space-between}.staff-user strong{font-size:14px}.staff-user small,.staff-user p{font-size:10px;margin-top:8px}.staff-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.staff-actions label{font-size:9px;margin:0}.staff-actions select,.staff-actions input{font-size:11px;max-width:150px;min-height:36px;padding:7px}.world-editor-frame{display:block;width:100%;height:1080px;border:0;border-radius:14px;background:#edf3f2}.hub-entrance{border-top:1px solid #d4e1d5;margin-top:20px;padding-top:15px}.hub-entrance strong{font-size:12px}.hub-entrance p{font-size:10px;line-height:1.6}.hub-entrance .button{margin-top:9px;font-size:10px}.world-chat-log .account-rank{font-size:8px;padding:1px 5px;margin-right:4px}@media(max-width:760px){.staff-user{align-items:start;flex-direction:column}.world-editor-frame{height:1450px}.staff-search{flex-wrap:wrap}}

@media(max-width:1000px){body>.topbar{height:auto;flex-wrap:wrap;min-height:80px}body>.topbar .brand{min-height:78px}body>.topbar .account{margin-left:auto}body>.topbar>nav{display:flex;order:3;flex:1 0 100%;padding:11px 20px;gap:25px;justify-content:center;border-top:1px solid #dce5e9;background:#f7fbfd;overflow-x:auto}body>.topbar>nav a{font-size:10px;white-space:nowrap}}@media(max-width:460px){body>.topbar>nav{justify-content:flex-start;gap:20px;padding:10px 14px}body>.topbar .brand{min-height:70px}.account-rank{font-size:8px}}

#toast{opacity:0;visibility:hidden;pointer-events:none;transition:transform .25s,opacity .2s,visibility .2s}#toast.visible{opacity:1;visibility:visible}#toast:empty{display:none}

.tower-move-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.tower-move{padding:12px;text-align:left;border:1.5px solid #acc2a5;border-radius:9px;background:#f8fcf2;color:#365345;min-height:90px}.tower-move.selected{border-color:#397f65;background:#e1f2db;box-shadow:inset 3px 0 #397f65}.tower-move b,.tower-move small,.tower-move span{display:block}.tower-move b{font-size:12px}.tower-move small{font-size:9px;margin:5px 0;color:#5c7f6c}.tower-move span,.tower-move-help,.tower-statuses{font-size:10px;line-height:1.5}.tower-statuses{color:#916938;min-height:16px}.tower-move-help{color:#68836a}.capture-target small{line-height:1.6}

.starter-trial-card h3{font-size:15px;min-height:36px;margin:10px 0}.starter-trial-stages{display:grid;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) 10px minmax(0,1fr);align-items:center;gap:3px;margin:17px 0}.starter-trial-stages>div{min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px}.starter-trial-stages .portrait{width:48px;height:48px}.starter-trial-stages small{font-size:9px;line-height:1.4;min-height:27px;overflow-wrap:anywhere}.starter-trial-stages>span{font-size:11px;color:#8e9eab}.starter-trial-card>.button+.button{margin-top:9px}.raid-evolution-choices{margin:12px 0;padding:10px;background:#f1f5e9;border:1px solid #d6dfcd;border-radius:8px}.raid-evolution-choices label{font-size:10px}.raid-evolution-choices select{min-width:0;font-size:11px;margin-top:7px}.raid-evolution-choices>.button{width:100%}
