:root{color-scheme:dark;--bg:#0b1012;--panel:#141d20;--line:#2d393b;--gold:#dab87b;--text:#e8e7de;--muted:#8d9b9d}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 40% 0%,#223033 0%,var(--bg) 65%);color:var(--text);font:16px/1.5 system-ui,-apple-system,'PingFang TC',sans-serif}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:#1b272a;border-radius:5px;padding:11px 15px;transition:.2s}button:hover{border-color:var(--gold);background:#2c3533}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.app{max-width:1450px;margin:auto;padding:0 34px}header{height:100px;display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--line);margin-bottom:28px}.brand{display:flex;align-items:center;gap:14px}.seal{font-size:42px;color:var(--gold)}h1,h2,h3,p{margin:0}h1{font-family:serif;font-size:24px;letter-spacing:5px}.brand small{letter-spacing:4px;font-size:10px;color:var(--gold)}.edition{margin-left:auto;color:var(--muted);font-size:13px;border:1px solid var(--line);padding:4px 12px;border-radius:30px}#help{border-radius:50%;padding:0;width:32px;height:32px}main{display:grid;grid-template-columns:260px minmax(350px,1fr) 260px;gap:24px;align-items:start}.panel{background:linear-gradient(145deg,#182326,#121b1e);border:1px solid var(--line);border-radius:8px}.profile{padding:24px 20px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted)}.identity{display:flex;gap:14px;align-items:center;margin:24px 0}.identity h2{font-family:serif;font-size:22px}.class-mark{width:58px;height:65px;display:grid;place-items:center;font-size:34px;color:var(--gold);border:1px solid #786a49;background:#292c25;border-radius:6px}#level{color:var(--gold);font-size:14px}.muted{color:var(--muted);font-size:13px}.bar-label{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.bar{height:5px;background:#080d0f;border-radius:4px;overflow:hidden;margin:7px 0}.bar i{display:block;height:100%;background:var(--gold);transition:width .35s;width:0}.stats{display:flex;justify-content:space-between;margin:22px 0}.stats div{display:flex;flex-direction:column}.stats span{font-size:12px;color:var(--muted)}.stats strong{font-weight:500;font-size:22px}.currencies{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0}.currencies span{display:flex;justify-content:space-between;padding:6px 0;font-size:14px;color:var(--gold)}.currencies strong{font-variant-numeric:tabular-nums}.class-picker{display:flex;gap:5px;margin-top:22px}.class-picker button{padding:8px 5px;font-size:12px;flex:1}.class-picker .selected{border-color:var(--gold);color:var(--gold);background:#302e24}.hint{font-size:11px;margin-top:9px;text-align:center}.desktop-note{margin-top:42px;border-top:1px solid var(--line);padding-top:25px}.desktop-note span{font-size:12px;color:var(--gold)}.desktop-note h3{font-family:serif;font-size:18px;margin:10px 0}.desktop-note p{font-size:13px;color:var(--muted);line-height:1.9}.scene{height:430px;position:relative;background:linear-gradient(0deg,#071313 0%,transparent 70%),url('forest.png') center/cover;border:1px solid #52615b;border-radius:8px;overflow:hidden;padding:22px;box-shadow:0 15px 60px #0005}.scene:before{content:'';position:absolute;inset:0;background:linear-gradient(#07111288,transparent 50%,#081719b0);pointer-events:none}.scene>*{position:relative}.scene-top{display:flex;justify-content:space-between;font-size:11px;letter-spacing:2px}.region{color:var(--gold)}.status{color:#b4d8c7;letter-spacing:1px;font-size:12px}.place{text-align:center;margin-top:16px}.place>span{font-size:10px;letter-spacing:3px;color:#b8c7ba}.place h2{font-family:serif;letter-spacing:7px;font-size:32px;margin:5px}.place p{font-size:12px;color:#c1cec5}.enemy{max-width:260px;margin:24px auto 0}.enemy-top{display:flex;justify-content:space-between;font-size:12px}.red i{background:#b96555}.combat{height:115px;display:flex;align-items:center;justify-content:center;flex-direction:column}.combat-sigil{font-size:50px;color:#f9db9d;filter:drop-shadow(0 0 15px #e2ae4d);transition:transform .2s}.strike{transform:scale(1.2) rotate(-12deg)}#damage{position:absolute;top:0;right:32%;color:#ffe0a3;font-size:26px;font-weight:bold;text-shadow:0 2px 4px #000}.battle-caption{font-size:12px;color:#c1cdc5;margin-top:8px}.hero-health{max-width:260px;margin:auto;font-size:11px;color:#bdcfc9}.hero-health span{display:flex;justify-content:space-between}.green i{background:#7ca88b}.scene-bottom{display:flex;justify-content:space-between;margin-top:19px;font-size:11px;color:#c3c5b5}.battle-actions{display:flex;gap:10px;margin:14px 0 22px}.battle-actions button{flex:1}.primary{background:linear-gradient(110deg,#dbc08c,#b8955d);color:#1e211c;border-color:#e6cd9b;font-weight:600}.primary:hover{background:#e4c995;color:#111}#skill small{font-size:11px;color:var(--muted);margin-left:6px}.tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:14px}.tabs button{flex:1;border:0;border-radius:0;background:transparent;color:var(--muted);padding:12px}.tabs .active{color:var(--gold);border-bottom:2px solid var(--gold)}.content{padding:17px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-heading h3{font-size:15px}.section-heading span{font-size:11px;color:var(--muted)}.map,.item{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.map:first-of-type{border:0}.map-index{color:#8a8064;font-family:serif;font-size:20px;width:29px}.map-info{flex:1}.map-info strong,.item strong{display:block;font-size:14px;font-weight:500}.map-info small,.item small{font-size:12px;color:var(--muted)}.map button,.item button{padding:6px 12px;font-size:12px}.map.chosen strong{color:var(--gold)}.journal{padding:22px 18px}.journal-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:20px}.journal h2{font-size:18px;font-family:serif;margin-top:4px}.live{font-size:9px;letter-spacing:2px;color:#90af9d}#logs{min-height:410px;max-height:480px;overflow:hidden}.log{padding:14px 0;border-bottom:1px solid #273335;font-size:12px;color:#b4bfbe}.log time{display:block;font-size:10px;color:#6d8083;margin-bottom:3px}.log.rare{color:var(--gold)}.save-note{font-size:11px;color:var(--muted);padding-top:20px;line-height:1.9}footer{display:flex;justify-content:space-between;padding:28px 0;font-size:12px;color:#66787b}.boss-card{text-align:center;padding:20px 8px}.boss-card .boss-symbol{font-size:46px;color:var(--gold)}.boss-card p{color:var(--muted);font-size:13px;margin:10px 0 20px}.equip{background:#222d2c;border:1px solid #756b4f;padding:14px;border-radius:6px;margin-bottom:12px}.equip h3{font-size:16px;color:var(--gold)}.equip p{font-size:13px;color:var(--muted);margin:5px 0 14px}.equip button{width:100%}.rarity{color:#ae9bdd}.item-icon{font-size:24px;color:var(--gold)}.item>div:nth-child(2){flex:1}#toast{position:fixed;left:50%;bottom:35px;transform:translateX(-50%);background:#d9c193;color:#20251e;padding:12px 23px;border-radius:7px;z-index:10;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;text-align:center;font-size:14px}#toast.show{opacity:1}dialog{border:1px solid #8f7b54;background:#172224;color:var(--text);border-radius:10px;max-width:400px;width:90%;padding:28px}dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}dialog h2{font-family:serif;color:var(--gold);margin-bottom:15px}dialog p{font-size:14px;color:#bbc6c3;margin:12px 0}dialog button{width:100%;margin-top:15px}@media(min-width:1500px){.app{padding-top:20px}.scene{height:480px}.combat{height:165px}}@media(max-width:1150px){main{grid-template-columns:220px minmax(330px,1fr)}.journal{grid-column:1/-1}#logs{min-height:0;max-height:150px;display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.save-note{display:none}}@media(max-width:700px){.app{padding:0 14px}header{height:74px;margin-bottom:16px;gap:10px}h1{font-size:20px;letter-spacing:3px}.seal{font-size:32px}.brand{gap:9px}.brand small{font-size:8px;letter-spacing:3px}.edition{font-size:10px;padding:3px 8px}main{display:flex;flex-direction:column;gap:16px}.profile{width:100%;padding:14px}.profile>.eyebrow,.desktop-note,.hint,.profile>.bar-label,.profile>.bar{display:none}.identity{margin:0;gap:10px}.class-mark{width:43px;height:44px;font-size:26px}.identity h2{font-size:18px}.profile{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats{margin:0;justify-content:flex-end;gap:17px;align-items:center}.stats strong{font-size:18px}.stats span{font-size:10px}.currencies{grid-column:1/-1;display:flex;justify-content:space-between;padding:0;border-bottom:0;padding-top:7px}.currencies span{gap:18px;font-size:12px}.class-picker{margin:0;grid-column:1/-1}.class-picker button{padding:6px;font-size:12px}.adventure{width:100%}.scene{height:380px;padding:16px}.place{margin-top:12px}.place h2{font-size:28px}.enemy{margin-top:20px}.combat{height:96px}.scene-bottom{font-size:10px;margin-top:13px}.battle-actions{margin:12px 0}.battle-actions button{padding:13px 8px;font-size:14px}#skill small{font-size:10px}.journal{width:100%;padding:16px}.journal-title{padding-bottom:10px}#logs{display:block;max-height:180px}.journal .eyebrow{display:none}.log{padding:8px 0}.log time{display:inline;margin-right:10px}footer{display:block;font-size:10px;padding:20px 0}footer span{display:block;margin-top:4px}}
/* Player entry and character selection */
[hidden]{display:none!important}.title-r{color:var(--gold);font-style:italic;font-size:1.2em;margin-left:3px}.entry-screen{min-height:100svh;background:linear-gradient(90deg,#060e0eed,#0812139c 50%,#081012cd),url('forest.png') center/cover fixed;display:grid;place-items:center;padding:45px 24px}.entry-wrap{max-width:1100px;width:100%;display:grid;grid-template-columns:1fr 460px;gap:70px;align-items:center}.entry-kicker{font-size:12px;letter-spacing:5px;color:var(--gold)}.entry-brand h1{font-size:clamp(42px,5vw,72px);letter-spacing:4px;white-space:nowrap;margin:14px 0;text-shadow:0 4px 20px #000}.entry-brand h1 span{color:var(--gold);font-size:1.35em;font-style:italic;margin-left:8px}.entry-rule{height:1px;background:linear-gradient(90deg,#b79251,transparent);max-width:240px;margin:22px 0}.entry-brand p{color:#c2c5b8;letter-spacing:3px;font-size:16px}.login-card{padding:32px;background:#111b1dec;border:1px solid #576051;border-radius:12px;box-shadow:0 25px 90px #0008;backdrop-filter:blur(14px)}.step-label{color:var(--gold);font-size:12px;letter-spacing:2.5px}.entry-heading h2{font:24px/1.5 serif;letter-spacing:2px;margin:8px 0 26px}.login-button{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:14px 20px;font-size:17px}.guest-explanation{font-size:13px;line-height:1.8;color:#a3b1ad;margin-top:13px}.login-divider{display:flex;align-items:center;gap:12px;font-size:12px;color:#93a29c;margin:25px 0 17px}.login-divider:before,.login-divider:after{content:'';height:1px;background:#36413c;flex:1}.provider-button{width:100%;display:flex;gap:14px;align-items:center;min-height:52px;margin:10px 0;padding:10px 14px;font-size:15px}.provider-button small{margin-left:auto;font-size:11px;opacity:.65;white-space:nowrap}.provider-mark{width:32px;font:bold 22px/1 Arial;text-align:center}.google{background:#e7e9e6;color:#25302f;border-color:#e7e9e6}.google:hover{background:#fff;color:#1b2725}.line{background:#183c2b;border-color:#286848;color:#e7f5eb}.line:hover{background:#24573c}.line .provider-mark{font-size:10px;color:#9ce7b3}.binding-gift{display:flex;gap:12px;align-items:center;border-top:1px solid #414634;margin-top:25px;padding-top:22px}.gift-mark{font-size:35px;color:var(--gold)}.binding-gift strong{color:var(--gold);font-size:14px}.binding-gift p{font-size:14px;margin:4px 0}.binding-gift p span{color:#778575;margin:0 3px}.binding-gift small{font-size:11px;color:#98a596}.gift-state{margin-left:auto;font-size:11px;border:1px solid #655b42;color:var(--gold);border-radius:4px;padding:4px;white-space:nowrap}.login-footnote{font-size:12px;line-height:1.8;color:#9ba9a3;margin-top:20px}.entry-footer{grid-column:1/-1;text-align:center;font-size:12px;color:#95a69a;letter-spacing:2px}.entry-footer span{margin:0 10px}.create-screen{min-height:100svh;background:radial-gradient(ellipse at 20% 50%,#20302d,#0c1315 65%);padding:0 30px 35px}.create-wrap{max-width:1000px;margin:auto}.create-header{height:85px;margin-bottom:30px}.create-header>span:nth-child(2){font-family:serif;font-size:20px;letter-spacing:3px;margin:auto}.create-header button{font-size:14px;border:0;background:transparent;padding-left:0;color:var(--muted)}.create-heading{margin-bottom:30px}.create-heading h2{font:32px/1.5 serif;letter-spacing:3px;margin:6px 0}.create-heading p{font-size:14px;color:var(--muted)}.character-layout{display:grid;grid-template-columns:1fr 1fr;gap:48px}.character-preview{border:1px solid #655c43;border-radius:12px;position:relative;overflow:hidden;min-height:500px;background:#172424;align-self:stretch}.portrait{background-image:url('characters.png');background-size:400% 200%;background-repeat:no-repeat}.hero-portrait{position:absolute;inset:0;background-size:400% 200%;background-position:0 0}.portrait-info{position:absolute;bottom:0;left:0;right:0;padding:70px 26px 28px;background:linear-gradient(transparent,#091316ee 38%,#091316)}.portrait-info>span{font-size:13px;color:var(--gold);letter-spacing:2px}.portrait-info h3{font-family:serif;font-size:38px;letter-spacing:8px;margin:6px 0}.portrait-info p{font-size:14px;color:#b4c2b8;line-height:1.8}.character-controls fieldset{padding:0;border:0;margin:0 0 22px}.character-controls legend,.name-field label{font-size:13px;color:var(--gold);display:block;margin-bottom:12px;letter-spacing:1px}.character-controls legend span{color:var(--text);font-size:15px;margin-left:10px}.class-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.class-options button{display:flex;align-items:center;flex-direction:column;padding:12px 2px;font-size:15px;min-height:102px}.class-options button>span{font-size:25px;color:var(--gold);margin-bottom:4px}.class-options small{font-size:11px;color:var(--muted);margin-top:3px}.class-options [aria-pressed=true],.gender-options [aria-pressed=true]{background:#353327;border-color:var(--gold);box-shadow:inset 0 0 15px #b4954e10;color:#e8cd9a}.gender-options{display:flex;gap:10px}.gender-options button{flex:1;min-height:46px;font-size:15px}.field-note{color:var(--muted);font-size:12px;margin-top:8px}.name-field label{color:var(--text);font-size:15px}.name-field label span{color:var(--gold);font-size:13px;margin-right:10px}input{font:inherit;color:var(--text);background:#0f191b;border:1px solid #40504e;border-radius:5px;min-height:48px;padding:10px 14px;width:100%}input:focus{outline:1px solid var(--gold);border-color:var(--gold)}.character-summary{display:flex;gap:20px;border-top:1px solid var(--line);padding-top:18px;margin:23px 0 20px;font-size:13px;color:#9fafaa}.character-summary strong{color:var(--text);font-size:18px;margin-left:6px}.character-summary>span:last-child{margin-left:auto;color:var(--gold);align-self:center;font-size:12px}.enter-world{width:100%;min-height:52px}.center{text-align:center}.class-mark.portrait{background-size:400% 200%;width:58px;height:77px;flex-shrink:0;border-radius:5px}.profile-actions{display:flex;gap:8px;margin-top:20px}.profile-actions button{flex:1;font-size:13px;padding:8px 5px}.guest-badge{font-size:12px;color:#a6b0a4;margin-top:10px}.exit-game{font-size:12px;padding:5px 9px;color:var(--muted)}.account-state{padding:12px;background:#24332e;border-radius:5px;font-size:15px}.account-state span{float:right;color:var(--gold);font-size:13px}.account-gift{border-top:1px solid #4b4d38;margin-top:20px;padding-top:17px}.account-gift strong{color:var(--gold);font-size:16px}.account-gift small{display:block;font-size:12px;color:var(--muted);margin-top:10px}dialog .provider-button{margin:10px 0}dialog .provider-button small{font-size:11px}dialog .account-gift button{margin-top:0;font-size:14px}
@media(max-width:900px){.entry-wrap{grid-template-columns:1fr;max-width:460px;gap:25px}.entry-brand{text-align:center}.entry-brand h1{font-size:44px;margin:2px 0}.entry-rule{margin:12px auto}.entry-kicker{font-size:10px}.entry-brand p{font-size:14px}.entry-footer{font-size:10px}.entry-screen{padding:28px 18px}.character-layout{gap:24px}.character-preview{min-height:480px}.create-header .step-label{display:none}}
@media(max-width:700px){.login-card{padding:24px 20px}.entry-heading h2{font-size:22px;margin-bottom:20px}.entry-screen{background-attachment:scroll}.create-screen{padding:0 16px 30px}.create-header{height:65px;margin-bottom:20px}.create-header>span:nth-child(2){margin-left:auto;margin-right:0;font-size:18px}.create-heading{margin-bottom:20px}.create-heading h2{font-size:27px}.character-layout{grid-template-columns:1fr;gap:23px}.character-preview{min-height:0;height:300px;max-width:100%;display:flex}.hero-portrait{width:225px;height:300px;left:auto;right:0}.portrait-info{width:70%;padding:95px 18px 20px;background:linear-gradient(90deg,#091316f5,#091316bd 65%,transparent);height:100%;top:0;bottom:auto}.portrait-info h3{font-size:33px}.portrait-info p{max-width:160px;font-size:13px}.portrait-info>span{font-size:12px}.class-options button{min-height:90px}.class-options small{font-size:12px}.character-summary{gap:13px}.class-mark.portrait{width:42px;height:56px}.profile-actions{grid-column:1/-1;margin-top:0}.guest-badge{grid-column:1/-1;margin:0;font-size:12px}.profile-actions button{font-size:14px}.identity h2{max-width:120px;overflow-wrap:anywhere}.identity .muted{font-size:11px}.edition{display:none}header{gap:7px}.brand h1{font-size:18px}.brand small{font-size:8px}.seal{font-size:26px}.exit-game{margin-left:auto;font-size:12px;white-space:nowrap}.stats{gap:13px}.scene .place>span{font-size:11px}.scene-bottom,.scene-top{font-size:12px}footer{font-size:12px}.bar-label,.stats span,.hint,.save-note{font-size:12px}}

@media(min-width:701px){.character-preview{aspect-ratio:3/4;min-height:0;align-self:start}}
/* Source-backed world catalog */
.source-link{color:var(--gold);display:inline-block;margin:14px 0;font-size:14px;text-underline-offset:4px}.enemy-info{padding:0;border:0;background:transparent;text-align:left;font-size:12px;color:inherit;text-decoration:underline;text-underline-offset:3px}.text-button{border:0;background:none;padding:0;text-align:left;line-height:1.5;font-size:14px;color:inherit}.text-button:hover{background:none;color:var(--gold)}.catalog-tools{display:flex;gap:8px;margin:14px 0}.catalog-tools input{min-width:0;font-size:16px}.catalog-tools select{font:inherit;font-size:14px;max-width:120px;color:var(--text);background:#132023;border:1px solid var(--line);border-radius:5px;padding:8px}.map-results,.boss-list{max-height:500px;overflow-y:auto;margin-top:15px;padding-right:5px}.map-info small,.item small{display:block}.map.chosen{background:#26352b;border-radius:5px;padding-left:10px;padding-right:10px}.map-info .text-button{font-size:15px}.fact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.fact-grid span{font-size:12px;color:var(--muted);background:#22312e;padding:10px;border-radius:4px}.fact-grid strong{display:block;color:var(--text);font-size:16px;font-weight:500;margin-top:4px}.detail-list{max-height:350px;overflow:auto}.detail-list button{width:100%;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;display:flex;justify-content:space-between;gap:10px;font-size:14px;text-align:left;background:none}.detail-list small{font-size:12px;color:var(--muted)}dialog h3{font-size:15px;color:var(--gold);margin:20px 0 7px}dialog{max-height:85svh;overflow:auto}.book-tabs{display:flex;gap:8px;margin:16px 0}.book-tabs button{flex:1;font-size:14px;padding:9px 6px}.book-tabs small{display:block;font-size:12px;color:var(--muted)}.book-tabs .selected{border-color:var(--gold);color:var(--gold);background:#302e24}.reference-list{margin:14px 0;max-height:500px;overflow-y:auto}.reference-row{position:relative;width:100%;text-align:left;padding:13px 24px 13px 4px;background:transparent;border:0;border-radius:0;border-bottom:1px solid var(--line);display:block;font-size:15px}.reference-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.reference-row b{position:absolute;right:8px;top:20px;color:var(--gold);font-size:18px}.book-pagination{display:flex;gap:10px}.book-pagination button{flex:1;font-size:14px}.item-restrict{font-size:12px;color:var(--muted);white-space:nowrap}.equipped-armor{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;font-size:14px;border-bottom:1px solid var(--line)}.equipped-armor button{padding:6px;font-size:12px}.bag-list{max-height:500px;overflow:auto}.scene-bottom{gap:10px}.scene-bottom span{font-size:11px}.section-heading .text-button{font-size:12px}.scene .place h2{font-size:27px;letter-spacing:3px}.tabs button{padding:12px 4px}.item>div{min-width:0}@media(max-width:700px){.scene .place h2{font-size:22px;letter-spacing:1px}.map-results,.reference-list,.boss-list{max-height:450px}.content{padding:14px}.catalog-tools select{max-width:105px;font-size:13px}.scene-bottom span{font-size:10px}.tabs button{font-size:14px}.fact-grid{grid-template-columns:repeat(2,1fr)}}

/* Original source artwork: contain the full image, including its attribution. */
.source-art{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;border-radius:4px;vertical-align:middle;background:#505050;border:1px solid #65716a}
.source-art img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.item-art{width:44px;height:44px;background:#202c29;border-color:#45534b}
.item-art img{width:32px;height:32px}
.monster-art{width:64px;height:64px}
.character-art{width:100%;height:100%;border:0;border-radius:0}
.art-missing{font-size:10px;line-height:1.5;color:#cad0c9;padding:4px;text-align:center;white-space:normal}
.class-mark{width:64px;height:64px;flex-shrink:0;overflow:hidden;background:#505050}
.character-preview{display:flex;flex-direction:column;min-height:0;height:auto;aspect-ratio:auto;align-self:start;background:linear-gradient(155deg,#24322e,#101b1d)}
.hero-portrait{position:relative;inset:auto;width:min(300px,calc(100% - 40px));height:auto;aspect-ratio:1;margin:26px auto 0;border:1px solid #887954;border-radius:8px;overflow:hidden;box-shadow:0 12px 36px #0005}
.portrait-info{position:relative;inset:auto;width:100%;height:auto;padding:24px 26px;background:none}
.portrait-info h3{font-size:34px;letter-spacing:6px}
.portrait-info p{max-width:none}
.portrait-info .portrait-note{font-size:12px;color:#94a69b;margin-top:14px}
.portrait-info .source-link{font-size:12px;margin:6px 0 0}
.scene{height:auto;min-height:500px}
.combat{height:auto;margin:16px 0 20px;position:relative}
.battle-lineup{display:flex;align-items:center;justify-content:center;gap:18px;width:100%}
.battle-actor{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}
.battle-actor>span{font-size:11px;color:#c3cfc6;text-align:center}
.battle-art{display:block;width:128px;height:128px;border:1px solid #948566;border-radius:5px;overflow:hidden;background:#505050;padding:0}
.battle-art .source-art{width:100%;height:100%;border:0;border-radius:0}
button.battle-art:hover{border-color:#ffe0a3;box-shadow:0 0 14px #d8bb7540}
.combat-sigil{font-size:28px;flex-shrink:0}
.battle-caption{margin-top:14px;text-align:center}
#damage{z-index:1;top:26px;right:15%;pointer-events:none}
.equipped-title{display:flex;align-items:center;gap:12px;margin:10px 0 5px}
.equipped-armor .armor-name{flex:1;text-align:left;font-size:14px}
.item>div:nth-child(2){flex:1}
.reference-row{display:flex;gap:12px;align-items:center;min-height:70px}
.reference-copy{min-width:0;flex:1}
.reference-row b{top:50%;transform:translateY(-50%)}
.detail-heading{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.detail-heading h2{margin:0;overflow-wrap:anywhere}
.detail-heading .item-art{width:72px;height:72px}
.detail-heading .item-art img{width:64px;height:64px}
.monster-heading{flex-direction:column;text-align:center}
.monster-heading .monster-art{width:180px;height:180px}
.detail-list button{align-items:center}
.detail-list button>span:not(.source-art){flex:1}
.detail-list button>small{max-width:100px;text-align:right}
.drop-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 20px}
.drop-gallery .drop-item{display:flex;align-items:center;gap:8px;text-align:left;padding:8px;margin:0;font-size:12px;background:#1c2a29;line-height:1.5}
.drop-item>span:last-child{min-width:0;overflow-wrap:anywhere}
.drop-item .item-art{width:36px;height:36px}
@media(max-width:700px){.character-preview{height:auto;display:flex}.hero-portrait{width:min(260px,calc(100% - 40px));height:auto;inset:auto;margin:20px auto 0}.portrait-info{width:100%;height:auto;inset:auto;padding:20px}.portrait-info h3{font-size:30px}.portrait-info p{max-width:none}.class-mark{width:52px;height:52px}.scene{height:auto;min-height:0}.battle-lineup{gap:14px}.battle-art{width:112px;height:112px}.combat{height:auto;margin:14px 0 18px}.combat-sigil{font-size:24px}.detail-list .monster-art{width:48px;height:48px}}
@media(max-width:370px){.battle-lineup{gap:10px}.battle-art{width:94px;height:94px}.drop-gallery{grid-template-columns:1fr}.stats{gap:8px}}
@media(prefers-reduced-motion:reduce){.combat-sigil,.bar i{transition:none}.strike{transform:none}}

.class-options button{padding:8px 2px;gap:3px}.class-options button>.character-art{width:60px;height:60px;margin:0 0 4px;border:1px solid #59685b;border-radius:4px}.class-options strong{font-weight:500;font-size:15px}.class-options small{font-size:10px;margin:0}

/* Frame source sprites above their 30 px caption footer. Original assets stay intact. */
.source-art .sprite-viewport{display:block;position:relative;flex-shrink:0;width:100%;aspect-ratio:180/150;overflow:hidden}
.source-art .sprite-viewport img{position:absolute;top:0;left:0;display:block;width:100%;height:auto;max-width:none;object-fit:contain}
.source-art .sprite-viewport .art-missing{position:absolute;inset:0;display:grid;place-items:center}
.source-art .sprite-viewport .art-missing[hidden]{display:none}
.hero-mana{margin-top:10px}.blue i{background:linear-gradient(90deg,#4b80b5,#8dbef0)}
.hero-mana>span{color:#b9d4ef}.mana-regen{font-size:11px;color:#9cb8d3;text-align:center;margin-top:7px}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}
.character-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.character-summary>span:last-child{grid-column:1/-1;margin:0;text-align:center}
.character-summary strong{margin-left:4px}.character-summary #previewMp{color:#a9c9f0}
#skill small{display:block;margin:4px 0 0;font-size:11px}#skill:disabled{opacity:.65}
@media(max-width:700px){.stats{gap:7px 10px;align-self:center}.stats span{font-size:11px}.stats strong{font-size:18px}.mana-regen{font-size:11px}.character-summary{font-size:12px}.character-summary strong{font-size:17px}.hero-mana{margin-top:10px}}

/* Separate final creation step, with a committed character only after confirmation. */
.allocation-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px}.allocation-summary{padding:24px;text-align:center;align-self:start}.allocation-portrait{width:140px;height:140px;margin:0 auto 16px;border:1px solid #827355;border-radius:8px;overflow:hidden}.allocation-summary h3{font:24px serif;color:var(--gold);overflow-wrap:anywhere}.allocation-summary>p{font-size:13px;color:var(--muted);margin-top:7px}.point-counter{display:flex;flex-direction:column;padding:18px 0;margin:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.point-counter>span{font-size:13px;color:var(--muted)}.point-counter>strong{font-size:44px;line-height:1.4;color:var(--gold)}.point-counter small{font-size:12px;color:var(--muted)}.allocation-summary h4{font-size:14px;font-weight:500;margin-bottom:12px}.allocation-effects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.allocation-effects>span{font-size:12px;color:var(--muted)}.allocation-effects strong{display:block;font-size:18px;color:#b7d4e6;margin-top:4px}.allocation-controls{padding:24px}.attribute-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 0;border-top:1px solid var(--line)}.attribute-row>div:first-child{min-width:0}.attribute-row strong{font-size:16px;font-weight:500}.attribute-row small{font-size:11px;color:var(--gold);margin-left:5px}.attribute-row p{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.6}.attribute-stepper{display:flex;align-items:center;gap:8px;flex-shrink:0}.attribute-stepper button{width:42px;height:42px;padding:0;font-size:21px}.attribute-stepper output{min-width:26px;text-align:center;font-size:22px;font-variant-numeric:tabular-nums}.allocation-status{margin:22px 0 12px;text-align:center;font-size:13px;color:var(--gold)}#confirmAllocation{width:100%;min-height:52px;font-size:15px}.hero-attributes{font-size:13px;margin-top:16px}.hero-attributes summary{cursor:pointer;color:var(--gold);padding:6px 0}.hero-attributes>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:10px}.hero-attributes span{color:var(--muted);font-size:12px}.hero-attributes strong{display:block;color:var(--text);font-size:17px}.allocation-controls .section-heading button{font-size:12px;padding:8px}
@media(max-width:700px){.allocation-layout{grid-template-columns:1fr;gap:16px}.allocation-summary{display:grid;grid-template-columns:86px 1fr 90px;gap:6px 12px;padding:16px;text-align:left;align-items:center}.allocation-portrait{grid-row:1/3;width:86px;height:86px;margin:0}.allocation-summary h3{font-size:20px}.allocation-summary>p{margin:0}.point-counter{grid-column:3;grid-row:1/3;margin:0;padding:0;border:0;text-align:center}.point-counter>strong{font-size:34px}.point-counter small{font-size:10px}.allocation-summary h4,.allocation-effects,.allocation-summary>.field-note{grid-column:1/-1}.allocation-summary h4{margin:14px 0 4px}.allocation-effects{grid-template-columns:repeat(3,1fr);text-align:center}.allocation-summary>.field-note{font-size:11px;line-height:1.6;margin-top:8px}.allocation-controls{padding:18px}.attribute-row{gap:8px}.attribute-stepper{gap:5px}.attribute-stepper button{width:40px;height:44px}.attribute-row p{font-size:11px}.hero-attributes{grid-column:1/-1;margin-top:0}.allocation-screen .create-heading h2{font-size:25px}}
/* Visible paper-doll slots and source-backed skills */
.equipment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 24px}.gear-cell{min-width:0;padding:13px;border:1px solid #66513766;background:#181b1b;border-radius:9px}.gear-cell>small{color:#d6b775;display:block;margin-bottom:9px}.gear-main{display:flex;gap:9px;align-items:center;min-height:52px;margin-bottom:9px}.gear-main>span:last-child{font-size:12px;overflow-wrap:anywhere}.gear-main .source-art{flex-shrink:0}.gear-cell>button{padding:7px 10px;font-size:12px;margin:3px 3px 0 0;min-height:36px}.empty-gear{display:grid;place-items:center;width:32px;height:32px;border:1px dashed #7c684b;color:#aa9064;font-size:22px;flex-shrink:0}.risk-warning{color:#ffad91;line-height:1.8}.skills-list{display:grid;gap:12px}.skill-card{border:1px solid #65533366;border-radius:9px;padding:16px;background:#191c1c}.skill-card h3{margin:0 0 8px}.skill-card h3 small{font-size:12px;color:#c1a477;margin-left:6px}.skill-card p{font-size:13px;line-height:1.7;margin:5px 0;color:#c5c4b9}.skill-card small{color:#aaa99f}.skill-selected{border-color:#c5a164}.skill-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:12px}.skill-actions button{font-size:12px;min-height:38px}.equip button{white-space:normal}.gear-cell .text-button{display:inline-block}button:disabled{cursor:not-allowed;opacity:.5}[role=tablist]{overflow-x:auto}[data-tab]{flex-shrink:0}
@media(max-width:600px){.equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gear-cell{padding:10px}.skill-card{padding:13px}.item{flex-wrap:wrap}.item>div{min-width:0;flex:1}.item button{white-space:normal}}
.skill-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 20px}.spell-slot{min-width:0;border:1px solid #77603c;border-radius:8px;background:#171b1d;text-align:center}.spell-slot>button:first-child{width:100%;border:0;background:transparent;display:flex;align-items:center;flex-direction:column;gap:6px;padding:12px 5px;min-height:95px}.spell-slot strong{font-size:14px}.spell-slot small{font-size:12px}.spell-slot>button:first-child>span{color:#c7ab76}.spell-slot .text-button{font-size:12px;padding:8px 3px}.community-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.community-tabs .selected{border-color:#d0ac68;color:#e9c783}.social-banner{padding:20px;margin:16px 0;border:1px solid #80643888;border-radius:10px;background:linear-gradient(130deg,#282923,#181d21)}.social-banner h2{font-size:26px;margin:7px 0}.social-banner p,.social-list p{line-height:1.75;font-size:14px}.social-list article,.social-row{display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid #80643844;padding:14px 0;flex-wrap:wrap}.social-list article>div{flex:1;min-width:150px}.social-list small{display:block;color:#a9aaa1;margin-top:5px}.social-list button,.social-row button{font-size:14px}.social-row strong{flex:1}.war-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.war-roster label{font-size:14px}.war-roster select,#partyTarget{display:block;width:100%;min-height:42px;background:#181d20;color:#e7dfca;border:1px solid #756040;padding:8px;border-radius:5px;margin:5px 0 15px}.social-banner input,#playerSearch{display:block;box-sizing:border-box;width:100%;background:#171b1d;color:#e8dfcb;border:1px solid #786442;padding:12px;margin:8px 0 14px;border-radius:5px;font-size:16px}.cloud-status{text-align:center;color:#b7ad92;padding:15px;font-size:13px}.cloud-status button{margin-left:10px}#guildError,#warError{color:#ffb299}.social-banner progress{width:100%;accent-color:#b7924f}.tabs{overflow-x:auto}.tabs button{min-width:75px;white-space:nowrap}#skill[hidden]{display:none}.battle-actions{display:block}.battle-actions>#auto{width:100%}
@media(max-width:520px){.skill-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.war-roster{grid-template-columns:1fr}.social-banner{padding:15px}.community-tabs button{flex:1;font-size:14px;padding:10px 7px}}
.chat-dialog{width:min(960px,96vw);max-width:96vw;height:min(850px,92dvh);max-height:92dvh;padding:0;border:1px solid #947340;border-radius:14px;background:#11191b;color:#e7dfca;box-shadow:0 24px 100px #000b}.chat-dialog::backdrop{background:#060b10dc;backdrop-filter:blur(4px)}.chat-layout{height:100%;display:flex;flex-direction:column;min-height:0}.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 24px 14px;background:linear-gradient(120deg,#293027,#152028);border-bottom:1px solid #6c593c}.chat-heading h2{font-size:24px;margin:6px 0 0}.chat-heading button{font-size:14px;min-height:42px}.chat-toolbar{display:flex;align-items:center;gap:12px;padding:14px 24px 8px;font-size:14px}.chat-toolbar select{flex:1;max-width:260px;background:#202b2b;color:#eadbbd;border:1px solid #887247;padding:10px;border-radius:6px;font-size:16px}.chat-audience{margin:0;padding:5px 24px 12px;font-size:14px;color:#b9bdac;line-height:1.5}.chat-messages{flex:1;min-height:100px;overflow:auto;padding:10px 24px;background:#0d1418;overscroll-behavior:contain;scrollbar-color:#7b6541 #0d1418}.chat-message{padding:12px 0;border-bottom:1px solid #b2a88618}.chat-message-meta{display:flex;align-items:center;gap:9px;font-size:14px;color:#d4c69f}.chat-channel{font-size:12px;border:1px solid currentColor;padding:2px 6px;border-radius:4px}.channel-guild .chat-channel{color:#80d89d}.channel-party .chat-channel{color:#8dc5fa}.chat-mine strong{color:#f1d493}.chat-message time{margin-left:auto;font-size:12px;color:#889ba1}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:16px;margin:8px 0 0;color:#e2e7df}.chat-empty{padding:35px 0;text-align:center;color:#aebbae;font-size:15px}.chat-form{padding:12px 24px 0;flex-shrink:0;border-top:1px solid #7c684144}.chat-form label{display:block;font-size:14px;margin-bottom:7px;color:#d4bf8d}.chat-form textarea{display:block;box-sizing:border-box;width:100%;resize:none;background:#202b2d;color:#f2eee1;border:1px solid #657469;border-radius:7px;font:inherit;font-size:16px;padding:10px;line-height:1.45}.chat-compose-footer{display:flex;justify-content:space-between;align-items:center;padding-top:8px;gap:10px}.chat-compose-footer span{font-size:12px;color:#a9b7aa}.chat-compose-footer button{min-height:44px;min-width:120px}.chat-form [role=alert]{color:#ffc0aa;font-size:14px;margin:7px 0;min-height:0}.chat-hint{display:block;padding:8px 24px 14px;font-size:12px;color:#97a494;line-height:1.5}.chat-dialog #chatLatest{align-self:center;margin:6px;padding:7px 15px;font-size:13px}
@media(max-width:600px){.chat-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;max-height:100svh;margin:0;border-radius:0}.chat-heading{padding:12px 14px}.chat-heading h2{font-size:21px}.chat-toolbar{padding:10px 14px;gap:8px}.chat-toolbar select{max-width:none}.chat-audience{padding:0 14px 10px}.chat-messages{padding:7px 14px}.chat-form{padding:10px 14px 0}.chat-hint{padding:6px 14px calc(10px + env(safe-area-inset-bottom))}.chat-heading .eyebrow{display:none}}
.chat-launch{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;min-height:46px;margin:0 0 12px;padding:12px 16px;background:#243129;border:1px solid #8c734b;font-size:16px;color:#e6d4ab}.chat-launch small{font-size:12px;color:#b1bdae}
.market-dialog{width:min(1000px,96vw);max-width:1000px;height:88dvh;max-height:94dvh;padding:0;background:#11191c;color:#ece5d3;border:1px solid #7c6944;border-radius:16px}.market-dialog::backdrop{background:#000b}.market-layout{padding:24px}.market-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.market-filters{display:flex;gap:14px;flex-wrap:wrap;margin:20px 0}.market-filters label{flex:1;min-width:140px}.market-dialog label{display:block;color:#bdb9aa;font-size:13px}.market-dialog input,.market-dialog select{display:block;width:100%;box-sizing:border-box;margin-top:7px;background:#0c1215;color:#f1ead8;border:1px solid #465151;padding:12px;border-radius:8px}.market-card{display:flex;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid #354143}.market-card small{display:block;color:#9daaaa;margin:7px 0}.market-card button{display:block;margin-top:12px;width:100%}.market-card b{color:#dec18a}.market-reference{font-size:12px;line-height:1.8;color:#aebcb7}.market-reference strong{color:#d0bb8d}.market-empty{padding:50px 16px;text-align:center;color:#aebcb7}.market-sell{max-width:760px;margin:24px auto}.market-sell .primary{margin-top:24px;width:100%}#marketPurchase:empty{display:none}@media(max-width:650px){.market-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.market-layout{padding:16px}.market-card{flex-direction:column;gap:8px}.market-dialog .chat-heading{gap:12px}.market-dialog .community-tabs{display:grid;grid-template-columns:repeat(2,1fr)}.market-toolbar{flex-wrap:wrap}}
.shop-dialog{background:#15181f}.shop-dialog label{font-size:14px;margin:12px 0}.shop-dialog p{font-size:16px;line-height:1.6}.shop-dialog textarea{box-sizing:border-box;width:100%;background:#0c1215;color:#eee4d2;border:1px solid #465151;border-radius:8px;padding:12px;font:inherit}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.shop-product{background:linear-gradient(145deg,#262a34,#191d24);border:1px solid #74664a;border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:12px}.shop-product h3,.shop-product p{margin:0}.shop-product strong{font-size:22px;color:#e8c380;margin-top:auto}.shop-product small{font-size:14px;color:#b1b7c3}.shop-rewards{color:#e3d4ac}.shop-order{border-bottom:1px solid #47505d;padding:20px 0}.shop-id{display:block;overflow-wrap:anywhere;color:#aeb5c2;font-size:13px}.shop-payment{white-space:pre-wrap;padding:16px;background:#202630;border-radius:8px}.shop-order button{margin:8px 8px 0 0}.shop-dialog details{padding:16px;background:#202630;border-radius:8px}.shop-dialog summary{cursor:pointer;font-size:16px}.shop-dialog [hidden]{display:none!important}@media(max-width:650px){.shop-grid{grid-template-columns:1fr}.shop-product{padding:20px}}
.backpack-launch{width:100%;margin:16px 0 4px}.backpack-item{gap:14px;flex-wrap:wrap}.backpack-item>div:nth-child(2){flex:1;min-width:150px}.backpack-buttons{display:flex;gap:8px;flex-wrap:wrap}.backpack-item small{display:block;line-height:1.6}#backpackWallet{font-size:16px;color:#e2c68e}
.hunt-current{padding:18px;border:1px solid #7b6944;border-radius:10px;background:#262921}.hunt-current p{font-size:14px;line-height:1.6}.hunt-recommendations{display:grid;gap:10px;margin:16px 0 24px}.hunt-recommendations article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;background:#1c292c;border-radius:8px}.hunt-recommendations small{display:block;margin-top:8px;color:#abbdb9}.hunt-recommendations p{font-size:14px;margin-bottom:0}.hunt-badge{display:inline-block;font-size:14px;padding:3px 9px;border-radius:5px;margin:4px 6px;font-weight:600}.hunt-risk-0{background:#214a3a;color:#b6e9ce}.hunt-risk-1{background:#254957;color:#c0e9fa}.hunt-risk-2{background:#594720;color:#ffe1a0}.hunt-risk-3{background:#622e32;color:#ffced0}.hunt-target{display:flex;align-items:center;gap:12px;border-bottom:1px solid #3d494b;padding:14px 4px;cursor:pointer}.hunt-target>span:nth-child(2){flex:1}.hunt-target input[type=checkbox],.hunt-risk-confirm input[type=checkbox]{width:22px;height:22px;flex:none;margin:0;accent-color:#d8b879}.hunt-target small{display:block;font-size:14px;line-height:1.7;color:#b0c0bc;margin-top:6px}.hunt-risk-confirm{display:flex!important;align-items:center;gap:12px;margin:20px 0}.hunt-risk-confirm[hidden]{display:none!important}.hunt-income{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:14px 4px;color:#e7c580;font-size:14px}.hunt-income strong{font-size:16px}#confirmHunt{width:100%;margin:16px 0}.hunt-dialog label{font-size:16px}.hunt-dialog p{line-height:1.6;font-size:14px}@media(max-width:600px){.hunt-recommendations article{align-items:flex-start}.hunt-recommendations button{flex-shrink:0}.hunt-target{flex-wrap:wrap}.hunt-target>.hunt-badge{margin-left:34px}}
[data-justice=red]{color:#ff9696!important}[data-justice=blue]{color:#96caff!important}[data-justice=white]{color:#eee7da!important}.justice-row{font-size:14px;color:#b6c5c0}.pvp-alert{width:100%;padding:16px;background:#6b3039;border-color:#b87676;color:#fff}.pvp-events{max-height:160px;overflow:auto;font-size:14px}.pvp-events p{margin:6px 0}.audio-dialog{height:auto;max-width:520px}.audio-dialog label{display:block;margin:20px 0;font-size:16px}.audio-dialog input[type=checkbox]{display:inline-block;width:22px;height:22px;vertical-align:middle;margin:0 10px 0 0}.audio-dialog input[type=range]{padding:0;accent-color:#ddc387}.hunt-current button{margin:6px}.map{flex-wrap:wrap}

.notice-card{padding:20px 0;border-bottom:1px solid #514536}.notice-card h3{font-size:1.2rem;color:#e6c789;margin:12px 0}.notice-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;line-height:1.8}.notice-card small{color:#b0a18b}#noticeContent input:not([type=checkbox]),#noticeContent select,#noticeContent textarea{width:100%;max-width:100%;box-sizing:border-box}#noticeContent textarea{font:inherit;line-height:1.6}#noticeContent label{display:block;margin:12px 0}#noticeContent .audio-switch{display:flex}#noticeStatus{color:#e6c789}#noticeContent{min-width:0}
.speed-status{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0;padding:12px;border:1px solid #425340;background:#1b281f;font-size:.875rem;color:#c9dcb8}.speed-status strong{width:100%;color:#e0e9cd}.speed-status span{line-height:1.5}
.auto-magic-panel{display:grid;gap:8px;padding:14px;margin:12px 0;border:1px solid #686080;background:#231e30}.auto-magic-panel[hidden]{display:none}.auto-magic-panel strong{color:#e4cff9}.auto-magic-panel small{font-size:.875rem;color:#c2b5d4}#autoMagicSelect{width:100%}
.poly-status{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0;font-size:.875rem;color:#dac397}.poly-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}.poly-card{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;padding:10px;min-width:0;white-space:normal}.poly-card .source-art{width:84px;height:100px;max-width:100%;object-fit:contain}.poly-card img{max-width:100%;height:100px;object-fit:contain}.poly-card strong{font-size:.875rem;line-height:1.5}.poly-card small{font-size:.8rem}.poly-locked{opacity:.5}.enchant-info{margin-top:18px;padding-top:16px;border-top:1px solid #74623f}#enchantDialog select{width:100%}#enchantRisk{line-height:1.7;color:#eabf85}#enchantError,#npcSellError,#autoMagicError{color:#f0b59e}

/* Gold supplies, permanent identity and recovery */
.player-number{font-size:13px;letter-spacing:.03em}.player-number strong{font-variant-numeric:tabular-nums;color:#ead49c}.healing-panel{padding:14px;margin:12px 0;border:1px solid #514f39;border-radius:10px;background:#1c241f}.healing-panel>strong{display:block;font-size:13px;color:#ccdfbf;margin-bottom:10px}.healing-panel>div{display:flex;gap:8px;flex-wrap:wrap}.supply-item{display:grid;grid-template-columns:48px minmax(0,1fr) 90px auto;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #3a3d33}.supply-item .source-art{width:44px;height:44px}.supply-item small{display:block;color:#aaa;font-size:12px;margin-top:5px}.supply-item input{width:100%}.supply-item label{font-size:12px}.supply-confirm:empty{display:none}.supply-confirm{position:sticky;top:0;z-index:2;padding:14px;background:#293028;border:1px solid #a29560;border-radius:8px}.enchant-info{border:1px solid #b6a365;padding:16px;margin:0 0 20px;background:#252b21;border-radius:8px}.enchant-info h3{margin-top:0}.gear-cell button.primary{width:100%;margin:6px 0}#grantEditor label{display:block;margin:12px 0}#grantNumber,#friendNumber{font-variant-numeric:tabular-nums;letter-spacing:.1em}@media(max-width:550px){.supply-item{grid-template-columns:36px minmax(0,1fr) 70px;gap:8px}.supply-item>button{grid-column:2/4}.healing-panel button{flex:1}.supply-item .source-art{width:34px;height:34px}}
/* Five independent game pages, sharing the live combat session. */
#gameScreen{padding-bottom:100px}#gameScreen [hidden]{display:none!important}#routeShell{max-width:1120px;margin:0 auto 20px}.route-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.route-heading h2{font-size:26px;letter-spacing:2px}.route-heading .eyebrow{font-size:12px}#adminLink{color:var(--gold);font-size:14px;border:1px solid #6d6044;padding:8px 12px;border-radius:6px;text-decoration:none}.route-vitals{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:#111e21;margin-bottom:16px;font-size:14px}.route-vitals a{color:var(--text);text-decoration:none}.route-vitals a span{display:block;color:#afc8ba;font-size:14px;margin-top:4px}.route-vitals>span{color:var(--gold);white-space:nowrap}#routeTabs{display:flex;gap:8px;overflow:auto;margin-bottom:20px;padding-bottom:5px}#routeTabs a{flex-shrink:0;padding:10px 16px;border:1px solid var(--line);border-radius:6px;color:var(--muted);text-decoration:none;font-size:16px}#routeTabs a[aria-current]{background:#303429;color:var(--gold);border-color:#897248}#routeOutlet>.content{padding:24px}#routeOutlet .section-heading h3{font-size:20px}#routeOutlet .section-heading span{font-size:14px}#routeOutlet .map-results,#routeOutlet .boss-list,#routeOutlet .bag-list,#routeOutlet .reference-list{max-height:none;overflow:visible}#tabContent .community-tabs{display:none}#routeOutlet .route-panel{position:static;inset:auto;width:100%;max-width:none;max-height:none;height:auto;margin:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);box-shadow:none;padding:24px;overflow:visible}#routeOutlet .route-panel:not([open]){display:none}#routeOutlet .route-panel[open]{display:block}#routeOutlet .market-layout,#routeOutlet .chat-layout{height:auto;max-height:none;padding:0;overflow:visible;display:block}#routeOutlet .chat-heading{height:auto;min-height:60px;margin:0 0 20px;padding-bottom:16px}#routeOutlet .chat-heading h2{font-size:22px}#routeOutlet .chat-heading button{font-size:14px}#routeOutlet .chat-messages{height:50svh;min-height:240px;max-height:650px;overflow:auto}#routeOutlet .chat-form{position:static;margin-top:16px}#routeOutlet .chat-toolbar,#routeOutlet .market-toolbar{margin:14px 0}#routeOutlet .supply-confirm{top:10px}#routeOutlet input,#routeOutlet select,#routeOutlet textarea{font-size:16px}#routeOutlet .item button,#routeOutlet .map button{font-size:14px;min-height:42px}#bottomNavigation{position:fixed;z-index:50;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#101b20f5;border:1px solid #56614b;border-bottom:0;border-radius:14px 14px 0 0;box-shadow:0 -8px 30px #0006;padding:8px 6px calc(8px + env(safe-area-inset-bottom))}#bottomNavigation a{display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;padding:7px 2px;border-radius:8px;color:#9daaaa;font-size:14px}#bottomNavigation a span{font-size:23px;line-height:1.2}#bottomNavigation a strong{font-weight:500}#bottomNavigation a[aria-current]{color:#f1d49d;background:#394033}#homePage .desktop-note{display:none}#homePage .tabs{display:none}.admin-center{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.route-card{display:block;padding:26px;text-align:left;text-decoration:none;color:var(--text);border:1px solid #506055;background:linear-gradient(135deg,#21312c,#121c20);border-radius:10px}.route-card>span{color:var(--gold);font-size:26px}.route-card h3{font-size:20px;margin:12px 0}.route-card p{font-size:16px;line-height:1.7;color:#a4b5b0}#toast{z-index:200;bottom:110px}body:has(#gameScreen:not([hidden]))>.cloud-status{padding-bottom:110px}@media(max-width:700px){#gameScreen{padding-left:14px;padding-right:14px}#gameScreen>header{height:72px;margin-bottom:18px}.route-heading h2{font-size:23px}.route-vitals{padding:10px;flex-wrap:wrap}.route-vitals>span{font-size:14px}#routeTabs{gap:6px}#routeTabs a{padding:9px 12px;font-size:14px}#routeOutlet>.content,#routeOutlet .route-panel{padding:14px}#routeOutlet .chat-heading{flex-wrap:wrap}#routeOutlet .chat-heading h2{font-size:20px}#routeOutlet .chat-messages{height:45svh}#homePage{display:flex;flex-direction:column;gap:18px}#homePage>.profile{width:100%;display:block;padding:16px}#homePage>.profile .identity{margin:8px 0 14px}#homePage>.profile .stats{margin:14px 0}#homePage>.adventure{width:100%}#homePage>.journal{display:block;width:100%}#homePage #logs{min-height:0;max-height:180px;overflow:auto}#homePage .journal-title{padding-bottom:10px}#homePage .save-note{display:none}.admin-center{grid-template-columns:1fr}.route-card{padding:20px}#routeOutlet .market-filters{flex-wrap:wrap}#routeOutlet .market-filters label{min-width:0;flex:1 1 140px}#routeOutlet .shop-grid{grid-template-columns:1fr}}
@media(max-width:700px){#homePage>.adventure{order:0}#homePage>.profile{order:1}#homePage>.journal{order:2}}

.inventory-bulk{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.danger-button{color:#ffb5aa;border-color:#94554c;background:#352320}.danger-button:hover{background:#503029;border-color:#d88a79}.inventory-review{max-height:40svh;overflow:auto;margin:18px 0;border:1px solid var(--line);border-radius:6px}.inventory-review>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;border-bottom:1px solid var(--line)}.inventory-review span{flex:1;min-width:130px}.inventory-review small{color:var(--gold)}.inventory-confirm-check{display:flex;align-items:flex-start;gap:10px;margin:20px 0;font-size:16px}.inventory-confirm-check input{width:22px;height:22px;flex-shrink:0}#inventoryActionBody label{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}#inventoryActionBody input{font-size:16px}#inventoryActionError{color:#ffb5aa}
/* Compact classic status window: dark steel, recessed values and physical equipment slots. */
#homePage>.classic-character,.classic-character{padding:13px!important;min-width:0;background:linear-gradient(110deg,#3d3d3b 0%,#171c1c 3%,#242827 50%,#101717 97%,#42423c 100%);border:3px solid #514d40;border-radius:4px;box-shadow:inset 0 0 0 1px #89806a,inset 0 0 0 5px #111818,0 0 0 1px #080c0d,0 8px 26px #0008;color:#d8d7cd}.character-frame-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 5px 12px;border-bottom:1px solid #5a5547;text-shadow:1px 2px #080a08}.character-frame-title strong{font:600 18px/1.5 serif;letter-spacing:3px;color:#e4d5b3}.character-frame-title>span{font-size:10px;letter-spacing:1px;color:#a4997e}.classic-character .identity{margin:14px 0!important;gap:10px}.classic-character .identity h2{font-size:20px;letter-spacing:1px;overflow-wrap:anywhere}.classic-character .identity .muted{display:block;font-size:14px}.classic-character .class-mark{width:48px;height:52px;border:1px solid #70644b;border-radius:1px}.character-level{display:flex;justify-content:space-between;gap:8px;font-size:14px;align-items:center}.character-level #level{color:#dddac8;font-size:14px}.character-level>strong{font-weight:400;font-variant-numeric:tabular-nums;color:#d4d4bd}.character-xp-track{height:5px;background:#080c0c;border:1px solid #4d5048;margin:6px 0}.character-xp-track i{background:linear-gradient(#a8a994,#646b5a)}.character-xp-numbers{font-size:12px;color:#9c9e91;text-align:right;margin-bottom:12px}.character-meter{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:6px;margin:9px 0;font-size:14px}.character-meter-track{height:23px;position:relative;background:#140e0e;border:1px solid #656151;border-radius:10px;box-shadow:inset 0 2px 5px #000b;overflow:hidden}.character-meter-track i{display:block;height:100%;background:linear-gradient(#b65854,#6a2421 50%,#982f2b);transition:width .2s}.character-meter-track strong{position:absolute;inset:0;display:grid;place-items:center;font:500 13px/1.2 system-ui;color:#fff2e4;text-shadow:0 1px 3px #000;font-variant-numeric:tabular-nums;white-space:nowrap}.character-mp .character-meter-track{background:#0b121b}.character-mp .character-meter-track i{background:linear-gradient(#6493c4,#294e8f 50%,#37669d)}.character-page-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:17px 0 13px;border-bottom:1px solid #71634b;padding-bottom:5px}.character-page-tabs button{padding:9px 2px;font-size:14px;background:linear-gradient(#303534,#161d1d);border:1px solid #56564c;border-radius:2px;color:#9fa49d}.character-page-tabs button[aria-selected=true]{color:#f2d7a1;border-color:#ad9362;background:linear-gradient(#4e493a,#2e3028)}.character-combat-stats,.character-secondary{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.character-combat-stats>span,.character-secondary>span{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:14px}.character-combat-stats strong,.character-secondary strong{font-weight:500;font-variant-numeric:tabular-nums;color:#e2dfd5}.character-section-label{font-size:14px!important;letter-spacing:2px;color:#bfb69e!important;border-top:1px solid #44483e;margin:14px 0 10px!important;padding-top:12px}.classic-character #heroAttributes{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px;margin:0}.classic-character #heroAttributes>span{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:16px;border-bottom:1px solid #44483f;padding:3px 0}.classic-character #heroAttributes strong{display:block;min-width:28px;padding:0 3px;background:#101716;border:1px solid #454b41;text-align:center;color:#e6e5da;font-weight:400}.character-attribute-note{font-size:12px;color:#9a9d90;margin:9px 0 16px}.character-secondary{border-top:1px solid #44483e;padding-top:12px;gap:8px}.character-secondary>span{font-size:12px}.character-justice{display:flex;justify-content:space-between;gap:8px;font-size:14px;margin-top:16px}.character-justice strong{font-weight:500}.character-justice-track{height:6px;background:#0c1010;border:1px solid #4d5046;position:relative;margin:8px 0 14px}.character-justice-track>span{position:absolute;width:1px;left:50%;height:8px;background:#b1ab92;top:-2px}.character-justice-track i{position:absolute;top:0;height:100%;background:#bfc4b8}.character-justice-track i[data-alignment=red]{background:#bc6251}.character-justice-track i[data-alignment=blue]{background:#669bc8}.classic-character .currencies{margin-top:15px;border-color:#555347;padding:8px 0}.classic-character .currencies span{padding:3px 0;font-size:14px}.classic-character .player-number{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:12px;padding:12px 0}.classic-character .player-number button{font-size:12px;margin-left:auto}.character-bottom-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}.character-bottom-actions button,.classic-character #openGrant{padding:9px 4px;min-height:40px;font-size:14px;border-radius:2px;border:1px solid #615e50;background:linear-gradient(#333b37,#1b2422)}.character-bottom-actions #openBackpack{grid-column:1/-1;color:#e3cd9e}.classic-character #openGrant{width:100%;margin-top:6px}.classic-character .guest-badge{font-size:12px;text-align:center;margin-top:10px}.character-paperdoll{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;position:relative}.character-gear-slot{position:relative;min-width:0;min-height:73px;padding:4px 2px;background:linear-gradient(140deg,#151d1b,#0b1110);border:1px solid #54594c;border-radius:2px;box-shadow:inset 0 0 8px #0009;display:flex;flex-direction:column;align-items:center;gap:3px}.character-gear-slot:hover{border-color:#c1a878;background:#28332a}.character-slot-label{font-size:12px;color:#afa997;white-space:nowrap}.character-slot-empty{font-size:23px;color:#505c52;line-height:36px}.character-gear-slot .source-art{width:36px;height:36px;border:0;background:none}.character-gear-slot .source-art img{width:32px;height:32px}.character-slot-plus{position:absolute;bottom:1px;right:3px;font-size:12px;color:#e1c98b;text-shadow:0 1px 2px #000}.character-paper-art{grid-column:2;grid-row:2/5;min-width:0;align-self:center;opacity:.92}.character-paper-art .source-art{width:100%;height:auto;background:transparent;border:0}.character-paper-art img{width:100%;height:auto;object-fit:contain}.character-paper-art .sprite-viewport{width:100%;height:auto;aspect-ratio:1}.character-equipment-note{font-size:12px;color:#b0ae9b;line-height:1.7;margin:12px 0}#characterChangeGear{width:100%;font-size:14px;padding:9px;border-radius:2px;border-color:#76694d}.character-page{max-width:390px;margin:0 auto}.character-page>.classic-character{width:100%}.character-page .character-paperdoll{gap:10px}.character-page .character-gear-slot{min-height:84px}.character-page .character-secondary>span{font-size:14px}.character-page .character-slot-label{font-size:14px}.character-page .character-frame-title strong{font-size:20px}@media(max-width:700px){#homePage>.classic-character{max-width:390px;align-self:center}.classic-character .identity{margin:12px 0!important}.character-page{max-width:100%}.character-page>.classic-character{max-width:390px;margin:auto}.character-page .character-gear-slot{min-height:80px}.character-page .character-paperdoll{gap:8px}}@media(prefers-reduced-motion:reduce){.character-meter-track i{transition:none}}

/* Full-body class illustrations use their complete frame, unlike monster sprites. */
.source-art.portrait-art .sprite-viewport{width:100%;height:100%;aspect-ratio:auto}
.source-art.portrait-art .sprite-viewport img{position:static;width:100%;height:100%;object-fit:contain;object-position:center;image-rendering:auto}
.character-paper-art .source-art.portrait-art{height:245px}
.character-paper-art .portrait-art .sprite-viewport{height:100%;aspect-ratio:auto}
.class-options button>.portrait-art{width:70px;height:88px}
.hero-portrait .portrait-art{height:100%;width:100%}
.class-mark .portrait-art{width:100%;height:100%}
.source-art.portrait-art{background:#08090b}
.hero-portrait:has(.portrait-art){aspect-ratio:4/5}

.entry-game-icon{display:block;width:112px;height:112px;object-fit:contain;margin:0 auto 20px;border-radius:20px;box-shadow:0 8px 28px #0008}.brand-game-icon{width:48px;height:48px;flex-shrink:0;object-fit:contain;border-radius:9px}

.poly-auto-settings{padding:14px;border:1px solid #6f6042;border-radius:6px;background:#222720;margin:14px 0}.poly-auto-settings label{display:flex;align-items:center;gap:10px;font-size:16px;color:#e5cf9f}.poly-auto-settings input{width:20px;height:20px;accent-color:#d5b56c}.poly-auto-settings p{margin-top:8px;font-size:14px;line-height:1.6}
.account-result{padding:12px;background:#243429;border:1px solid #64855c;border-radius:5px;font-size:14px;line-height:1.7;margin-bottom:14px}.provider-button>span:nth-child(2){overflow-wrap:anywhere}.account-gift small{display:block}

/* Membership extends the existing dark metal and gold game UI. */
.member-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.member-entry-actions button{min-height:48px;font-size:16px}.member-dialog{width:min(460px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #8c7447;border-radius:12px;background:#121b20;color:#e6e2d7;box-shadow:0 24px 80px #000b}.member-dialog::backdrop{background:#050a0dd9}.member-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.member-heading h2{margin:6px 0 12px;color:#d7ba78}.member-heading small,.member-dialog p{font-size:14px;line-height:1.7;color:#c2c8c8}.member-heading>button{min-width:44px;min-height:44px}.member-dialog form{display:grid;gap:10px}.member-dialog label{font-size:14px;margin-top:6px}.member-dialog input{width:100%;box-sizing:border-box;min-height:48px;font-size:16px;background:#0b1216;color:#fff;border:1px solid #526269;border-radius:6px;padding:10px 12px}.member-dialog input:focus-visible{outline:2px solid #d7ba78;outline-offset:2px}.member-dialog form>button{min-height:48px;margin-top:12px;font-size:16px}.member-dialog small{font-size:13px}.member-notice{padding:12px;background:#3a3020;border-left:3px solid #d7ba78}.member-links{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #4c4534;padding-top:14px}.member-links button{flex:1;min-height:44px;font-size:14px}.member-account-card{padding:16px;border:1px solid #75613e;background:#192228;border-radius:8px;overflow-wrap:anywhere}.member-account-card button{margin:4px;min-height:44px}.provider-button[hidden]{display:none}#memberFeedback{overflow-wrap:anywhere;min-height:24px}
.member-action-wrap{min-height:100dvh;display:grid;place-items:center;padding:24px;box-sizing:border-box}.member-action-wrap .member-dialog{box-sizing:border-box;max-height:none}.member-action-wrap h1{font-size:24px;color:#d7ba78}.member-action-wrap #passwordFields{display:grid;gap:10px}.member-action-wrap #passwordFields[hidden]{display:none}.member-action-wrap a{color:#d7ba78}

.login-music-panel{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #576051}.login-music-panel button{min-height:44px;font-size:16px}.login-music-panel p{flex-basis:100%;margin:0;color:#c2c5b8;font-size:14px;line-height:1.6}

.community-help{border:1px solid #576051;border-radius:10px;padding:18px;margin-bottom:24px;background:#182426}.community-help h3{margin-top:0;color:#ddc387}.community-help li{margin:10px 0;line-height:1.7}.community-help p{line-height:1.7}.guild-emblem{object-fit:contain;vertical-align:middle;image-rendering:pixelated}.guild-emblem-default{display:inline-block;width:32px;text-align:center;color:#ddc387}#guildEmblemDialog{max-width:520px;width:calc(100% - 32px)}#emblemPreview{image-rendering:pixelated;border:1px solid #576051;margin:12px 0}.community-help ol{padding-left:24px}
.world-broadcast{position:fixed;z-index:10000;top:18px;left:50%;transform:translateX(-50%);width:min(1000px,94vw);display:flex;align-items:center;gap:18px;padding:15px 20px;border:2px solid #edc462;border-radius:10px;background:linear-gradient(110deg,#29180df5,#080d12f5 65%,#382109f5);box-shadow:0 0 28px #e7a02e66,inset 0 0 16px #ad741733;pointer-events:none}.broadcast-badge{flex:none;color:#ffe5a0;font-size:18px;letter-spacing:2px}.broadcast-window{overflow:hidden;flex:1;min-width:0}.broadcast-track{display:inline-block;white-space:nowrap;font-size:clamp(22px,3vw,32px);font-weight:900;color:#ffe3a0;text-shadow:0 2px 0 #6c3908,0 0 12px #e7a02e;letter-spacing:2px;animation:broadcast-scroll 15s linear both}.broadcast-item-name{font-size:20px;color:#ffe3a0;font-weight:bold}.broadcast-product h3{color:#ffe3a0}@keyframes broadcast-scroll{0%{transform:translateX(80vw)}100%{transform:translateX(-100%)}}@media(max-width:600px){.world-broadcast{top:8px;padding:10px;gap:10px}.broadcast-badge{font-size:14px;letter-spacing:0}}@media(prefers-reduced-motion:reduce){.broadcast-track{animation:none;white-space:normal;font-size:18px;overflow-wrap:anywhere}.world-broadcast{align-items:flex-start}}

.auto-slot-toggle{width:100%;min-height:40px;font-size:14px}.auto-slot-toggle.enabled{color:#ffe6a4;background:#524525;border-color:#dfbd68}
.inline-enchant-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.inline-enchant-row label{display:flex;flex:1 1 240px;flex-direction:column;gap:6px;min-width:0}.inline-enchant-row select{width:100%;max-width:100%;font-size:16px}.enchant-info [role=status]{color:var(--gold,#d8bc80)}

.sponsor-account{overflow-wrap:anywhere;letter-spacing:.06em}.sponsor-table-wrap{overflow-x:auto}.sponsor-table{width:100%;border-collapse:collapse;font-size:16px}.sponsor-table th,.sponsor-table td{text-align:left;padding:14px 10px;border-bottom:1px solid #47505d}.sponsor-table th{color:#e8c380}.sponsor-table tr:last-child td{color:#e8c380}
/* Blessing is an item state, visible in every shared item-art placement. */
.source-art.item-art.blessed-item{position:relative;border:3px solid #f5ce63;background:linear-gradient(145deg,#534013,#171607);box-shadow:inset 0 0 0 1px #fff0b8,0 0 7px #d9a72b80;overflow:hidden}
.source-art.item-art.blessed-item:after{content:'祝';position:absolute;right:0;bottom:0;min-width:16px;padding:0 2px;background:#f5ce63;color:#211802;font-size:12px;font-weight:800;line-height:16px;text-align:center;border-radius:3px 0 0 0}
.enchant-scroll-preview{display:flex;align-items:center;gap:12px;margin:10px 0;color:#e5d4a6}
.enchant-scroll-preview .source-art{width:52px;height:52px;flex:none}
.enchant-scroll-preview .source-art img{max-width:100%;max-height:100%;object-fit:contain}
.enchant-weights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#enchantSettingsForm{display:grid;gap:16px;margin:20px 0}
#enchantSettingsForm label{display:grid;gap:6px;font-size:16px}
#enchantSettingsForm input{min-width:0;width:100%;font-size:16px}
@media(max-width:480px){.enchant-weights{grid-template-columns:1fr}}

.game-sync-toolbar{max-width:1120px;margin:0 auto 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #655839;background:#172421;border-radius:8px;font-size:14px;color:#c7bc9c}.game-sync-toolbar button{font-size:16px;min-height:44px;color:#f5d99e;border-color:#9b7c44;white-space:nowrap}#cloudRecoveryDialog{width:min(440px,calc(100% - 28px));padding:24px;border:1px solid #caa766;border-radius:12px;background:#152320;color:#ede5cf}#cloudRecoveryDialog h2{font-size:22px;color:#f3d194}#cloudRecoveryDialog p{font-size:16px;line-height:1.7}#cloudRecoveryDialog .primary{width:100%;min-height:48px;font-size:17px}#cloudRecoveryDialog::backdrop{background:#000b}#cloudRecoveryError{color:#ffb79e}@media(max-width:380px){.game-sync-toolbar{flex-wrap:wrap}.game-sync-toolbar button{width:100%}}

.notification-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #5555}.notification-setting span{font-size:16px}.notification-setting small{display:block;font-size:14px;opacity:.75;margin-top:4px}.notification-setting input{width:24px;height:24px;flex:none;accent-color:#b7a05e}.notification-card{border:1px solid #7775;padding:16px;margin:12px 0;border-radius:8px;overflow-wrap:anywhere}.notification-card.unread{border-color:#c7ac61}.notification-card small{font-size:14px}.notification-card p{white-space:pre-wrap}#notificationBadge{background:#a03030;color:#fff;border-radius:12px;padding:2px 6px;font-size:14px}.channel-whisper .chat-channel{color:#d7a3f0}#chatRecipient{width:100%}#guildWarehouseConfirm input{max-width:100%}.social-list [data-guild-rank]{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.social-list [data-guild-rank] label{display:flex;flex-direction:column;gap:4px}
@media(max-width:600px){#gameScreen>header{height:auto;min-height:74px;flex-wrap:wrap;padding:12px 0;gap:8px}#gameScreen>header .brand{flex:1 0 100%}#gameScreen>header .exit-game{margin-left:0}#gameScreen>header>button{font-size:14px;min-height:40px;padding:6px 10px}#gameScreen>header #help{margin-left:auto}.social-list article{flex-wrap:wrap}.social-list [data-guild-rank]{max-width:100%}}

.trial-card{padding:18px;margin:16px 0;border:1px solid #4b4438;border-radius:10px;background:#181a19}.trial-card h3{margin:0}.trial-card progress{width:100%;height:12px;accent-color:#caa969}.trial-card select{width:100%;margin:8px 0 12px}.trial-card .chat-heading{flex-wrap:wrap;gap:8px}.trial-card button{min-height:42px}

.experience-status{padding:14px 16px;margin:12px 0;border:1px solid #d4b065;border-radius:8px;background:#2a3021;color:#f4dba0;font-size:16px;line-height:1.6}

/* Keep the shared item/detail close control reachable while scrolling. */
#dialog .detail-close-bar{position:sticky;top:-28px;z-index:20;display:flex;justify-content:flex-end;background:#172224;margin:-28px -28px 16px;padding:10px 12px;border-bottom:1px solid #8f7b5455}
#closeDialogTop{width:44px;height:44px;min-height:44px;margin:0;padding:0;display:grid;place-items:center;font-size:32px;line-height:1;color:var(--gold);border:1px solid #8f7b54;border-radius:8px;background:#202e30}

.shop-quantity{display:flex;align-items:center;gap:12px;margin:10px 0}.shop-quantity button{min-width:44px;min-height:44px}.shop-quantity input{width:100px;min-height:44px;text-align:center;font-size:16px}

.drop-monster-results,.drop-admin-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.drop-edit-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;padding:1rem;margin:.8rem 0;border:1px solid #695536;border-radius:10px}.drop-edit-row>strong,.drop-edit-row>p{grid-column:1/-1}.drop-edit-row label{display:grid;gap:.4rem;font-size:14px}.drop-edit-row input,.drop-edit-row select{width:100%;min-width:0;box-sizing:border-box}.drop-edit-row button{grid-column:1/-1;justify-self:start}#dropItemResults{display:flex;flex-wrap:wrap;gap:.5rem;margin:.8rem 0}@media(max-width:650px){.drop-edit-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
.source-art.item-art.cursed-item{position:relative;border:3px solid #ed665b;background:#351918;box-shadow:inset 0 0 0 1px #ffb4a8,0 0 7px #ce392b80;overflow:hidden}
.source-art.item-art.cursed-item:after{content:'咒';position:absolute;right:0;bottom:0;min-width:16px;padding:0 2px;background:#ed665b;color:#220807;font-size:12px;font-weight:800;line-height:16px;text-align:center;border-radius:3px 0 0 0}
.cursed-targets{display:grid;gap:10px}.cursed-targets button{text-align:left;white-space:normal;min-height:48px;padding:12px}.cursed-targets small{display:block;font-size:14px}
/* Polymorph cards are full framed portraits, not cropped monster sprite sheets. */
.source-art.polymorph-art{background:transparent;border:0;border-radius:0}
.source-art.polymorph-art .sprite-viewport{width:100%;height:100%;aspect-ratio:auto;display:flex;align-items:center;justify-content:center;overflow:visible}
.source-art.polymorph-art .sprite-viewport img{position:static;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center}
.poly-card{justify-content:flex-start}
.poly-card .source-art.polymorph-art{width:84px;height:auto;max-width:100%;overflow:visible}
.poly-card .polymorph-art .sprite-viewport{height:auto}
.poly-card .polymorph-art .sprite-viewport img{width:100%;height:auto;max-width:100%}

/* Compact classic status tiles: original pixel art with vivid square frames. */
.magic-status-panel{margin:10px 0 4px;padding:9px 0 2px;border:0;border-top:1px solid #8e794730;border-radius:0;background:transparent;text-align:left}
.magic-status-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#cfc8b6;font-size:12px}.magic-status-heading strong{font-weight:500}.magic-status-heading small{color:#9caeaa;font-size:12px}
.magic-status-bar{display:flex;flex-wrap:wrap;gap:3px;margin-top:6px;align-items:flex-start}.magic-status-bar:empty{margin:0}
.magic-status{--status-color:#5eeeff;display:flex;flex-direction:column;align-items:center;gap:3px;flex:0 0 44px;width:44px;min-height:55px;margin:0;padding:4px 4px 2px;border:0;border-radius:0;background:transparent;color:var(--status-color);cursor:pointer;box-shadow:none;transition:none}
.magic-status:hover,.magic-status:active{background:#ffffff0b;border-color:transparent;transform:none}
.status-glyph{display:grid;place-items:center;position:relative;overflow:hidden;box-sizing:border-box;width:32px;height:32px;border:1px solid var(--status-color,#5eeeff);border-radius:1px;background:#000;box-shadow:inset 0 0 2px var(--status-color,#5eeeff),0 0 3px #000;flex-shrink:0}
.status-glyph img{display:block;width:28px;height:28px;object-fit:contain;image-rendering:pixelated;filter:grayscale(1) brightness(1.65);mix-blend-mode:screen;pointer-events:none}
.status-reference{display:block;flex-shrink:0;background-repeat:no-repeat;image-rendering:pixelated;pointer-events:none}.status-glyph:has(.status-reference){border:0;box-shadow:none}
/* Uploaded status PNGs already include their intended color and border. */
.status-glyph:has(.status-native){border:0;background:transparent;box-shadow:none}
.status-glyph img.status-native{width:100%;height:100%;object-fit:contain;filter:none;mix-blend-mode:normal}
.status-letter{font-size:12px;font-weight:700;line-height:1;color:var(--status-color,#5eeeff)}
.magic-status small{display:block;max-width:44px;color:#ddd9cf;font-size:12px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.tone-cyan{--status-color:#52f4ff}.tone-lime{--status-color:#c6ff63}.tone-green{--status-color:#65ff96}.tone-violet{--status-color:#d775ff}.tone-red{--status-color:#ff846e}.tone-pink{--status-color:#ff88e1}
.magic-status.expiring .status-glyph{box-shadow:0 0 5px var(--status-color)}.magic-status.expiring small{color:#ffb96f}.magic-status.paused{opacity:.5}.magic-status:focus-visible{outline:2px solid #f8eabc;outline-offset:1px}
.status-detail-icon{display:flex;align-items:center;gap:12px}.status-detail-icon h2{margin:0}.status-detail-icon .status-glyph{width:40px;height:40px}.status-detail-icon .status-glyph img{width:34px;height:34px}
.magic-auto-settings{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0;padding:14px;border:1px solid #8e79474d;border-radius:10px}.magic-auto-settings label{display:grid;gap:6px;flex:1;min-width:130px;font-size:13px}.magic-auto-settings select{padding:9px;background:#142321;color:#e6dfcb;border:1px solid #697567;border-radius:6px}.magic-auto-settings small{flex-basis:100%;color:#afb5a8}
/* Rankings reuse the game's dark panels and gold accents. */
.ranking-tabs{display:flex;gap:8px;flex-wrap:wrap}.ranking-mine{padding:14px;border:1px solid #bda16b;border-radius:12px;background:#252c25;font-weight:700;margin:12px 0}.ranking-list{display:grid;gap:8px}.ranking-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px 10px;border:1px solid #35403e;border-radius:10px;background:#151d1d}.ranking-position{text-align:center;font-size:20px}.ranking-podium{color:#e4c47c}.ranking-character{min-width:0;overflow-wrap:anywhere}.ranking-character small,.ranking-score small{display:block;font-size:14px;color:#b9bdb6;margin-top:4px}.ranking-score{text-align:right;font-variant-numeric:tabular-nums}.ranking-self{border-color:#bda16b;background:#293126}@media(max-width:380px){.ranking-row{grid-template-columns:30px minmax(0,1fr);gap:8px}.ranking-score{grid-column:2;text-align:left}}
/* Read-only player administration. */
.admin-player-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.admin-player-stats>div{padding:14px;border:1px solid #bda16b;border-radius:10px;background:#202923}.admin-player-stats small,.admin-player-row small{display:block;font-size:14px;color:#bdc5bd}.admin-player-stats strong{display:block;font-size:24px;margin-top:6px}.admin-player-search{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.admin-player-search label{flex:1 1 140px;min-width:0}.admin-player-search input,.admin-player-search select{width:100%;box-sizing:border-box}.admin-player-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #35413d}.admin-player-row>div{min-width:0;overflow-wrap:anywhere}.admin-player-row button{flex-shrink:0}.admin-player-row small{margin-top:6px}#adminPlayerDetailBody details{padding:12px 0;border-bottom:1px solid #35413d}#adminPlayerDetailBody ul{padding-left:22px;overflow-wrap:anywhere}#adminPlayerDetailBody li{margin:8px 0}@media(max-width:600px){.admin-player-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-player-row{align-items:start}}
/* Scoped overrides: generic dialog buttons are full-width, not row actions. */
#adminPlayersDialog .admin-player-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
#adminPlayersDialog .admin-player-row>div{width:100%;min-width:0;word-break:normal;overflow-wrap:break-word}
#adminPlayersDialog .admin-player-row>button{width:auto;max-width:100%;min-height:44px;margin:0;white-space:nowrap}
#adminPlayersDialog .chat-heading{flex-wrap:wrap;gap:12px}
#adminPlayersDialog .chat-heading>button,#adminPlayersDialog .book-pagination>button{width:auto;margin:0;flex:0 0 auto}
#adminPlayersDialog .admin-player-search>button{width:auto;min-height:44px;margin:0}
@media(max-width:600px){#adminPlayersDialog .admin-player-row{grid-template-columns:minmax(0,1fr);padding:16px 0}#adminPlayersDialog .admin-player-row>button{width:100%;justify-self:stretch}#adminPlayersDialog .admin-player-row small{line-height:1.6}#adminPlayersDialog .book-pagination{flex-wrap:wrap;gap:12px}}
