:root{color-scheme:dark;--ink:#091914;--panel:#122b25;--panel2:#1b3730;--line:#385047;--gold:#e6c471;--mint:#9ed6a0;--text:#f3ecd8;--muted:#9bab9e;--red:#ed8d7c}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--ink);color:var(--text);font-family:Trebuchet MS,Arial,sans-serif;font-size:13px;overscroll-behavior:none}button,input,select{font:inherit}button{border:1px solid var(--line);border-radius:5px;background:var(--panel2);color:var(--text);min-height:34px;padding:7px 11px;cursor:pointer;touch-action:manipulation;font-weight:bold;transition:background .12s,transform .12s}button:hover{background:#304b3e}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--gold);border-color:#f1d591;color:#213125}button.primary:hover{background:#f4d892}button.danger{color:var(--red)}button.selected{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}button small{font-weight:normal;color:var(--muted)}input,select{background:var(--ink);border:1px solid var(--line);color:var(--text);border-radius:4px;padding:9px;max-width:100%}a{color:var(--gold)}.screen{position:absolute;inset:0}.hidden{display:none!important}.eyebrow{font:10px monospace;letter-spacing:3px;color:var(--gold)}#menu{isolation:isolate}#panorama{position:absolute;width:100%;height:100%;image-rendering:pixelated}.menu-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,25,20,.9),rgba(7,25,20,.1) 55%,rgba(7,25,20,.83)),linear-gradient(0deg,#061610,transparent 40%);z-index:1}.menu-brand{position:absolute;left:8%;top:16%;z-index:2}.menu-brand h1{font:bold clamp(30px,6.8vw,89px)/.98 monospace;letter-spacing:-3px;text-shadow:4px 4px #14231b;margin:18px 0;color:#f4e9c9}.menu-brand h1 em{font-style:normal;color:var(--gold)}.subtitle{letter-spacing:5px;font:12px monospace;color:#bdd9b0}.menu-brand p{color:#c8d8be;margin:22px 0}.menu-badges{display:flex;gap:7px}.menu-badges span{font:9px monospace;border:1px solid #557a53;background:#123121aa;padding:5px 7px}.menu-actions{position:absolute;right:7%;top:24%;width:29%;max-width:360px;z-index:3;display:grid;gap:10px}.menu-actions>button{text-align:left;padding:15px 18px;font-size:15px;background:#102a21de;border-color:#657951}.menu-actions>button.primary{background:var(--gold)}.menu-actions>button span{display:inline-block;width:25px}.menu-actions>button b{float:right}.menu-small{display:grid;grid-template-columns:1fr 1fr;gap:8px}.menu-small button{background:#0f241eea;min-height:38px;font-size:11px}.menu-footer{position:absolute;bottom:4%;left:8%;right:7%;z-index:3;display:flex;gap:30px;align-items:center;font:9px monospace;color:#a5b696}.menu-footer button{margin-left:auto;font:11px monospace;min-height:30px}.topbar{height:46px;background:var(--panel);display:flex;gap:10px;align-items:center;padding:4px max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left));border-bottom:1px solid var(--line)}.icon-button{padding:2px 10px;font-size:18px;min-width:36px;min-height:32px}.game-logo{font:900 13px monospace;white-space:nowrap}.game-logo em{color:var(--gold);font-style:normal}.game-logo small{display:block;font-size:8px;font-weight:normal;letter-spacing:1px;color:var(--muted)}#top-info{display:flex;align-items:center;gap:15px;margin-left:auto;font:12px monospace}#top-info b{color:var(--gold)}.play-layout{display:flex;position:absolute;top:46px;bottom:116px;width:100%}#sidebar{width:145px;flex-shrink:0;background:var(--panel);padding:9px 8px;border-right:1px solid var(--line);overflow:auto;scrollbar-width:thin}.side-title{font:9px monospace;letter-spacing:1px;color:var(--muted);margin-bottom:8px}.trainer{padding:5px 6px;border:1px solid #31483c;margin-bottom:5px;border-radius:4px;position:relative;font-size:10px}.trainer.mine{border-color:var(--gold);background:#3c402833}.trainer.dead{opacity:.4}.trainer span.rank{display:inline-block;width:14px;color:var(--gold);font:bold 11px monospace}.trainer b{font-size:11px}.trainer .life{height:3px;background:#304536;margin-top:5px}.trainer .life i{height:3px;display:block;background:var(--mint)}.trainer small{float:right;color:var(--muted);font:9px monospace}.synergy-chip{font:9px monospace;border-radius:3px;background:#274235;margin:4px 0;padding:5px;border-left:3px solid var(--mint)}.world-wrap{position:relative;flex:1;min-width:0;overflow:hidden;background:#17362c;display:flex;align-items:center;justify-content:center}#world{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;touch-action:none}#phase-label{position:absolute;left:10px;top:9px;background:#0b231dda;border:1px solid #5c7353;padding:6px 10px;border-radius:3px;font:10px monospace;color:var(--gold);pointer-events:none}#world-tip{position:absolute;bottom:7px;left:10px;max-width:85%;padding:5px 8px;background:#0b231dcc;font-size:10px;color:#d0dfbd;pointer-events:none;border-radius:3px}#inspector{position:absolute;top:9px;right:9px;width:218px;background:#10271ef5;border:1px solid #738059;padding:9px;border-radius:5px;box-shadow:0 8px 25px #0006;max-height:92%;overflow:auto;font-size:11px}#inspector h3{margin:0 0 5px;font:13px monospace;color:var(--gold)}#inspector p{color:#bfceba;line-height:1.35;font-size:10px;margin:5px 0}#inspector button{font-size:10px;min-height:29px;padding:4px 8px;margin:3px 2px 0 0}.type{display:inline-block;border:1px solid #587465;border-radius:3px;padding:2px 4px;font-size:8px;color:#fff;background:var(--tc,#426b48);margin:2px}#banner{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:2px solid var(--gold);background:#10251eee;color:var(--gold);padding:15px 28px;text-align:center;min-width:240px;pointer-events:none;box-shadow:0 0 40px #0009;font:bold 20px monospace}#banner small{display:block;color:var(--text);font-size:10px;line-height:1.5;margin-top:8px}#dock{position:absolute;bottom:0;left:0;right:0;height:116px;padding:5px max(8px,env(safe-area-inset-right)) 5px max(8px,env(safe-area-inset-left));background:var(--panel);border-top:1px solid var(--line);display:flex;gap:9px}.dock-roster{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.dock-row{display:flex;gap:5px;align-items:center;min-height:48px}.dock-tag{width:48px;flex-shrink:0;font:8px monospace;color:var(--muted);line-height:1.5}.cards{display:flex;gap:5px;flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.unit-card{position:relative;min-height:45px;width:93px;flex-shrink:0;padding:3px 4px;display:flex;gap:3px;text-align:left;align-items:center;background:#203b30;border:1px solid #49604a}.unit-card canvas{width:35px;height:36px;image-rendering:pixelated;flex-shrink:0}.unit-card .card-text{min-width:0;font:9px monospace;line-height:1.5}.unit-card .card-text b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.unit-card .card-text small{font:8px monospace;color:var(--gold)}.unit-card.field{border-color:var(--mint)}.unit-card.sold{opacity:.25}.dock-controls{width:171px;flex-shrink:0;display:flex;flex-wrap:wrap;gap:4px;align-content:center}.dock-controls button{flex:1;min-height:30px;padding:4px 5px;font-size:10px;white-space:nowrap}.dock-controls .battle-btn{flex-basis:100%;font:12px monospace;min-height:35px}.sim-tools{display:flex;gap:5px;align-items:center;overflow-x:auto;flex:1}.tool{min-width:70px;min-height:62px;text-align:center;padding:6px;font-size:10px}.tool .tool-icon{display:block;font-size:20px;margin-bottom:3px}.tool small{display:block;font-size:8px}.sim-controls{width:130px;display:grid;grid-template-columns:1fr 1fr;gap:5px;align-content:center}.sim-controls button{font-size:10px;padding:6px 4px}#modal{position:absolute;inset:0;z-index:20;background:#061b13bd;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px);padding:14px}.modal-card{border:1px solid #6b805a;background:var(--panel);box-shadow:0 15px 60px #0009;border-radius:7px;width:min(720px,92vw);max-height:94vh;overflow:auto;padding:20px}#modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:13px}#modal-head h2{margin:0;font:bold 19px monospace;color:var(--gold)}#modal-head button{font-size:15px;min-height:29px;padding:3px 10px}#modal-body{line-height:1.6;color:#d1deca}#modal-body p{margin:8px 0;font-size:12px}.flex{display:flex;gap:10px;align-items:center}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.slot{border:1px solid var(--line);padding:13px;background:var(--ink);border-radius:4px}.slot strong{color:var(--gold);display:block;font:14px monospace}.slot small{font-size:10px;color:var(--muted);display:block;margin:8px 0}.slot button{width:100%}.chapter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.chapter{padding:9px;text-align:left;min-height:76px}.chapter b{display:block;font:12px monospace;color:var(--gold)}.chapter small{font-size:9px;line-height:1.4;display:block;margin-top:5px}.codex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:5px;margin-top:10px}.codex-card{min-height:78px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px;font-size:10px}.codex-card canvas{height:40px;width:48px;image-rendering:pixelated}.codex-card.locked{opacity:.4}.setting-row{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.setting-row input[type=range]{width:170px}.setting-row label{font-size:12px}.notes{background:var(--ink);padding:12px;border-left:3px solid var(--gold);font-size:11px;color:var(--muted)}.result-rank{padding:7px 10px;border-bottom:1px solid var(--line);font-size:12px}.result-rank b{color:var(--gold)}#toast{position:absolute;left:50%;bottom:128px;transform:translateX(-50%);z-index:40;background:#e6c471;color:#14271f;border:1px solid #ffe7a6;border-radius:4px;padding:8px 14px;max-width:80%;text-align:center;font:11px monospace;box-shadow:0 5px 15px #0005;pointer-events:none}#rotate{display:none;position:absolute;inset:0;background:var(--ink);z-index:60;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px}#rotate span{font-size:60px;color:var(--gold)}#rotate b{font:22px monospace}#rotate p{font-size:13px;color:var(--muted);max-width:260px}.close-inspector{float:right;color:var(--muted);cursor:pointer}.resource{color:var(--gold)}.save-status{font:9px monospace;color:var(--muted)}.section-label{font:10px monospace;color:var(--gold);margin-top:12px}.habitat-stat{background:#203b2f;padding:7px 6px;border-radius:3px;margin:5px 0;font-size:10px}.habitat-stat b{color:var(--gold)}
@media(max-height:480px){.topbar{height:38px;gap:7px}.play-layout{top:38px;bottom:99px}#dock{height:99px;padding-top:3px;padding-bottom:3px;gap:6px}.dock-row{min-height:41px}.unit-card{min-height:39px;width:87px}.unit-card canvas{height:32px;width:31px}.dock-controls{width:148px}.dock-controls button{min-height:25px;font-size:9px;padding:3px}.dock-controls .battle-btn{min-height:29px}.game-logo{font-size:11px}.game-logo small{font-size:7px}#top-info{font-size:10px;gap:9px}.icon-button{min-height:28px;font-size:16px;min-width:30px;padding:1px 6px}#sidebar{width:121px;padding:6px}.trainer{padding:4px;margin-bottom:4px}.trainer b{font-size:10px}.trainer small{font-size:8px}.side-title{font-size:8px;margin-bottom:5px}.menu-brand{top:13%}.menu-brand h1{font-size:clamp(35px,6.2vw,60px);margin:12px 0}.menu-brand p{font-size:11px;margin:15px 0}.menu-actions{top:18%;gap:7px}.menu-actions>button{padding:11px 12px;font-size:13px;min-height:39px}.menu-small button{min-height:31px;font-size:10px}.menu-footer{bottom:3%;font-size:8px}.menu-badges span{font-size:8px}.modal-card{padding:12px;max-height:94vh}.tool{min-width:61px;min-height:57px}#inspector{width:185px;font-size:10px;padding:7px}#inspector h3{font-size:11px}#phase-label{font-size:9px;padding:5px}#world-tip{font-size:9px}#toast{bottom:108px}.synergy-chip{font-size:8px;padding:4px}.chapter{min-height:65px}.chapter small{font-size:8px}}
@media(max-width:740px){#sidebar{width:104px}.dock-controls{width:122px}.dock-tag{width:37px;font-size:7px}.unit-card{width:77px}.unit-card .card-text b{font-size:8px}.menu-actions{right:5%;width:33%}.menu-brand{left:5%}.menu-brand .eyebrow{font-size:8px;letter-spacing:2px}.subtitle{font-size:10px;letter-spacing:3px}.menu-footer{left:5%;right:5%;gap:15px}.menu-badges{gap:4px}.menu-badges span{font-size:7px;padding:4px}.game-logo{font-size:9px}#top-info{font-size:9px;gap:7px}.topbar{gap:5px}.chapter-grid{grid-template-columns:repeat(3,1fr)}}
@media(orientation:portrait) and (max-width:800px){body:not(.portrait-ok) #rotate{display:flex}.menu-brand{top:8%;left:8%}.menu-actions{top:50%;left:8%;right:8%;width:auto;max-width:none}.menu-brand h1{font-size:60px}.menu-footer>span{display:none}body.portrait-ok .play-layout{bottom:160px}body.portrait-ok #dock{height:160px;flex-direction:column}body.portrait-ok .dock-controls{width:auto;flex-wrap:nowrap}body.portrait-ok .dock-controls .battle-btn{flex-basis:auto}body.portrait-ok #sidebar{width:90px}.grid3{grid-template-columns:1fr}.slot{padding:8px}#top-info{font-size:8px}}

/* Compact control grid keeps every button inside the landscape dock. */
#panorama{object-fit:cover}.dock-controls{display:grid;grid-template-columns:repeat(3,1fr);width:174px;gap:4px}.dock-controls button{min-width:0;padding:4px 2px;font-size:9px}.dock-controls .battle-btn{grid-column:1/-1;min-width:0}.unit-card{touch-action:manipulation}@media(max-height:480px){.dock-controls{width:150px;gap:3px}.dock-controls button{min-height:23px;padding:3px 1px;font-size:8px}.dock-controls .battle-btn{min-height:28px}}@media(max-width:740px){.dock-controls{width:132px}.dock-controls button{font-size:8px}}
#app{position:relative;width:100%;height:100%;height:100dvh;overflow:hidden}.play-layout{left:env(safe-area-inset-left);right:env(safe-area-inset-right);width:auto;bottom:calc(116px + env(safe-area-inset-bottom))}#dock{height:calc(116px + env(safe-area-inset-bottom));padding-bottom:calc(5px + env(safe-area-inset-bottom))}.menu-footer{bottom:max(4%,env(safe-area-inset-bottom))}.modal-card{max-height:94dvh}@media(max-height:480px){.play-layout{bottom:calc(99px + env(safe-area-inset-bottom))}#dock{height:calc(99px + env(safe-area-inset-bottom));padding-bottom:calc(3px + env(safe-area-inset-bottom))}}@media(orientation:portrait) and (max-width:800px){body.portrait-ok .play-layout{bottom:calc(160px + env(safe-area-inset-bottom))}body.portrait-ok #dock{height:calc(160px + env(safe-area-inset-bottom))}.dock-controls{display:grid!important}}

:root{--ink:#09292a;--panel:#103d3b;--panel2:#15504b;--line:#3b7870;--gold:#ff973f;--mint:#78c9ae;--text:#f3edda;--muted:#adc6b6;--red:#f29a83;color-scheme:dark}body{font-family:Trebuchet MS,Arial,sans-serif;background:#09292a}.menu-shade{background:linear-gradient(90deg,#073b3ce8,#0733332a 58%,#073335e6),linear-gradient(0deg,#052927,transparent 65%)}.menu-brand{top:9%}.indiginus-logo{display:block;width:150px;height:53px;object-fit:contain;object-position:left center;image-rendering:auto;margin-bottom:8px}.menu-brand .eyebrow{font-size:9px;letter-spacing:2.5px;color:#add5c6}.menu-brand h1{font-size:clamp(38px,6.7vw,85px);letter-spacing:-3px;margin:14px 0;color:#f6e5bc;text-shadow:3px 4px #0c4a45}.menu-brand h1 em{color:#ff9d45}.menu-brand .subtitle{font-size:10px;letter-spacing:2px;color:#98d2bf}.menu-brand p{font-size:12px;margin:15px 0;color:#d6e3d0}.menu-badges span{border-color:#459b87;background:#0e5653a8}.menu-actions{top:20%;gap:9px}.menu-actions>button{background:#0e4948e8;border-color:#4e9c89}.menu-actions>button.primary{background:#f79336;color:#123f3b;border-color:#ffb56d}.menu-small button{background:#0f4643ee}.menu-atlas{display:flex;gap:7px;align-items:center;justify-content:center!important;font-size:10px!important;min-height:30px!important;padding:6px!important}.menu-atlas svg{height:15px}.game-logo em{color:#ff9b45}.topbar{background:#0a3938;border-color:#367e70}.primary{box-shadow:inset 0 1px #ffc18366}.trainer.mine{background:#ea91401a}.life i{background:#75bc9f!important}.trainer{border-color:#2c6c61}.unit-card{background:#16504a;border-color:#3d8373;border-radius:4px}.unit-card.field{border-color:#a0c7a0}.dock-controls .battle-btn{background:#f29137;color:#173c36}.story-note{background:#155d53;padding:10px;border-left:3px solid #ff9c45;font-size:12px;margin-bottom:10px}.studio-lockup{display:flex;align-items:center;gap:20px}.studio-lockup img{width:190px;max-width:42%;object-fit:contain}.studio-lockup h3{font:bold 20px monospace;color:var(--gold)}.library-tabs{display:flex;gap:5px;overflow-x:auto;margin:5px 0 12px}.library-tabs button{white-space:nowrap;font-size:10px}.knowledge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:7px;margin-top:10px}.knowledge-card{background:#123e38;border:1px solid #3f7b68;border-radius:4px;padding:10px;display:flex;flex-direction:column;text-align:left;gap:4px;min-height:88px;color:#e4ebd3;font-size:10px}.knowledge-card small{font-size:9px;line-height:1.35;color:#a8c7b4;font-weight:normal}.knowledge-card b{color:#ffbc76;font-size:11px}.plant-icon{color:#a7d3a4;font-size:24px}.reference-text{font-size:11px;line-height:1.55;overflow-wrap:anywhere;max-height:58vh;overflow:auto;background:#0b302e;padding:12px}.flora-detail-hero,.pokemon-detail-hero{display:flex;align-items:center;gap:15px}.flora-detail-hero canvas{image-rendering:pixelated;flex-shrink:0}.pokemon-detail-hero canvas{width:80px;height:60px;image-rendering:pixelated}.effect-panel{background:#145347;border:1px solid #4b8268;padding:10px;border-radius:5px;margin:10px 0;font-size:11px}.effect-panel>b{color:#ffb778}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:8px 0}.stats-grid>div{background:#0c302e;border:1px solid #316c5d;padding:6px;border-radius:4px}.stats-grid small{font-size:8px;color:#a7c9b4;display:block}.stats-grid b{display:block;font:12px monospace;color:#ffbc78;margin-top:4px}.skill-detail{padding:9px 10px;background:#0e3531;border-left:3px solid #5da98b;margin:7px 0}.skill-detail>b{font-size:12px;color:#ffbf7c}.skill-detail small{font-size:9px;display:block;color:#a7c6b3;margin-top:3px}.skill-detail p{font-size:10px!important;line-height:1.4;margin:5px 0!important}.inspect-title{display:flex;align-items:center;gap:6px}.inspect-title canvas{width:45px;height:40px;image-rendering:pixelated}.inspect-title h3{margin:0;font-size:12px}#inspector{width:252px;background:#0d3832f5;border:1px solid #71a188;box-shadow:0 8px 35px #001e2099;max-height:94%;top:6px;right:6px;padding:9px}.need-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;font-size:9px}.need-grid span{display:block;margin-bottom:3px;color:#d7e5ce}.need-grid i{height:4px;display:block;background:#092923;border-radius:3px;overflow:hidden}.need-grid i b{height:4px;display:block}.mood-line{font:bold 11px monospace;margin:7px 0}.goal-line{font-size:10px!important;line-height:1.35!important;background:#1a5547;padding:5px}.care-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}.care-actions button{font-size:9px!important;padding:4px!important;min-height:28px!important;margin:0!important}.flora-summary{font-size:8px;color:#b5d1ae;line-height:1.4;padding:6px;background:#143e32;margin-top:7px}.wide-detail{width:100%;font-size:9px!important}.pet-side{width:100%;display:flex;flex-direction:column;align-items:center;font-size:10px;padding:6px;min-height:90px;margin-bottom:7px;background:#165246}.pet-side canvas{height:37px;width:47px;image-rendering:pixelated}.pet-side small{font-size:8px;margin:4px 0}.pet-side span{font:8px monospace;color:#cae0c1}.side-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px}.side-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:41px;padding:4px;color:#b9debf}.side-actions button small{font-size:8px;display:block;margin-top:3px;color:#d5e5ca}.side-actions button svg{height:18px}.sidebar-library{width:100%;display:flex;align-items:center;justify-content:center;gap:5px;font-size:8px;margin-top:7px;padding:5px}.sidebar-library svg{width:14px;height:14px}.world-toolbox{display:flex;flex-direction:column;flex:1;min-width:0;gap:4px}.category-strip{display:flex;gap:5px;height:32px;flex-shrink:0;overflow-x:auto;scrollbar-width:none}.category-strip button{display:flex;align-items:center;gap:6px;font-size:10px;min-height:30px;white-space:nowrap;padding:4px 10px}.category-strip button.selected{background:#db8736;color:#173f32;border-color:#ffb77a}.category-strip button svg{width:17px;height:17px}.tool-strip{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;height:63px;align-items:center}.map-tool{min-width:57px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:5px 6px;min-height:51px;color:#c2debd;background:#164f42;border-color:#45806b}.map-tool.selected{background:#e39640;border-color:#ffbe74;color:#143d30;box-shadow:inset 0 0 0 1px #dadd98}.map-tool small{font-size:8px;color:inherit}.map-control-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;width:132px;align-content:center;flex-shrink:0}.map-control-grid button{display:flex;align-items:center;justify-content:center;min-height:37px;padding:5px;background:#144c45;border-color:#4f8b77}.map-control-grid button.selected{border-color:#ffac5b;color:#ffb66a}#world-tools-hud{position:absolute;bottom:8px;right:8px;background:#123d32;border:2px solid #9bb890;box-shadow:0 4px 14px #04201c66;border-radius:3px;z-index:3}#minimap{display:block;width:112px;height:67px;image-rendering:pixelated;touch-action:none;cursor:crosshair}#phase-label{color:#ffc17d;background:#093c35de;border-color:#5d9b7d;font-size:9px}#phase-label small{display:block;color:#b6d3bb;font-size:8px;margin-top:3px}#world-tip{font-size:9px;background:#0d3b32cc;color:#deebcd;max-width:70%}#dock{background:linear-gradient(#15504a,#103c37);border-color:#458e75}#sidebar{background:#0e3e36;border-color:#3b8069}.modal-card{background:#113e36;border-color:#71a084}.slot{background:#0d312d}.notes{background:#0a302b;border-color:#f49b4c;color:#abcab4}
@media(max-height:480px){.menu-brand{top:7%}.indiginus-logo{width:112px;height:38px;margin-bottom:4px}.menu-brand h1{font-size:clamp(32px,5.9vw,58px);margin:9px 0}.menu-brand .eyebrow{font-size:8px}.menu-brand .subtitle{font-size:8px;letter-spacing:1.5px}.menu-brand p{margin:10px 0;font-size:10px}.menu-actions{top:16%;gap:6px}.menu-actions>button{padding:10px 12px;min-height:36px}.menu-small button{min-height:29px}.menu-atlas{min-height:26px!important;font-size:9px!important;padding:3px!important}.menu-footer{font-size:8px}.menu-badges span{font-size:7px;padding:4px}.world-toolbox{gap:2px}.category-strip{height:27px}.category-strip button{font-size:9px;min-height:25px;padding:3px 6px}.category-strip button svg{width:14px;height:14px}.tool-strip{height:57px}.map-tool{min-width:53px;min-height:48px;padding:4px}.map-control-grid{width:111px;gap:3px}.map-control-grid button{min-height:34px;padding:4px}.map-control-grid svg{width:18px;height:18px}#inspector{width:220px;padding:7px}.need-grid{font-size:8px;gap:4px}.inspect-title h3{font-size:10px}.inspect-title canvas{width:40px;height:35px}.mood-line{font-size:10px}.care-actions button{font-size:8px!important;min-height:25px!important}.stats-grid{gap:3px}.stats-grid>div{padding:4px}.stats-grid b{font-size:10px}.pet-side{min-height:80px;padding:4px}.side-actions button{min-height:37px;font-size:8px}#minimap{width:96px;height:58px}.side-actions{gap:3px}.studio-lockup h3{font-size:17px}.knowledge-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr))}.reference-text{max-height:55vh}.sidebar-library{font-size:7px}}
@media(max-width:740px){.category-strip button span{display:none}.category-strip button{min-width:34px;justify-content:center}.map-control-grid{width:99px}.map-tool{min-width:49px}.map-tool small{font-size:7px}.menu-brand .subtitle{max-width:255px;line-height:1.6}.menu-atlas{font-size:8px!important}.stats-grid{grid-template-columns:repeat(4,1fr)}}
#toast{background:#ffad62;border-color:#ffd29a;color:#153e34}.reference-item{padding:3px 0 3px 7px}.reference-text h3{font-size:13px;color:#ffbd7b;line-height:1.4;margin:12px 0 7px}.reference-text strong{color:#d3e6ca}.reference-text a{color:#ffbf7f}.effect-panel a{overflow-wrap:anywhere;font-size:11px}.notes{line-height:1.5}

/* Touch-first release layout */
.topbar{height:48px;min-height:48px}.play-layout{top:48px;bottom:calc(180px + env(safe-area-inset-bottom))}#dock{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
#arena-nav3{position:absolute;right:9px;top:7px;display:flex;gap:5px;z-index:4}#arena-nav3 button{background:#103d38e8;min-height:34px;min-width:34px;padding:5px 9px;font-size:12px}
#game{grid-template-rows:48px minmax(0,1fr) 180px}#world{width:100%;height:100%;object-fit:contain}.world-wrap{min-height:0;background:#092c2d}#dock{height:180px;min-height:180px;display:flex;gap:12px;padding:10px 14px;box-sizing:border-box;align-items:stretch;overflow:hidden}#sidebar{width:150px;padding:10px}.play-layout{min-height:0}#phase-label{font-size:12px;padding:8px 12px;top:9px;left:12px}#world-tip{font-size:12px;bottom:5px;padding:7px 10px;background:#073634e8;max-width:calc(100% - 24px)}#top-info{font-size:13px;gap:16px}button{touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #ffab62;outline-offset:2px}.adventure-dock3{min-width:0;flex:1;display:flex;flex-direction:column;gap:9px}.dock-heading3{display:flex;align-items:center;justify-content:space-between;gap:12px}.dock-heading3>span{font-size:11px;color:#b5d4b9}.dock-tabs3{display:flex;gap:8px}.dock-tabs3 button{font-size:13px;min-height:36px;padding:7px 13px}.big-cards3{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;flex:1;align-items:stretch;padding-bottom:4px;scrollbar-width:thin}.big-card3{flex:0 0 190px;min-width:190px;text-align:left;display:flex;align-items:center;gap:8px;padding:9px;background:#123e3b;border:1px solid #57968a;border-radius:7px;white-space:normal;transition:background .15s}.big-card3:hover{background:#1c554c}.big-card3>canvas{width:62px;height:50px;flex:0 0 62px;image-rendering:pixelated}.big-card3>div{display:flex;flex-direction:column;gap:6px;min-width:0}.big-card3 b{font-size:13px;color:#fff0cb;overflow:hidden;text-overflow:ellipsis}.big-card3 small{font-size:10px;color:#aed1ba}.big-card3 span{font-size:10px;color:#d5e4d1}.big-card3 strong{font-size:12px;color:#ffab61}.big-card3.sold{opacity:.4}.big-card3.fielded3{border-bottom:3px solid #77d1a8}.actions3{width:180px;flex-shrink:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.actions3 button{min-height:38px;font-size:12px}.actions3 .primary{grid-column:1/-1;font-size:15px}.actions3 small{font-size:10px;color:#b8d5bb}.draft-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.draft-card{display:flex;align-items:center;text-align:left;gap:7px;min-height:106px;padding:10px}.draft-card>div{display:flex;flex-direction:column;gap:6px;min-width:0}.draft-card small,.draft-card span{font-size:11px}.draft-card small .type-tag{display:none}.draft-card>strong{margin-left:auto;color:#ffa95f;font-size:22px}.draft-card.selected{border:2px solid #ffa15c;background:#225e4c}.draft-summary{padding:12px;background:#154d43;color:#ffbc79;border-left:3px solid #ff9849;margin:10px 0;font-size:16px}.draft-footer{display:flex;justify-content:space-between;gap:12px;padding-top:14px;position:sticky;bottom:-18px;background:#103d37}.draft-footer button{min-height:42px}.modal-card{width:min(940px,92vw);max-height:92dvh}#modal-body{font-size:14px;line-height:1.6}.center-detail{position:relative}.center-detail .close-inspector{display:none}.center-detail .inspect-title h3{font-size:20px}.center-detail .stats-grid{grid-template-columns:repeat(4,1fr)}.center-detail .stats-grid b{font-size:20px}.center-detail button{min-height:39px;margin:4px;padding:8px 14px}.price-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.price-grid3 button{display:flex;flex-direction:column;gap:8px;text-align:left;min-height:68px;padding:11px}.price-grid3 small{font-size:12px;color:#c5d9ba}.wallet3{background:#1d5748;color:#ffb365;padding:12px;font-weight:bold}.build-ledger3{flex:0 0 105px;font-size:12px}#ultimate3{position:absolute;z-index:25;left:50%;top:42%;transform:translate(-50%,-50%);pointer-events:none;width:min(580px,70vw);padding:22px 30px;text-align:center;background:linear-gradient(90deg,#083b32ee,#1d6760f5,#083b32ee);border-top:3px solid #ff963b;border-bottom:3px solid #ff963b;box-shadow:0 0 0 100vmax #031b1838;color:#fff2cf;animation:ultimate3 .2s ease-out}#ultimate3 span{display:block;font-size:12px;letter-spacing:4px;color:#ffad65}#ultimate3 strong{display:block;font-size:32px;margin:8px}#ultimate3 b{display:block;font-size:18px;color:#a9e6d0}@keyframes ultimate3{from{opacity:0;transform:translate(-50%,-50%) scale(.87)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.world-toolbox{flex:1;min-width:0}.category-strip button{min-height:40px}.tool-strip .map-tool{min-width:58px;min-height:60px}.tool-strip small{font-size:11px}.side-actions button{min-height:40px}.sidebar-library{min-height:39px;font-size:11px}.trainer b{font-size:12px}.trainer small{font-size:10px}#banner{pointer-events:none}.menu-atlas{display:none}
@media(max-height:600px){#game{grid-template-rows:40px minmax(0,1fr) 145px}#dock{height:145px;min-height:145px;padding:7px 9px;gap:8px}.topbar{height:40px;min-height:40px}#sidebar{width:116px;padding:6px}.dock-heading3>span{display:none}.dock-tabs3 button{font-size:11px;min-height:31px;padding:5px 9px}.adventure-dock3{gap:6px}.big-card3{min-width:166px;flex-basis:166px;padding:7px;gap:4px}.big-card3>canvas{width:52px;height:45px;flex-basis:52px}.big-card3>div{gap:4px}.big-card3 b{font-size:12px}.big-card3 span,.big-card3 small{font-size:9px}.big-card3 strong{font-size:11px}.actions3{width:155px;gap:5px}.actions3 button{min-height:30px;font-size:10px}.actions3 .primary{font-size:12px}#top-info{font-size:11px;gap:10px}#world-tip{font-size:9px;padding:4px 6px;bottom:2px}#phase-label{font-size:9px;padding:5px 7px;top:4px;left:5px}.trainer{padding:5px 6px}.trainer b{font-size:10px}.trainer small{font-size:9px}.synergy-chip{font-size:9px}.sidebar-library{font-size:10px;min-height:31px}.draft-card{min-height:89px;padding:7px}.draft-grid{gap:7px}.draft-card>canvas{width:46px;height:38px}.draft-card b{font-size:12px}.draft-card span,.draft-card small{font-size:9px}.draft-card>div{gap:3px}.modal-card{max-height:94dvh}#modal-body{font-size:12px;padding:13px}.center-detail .stats-grid b{font-size:17px}.center-detail .stats-grid small{font-size:10px}.category-strip button{min-height:30px}.tool-strip .map-tool{min-height:48px;min-width:48px}.tool-strip small{font-size:9px}.build-ledger3{flex-basis:70px;font-size:10px}.map-control-grid{width:105px}.price-grid3 small{font-size:10px}}
@media(min-width:1400px){#game{grid-template-rows:52px minmax(0,1fr) 200px}#dock{height:200px;min-height:200px}.big-card3{flex-basis:220px;min-width:220px}.big-card3>canvas{width:74px;height:65px;flex-basis:74px}.big-card3 b{font-size:16px}.big-card3 small,.big-card3 span{font-size:12px}.big-card3 strong{font-size:14px}.actions3{width:230px}.actions3 button{font-size:14px}}
@media(max-width:700px){.draft-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.price-grid3{grid-template-columns:repeat(2,minmax(0,1fr))}.center-detail .stats-grid{grid-template-columns:repeat(2,1fr)}#top-info .resource{display:none}#sidebar{width:95px}.actions3{width:130px}}
@media(max-height:600px){.play-layout{top:40px;bottom:calc(145px + env(safe-area-inset-bottom))}.topbar{height:40px;min-height:40px}#dock{height:calc(145px + env(safe-area-inset-bottom));min-height:145px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}}
@media(min-width:1400px) and (min-height:601px){.topbar{height:52px;min-height:52px}.play-layout{top:52px;bottom:calc(200px + env(safe-area-inset-bottom))}#dock{height:calc(200px + env(safe-area-inset-bottom))}}

/* Paged, touch-first interface: lists never require swipe-scrolling. */
input,select,textarea{font-size:16px;max-width:100%}
.pet-compact4{width:100%;display:flex;flex-direction:column;align-items:center;padding:4px;gap:2px}.pet-compact4 canvas{width:50px;height:39px;image-rendering:pixelated}.pet-compact4 b{font-size:11px}.pet-compact4 small{font-size:9px;color:#bfe1bf}.pet-nav4{display:flex;justify-content:space-between;align-items:center;margin:3px 0;font-size:10px}.pet-nav4 button{padding:1px 7px;min-height:23px}#game.sim4 #top-info>span:nth-child(n+4){display:none}
html,body,#app{overflow:hidden;overscroll-behavior:none}#modal{padding:8px}.modal-card{width:min(960px,96vw);height:min(92dvh,760px);max-height:none;overflow:hidden;display:flex;flex-direction:column}#modal-head{flex:0 0 48px;min-height:48px;padding:9px 15px}#modal-head h2{font-size:18px}#modal-body{flex:1;min-height:0;overflow:hidden!important;display:flex;flex-direction:column;padding:12px 16px;gap:8px}#page-stage4{flex:1;min-height:0;overflow:hidden;position:relative}#page-stage4>p{font-size:13px;line-height:1.45;margin:8px 0}#page-nav4{flex:0 0 34px;display:flex;align-items:center;justify-content:center;gap:18px;border-top:1px solid #397365;padding-top:5px}#page-nav4 button{height:30px;min-width:66px;padding:4px}#page-count4{color:#ffbf7e;font-size:12px;font-weight:bold;min-width:60px;text-align:center}.draft-footer{position:static;padding-top:7px;padding-bottom:4px}.library-tabs,.reference-text,.chapter-grid,.knowledge-grid,.codex-grid,.cards,.tool-strip,.category-strip,.regions4,.care-actions{overflow:hidden!important}.big-cards3{overflow:hidden!important;scrollbar-width:none}.big-card3{flex-shrink:0}.dock-pager4{display:flex;align-items:center;gap:5px;font-size:11px}.dock-pager4 button{padding:2px 10px;min-width:30px;min-height:28px}.dock-heading3>span{display:none}.team-strip4{display:flex;gap:3px;align-items:center}.team-strip4 button{display:flex;position:relative;align-items:center;justify-content:center;padding:1px;border-color:#589585;width:36px;height:35px;background:#0c3836}.team-strip4 canvas{width:31px;height:25px;image-rendering:pixelated}.team-strip4 small{position:absolute;bottom:-2px;left:0;right:0;text-align:center;font-size:7px;color:#ffd08b}.trainer-avatar4{flex-shrink:0;border:1px solid #5f9c87;border-radius:5px;image-rendering:pixelated}.trainer4{display:flex;align-items:center;gap:5px;width:100%;text-align:left;min-height:38px;padding:4px;margin-bottom:4px}.trainer4>span{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}.trainer4 b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trainer4 small{position:static;font-size:9px;color:#b6d7bd}.trainer4 .life{display:block;height:3px;margin:0}.trainer4 .life>i{display:block;height:3px}.synergy-icons4{display:flex;gap:3px;flex-wrap:nowrap;margin:5px 0}.synergy-icons4 button{padding:2px;width:27px;height:26px;font-size:14px;position:relative}.synergy-icons4 small{font-size:8px;color:#ffd18d;vertical-align:bottom}.climate-pill4{border:0;background:transparent;padding:0;font-size:11px;color:#f4e7bc;text-align:left}#phase-label{padding:6px 8px;max-width:calc(100% - 158px)}#phase-label>small{font-size:10px}#top-info{gap:10px}.roster-grid4,.badge-grid4{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0}.roster4{display:flex;align-items:center;gap:9px;padding:8px;background:#123e38;border:1px solid #386e60;border-radius:5px;min-height:62px}.roster4 b{display:block;font-size:13px}.roster4 small{display:block;font-size:10px;color:#a6c8b7}.badge4{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:85px;padding:7px}.badge4>span{font-size:25px;color:#e6b76c;filter:drop-shadow(0 2px #102c28)}.badge4.earned{border-color:#efa754;background:#315d46}.badge4.locked{opacity:.6}.badge4 small{font-size:10px}.region-progress4{padding:9px;background:#164f42;color:#ffd49b;border-left:3px solid #ff9a46;margin-bottom:7px;font-size:13px}.regions4{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.regions4 button{min-height:35px}.leader4{text-align:center;padding:6px}.leader4 .trainer-avatar4{display:inline-block}.climate-hero4{padding:12px;background:#194e48;color:#ffd197;font-size:22px;text-align:center}.sidebar-library{width:100%;margin-top:3px}.about-logo{width:180px;height:60px;object-fit:contain}#ultimate3{display:flex;align-items:center;justify-content:center;gap:12px;width:min(680px,80vw);height:185px;padding:5px 20px;overflow:hidden;isolation:isolate}#ultimate3 canvas{width:240px;height:160px;image-rendering:pixelated;z-index:1;animation:portrait-in4 .3s ease-out}#ultimate3 .ultimate-label4{z-index:1;text-align:left}#ultimate3 strong{font-size:28px;margin:9px 0}#ultimate3 span{font-size:10px;letter-spacing:2px}#ultimate3 b{font-size:17px}.ultimate-rays4{position:absolute;inset:-120%;z-index:0;opacity:.35;background:repeating-conic-gradient(from 0deg,#65bca4 0deg 10deg,transparent 11deg 24deg);animation:ultimate-rays4 5s linear infinite}@keyframes ultimate-rays4{to{transform:rotate(90deg)}}@keyframes portrait-in4{from{transform:translateX(-55px) scale(.85);opacity:0}to{transform:translateX(0) scale(1);opacity:1}}.center-detail button{min-height:32px}.tool-pager4{display:flex;align-items:center;gap:4px}.tool-pager4 button{min-width:26px;min-height:30px}.menu-brand .menu-badges span{font-size:9px}.fit-page4{max-height:100%;overflow:hidden}.side-more4{min-height:28px;width:100%;font-size:10px;padding:3px}
@media(max-height:600px){.modal-card{height:95dvh;width:96vw}#modal-head{flex-basis:37px;min-height:37px;padding:5px 12px}#modal-head h2{font-size:14px}#modal-body{padding:7px 12px;gap:4px;font-size:11px}#page-stage4>p{font-size:11px;line-height:1.35;margin:5px 0}#page-nav4{flex-basis:30px;padding-top:3px;gap:15px}#page-nav4 button{height:27px;min-height:27px}.draft-card{min-height:76px}.draft-card small,.draft-card span{font-size:9px}.draft-card b{font-size:11px}.draft-card>canvas{width:42px;height:35px}.draft-footer button{min-height:30px;font-size:11px;padding:5px 9px}.draft-summary{padding:7px;font-size:12px}.trainer4{min-height:27px;height:29px;margin-bottom:3px;padding:2px 3px}.trainer4 svg{width:24px;height:24px}.trainer4 b{font-size:9px}.trainer4 small{font-size:8px}.trainer4 .life{height:2px}.synergy-icons4{margin:3px 0}.synergy-icons4 button{height:22px;width:23px;font-size:12px}.sidebar-library{min-height:24px;height:24px;font-size:9px;padding:3px}.side-more4{min-height:24px;font-size:9px}.side-title{font-size:8px;margin-bottom:4px}#sidebar{overflow:hidden;padding:5px}.team-strip4 button{width:28px;height:28px}.team-strip4 canvas{width:26px;height:22px}.team-strip4 small{font-size:6px}#top-info{gap:7px;font-size:10px}#top-info>.resource{display:none}.climate-pill4{font-size:9px}#phase-label>small{font-size:8px}#phase-label{padding:4px 6px;max-width:calc(100% - 148px)}.roster-grid4,.badge-grid4{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:4px 0}.roster4{min-height:53px;padding:5px}.roster4 svg{width:34px;height:34px}.roster4 b{font-size:11px}.badge4{min-height:67px}.badge4>span{font-size:20px}.badge4 b{font-size:11px}.region-progress4{font-size:11px;padding:6px}.climate-hero4{padding:8px;font-size:17px}.price-grid3 button{min-height:55px;padding:7px}.price-grid3 small{font-size:9px}.effect-panel{font-size:10px;margin:5px 0;padding:7px}.skill-detail{padding:6px 8px;margin:5px 0}.skill-detail p{font-size:10px!important}.center-detail button{min-height:29px;font-size:10px}.stats-grid small{font-size:9px}.stats-grid b{font-size:14px}.need-grid{gap:4px}.need-grid>div{font-size:9px}.leader4 h3{margin:6px}.leader4 svg{width:55px;height:55px}#ultimate3{height:142px;width:min(580px,80vw)}#ultimate3 canvas{width:185px;height:124px}#ultimate3 strong{font-size:22px}#ultimate3 b{font-size:14px}.menu-actions{gap:7px}.menu-actions>button{min-height:38px;padding:9px}.menu-small button{min-height:30px}.menu-footer{bottom:3%}.studio-lockup img{width:130px}.studio-lockup h3{font-size:17px}}
@media(max-width:740px){.game-logo{font-size:10px}.game-logo small{font-size:7px}#top-info{gap:5px}#top-info>span:first-child{display:none}.team-strip4{gap:2px}.team-strip4 button{width:24px;height:26px}.team-strip4 canvas{width:23px;height:22px}.topbar{gap:5px}.dock-tabs3 button{font-size:10px;padding:4px 6px}.big-card3{flex-basis:158px;min-width:158px}.actions3{width:128px}.actions3 button{font-size:9px}.dock-pager4{gap:2px}.dock-pager4 button{min-width:24px;padding:1px 6px}.dock-pager4 span{font-size:9px}}

#boot5{position:fixed;inset:0;z-index:1000;background:#0b3734;color:#ffd9a0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px}#boot5 b{font-size:30px;letter-spacing:2px}#boot5 span{font-size:14px}.loading5 #app{visibility:hidden}
.type-icon5{display:inline-block;width:22px;height:22px;object-fit:contain;vertical-align:middle;flex-shrink:0}.type-tag5{display:inline-flex;align-items:center;gap:4px;padding:2px 6px 2px 2px;border:1px solid var(--tc);border-radius:16px;background:#123f39;font-size:10px;line-height:1.2;white-space:nowrap;margin:1px}.type-tag5 img{width:20px;height:20px;object-fit:contain}.cardtype-rack5{position:absolute;left:8px;bottom:5px;display:flex!important;flex-direction:row!important;gap:3px!important;padding:0!important;pointer-events:none}.cardtype-rack5 img{width:19px;height:19px}.big-card3{position:relative;border-top:3px solid var(--type-a,#4e8d78);border-right:3px solid var(--type-b,#4e8d78);padding-bottom:21px}.big-card3 strong{padding-bottom:0}.synergy-icons4 button{width:29px;min-width:29px;height:29px;padding:2px;display:flex;align-items:center;justify-content:center;gap:1px}.synergy-icons4 .type-icon5{width:21px;height:21px}.synergy-icons4 small{font-size:8px}.synergy-grid5{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.synergy-grid5 button{display:flex;align-items:center;gap:8px;padding:8px;min-height:46px}.synergy-grid5 small{margin-left:auto;font-size:10px;color:#aacfaf}.matchups5{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.matchup5{display:inline-flex;align-items:center;gap:5px;font-size:11px}.type-guide5{display:flex;justify-content:center;gap:10px;align-items:center}.type-guide5>.type-icon5{width:46px;height:46px}.type-selector5{display:flex;flex-wrap:wrap;gap:6px}.type-selector5 button{padding:4px}.badge-art5 img{height:45px;width:46px;object-fit:contain}.badge-art5.locked img{filter:grayscale(1);opacity:.6}.badge-art5.earned img{filter:drop-shadow(0 0 4px #ffd78e66)}.badge-hero5{display:flex;align-items:center;justify-content:center;gap:36px;padding:10px}.badge-hero5>img{width:100px;height:110px;object-fit:contain}.badge-hero5>div{display:flex;flex-direction:column;align-items:center;gap:7px}.badge-hero5 h3{margin:0}.berry-grid5{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.berry-card5{display:flex;align-items:center;gap:9px;min-height:82px;padding:8px;text-align:left}.berry-img5{display:inline-block;width:46px;height:46px;object-fit:contain;vertical-align:middle;image-rendering:auto}.berry-card5>div{display:flex;flex-direction:column;gap:5px}.berry-card5 b{font-size:13px;color:#ffe2b4}.berry-card5 small,.berry-card5 span{font-size:10px;color:#b5d3b7}.berry-detail5{display:flex;align-items:center;justify-content:center;gap:24px}.berry-detail5 .berry-img5,.berry-hero5{width:82px;height:82px}.berry-dock5{flex:0 0 70px;padding:5px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px}.berry-dock5 .berry-img5{width:31px;height:31px}.type-tag5 img,.badge-art5 img,.berry-card5 img{pointer-events:none}.draft-card .type-tag5{padding:0;border:0;background:transparent;font-size:8px}.draft-card .type-tag5 img{width:17px;height:17px}.draft-card .type-tag5>span{display:none}#sidebar .sidebar-library{min-height:23px;height:23px;font-size:9px;padding:3px}.type-selector5{overflow:hidden}.team-strip4 button{border-top-color:#9ab98d}.tool-strip{display:flex;align-items:center}
@media(max-height:600px){.big-card3{padding-bottom:19px}.cardtype-rack5{bottom:3px;left:7px}.cardtype-rack5 img{width:17px;height:17px}.berry-grid5,.synergy-grid5{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.berry-card5{min-height:66px;padding:5px;gap:7px}.berry-card5 .berry-img5{width:38px;height:38px}.berry-card5>div{gap:3px}.berry-card5 b{font-size:11px}.berry-card5 small,.berry-card5 span{font-size:9px}.badge-art5 img{height:34px;width:38px}.badge-art5{min-height:72px}.badge-hero5{padding:4px;gap:24px}.badge-hero5>img{height:76px;width:70px}.badge-hero5 h3{font-size:14px}.type-tag5{font-size:9px;gap:3px;padding:1px 4px 1px 1px}.type-tag5 img{width:18px;height:18px}.matchup5{font-size:10px;gap:3px}.type-icon5{width:20px;height:20px}.synergy-icons4 button{height:24px;min-width:24px;width:24px;padding:1px}.synergy-icons4 .type-icon5{height:18px;width:18px}.synergy-icons4 small{font-size:7px}.synergy-grid5 button{min-height:39px;padding:5px;font-size:11px}.berry-detail5 .berry-img5{width:65px;height:65px}.berry-dock5{flex-basis:48px;font-size:9px;padding:3px}.berry-dock5 .berry-img5{width:26px;height:26px}.build-ledger3{flex-basis:61px!important;font-size:9px}.map-control-grid{width:85px;gap:4px}.map-control-grid button{padding:3px;min-height:29px}.category-strip button{min-width:0;padding:4px 6px;font-size:9px}.category-strip button svg{width:16px;height:16px}.category-strip span{font-size:8px}.tool-strip .map-tool{min-width:43px;padding:4px}.tool-strip small{font-size:8px}.type-guide5>.type-icon5{width:37px;height:37px}}
@media(max-width:740px){.big-card3{min-width:148px;flex-basis:148px}.big-card3>canvas{width:44px;flex-basis:44px}.big-card3 b{font-size:11px}.big-card3 strong{font-size:10px}.actions3{width:120px}.actions3 button{font-size:9px}.adventure-dock3{min-width:0}.dock-tabs3{gap:3px}.dock-tabs3 button{font-size:9px;padding:3px 5px}#top-info{gap:4px}.game-logo{max-width:100px}.category-strip button>span{display:none}.berry-dock5{flex-basis:42px}.build-ledger3{flex-basis:46px!important}.map-control-grid{width:76px}.type-tag5 span{font-size:9px}}

:root{--ink:#f0eddb;--panel:#0c2822;--panel2:#153b30;--gold:#d8b475;--muted:#b9c8b5;--accent:#90b99b}body,button,input,select{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;letter-spacing:.01em}body{color:var(--ink);background:#061b17}button{color:var(--ink);background:linear-gradient(160deg,#214a3b,#102e26);border-color:#6d7850;line-height:1.2}button.primary{background:linear-gradient(#b47e3c,#805622);border-color:#e5bd78;color:#fff8e6}button:hover{filter:brightness(1.12)}button:focus-visible{outline:2px solid #f3cf81;outline-offset:2px}small{color:#cad4bf}h1,h2,h3,.menu-brand{font-family:Georgia,'Times New Roman',serif}#menu{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.8fr);grid-template-rows:minmax(0,1fr) 28px;gap:20px;padding:clamp(20px,5vh,70px) clamp(24px,6vw,90px) 12px;align-items:center;height:100dvh;box-sizing:border-box}#menu.hidden,#game.hidden{display:none!important}.menu-brand,.menu-actions,.menu-footer{position:relative!important;inset:auto!important;transform:none!important;width:auto!important;max-width:100%!important;z-index:2}.menu-brand{align-self:center;text-align:left}.menu-brand h1{font-size:clamp(32px,5vw,70px);line-height:1.02;margin:10px 0}.menu-brand p{font-family:system-ui,sans-serif;font-size:clamp(12px,1.5vw,17px);max-width:430px;line-height:1.5}.menu-actions{display:grid!important;gap:9px;align-self:center}.menu-actions>button{min-height:48px;font-size:15px;padding:10px 15px}.menu-actions .menu-small{display:grid;grid-template-columns:1fr 1fr;gap:7px}.menu-footer{grid-column:1/-1;display:flex;justify-content:space-between;font:11px system-ui}.menu-shade{background:linear-gradient(90deg,#061c17ec,#09261ac2,#061a17e6)!important}#game{height:100dvh;display:grid!important;grid-template-rows:48px minmax(0,1fr) 158px;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);box-sizing:border-box;overflow:hidden}.topbar{position:relative!important;inset:auto!important;height:auto!important;min-height:0;background:#0a251f;border-bottom:1px solid #b18f54;gap:10px;padding:5px 12px;box-sizing:border-box}.topbar button{min-height:32px;font-size:13px}#level-label{font-size:12px}#top-info{gap:12px;font-size:13px;white-space:nowrap}.play-layout{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:160px minmax(0,1fr);min-height:0;height:auto!important;gap:6px;padding:6px;box-sizing:border-box}#sidebar{width:auto!important;min-width:0;padding:7px;overflow:hidden;background:#0e2d25;border:1px solid #68774c;border-radius:9px}.world-wrap{position:relative;min-height:0;min-width:0;height:auto!important;overflow:hidden;border:1px solid #60794c;border-radius:9px}#world{width:100%;height:100%;touch-action:none;user-select:none}#dock{position:relative!important;inset:auto!important;height:auto!important;min-height:0;max-height:none!important;overflow:hidden;padding:7px;background:#0a251f;border-top:2px solid #9d8554;box-sizing:border-box;gap:8px}#phase-label{font-size:12px;max-width:calc(100% - 100px)}#world-tip{font-size:11px;background:#09271de8;padding:4px 7px;max-width:calc(100% - 25px);white-space:normal}.team-grid6{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.team-grid6 button{position:relative;min-width:0;min-height:43px;padding:0;touch-action:none;display:grid;justify-items:center}.team-grid6 canvas{width:44px;height:33px;image-rendering:pixelated;pointer-events:none}.team-grid6 small{font-size:10px;color:#f1cb72;line-height:10px;pointer-events:none}.team-label6{font-size:10px;color:#d2c495;margin:7px 0 4px}.sidebar-library{font-size:12px!important;min-height:30px;margin:4px 0!important;padding:5px!important;width:100%}.synergy-icons4{margin:5px 0;gap:5px}.synergy-icons4 button{height:28px;min-width:30px;padding:2px}.synergy-icons4 img{width:22px;height:22px}.trainer4{padding:4px!important;min-height:38px;margin:0!important}.trainer4 b{font-size:12px}.trainer4 small{font-size:10px}.big-card3{font-size:12px;min-height:88px;padding:6px;touch-action:none}.big-card3 b{font-size:13px}.big-card3 small,.big-card3 span{font-size:11px}.big-card3 strong{font-size:12px}.big-card3 canvas{width:66px;height:50px}.dock-heading3{min-height:28px;margin-bottom:5px}.dock-heading3>span{font-size:11px}.dock-tabs3 button{min-height:29px;font-size:12px;padding:5px 10px}.actions3{gap:5px}.actions3 button{font-size:12px;min-height:32px;padding:5px}.modal-card{background:#0e2b24;color:var(--ink);border:2px solid #a28b56}.modal-card h2{font-size:20px}.modal-card p{font-size:14px;line-height:1.45}.modal-card button{font-size:13px;min-height:36px}#modal-body{color:var(--ink)}.topbar,#dock,.modal-head{background-image:radial-gradient(ellipse at 50% 100%,#d1ba6610 0 17%,transparent 18%),radial-gradient(ellipse at 50% 0,#d1ba6610 0 17%,transparent 18%);background-size:32px 22px}body.menu6 #rotate{display:none!important}#evolution6{position:fixed;inset:0;z-index:200;background:#031c18f5;display:grid;place-items:center;padding:16px;backdrop-filter:blur(6px)}#evolution6.hidden{display:none}.evo-card6{width:min(550px,90vw);text-align:center;color:#f9e6b9}.evo-card6 h2{font-size:clamp(24px,5vh,38px);margin:8px}.evo-kicker6{font-size:12px;letter-spacing:.2em}.evo-stage6{position:relative;height:min(200px,43vh);background:repeating-radial-gradient(circle,#acdabb20 0 2px,transparent 3px 27px);overflow:hidden;border-radius:50%}.evo-stage6 canvas{position:absolute;left:50%;top:50%;width:240px;height:180px;image-rendering:pixelated;transform:translate(-50%,-50%)}#evo-before6{animation:evoOut6 3.6s both}#evo-after6{animation:evoIn6 3.6s both}.evo-card6>b{display:block;margin:10px;font-size:17px}.evo-card6 button{min-height:40px;padding:8px 30px}@keyframes evoOut6{0%,25%{opacity:1;filter:brightness(1)}45%{opacity:1;filter:brightness(6)}60%,100%{opacity:0;filter:brightness(8)}}@keyframes evoIn6{0%,38%{opacity:0;filter:brightness(8);transform:translate(-50%,-50%) scale(.5)}60%{opacity:1;filter:brightness(5);transform:translate(-50%,-50%) scale(1.1)}85%,100%{opacity:1;filter:brightness(1);transform:translate(-50%,-50%) scale(1)}}
@media(max-height:600px) and (orientation:landscape){#game{grid-template-rows:40px minmax(0,1fr) 132px}.topbar{padding:3px 7px;gap:6px}.topbar button{min-height:30px;font-size:12px}#level-label{font-size:10px;max-width:150px}#top-info{gap:8px;font-size:12px}#top-info .resource{display:none}.play-layout{grid-template-columns:126px minmax(0,1fr);gap:4px;padding:4px}#sidebar{padding:4px}.team-grid6{gap:3px}.team-grid6 canvas{width:36px;height:29px}.team-grid6 button{min-height:39px}.team-label6{margin:4px 0 3px}.synergy-icons4{margin:3px 0}.synergy-icons4 button{height:24px}.sidebar-library{min-height:27px;font-size:11px!important;margin:2px 0!important}.trainer4 b{font-size:11px}.trainer4 small{font-size:9px}#dock{padding:4px;gap:5px}.big-card3{min-height:82px;padding:4px}.big-card3 b{font-size:12px}.big-card3 small,.big-card3 span{font-size:10px}.big-card3 canvas{width:58px;height:45px}.dock-heading3{min-height:27px;margin-bottom:3px}.dock-heading3>span{display:none}.actions3 button{font-size:11px;min-height:30px}.modal-card p{font-size:12px;line-height:1.35}.modal-card button{font-size:12px}.menu-brand h1{font-size:clamp(28px,5vw,48px)}.menu-actions>button{min-height:38px;font-size:14px;padding:7px}.menu-actions{gap:6px}#menu{gap:16px;padding:14px 5vw 6px;grid-template-rows:minmax(0,1fr) 20px}.menu-brand p{font-size:12px;margin:8px 0}.menu-footer{font-size:9px}}
@media(orientation:portrait){#menu{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) 26px;gap:12px;padding:25px 24px 10px}.menu-brand{text-align:center;align-self:end}.menu-brand h1{font-size:40px}.menu-brand p{margin:8px auto}.menu-actions{width:100%!important;max-width:380px!important;justify-self:center}.menu-footer{grid-column:1;font-size:9px}.menu-brand .studio-brand3{justify-content:center}}@media(prefers-reduced-motion:reduce){#evo-before6,#evo-after6{animation-duration:.1ms}#evo-before6{opacity:0}#evo-after6{opacity:1}}
.big-card3{padding-bottom:20px}.adventure-dock3{gap:3px}.game-logo{font-family:system-ui,sans-serif}.subtitle,.eyebrow,.menu-badges span,.menu-footer button,#top-info,#phase-label{font-family:system-ui,sans-serif}.menu-brand h1{letter-spacing:-1px}.menu-small button{font-size:12px}.menu-brand .subtitle{letter-spacing:2px;font-size:11px}#modal-head{background:#0b251f}
@media(max-height:370px) and (orientation:landscape){#sidebar .synergy-icons4{display:none}#sidebar .trainer4{min-height:27px;padding:1px!important}#sidebar .trainer4 svg{width:23px;height:23px}#sidebar .trainer4 small{display:none}.team-grid6 button{min-height:35px}.team-grid6 canvas{width:34px;height:25px}.team-label6{font-size:9px;margin:3px 0 2px}.sidebar-library{min-height:25px;padding:3px!important}.menu-brand p{margin:5px 0}.menu-brand h1{margin:6px 0}.menu-badges{gap:4px}.menu-badges span{font-size:8px;padding:3px}.menu-small button{min-height:30px}.menu-footer{gap:10px}.menu-footer button{min-height:24px;padding:2px 6px}}

input:not([type=radio]):not([type=checkbox]):not([type=range]),select,textarea{background:#0a241d!important;color:#fff4da!important;border:1px solid #9aab7b!important;caret-color:#ffcc7c;-webkit-text-fill-color:#fff4da;box-shadow:none;opacity:1}input::placeholder{color:#aebfaf!important;opacity:1}input:focus{outline:2px solid #d4b16b;outline-offset:2px}input:-webkit-autofill{-webkit-text-fill-color:#fff4da!important;-webkit-box-shadow:0 0 0 1000px #0a241d inset!important}.trainer-form7{display:grid;grid-template-columns:90px minmax(0,1fr);gap:20px;align-items:center;height:100%;max-width:590px;width:100%;margin:auto}.identity-preview7{text-align:center}.identity-fields7{display:grid;gap:10px}.identity-fields7>label{font-size:14px;font-weight:700}.identity-fields7>input{width:100%;height:45px;font-size:18px}.identity-fields7 fieldset{margin:0;padding:8px 10px;border:1px solid #647d57;border-radius:6px;display:flex;gap:18px}.identity-fields7 legend{font-size:12px;color:#d4c8a5}.identity-fields7 fieldset label{display:flex;align-items:center;gap:5px;font-size:14px}.identity-fields7 input[type=radio]{accent-color:#dcad60;width:18px;height:18px;flex-shrink:0}.pet-choice7{display:flex;flex-direction:column;gap:8px;height:100%;justify-content:center}.pet-choice7 p{margin:0;text-align:center}.pet-grid7{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.pet-grid7>button{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}.pet-grid7 canvas{width:85px;height:64px;image-rendering:pixelated}.pet-grid7 img{width:20px;height:20px}.pet-grid7 b{font-size:14px}#dock{display:flex;flex-direction:column;gap:5px;padding:6px 8px}#game{grid-template-rows:48px minmax(0,1fr) 194px}.league-strip7{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;flex:0 0 35px;min-height:0}.league-person7{min-width:0;position:relative;display:flex;align-items:center;gap:7px;text-align:left;padding:3px 6px;min-height:0;background:#102f26;border:1px solid #466543;overflow:hidden}.league-person7>span{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:5px;flex:1}.league-person7 b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.league-person7 small{white-space:nowrap;font-size:10px;color:#cbd5ba}.league-person7 i{position:absolute;left:2px;right:2px;bottom:0;height:2px;background:linear-gradient(90deg,#8fca94 var(--life),#293d30 var(--life))}.league-person7.mine{border-color:#e5bf75}.league-person7.dead{opacity:.45}.market-layout7{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 148px;gap:8px}.market-content7{display:flex;flex-direction:column;min-width:0;min-height:0;gap:4px}.market-heading7{height:29px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:6px}.market-heading7>small{font-size:11px;color:#bfcbb0}.market-cards7{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:6px;overflow:hidden}.market-card7{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 3px;border-top:3px solid var(--type-a,#5f936e);border-right:2px solid var(--type-b,#5f936e);gap:2px;overflow:hidden;touch-action:none}.market-card7 canvas{width:60px;height:45px;image-rendering:pixelated;pointer-events:none}.market-card7 b{font-size:14px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.market-card7 strong{font-size:12px;color:#f3d395;white-space:nowrap}.market-card7.sold{opacity:.5}.market-stat7{font-size:11px;color:#c9d6bd;white-space:nowrap}.market-art7{display:flex;align-items:center;position:relative;width:100%;justify-content:center}.market-art7>span{display:flex;flex-direction:column;position:absolute;right:0;gap:2px}.market-art7 img{width:17px;height:17px;object-fit:contain}.market-actions7{display:grid;grid-template-columns:1fr 1fr;gap:5px;min-height:0}.market-actions7 button{font-size:12px;padding:4px;min-height:0}.market-actions7 .primary{grid-column:1/-1;min-height:35px}.team7{grid-template-rows:repeat(2,minmax(0,1fr));gap:4px}.team7 .market-card7{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:0 4px;text-align:left;padding:2px 4px}.team7 canvas{width:40px;height:32px;grid-row:1/4}.team7 b{font-size:11px}.team7 small,.team7 strong{font-size:10px;white-space:nowrap;overflow:hidden}.synergy-short7{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;font-size:11px;min-height:28px;padding:3px;margin-top:5px}.synergy-short7 img{width:20px;height:20px}.team-grid6{margin-bottom:4px}
@media(max-height:600px) and (orientation:landscape){#game{grid-template-rows:40px minmax(0,1fr) 166px}.league-strip7{flex-basis:27px;gap:3px}.league-person7{gap:3px;padding:1px 3px}.league-person7 svg{width:20px;height:20px}.league-person7 b{font-size:10px}.league-person7 small{font-size:9px}.market-layout7{grid-template-columns:minmax(0,1fr) 106px;gap:5px}.market-heading7{height:26px}.market-heading7>small{display:none}.market-heading7 .dock-tabs3 button{min-height:25px;font-size:11px;padding:4px 8px}.market-content7{gap:3px}.market-cards7{gap:4px}.market-card7{padding:2px;gap:1px}.market-card7 b{font-size:12px}.market-card7 strong{font-size:11px}.market-card7 canvas{width:48px;height:36px}.market-stat7{font-size:10px;letter-spacing:-.3px}.market-art7 img{width:14px;height:14px}.market-actions7 button{font-size:10px;padding:2px}.market-actions7 .primary{font-size:11px;min-height:30px}#dock{padding:4px;gap:4px}.play-layout{grid-template-columns:120px minmax(0,1fr)}.team7 .market-card7{display:flex;gap:0;text-align:center}.team7 canvas{width:28px;height:21px}.team7 b{font-size:10px;line-height:11px}.team7 small,.team7 strong{font-size:9px;line-height:10px}.trainer-form7{grid-template-columns:68px minmax(0,1fr);gap:12px}.identity-fields7{gap:6px}.identity-fields7>input{height:38px;font-size:17px}.identity-fields7 fieldset{padding:5px 8px}.identity-fields7 fieldset label{font-size:12px}.identity-fields7>.primary{min-height:34px}.pet-grid7 canvas{width:64px;height:48px}}
@media(max-height:350px) and (orientation:landscape){#game{grid-template-rows:36px minmax(0,1fr) 156px}.league-person7 svg{display:none}.league-person7>span{gap:2px}.team-grid6 button{min-height:30px}.team-grid6 canvas{height:22px}.synergy-short7{display:none}.sidebar-library{min-height:24px}.market-card7 canvas{width:42px;height:31px}.market-card7 b{font-size:11px}.market-stat7{font-size:9px}.market-card7 strong{font-size:10px}}
#game.sim4{grid-template-rows:48px minmax(0,1fr) 158px}#game.sim4 #dock{flex-direction:row}#game.sim4 .play-layout{grid-template-columns:160px minmax(0,1fr)}@media(max-height:600px) and (orientation:landscape){#game.sim4{grid-template-rows:40px minmax(0,1fr) 132px}#game.sim4 .play-layout{grid-template-columns:126px minmax(0,1fr)}}
/* 7.1 overlay sidebar; no arena width is reserved for it. */
#game:not(.sim4){grid-template-rows:48px minmax(0,1fr) 148px}#game:not(.sim4) .play-layout{display:block!important;padding:5px!important}#game:not(.sim4) .world-wrap{width:100%;height:100%!important}#game:not(.sim4) #sidebar{position:absolute;left:10px;top:10px;bottom:10px;width:248px!important;max-width:44vw;z-index:18;display:flex;flex-direction:column;gap:4px;background:#09261dee;box-shadow:3px 4px 16px #00170b99;border:1px solid #a28d56;padding:5px;backdrop-filter:blur(4px)}#game:not(.sim4) #sidebar.minimized8{bottom:auto;width:148px!important;height:32px;max-width:60vw;padding:3px}.sidebar-toggle8{flex:0 0 24px;min-height:24px;padding:2px 6px;display:flex;align-items:center;justify-content:space-between;width:100%;font-size:12px}.sidebar-toggle8>span{font-size:17px}.sidebar-body8{flex:1;min-height:0;display:grid;grid-template-rows:minmax(42px,1fr) 25px 12px minmax(26px,.6fr) 12px minmax(44px,1.05fr);gap:3px}.participants8{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:3px;min-height:0}.participant8{display:flex;align-items:center;gap:4px;min-width:0;min-height:0;padding:1px 3px;overflow:hidden}.participant8.mine{border-color:#e5bf75}.participant8.dead{opacity:.45}.participant8 b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.participant8 small{font-size:9px;white-space:nowrap}.participant8 svg{width:19px;height:19px;flex-shrink:0}.atlas8{min-height:0;padding:2px;font-size:11px}.roster-label8{font-size:9px;color:#d6c798;white-space:nowrap;letter-spacing:.02em;line-height:12px}.field-cells8,.bench-cells8{display:grid;gap:3px;min-height:0}.field-cells8{grid-template-columns:repeat(6,minmax(0,1fr))}.bench-cells8{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.roster-cell8{position:relative;min-width:0;min-height:0;overflow:hidden;padding:0;display:flex;align-items:center;justify-content:center;touch-action:none;border:1px solid #739075;background:linear-gradient(135deg,#315c4266,#10291f);border-radius:3px}.roster-cell8.empty8{background:#0b201a;color:#738d70;border-style:dashed;font-size:15px}.roster-cell8 canvas{width:100%;height:100%;max-width:46px;max-height:35px;object-fit:contain;image-rendering:pixelated;pointer-events:none}.roster-cell8 small{position:absolute;bottom:0;left:0;right:0;background:#092218bb;font-size:8px;line-height:9px;color:#efd18b;pointer-events:none;text-align:center}.roster-cell8[data-field8]{border-color:#d8bf79}.roster-cell8.drop-target8{outline:2px solid #fff0ae;outline-offset:-2px;background:#4e7043}#game:not(.sim4) #dock{display:block}#game:not(.sim4) .market-layout7{height:100%}#game:not(.sim4) .market-heading7{height:27px}.market-actions7 .primary{min-height:32px}
@media(max-height:600px) and (orientation:landscape){#game:not(.sim4){grid-template-rows:40px minmax(0,1fr) 128px}#game:not(.sim4) #sidebar{left:8px;top:8px;bottom:8px;width:218px!important;padding:4px;gap:2px}.sidebar-toggle8{flex-basis:21px;min-height:21px;font-size:11px}.sidebar-body8{grid-template-rows:minmax(39px,.95fr) 21px 10px minmax(24px,.6fr) 10px minmax(40px,1fr);gap:2px}.participant8{gap:2px;padding:0 2px}.participant8 b{font-size:10px}.participant8 small{font-size:8px}.participant8 svg{width:16px;height:16px}.participants8{gap:2px}.atlas8{font-size:10px}.roster-label8{font-size:8px;line-height:10px}.roster-cell8 small{font-size:7px;line-height:8px}.roster-cell8 canvas{max-height:30px}.market-card7 canvas{width:44px;height:33px}.market-heading7 .dock-tabs3 button{min-height:24px}#game:not(.sim4) #sidebar.minimized8{height:27px;width:138px!important}}
@media(max-height:350px) and (orientation:landscape){#game:not(.sim4){grid-template-rows:36px minmax(0,1fr) 118px}#game:not(.sim4) #sidebar{top:5px;bottom:5px;width:210px!important}.participant8 svg{display:none}.sidebar-body8{grid-template-rows:minmax(34px,.9fr) 19px 9px minmax(21px,.5fr) 9px minmax(36px,1fr)}.sidebar-toggle8{flex-basis:19px;min-height:19px}.market-card7 canvas{width:38px;height:28px}.market-stat7{font-size:9px}}
/* Pokémon Rimba 8.0 — cinematic game HUD */
:root{--ui-pine9:#0b2826;--ui-gold9:#d8b971;--ui-cream9:#f4ebce;--ui-line9:#bfa66c80;--ui-shadow9:#031715dd;--ui-text9:#d3e2d0}
.glyph9{width:23px;height:23px;flex-shrink:0;pointer-events:none;vertical-align:middle}.rimba-ui9 button{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:.015em}.rimba-ui9 button:hover{filter:brightness(1.14)}.rimba-ui9 button:active{transform:scale(.96)}.rimba-ui9 button:focus-visible{outline:2px solid #fff2b2;outline-offset:3px}.icon9{display:grid;place-items:center;width:42px;height:42px;min-height:0;padding:9px;border:1px solid var(--ui-line9);border-radius:50%;background:linear-gradient(145deg,#294d43ed,#0b2724eb);color:var(--ui-cream9);box-shadow:inset 0 0 0 3px #081f2044,0 3px 10px #03171566}.icon9 .glyph9{width:100%;height:100%}
/* Title screen */
#menu{padding:6vh 7vw 3vh;gap:4vw;grid-template-columns:minmax(0,1.2fr) minmax(300px,.85fr);grid-template-rows:minmax(0,1fr) 26px;background:#071e1b}#panorama{z-index:0;filter:saturate(.8) brightness(.85);opacity:.9}.menu-shade{background:linear-gradient(90deg,#061c19ef,#0a2b2377 62%,#061c19b5),linear-gradient(0deg,#041a18,transparent 30%)!important}.menu-brand{padding:20px 0;text-shadow:0 3px 20px #00150d}.menu-brand .eyebrow{font-size:10px;letter-spacing:.23em;color:#e4cf98}.menu-brand h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(46px,7vw,96px);line-height:.96;letter-spacing:-.045em;margin:24px 0 20px;text-shadow:0 3px #031a13,0 10px 30px #0006}.menu-brand h1 em{color:#dfc58a}.menu-brand .subtitle{font:600 10px system-ui;letter-spacing:.22em;color:#cfdfbd}.menu-brand p{font-size:14px;color:#b7cbbb;margin:20px 0;line-height:1.5}.menu-badges{gap:8px}.menu-badges span{display:flex;align-items:center;gap:5px;background:#0d3327aa;border:1px solid #71876b66;border-radius:30px;padding:6px 10px;font:10px system-ui;color:#bcd3b4}.menu-badges .glyph9{width:14px;height:14px}.menu-actions{display:flex!important;flex-direction:column;gap:12px!important;width:100%!important;max-width:440px!important;justify-self:end;align-self:center}.quest9{position:relative;min-height:94px!important;display:flex;align-items:center;gap:16px;padding:17px 20px!important;background:linear-gradient(105deg,#193e32f5,#0b2925f2)!important;border:1px solid #ac996288!important;border-radius:3px 18px 3px 18px!important;box-shadow:inset 0 0 0 4px #09241c66,0 6px 24px #00191366;text-align:left;isolation:isolate}.quest9:before{content:'';position:absolute;top:0;left:0;width:3px;height:100%;background:#b5a264}.quest9.primary{background:linear-gradient(105deg,#b18c45ed,#66552cdd)!important;color:#fff4d5!important;border-color:#e5cc8c!important}.quest-icon9{display:grid;place-items:center;flex:0 0 40px;height:40px;transform:rotate(45deg);border:1px solid #b3a36b;background:#051e1755}.quest-icon9 .glyph9{transform:rotate(-45deg);width:25px;height:25px}.quest9>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.quest9 small{font-size:9px!important;letter-spacing:.18em;color:#c5cfad}.quest9 b{font:700 21px Georgia,serif!important;float:none!important;color:#f7efd3}.quest9 em{font:normal 11px system-ui;color:#bdcebb}.quest9.primary small,.quest9.primary em{color:#e8ddbd}.quest9>.glyph9{width:18px;color:#cdb77f}.menu-orbs9{display:flex;justify-content:center;gap:18px;margin-top:9px}.menu-orbs9 .icon9{width:39px;height:39px}.menu-footer{font:10px system-ui;letter-spacing:.1em;gap:15px;color:#92ae98}.menu-footer button{margin-left:auto;display:flex;align-items:center;gap:7px;border:0;background:transparent;font:11px system-ui;color:#c5d6bc}.menu-footer button .glyph9{width:17px;height:17px}
/* Arena fills the screen. Controls float above the map. */
#game.adventure9{display:block!important;height:100dvh!important;padding:0!important;background:#102b23}#game.adventure9>.topbar{display:none!important}#game.adventure9 .play-layout{position:absolute!important;inset:0!important;padding:0!important;display:block!important;width:100%;height:100%!important}#game.adventure9 .world-wrap{height:100%!important;width:100%;border:0;border-radius:0;background:#123429}#game.adventure9 #world{height:100%;width:100%;image-rendering:pixelated}#game.adventure9 #phase-label,#game.adventure9 #world-tip,#game.adventure9 #arena-nav3{display:none!important}#game.adventure9 .world-wrap:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 70px #041e17a6;background:linear-gradient(0deg,#061c22c4,transparent 20%,transparent 88%,#061e21a3)}.hud9{position:absolute;inset:0;z-index:19;pointer-events:none}.hud9 button,.hud9 nav,.hud9 section{pointer-events:auto}.hud-tools9{position:absolute;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));display:flex;gap:8px}.hud-tools9 .icon9{width:36px;height:36px;padding:8px;background:#123830c9;border-color:#7a936a66}.round-hud9{position:absolute;left:50%;top:max(12px,env(safe-area-inset-top));transform:translateX(-50%);width:min(450px,43vw);text-align:center;filter:drop-shadow(0 2px 5px #001c14)}.round-track9{display:flex;align-items:center;gap:8px;height:35px;font-size:10px;color:#dee6d0}.round-track9>span{white-space:nowrap;background:#09282199;border-radius:15px;padding:4px 7px}.round-track9>b{display:grid;place-items:center;background:#254f40de;border:1px solid #c3b77a;transform:rotate(45deg);min-width:34px;height:34px;font:700 21px Georgia;color:#ffedab;box-shadow:0 0 15px #b5cd7b33;/* number is unrotated below */transform:none;border-radius:10px 3px}.round-track9>i{height:5px;flex:1;border:1px solid #dcce7d77;background:linear-gradient(90deg,#e6c77d var(--progress),#14362e var(--progress));box-shadow:0 0 8px #cfca7455}.round-caption9{display:flex;flex-direction:column;align-items:center;gap:3px}.round-caption9>span{font-size:9px;letter-spacing:.22em;color:#d9dabb}.round-caption9>button{border:0;background:#061f1888;padding:2px 8px;border-radius:16px;font-size:10px;color:#b6d5b4;min-height:20px}.capacity9{position:absolute;left:50%;top:23%;transform:translateX(-50%);font:700 75px Georgia,serif;color:#d6e8b925;pointer-events:none;text-shadow:0 2px 1px #102c1922}.capacity9 small{font-size:55px;color:inherit}.quick-rail9{position:absolute;left:max(14px,env(safe-area-inset-left));top:90px;display:flex;flex-direction:column;gap:12px}.quick-rail9 .icon9{width:39px;height:39px;background:#0b2b27bd}.synergy-tray9{position:absolute;left:65px;top:87px;width:82px;display:flex;flex-direction:column;gap:9px}.synergy-grid9{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 5px}.synergy-grid9 button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:0;min-height:0;border:0;background:transparent;font-size:10px;text-shadow:0 2px 2px #001e16}.synergy-grid9 img{width:31px;height:31px;object-fit:contain;filter:drop-shadow(0 2px 3px #0008);border-radius:50%;background:#123d2da6;border:1px solid var(--type)}.synergy-grid9 b{color:#e1e8cb;font-size:10px}.active-team9{border-top:1px solid #a9c28d55;padding-top:6px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.active-team9 button{position:relative;min-width:0;min-height:34px;height:34px;padding:0;background:#0b2b2099;border:1px solid #acc48444;border-radius:4px}.active-team9 canvas{width:36px;height:27px;pointer-events:none;image-rendering:pixelated}.active-team9 small{position:absolute;bottom:0;left:0;right:0;font-size:8px;line-height:9px;color:#e8c97f}.synergy-tray9.compact9{width:35px}.synergy-tray9.compact9>button{padding:6px;background:#11392aaa;border:1px solid #8ba86b55}
/* Right scoreboard */
#game.adventure9 #sidebar{position:absolute!important;z-index:20;left:auto!important;right:max(12px,env(safe-area-inset-right))!important;top:78px!important;bottom:126px!important;width:158px!important;max-width:none!important;height:auto!important;padding:0!important;display:flex!important;flex-direction:column;gap:5px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important}.leader-handle9{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:24px;padding:2px 7px;background:#0a2c24c4;border:1px solid #b3ad7155;border-radius:20px;font-size:10px}.leader-handle9 .glyph9{width:16px;height:16px;color:#e0c485}.leader-handle9 span{flex:1;text-align:left}.leader-handle9 b{font-size:15px}.leader-list9{display:grid;grid-template-rows:repeat(6,minmax(0,1fr));flex:1;min-height:0;gap:5px}.leader9{display:flex;justify-content:flex-end;align-items:center;gap:8px;width:100%;min-height:0;padding:2px 0 2px 6px;border:0;background:linear-gradient(90deg,transparent,#0c3229a1);text-align:right;border-radius:0 25px 25px 0}.leader9>div{flex:1;min-width:0}.leader9 b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#e9eed6;text-shadow:0 2px 3px #042014}.leader9 i{display:block;height:4px;margin:3px 0;background:#103124;border:1px solid #143e2b;border-radius:5px;overflow:hidden}.leader9 em{display:block;height:100%;background:linear-gradient(90deg,#a9df7f,#6bba75)}.leader9 small{display:block;color:#c0e0a1;font-size:10px;line-height:11px}.leader9>span{display:block;border-radius:50%;border:2px solid #9aae73;box-shadow:0 0 0 2px #113b29;overflow:hidden;flex-shrink:0}.leader9 svg{display:block;width:34px;height:34px;border:0}.leader9.mine b{color:#f1ce75}.leader9.mine>span{border-color:#e1bd68}.leader9.out9{opacity:.4}
/* Bench and command orbs */
#game.adventure9 #dock{position:absolute!important;left:152px!important;right:184px!important;bottom:max(14px,env(safe-area-inset-bottom))!important;height:89px!important;z-index:21;display:flex!important;flex-direction:column;gap:4px;padding:0!important;background:transparent!important;border:0!important;overflow:visible!important}.bench-title9{display:flex;align-items:center;justify-content:space-between;color:#d5dfbd;font-size:9px;letter-spacing:.1em;text-shadow:0 2px 3px #062218}.bench-title9 small{font-size:8px;color:#b4c5a7}.bench-grid9{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px;flex:1;min-height:0;perspective:600px}.bench-grid9 .roster-cell8{border:1px solid #75956a8c;border-bottom:4px solid #1f4938;background:linear-gradient(155deg,#4e71558c,#224b37c9);border-radius:7px 7px 10px 10px;box-shadow:0 3px 8px #031d1599,inset 0 2px #acc28c33;overflow:visible}.bench-grid9 .roster-cell8.empty8{color:#9cb48c44;border-style:solid;font-size:18px}.bench-grid9 .roster-cell8.occupied8{border-color:#a3b77b;border-bottom-color:#355f3c}.bench-grid9 .roster-cell8 canvas{position:absolute;left:50%;top:50%;transform:translate(-50%,-56%);width:100%;height:100%;max-width:76px;max-height:70px;object-fit:contain;filter:drop-shadow(0 3px 3px #05241699)}.bench-grid9 .roster-cell8 small{bottom:2px;background:transparent;color:#f6d882;font-size:10px;text-shadow:0 1px #2b2414}.commander9{position:absolute;left:max(16px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:8px}.commander-avatar9{position:relative;width:60px;height:68px;min-height:0;padding:0;background:#102e27;border:2px solid #d0ba7c;border-radius:30px 30px 8px 8px;box-shadow:0 3px 15px #001a14aa;overflow:visible}.commander-avatar9 svg{border:0;border-radius:28px 28px 5px 5px;width:100%;height:100%}.commander-avatar9>b{position:absolute;right:-5px;bottom:-2px;display:grid;place-items:center;width:23px;height:23px;border:1px solid #d8b36a;border-radius:50%;background:#294e36;font:700 14px Georgia;color:#fff0ba}.level-orb9{width:65px;height:65px;border:2px solid #87afad;border-radius:50%;background:radial-gradient(circle at 35% 20%,#5a9394,#193f43);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:0;padding:3px;box-shadow:0 0 0 3px #163f3d99,0 3px 9px #001b16}.level-orb9>.glyph9{width:16px;height:16px;color:#d9eddd}.level-orb9>span{font-size:9px;color:#e1e8d1}.level-orb9>b{font-size:17px;color:#e9cf8a}.level-orb9 small{font-size:9px}.gold-hud9{position:absolute;right:max(18px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:14px;flex-direction:row-reverse}.gold-orb9{display:flex;flex-direction:column;align-items:center;justify-content:center;width:99px;height:99px;min-height:0;border:2px solid #f0d58e;border-radius:50%;background:radial-gradient(circle at 32% 25%,#edd48b,#bc8e3e 65%,#82622d);color:#4c3a1b;box-shadow:0 0 0 4px #c7a96544,inset 0 0 0 4px #fceab74d,0 5px 20px #001c1b99;gap:0;padding:8px}.gold-orb9 .glyph9{width:22px;height:22px;opacity:.75}.gold-orb9 b{font:700 31px Georgia}.gold-orb9 small{font-size:8px;letter-spacing:.09em;color:#554425}.gold-orb9.active{box-shadow:0 0 0 4px #fff1bf77,0 0 25px #d1c57677}.battle-go9{width:47px;height:47px;padding:13px;border:1px solid #e3ca81;background:linear-gradient(145deg,#7c8c4a,#2a513a);box-shadow:0 0 0 4px #153b2a80}.field-commands9{position:absolute;bottom:119px;right:28px;display:flex;gap:9px}.field-commands9 .icon9{width:33px;height:33px;padding:8px;background:#0a2d23c4}
/* Recruitment is a separate layer with a summon stage, not a web card row. */
.shop9{position:absolute;inset:0;z-index:29;isolation:isolate}.shop9.hidden{display:none!important}.shop-shade9{position:absolute;inset:0;width:100%;height:100%;border:0;background:#031d1c77;backdrop-filter:blur(3px);border-radius:0}.recruit-panel9{position:absolute;left:8%;right:12%;top:16%;height:58%;display:flex;flex-direction:column;border:1px solid #c0b17e;border-bottom:4px solid #6e8056;background:linear-gradient(180deg,#183831e8,#143a32f5 62%,#243c31f5);box-shadow:0 20px 70px #001810b3,inset 0 0 40px #466c4933;clip-path:polygon(2% 0,98% 0,100% 94%,99% 100%,1% 100%,0 94%);padding:0 16px;animation:recruit-in9 .25s ease-out}.recruit-panel9:before{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-radial-gradient(ellipse at 50% 100%,#b9cc7d08 0 2px,transparent 3px 35px);z-index:-1}.recruit-head9{display:flex;align-items:center;justify-content:space-between;flex:0 0 44px;color:#e6d49e;border-bottom:1px solid #bbbe7d33;padding:0 6px}.recruit-head9>span{font-size:11px;letter-spacing:.16em;display:flex;align-items:center;gap:9px}.recruit-head9>span>.glyph9{width:18px;height:18px}.recruit-head9>div{display:flex;align-items:center;gap:17px}.recruit-head9 b{font-size:13px}.recruit-head9 b .glyph9{width:17px;height:17px}.recruit-head9 .icon9{width:29px;height:29px;padding:7px}.recruit-stage9{flex:1;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:4px 7%;perspective:600px}.recruit-unit9{position:relative;min-width:0;min-height:0;display:flex;align-items:stretch}.recruit-buy9{position:relative;isolation:isolate;min-height:0;width:100%;padding:0 5px;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:3px;border:0;background:transparent!important;box-shadow:none;border-radius:0;overflow:hidden}.recruit-buy9:disabled{opacity:.7}.recruit-unit9.recruited9{opacity:.35}.summon-light9{position:absolute;top:0;bottom:62px;width:75%;background:linear-gradient(0deg,var(--aura),transparent 90%);opacity:.14;filter:blur(9px);z-index:-1;clip-path:polygon(35% 0,65% 0,100% 100%,0 100%)}.recruit-buy9:after{content:'';position:absolute;bottom:69px;width:80%;height:13px;border:1px solid var(--aura);border-radius:50%;background:#a5b77422;box-shadow:0 0 12px var(--aura);z-index:-1;opacity:.6}.recruit-buy9 canvas{flex:1;min-height:0;width:100%;height:auto;max-height:180px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 7px 4px #001b1a77)}.recruit-buy9>b{font:600 17px Georgia,serif;color:#eef2d2;text-shadow:0 2px #133420;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.recruit-cost9{font-size:17px;color:#ffdf90;display:flex;align-items:center;gap:3px}.recruit-cost9 .glyph9{width:18px;height:18px;fill:#baa46133}.recruit-types9{display:flex;align-items:center;gap:5px;min-height:23px}.recruit-types9 img{width:23px;height:23px;object-fit:contain;filter:drop-shadow(0 2px 2px #0007)}.recruit-buy9>small{font-size:10px;min-height:14px;color:#b9d1b3;line-height:14px;white-space:nowrap}.recruit-detail9{position:absolute;right:5px;top:8px;z-index:2;width:22px;height:22px;min-height:0;border:0;border-radius:50%;padding:3px;background:#0b302266;color:#bcd3b4}.recruit-detail9>.glyph9{width:16px;height:16px}.recruit-foot9{display:flex;align-items:center;justify-content:space-between;flex:0 0 63px;padding:3px 18px 7px;border-top:1px solid #bbbe7d33}.shop-lock9{border:0;display:flex;align-items:center;gap:7px;background:transparent;font-size:10px;color:#d8d6b6;padding:5px}.shop-lock9>.glyph9{width:29px;height:29px;padding:6px;box-sizing:content-box;border:1px solid #bca268;border-radius:50%;background:#665c37}.recruit-tip9{display:flex;flex-direction:column;align-items:center;gap:5px}.recruit-tip9 b{font-size:11px;color:#d9d4a3}.recruit-tip9 span{font-size:9px;color:#9fbea2}.reroll9{display:flex;flex-direction:column;align-items:center;justify-content:center;width:58px;height:58px;min-height:0;border:2px solid #d9c37d;border-radius:50%;background:radial-gradient(circle at 30% 20%,#e0c474,#9d7c36);color:#4c3e25;padding:6px;gap:2px;box-shadow:0 0 0 4px #c7b26e22}.reroll9>.glyph9{width:25px;height:25px}.reroll9 span{display:flex;gap:3px;align-items:center;font-size:13px}.reroll9 span>.glyph9{width:14px;height:14px}#game.adventure9.recruiting9 #sidebar{opacity:.18;pointer-events:none}#game.adventure9.recruiting9 .synergy-tray9{opacity:.3}.recruiting9 .gold-hud9,.recruiting9 #dock{z-index:30}.recruiting9 .battle-go9{visibility:hidden}@keyframes recruit-in9{from{transform:translateY(20px) scale(.97);opacity:0}to{transform:none;opacity:1}}
/* Shared game panels: inventory, atlas, save slots, profile and habitat controls. */
#modal{background:#031c1bd1;backdrop-filter:blur(6px);padding:12px;z-index:60}.modal-card{position:relative;background:radial-gradient(ellipse at 50% 0,#284b3b,#0d2924 70%);border:1px solid #b4a16a;border-top:3px solid #d7bd7c;border-bottom:3px solid #6c895a;border-radius:20px 4px 20px 4px;box-shadow:0 25px 90px #001510dd,inset 0 0 0 5px #09231c88;width:min(1000px,94vw);height:min(88dvh,760px)}.modal-card:before{content:'◆';position:absolute;top:-10px;left:50%;transform:translateX(-50%);font-size:14px;color:#e9d398;text-shadow:0 0 8px #d9cc7866;z-index:2}#modal-head{background:linear-gradient(90deg,#112e25,#294735,#112e25)!important;border-bottom:1px solid #bac28b44;min-height:52px;flex-basis:52px;display:flex;align-items:center;justify-content:space-between;padding:9px 17px}#modal-head h2{font:600 22px Georgia,serif;color:#ebddad;margin:0}#modal-head>button{width:32px;height:32px;min-height:0;padding:0;border:1px solid #bfac72;border-radius:50%;font-size:22px;line-height:1;background:#0c2925;color:#e9daba}#modal-body{padding:15px 18px;color:#d3dfc8;gap:9px}#modal-body p{font:13px/1.5 system-ui;color:#c4d4bf}#modal-body button{border-color:#7d9468;border-radius:7px 2px;background:linear-gradient(145deg,#264d3a,#123327);color:#e5e8ca;box-shadow:inset 0 1px #c1ce8d22;min-height:35px;font-size:12px}#modal-body button.primary{background:linear-gradient(130deg,#b69952,#685a31);border-color:#cbbb80;color:#fff2c7}#page-nav4{background:#08231d77;border-top:1px solid #8ea77644;gap:18px;flex-basis:35px;min-height:35px}#page-nav4.single-page9{display:none!important}#page-nav4 button{border-radius:50%!important;min-width:29px!important;width:29px;height:29px;min-height:0!important;padding:0!important;font-size:18px!important}#page-count4{font:600 11px system-ui;color:#cdb77c}.slot{background:linear-gradient(145deg,#274737,#102e26);border:1px solid #8d9f6a;border-radius:14px 3px;padding:16px;display:flex;flex-direction:column;gap:10px}.slot strong{font:600 18px Georgia;color:#ddcc95}.slot small{font:11px/1.5 system-ui;color:#b2c7ad}.chapter-grid>button,.draft-card,.codex-card,.badge4,.roster4,.knowledge-card{border-radius:8px 2px!important;border-color:#74966b!important;background:linear-gradient(140deg,#254c38,#12382a)!important}.draft-card.selected{border:2px solid #dec783!important;box-shadow:inset 0 0 18px #dec78322}.draft-summary{border:1px solid #c7b16e66;background:#314c30;color:#ecdc9e;border-radius:20px;padding:6px 15px;font-size:12px}.draft-footer{background:#112f23e6;border-top:1px solid #a0b77a55;padding:8px 0;gap:8px}.pokemon-detail-hero{background:radial-gradient(ellipse,#42644588,transparent);border:0;padding:8px}.pokemon-detail-hero canvas{filter:drop-shadow(0 5px 5px #00241588)}.stats-table,.need-grid{border-radius:8px;border-color:#668c62}.identity-fields7 fieldset{background:#193b2b77}.identity-fields7>input{border-radius:8px 2px}.identity-preview7 svg{border:2px solid #c5b47c;border-radius:35% 35% 10% 10%;box-shadow:0 0 0 6px #1c493099}.guide-steps9>p{padding:8px 12px;border-left:2px solid #b9b173;background:#24453088}.guide-steps9 b{color:#e0cb88}#toast{background:#173d2ff2;border:1px solid #bdba7e;border-radius:30px;box-shadow:0 5px 25px #001b1aaa;font:12px system-ui;padding:10px 23px;z-index:210}#banner{border:1px solid #d6c185;border-top:3px solid #e4d397;border-bottom:3px solid #738f59;background:linear-gradient(90deg,#0e2c25ed,#365138ed,#0e2c25ed);font:600 25px Georgia;color:#eaddab;border-radius:2px 18px}#banner small{font:12px/1.5 system-ui;color:#d3dfc4}
/* Simulation shares the same game instrument language. */
#game.sim4 .topbar{background:linear-gradient(#214535,#0c3027);border-color:#8e9e69}.sim4 .game-logo{font-family:Georgia,serif;color:#e5d29a}.sim4 #dock{background:linear-gradient(0deg,#0c2b23,#244531);border-top:2px solid #8ba568}.sim4 #sidebar{background:#0c2b23ec;border:1px solid #8da669;border-radius:12px 2px}.sim4 .tool{border-radius:8px 3px;background:linear-gradient(145deg,#36583c,#193c2d);border-color:#789765}.sim4 .tool.selected{border-color:#e6ce8e;box-shadow:inset 0 0 12px #d8ce7933}.sim4 .category-strip button{border-radius:30px}.sim4 .pet-compact4{background:radial-gradient(ellipse,#547a4955,transparent);border:0}.sim4 .pet-compact4 canvas{filter:drop-shadow(0 4px #00281966)}
@media(max-height:600px) and (orientation:landscape){
 #menu{padding:12px 6vw 8px;grid-template-columns:minmax(0,1fr) minmax(270px,.9fr);gap:5vw;grid-template-rows:minmax(0,1fr) 22px}.menu-brand{padding:0}.menu-brand h1{font-size:clamp(36px,7vw,61px);margin:14px 0}.menu-brand .eyebrow{font-size:8px;letter-spacing:.15em}.menu-brand .subtitle{font-size:8px;letter-spacing:.15em}.menu-brand p{font-size:11px;margin:11px 0}.menu-badges span{font-size:8px;padding:4px 7px}.menu-actions{gap:7px!important}.quest9{min-height:62px!important;padding:9px 12px!important;gap:11px;border-radius:2px 13px!important}.quest-icon9{flex-basis:30px;height:30px}.quest-icon9>.glyph9{width:20px;height:20px}.quest9 small{font-size:7px!important;letter-spacing:.12em}.quest9 b{font-size:17px!important}.quest9 em{font-size:9px}.quest9>span:nth-child(2){gap:3px}.menu-orbs9{gap:14px;margin-top:5px}.menu-orbs9 .icon9{width:30px;height:30px;padding:7px}.menu-footer{font-size:8px}.menu-footer button{font-size:9px}.round-hud9{width:40vw;top:max(6px,env(safe-area-inset-top))}.round-track9{height:29px;gap:5px;font-size:8px}.round-track9>b{height:28px;min-width:28px;font-size:18px}.round-track9>span{padding:3px 5px}.round-caption9>span{font-size:7px}.round-caption9>button{font-size:8px;min-height:16px;padding:1px 6px}.hud-tools9{top:max(7px,env(safe-area-inset-top));right:max(9px,env(safe-area-inset-right));gap:5px}.hud-tools9 .icon9{width:27px;height:27px;padding:6px}.quick-rail9{left:max(8px,env(safe-area-inset-left));top:64px;gap:9px}.quick-rail9 .icon9{width:29px;height:29px;padding:7px}.synergy-tray9{left:44px;top:65px;width:68px;gap:5px}.synergy-grid9{gap:4px}.synergy-grid9 img{width:24px;height:24px}.synergy-grid9 b{font-size:8px}.active-team9 button{min-height:25px;height:25px}.active-team9 canvas{width:29px;height:22px}.active-team9 small{font-size:7px;line-height:7px}.capacity9{font-size:55px;top:20%}.capacity9 small{font-size:38px}#game.adventure9 #sidebar{right:max(8px,env(safe-area-inset-right))!important;top:55px!important;bottom:89px!important;width:113px!important;gap:3px}.leader-handle9{font-size:8px;min-height:19px;height:19px;padding:1px 5px}.leader-handle9 .glyph9{width:12px;height:12px}.leader-list9{gap:3px}.leader9{gap:4px;padding:1px 0 1px 4px}.leader9 svg{width:25px;height:25px}.leader9 b{font-size:10px}.leader9 small{font-size:8px;line-height:8px}.leader9 i{height:3px;margin:2px 0}.leader9>span{border-width:1px}#game.adventure9 #dock{left:106px!important;right:139px!important;bottom:max(9px,env(safe-area-inset-bottom))!important;height:64px!important;gap:3px}.bench-title9{font-size:7px;letter-spacing:.04em}.bench-title9 small{display:none}.bench-grid9{gap:3px}.bench-grid9 .roster-cell8{border-radius:4px 4px 7px 7px;border-bottom-width:3px}.bench-grid9 .roster-cell8 small{font-size:8px}.commander9{left:max(9px,env(safe-area-inset-left));bottom:max(9px,env(safe-area-inset-bottom));gap:5px}.commander-avatar9{width:39px;height:45px;border-width:1px}.commander-avatar9>b{width:17px;height:17px;font-size:11px}.level-orb9{width:45px;height:45px;border-width:1px}.level-orb9>.glyph9{width:12px;height:12px}.level-orb9>span{font-size:7px}.level-orb9>b{font-size:13px}.level-orb9 small{font-size:7px}.gold-hud9{right:max(10px,env(safe-area-inset-right));bottom:max(9px,env(safe-area-inset-bottom));gap:8px}.gold-orb9{width:69px;height:69px;border-width:1px;padding:5px}.gold-orb9>.glyph9{width:18px;height:18px}.gold-orb9>b{font-size:24px}.gold-orb9 small{font-size:6px;letter-spacing:.03em}.battle-go9{width:35px;height:35px;padding:10px}.field-commands9{bottom:87px;right:15px;gap:6px}.field-commands9 .icon9{width:25px;height:25px;padding:6px}.recruit-panel9{left:6%;right:9%;top:14%;height:62%;padding:0 10px}.recruit-head9{flex-basis:31px;padding:0 5px}.recruit-head9>span{font-size:8px;letter-spacing:.1em;gap:5px}.recruit-head9>span>.glyph9{width:14px;height:14px}.recruit-head9 b{font-size:10px}.recruit-head9 .icon9{width:23px;height:23px;padding:5px}.recruit-head9>div{gap:10px}.recruit-stage9{padding:1px 5%;gap:2px}.recruit-buy9{gap:1px;padding:0 3px}.recruit-buy9>b{font-size:14px}.recruit-cost9{font-size:13px;line-height:16px}.recruit-cost9>.glyph9{width:14px;height:14px}.recruit-types9{gap:3px;min-height:18px}.recruit-types9 img{width:17px;height:17px}.recruit-buy9>small{font-size:8px;line-height:10px;min-height:10px}.recruit-buy9:after{bottom:50px;height:8px}.summon-light9{bottom:45px}.recruit-foot9{flex-basis:44px;padding:1px 8px 3px}.shop-lock9{font-size:8px;gap:4px}.shop-lock9>.glyph9{width:18px;height:18px;padding:4px}.recruit-tip9{gap:3px}.recruit-tip9 b{font-size:9px}.recruit-tip9 span{font-size:7px}.reroll9{width:38px;height:38px;border-width:1px;padding:4px;gap:0}.reroll9>.glyph9{width:18px;height:18px}.reroll9 span{font-size:10px}.reroll9 span>.glyph9{width:11px;height:11px}.recruit-detail9{width:19px;height:19px;top:3px;right:0;padding:2px}.recruit-detail9>.glyph9{width:14px;height:14px}.modal-card{height:91dvh;width:94vw}#modal-head{min-height:40px;flex-basis:40px;padding:5px 12px}#modal-head h2{font-size:17px}#modal-head>button{width:27px;height:27px;font-size:19px}#modal-body{padding:9px 12px;gap:6px}#modal-body p{font-size:12px;line-height:1.4}#modal-body button{font-size:11px;min-height:31px}.slot{padding:9px;gap:6px}.slot strong{font-size:15px}.slot small{font-size:10px}#banner{font-size:19px;padding:12px 20px}#banner small{font-size:10px}.identity-fields7>input{font-size:17px}.draft-summary{font-size:10px}
}
@media(max-width:700px) and (orientation:landscape){.hud-tools9 .icon9:first-child{display:none}.round-hud9{width:39vw}.synergy-tray9{width:58px}.active-team9 canvas{width:25px}.recruit-panel9{left:5%;right:6%}.recruit-stage9{padding:1px 1%}.recruit-tip9 span{display:none}.recruit-buy9>b{font-size:12px}.recruit-buy9>small{font-size:7px}#game.adventure9 #sidebar{width:103px!important}#game.adventure9 #dock{left:101px!important;right:125px!important}.gold-hud9{gap:6px}.gold-orb9{width:62px;height:62px}.battle-go9{width:31px;height:31px;padding:9px}}
@media(max-height:350px) and (orientation:landscape){.recruit-panel9{top:13%;height:63%}.quick-rail9{top:53px;gap:6px}.quick-rail9 .icon9{width:25px;height:25px;padding:6px}.synergy-tray9{top:54px}.active-team9{gap:2px}.active-team9 button{height:22px;min-height:22px}.active-team9 canvas{height:19px}.synergy-grid9 img{width:21px;height:21px}#game.adventure9 #sidebar{top:49px!important;bottom:79px!important}.leader9 svg{width:22px;height:22px}.leader9 b{font-size:9px}.leader9 small{font-size:7px}#game.adventure9 #dock{height:54px!important}.gold-orb9{width:59px;height:59px}.gold-orb9>b{font-size:20px}.field-commands9{bottom:77px}.menu-brand p,.quest9 em{display:none}.quest9{min-height:54px!important}.menu-brand h1{margin:10px 0}.menu-orbs9{margin-top:2px}}
@media(orientation:portrait){#menu{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) 23px;padding:24px 22px 12px;gap:12px}.menu-brand{text-align:center;padding:0}.menu-brand h1{font-size:49px;margin:17px 0 10px}.menu-brand p{display:none}.menu-brand .eyebrow{font-size:8px}.menu-brand .subtitle{font-size:9px}.menu-badges{justify-content:center;margin-top:13px}.menu-actions{justify-self:center;width:100%!important;max-width:400px!important;gap:9px!important}.quest9{min-height:75px!important;padding:11px 17px!important}.quest9 b{font-size:21px!important}.quest9 em{font-size:10px}.quest9 small{font-size:8px!important}.menu-orbs9{margin-top:8px}.menu-footer{font-size:8px}.menu-footer button{font-size:9px}.hud-tools9{gap:3px}.hud-tools9 .icon9{width:28px;height:28px;padding:6px}.round-hud9{width:50vw;left:38%}.round-track9{font-size:7px}.round-caption9>button{font-size:8px}#game.adventure9 #sidebar{width:95px!important}.quick-rail9{left:5px;top:78px}.synergy-tray9{left:45px;width:62px}.quick-rail9 .icon9{width:30px;height:30px}.synergy-grid9 img{width:24px;height:24px}#game.adventure9 #dock{left:10px!important;right:10px!important;bottom:97px!important;height:56px!important}.commander9{bottom:12px;left:12px}.gold-hud9{bottom:12px;right:12px}.gold-orb9{width:70px;height:70px}.field-commands9{bottom:168px;right:18px}.recruit-panel9{left:3%;right:3%;top:21%;height:45%;padding:0 6px}.recruit-stage9{padding:0;gap:0}.recruit-head9>span{font-size:8px;letter-spacing:.02em}.recruit-buy9>b{font-size:10px}.recruit-buy9>small{font-size:7px}.recruit-types9 img{width:17px;height:17px}.recruit-tip9 span{display:none}.recruit-foot9{padding:4px;flex-basis:55px}.recruit-tip9 b{font-size:9px}.shop-lock9>span{display:none}.recruit-cost9{font-size:14px}.reroll9{width:45px;height:45px}.capacity9{font-size:60px}.capacity9 small{font-size:40px}}
@media(prefers-reduced-motion:reduce){.recruit-panel9{animation:none}.rimba-ui9 *{scroll-behavior:auto;transition:none!important}}
.draft-screen9{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}.draft-line9{display:flex;justify-content:center;align-items:center;gap:25px;flex:0 0 78px}.draft-picked9{display:flex;gap:10px}.draft-seat9{width:90px;height:77px;display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px dashed #899b64;border-radius:7px;background:#0a2b2180;position:relative}.draft-seat9.filled9{border-style:solid;border-color:#d1bd75;box-shadow:inset 0 0 15px #c2c77422}.draft-seat9>span{font-size:24px;color:#879d6a}.draft-seat9 canvas{width:64px;height:48px;image-rendering:pixelated}.draft-seat9 b{font-size:10px;color:#e4d9b1;line-height:11px}.draft-seat9 small{font-size:10px}.draft-line9>p{display:flex;flex-direction:column;gap:6px;max-width:200px;margin:0!important}.draft-line9>p>b{font:600 19px Georgia;color:#e5d098}.draft-line9>p>span{font-size:11px;color:#b5c5a9}.draft-pool9{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:7px;flex:1;min-height:0}.draft-tile9{position:relative;min-height:0;min-width:0;border:1px solid #688b5b;border-radius:6px;background:radial-gradient(ellipse at 50% 80%,#64854b66,#153b2a);overflow:hidden}.draft-tile9.selected{border:2px solid #e5ce88;box-shadow:inset 0 0 18px #c9d28d22}.draft-tile9.selected:after{content:'✓';position:absolute;top:1px;left:4px;color:#f2dd96;font-size:14px;pointer-events:none}.draft-tile9>button:first-child{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0!important;width:100%;height:100%;padding:3px!important;background:transparent!important;border:0!important;box-shadow:none!important;gap:1px}.draft-tile9 canvas{flex:1;min-height:0;width:80%;height:auto;max-height:74px;object-fit:contain;image-rendering:pixelated;pointer-events:none}.draft-tile9 b{font-size:12px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.draft-tile9>button>span{display:flex;align-items:center;gap:3px;line-height:0}.draft-tile9 img{width:15px;height:15px}.draft-info9{position:absolute;right:1px;top:1px;width:23px;height:23px;min-height:0!important;padding:3px!important;background:#14382966!important;border:0!important}.draft-info9>.glyph9{width:17px;height:17px;color:#b5cdaa}.draft-commit9{display:flex;justify-content:center;gap:10px;flex:0 0 39px}.draft-commit9 button{display:flex;align-items:center;gap:8px;min-width:150px;justify-content:center}.draft-commit9 .glyph9{width:18px;height:18px}.pause-grid9,.atlas-grid9{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;min-height:0;height:100%;padding:10px}.pause-grid9{grid-template-rows:repeat(3,minmax(0,1fr))}.atlas-grid9{grid-template-rows:repeat(2,minmax(0,1fr))}.menu-tile9{min-height:0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:8px!important;background:radial-gradient(ellipse at 50% 10%,#51714b77,#143629)!important;border-radius:12px 2px!important}.menu-tile9>span{width:46px;height:46px;padding:10px;display:grid;place-items:center;border:1px solid #bdb47a;border-radius:50%;color:#d9c68e;background:#133b29;box-shadow:0 0 0 4px #94a36e11}.menu-tile9 .glyph9{width:25px;height:25px}.menu-tile9 b{font:600 17px Georgia;color:#e6d9ac}.menu-tile9 small{font-size:10px;color:#b1c4ab}
@media(max-height:600px) and (orientation:landscape){.draft-screen9{gap:6px}.draft-line9{flex-basis:51px;gap:15px}.draft-seat9{width:64px;height:50px}.draft-seat9 canvas{width:45px;height:34px}.draft-seat9 b{font-size:8px;line-height:9px}.draft-seat9 small{font-size:8px}.draft-picked9{gap:6px}.draft-line9>p>b{font-size:15px}.draft-line9>p>span{font-size:9px}.draft-pool9{gap:4px}.draft-tile9 canvas{max-height:43px}.draft-tile9 b{font-size:10px;line-height:11px}.draft-tile9 img{width:11px;height:11px}.draft-info9{width:17px;height:17px;padding:2px!important}.draft-info9>.glyph9{width:13px;height:13px}.draft-commit9{flex-basis:30px;gap:7px}.draft-commit9 button{min-width:130px;gap:6px;min-height:30px!important;font-size:10px!important}.draft-commit9 .glyph9{width:15px;height:15px}.pause-grid9,.atlas-grid9{gap:7px;padding:3px}.menu-tile9{gap:4px;padding:4px!important}.menu-tile9>span{width:30px;height:30px;padding:6px}.menu-tile9 .glyph9{width:18px;height:18px}.menu-tile9 b{font-size:14px}.menu-tile9 small{font-size:9px}}
@media(max-height:350px) and (orientation:landscape){.draft-line9{flex-basis:42px}.draft-seat9{height:41px;width:60px}.draft-seat9 canvas{width:38px;height:27px}.draft-tile9 b{font-size:9px}.draft-tile9 img{width:9px;height:9px}.draft-commit9{flex-basis:28px}.draft-screen9{gap:4px}.menu-tile9 small{display:none}}
@media(orientation:portrait){.draft-line9{flex-direction:column;gap:8px;flex-basis:110px}.draft-line9>p{max-width:none!important;align-items:center}.draft-line9>p>b{font-size:15px}.draft-line9>p>span{font-size:9px}.draft-seat9{width:65px;height:55px}.draft-seat9 canvas{width:48px;height:36px}.draft-picked9{gap:9px}.draft-pool9{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:5px}.draft-tile9 canvas{max-height:37px}.draft-tile9 b{font-size:9px}.draft-tile9 img{width:10px;height:10px}.draft-commit9 button{min-width:0;flex:1;font-size:10px!important}.draft-commit9 .glyph9{width:13px}.pause-grid9,.atlas-grid9{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:6px;padding:0}.pause-grid9{grid-template-rows:repeat(5,minmax(0,1fr))}.atlas-grid9{grid-template-rows:repeat(3,minmax(0,1fr))}.menu-tile9{gap:5px}.menu-tile9 small{font-size:8px}.menu-tile9 b{font-size:14px}.menu-tile9>span{width:34px;height:34px;padding:7px}}

.synergy-grid9.many9{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 3px}.synergy-grid9.many9 img{width:23px;height:23px}.synergy-grid9.many9 b{font-size:8px}@media(max-height:600px) and (orientation:landscape){.synergy-grid9.many9 img{width:18px;height:18px}.synergy-grid9.many9 b{font-size:7px}.synergy-grid9.many9{gap:3px 2px}}
.icon9,.draft-info9,.recruit-detail9{position:relative}.icon9:after{content:'';position:absolute;inset:-3px;border-radius:50%}.draft-info9,.recruit-detail9{position:absolute}.draft-info9:after,.recruit-detail9:after{content:'';position:absolute;inset:-4px;border-radius:50%}#modal input[type=checkbox],#modal input[type=radio],#modal input[type=range]{accent-color:#d4bc78}

#game.adventure9 #sidebar.leaders-folded9{bottom:auto!important;height:26px!important;pointer-events:auto}
.synergy-grid10 button{min-height:43px!important;gap:6px}.synergy-grid10 button.active10{border-color:#dcc581!important;background:linear-gradient(130deg,#426741,#1a3d2d)!important}.synergy-grid10 button small{margin-left:auto;white-space:nowrap;color:#c2d4b0}.synergy-hero10{display:flex;align-items:center;gap:12px;padding:9px;background:radial-gradient(ellipse,#4a6b4277,transparent)}.synergy-hero10 img{width:45px;height:45px;object-fit:contain}.synergy-hero10 b,.synergy-hero10 small{display:block}.synergy-hero10 b{font:600 20px Georgia;color:#ebdaac}.synergy-hero10 small{font-size:11px;color:#bad0ae}.synergy-rule10{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #63875e;border-radius:7px 2px;background:#183d2b}.synergy-rule10 b{font-size:13px;white-space:nowrap;color:#d6c497}.synergy-rule10 span{font-size:12px;color:#bdcdb3}.synergy-rule10.active10{border-color:#d6bc76;background:#36583a}.stats-grid10{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.stats-grid10>div{min-width:0;padding:8px 6px;border:1px solid #5d8056;background:#123528;display:flex;flex-direction:column;align-items:center;gap:3px;border-radius:5px}.stats-grid10 small{font-size:11px;color:#d1c69d}.stats-grid10 b{font-size:17px;color:#e5e9cf;white-space:nowrap}.stats-grid10 em{font:normal 9px system-ui;color:#9fb69a;white-space:nowrap}.stat-meta10,.skill-timing10{font-size:11px!important;color:#adc5a9!important}.stat-guide10>p{padding:9px 11px;border-left:2px solid #aaac72;background:#21472c66}.stat-guide10 b{color:#e1d39d}@media(max-height:600px) and (orientation:landscape){.synergy-grid10 button{min-height:34px!important}.synergy-rule10{padding:7px 9px;gap:8px}.synergy-rule10 b,.synergy-rule10 span{font-size:11px}.stats-grid10{gap:4px}.stats-grid10>div{padding:5px 3px;gap:1px}.stats-grid10 b{font-size:14px}.stats-grid10 small{font-size:10px}.stats-grid10 em{font-size:8px}.synergy-hero10{padding:4px}.synergy-hero10 b{font-size:16px}.synergy-hero10 img{width:34px;height:34px}}@media(orientation:portrait){.stats-grid10{grid-template-columns:repeat(5,minmax(0,1fr))}.stats-grid10 b{font-size:13px}.stats-grid10>div{padding:5px 2px}.stats-grid10 em{font-size:7px}.synergy-rule10{flex-direction:column;align-items:flex-start;gap:5px}}

/* Johto expansion: landscape campaign tabs and centered branch choice. */
.region-tabs12{display:flex;justify-content:center;gap:12px;margin-bottom:8px}.region-tabs12 button{flex:1;max-width:240px;font-weight:800}.chapter-progress12{font-size:clamp(11px,1.7vh,14px);text-align:center}.branch-choices12{display:flex;gap:6px;justify-content:center;align-items:center;flex-wrap:wrap}.branch-choices12>b{width:100%;text-align:center}.branch-choices12 button{display:grid;justify-items:center;min-width:64px}.branch-choices12 canvas{width:46px;height:42px}.branch-choices12 span{font-size:11px}@media(orientation:landscape) and (max-height:500px){.region-tabs12{margin-bottom:4px;gap:6px}.region-tabs12 button{padding:5px 12px}.chapter-progress12{margin:4px}.branch-choices12 canvas{width:36px;height:30px}}
/* Compact game popups: jade, warm bronze and woven Nusantara corners. */
#modal.ornament13 .modal-card{border:2px solid #8d8151;border-radius:16px;background:linear-gradient(145deg,#183d33,#0c2723 70%);box-shadow:0 22px 80px #000a,inset 0 0 0 4px #ba965c18;color:#e5dfc4}
#modal.ornament13 #modal-head{background:linear-gradient(90deg,#284c3e,#14342e);border-bottom:1px solid #aa8d5260;min-height:40px;padding:8px 14px;gap:12px}.modal-title13{display:flex;align-items:center;gap:10px;min-width:0}.modal-title13>.glyph13{color:#e4ba70;width:25px;height:25px}.modal-title13 h2{font-family:system-ui,sans-serif;font-size:clamp(14px,2.8vh,21px);margin:0;font-weight:750;letter-spacing:.2px}.modal-close13{display:grid;place-items:center;background:#a4674540!important;border:1px solid #c6a16760!important;border-radius:8px!important;padding:5px!important}.glyph13{width:21px;height:21px;flex:none;display:inline-block;vertical-align:middle;color:inherit}.metric-chip13{display:inline-flex;align-items:center;gap:5px;border:1px solid #ad9b5d35;background:#071f1b88;border-radius:8px;padding:5px 9px;white-space:nowrap}.metric-chip13 .glyph13{width:17px;height:17px;color:#c5d992}.metric-chip13 b{font-size:14px;color:#f2d59c}.metric-chip13 small{font-size:10px;color:#a4bbab}.metric-row13{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.icon-action13{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:6px 12px!important;border-radius:9px!important;font-size:12px!important}.icon-actions13{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.icon-action13 .glyph13{width:18px;height:18px}.pokemon-panel13,.berry-panel13,.berry-focus13{display:flex;flex-direction:column;gap:10px;width:100%;max-width:900px;margin:auto}.pokemon-hero13,.berry-hero13{display:flex;align-items:center;justify-content:center;gap:18px;min-height:76px}.pokemon-hero13>canvas,.berry-hero13>img{width:86px!important;height:76px!important;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 8px 3px #0005)}.pokemon-hero13 h3,.berry-hero13 h3{font-size:24px;color:#f3dbac;margin:2px 0 6px}.pokemon-hero13 small,.berry-hero13 small{letter-spacing:1px;font-size:10px;color:#b1c1a9}.stars13{margin-left:9px;color:#e4bc6b;font-size:16px}.detail-tabs13{display:flex;align-items:center;justify-content:center;gap:5px}.detail-tabs13>button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;max-width:180px;min-height:35px;background:#102f29!important;border:1px solid #66806666!important;border-radius:8px!important;color:#c8d2b9!important;padding:6px 10px!important;font-size:12px!important}.detail-tabs13>button.selected{background:#456844!important;color:#ffe6aa!important;border-color:#c3a36a!important;box-shadow:inset 0 -2px #eac47e55}.detail-tabs13 .glyph13{width:19px;height:19px}.detail-content13{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:10px;min-height:145px}.stat-tiles13{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.stat-tiles13>div{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:2px 6px;background:linear-gradient(135deg,#2a503e,#14372e);border:1px solid #95aa6138;border-radius:10px;padding:9px 12px;box-shadow:inset 0 1px #d6b97d17}.stat-tiles13 .glyph13{grid-row:span 2;color:#bad18d}.stat-tiles13 small{font-size:10px;color:#aec5ad}.stat-tiles13 b{font-size:20px;color:#f7ddb0;font-variant-numeric:tabular-nums}.glyph-hp{color:#dca99e}.glyph-mn{color:#81c7e3}.glyph-cld{color:#b7ade0}.glyph-bds{color:#d4a3bc}.skill-grid13{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.skill-tile13{display:flex;text-align:left;align-items:center;gap:12px;padding:12px!important;border-radius:11px!important;border:1px solid #7b966650!important;background:linear-gradient(135deg,#284b3c,#12312a)!important}.skill-tile13>.glyph13{width:32px;height:32px;color:#d9c17d}.skill-tile13>div{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.skill-tile13 b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#eddfb7}.skill-tile13 small{font-size:9px;letter-spacing:.8px;color:#8faf99}.skill-tile13 span{font-size:11px;color:#bdd3b4}.skill-tile13 em{display:flex;align-items:center;gap:4px;font-style:normal;color:#88cae3;font-size:12px}.skill-tile13 em .glyph13{width:16px;height:16px}.microcopy13{font-size:11px!important;text-align:center;color:#b3c0a6!important;line-height:1.35;margin:0!important}.microcopy13 .glyph13{width:15px;height:15px}.lineage13{display:flex;flex-direction:column;align-items:center;gap:3px}.lineage-tier13{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%}.lineage-row13{display:flex;justify-content:center;gap:8px;max-width:100%;width:100%}.lineage-node13{display:flex;align-items:center;flex-direction:column;background:#193d31!important;border:1px solid #64855b70!important;border-radius:8px!important;padding:3px 7px!important;min-width:74px;max-width:125px;flex:1}.lineage-node13.selected{border-color:#efca7d!important;box-shadow:0 0 12px #d8bf5d22}.lineage-node13.locked{opacity:.55}.lineage-node13 canvas{width:44px!important;height:32px!important}.lineage-node13 b{font-size:11px;color:#e8d9b3}.lineage-node13 small{font-size:8px;letter-spacing:1px;color:#95ac92}.lineage-arrow13{color:#c6ac68;font-size:15px;line-height:12px}.habitat-cards13{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.habitat-cards13>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;background:#204633;border:1px solid #9eaa6040;border-radius:11px;padding:13px}.habitat-cards13 .glyph13{width:30px;height:30px;color:#bad28f}.habitat-cards13 small{font-size:9px;color:#90ad99;letter-spacing:1px}.habitat-cards13 b{font-size:13px;color:#e6d8b0}.skill-focus13{text-align:center}.skill-focus13>.glyph13{width:44px;height:44px;color:#dcb779}.skill-focus13 h3{margin:5px 0 10px}.berry-toolbar13{display:flex;gap:10px;align-items:center}.berry-toolbar13 .detail-tabs13{flex:1}.berry-toolbar13 input{max-width:190px;min-width:80px;margin:0!important;padding:8px 10px!important;font-size:12px!important}.berry-filters13{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.berry-filters13 button{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:8px!important;padding:5px!important;background:#15392e!important;border:1px solid #56745266!important}.berry-filters13 button.selected{background:#566746!important;border-color:#c7a96a!important}.berry-filters13 small{font-size:10px}.berry-filters13 .glyph13{width:17px;height:17px}.berry-cards13{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-height:130px}.berry-item13{position:relative;display:flex;align-items:center;gap:7px;text-align:left;background:linear-gradient(130deg,#32553e,#14332b)!important;border:1px solid #88925c65!important;border-radius:11px!important;padding:11px 9px!important;min-height:74px}.berry-item13>img{width:41px;height:41px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 2px #0005)}.berry-item13>div{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.berry-item13 b{font-size:13px;color:#f1deb3}.berry-item13 span{display:flex;gap:3px;align-items:center;color:#b9ceab}.berry-item13 span small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.berry-item13 span .glyph13{width:14px;height:14px}.berry-item13 em{position:absolute;top:5px;right:6px;display:flex;align-items:center;gap:2px;font-size:11px;font-style:normal;color:#d7be81}.berry-item13 em .glyph13{width:12px;height:12px}.panel-pager13{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:0}.panel-pager13 button{padding:5px 10px!important;min-height:28px}.panel-pager13 .glyph13{width:17px;height:17px}.panel-pager13>span{font-size:12px;color:#e1d8b9}.panel-pager13 small{color:#93ac94;font-size:10px}.flip13{display:inline-flex;transform:rotate(180deg)}.berry-power13{display:flex;align-items:center;gap:12px;background:linear-gradient(100deg,#355740,#19382c);border:1px solid #9d9a5e66;padding:12px;border-radius:11px}.berry-power13>.glyph13,.berry-power13>.type-icon5{width:34px;height:34px;color:#e3c97f}.berry-power13>div{display:flex;flex-direction:column;gap:4px}.berry-power13 small{font-size:9px;letter-spacing:1.3px;color:#93b092}.berry-power13 b{font-size:15px;color:#f4dfb1}.guide-tiles13{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.guide-tiles13>div{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px;background:#1d4032;border:1px solid #9d9b5e44;border-radius:12px}.guide-tiles13 .glyph13{width:29px;height:29px;color:#d9bb79}.guide-tiles13 b{font-size:14px;color:#ecdbb4}.guide-tiles13 small{font-size:10px;color:#a1bb9e}.empty13{grid-column:1/-1;text-align:center}
@media(orientation:landscape) and (max-height:500px){#modal.ornament13 #modal-head{min-height:32px;padding:5px 10px}.pokemon-panel13,.berry-panel13,.berry-focus13{gap:6px}.pokemon-hero13,.berry-hero13{min-height:50px;gap:10px}.pokemon-hero13>canvas,.berry-hero13>img{width:62px!important;height:48px!important}.pokemon-hero13 h3,.berry-hero13 h3{font-size:18px;margin:0 0 2px}.pokemon-hero13 small,.berry-hero13 small{font-size:9px}.detail-tabs13>button{min-height:28px;padding:4px 8px!important;font-size:10px!important}.detail-tabs13 .glyph13{width:16px;height:16px}.stat-tiles13{gap:5px}.stat-tiles13>div{padding:5px 8px;grid-template-columns:20px 1fr;gap:0 4px}.stat-tiles13 .glyph13{width:18px;height:18px}.stat-tiles13 b{font-size:16px}.stat-tiles13 small{font-size:8px}.detail-content13{min-height:0;gap:6px}.metric-row13{gap:5px}.metric-chip13{padding:3px 6px;gap:4px}.metric-chip13 b{font-size:12px}.metric-chip13 small{font-size:9px}.metric-chip13 .glyph13{width:14px;height:14px}.icon-action13{min-height:27px!important;padding:4px 10px!important;font-size:10px!important}.skill-grid13{gap:6px}.skill-tile13{gap:8px;padding:8px!important}.skill-tile13>.glyph13{width:24px;height:24px}.skill-tile13 b{font-size:11px}.skill-tile13 span{font-size:10px}.skill-tile13 small{font-size:8px}.microcopy13{font-size:9px!important}.lineage-node13{padding:2px 5px!important;min-width:60px}.lineage-node13 canvas{width:36px!important;height:24px!important}.lineage-node13 b{font-size:9px}.lineage-node13 small{font-size:7px}.lineage13{gap:1px}.lineage-arrow13{font-size:12px;line-height:9px}.habitat-cards13>div{padding:8px;gap:4px}.habitat-cards13 .glyph13{width:23px;height:23px}.habitat-cards13 b{font-size:11px}.berry-toolbar13{gap:6px}.berry-toolbar13 input{max-width:140px;padding:6px!important;font-size:10px!important}.berry-filters13 button{padding:3px!important;gap:3px}.berry-filters13 small{font-size:8px}.berry-filters13 .glyph13{width:15px;height:15px}.berry-cards13{gap:5px;min-height:104px}.berry-item13{padding:8px 6px!important;min-height:52px;gap:4px}.berry-item13>img{width:31px;height:31px}.berry-item13 b{font-size:11px}.berry-item13 span small{font-size:8px}.berry-item13 span .glyph13{width:11px;height:11px}.berry-item13 em{font-size:9px;top:3px;right:4px}.panel-pager13 button{min-height:24px!important;padding:3px 8px!important}.berry-power13{padding:8px}.berry-power13 b{font-size:12px}.berry-power13>.glyph13{width:28px;height:28px}.guide-tiles13{gap:6px;margin-bottom:6px}.guide-tiles13>div{padding:8px;gap:3px}.guide-tiles13 .glyph13{width:23px;height:23px}.guide-tiles13 b{font-size:11px}.guide-tiles13 small{font-size:9px}}
@media(orientation:landscape) and (max-height:350px){.pokemon-hero13>canvas{height:36px!important;width:48px!important}.pokemon-hero13{min-height:36px}.stat-tiles13>div{padding:3px 7px}.stat-tiles13 b{font-size:14px}.lineage-node13 canvas{height:20px!important}.berry-item13{min-height:44px;padding:5px!important}.berry-item13>img{width:25px;height:25px}.berry-cards13{min-height:90px}.pokemon-panel13,.berry-panel13{gap:4px}}

.care-grid13{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.care-grid13 button{display:flex;flex-direction:column;gap:6px;min-height:65px}.care-grid13 .glyph13{width:26px;height:26px;color:#d4c084}.branch-choice-grid13{display:flex;justify-content:center;gap:8px}.branch-choice-grid13 button{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:74px;flex:1;max-width:140px;border-radius:12px!important}.branch-choice-grid13 canvas{width:66px!important;height:58px!important}.branch-choice-grid13 b{font-size:12px}.branch-choice-grid13 .type-icon5{width:18px;height:18px}@media(orientation:landscape) and (max-height:500px){.care-grid13{gap:5px}.care-grid13 button{min-height:47px!important;gap:3px}.care-grid13 .glyph13{width:21px;height:21px}.branch-choice-grid13 canvas{width:52px!important;height:44px!important}.branch-choice-grid13 button{min-width:58px;gap:3px}.branch-choice-grid13 b{font-size:10px}}

.life-needs13{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.life-needs13>div{position:relative;display:grid;grid-template-columns:18px 1fr;gap:1px 4px;padding:6px;background:#15382c;border-radius:7px;overflow:hidden}.life-needs13 .glyph13{width:16px;height:16px;grid-row:span 2;color:#b9cf98}.life-needs13 small{font-size:9px;color:#9cb99e}.life-needs13 b{font-size:12px;color:#ebd5a5}.life-needs13 i{position:absolute;bottom:0;left:0;width:var(--need);height:2px;background:#93b86a}@media(orientation:landscape) and (max-height:500px){.life-needs13{gap:4px}.life-needs13>div{padding:4px}.life-needs13 b{font-size:11px}.life-needs13 small{font-size:8px}.pokemon-panel13:has(.life-needs13) .habitat-cards13>div{padding:5px;gap:2px}.pokemon-panel13:has(.life-needs13) .habitat-cards13 .glyph13{display:none}}
@media(orientation:landscape) and (max-height:400px){#modal.ornament13 #modal-head{flex-basis:34px;min-height:34px}.ornament13 .detail-tabs13>button{min-height:28px!important}.ornament13 .pokemon-hero13{min-height:44px}.ornament13 .pokemon-hero13>canvas{height:44px!important}.ornament13 .stat-tiles13>div{padding:3px 7px}.ornament13 #modal-body{padding:7px 10px}}
/* Explicit input colors and control sizes avoid inherited light --ink backgrounds. */
#modal input:not([type=radio]):not([type=checkbox]):not([type=range]),#modal textarea,#modal select,#trainer-name{appearance:none!important;-webkit-appearance:none!important;background:#0c2b24!important;background-image:none!important;color:#fff3d4!important;-webkit-text-fill-color:#fff3d4!important;caret-color:#f8cd83!important;opacity:1!important;text-indent:0!important;text-shadow:none!important;line-height:1.4!important;font-weight:600!important;border:1px solid #b0b982!important;border-radius:7px!important;min-height:36px;padding:7px 10px!important}#modal input::placeholder,#modal textarea::placeholder{color:#bed0b5!important;-webkit-text-fill-color:#bed0b5!important;opacity:1!important}#modal select option{background:#0c2b24;color:#fff3d4}#modal input[type=radio]{appearance:none!important;-webkit-appearance:none!important;width:19px!important;height:19px!important;min-height:19px!important;max-width:19px!important;padding:0!important;margin:0 5px 0 0!important;flex:0 0 19px!important;border:2px solid #b8c491!important;border-radius:50%!important;background:#12372b!important;box-shadow:none!important;vertical-align:middle}#modal input[type=radio]:checked{background:radial-gradient(circle,#f4ce82 0 43%,#173b2d 48%)!important;border-color:#edce8e!important}#modal input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;width:18px!important;height:18px!important;min-height:18px!important;max-width:18px!important;padding:0!important;accent-color:#d9be77;flex:none!important}#modal label,#modal legend{color:#f0e9cf!important}#modal input:focus-visible{outline:2px solid #f1c882!important;outline-offset:2px}.rescue-summary14{display:flex;justify-content:center;gap:8px}.rescue-grid14{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.rescue-grid14>div{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px;border:1px solid #78945a88;border-radius:10px;background:#1d4232}.rescue-grid14 canvas{width:62px!important;height:55px!important}.rescue-grid14 b{font-size:12px}.rescue-grid14>div>div{display:flex;gap:6px}.rescue-grid14 button{min-width:30px!important;padding:4px!important;font-size:19px!important}.add-pet14{color:#ffe0a0!important;border-color:#c5b074!important}.economy-link14{display:flex;align-items:center;gap:4px;background:none!important;border:none!important;color:#e4d39a!important;font-size:10px!important;min-height:20px!important;padding:0!important}.economy-link14 .glyph13{width:14px;height:14px}.support-intro14{display:flex;align-items:center;gap:12px;padding:10px;background:#224c37;border-radius:10px;margin-bottom:8px}.support-intro14>.glyph13{width:35px;height:35px;color:#d5c180}.support-intro14>div{display:flex;flex-direction:column;gap:4px}.support-intro14 b{font-size:14px;color:#f1ddb1}.support-intro14 small{font-size:11px;color:#bdcfb1}.support-pets14{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:8px 0}.support-pets14>button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;max-width:145px;flex:1;border-radius:9px}.support-pets14 canvas{width:64px!important;height:53px!important}.support-pets14 b{font-size:12px}.support-pets14 small,.support-pets14 span{font-size:10px}.support-pets14 span{color:#aacc9b}@media(orientation:landscape) and (max-height:500px){#modal input:not([type=radio]):not([type=checkbox]):not([type=range]),#modal select{min-height:31px;padding:5px 8px!important;font-size:16px!important}.rescue-grid14{gap:5px}.rescue-grid14>div{padding:5px;gap:3px}.rescue-grid14 canvas{width:47px!important;height:40px!important}.rescue-grid14 b{font-size:10px}.rescue-grid14 button{min-height:25px!important;min-width:27px!important;font-size:16px!important}.support-intro14{padding:7px;margin-bottom:5px}.support-intro14 b{font-size:12px}.support-intro14 small{font-size:10px}.support-pets14 canvas{width:45px!important;height:37px!important}.support-pets14>button{padding:5px;gap:2px}.support-pets14 b{font-size:10px}.support-pets14 small,.support-pets14 span{font-size:9px}}
