.fps-counter {
    position: fixed;
    z-index: 100;
    left: 18px;
    bottom: 18px;
    min-width: 84px;
    padding: 6px 10px;
    border: 1px solid #a98c6259;
    background: #29241eeb;
    color: #e8d9bd;
    font: 12px/18px 'Consolas', 'Microsoft YaHei', monospace;
    font-variant-numeric: tabular-nums;
    text-align: center;
    pointer-events: none;
    user-select: none;
}
body[data-play-mode='sandbox'] .fps-counter { bottom: 54px; }
body.capture-gameplay-only .fps-counter,
body.lookdev-hide-game-ui .fps-counter { display: none; }
@media (max-width: 850px) {
    body .fps-counter,
    body[data-play-mode='sandbox'] .fps-counter { left: 12px; bottom: 150px; }
}
.game-dialog {
    color: #d8e6dd;
    background: #10231f;
    border: 1px solid #788b6b;
    padding: 28px;
    width: min(520px, calc(100vw - 32px));
    box-sizing: border-box;
    box-shadow: 0 20px 80px #0009;
    font:
        15px/1.8 'Microsoft YaHei',
        sans-serif;
}
.game-dialog::backdrop {
    background: #03130fbd;
}
.game-dialog h2 {
    margin: 0 0 12px;
    color: #efdcac;
    font-family: 'SimSun', serif;
}
.dialog-actions,
.backup-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.dialog-actions button,
.backup-controls button,
.game-button {
    border: 1px solid #526c5e;
    background: #1d3c32;
    color: #e0e8dc;
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
}
.dialog-actions a {
    color: #c0d9cd;
}
.backup-controls {
    margin-top: 14px;
    font-size: 12px;
}
.backup-controls p {
    flex-basis: 100%;
    margin: 0;
    color: #c9a678;
}
.sandbox-badge {
    position: fixed;
    z-index: 90;
    bottom: 12px;
    left: 18px;
    padding: 5px 12px;
    border: 1px solid #8a7751;
    background: #182921e8;
    color: #f0d79e;
    font:
        12px/1.7 'Microsoft YaHei',
        sans-serif;
    pointer-events: none;
}
body[data-play-mode='formal'] #lookdev-panel {
    display: none;
}
:focus-visible {
    outline: 2px solid #d5b576;
    outline-offset: 3px;
}
.preparation-board {
    border-top: 1px solid #afc5a330;
    padding: 38px 0 54px;
}
.departure-goal { max-width:400px; font-size:12px; line-height:1.9; color:#d0c39d; margin:-12px 0 12px; }
.prepare-link { display:inline-block; margin:0 0 24px; font-size:12px; color:#a8c6ac; border-bottom:1px solid #afc5a34d; padding-bottom:5px; }
.preparation-board > header {
    margin-bottom: 30px;
}
.preparation-board .eyebrow {
    margin-bottom: 12px;
}
.preparation-board p {
    font-size: 12px;
    line-height: 1.9;
    color: #b8c9b8;
}
.preparation-board h3 {
    font:
        21px 'SimSun',
        serif;
    color: #d9d0aa;
    margin: 0 0 22px;
}
.preparation-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
}
.preparation-columns article + article {
    border-left: 1px solid #afc5a330;
    padding-left: 28px;
}
.subtle {
    font-size: 11px !important;
    color: #97ad9b !important;
    line-height: 1.8;
}
.loadout-zone {
    border-top: 1px solid #afc5a322;
    padding: 12px 0;
}
.loadout-zone h4 {
    margin: 0 0 9px;
    font-size: 12px;
    font-weight: 400;
    color: #c5b084;
}
.loadout-row,
.recipe-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 12px;
}
.recipe-row {
    padding: 12px 0;
    border-top: 1px solid #afc5a322;
}
.recipe-row b {
    font-weight: 400;
}
.recipe-row small {
    display: block;
    font-size: 10px;
    line-height: 1.8;
    color: #99b09f;
    margin-top: 7px;
}
.game-button {
    font-size: 11px;
    white-space: nowrap;
}
.game-button:hover:enabled {
    background: #365642;
}
.game-button:disabled {
    opacity: 0.4;
    cursor: default;
}
.quest-needs {
    color: #d5bd8c !important;
}
.route-notes {
    border-left: 2px solid #8b9e76;
    background: #14281b55;
    padding: 18px 24px;
    margin-top: 28px;
}
.route-notes b {
    font:
        15px 'SimSun',
        serif;
    letter-spacing: 2px;
}
.route-notes p {
    margin-bottom: 0;
}
.stash-list li {
    flex-wrap: wrap;
}
.stash-actions {
    display: flex;
    flex-basis: 100%;
    gap: 6px;
    margin-left: 19px;
}
.stash-actions .game-button {
    padding: 5px 8px;
}
@media (max-width: 1000px) {
    .preparation-columns {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .preparation-columns article:last-child {
        grid-column: 1/-1;
        border-left: 0;
        padding-left: 0;
    }
    #recipe-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 28px;
    }
}
@media (max-width: 680px) {
    .preparation-columns {
        grid-template-columns: 1fr;
    }
    .preparation-columns article + article {
        border-left: 0;
        padding: 24px 0 0;
        border-top: 1px solid #afc5a330;
    }
    #recipe-list {
        grid-template-columns: 1fr;
    }
    .stash-actions {
        margin-left: 0;
    }
}
.back-link.is-settlement-return {
    z-index: 90;
    top: calc(50% + 126px);
    right: auto;
    left: 50%;
    min-width: 200px;
    padding: 14px 30px;
    border: 1px solid #c0a073;
    color: #f1e2c4;
    background: #4b3a2b;
    box-shadow: inset 0 0 0 3px #302820, 0 8px 24px #0005;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 4px;
    text-align: center;
    transform: translateX(-50%);
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.back-link.is-settlement-return:hover,
.back-link.is-settlement-return:focus-visible {
    border-color: #ecd0a1;
    color: #fff3db;
    background: #604933;
    transform: translateX(-50%);
}
.back-link.is-settlement-return:focus-visible {
    outline: 2px solid #ecd0a1;
    outline-offset: 4px;
}
.raid-panel {
    width: min(760px, calc(100vw - 24px));
    max-height: 85vh;
    overflow: auto;
}
.raid-panel > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.raid-panel h3 {
    font-size: 14px;
    color: #d2bd91;
    margin: 24px 0 12px;
}
.raid-panel label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}
.bag-grid {
    display: grid;
    gap: 4px;
}
.bag-grid span {
    padding: 8px 2px;
    min-height: 34px;
    background: #172f26;
    border: 1px solid #48634c;
    font:
        11px/1.6 'Microsoft YaHei',
        sans-serif;
    text-align: center;
    color: #809780;
}
.bag-grid .occupied {
    background: #3a4930;
    color: #e2d9b7;
}
#expedition-hud {
    position: fixed;
    z-index: 80;
    bottom: 60px;
    right: 18px;
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 8px 10px;
    background: #0b201adc;
    border: 1px solid #48634c;
    color: #c8d7bb;
    font:
        11px/1.8 'Microsoft YaHei',
        sans-serif;
}
#expedition-hud button {
    padding: 4px 7px;
}
.realm-readable { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.realm-readable[hidden], .realm-readable [hidden] { display: none; }
.realm-world-labels { position: absolute; overflow: hidden; }
.realm-world-label { position: absolute; white-space: pre; text-align: center; line-height: 1.55; font-family: 'Microsoft YaHei', sans-serif; font-weight: 500; text-shadow: 0 1px 2px #07140c, 1px 0 1px #07140c, -1px 0 1px #07140c, 0 -1px 1px #07140c; }
.realm-region-title { position: absolute; top: 92px; left: 50%; transform: translateX(-50%); font: 22px/1.7 'SimSun', serif; letter-spacing: .15em; color: #e0d6aa; padding: 6px 22px; background: #10221ee6; border-block: 1px solid #9a9b706b; }
.realm-boss-hud { position: absolute; top: 94px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); padding: 10px 16px; box-sizing: border-box; text-align: center; background: #15221cf2; border: 1px solid #b49b696e; color: #e0c38e; }
.realm-boss-hud strong { font: 18px/1.6 'SimSun', serif; }
.realm-boss-hud span { font: 13px/1.7 'Microsoft YaHei', sans-serif; color: #d4c5a2; }
.realm-boss-track { height: 7px; margin: 7px 0; background: #080f0c; border: 1px solid #79674d; }
.realm-boss-track i { display: block; height: 100%; background: #b56e4e; }
body.lookdev-hide-game-ui .realm-readable, body:has(#raid-panel[open]) .realm-readable { display: none; }
.route-map {
    width: 100%;
    background: #0b1b16;
    border: 1px solid #516446;
}
.route-map path {
    fill: none;
    stroke-width: 2;
}
.route-risk {
    stroke: #bb9070;
}
.route-safe {
    stroke: #91b995;
    stroke-dasharray: 8 6;
}
.route-map circle {
    fill: #e2c990;
}
.route-map text {
    fill: #caddc9;
    font:
        13px 'Microsoft YaHei',
        sans-serif;
}
body.lookdev-hide-game-ui #expedition-hud,
body.lookdev-hide-game-ui .sandbox-badge {
    display: none;
}
@media (max-width: 700px) {
    #expedition-hud {
        left: 10px;
        right: 10px;
        bottom: 95px;
        flex-wrap: wrap;
    }
    #expedition-hud > span {
        flex-basis: 100%;
    }
    .raid-panel {
        padding: 18px;
    }
    .raid-panel .loadout-row {
        flex-wrap: wrap;
    }
}
.camera-choice { display: flex; align-items: center; gap: 16px; margin: 18px 0; color: #cbbf9d; }
.camera-choice select { color: #e3d7b8; background: #263029; border: 1px solid #7d775a; padding: 8px 18px; font: inherit; }
.map-event-range { fill: #bda65a18; stroke: #c6ad68; stroke-width: 1; stroke-dasharray: 4 4; }
