html,body{margin:0;height:100%;background:#0b1523;overflow:hidden;font-family:system-ui,"Microsoft Yahei",sans-serif}.egret-player{position:absolute;width:100%;height:100%;margin:auto}#offline-panel{position:fixed;left:12px;top:12px;z-index:10000;color:#ecf2fa;font-size:12px;max-width:280px;pointer-events:auto}#panel-toggle{background:#163548;color:#bfe6d7;border:1px solid #507870;border-radius:20px;padding:7px 12px;cursor:pointer}#panel-body{display:none;margin-top:6px;padding:14px;background:rgba(8,22,37,.95);border:1px solid #385267;border-radius:9px}#offline-panel.open #panel-body{display:block}#panel-body p{line-height:1.6;margin:8px 0}#panel-body a{color:#a3d7ec}#offline-log{white-space:pre-wrap;max-height:220px;overflow:auto;font-size:10px}canvas{outline:none}
/* City-only ambient fill behind the cropped world layer. It never scales the playable map. */
body.blood-outer-view::before{content:"";position:fixed;inset:-32px;z-index:0;pointer-events:none;background:url('/assets/blood_realm_outer_v2.png') center center/cover no-repeat;filter:blur(24px) brightness(.62) saturate(.8)}
body.blood-outer-view .egret-player{z-index:1}
body.blood-city-view::before{content:"";position:fixed;inset:-32px;z-index:0;pointer-events:none;background:url('/assets/blood_city.png') center center/cover no-repeat;filter:blur(24px) brightness(.62) saturate(.8)}
body.blood-city-view .egret-player{z-index:1}
body.blood-final-view::before{content:"";position:fixed;inset:-32px;z-index:0;pointer-events:none;background:url('/assets/blood_final.png') center center/cover no-repeat;filter:blur(24px) brightness(.62) saturate(.8)}
body.blood-final-view .egret-player{z-index:1}
#entry-pledge-dialog{box-sizing:border-box;width:min(560px,94vw);max-height:92vh;max-height:92dvh;overflow:auto;padding:28px;border:1px solid #9b8655;border-radius:12px;background:linear-gradient(155deg,#193b58,#102035 75%);color:#edf4fb;box-shadow:0 20px 80px #0009;font-size:15px;line-height:1.75}#entry-pledge-dialog::backdrop{background:#060f1fed}#entry-pledge-dialog h1{margin:0 0 14px;color:#f5d58e;font-size:25px}#entry-pledge-dialog p{margin:12px 0}#entry-pledge-dialog .pledge-eyebrow{margin:0 0 4px;color:#adcadd;font-size:13px;letter-spacing:1px}#entry-pledge-dialog blockquote{margin:20px 0;padding:16px;border-left:3px solid #d2ae62;border-radius:0 6px 6px 0;background:#071b2c80;color:#ffe0a1;line-height:1.9}#entry-pledge-dialog label{display:block;margin-bottom:8px;font-weight:600}#entry-pledge-input{box-sizing:border-box;display:block;width:100%;resize:vertical;min-height:98px;max-height:200px;padding:12px;border:1px solid #7393ac;border-radius:6px;background:#071a2a;color:#fff;font:inherit;font-size:16px;line-height:1.8}#entry-pledge-input::placeholder{color:#97adbf}#entry-pledge-input:focus{outline:2px solid #efcd7e;outline-offset:2px}#entry-pledge-input[aria-invalid=true]{border-color:#f2a9a2}#entry-pledge-message{min-height:24px;color:#c2d8e9;font-size:13px}#entry-pledge-confirm{width:100%;padding:11px 16px;border:1px solid #e2c27e;border-radius:6px;background:linear-gradient(#d3a94f,#a77626);color:#fff;font:inherit;font-weight:600;cursor:pointer}#entry-pledge-confirm:disabled{border-color:#587187;background:#30465b;color:#96a8b8;cursor:not-allowed}#entry-pledge-dialog .pledge-note{margin:14px 0 0;font-size:12px;color:#a4bccd}@media(max-width:480px){#entry-pledge-dialog{padding:20px;font-size:14px}#entry-pledge-dialog h1{font-size:22px}#entry-pledge-dialog blockquote{padding:12px;margin:16px 0}}
/* Keep diagnostic JSON inside the collapsible panel. */
#features-dialog{box-sizing:border-box;width:min(760px,94vw);max-height:90vh;overflow:auto;padding:22px;background:#10283a;color:#e7f2fa;border:1px solid #4d7690;border-radius:12px;font-size:14px}#features-dialog::backdrop{background:#030d1bd9}#features-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}#features-dialog h2{margin:0;font-size:22px}#features-dialog h3{margin-top:24px;color:#ffd078}#features-dialog p{line-height:1.7}#features-dialog button{padding:8px 14px;border:1px solid #547a92;border-radius:6px;background:#173c52;color:#edf8ff;cursor:pointer;font:inherit}
#combat-rating-dialog{box-sizing:border-box;width:min(660px,94vw);max-height:90vh;overflow:auto;padding:24px;background:#10283a;color:#e7f2fa;border:1px solid #4d7690;border-radius:12px;font-size:15px}#combat-rating-dialog::backdrop{background:#030d1bd9}#combat-rating-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}#combat-rating-dialog button{padding:8px 14px;border:1px solid #547a92;border-radius:6px;background:#173c52;color:#edf8ff;cursor:pointer;font:inherit}#combat-rating-dialog h2{margin:0;font-size:22px}#combat-rating-dialog h3{color:#ffd078}#combat-rating-dialog section{padding:12px 0;border-top:1px solid #385267}#combat-rating-dialog h4{margin:0}#combat-rating-dialog p{line-height:1.7}.rating-note{color:#abc6d8;font-size:13px}
#offline-state{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;font-size:10px}
#equipment-dialog{box-sizing:border-box;width:min(620px,94vw);max-height:90vh;overflow:auto;padding:24px;background:#10283a;color:#e7f2fa;border:1px solid #4d7690;border-radius:12px;font-size:15px}#equipment-dialog::backdrop{background:#030d1bd9}#equipment-dialog header{display:flex;align-items:center;justify-content:space-between}#equipment-dialog h2{font-size:22px}#equipment-dialog label{display:block;margin:18px 0}#equipment-dialog select{display:block;width:100%;margin-top:8px}#equipment-dialog button,#equipment-dialog select{padding:10px;border:1px solid #547a92;border-radius:6px;background:#173c52;color:#edf8ff;font:inherit}#equipment-dialog button{cursor:pointer}#equipment-dialog p{line-height:1.7}.workshop-note{color:#abc6d8;font-size:13px}
.actions{display:flex;gap:5px;flex-wrap:wrap}.actions button{border:1px solid #507870;border-radius:6px;background:#163548;color:#d0eee4;padding:7px;cursor:pointer}.actions button:disabled{opacity:.4;cursor:default}
#career-dialog{box-sizing:border-box;width:min(940px,96vw);max-height:92vh;padding:20px;border:1px solid #4d7690;border-radius:12px;background:#10283a;color:#e7f2fa;font-size:14px;overflow:auto}#career-dialog::backdrop{background:#030d1bd9}#career-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}#career-dialog h2{font-size:20px;margin:0}#career-dialog h3{margin:0 0 15px;font-size:18px}#career-dialog button,#career-dialog select,#career-dialog input{font:inherit;border:1px solid #547a92;border-radius:5px;padding:8px;background:#173c52;color:#edf8ff}#career-dialog button{cursor:pointer}#career-dialog button:hover{background:#265b70}#career-teachers,.career-filters,.career-levels{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}#career-search{flex:1;min-width:170px}.career-columns{display:grid;grid-template-columns:minmax(200px,1fr) minmax(280px,1.5fr);gap:16px}#career-results{display:flex;flex-direction:column;gap:6px;overflow:auto;max-height:48vh}.career-result{text-align:left}#career-detail{padding:16px;border-radius:8px;background:#091d2e;max-height:48vh;overflow:auto;line-height:1.65}.career-note{color:#a9c3d6;font-size:12px}#panel-body{max-height:78vh;overflow:auto}@media(max-width:600px){.career-columns{grid-template-columns:1fr}#career-results{max-height:22vh}#career-detail{max-height:32vh}#career-dialog{padding:12px}}

#composition-dialog{box-sizing:border-box;width:min(660px,94vw);max-height:90vh;overflow:auto;padding:24px;background:#10283a;color:#e7f2fa;border:1px solid #4d7690;border-radius:12px;font-size:15px}#composition-dialog::backdrop{background:#030d1bd9}#composition-dialog header{display:flex;align-items:center;justify-content:space-between}#composition-dialog h2{font-size:22px}#composition-dialog label{display:block;margin:16px 0}#composition-dialog select,#composition-dialog input{display:block;width:100%;box-sizing:border-box;margin-top:8px}#composition-dialog button,#composition-dialog select,#composition-dialog input{padding:10px;border:1px solid #547a92;border-radius:6px;background:#173c52;color:#edf8ff;font:inherit}#composition-dialog button{cursor:pointer}#composition-dialog button:disabled{opacity:.5;cursor:default}#composition-dialog p,#composition-dialog li{line-height:1.7}#composition-dialog li{margin:10px 0}.composition-note,#composition-range{color:#abc6d8;font-size:13px}#composition-dialog [hidden]{display:none}#composition-status{color:#9be3b2}#equipment-dialog .actions{margin-top:12px}

#recorded-dialog{width:min(1050px,94vw);max-height:92vh;color:#d9e9f0;background:#132838;border:1px solid #719baf;border-radius:12px;padding:20px}#recorded-dialog header{display:flex;justify-content:space-between;align-items:center}#recorded-dialog h2{margin:0}#recorded-dialog button,#recorded-dialog select,#recorded-dialog input{padding:9px 12px;border:1px solid #69889c;border-radius:6px;background:#204155;color:#f3f7f9;cursor:pointer}#recorded-dialog .career-filters{display:flex;gap:10px}#recorded-search{flex:1;min-width:80px}.recorded-columns{display:grid;grid-template-columns:minmax(150px,28%) 1fr;gap:20px;height:54vh}#recorded-results,#recorded-detail{overflow:auto}#recorded-results button{display:block;width:100%;text-align:left;margin-bottom:5px}#recorded-detail{padding:0 12px}#recorded-detail p{white-space:pre-wrap;line-height:1.7}#recorded-detail pre{white-space:pre-wrap;word-break:break-word}#recorded-detail button{margin:5px}#recorded-detail .recorded-note{color:#dfc17e;font-size:13px}#recorded-status{display:inline-block;margin-left:12px;color:#f2d37f}@media(max-width:650px){#recorded-dialog{padding:12px}.recorded-columns{grid-template-columns:135px 1fr;gap:8px}#recorded-detail{padding:0 4px}}
