/* Royal chapter UI: ornamental gold frames over deep amethyst. Real game controls,
   text and portraits remain separate, responsive elements. No screenshot UI. */
:root{--royal-gold:#e9c680;--royal-bright:#fff0bb;--royal-edge:#a67a42;--royal-violet:#482262;--royal-ink:#140c29;--muted:#c5b3d5;--line:#d6ac646b}
body{background:radial-gradient(ellipse at 50% 10%,#36244c,#090712 75%)}
.app-shell{background:radial-gradient(ellipse at 80% 4%,#64338555,transparent 46%),radial-gradient(ellipse at 0 60%,#45336a44,transparent 55%),linear-gradient(155deg,#241437,#110a22 70%);box-shadow:0 0 0 1px #d8b67355,0 0 65px #7149a522}
.app-shell:before{opacity:.05}
.view:not(.immersive-map):not(.battle-view){background-image:radial-gradient(ellipse at 50% 0,#8144ab22,transparent 55%)}
.topbar{position:relative;border:0;margin:0 0 16px;min-height:82px;height:auto;padding-block:calc(17px + var(--safe-top)) 15px}
.topbar:after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,#9c7044,#f4dba1,#9c7044,transparent);box-shadow:0 1px #100819,0 3px 13px #b77be83b}
.brand{position:relative;padding-left:15px;min-width:0}.brand:before{content:'';position:absolute;left:0;top:50%;width:5px;height:18px;background:linear-gradient(#ffeeaf,#af6e38);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);transform:translateY(-50%)}
.brand h1{font-size:25px;line-height:1.2;color:#ffedc4;text-shadow:0 2px 2px #12061f,0 0 15px #e3ac5c30;letter-spacing:.03em}.brand .eyebrow{font-size:8px;letter-spacing:.24em;color:#d5ad6a;margin-bottom:5px}
.title-filigree{position:absolute;bottom:-10px;left:18px;width:80px;height:4px;background:linear-gradient(90deg,#e6bc78,transparent);clip-path:polygon(0 40%,25% 40%,31% 0,37% 40%,100% 40%,100% 60%,37% 60%,31% 100%,25% 60%,0 60%)}
.top-pill{border-radius:8px;border:1px solid #b78e56;box-shadow:inset 0 0 0 2px #351a4c,0 0 10px #d0a26915;background:linear-gradient(150deg,#48274e,#21102f);color:#ffe4ad}
.primary{position:relative;border:1px solid #ffe2a3;border-radius:16px;background:linear-gradient(180deg,#a254b5 0,#62297f 28%,#461c66 65%,#6b337b 100%);color:#fff0bf;box-shadow:inset 0 0 0 3px #32123d,inset 0 0 0 4px #d2a867,inset 0 7px 18px #dc9fff40,0 0 0 1px #91603b,0 3px 0 #261035,0 0 18px #c373db3d;text-shadow:0 2px 3px #311338}
.primary:before,.primary:after{content:'';position:absolute;top:50%;width:5px;height:5px;border:1px solid #ffe4ac;transform:translateY(-50%) rotate(45deg);background:#75417d;pointer-events:none}.primary:before{left:7px}.primary:after{right:7px}
.secondary,.icon-button{border-color:#b39361;background:linear-gradient(140deg,#432552,#291538 65%);box-shadow:inset 0 1px #f4cc8a25,inset 0 0 0 2px #170b222c}
.panel,.case-card,.utility-fold,.collection-route{border-color:#ac814e;background:linear-gradient(145deg,#452351de,#25132de8 70%);box-shadow:inset 0 0 0 3px #b88b5414,inset 0 1px #ecc47d33,0 7px 22px #06020e30;border-radius:12px}
.section-heading{color:#ffe9ba}.inventory-heading{padding:8px 0 6px;border-bottom:1px solid #b88c4c66;position:relative}.inventory-heading:after{content:'';position:absolute;bottom:-3px;left:50%;width:5px;height:5px;background:#e7bc73;transform:rotate(45deg)}
.bottom-nav{background:linear-gradient(180deg,#46274af5 0,#20102efb 25%,#130b24fc);border-top:1px solid #e9be7b;box-shadow:0 -1px #6e3d68,0 -7px 24px #0c051e88;height:calc(78px + var(--safe));padding-top:8px}
.bottom-nav:before{content:'';position:absolute;inset:3px 10px auto;height:1px;background:linear-gradient(90deg,transparent,#a47c4a88,transparent);pointer-events:none}
.nav-item{border:1px solid transparent;border-radius:11px;color:#bfabc9;min-width:0;font-size:10px}.nav-item.active{border-color:#ca9a5b;background:linear-gradient(#8e5b8959,#45204c7a);box-shadow:inset 0 0 0 2px #241130,inset 0 0 15px #d7a26c22;color:#ffe8ad}.nav-item.active:before{top:-9px;height:3px;left:25%;right:25%;border-radius:50%;box-shadow:0 0 14px #ffd996}
.nav-item .nav-icon{color:#d3b17a}.nav-item.active .nav-icon{filter:drop-shadow(0 0 5px #ecbd68a8);color:#ffeab0}
/* Tone differentiates species without asserting a fake rarity. */
.tone-fairy{--portrait-glow:#94db9a;--portrait-tint:#234c43;--portrait-rune:#c6ef99}
.tone-earth{--portrait-glow:#e7a85c;--portrait-tint:#5d3040;--portrait-rune:#ffd88a}
.tone-spirit{--portrait-glow:#bc8eff;--portrait-tint:#36255b;--portrait-rune:#e0baff}
.roster-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:-8px;color:#eed7ad;font-size:12px;letter-spacing:.08em}.roster-label small{font-size:10px;color:#bb9bc9}
.party-slots{gap:10px}.party-slot{min-height:126px;padding:7px 4px 8px;overflow:hidden;border:1px solid #b38b53;background:radial-gradient(ellipse at 50% 45%,var(--portrait-tint,#4b2a59),transparent 78%),linear-gradient(#3a1d51,#1e102f);box-shadow:inset 0 0 0 3px #ae7f4d14,0 4px 8px #08020e4d;border-radius:12px}
.party-slot:before{content:'';position:absolute;inset:4px;border:1px solid #d3a56c30;border-radius:8px;pointer-events:none}.party-slot.selected{border-color:#ffe2a3;box-shadow:inset 0 0 0 3px #aa7c4a38,0 0 15px #e4b65e33}.party-slot .creature-art{width:83px;height:80px;max-width:100%}.party-slot strong{font-size:11px;line-height:1.4}.party-slot small{color:#d9c3e4;font-size:10px}.slot-number{position:absolute;top:7px;left:9px;font-size:9px;color:#d9b57a;z-index:4}
.companion-showcase{border:1px solid #e2ba76;border-radius:15px;background:linear-gradient(180deg,#2a10384d,#1d102a25 48%,#21102fe8 75%,#1e1029),url('assets/battle-forest-v3.webp') center 38%/cover;box-shadow:inset 0 0 0 4px #1b0c29,inset 0 0 0 5px #b17c4c88,0 10px 32px #05000c55}
.companion-showcase.tone-spirit{background-image:linear-gradient(180deg,#2a10384d,#1d102a25 48%,#21102fe8 75%,#1e1029),url('assets/battle-cave-v3.webp')}
.showcase-corner:before,.showcase-corner:after{content:'';position:absolute;z-index:4;top:9px;width:21px;height:21px;border-top:2px solid #e8bf76;pointer-events:none}.showcase-corner:before{left:9px;border-left:2px solid #e8bf76;border-radius:7px 0 0}.showcase-corner:after{right:9px;border-right:2px solid #e8bf76;border-radius:0 7px 0 0}
.companion-name{padding:20px 20px 0}.companion-name h2{font-size:29px;color:#fff0bf;text-shadow:0 3px 10px #170923;margin-right:60px}.companion-name .small-label{color:#e5be88;letter-spacing:.14em;font-size:10px}.level-badge{top:28px;right:20px;padding:6px 9px;border:1px solid #dfb77b;background:#291133d9;border-radius:8px;font-size:13px}
.companion-portrait{height:262px;position:relative;margin-top:-7px;background:radial-gradient(ellipse at 50% 65%,color-mix(in srgb,var(--portrait-glow,#c293ff) 22%,transparent),transparent 62%)}
.companion-portrait .creature-art{width:min(92%,310px);height:252px;max-width:none;z-index:2;filter:drop-shadow(0 12px 12px #10051d)}
.portrait-sigil{position:absolute;width:76%;height:22%;bottom:12%;left:12%;border:1px solid #d9b66c9c;border-radius:50%;transform:rotate(-7deg);box-shadow:0 0 12px #f8d58926,inset 0 0 12px #cc9be32e;pointer-events:none}.portrait-sigil:before{content:'';position:absolute;inset:6px;border:1px dashed #dfc37a59;border-radius:50%}
/* Replace the previous opaque grey evolution halo with a subtle feet glow. */
.creature-art.evolved:before{width:72%;height:16%;bottom:3%;top:auto;border:1px solid #e9c37666;background:radial-gradient(ellipse,#c9a0d823,transparent 75%);box-shadow:0 0 9px #c7a0ef30;animation:none;opacity:.65}.creature-art.evolved:after{display:none}.creature-art.evolved img,.creature-art.evolved.dolkong img,.creature-art.evolved.jongisum img{filter:drop-shadow(0 4px 7px #09041288)}
.lineage-banner{display:flex;align-items:center;justify-content:center;gap:11px;margin:-6px 20px 14px;color:#dfc79f;font-size:10px;position:relative;z-index:3}.lineage-pips{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:13px}.lineage-pips i{display:inline-block;width:6px;height:6px;background:#42294e;border:1px solid #b79162;transform:rotate(45deg)}.lineage-pips i.lit{background:#ffe49b;border-color:#ffe9b1;box-shadow:0 0 6px #ffd07488}.lineage-pips .ui-icon{width:13px;height:13px;color:#f1c979}
.companion-stats{background:linear-gradient(90deg,transparent,#48214b88,transparent);margin:0 15px;padding:12px 0;border-color:#c89a5f99}.companion-stats strong{font-size:17px;color:#ffe9bd}.companion-stats small{color:#cdb5d4}.skill-plaque{padding:15px 18px;min-width:0}.skill-plaque>div{min-width:0}.skill-plaque strong{font-size:13px;color:#f4d19a}.skill-plaque p{color:#d4bfda;font-size:11px}
/* Collection reads as illustrated cards, with room for the character art. */
.companion-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.companion-thumb{position:relative;min-width:0;overflow:hidden;min-height:166px;padding:24px 5px 9px;border:1px solid #b28a55;border-radius:12px;background:radial-gradient(ellipse at 50% 40%,var(--portrait-tint,#3d2552),transparent 75%),linear-gradient(160deg,#351d4d,#1d102e);box-shadow:inset 0 0 0 3px #bd8d5814,0 6px 13px #08031144;color:#f9e3b8}
.companion-thumb:before,.dex-card:before{content:'';position:absolute;inset:4px;border:1px solid #c99f6140;border-radius:8px;pointer-events:none;z-index:3}.companion-thumb:after{content:'';position:absolute;inset:0;background:linear-gradient(130deg,#f7db9d09,transparent 35%,transparent 70%,#d8b8f60b);pointer-events:none}
.companion-thumb.selected{border-color:#ffe0a1;background:radial-gradient(ellipse at 50% 40%,var(--portrait-tint,#61417a),transparent 76%),linear-gradient(#58336a,#2d173e);box-shadow:inset 0 0 0 3px #d0a65b30,0 0 13px #dca86238}
.companion-thumb.rarity-rare{border-color:#dfbc7c}.companion-thumb .creature-art{height:98px;width:100%;filter:drop-shadow(0 6px 5px #0c031a)}.companion-thumb strong{font-size:12px;line-height:1.35;margin-top:1px;overflow-wrap:anywhere;color:#f9e4bc}.companion-thumb small{display:block;color:#d1b5dd;font-size:10px;margin-top:4px}.companion-thumb .lineage-pips{margin-top:6px}.card-rank{position:absolute;left:8px;top:8px;z-index:4;padding:2px 6px;border:1px solid #c9a36a66;background:#20102bd9;border-radius:4px;font-size:8px;letter-spacing:.08em;color:#e6c894}
.inventory-heading h2{font-size:21px}.inventory-heading>span{color:#d5b888}.utility-fold>summary{min-height:56px;position:relative;padding:12px 15px;color:#efd3a5;font-family:Georgia,'Noto Serif KR',serif;font-size:15px}.utility-fold>summary>.ui-icon{padding:7px;box-sizing:content-box;width:19px;height:19px;border:1px solid #ba935955;border-radius:8px;background:#271031}.utility-fold>summary>span{color:#d7b77e}.utility-fold[open]>summary{border-bottom:1px solid #ad815633}
.codex-view .grid-list{gap:11px}.dex-card{min-height:181px;padding:16px 4px 12px;border-color:#ab8151;background:radial-gradient(ellipse at 50% 45%,var(--portrait-tint,#3e2459),transparent 72%),linear-gradient(#321b46,#1c102b);box-shadow:0 5px 12px #08030f44}
.dex-art-stage{height:116px}.dex-card .creature-art{width:108px;height:108px;max-width:100%}.dex-card strong{font-size:12px;margin-top:6px}.dex-card .card-tribe{color:#c9b0d1}.dex-number{top:9px;left:10px;color:#debd82;font-size:8px}.dex-owned{right:9px;top:9px;border-color:#caa064;background:#3c2053;color:#ffe4ae}.dex-card.locked{background:linear-gradient(145deg,#281c38,#171022);border-color:#6f526e}.dex-card.locked:before{border-color:#7b617338}
.codex-filters button{border-color:#9a764d;border-radius:7px;background:#2b163d;color:#d6c1de}.codex-filters button.active{background:linear-gradient(#9e6c7c,#60304f);box-shadow:inset 0 0 0 2px #29122f55;border-color:#f0ca83;color:#fff0bd}
/* Stronger medal hierarchy, using the existing precise icon system. */
.trophy-row{min-height:195px;position:relative;padding:22px 10px 16px;background:radial-gradient(circle at 50% 25%,#855c9b55,transparent 60%),linear-gradient(135deg,#432253,#22112f);border-color:#a67d4c;box-shadow:inset 0 0 0 3px #c69d6912}
.trophy-row.earned{border-color:#e2b974;background:radial-gradient(circle at 50% 25%,#b381704d,transparent 58%),linear-gradient(135deg,#5a2d60,#271334)}.trophy-row.unearned{border-color:#78566f}.trophy-medal{width:77px;height:82px;background:linear-gradient(145deg,#fff1ba,#a46b3c 45%,#ffe2a4);filter:drop-shadow(0 0 9px #d7ae6444)}.trophy-medal:before{inset:3px;background:radial-gradient(circle at 50% 30%,#9865a2,#3c2056 70%)}.trophy-medal .ui-icon{width:38px;height:38px}.trophy-row strong{font-size:14px;display:block}.trophy-state{display:inline-block;margin-top:7px;color:#bca2c7;font-size:9px;letter-spacing:.08em}.earned .trophy-state{color:#f1cb82}.trophy-row .subline{color:#c4accb;font-size:10px}
/* Battle keeps the illustrated scene, with a jewel ring and carved plaques. */
.battle-view .topbar{min-height:62px;padding-top:calc(9px + var(--safe-top));padding-bottom:10px}.battle-view .topbar h1{font-size:22px}.battle-view .title-filigree{display:none}
.status-box{border-color:#d4aa69;border-radius:10px;background:linear-gradient(100deg,#25102fe8,#452051df);box-shadow:inset 0 0 0 2px #c499561e,0 5px 13px #11051d66}.status-box .hp-track{height:8px;border:1px solid #f5d4a180;background:#200c28;padding:1px}.status-box .hp-track>span{border-radius:8px;background:linear-gradient(#b5f3ac,#65b87e 65%,#448a65);box-shadow:0 0 7px #8dd78333}.status-box .hp-track.low>span{background:linear-gradient(#ffb7a1,#e66b68)}
.battle-log{color:#ffe8be;text-shadow:0 1px 5px #10051f;border-bottom-color:#d9ad6659}.battle-view .enemy-intent{border-color:#a9875c70;background:linear-gradient(90deg,#2b153aeb,#3e1c48df)}
.combat-dial{border-color:#ffe5a7;box-shadow:0 0 0 3px #58206c,0 0 0 4px #c28e5a,0 0 25px #d580f687,inset 0 0 22px #c079dd40;background:radial-gradient(circle,#3a184e 47%,#e9c48a 49%,#55226e 51%,transparent 52%)}.dial-center{border-color:#edc779;background:radial-gradient(circle,#784193,#31113f);box-shadow:inset 0 0 16px #d38bfa40,0 0 9px #ffe0a333}.dial-halo{border-color:#f3d89988}.dial-tap-button{border-radius:18px;letter-spacing:.09em;box-shadow:inset 0 0 0 3px #3d174e,inset 0 0 0 4px #e8b879,0 0 18px #c878e276,0 3px 0 #2c102f}
.dial-quick button{border-color:#b8956188;background:linear-gradient(#40204d,#251231);color:#edd3a5;min-height:44px}.rank-skills button{background:linear-gradient(#3c2050,#231031);border-color:#997744;color:#eed5a5}.rank-skills .selected{border-color:#f7d38a;background:linear-gradient(#714280,#3e1c4e);box-shadow:inset 0 0 0 2px #c6a16433}
/* Reusable frames over the map HUD; the world remains vivid and unobscured. */
.map-hud .topbar{min-height:74px;padding-top:calc(10px + var(--safe-top));padding-bottom:13px}.map-hud .topbar:after{opacity:.65}.map-hud .brand h1{font-size:24px}.map-hud .brand .eyebrow{color:#f0cf91}.map-hud .title-filigree{display:none}.region-tabs{margin-top:8px;gap:9px}.region-tab{border-color:#caa36b;background:linear-gradient(#342043ed,#21102fea);border-radius:10px;box-shadow:inset 0 0 0 2px #d2a26810;min-height:44px}.region-tab.active{background:linear-gradient(#865083ee,#4c255eec);border-color:#ffe1a3;box-shadow:inset 0 0 0 2px #29102f88,0 0 13px #b87ce033}
.quest-ribbon{border-color:#cda566;border-radius:11px;background:linear-gradient(105deg,#3c214eeb,#251432e0);box-shadow:inset 0 0 0 3px #d2a26814,0 4px 16px #14082055}.quest-ribbon>svg:first-child{color:#ffe2a0}.quest-ribbon strong{color:#ffebc3}.quest-ribbon small{color:#d1b2d5}
.immersive-map>.map-wrap:after{background:linear-gradient(#12091fd9 0,#170d273d 22%,transparent 36%,transparent 63%,#170c28b3 80%,#130b23 97%)}
.map-dock .location-caption{margin-bottom:9px}.location-caption>span{font-size:18px;color:#ffe6ad;letter-spacing:.03em}.field-travel-hint{background:#1b1029cf;border:1px solid #c79e5f40;border-radius:8px;color:#f2dfbe}.map-utilities button{border-color:#b78d5388;background:linear-gradient(#3d234ada,#21102ee8);border-radius:9px;min-height:44px;color:#f0d7ad}.map-utilities .ui-icon{color:#e5ba78}
/* Capture reveal has a dedicated portrait and nameplate, matching collection cards. */
.modal-box{border:1px solid #f0cb87;border-radius:18px;padding:24px 20px;background:radial-gradient(ellipse at 50% 10%,#63367e,#2c153e 55%,#190d29);box-shadow:inset 0 0 0 4px #21112e,inset 0 0 0 5px #ae835466,0 0 0 1px #5a365c,0 24px 80px #000a}
.modal-box:has(.result-heading){background:linear-gradient(#2d1246eb,#3f1a5b66 35%,#261039f0 74%),url('assets/battle-cave-v3.webp') center/cover;text-align:center}
.result-heading{position:relative;padding-top:4px}.result-emblem{display:grid;place-items:center;width:43px;height:43px;border:1px solid #e4bd78;border-radius:50%;margin:0 auto 9px;background:linear-gradient(#6e3d87,#321246);box-shadow:0 0 14px #ddaa5f55;color:#ffdea0}.result-emblem .ui-icon{width:25px;height:25px}.result-heading h2{font-size:31px;color:#ffdda0;text-shadow:0 0 17px #d7977f5c;margin-top:5px}
.capture-portrait{height:265px;position:relative;display:grid;place-items:center;margin:4px -8px 0;background:radial-gradient(ellipse at 50% 60%,color-mix(in srgb,var(--portrait-glow,#c293ff) 23%,transparent),transparent 65%)}.capture-portrait:before{content:'';position:absolute;left:9%;right:9%;top:18%;height:62%;border:1px solid #eacb934f;border-radius:50%;transform:rotate(-23deg);box-shadow:0 0 28px #c993f62b}.capture-portrait .creature-art{height:255px;width:95%;max-width:310px;z-index:2}
.capture-nameplate{position:relative;margin:-6px 0 14px;padding:12px 15px 10px;border:1px solid #ddb677;border-radius:10px;background:linear-gradient(110deg,#50235c,#241033 70%);box-shadow:inset 0 0 0 3px #c69c5921;text-align:center}.capture-nameplate>span:first-child{font-size:10px;letter-spacing:.16em;color:#edc58d}.capture-nameplate h3{font-size:24px;margin:4px 0 8px;color:#fff0c4}.capture-nameplate .lineage-pips{margin:0}
.modal-box .reward-line{border-color:#c9a065;background:linear-gradient(120deg,#43204f,#271033);color:#e8d0dc;box-shadow:inset 0 0 0 3px #cf9d5010}.discovery-stamp,.milestone-stamp{border-color:#ddb77a;background:linear-gradient(100deg,#7a4a6f55,#50304d99);color:#ffe1a2}.species-sheet .portrait-stage{background:radial-gradient(ellipse at 50% 60%,#b779dd42,transparent 70%)}.species-sheet .tag{background:#47205d;border-color:#bf9463;color:#f6d89e}.npc-portrait{border-color:#cba46d;box-shadow:inset 0 0 0 3px #c1945122,0 0 25px #a675c02e;background:radial-gradient(ellipse at 50% 70%,#59346d,#21102f)}
@media(max-width:360px){.brand h1{font-size:23px}.top-pill{padding:7px 9px;font-size:11px}.view:not(.immersive-map){padding-inline:13px}.companion-gallery,.codex-view .grid-list{gap:8px}.companion-thumb{min-height:149px;padding-top:22px}.companion-thumb .creature-art{height:83px}.companion-thumb strong{font-size:10px}.companion-thumb .card-rank{font-size:7px}.dex-card{min-height:158px}.dex-art-stage{height:95px}.dex-card .creature-art{width:91px;height:91px}.party-slot{min-height:115px}.party-slot .creature-art{width:70px;height:72px}.companion-name h2{font-size:25px}.companion-portrait{height:235px}.companion-portrait .creature-art{height:225px}.modal-box{padding:21px 15px}.capture-portrait{height:230px}.capture-portrait .creature-art{height:220px}.capture-nameplate h3{font-size:22px}.rank-skills button{min-width:75px}.rank-skills small{font-size:9px}}
@media(max-height:760px){.battle-view{height:auto;min-height:100dvh}.battle-view .topbar{min-height:54px;padding-block:8px}.battle-view .screen-body{padding-bottom:8px}.battle-view .battle-stage{flex:none;height:205px}.battle-view .combat-dial{width:140px;height:140px}.battle-view .dial-center{inset:37px}.battle-view .dial-needle:before{height:53px}.battle-view .dial-tap-button{position:static;transform:none;min-height:48px}.battle-view .dial-quick button{min-height:44px}.companion-portrait{height:230px}.companion-portrait .creature-art{height:223px}.map-hud .topbar{min-height:67px}.map-hud .quest-ribbon{padding:9px 11px}}
@media(prefers-reduced-motion:reduce){.primary,.companion-thumb,.party-slot{transition:none!important}.creature-art.evolved:before{animation:none!important}}
/* Narrow modal actions must remain reachable instead of forcing horizontal scroll. */
@media(max-width:360px){.modal-actions{flex-wrap:wrap}.modal-actions>button,.npc-dialog .modal-actions>button{min-width:0;flex:1 1 100%;width:100%}.npc-dialog .modal-actions{flex-direction:column}.starter-choices{gap:5px}.starter-choices button{min-width:0}.starter-choices .creature-art{width:100%;height:95px}.starter-choices strong{font-size:10px}.starter-choices small{font-size:8px}.companion-stats{margin-inline:11px}.companion-stats strong{font-size:14px}.companion-stats>span{min-width:0}.map-utilities{gap:5px}.map-utilities button{font-size:9px;padding-inline:3px}.location-caption{align-items:flex-end;gap:12px}.location-caption small{max-width:55%;text-align:right;line-height:1.4}}
@media(max-width:320px){.companion-gallery,.codex-view .grid-list{grid-template-columns:repeat(2,minmax(0,1fr))}.companion-thumb .creature-art{height:105px}.companion-thumb{min-height:170px}.dex-art-stage{height:112px}.dex-card .creature-art{width:105px;height:105px}.dex-card{min-height:180px}.topbar .top-actions{gap:4px}}
