@font-face{font-family:Suite;src:url('assets/fonts/SUITE-Variable.woff2') format('woff2');font-display:swap}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#112323;color:#f1ead8;font-family:Suite,system-ui,sans-serif}button,input,textarea{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{min-height:44px;border:1px solid #52615a;border-radius:10px;background:#293f3a;color:#f6efdd;cursor:pointer;padding:9px 13px;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#3b574a}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #eaca7b;outline-offset:3px}button:disabled{opacity:.45;cursor:default}button[aria-pressed=true]{border-color:#e2c47b;color:#ffdfa3}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.chronicle-shell{width:min(1180px,100%);margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 350px;grid-template-rows:54px minmax(660px,calc(100dvh - 54px));min-height:100dvh;border-inline:1px solid #35483e}.quest-header{grid-column:1/-1;display:flex;align-items:center;gap:20px;padding:8px 22px;border-bottom:1px solid #526047;background:#142926}.quest-header>a{font-size:12px;letter-spacing:2px;font-weight:800}.quest-header #connection{margin-left:auto;font-size:11px;color:#c6d5bd}.quest-header .paw-sound{margin-left:0}.adventure{position:relative;min-width:0;overflow:hidden;background:#29423b}.adventure>canvas,.vignette{position:absolute;inset:0;width:100%;height:100%}.vignette{pointer-events:none;background:linear-gradient(#0f232de6,transparent 26%,transparent 70%,#0e2229eb)}.chapter{position:absolute;top:30px;width:100%;text-align:center;pointer-events:none;text-shadow:0 2px 9px #102722}.chapter p,.eyebrow{font-size:10px;letter-spacing:2px;color:#e0c58e}.chapter h1{font-size:35px;letter-spacing:-1.5px;margin:10px 0;font-weight:800}.chapter h1 span{display:block;font-size:14px;font-weight:400;letter-spacing:8px;margin-top:6px;color:#ffe2a4}.chapter #stage-label{font-size:12px;color:#d3e0c7;margin-top:12px}.welcome{position:absolute;top:34%;left:8%;right:8%;text-align:center;text-shadow:0 2px 10px #0b2929}.welcome h2{font-size:28px;line-height:1.5;font-weight:600;margin:16px 0}.welcome p{font-size:12px;color:#f2edda}.party-dock{position:absolute;bottom:20px;left:20px;right:20px;display:flex;align-items:end;gap:10px}.party-dock #party{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;flex:1}.hero-button{position:relative;overflow:hidden;min-width:0;height:110px;padding:0;border:1px solid #8c9c7d;background:linear-gradient(155deg,#172d27e6,#294637e6);text-align:left}.hero-button canvas{position:relative;width:75px;height:75px;display:block;margin:auto}.hero-button .hero-name{display:flex;justify-content:space-between;padding:2px 9px;font-size:12px}.hero-button small{color:#c2cca6}.hero-button progress{height:4px;width:100%;display:block;border:0;background:#0e1e1a}.hero-button .rage{position:absolute;bottom:0;left:0;height:3px;background:#f5c870;box-shadow:0 0 9px #f5bd4e;width:var(--charge,0%)}.hero-button.ready{box-shadow:0 0 18px #f4c56765;border-color:#ffdf8c}.hero-button.fallen{filter:grayscale(1);opacity:.55}progress::-webkit-progress-bar{background:#132620}progress::-webkit-progress-value{background:#a5cda0}progress::-moz-progress-bar{background:#a5cda0}.hero-button progress::-webkit-progress-value{background:#aac999}.hero-button .role-tag{position:absolute;top:3px;left:6px;font-size:9px;color:#e3ce9c}#support{width:76px;height:104px;background:linear-gradient(140deg,#786230,#3e4a2c);border-color:#bbae6a;padding:7px 3px}#support span{display:block;font-size:27px;color:#ffe49c}#support b,#support small{display:block;font-size:10px;margin-top:5px}.battle-hud{position:absolute;top:155px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;font-size:11px}.battle-hud button{font-size:11px;min-height:36px;padding:6px 10px;background:#112b27cc}.battle-hud>div{display:flex;gap:5px}#boss{position:absolute;top:207px;left:12%;right:12%;font-size:12px;text-shadow:0 2px 4px #000}#boss>div{display:flex;justify-content:space-between;margin-bottom:7px}#boss-hp{width:100%;height:7px;border:0;border-radius:4px;overflow:hidden}#boss-hp::-webkit-progress-value{background:linear-gradient(90deg,#b94a4a,#e79f70)}#battle-notice{position:absolute;top:29%;left:5%;right:5%;text-align:center;font-size:13px;color:#fff0bf;text-shadow:0 2px 6px #000;pointer-events:none}#asset-status{position:absolute;inset:40% 10% auto;text-align:center;padding:16px;background:#142d2aea;border-radius:14px;z-index:5;font-size:13px}.hub{padding:26px 24px 14px;background:linear-gradient(155deg,#21382f,#112726);overflow-y:auto;border-left:1px solid #506044;display:flex;flex-direction:column;min-width:0}.hub-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.hub-heading h2{font-size:22px;margin:7px 0}.coin{color:#f4d392;font-size:13px}.tabs{display:flex;gap:4px;border-bottom:1px solid #53614c;margin-bottom:20px}.tabs button{flex:1;border:0;border-radius:0;background:none;font-size:13px;color:#adbfae;padding:10px 5px}.tabs .selected{color:#ffe6ad;border-bottom:2px solid #f1d298}.journey-head{display:flex;align-items:center;justify-content:space-between}.journey-head h3{font-size:15px}.journey-head span{font-size:12px;color:#bccbae}.stage-list{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0 20px}.stage-list button{padding:0;aspect-ratio:1;border-radius:50%;background:#19322d;color:#c8d1ba}.stage-list button.current{border:2px solid #e9c57c;color:#ffdda3;background:#645834}.stage-list button.cleared{background:#365642;color:#e2e9cd}.stage-list button.boss-stage{border-radius:12px}.stage-story{font-size:13px;line-height:1.7;min-height:67px;color:#c6d2c1}.primary{width:100%;background:linear-gradient(115deg,#e9cb8c,#b99b5e);color:#26372a;border:1px solid #ffe1a4;font-weight:800;min-height:51px;box-shadow:0 6px 18px #0002}.primary:hover:not(:disabled){background:#efd49c}.primary span{float:right}.idle-card{display:flex;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid #506048;margin-top:27px;padding-top:20px;font-size:12px}.idle-card small{display:block;color:#acbca7;font-size:10px;margin-top:6px}.idle-card button{font-size:12px}.panel-intro{font-size:12px;line-height:1.8;color:#bdcbb7}.member{border:1px solid #4b5d47;border-radius:12px;background:#263f33;margin:12px 0;padding:12px;display:flex;align-items:center;gap:10px}.member canvas{width:70px;height:80px;flex:none}.member h3{font-size:15px;margin:0 0 7px}.member p{font-size:10px;color:#c2cbb4;margin:4px 0}.member button{font-size:11px;padding:7px 9px}.gear-row{margin:15px 0;padding-bottom:10px;border-bottom:1px solid #4b5d47}.gear-row h3{font-size:14px}.gear-row>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.gear-row button{font-size:11px;padding:8px 2px;line-height:1.7}textarea,input{width:100%;border:1px solid #5b6b51;background:#142f29;color:#efead9;border-radius:8px;padding:12px;margin:12px 0}textarea{font-size:11px;height:65px;resize:none}summary{cursor:pointer;padding:16px 0;font-size:13px}#message{min-height:38px;font-size:12px;line-height:1.5;color:#f8da9a;padding-top:15px}.hub footer{margin-top:auto;padding-top:18px;text-align:center;font-size:10px;letter-spacing:1.5px;color:#9aaf9c}.hub footer strong{color:#ddc895}.result{position:absolute;top:28%;left:9%;right:9%;z-index:3;background:linear-gradient(140deg,#203e34f5,#142a28fa);border:1px solid #cfb77f;border-radius:20px;padding:25px;text-align:center;box-shadow:0 16px 80px #0009}.result>span{font-size:10px;letter-spacing:4px;color:#e9c883}.result h2{font-size:29px;color:#ffe0a1;margin:10px}.result p{font-size:13px;line-height:1.6}.result-stats{font-size:11px}#result-stats{font-size:11px;line-height:1.8;color:#d0dac4;margin-bottom:14px}
@media(max-width:760px){.chronicle-shell{display:flex;flex-direction:column;min-height:100dvh;border:0}.quest-header{height:44px;padding:5px 14px;gap:10px;flex:none}.adventure{height:calc(100dvh - 320px);min-height:360px;max-height:610px;flex:none}.chapter{top:13px}.chapter p{font-size:8px;margin:2px}.chapter h1{font-size:24px;margin:6px}.chapter h1 span{font-size:10px;letter-spacing:6px;margin-top:2px}.chapter #stage-label{margin-top:7px;font-size:10px}.welcome{top:31%}.welcome h2{font-size:20px;line-height:1.4;margin:9px}.welcome .eyebrow{font-size:8px;letter-spacing:1px}.welcome p{font-size:10px}.party-dock{bottom:10px;left:12px;right:12px;gap:6px}.party-dock #party{gap:6px}.hero-button{height:87px}.hero-button canvas{width:58px;height:55px}.hero-button .hero-name{font-size:11px;padding-inline:6px}.hero-button .role-tag{font-size:8px}#support{height:85px;width:62px}#support span{font-size:22px}.hub{border-left:0;border-top:1px solid #536148;padding:13px 17px 12px;overflow:visible}.hub-heading{margin-bottom:5px}.hub-heading .eyebrow{font-size:8px}.hub-heading h2{font-size:17px;margin:4px 0}.tabs{margin-bottom:6px}.tabs button{font-size:12px;min-height:39px;padding:7px 4px}.journey-head h3{font-size:13px;margin:9px 0}.stage-list{gap:6px;margin:5px 0 9px;grid-template-columns:repeat(10,1fr)}.stage-list button{min-height:28px;border-radius:9px;font-size:10px}.stage-story{font-size:11px;line-height:1.5;min-height:0;margin:8px 0 12px}.primary{min-height:46px}.idle-card{margin-top:13px;padding-top:12px}.hub footer{padding-top:8px;font-size:9px}#message{padding-top:8px;min-height:21px;font-size:11px}.battle-hud{top:108px;left:12px;right:12px}.battle-hud button{min-height:32px;font-size:10px;padding:4px 7px}#boss{top:150px;font-size:10px;left:9%;right:9%}#battle-notice{top:38%;font-size:11px}.result{top:25%;padding:18px;left:8%;right:8%}.result h2{font-size:24px}.result p{font-size:11px}body.fighting .adventure{height:calc(100dvh - 44px);max-height:none;min-height:410px}body.fighting .hub{display:none}body.fighting .chapter{top:20px}body.fighting .party-dock{bottom:max(16px,env(safe-area-inset-bottom));}body.fighting .hero-button{height:105px}body.fighting .hero-button canvas{height:75px;width:75px}}
@media(max-width:350px){.stage-list{grid-template-columns:repeat(5,1fr)}.stage-list button{aspect-ratio:auto;min-height:32px}.welcome h2{font-size:18px}.chapter h1{font-size:22px}.hero-button .hero-name{font-size:10px}#support{width:55px}.party-dock{left:8px;right:8px}}
@media(max-height:500px) and (orientation:landscape){.chronicle-shell{display:grid;grid-template-columns:minmax(0,1fr) 290px;grid-template-rows:40px auto}.quest-header{grid-column:1/-1;height:40px}.adventure{height:calc(100dvh - 40px)!important;min-height:320px;max-height:none}.hub{height:calc(100dvh - 40px);overflow:auto;padding:12px}.chapter{top:8px}.chapter p{display:none}.chapter h1{font-size:19px}.chapter h1 span{font-size:9px}.battle-hud{top:76px}#boss{top:118px}body.fighting .hub{display:flex}.party-dock{bottom:8px!important}.hero-button,body.fighting .hero-button{height:74px}.hero-button canvas,body.fighting .hero-button canvas{height:45px;width:50px}#support{height:74px}.welcome h2{font-size:16px}.welcome{top:31%}.result{top:20%;padding:12px}.result h2{font-size:19px}.result p{margin:5px}#result-stats{display:none}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
body.reduced-motion button{transition:none}select{font:inherit;color:#f0e6cc;background:#15332c;border:1px solid #809171;border-radius:9px;padding:11px;min-height:44px;width:100%}select:focus-visible{outline:3px solid #eaca7b;outline-offset:2px}#display-open{font-size:11px;padding:4px 9px;min-height:36px;white-space:nowrap}.settings-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.settings-title h2{margin:0}.settings-title button{font-size:12px}#display-dialog{width:min(390px,92vw)}#display-dialog label{display:block;font-size:13px;margin-top:20px;color:#f2d59d}#display-dialog select{display:block;margin-top:8px;font-size:13px}#display-dialog small{display:block;font-size:10px;line-height:1.7;color:#b5cbb6;margin-top:7px}@media(max-width:760px){.quest-header{gap:7px}.quest-header>a{letter-spacing:1px;font-size:11px}.quest-header #connection{font-size:9px}#display-open{min-width:44px;min-height:36px;padding:4px}.quest-header .paw-sound{flex:none}}
#asset-status{display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px;text-align:center}#asset-retry{background:#dfc583;color:#172c26;pointer-events:auto}
.journey-tools{display:flex;align-items:center;gap:7px;margin:9px 0}.journey-tools>button{flex:1;font-size:11px;background:#1a352d}.play-guide{position:relative;font-size:11px;z-index:12}.play-guide summary{min-height:44px;display:flex;align-items:center;padding:8px 12px;border:1px solid #52615a;border-radius:10px;cursor:pointer;list-style:none}.play-guide>div{position:absolute;right:0;top:50px;width:255px;border:1px solid #aa996a;background:#17352e;border-radius:12px;padding:16px;box-shadow:0 12px 35px #071b1cc9;line-height:1.7;color:#d4dfca}.play-guide p{margin:9px 0 0}.play-guide strong{color:#ffe0a1}
#journal-dialog{width:min(530px,92vw);padding:22px}.journal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.journal-header h2{margin:7px 0 0;font-size:21px}.journal-header .eyebrow{font-size:9px;letter-spacing:1.3px}.journal-header button{font-size:12px;flex:none}.journal-header span{white-space:nowrap}#journal-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.journal-entry{min-height:100px;text-align:left;padding:15px 12px;background:linear-gradient(135deg,#365342,#1a352f)}.journal-entry strong{display:block;font-size:13px;line-height:1.6}.journal-entry small{display:block;font-size:10px;color:#e3cc8e;margin-top:9px}.journal-illustration{position:relative;height:185px;overflow:hidden;border-radius:12px;background:#1a342a}.journal-illustration img{width:100%;height:100%;object-fit:cover;object-position:center 60%;opacity:.7}.journal-illustration:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#17372c55)}#journal-portrait{position:absolute;right:20px;bottom:-3px;width:180px;height:180px;z-index:1}.journal-dialogue{padding:20px 2px 12px;min-height:140px}.journal-dialogue strong{font-size:16px;color:#f3d392}.journal-dialogue p{font-size:14px;line-height:1.9;margin:10px 0 0;color:#e4e9d8}.journal-nav{display:flex;align-items:center;gap:10px;justify-content:space-between}.journal-nav span{font-size:11px;color:#c9d4b9}.journal-nav button{font-size:12px;min-width:94px}#journal-list{width:100%;margin-top:10px;background:transparent;font-size:11px}@media(max-width:350px){#journal-dialog{padding:16px}.journal-header h2{font-size:17px}.journal-header .eyebrow{font-size:8px}.journal-entry{padding:10px;min-height:95px}.journal-entry strong{font-size:12px}.journal-illustration{height:130px}#journal-portrait{height:140px;width:140px}.journal-dialogue{padding-top:15px;min-height:125px}.journal-dialogue p{font-size:12px}.journal-nav button{min-width:78px;font-size:11px}}
.hero-key{display:none;position:absolute;bottom:25px;right:5px;min-width:17px;padding:1px 4px;border:1px solid #b7c3a366;background:#102b25c9;border-radius:4px;font:10px Suite,sans-serif;color:#f2dfb2}@media(hover:hover) and (pointer:fine){body.fighting .hero-key{display:block}body.fighting #support:after{content:'Space';display:block;font-size:9px;color:#e3d4ad;margin-top:2px}}
#result-stats{text-align:left}#result-stats summary{cursor:pointer;min-height:32px;padding:8px 0;color:#eed292;font-size:12px}#result-stats details[open]{padding-bottom:9px}#result-stats .result-contribution{font-size:11px;margin:4px 0 8px}.contribution-row{display:flex;align-items:center;gap:8px;margin:7px 0}.contribution-row canvas{width:42px;height:42px;flex:none}.contribution-row>div{flex:1;min-width:0}.contribution-row strong{font-size:11px}.contribution-row small{font-size:9px;display:block;margin-top:3px;color:#c3d1bd}.contribution-bar{height:4px;margin:5px 0;background:#102820;position:relative;overflow:hidden;border-radius:4px}.contribution-bar:after{content:'';display:block;width:var(--contribution);height:100%;background:#dfc37b}.contribution-note{display:block;font-size:9px;color:#b4c8b4;line-height:1.5}
.charge-label{position:absolute;top:4px;right:6px;color:#ffe3a4;font-size:9px}.member .set-front{margin-left:6px;background:#19332d}.member>div{min-width:0}.member button{margin-top:5px}#result-town{width:100%;margin-top:8px;min-height:40px}#boss-warning{position:absolute;top:32%;left:10%;right:10%;border:1px solid #f1ad75;background:#482b25e8;border-radius:9px;padding:9px 12px;color:#ffe1c1;font-size:12px;text-align:center;pointer-events:none}#boss-warning.exposed{border-color:#bcd6a0;background:#254835ed;color:#e4f4bd}#boss-cast{display:block;width:100%;height:4px;margin-top:7px;border:0}#boss-cast::-webkit-progress-value{background:#f2ad79}.exposed #boss-cast::-webkit-progress-value{background:#c4e491}
@media(max-width:760px){#boss-warning{top:28%;font-size:11px;padding:8px}.result{max-height:65%;overflow-y:auto}.result .primary{min-height:44px}.charge-label{font-size:8px}.member{gap:5px}.member button{padding:7px;font-size:10px}}
@media(max-height:500px) and (orientation:landscape){#boss-warning{top:43%;font-size:10px;padding:5px 8px}#battle-notice{top:35%}.result{max-height:76%;top:15%}.result h2{font-size:19px}.result .primary,#result-town{min-height:35px;padding:7px}.result #result-stats{display:none}}
@media(max-height:500px) and (orientation:landscape){.stage-list{grid-template-columns:repeat(5,minmax(0,1fr))}.stage-list button{aspect-ratio:auto;min-height:28px}.hub{min-height:0}body.fighting .adventure{min-height:320px}}
.member.locked{opacity:.65}.member .hero-skill{line-height:1.6;color:#e1dcc4}.large-party .hero-button canvas{width:100%;max-width:75px}.large-party .hero-name small{display:none}.large-party .hero-name{justify-content:center}.large-party .role-tag{display:none}dialog{background:linear-gradient(145deg,#294838,#132c2b);color:#f4ebd3;border:1px solid #c9b174;border-radius:18px;padding:22px;width:min(380px,90vw);max-height:85dvh;overflow:auto}dialog::backdrop{background:#051512bd;backdrop-filter:blur(3px)}dialog h2{font-size:18px;margin-top:0}#swap-options{display:grid;gap:8px}#swap-close{width:100%;margin-top:12px}.large-party .charge-label{left:0;right:0;text-align:center}
#region-list{display:flex;gap:6px;margin-top:9px}#region-list button{flex:1;padding:7px 4px;font-size:12px;min-height:44px}#region-list .selected{border-color:#e2c47b;color:#ffe3aa;background:#3a503d}#next-goal{font-size:11px;line-height:1.5;color:#e4c98e;border-left:2px solid #c7a867;padding:5px 9px;margin:8px 0 14px}
.challenge-intro h3{font-size:21px;margin:8px 0}.challenge-intro p,.trial-rules p{font-size:12px;line-height:1.8;color:#c2d0bc}#expedition-name-form label{font-size:11px;color:#c4d0b8}.name-controls{display:flex;gap:6px;align-items:center}.name-controls input{min-width:0;margin:6px 0 14px}.name-controls button{white-space:nowrap;margin-bottom:8px;font-size:12px}.trial-entry{border:1px solid #647451;border-radius:14px;padding:14px;background:linear-gradient(145deg,#344f38,#223c33);margin:8px 0 20px}.trial-entry strong{font-size:15px;color:#ffe2a2}.trial-entry p{font-size:11px;line-height:1.6;color:#ccd6b8}.trial-floor-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.trial-floor-row label{font-size:11px;white-space:nowrap}.trial-floor-row input{width:56px;margin:0;padding:10px 6px;text-align:center;min-height:44px}.trial-floor-row button{flex:1;font-size:10px;padding:7px 4px}.rank-heading{display:flex;align-items:center;justify-content:space-between}.rank-heading h3{font-size:17px}.rank-heading button{font-size:11px;padding:8px}.rank-season-label{display:flex;align-items:center;gap:8px;font-size:11px}.rank-season-label input{width:auto;flex:1;min-width:0;margin:6px 0 12px}.rank-me{font-size:13px;line-height:1.6;padding:12px;background:#1a342e;border:1px solid #c3a66a;border-radius:10px;color:#f5db9f}#trial-rank-target{font-size:11px;line-height:1.5;color:#bcd4be}#trial-rank-list{list-style:none;margin:12px 0;padding:0;display:grid;gap:6px}#trial-rank-list li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:5px;padding:11px 8px;border-radius:8px;background:#284236;font-size:12px}#trial-rank-list .place{font-weight:800;color:#e7c989}#trial-rank-list .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#trial-rank-list .record{font-size:10px;color:#c3d4bb}#trial-rank-list .mine{outline:1px solid #e6c77d;background:#40563b}#trial-rank-status{font-size:10px;color:#b0c2ab;line-height:1.6}.trial-rules summary{font-size:12px}.relic-heading{font-size:13px;margin:20px 0 10px}#relic-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.relic-card{padding:12px 9px;text-align:left;min-height:90px;background:#1e3931}.relic-card b{display:block;font-size:12px;color:#e4d7b2}.relic-card span{display:block;margin-top:7px;font-size:10px;line-height:1.6;color:#bdcfb8}.relic-card.equipped{opacity:1;border-color:#edcc80;background:#3a4e33}.tabs button{white-space:nowrap}
@media(max-width:760px){.tabs button{font-size:11px;min-height:44px}#challenge{padding-top:12px}.challenge-intro h3{font-size:20px}.relic-card{min-height:83px}.trial-rules p{font-size:11px}}
@media(max-width:760px){.large-party .hero-button canvas,body.fighting .large-party .hero-button canvas{width:100%;height:65px;margin-top:12px}.large-party .hero-button,body.fighting .large-party .hero-button{height:103px}.party-dock:has(.large-party){left:6px;right:6px;gap:4px}.party-dock .large-party{gap:4px}body.fighting .party-dock:has(.large-party) #support{width:48px;padding:4px 1px}.large-party .hero-button{min-height:44px}.large-party .hero-name{font-size:10px;padding-inline:1px}.large-party .charge-label{font-size:8px}.member canvas{width:62px}.member>div{flex:1}}
@media(max-height:500px) and (orientation:landscape){body.fighting .large-party .hero-button{height:74px}body.fighting .large-party .hero-button canvas{height:43px;margin-top:9px}.large-party .hero-name{font-size:9px}}
@media(max-width:760px) and (max-height:650px) and (orientation:portrait){body.fighting .chapter{top:7px}body.fighting .chapter p,body.fighting .chapter h1 span{display:none}body.fighting .chapter h1{font-size:20px;margin:3px}body.fighting .chapter #stage-label{margin-top:4px}body.fighting .battle-hud{top:63px}body.fighting #boss{top:105px}body.fighting #boss-warning{top:140px}body.fighting #battle-notice{top:38%;font-size:10px}body.fighting .party-dock{bottom:max(8px,env(safe-area-inset-bottom))}}
.member .member-name{border:0;border-radius:5px;min-height:36px;margin:-5px 0 1px;padding:5px 0;background:transparent;font-size:15px;color:#f5dfb0;text-align:left}.member .member-name:hover{background:transparent;color:#fff4d9}.member .member-name:focus-visible{outline-offset:3px}#hero-book-dialog{width:min(430px,92vw);padding:22px}.hero-book-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.hero-book-heading .eyebrow{font-size:8px;letter-spacing:1.2px}.hero-book-heading button{font-size:12px}.hero-book-art{height:165px;margin-top:5px;background:radial-gradient(ellipse at center bottom,#a5c78940,transparent 65%)}#hero-book-portrait{display:block;width:180px;height:180px;margin:0 auto}.hero-book-name{text-align:center;margin:20px 0 15px}.hero-book-name>span{font-size:10px;color:#d8c78d}.hero-book-name h2{font-size:26px;margin:7px 0}.hero-book-name p{font-size:11px;color:#b7cbb6;margin:0}#hero-book-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center;padding:12px 5px;border-block:1px solid #71846366}#hero-book-stats small{display:block;font-size:9px;color:#b7cbb6}#hero-book-stats b{display:block;font-size:15px;margin-top:6px;color:#f1d29a}#hero-book-skills{font-size:12px;line-height:1.8;margin:20px 0}#hero-book-skills dt{font-weight:800;color:#edcf94;margin-top:15px}#hero-book-skills dd{margin:5px 0 0;color:#d4dfcb}#hero-book-tip{border-left:2px solid #cfb97c;padding:9px 12px;background:#3d583c55;font-size:11px;line-height:1.8;color:#e4e2c2}#target-dialog{width:min(390px,92vw)}#target-options{display:grid;gap:8px;margin-top:12px}#target-options button{display:flex;align-items:center;gap:12px;text-align:left;min-height:74px;padding:6px 12px}#target-options canvas{height:64px;width:64px;flex:none}#target-options b{display:block;font-size:13px}#target-options small{display:block;font-size:10px;color:#c0d0b7;margin-top:6px}#target-auto{width:100%;font-size:12px}.battle-hud #target-open{color:#ead3a0}.battle-hud>span{white-space:nowrap}.battle-hud{gap:8px}@media(max-width:350px){.battle-hud{left:8px;right:8px;gap:4px}.battle-hud button{padding:4px 5px;font-size:9px}.battle-hud>div{gap:3px}.battle-hud>span{font-size:9px}#hero-book-dialog{padding:17px}.hero-book-heading .eyebrow{font-size:7px}.hero-book-art{height:135px}#hero-book-portrait{height:150px;width:150px}.hero-book-name{margin-top:15px}#hero-book-skills{font-size:11px}.member .member-name{font-size:13px}}
.quest-header .paw-sound summary{min-height:36px;display:flex;align-items:center;border-color:#52615a;background:#293f3a;color:#efdfb9;font-size:11px;padding:6px 10px;border-radius:10px}.quest-header .paw-sound>div{background:#19372e;border-color:#7c8f68;box-shadow:0 8px 26px #061e1b66}.quest-header .paw-sound label{color:#dbe4cf}.quest-header .paw-sound input{accent-color:#dfc57e}.hero-book-note{display:block;font-size:9px;color:#a8c2ad;line-height:1.7;margin-top:15px}

/* Draft formation editor: fixed action footer, scrollable content on small screens. */
#formation-dialog{width:min(490px,94vw);padding:20px;max-height:92dvh;overflow:auto}.formation-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.formation-heading .eyebrow{font-size:8px;letter-spacing:1.4px}.formation-heading h2{font-size:23px;margin:5px 0}.formation-heading>button{flex:none;font-size:12px}.formation-intro{font-size:11px;line-height:1.7;color:#bcd0ba;margin:12px 0}.formation-lane h3{font-size:10px;color:#d9d7ab;margin:14px 0 7px}.formation-slots{display:grid;gap:7px}.formation-slots button{padding:6px 5px;background:#1d382f;min-width:0}.formation-slots button[aria-pressed=true]{border-color:#f0d48b;background:#425638;box-shadow:inset 0 0 0 1px #dfc785}.formation-slots canvas{display:block;width:62px;height:62px;margin:0 auto}.formation-slots b{display:block;font-size:12px}.formation-slots small{display:block;font-size:9px;color:#c9d6bc;margin-top:3px}#formation-selection{font-size:11px;color:#f2d79b;line-height:1.6;margin:17px 0 9px}#formation-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#formation-roster button{position:relative;min-width:0;padding:5px 4px 8px;background:#19322c}#formation-roster button.in-party{border-color:#899766}#formation-roster canvas{display:block;width:48px;height:48px;margin:auto}#formation-roster b{display:block;font-size:11px}#formation-roster small{display:block;font-size:9px;margin-top:3px;color:#c3d1b7}.formation-plans{display:flex;gap:6px;margin-top:16px}.formation-plans button{flex:1;padding:7px 4px;font-size:11px}.formation-plan-note{display:block;font-size:10px;line-height:1.6;color:#aebfa8;margin:7px 0}#formation-advice{font-size:11px;line-height:1.8;padding:10px 12px;background:#3f563655;border-left:2px solid #d1b875;border-radius:4px;margin:12px 0}.formation-footer{display:flex;gap:8px;position:sticky;bottom:-20px;padding:12px 0 4px;background:#19372ef5;border-top:1px solid #667d5155;z-index:1}.formation-footer button{flex:1;padding:9px 6px;font-size:12px}.formation-footer .primary{margin:0;min-height:44px;width:auto}#formation{width:100%;margin-top:10px;color:#f0d393}
@media(max-width:350px){#formation-dialog{padding:14px}.formation-heading h2{font-size:20px}.formation-slots canvas{width:50px;height:50px}.formation-footer{bottom:-14px}#formation-roster small{font-size:8px}}
@media(max-height:500px) and (orientation:landscape){#formation-dialog{width:min(620px,94vw)}#formation-field{display:grid;grid-template-columns:2fr 3fr;gap:10px}.formation-slots canvas{width:44px;height:44px}#formation-roster{grid-template-columns:repeat(6,minmax(0,1fr))}.formation-intro{margin:6px 0}}
.formation-footer{background:#1d382f;box-shadow:0 -8px 12px #1d382f}.gear-row .gear-hero-name{padding:5px 0;min-height:36px;background:transparent;border:0;font-size:14px;color:#ead2a0;text-align:left}.gear-row .gear-hero-name:hover{color:#fff0c3;background:transparent}.gear-current{font-size:11px;line-height:1.7;color:#b8cdb6;margin:0 0 10px}.gear-row>div button{min-height:62px;padding:7px 4px}.gear-row button b{display:block;font-size:12px}.gear-row button small{display:block;font-size:10px;line-height:1.6;margin-top:5px;color:#cbd6b5}
#stage-scout{margin:12px 0}.scout-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:#b9cbb2}.scout-strip b{font-size:11px;color:#e8ce8e}#scout-details{border:1px solid #5b725255;border-radius:11px;background:#19372d66;margin-top:8px;padding:0 11px 10px}#scout-details:not([open]){padding-bottom:0}#scout-details>summary{font-size:12px;color:#dfd4ad;min-height:44px;padding:13px 0;cursor:pointer}#scout-level{font-size:11px;line-height:1.6;color:#b6d0b3;margin:1px 0 12px}#scout-level.needs-training{color:#eacb8c}#scout-waves h4{font-size:10px;font-weight:600;color:#afc5ab;margin:12px 0 5px}.scout-enemies{display:grid;gap:6px}.scout-enemy{text-align:center;border-radius:8px;background:#29463866;padding:7px 3px;min-width:0}.scout-enemy canvas{display:block;width:58px;height:58px;margin:0 auto 4px}.scout-enemy b{display:block;font-size:10px;color:#ead7ac;line-height:1.6;word-break:keep-all}.scout-enemy small{display:block;font-size:9px;line-height:1.6;margin-top:4px;color:#b5c7af;word-break:keep-all}#scout-tip{font-size:11px;line-height:1.8;color:#dbe0be;border-left:2px solid #c8b579;padding-left:9px;margin:14px 0}.scout-note{display:block;font-size:9px;color:#a4bba2;line-height:1.7}#scout-party{width:100%;font-size:11px;margin-top:10px}
#quick-entry{display:none}
@media(max-width:760px) and (orientation:portrait){#quick-entry{position:fixed;z-index:10;left:10px;right:10px;bottom:max(9px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:12px;background:#19382df5;border:1px solid #ad985e;border-radius:14px;padding:9px 10px 9px 14px;box-shadow:0 4px 24px #071c1bcc;backdrop-filter:blur(10px)}#quick-entry>div{min-width:0}#quick-entry small{display:block;font-size:9px;color:#bdcba9;margin-bottom:5px}#quick-entry b{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eee1b7}#quick-depart{width:auto;min-width:130px;flex:none;margin:0;padding:11px 12px;font-size:12px;min-height:46px}body.quick-entry-visible .hub{padding-bottom:100px}}
.welcome h2{white-space:pre-line}
@media(max-width:760px) and (max-height:650px) and (orientation:portrait){body:not(.fighting) .welcome{top:27%}.welcome>.eyebrow{display:none}.welcome h2{font-size:18px;line-height:1.35;margin:6px 0}.welcome p{font-size:10px;margin:5px 0}}
@media(max-width:350px) and (max-height:600px) and (orientation:portrait){body:not(.fighting) .adventure{height:310px;min-height:310px}body:not(.fighting) .welcome{top:31%}.welcome h2{display:none}.welcome p{font-size:10px}}

.growth-step{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#c5d6b4;font-size:11px;margin:0 0 12px}.growth-step select{min-height:44px;min-width:114px;padding:8px 12px;border:1px solid #6a8257;border-radius:10px;color:#eee0b5;background:#243e32;font:inherit}.growth-step select:focus-visible{outline:2px solid #f1d285;outline-offset:2px}#journey-trial{width:100%;min-height:44px;margin:8px 0;color:#f0d393;font-size:12px}
button[aria-disabled="true"]{opacity:.5;cursor:wait}
.idle-card>div{min-width:0;flex:1}.idle-card #idle-fill{display:block;appearance:none;width:100%;height:5px;margin:7px 0;border:0;border-radius:9px;overflow:hidden;background:#0c2820;accent-color:#d6bb75}.idle-card #idle-fill::-webkit-progress-bar{background:#0c2820}.idle-card #idle-fill::-webkit-progress-value{background:#d6bb75;border-radius:9px}.idle-card #idle-fill::-moz-progress-bar{background:#d6bb75;border-radius:9px}.idle-card #idle-rate{font-size:10px;color:#b7c9a7}.idle-card #claim{min-width:64px;min-height:44px;flex:none}
/* Collection and equipment: compact cards, stable two-column phone layout. */
.hub>.tabs{flex-shrink:0;min-height:48px}.hub>.tab-panel{flex-shrink:0}
.tabs{overflow-x:auto;scrollbar-width:thin}.tabs button{flex:1 0 auto}
#collection{padding-top:12px}.collection-wallet,.collection-nav,.collection-draw{display:flex;gap:8px;align-items:center;margin:10px 0}.collection-wallet{justify-content:space-between;color:#ffe3a4}.collection-wallet span{font-size:12px}.collection-nav button,.collection-draw button{flex:1;min-height:44px;padding:8px 5px;font-size:12px}.collection-nav [aria-pressed=true]{border-color:#e3bd68;background:#4d593b;color:#ffdfa0}.collection-draw button{background:linear-gradient(120deg,#776139,#3a4a35);color:#ffebbc}.collection-pity{font-size:12px;color:#e5cb8e;line-height:1.7}#collection details{font-size:12px;line-height:1.7;color:#c4d1c0;margin:12px 0}#collection summary{cursor:pointer;min-height:32px}#collection select{width:100%;background:#203d34;color:#f8ecd1;border:1px solid #687a5c;border-radius:10px;padding:12px;min-height:44px}.collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.collection-card{display:flex;flex-direction:column;min-width:0;padding:10px;border:1px solid #536b54;border-radius:14px;background:radial-gradient(ellipse at 50% 22%,#405d44,#1b342d 75%)}.collection-card[data-stars="3"]{border-color:#65b690}.collection-card[data-stars="4"]{border-color:#af95d5;background:radial-gradient(ellipse at 50% 22%,#534369,#21372f 75%)}.collection-card[data-stars="5"]{border-color:#e3bd68;background:radial-gradient(ellipse at 50% 22%,#6a5430,#223930 75%)}.collection-card canvas{width:100%;height:auto;aspect-ratio:1;object-fit:contain}.collection-card b{font-size:12px;line-height:1.7;color:#ffe4af}.collection-card p{font-size:11px;line-height:1.7;color:#cbd6c1;flex:1}.collection-card button{font-size:11px;min-height:44px;padding:8px 3px}.collection-card small{font-size:10px;color:#ffe09a;margin-bottom:8px}.collection-preview{display:flex;align-items:center;justify-content:center;gap:12px;background:radial-gradient(ellipse,#485b3d,#1a352d);border-radius:12px;margin-top:10px}.collection-preview canvas{width:130px;height:150px;object-fit:contain}.collection-preview span{font-size:12px;max-width:130px;line-height:1.7}@media(max-width:350px){.collection-grid{gap:7px}.collection-card{padding:7px}.collection-card b{font-size:11px}.tabs button{font-size:10px;padding:8px}}

.collection-lineage{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 2px 10px;gap:10px}.collection-lineage .collection-card{flex:0 0 clamp(118px,32vw,150px);scroll-snap-align:start}.collection-lineage-note{font-size:11px;color:#d4dfc9;line-height:1.7}.collection-lineage .collection-card[data-stars="1"]{border-color:#80918a;background:radial-gradient(ellipse at 50% 22%,#405048,#1b342d 75%)}
/* Compare the outgoing and incoming companion before committing a formation. */
.formation-pair{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}.formation-arrow{font-size:19px;color:#f0d48b;flex:none}#formation-roster .formation-pair canvas{width:38px;height:48px;margin:0}#formation-roster .formation-pair canvas:last-child{width:49px;height:54px}#formation-change{padding:9px 12px;margin-top:12px;border:1px solid #d7bb79;border-radius:12px;background:#53604455;text-align:center}#formation-change .formation-pair canvas{width:68px;height:68px}#formation-change b,#formation-change small{display:block;margin-top:5px}#formation-change b{font-size:12px;color:#ffe4ad}#formation-change small{font-size:10px;color:#d0dec4}#swap-options button{display:flex;align-items:center;gap:12px;text-align:left;font-size:12px}#swap-options .formation-pair{flex:none}#swap-options canvas{width:48px;height:54px}
/* Large, read-only motion showcase for every catalogue appearance. */
.collection-card .collection-enlarge{background:#264439;color:#f7dfa1;margin-bottom:6px;border-color:#77946c}#collection-viewer{width:min(570px,94vw);max-height:94dvh;padding:18px;overflow:auto}.collection-viewer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.collection-viewer-heading>div{min-width:0}.collection-viewer-heading small{font-size:9px;letter-spacing:1.6px;color:#dbc68d}.collection-viewer-heading h2{font-size:19px;line-height:1.4;margin:6px 0 10px;overflow-wrap:anywhere}.collection-viewer-heading button{flex:none;font-size:12px}.collection-viewer-grade{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:5px}.collection-viewer-grade button{width:44px;padding:3px;font-size:25px}.collection-viewer-grade select{min-height:44px;max-width:190px;background:#1d392e;color:#ffe2a9;border:1px solid #829368;border-radius:10px;padding:7px 15px;font:inherit}.collection-viewer-stage{display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 65%,#64795055,#18382b00 70%);border-bottom:1px solid #a3ab7244;overflow:hidden}.collection-viewer-stage canvas{width:min(100%,420px,48dvh);height:auto;aspect-ratio:1;object-fit:contain}#collection-viewer-poses{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin:12px 0}#collection-viewer-poses button{flex:1;min-width:65px;min-height:44px;padding:6px 4px;font-size:11px}#collection-viewer-poses [aria-pressed=true]{background:#586239;color:#ffedb9;border-color:#e1c786}.collection-viewer-play{display:flex;align-items:center;justify-content:center;gap:14px}.collection-viewer-play button{font-size:12px;min-width:138px}.collection-viewer-play span{font-size:11px;color:#e2d09c}#collection-viewer-info{font-size:11px;line-height:1.7;text-align:center;color:#d1dfc8;margin:12px 0 7px}.collection-viewer-note{display:block;font-size:10px;text-align:center;color:#aebea8}@media(max-width:380px){#formation-roster{grid-template-columns:repeat(2,minmax(0,1fr))}#collection-viewer{padding:12px}.collection-viewer-heading h2{font-size:16px}#collection-viewer-poses button{font-size:10px;min-width:68px}#swap-options button{gap:6px;font-size:11px}#swap-options canvas{width:40px;height:48px}}@media(max-height:500px) and (orientation:landscape){#collection-viewer{max-height:94dvh;width:min(720px,94vw)}.collection-viewer-stage canvas{width:min(100%,260px,45dvh)}#formation-roster .formation-pair canvas{width:26px;height:35px}#formation-roster .formation-pair canvas:last-child{width:34px;height:38px}#formation-roster .formation-arrow{font-size:13px}}

/* Expedition growth and class-compatible loot. */
#talent-dialog{width:min(540px,94vw);max-height:92dvh;overflow:auto} .talent-row{display:grid;grid-template-columns:1fr 44px 36px 44px;gap:6px;align-items:center;margin:12px 0}.talent-row button{min-height:44px}.talent-row b{text-align:center}.loot-bag{border:1px solid #d4b67455;border-radius:18px;padding:14px;margin:12px 0}.loot-wearer{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.loot-wearer canvas{width:70px;height:70px}.loot-card{border-color:var(--loot-color)}.loot-card b{color:var(--loot-color)}.loot-comparison{font-size:12px;color:#b8e6ce}.loot-bag select,#region-list select{width:100%;min-height:44px;margin-bottom:8px}#region-list{flex-wrap:wrap}#region-list button{flex:1;min-width:65px;font-size:12px}#trial-floor-records{display:grid;gap:6px}.collection-wallet{flex-wrap:wrap}.collection-wallet small{flex-basis:100%}.member button[data-talents]{margin:5px 4px 5px 0;min-height:40px}.collection-viewer-stage{background:radial-gradient(ellipse at 50% 90%,#d1ae7744,transparent 58%)}
@media(max-width:380px){.talent-row{grid-template-columns:1fr 36px 22px 36px;font-size:12px}.loot-bag{padding:10px}.collection-card{padding:10px}}

#world-map{width:min(640px,94vw);max-height:92dvh;overflow:auto}.world-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.world-map-grid button{min-height:72px;display:flex;flex-direction:column;gap:6px;text-align:left;padding:10px}.world-map-grid small{font-size:11px}.journey-tools{flex-wrap:wrap}

.training-wallet{padding:10px;border-radius:12px;background:#d4b67414;color:#ffe6b5;font-size:13px;line-height:1.6}

.loot-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.loot-tools label{min-width:0;font-size:11px;color:#dcd3ae}.loot-tools select{display:block;margin-top:5px;font-size:11px;padding:8px 4px}.loot-count{font-size:11px;line-height:1.7;color:#c8d9c1}.loot-card button{min-height:44px}.loot-card button[aria-pressed=true]{border-color:#e8ca7d;color:#ffe3a0}#loot-sale-dialog{width:min(390px,92vw);box-sizing:border-box}#loot-sale-art{display:block;width:130px;height:114px;margin:0 auto 12px}#loot-sale-name{display:block;text-align:center;color:#ffe3a0}#loot-sale-dialog p{font-size:13px;line-height:1.8}#loot-sale-confirm{width:100%;min-height:44px;background:#6d4437}@media(max-width:350px){.loot-tools{grid-template-columns:1fr}.loot-tools label{display:grid;grid-template-columns:70px 1fr;align-items:center}.loot-tools select{margin:0}}

.growth-history{margin:18px 0 0;padding:12px;background:#16332c;border:1px solid #56654c;border-radius:12px}.growth-history summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:12px;color:#efd798}.growth-history small{font-size:10px;line-height:1.8;color:#b8cdb9}.growth-history p{font-size:11px;line-height:1.8}.growth-history-list{max-height:250px;overflow:auto;margin-top:12px}.growth-history-list p{border-bottom:1px solid #45604d;padding-bottom:8px}.growth-history-list b,.growth-history-list span{display:block}
.collection-viewer-gear{display:flex;justify-content:center;align-items:center;gap:9px;font-size:11px;margin-top:14px;min-height:44px}.collection-viewer-gear input{width:20px;height:20px;accent-color:#ddc077}#loot-preview-dialog{width:min(700px,94vw);max-height:92dvh;overflow:auto;box-sizing:border-box;padding:16px}#loot-preview-title{font-size:17px;overflow-wrap:anywhere}.loot-preview-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.loot-preview-pair figure{margin:0;min-width:0;background:radial-gradient(ellipse at 50% 85%,#6b784144,transparent 70%);border:1px solid #89946a55;border-radius:12px;overflow:hidden}.loot-preview-pair canvas{display:block;width:100%;height:auto;aspect-ratio:1}.loot-preview-pair figcaption{text-align:center;font-size:12px;color:#f0db9e;padding:9px}#loot-preview-pose{width:100%;min-height:44px;margin-top:12px;background:#233f32;color:#f8e7be;border:1px solid #89946a;border-radius:9px;padding:8px;font:inherit}#loot-preview-status,#loot-preview-stats{font-size:12px;line-height:1.7}#loot-preview-apply{width:100%;min-height:44px}#loot-preview-dialog>small{display:block;text-align:center;color:#c0ceb4;font-size:10px;margin-top:10px}@media(max-width:380px){#loot-preview-dialog{padding:10px}.loot-preview-pair{gap:4px}.loot-preview-pair figcaption{font-size:11px}#loot-preview-title{font-size:14px}}
.loot-auto{display:flex;align-items:center;gap:9px;min-height:44px;font-weight:700}.loot-auto input{width:20px;height:20px;accent-color:#eac67d}.loot-bag>small{display:block;line-height:1.7;color:#c4d1ba;margin:0 0 10px}#loot-best{min-height:44px;margin-bottom:14px}.star-recommend{color:#ffdf89!important;line-height:1.6}.star-current{font-size:12px;color:#c4d1ba}button.star-recommend{border:1px solid #d0ae60;background:#3e4430;min-height:44px;padding:7px 10px;margin:4px 0}.hero-name .star-recommend{font-size:9px;white-space:normal}#star-upgrade-dialog{width:min(660px,94vw);max-height:92dvh;overflow:auto;box-sizing:border-box;padding:16px}#star-upgrade-title{font-size:17px}#star-upgrade-info{font-size:12px;line-height:1.8}#star-upgrade-apply{width:100%;min-height:44px}#formation-roster .star-recommend{font-size:10px}
:root { --mastery-gold: #ffe39d; }
#adventure-goals { margin: 10px 0; display: grid; gap: 6px; }
#adventure-board-open { width: 100%; color: var(--mastery-gold); border-color: #857248; }
.goal-teaser { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 9px; background: #203836; border-radius: 10px; }
.goal-teaser span { flex: 1; min-width: 0; }
.goal-teaser button { font-size: 11px; flex-shrink: 0; }
#adventure-board { width: min(680px,calc(100vw - 24px)); max-height: calc(100dvh - 30px); overflow-y: auto; padding: 18px; box-sizing: border-box; }
.mastery-wallet { color: var(--mastery-gold); font-weight: 700; }
.mastery-earned { display: flex; align-items: center; gap: 8px; background: #455335; border: 1px solid var(--mastery-gold); border-radius: 12px; padding: 10px; }
.mastery-earned canvas { width: 54px; height: 48px; flex: 0 0 54px; }
.mastery-earned div { flex: 1; min-width: 0; }
.mastery-earned b,.mastery-earned small { display: block; font-size: 12px; }
.mastery-earned small { font-size: 11px; margin-top: 5px; }
.mastery-earned button { flex-shrink: 0; font-size: 11px; }
.mastery-section { margin: 14px 0; padding: 12px; border: 1px solid #4d6861; border-radius: 12px; }
.mastery-section h3 { margin: 0 0 10px; }
.mastery-section p { font-size: 12px; line-height: 1.6; }
.mastery-section summary { cursor: pointer; font-weight: 700; }
.mastery-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 10px 0; }
.mastery-controls label { display: grid; gap: 6px; min-width: 0; font-size: 11px; position: relative; }
.mastery-controls label::after { content: '⌄'; position: absolute; bottom: 9px; right: 8px; color: #cbe2ce; pointer-events: none; font-size: 14px; }
.mastery-controls select { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; color: #f3f5e8; background: #213832; border: 1px solid #678477; border-radius: 8px; padding: 9px 21px 9px 5px; font: inherit; }
.mastery-boons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 10px 0; }
.mastery-boons button { display: grid; gap: 8px; text-align: left; padding: 10px 8px; min-width: 0; }
.mastery-boons small { font-size: 11px; line-height: 1.5; }
.mastery-boons button[aria-pressed=true] { border-color: var(--mastery-gold); background: #475138; box-shadow: inset 0 0 0 1px var(--mastery-gold); }
#mastery-objectives { color: var(--mastery-gold); }
#mastery-start { width: 100%; }
.mastery-exchange-preview { display: flex; align-items: center; gap: 10px; }
.mastery-exchange-preview canvas { width: 62px; height: 62px; flex: 0 0 62px; }
.goal-row { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #375348; }
.goal-row div { min-width: 0; }
.goal-row b,.goal-row small { display: block; font-size: 12px; }
.goal-row small { margin-top: 4px; color: #c0d2c3; font-size: 11px; }
.goal-row button { flex-shrink: 0; font-size: 11px; }
@media(max-width:400px) { #adventure-board { padding: 12px; } .mastery-section { padding: 9px; } .mastery-boons { grid-template-columns: 1fr; } .mastery-boons button { grid-template-columns: 90px 1fr; gap: 6px; } }
