.auth-screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 80px 20px; overflow: auto; background: transparent; }
.location-card i, .score-dot { width: 5px; height: 5px; display: inline-block; background: #d35943; box-shadow: 0 0 10px #d3594377; border-radius: 50%; }
.auth-card { flex: none; width: 370px; max-width: 100%; margin: auto; transform: translateY(80px); padding: 29px; background: #100e0eeb; border: 1px solid #8b6b503d; border-top: 2px solid #9e372d; box-shadow: 0 8px 24px #0003; backdrop-filter: blur(14px); border-radius: 4px; }
.auth-tabs { display: flex; border-bottom: 1px solid #ffffff12; margin-bottom: 25px; }
.auth-tabs button { width: 50%; padding: 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #8d837e; font-size: 13px; }
.auth-tabs button[aria-selected="true"] { color: #edd6c9; border-color: #be4f3f; background: linear-gradient(0deg, #8b34211c, transparent); }
.field-label { display: block; color: #c5b7ae; font-size: 11px; margin: 17px 0 9px; }
.auth-card input:not([type="checkbox"]) { width: 100%; height: 44px; background: #0808087a; border: 1px solid #463c34; border-radius: 3px; padding: 0 13px; color: #eee3dc; font: inherit; font-size: 12px; }
.auth-card input::placeholder { color: #6c635d; }
.auth-card input:focus { border-color: #a54c3a; }
.remember-options { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin: 18px 0 0; }
.remember-options label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #ad9e93; cursor: pointer; }
.remember-options input { accent-color: #ad4736; margin: 0; width: 13px; height: 13px; }
.auth-message { color: #ed9b85; font-size: 11px; line-height: 1.5; min-height: 18px; margin: 12px 0; }
.map-loading p { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: #eee3dc; }
.map-loading progress { display: block; width: 100%; height: 7px; accent-color: #be4f3f; }
.map-loading button { width: 100%; margin-top: 18px; }
.loading-screen { z-index: 10; }
.audio-toggle { z-index: 6; }
.notice { z-index: 12; }
.play-screen { position: absolute; inset: 0; background: #080c0c; }
#world { display: block; width: 100%; height: 100%; outline: none; cursor: none; touch-action: none; }
.game-header { position: absolute; top: 28px; left: 30px; right: calc(92px + env(safe-area-inset-right)); display: flex; justify-content: space-between; gap: 20px; pointer-events: none; }
.location-card { padding: 14px 18px; background: linear-gradient(90deg, #080d0fee, #080d0f22); border-left: 2px solid #ad493a; }
.location-card .eyebrow { color: #b5b5a4; font-size: 8px; letter-spacing: .2em; }
.location-card i { margin: 0 8px 1px; }
.location-card h2 { margin: 8px 0 7px; font-size: 17px; font-weight: 600; letter-spacing: .06em; color: #e4e3d7; }
.location-card p { margin: 0; font-size: 10px; color: #b0b5aa; }
.location-card p span { color: #93968b; margin-left: 8px; }
.game-header-actions { display: flex; align-items: flex-start; gap: 16px; font-size: 10px; color: #c7c4b9; }
#player-name { padding-top: 14px; text-shadow: 0 2px 6px #000; }
.hud-button { pointer-events: auto; border: 1px solid #72736555; border-radius: 3px; background: #0b100fe0; padding: 11px 14px; color: #cacdc0; font-size: 12px; }
.hud-button span { font-size: 10px; margin-left: 7px; }
.target-score { position: absolute; top: 145px; left: 49px; display: flex; align-items: center; gap: 10px; font-size: 8px; letter-spacing: .14em; color: #bdbba8; pointer-events: none; text-shadow: 0 2px 5px #000; }
.target-score strong { font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; color: #e8dfcc; }
.score-separator { width: 1px; height: 12px; background: #a5a98a55; margin: 0 4px; }
.game-bottom { position: absolute; bottom: 28px; left: 30px; right: 92px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; pointer-events: none; }
.survivor-status { width: 210px; background: linear-gradient(90deg, #090e0de6, transparent); padding: 15px; }
.survivor-status .eyebrow { color: #aaa99b; font-size: 8px; }
.health-line { display: flex; gap: 10px; align-items: center; }
.health-line span { color: #bacbb0; font-size: 20px; }
.health-line div { flex: 1; height: 3px; background: #a6b39a; box-shadow: 0 0 9px #bdc9a422; }
.health-line b { font-size: 11px; font-weight: 400; color: #c7d3bc; }
.survivor-status p { color: #9ca592; font-size: 8px; margin: 9px 0 0; white-space: nowrap; }
.online-dot { display: inline-block; width: 4px; height: 4px; background: #9eae83; border-radius: 50%; margin-right: 5px; }
.control-hints { display: flex; gap: 18px; font-size: 9px; color: #c4c3b1; padding-bottom: 12px; text-shadow: 0 2px 5px #000; }
.control-hints span { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
kbd { font: inherit; font-size: 8px; border: 1px solid #c1bca34d; border-radius: 2px; background: #101613c4; padding: 3px 4px; }
.control-hints b { font-size: 15px; font-weight: normal; margin-right: 3px; }
.weapon-card { flex: 0 0 174px; padding: 15px 17px; border: 1px solid #94917c33; border-right: 2px solid #a44e38; border-radius: 3px; background: #090f0ee6; }
.weapon-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.weapon-card .eyebrow { color: #b2b3a2; font-size: 7px; letter-spacing: .14em; }
#weapon-state { color: #97aa8e; font-size: 6px; letter-spacing: .1em; }
.ammo-line { display: flex; align-items: baseline; gap: 7px; font-variant-numeric: tabular-nums; }
.ammo-line strong { font-size: 38px; font-weight: 400; color: #e5e4d1; letter-spacing: -.04em; }
.ammo-line > span { color: #8f9687; font-size: 13px; }
.ammo-line .ammo-reserve { margin-left: auto; color: #b5baa1; font-size: 23px; }
.reload-track { height: 2px; background: #666b5844; margin-top: 8px; }
#reload-fill { width: 100%; height: 100%; background: #bcbba1; transform: scaleX(1); transform-origin: left; }
.weapon-card p { margin: 8px 0 0; font-size: 7px; color: #9fa58f; letter-spacing: .05em; }
.weapon-card.reloading #reload-fill { background: #e69b6e; }
.weapon-card.reloading #weapon-state { color: #e5a17e; }
.weapon-card.unarmed .ammo-line > span, .weapon-card.unarmed .reload-track { visibility: hidden; }
.pause-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: #050909ae; backdrop-filter: blur(5px); z-index: 4; cursor: auto; }
.pause-card { width: min(350px, 90vw); padding: 32px; text-align: center; background: #100e0ff0; border: 1px solid #574036; border-top: 2px solid #a54434; }
.pause-card h2 { font-weight: 400; font-size: 28px; margin: 14px 0; }
.pause-card p:not(.eyebrow) { color: #a39788; font-size: 11px; line-height: 1.6; }
.pause-card .primary-button { margin: 24px 0 12px; }
.pause-card .secondary-button { width: 100%; }
@media (max-width: 1000px) { .control-hints { gap: 10px; }.control-hints span:nth-child(n+2) { display: none; } }
@media (max-width: 680px) { .auth-card { padding: 24px; }.game-header { top: 15px; left: 15px; right: calc(77px + env(safe-area-inset-right)); }.location-card { padding: 10px; }.location-card h2 { font-size: 12px; }.location-card p { font-size: 8px; }.game-header-actions { gap: 6px; }#player-name { display: none; }.target-score { top: 120px; left: 28px; }.game-bottom { left: 15px; bottom: 18px; right: 77px; gap: 10px; }.survivor-status { width: 140px; padding: 10px; }.survivor-status p { white-space: normal; line-height: 1.5; }.control-hints { display: none; }.weapon-card { flex-basis: 135px; padding: 10px; }.ammo-line strong { font-size: 30px; }.audio-toggle { width: 40px; height: 40px; right: max(20px, env(safe-area-inset-right)); top: max(20px, env(safe-area-inset-top)); }.game-version { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); } }
@media (max-height: 650px) and (min-width: 681px) { .auth-screen { padding-block: 24px; }.auth-card { padding: 18px 25px; }.auth-tabs { margin-bottom: 15px; }.field-label { margin-top: 12px; }.game-header { top: 15px; }.game-bottom { bottom: 15px; } }

.editor-link { display: block; color: #d8ae89; font-size: 12px; margin-top: 16px; text-decoration: none; }

.lighting-panel { position: absolute; z-index: 3; top: 85px; right: 24px; bottom: 24px; width: min(330px, calc(100% - 32px)); display: flex; flex-direction: column; padding: 20px; border: 1px solid #78634b88; border-top: 2px solid #b56c48; border-radius: 5px; background: #0d1212f5; box-shadow: 0 12px 40px #0008; color: #e6dfce; cursor: auto; }
.lighting-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lighting-heading .eyebrow { font-size: 8px; color: #bd9a77; margin: 0 0 7px; }
.lighting-heading h2 { margin: 0; font-size: 21px; font-weight: 500; }
.lighting-heading button { font-size: 22px; padding: 4px 11px; }
.lighting-help { font-size: 11px; line-height: 1.7; color: #b0b4a6; margin: 12px 0; }
#lighting-flashlight { width: 100%; padding: 9px; color: #e1c59c; }
#lighting-flashlight[aria-pressed="true"] { background: #66533344; border-color: #c5a66e88; }
.lighting-controls { flex: 1; min-height: 60px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #897454 #161b19; margin: 14px -6px 0 0; padding-right: 10px; }
.lighting-controls fieldset { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.lighting-controls legend { margin: 0 0 12px; padding: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: #d5b38d; }
.lighting-control { margin: 0 0 12px; }
.lighting-control > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: #d1d1c0; }
.lighting-control output { flex: none; font-variant-numeric: tabular-nums; color: #e6b982; font-size: 10px; }
.lighting-control-hint { margin: 2px 0 0; font-size: 10px; line-height: 1.5; color: #9da797; }
.lighting-control input { display: block; width: 100%; height: 22px; margin: 3px 0 0; accent-color: #c68a56; cursor: ew-resize; }
.lighting-control input:focus-visible { outline: 2px solid #d8b27b; outline-offset: 2px; border-radius: 4px; }
.lighting-footer { border-top: 1px solid #a4987733; padding-top: 12px; }
.lighting-footer .primary-button { font-size: 12px; min-height: 38px; padding: 10px; }
#lighting-status { font-size: 11px; line-height: 1.5; min-height: 32px; margin: 9px 0 0; color: #b5c3a4; }
@media (max-height: 650px), (max-width: 680px) { .lighting-panel { top: 12px; bottom: 12px; right: 12px; padding: 14px; }.lighting-help { margin: 6px 0; }.lighting-heading h2 { font-size: 18px; } }
@media (max-height: 650px) and (min-width: 681px) { .lighting-panel { right: 82px; } }
@media (max-width: 680px) { .lighting-panel { top: 74px; } }

.health-line #health-fill { transform-origin: left; transition: transform .15s; }
.control-hints { flex-wrap: wrap; justify-content: center; row-gap: 8px; max-width: 580px; }
.collision-panel { width: min(350px, calc(100% - 32px)); }
.collision-actor-label { margin: 12px 0 5px; font-size: 11px; color: #adbbb5; }
#collision-actor { background: #17211f; border: 1px solid #50615b; color: #e3ede4; padding: 8px; border-radius: 3px; }
#collision-preview { width: 100%; height: 165px; flex: 0 0 165px; object-fit: contain; background: radial-gradient(ellipse, #24352d, #0c1210); margin-top: 8px; border: 1px solid #49584c44; image-rendering: pixelated; }
.collision-help { font-size: 10px; line-height: 1.5; color: #b9c0b5; margin: 8px 0 0; }
.collision-region legend { color: var(--region); }
.collision-region input { accent-color: var(--region); }
#collision-status { font-size: 11px; line-height: 1.5; margin: 9px 0 0; color: #b5c3a4; }
.inventory-panel { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: #050a0cbb; backdrop-filter: blur(7px); cursor: auto; color: #dce5e2; }
.inventory-shell { width: min(1050px, 100%); max-height: calc(100svh - 48px); overflow: auto; border: 1px solid #657c7355; background: linear-gradient(130deg, #172224f5, #0d1417fc 60%); box-shadow: 0 25px 90px #000b; border-radius: 8px; scrollbar-width: thin; scrollbar-color: #667b72 #172223; }
.inventory-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 28px; border-bottom: 1px solid #829b8c22; }
.inventory-header p { margin: 0 0 9px; font-size: 9px; color: #d5b989; letter-spacing: .22em; font-weight: 700; }
.inventory-header p span { color: #7e9690; font-weight: 400; }
.inventory-header h2 { margin: 0; font-weight: 500; font-size: 27px; letter-spacing: -.02em; }
.inventory-header-right { display: flex; align-items: center; gap: 24px; font-size: 9px; color: #8fa49b; }
.inventory-header-right b { display: block; font-size: 17px; color: #e5e9df; font-weight: 500; margin-top: 4px; }
#inventory-close { border: 1px solid #78908455; background: #1a292bcc; color: #d0ddd5; border-radius: 4px; font-size: 11px; padding: 9px 11px; }
#inventory-close span { font-size: 20px; margin-left: 10px; }
.inventory-columns { display: grid; grid-template-columns: 350px minmax(0, 1fr); }
.survivor-equipment { border-right: 1px solid #829b8c22; padding: 22px; background: radial-gradient(ellipse at 50% 40%, #34413d44, transparent 65%); }
.inventory-person { display: flex; align-items: center; gap: 7px; padding-bottom: 16px; }
.inventory-person h3 { margin: 0; font-size: 12px; font-weight: 500; flex: 1; overflow-wrap: anywhere; }
.inventory-person > span:last-child { font-size: 10px; color: #9dc7aa; }
.inventory-online-dot { width: 5px; height: 5px; border-radius: 50%; background: #a4ce9e; box-shadow: 0 0 10px #80bc7688; }
.equipment-stage { position: relative; height: 360px; }
#inventory-portrait { position: absolute; width: 160px; height: 250px; object-fit: contain; left: 50%; top: 62px; transform: translateX(-50%); image-rendering: pixelated; filter: drop-shadow(0 10px 12px #0009); }
.portrait-rings { width: 180px; height: 180px; position: absolute; left: 50%; top: 80px; transform: translateX(-50%); border: 1px solid #80998a20; border-radius: 50%; box-shadow: 0 0 0 22px #80998a05, 0 0 0 23px #80998a09; }
.equipment-slot { --rarity: #8a9e95; position: absolute; width: 78px; height: 88px; border: 1px solid #6c827a44; border-radius: 4px; background: #111c1ecc; color: #779188; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 5px; }
.equipment-label { position: absolute; top: 7px; left: 7px; font-size: 7px; letter-spacing: .12em; color: #9eb3a7; }
.empty-equipment { font-size: 25px; line-height: 1; color: #62797088; margin-top: 10px; }
.equipment-slot small { font-size: 8px; color: #81998d; }
.head-slot { top: 0; left: 50%; transform: translateX(-50%); width: 66px; height: 58px; }
.head-slot .empty-equipment { font-size: 20px; }
.armor-slot { left: 0; top: 84px; height: 78px; }
.coat-slot { left: 0; top: 176px; height: 78px; }
.pants-slot { left: 0; top: 268px; height: 78px; }
.melee-slot { right: 0; top: 182px; height: 78px; }
.weapon-slot { right: 0; top: 84px; cursor: pointer; z-index: 1; }
.feet-slot { right: 0; top: 278px; height: 68px; }
.equipped-summary { border-top: 1px solid #819a8926; padding-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.equipped-summary > span { font-size: 8px; color: #81978c; letter-spacing: .15em; }
.equipped-summary strong { font-size: 13px; font-weight: 500; color: #dcdcc1; }
.equipped-summary small { font-size: 10px; color: #a6b5a8; }
.equipment-instruction { font-size: 10px; line-height: 1.6; color: #85998e; margin: 15px 0 0; }
.equipment-instruction b { font-weight: 400; color: #bdcbbf; }
.inventory-storage { padding: 24px 26px; min-width: 0; }
.storage-heading, .nearby-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.storage-heading h3, .nearby-heading h3 { font-size: 13px; font-weight: 500; margin: 0; }
.storage-heading span, .nearby-heading span { color: #758e83; font-size: 8px; letter-spacing: .1em; }
.inventory-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.inventory-slot { --rarity: #a5b2aa; position: relative; min-width: 0; aspect-ratio: 1; border: 1px solid #6c85763b; background: #0c171980; border-radius: 4px; padding: 5px; cursor: pointer; color: #a9b6ac; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.inventory-slot:hover, .inventory-slot:focus-visible, .weapon-slot:focus-visible, .weapon-slot:hover, .melee-slot:hover, .melee-slot:focus-visible { outline: 1px solid #b7c9b3; outline-offset: 1px; background-color: #30423966; }
.has-item { border-color: color-mix(in srgb, var(--rarity), transparent 50%); box-shadow: inset 0 -12px 15px -12px var(--rarity); }
.item-art { max-width: 94%; height: 68%; object-fit: contain; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 3px 3px #0008); }
.item-short-name { display: block; width: 100%; font-size: 7px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d3dccd; }
.item-rarity-dot { position: absolute; left: 5px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--rarity); color: transparent; overflow: hidden; }
.item-quantity { position: absolute; bottom: 5px; right: 5px; font-size: 9px; color: #f1dfba; background: #101c19e6; padding: 1px 3px; border-radius: 2px; }
.empty-slot-number { position: absolute; bottom: 6px; right: 7px; font-size: 8px; color: #52675f55; }
.weapon-slot .item-art, .melee-slot .item-art { margin-top: 14px; height: 55%; }
.weapon-slot .item-rarity-dot, .melee-slot .item-rarity-dot { top: 8px; left: auto; right: 7px; }
.ammo-placeholder { display: grid; place-items: center; width: 90%; height: 70%; border: 1px solid #d5b86d66; border-radius: 3px; background: repeating-linear-gradient(90deg, #9d7e3d22 0 6px, #151f19aa 6px 10px); color: #ead09c; font-size: 11px; text-shadow: 0 1px 3px #000; }
.nearby-heading { margin-top: 24px; }
.inventory-nearby { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: 126px; overflow: auto; scrollbar-width: thin; }
.nearby-empty { font-size: 11px; color: #788f82; line-height: 1.6; grid-column: 1 / -1; margin: 0; }
.nearby-item { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid #5e7a6755; border-left: 2px solid var(--rarity); border-radius: 3px; background: #101c1f; color: #c5d3c8; text-align: left; }
.nearby-item .item-art, .nearby-item .ammo-placeholder { width: 32px; height: 32px; flex: 0 0 32px; font-size: 7px; }
.nearby-item > span:not(.ammo-placeholder) { font-size: 9px; flex: 1; }
.nearby-item b { font-size: 8px; font-weight: 500; color: #a6cca8; }
.inventory-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 26px; border-top: 1px solid #829b8c22; font-size: 10px; color: #9bb19e; }
.inventory-footer p { margin: 0; }
.inventory-footer > span { color: #6c8277; font-size: 9px; }
.item-tooltip { position: fixed; z-index: 15; width: min(300px, calc(100vw - 24px)); display: grid; grid-template-columns: 1fr; pointer-events: none; border: 1px solid #8ba18c55; background: #0a1519fa; border-radius: 5px; box-shadow: 0 12px 50px #000b; max-height: calc(100svh - 24px); overflow: auto; }
.item-tooltip.comparing { width: min(600px, calc(100vw - 24px)); grid-template-columns: 1fr 1fr; }
.tooltip-card { min-width: 0; padding: 16px; border-top: 2px solid var(--rarity); }
.tooltip-card + .tooltip-card { border-left: 1px solid #8ba18c33; background: #21302833; }
.tooltip-caption { font-size: 8px !important; letter-spacing: .15em; color: #80968c; margin: 0 0 7px !important; }
.tooltip-card h3 { font-size: 17px; font-weight: 500; color: var(--rarity); margin: 0 0 6px; }
.tooltip-card p { font-size: 10px; line-height: 1.6; margin: 7px 0; }
.tooltip-rarity { color: var(--rarity); }
.tooltip-ammo { color: #92a69c; padding-bottom: 8px; border-bottom: 1px solid #70897733; }
.tooltip-stat { display: flex; align-items: baseline; gap: 5px; padding: 4px 0; font-size: 10px; }
.tooltip-stat > span { color: #bcc9be; flex: 1; }
.tooltip-stat b { color: #eee5cf; font-weight: 500; font-variant-numeric: tabular-nums; }
.tooltip-stat em { font-style: normal; min-width: 38px; text-align: right; font-size: 9px; }
.stat-gain { color: #7fe19a; }.stat-loss { color: #ff858b; }.stat-equal { color: #55685d; }
.tooltip-divider { font-size: 8px !important; letter-spacing: .1em; color: #839b8c; border-top: 1px solid #70897733; padding-top: 10px; }
.tooltip-note { font-size: 8px !important; color: #708779; margin-bottom: 0 !important; }
.item-menu { position: fixed; z-index: 16; width: 172px; padding: 5px; border: 1px solid #97b09966; border-radius: 4px; background: #142225fa; box-shadow: 0 8px 30px #000a; }
.item-menu button { display: block; width: 100%; padding: 11px; border: 0; border-radius: 2px; background: transparent; color: #d7e6d5; font-size: 11px; text-align: left; }
.item-menu button:hover, .item-menu button:focus-visible { background: #54755a55; outline: none; }
@media (max-width: 900px) { .inventory-panel { padding: 12px; }.inventory-shell { max-height: calc(100svh - 24px); }.inventory-columns { grid-template-columns: 290px minmax(0, 1fr); }.inventory-storage { padding: 20px 16px; }.survivor-equipment { padding: 18px 12px; }.inventory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.inventory-nearby { grid-template-columns: 1fr; }.inventory-header { padding: 17px; } }
@media (max-width: 620px) { .inventory-panel { padding: 6px; }.inventory-shell { max-height: calc(100svh - 12px); }.inventory-columns { grid-template-columns: 1fr; }.survivor-equipment { border-right: 0; border-bottom: 1px solid #829b8c22; }.equipment-stage { height: 355px; max-width: 340px; margin: auto; }#inventory-portrait { top: 65px; height: 250px; }.equipment-instruction { margin-top: 9px; }.inventory-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }.inventory-storage { padding: 18px 12px; }.inventory-footer { padding: 12px; flex-direction: column; align-items: flex-start; gap: 7px; }.tooltip-card { padding: 10px; }.tooltip-card h3 { font-size: 14px; }.tooltip-stat { font-size: 9px; }.tooltip-stat em { min-width: 27px; font-size: 8px; }.inventory-header-right { gap: 12px; }.inventory-header h2 { font-size: 22px; } }
@media (max-height: 720px) { #collision-preview { height: 100px; flex-basis: 100px; }.collision-help { font-size: 9px; }.collision-panel { top: 12px; }.collision-panel .lighting-controls { margin-top: 8px; }.collision-panel .lighting-footer { padding-top: 7px; } }

.profession-screen { position:absolute; inset:0; z-index:3; overflow:auto; padding:30px 24px; display:grid; place-items:center; background:#080e10b8; color:#e2dfcc; }
.profession-card { width:min(1050px,100%); margin:auto; padding:28px; border:1px solid #8d765b70; border-top:3px solid #a9885b; background:#101918f5; box-shadow:0 24px 80px #0008; }
.profession-card h1 { font-weight:500; font-size:34px; margin:10px 0; }
.profession-intro { color:#bcb9a6; font-size:13px; line-height:1.6; max-width:650px; }
.profession-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:24px 0; }
.profession-option { padding:18px 15px; min-height:245px; border:1px solid #7c806247; background:#1a2421; color:#e4dfca; text-align:left; cursor:pointer; }
.profession-option h2 { font-size:21px; font-weight:500; margin:10px 0; }
.profession-option p { font-size:11px; color:#b8c0ad; line-height:1.65; margin:10px 0; }
.profession-option strong { font-size:12px; color:#d9b887; }
.profession-option:hover { border-color:#c6b18a; background:#26302a; }
.profession-option[aria-pressed="true"] { border-color:#d5b275; box-shadow:inset 0 0 0 1px #d5b275; background:#30372b; }
.profession-option:focus-visible { outline:2px solid #eccd8f; outline-offset:3px; }
.profession-choice { display:flex; align-items:center; flex-wrap:wrap; gap:14px; border-top:1px solid #68795b55; padding-top:18px; }
.profession-choice p { flex:1; min-width:200px; font-size:13px; color:#dacaac; }
.profession-choice .primary-button { width:auto; min-width:260px; }
#profession-message { font-size:12px; color:#dfbe8e; }
.status-panel { position:absolute; z-index:5; inset:5% max(18px,calc((100% - 1050px)/2)); padding:24px; display:flex; flex-direction:column; background:#0d1717fa; color:#dedfca; border:1px solid #9b825e8c; border-top:3px solid #b49158; box-shadow:0 20px 70px #000a; cursor:auto; }
#status-xp { color:#b0bfaa; font-size:12px; margin:8px 0 0; }
.status-points { color:#e5c287; font-size:14px; padding:12px 0; margin:0; }
.status-content { flex:1; min-height:0; overflow:auto; display:grid; grid-template-columns:1.25fr 1fr; gap:24px; padding-right:6px; scrollbar-width:thin; }
.skill-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px; margin-bottom:9px; background:#1b2723; border:1px solid #606e5344; }
.skill-card h3 { font-size:14px; font-weight:500; margin:0 0 5px; }
.skill-card p,.skill-card small { font-size:10px; line-height:1.55; color:#adb7a4; margin:0; }
.skill-card small { display:block; color:#d1bc95; margin-top:5px; }
.skill-add { flex-shrink:0; background:#3c4933; color:#ece0bd; border:1px solid #a08e5f; padding:9px; cursor:pointer; font-size:11px; }
.skill-add:disabled { opacity:.4; cursor:default; }
#status-profession,#status-workshop { padding:18px; background:#141e1d; border:1px solid #68715a55; margin-bottom:16px; }
#status-profession h3,#status-workshop h3 { font-size:20px; margin:10px 0; font-weight:500; }
#status-profession h4 { margin:16px 0 5px; color:#dec38e; font-size:13px; }
#status-profession p,#status-workshop p { font-size:11px; color:#b5bba9; line-height:1.6; }
.profession-bonus { display:block; font-size:11px; line-height:1.75; }
.profession-limits { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin-top:15px; font-size:10px; color:#798172; }
.profession-limits .unlocked { color:#b7d69c; }
#status-workshop label { display:block; font-size:11px; margin:14px 0 5px; color:#cbbb96; }
#status-workshop select { width:100%; color:#e4dcc4; background:#1c2926; border:1px solid #6f755d; padding:9px; font-size:11px; }
#status-workshop button { display:block; width:100%; margin-top:13px; padding:10px; font-size:11px; }
#status-workshop button:disabled { opacity:.45; }
.work-cost { display:block; margin-top:6px; font-size:10px; line-height:1.5; color:#c2b187; }
#status-message { min-height:16px; font-size:11px; color:#d5c299; margin:12px 0 0; }
.item-level { position:absolute; top:5px; right:6px; color:#e6d09e; font-size:9px; background:#111b; padding:2px; }
.tooltip-level { color:#e8c688; font-size:12px; }
@media(max-width:900px) { .profession-options { grid-template-columns:repeat(2,minmax(0,1fr)); }.status-content { grid-template-columns:1fr; }.status-panel { inset:12px; padding:16px; } }
@media(max-width:500px) { .profession-screen { padding:12px; }.profession-card { padding:18px; }.profession-options { grid-template-columns:1fr; }.profession-option { min-height:0; }.profession-choice .primary-button { width:100%; min-width:0; } }

/* Survival reserves remain beside health, including narrow viewports. */
.vital-row { display: grid; grid-template-columns: 48px minmax(26px, 1fr) 22px; align-items: center; gap: 7px; margin-top: 9px; color: #c6c4ae; font-size: 8px; font-variant-numeric: tabular-nums; }
.vital-row b { font-size: 9px; font-weight: 400; text-align: right; }
.vital-track { height: 4px; background: #bcbda52b; border-radius: 2px; overflow: hidden; }
.vital-track i { display: block; height: 100%; width: 100%; transform-origin: left; background: #c7a56b; transition: transform .12s linear; }
.thirst .vital-track i { background: #78b6c3; }
.stamina .vital-track i { background: #a5c185; }
.vital-row.low { color: #e99879; }
.vital-row.low .vital-track i { background: #e08768; }
.control-hints { flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; }
@media (max-width: 680px) { .vital-row { grid-template-columns: 40px minmax(20px, 1fr) 18px; gap: 4px; font-size: 7px; } }

/* ECG health monitor and nutrition/infection feedback. */
.health-monitor { --vital-color: #9bd498; --beat-time: 1.8s; position: relative; display: flex; align-items: center; gap: 7px; margin: 8px 0 12px; padding-top: 12px; color: var(--vital-color); }
.health-caption { position: absolute; top: 0; left: 0; font-size: 7px; letter-spacing: .12em; }
.health-monitor svg { flex: 1; min-width: 0; height: 38px; overflow: hidden; background: #080f0ec9; border: 1px solid #6e94782b; border-radius: 3px; }
.health-monitor b { font-size: 18px; font-weight: 400; font-variant-numeric: tabular-nums; }
.health-monitor.warning { --vital-color: #e8c46e; }
.health-monitor.critical, .health-monitor.dead { --vital-color: #ed7969; }
.ecg-grid { fill: none; stroke: #9fbc9e15; stroke-width: .5; }
.ecg-trace { fill: none; stroke: var(--vital-color); stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 2px var(--vital-color)); animation: vital-beat var(--beat-time) linear infinite; }
@keyframes vital-beat { from { transform: translateX(0); } to { transform: translateX(-180px); } }
.infection .vital-track i { background: #b7a4d4; transform: scaleX(0); }
.infection.vital-row { grid-template-columns: 48px minmax(26px, 1fr) 27px; }
.survivor-status .nutrition-rates { white-space: normal; font-size: 8px; line-height: 1.5; max-width: 220px; color: #bcbeac; }
.survival-effects { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; max-height: 54px; overflow-y: auto; pointer-events: auto; }
.survival-effect { display: inline-block; padding: 3px 5px; background: #17221fe8; border: 1px solid #a5b7a133; border-radius: 3px; color: #c7cfb9; font-size: 8px; line-height: 1.4; }
.inventory-survival { color: #adbca9; font-size: 10px; line-height: 1.5; padding-top: 8px; }
.inventory-survival .survival-effect { margin: 3px; }
.tooltip-duration { color: #c5bea1; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .ecg-trace { animation: none; } }
@media (max-width: 680px) { .infection.vital-row { grid-template-columns: 40px minmax(20px, 1fr) 24px; }.health-monitor svg { height: 30px; }.health-monitor b { font-size: 14px; }.survivor-status .nutrition-rates { font-size: 7px; }.survival-effect { font-size: 7px; } }

.search-prompt { position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); width: min(370px, 70vw); padding: 12px 16px; color: #ebd69e; background: #101812ed; border: 1px solid #8a74444d; border-radius: 5px; text-align: center; pointer-events: none; }
.search-prompt strong { display: block; font-size: 12px; margin-bottom: 6px; }
.search-prompt span { display: block; font-size: 9px; color: #b7bba5; }
.search-track { margin-top: 10px; height: 4px; background: #ccb77322; overflow: hidden; }
.search-track i { display: block; height: 100%; width: 100%; background: #ecc76f; transform-origin: left; transform: scaleX(0); }
@media(max-width: 680px) { .search-prompt { bottom: 290px; width: 230px; left: auto; right: 16px; transform: none; } }

/* Multiplayer HUD and pause help stay above the world lighting canvas. */
.in-game .game-version{display:none}.game-bottom{right:max(18px,env(safe-area-inset-right))}
[data-admin-only][hidden]{display:none!important}
.pause-overlay{z-index:40;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:24px 16px;box-sizing:border-box}.pause-content{display:flex;flex-direction:column;align-items:center;gap:24px;width:min(780px,100%);margin:auto}.pause-card{width:min(350px,100%);box-sizing:border-box}.pause-help{width:100%;color:#c4c3b1;text-align:center;font-size:11px;line-height:1.7;text-shadow:0 2px 5px #000}.pause-help>p{margin:0 0 16px}.pause-admin p{margin:12px 0 8px}.pause-admin .editor-link{display:inline-block;margin:4px 12px}
.pause-help .control-hints{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:0 auto;padding:0;line-height:1.7}
.pause-help .control-hints span{display:flex!important;white-space:normal}
.game-chat{position:absolute;z-index:3;bottom:18px;left:50%;transform:translateX(-50%);width:clamp(220px,34vw,450px);color:#eee;font-size:12px;text-shadow:0 1px 3px #000;pointer-events:auto}
#chat-messages{max-height:110px;overflow:auto;overflow-wrap:anywhere;scrollbar-width:thin}#chat-messages p{margin:3px 0;background:#080d0b30;padding:2px 6px}
#chat-form{display:flex;border:1px solid #b8bdb455;background:#0b15102b}#chat-input{width:100%;min-width:0;background:transparent;border:0;padding:9px;color:#fff;font:inherit}#chat-input::placeholder{color:#d0d3cb}#chat-form button{border:0;background:#17241c75;color:#e8eadd;padding:7px}
#network-status{font-size:10px;color:#e5c195;margin:4px 0}.player-menu,.group-invite{position:absolute;z-index:35;background:#122018ee;border:1px solid #879681;padding:12px;color:#eff3e7}.player-menu button,.group-invite button{padding:8px;margin:4px;background:#28412c;color:#fff;border:1px solid #6c8468}.group-invite{top:95px;right:25px;max-width:280px}
@media(max-width:700px){.game-chat{width:45vw;bottom:210px}.pause-help .control-hints{display:flex}.game-bottom{right:12px}.pause-card{padding:20px}}

/* Device preferences are personal; administrator lighting remains separate. */
.settings-toggle{position:absolute;z-index:45;top:max(22px,env(safe-area-inset-top));right:max(22px,env(safe-area-inset-right));width:48px;height:48px;font-size:25px;display:grid;place-items:center;pointer-events:auto;border-radius:50%;background:#111b}
.audio-toggle{right:calc(max(22px,env(safe-area-inset-right)) + 58px)}
.game-header{right:calc(155px + env(safe-area-inset-right))}
.gm-name{color:#ff4d57!important;font-weight:bold}
.device-screen{position:absolute;inset:0;z-index:9;display:grid;place-items:center;padding:24px;overflow:auto;background:#080b0da6;backdrop-filter:blur(8px)}
.device-panel{width:min(620px,100%);padding:30px;border:1px solid #74674b55;border-top:2px solid #a7473a;border-radius:8px;background:#101719ed;box-shadow:0 20px 80px #0009}
.device-panel h1{margin:12px 0;font-size:clamp(24px,5vw,36px)}
.device-panel p{font-size:13px;color:#bcbdb6;line-height:1.6}.device-panel .eyebrow{color:#d49c78;letter-spacing:.2em;font-size:10px}
.device-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:26px 0}.device-cards button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:22px;border:1px solid #65716c66;border-radius:6px;background:#24332b66;color:#f0ede4;text-align:left;min-height:170px}
.device-cards button:hover,.device-cards button:focus-visible{border-color:#d69b68;background:#38413399;outline:2px solid #d69b6855}.device-cards span{font-size:34px;color:#d9ad82}.device-cards strong{font-size:19px}.device-cards small{line-height:1.5;color:#afb9b0}.device-panel .device-hint{font-size:11px}
.game-settings{width:min(440px,92vw);max-height:88dvh;overflow:auto}.settings-row{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid #fff1;font-size:14px}.settings-row input{width:20px;height:20px;accent-color:#c17554}.settings-row select{background:#1b2320;color:#eee;border:1px solid #75817355;padding:8px;border-radius:4px}.game-settings h2{font-size:22px}.game-settings .close-button{font-size:26px}.game-settings #settings-message{font-size:12px;line-height:1.5;color:#e2bc91}
.update-notice{position:fixed;z-index:60;left:50%;top:max(12px,env(safe-area-inset-top));transform:translateX(-50%);width:min(560px,calc(100vw - 24px));padding:14px 18px;display:flex;align-items:center;gap:16px;background:#16231ff5;border:1px solid #d4aa6b;border-radius:6px;box-shadow:0 4px 30px #0008}.update-notice p{font-size:13px;line-height:1.4;margin:0;flex:1}.update-notice button{width:auto;white-space:nowrap;padding:12px}
.mobile-controls{position:absolute;inset:0;pointer-events:none;z-index:4;user-select:none;-webkit-user-select:none}.mobile-controls button,.mobile-stick{pointer-events:auto;touch-action:none;-webkit-touch-callout:none}
.mobile-stick{position:absolute;left:max(20px,env(safe-area-inset-left));bottom:max(22px,env(safe-area-inset-bottom));width:128px;height:128px;border-radius:50%;border:2px solid #d4ded45c;background:radial-gradient(#83908030,#131e1e50);box-shadow:inset 0 0 24px #0005}
#mobile-knob{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:52px;height:52px;border-radius:50%;background:#c3cbb284;border:1px solid #e0e5d7aa;pointer-events:none}
.mobile-combat{position:absolute;right:max(20px,env(safe-area-inset-right));bottom:max(28px,env(safe-area-inset-bottom));display:flex;gap:14px;align-items:center}.mobile-combat button{border-radius:50%;color:#f6f0e2;background:#443128b3;border:2px solid #c4a07d99;display:flex;align-items:center;justify-content:center;flex-direction:column;font-weight:bold;font-size:15px;box-shadow:0 3px 14px #0005}.mobile-combat button:active{background:#a45339bb}
#mobile-fire{width:100px;height:100px}#mobile-fire small{font-size:8px;font-weight:normal;max-width:70px;margin-top:5px}#mobile-pickup{width:63px;height:63px;font-size:11px;background:#263e32b3;border-color:#bac7a488}
.mobile-tools{position:absolute;top:max(78px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:320px}.mobile-tools button{background:#101b19c9;color:#e4dfcf;border:1px solid #9d9f8866;border-radius:5px;min-height:36px;padding:6px 9px;font-size:10px}
body[data-device=mobile] .game-bottom{pointer-events:none;left:12px;right:12px;top:78px;bottom:auto;align-items:flex-start}
body[data-device=mobile] .survivor-status{width:125px;padding:7px;background:#0c171a94}body[data-device=mobile] .survivor-status .eyebrow,body[data-device=mobile] .nutrition-rates,body[data-device=mobile] .survival-effects,body[data-device=mobile] .survivor-status>p{display:none}body[data-device=mobile] .health-monitor svg{height:24px}body[data-device=mobile] .vital-row{font-size:8px;margin-top:4px;grid-template-columns:43px 1fr 20px}body[data-device=mobile] .health-caption{font-size:7px}body[data-device=mobile] .health-monitor b{font-size:13px}
body[data-device=mobile] .weapon-card{position:fixed;right:18px;bottom:145px;width:150px;padding:8px;flex-basis:auto;background:#101b1994}body[data-device=mobile] .ammo-line strong{font-size:25px}body[data-device=mobile] .weapon-card p{display:none}
body[data-device=mobile] .game-chat{width:clamp(160px,32vw,350px);bottom:15px}body[data-device=mobile] #chat-messages{max-height:64px;font-size:10px}body[data-device=mobile] #chat-input{min-width:0;font-size:12px}body[data-device=mobile] .target-score{display:none}body[data-device=mobile] .location-card{display:none}body[data-device=mobile] .game-header{justify-content:flex-end;top:26px}
body[data-device=mobile] .inventory-panel,body[data-device=mobile] .status-panel{z-index:8}body[data-device=mobile] .pause-overlay{z-index:40}
@media(max-width:600px){.device-panel{padding:20px}.device-cards{gap:10px}.device-cards button{padding:15px;min-height:150px}.update-notice{flex-wrap:wrap}.update-notice button{padding:9px}.settings-toggle{width:40px;height:40px;top:max(20px,env(safe-area-inset-top))}.audio-toggle{right:calc(max(22px,env(safe-area-inset-right)) + 48px)}body[data-device=mobile] .game-chat{bottom:172px;left:50%;width:calc(100% - 36px)}body[data-device=mobile] .weapon-card{bottom:240px}body[data-device=mobile] .mobile-tools{max-width:210px}body[data-device=mobile] .game-header-actions>span{display:none}}
@media(max-height:430px){.device-panel{padding:14px 24px}.device-panel h1{font-size:22px;margin:6px 0}.device-cards{margin:12px 0}.device-cards button{min-height:90px;padding:12px;gap:6px}.device-cards span{display:none}.device-hint{margin:0}.device-screen{padding:12px}.mobile-stick{width:110px;height:110px}#mobile-fire{width:90px;height:90px}body[data-device=mobile] .weapon-card{bottom:135px}body[data-device=mobile] .mobile-tools button{min-height:30px}}

/* One accessible, dismissible notification; always above inventory and mobile controls. */
.notice{position:fixed;z-index:100;left:50%;bottom:max(24px,env(safe-area-inset-bottom));width:min(520px,calc(100vw - 32px));max-width:none;box-sizing:border-box;display:flex;align-items:flex-start;gap:12px;text-align:left;padding:16px 18px;background:#17221ff5;border:1px solid #8da594;box-shadow:0 10px 35px #0008;font-size:13px;line-height:1.5}
.notice[hidden]{display:none}.notice[data-kind=error]{background:#251b16f5;border-color:#c99a64}.notice>div{flex:1;min-width:0}.notice strong{display:block;color:#f1d5aa;font-size:14px}.notice p{margin:5px 0 0;overflow-wrap:anywhere}.notice button{flex:0 0 32px;width:32px;min-height:32px;padding:0;background:transparent;color:#f4e6d3;border:1px solid #81715d;border-radius:4px;font-size:22px;cursor:pointer}.notice button:focus-visible{outline:2px solid #f1d5aa;outline-offset:3px}
.inventory-materials{margin:12px 0 4px;color:#f1d5aa;font-size:13px}.inventory-materials-help{margin:0 0 10px;font-size:12px;color:#c5c3b5}
body[data-device=mobile] .notice{bottom:auto;top:max(75px,env(safe-area-inset-top))}
/* Player exchanges use their own backpack so ordinary item actions stay locked. */
.trade-panel{position:fixed;z-index:90;inset:6vh max(12px,calc((100vw - 940px)/2));overflow:auto;padding:24px;background:#101c1af7;border:1px solid #7a8e78;border-radius:12px;box-shadow:0 0 0 100vmax #0009,0 20px 80px #000;color:#f3eee1}
.trade-panel[hidden],.trade-invite[hidden]{display:none}
.trade-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.trade-header h2{margin:0;font-size:22px}
.trade-panel button,.trade-invite button{font:inherit;color:#eee8d8;background:#243830;border:1px solid #78917b;border-radius:6px;padding:9px 14px;cursor:pointer}
.trade-panel button:disabled{opacity:.5;cursor:default}.trade-panel button:focus-visible,.trade-invite button:focus-visible{outline:3px solid #d8ba77;outline-offset:3px}
.trade-status{color:#dfc28a;min-height:24px}.trade-help{font-size:13px;line-height:1.6;color:#bdc8ba}
.trade-offers{display:grid;grid-template-columns:1fr 1fr;gap:18px}.trade-offer{padding:12px;border:1px solid #5a6c5b;border-radius:8px}.trade-offer h3,.trade-panel h3{font-size:14px}
.trade-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;min-height:200px}.trade-backpack{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;max-height:240px;overflow:auto;padding:4px}
.trade-panel .trade-slot{min-width:0;min-height:88px;padding:6px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;overflow-wrap:anywhere;background:#15271f}.trade-slot .item-art{position:static;width:35px;height:35px;object-fit:contain}.trade-slot small{font-size:10px;color:#d2bd8b}.trade-offer:last-child .trade-slot:disabled{opacity:1}
.trade-panel .trade-confirm{display:block;margin:20px 0 0 auto;background:#426649;font-weight:700;min-width:200px}.trade-invite{position:fixed;right:20px;top:100px;z-index:91;max-width:330px;padding:18px;background:#17281fee;border:1px solid #8da17f;border-radius:10px;color:#eee8d8;box-shadow:0 8px 35px #0008}.trade-invite button+button{margin-left:10px}
@media(max-width:650px){.trade-panel{inset:12px;padding:14px}.trade-header{align-items:flex-start}.trade-header h2{font-size:17px}.trade-offers{gap:8px}.trade-offer{padding:7px}.trade-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.trade-backpack{grid-template-columns:repeat(4,minmax(0,1fr))}.trade-panel .trade-confirm{width:100%}}

/* Base market */
.market-hint{position:absolute;left:50%;bottom:155px;transform:translateX(-50%);border:1px solid #e2c37e88;border-radius:8px;padding:12px 18px;background:#111916eb;color:#f1dfb0;cursor:pointer;z-index:5}.market-hint kbd{padding:4px 8px;background:#e6c880;color:#182019;border-radius:4px;margin-right:8px}.market-panel{position:absolute;inset:4% 5%;z-index:89;display:flex;flex-direction:column;background:#111b1bf7;border:1px solid #68715b;border-radius:16px;box-shadow:0 20px 100px #000b;color:#e8eddf;overflow:hidden;font-family:system-ui,sans-serif}.market-panel[hidden],.market-hint[hidden]{display:none}.market-header{display:flex;align-items:center;gap:22px;padding:24px 28px;background:linear-gradient(110deg,#24352d,#172523 65%,#333425);border-bottom:1px solid #ffffff12}.market-header h2{margin:3px 0 6px;font-size:28px;letter-spacing:-.7px}.market-eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:#b6c599;margin:0}.market-subtitle{margin:0;color:#a9b9ae;font-size:12px}.market-wallet{margin-left:auto;white-space:nowrap;display:grid;gap:5px;padding:10px 20px;border-left:1px solid #ffffff20}.market-wallet small{font-size:10px;letter-spacing:1.5px;color:#acbba5}.market-wallet strong{font-size:22px;color:#f1d38c}.market-panel button{font:inherit;cursor:pointer}.market-panel button:focus-visible,.market-panel input:focus-visible,.market-panel select:focus-visible{outline:2px solid #f2d48c;outline-offset:3px}.market-panel button:disabled{opacity:.4;cursor:not-allowed}.market-close{border:0;background:#ffffff0a;color:#d8e4d4;border-radius:50%;font-size:28px!important;width:36px;height:36px}.market-tabs{display:flex;gap:6px;padding:12px 28px;border-bottom:1px solid #ffffff12;flex-shrink:0}.market-tabs button{border:1px solid transparent;background:transparent;color:#a9b8ac;border-radius:6px;padding:10px 16px;font-size:12px;font-weight:650}.market-tabs button[aria-pressed=true]{color:#e9d8a5;background:#a8955825;border-color:#c3ad5d50}.market-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;flex:1;min-height:0}.market-main{padding:22px 26px;overflow:auto}.market-sidebar{padding:22px;background:#0d1516;border-left:1px solid #ffffff12;overflow:auto;font-size:13px;color:#acbbae}.market-sidebar h3{color:#e7ecdf}.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:13px}.market-card{border:1px solid #ffffff16;border-top:2px solid var(--item-color);border-radius:9px;background:linear-gradient(145deg,#27322a77,#172321);overflow:hidden;transition:border-color .15s}.market-card.selected{border-color:#edcc7b;box-shadow:0 0 0 1px #edcc7b55;background:#393e28}.market-card-main{display:block;width:100%;padding:14px;text-align:left;color:inherit;background:none;border:0}.market-item-art{position:relative;height:78px;display:grid;place-items:center;background:radial-gradient(ellipse,#ffffff0b,transparent 70%);margin-bottom:12px}.market-item-art .item-art{max-width:100%;width:auto;height:72px;object-fit:contain;image-rendering:auto}.market-count{position:absolute;bottom:0;right:0;font-size:11px;background:#0c151bcc;border-radius:4px;padding:3px 6px;color:#d7dfd2}.market-card h3{font-size:13px;line-height:1.4;margin:3px 0 0}.market-rarity{color:var(--item-color);font-size:10px;letter-spacing:1px;text-transform:uppercase}.market-card-footer{display:flex;flex-direction:column;gap:5px;padding:10px 14px 14px;border-top:1px solid #ffffff09;font-size:11px;color:#97aa9e}.market-card-footer strong{font-size:15px;color:#e7cb89}.market-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;font-size:12px;color:#b1bdae}.market-toolbar button,.market-secondary,.market-pagination button,.market-filters button{background:#29362f;border:1px solid #526352;color:#d0dcc9;padding:9px 12px;border-radius:5px;font-size:12px!important}.market-sale-summary,.market-review,.market-item-info{display:flex;flex-direction:column;gap:12px;padding-bottom:22px;margin-bottom:20px;border-bottom:1px solid #ffffff16}.market-sale-summary p,.market-review p{line-height:1.65;margin:0}.market-sale-summary h3,.market-review h3,.market-item-info h3{margin:0}.market-total{font-size:27px;color:#f2d48c}.market-primary,.market-announce{border:1px solid #84935a;background:#738244;color:#f9ffe7;border-radius:6px;padding:12px 14px;font-size:12px!important;font-weight:750!important}.market-announce{background:linear-gradient(110deg,#f0d58d,#c2a055);border-color:#f5d990;color:#20271a;box-shadow:0 4px 18px #caa84d18}.market-muted{color:#899d91;font-size:11px;line-height:1.6}.market-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;font-size:11px;margin:0}.market-stats dt{color:#8fa599}.market-stats dd{margin:0;text-align:right;color:#d8e2cf;overflow-wrap:anywhere}.market-review{background:#26302655;padding:16px;border:1px solid #b6a36566;border-radius:8px}.market-review label{display:flex;flex-direction:column;gap:6px;font-size:11px}.market-panel input,.market-panel select{background:#101b18;border:1px solid #68745b;border-radius:5px;color:#f0eddb;padding:10px;min-width:0;font:inherit}.market-fee{color:#ebcc82;font-size:12px}.market-filters{display:flex;gap:8px;margin-bottom:18px}.market-filters input{flex:1;width:100px}.market-filters select{max-width:180px;font-size:12px}.market-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;margin-bottom:18px;color:#a5b8aa}.market-empty{grid-column:1/-1;padding:50px 15px;text-align:center;color:#91a79a;font-size:13px}.market-intro{font-size:12px;color:#a0b7a5;margin:0 0 20px;line-height:1.6}.market-working{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);padding:8px 15px;border-radius:20px;background:#e6c880;color:#1c271b;box-shadow:0 3px 20px #0006;font-size:12px;pointer-events:none}.market-error{color:#f6a291}@media(max-width:850px){.market-panel{inset:1%;}.market-header{padding:14px;gap:10px}.market-header h2{font-size:21px}.market-subtitle{display:none}.market-wallet{padding:4px 10px}.market-wallet strong{font-size:16px}.market-tabs{padding:9px;overflow:auto}.market-tabs button{padding:9px;font-size:11px;white-space:nowrap}.market-body{grid-template-columns:minmax(0,1fr) 245px}.market-main,.market-sidebar{padding:12px}.market-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:8px}.market-filters{flex-wrap:wrap}}@media(max-width:560px){.market-body{display:block;overflow:auto}.market-main,.market-sidebar{overflow:visible}.market-sidebar{border-left:0;border-top:1px solid #ffffff18}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-review{scroll-margin:10px}.market-header .market-eyebrow{letter-spacing:.5px;font-size:9px}.market-wallet strong{font-size:14px}}

/* Shared zone danger and compact wallet keep the original left HUD layout. */
#zone-status[data-hostile="false"]{color:#8fce9e}#zone-status[data-hostile="true"]{color:#f08378}
.threat-meter{display:flex;align-items:center;gap:9px;flex-wrap:wrap;max-width:265px;font-size:8px;letter-spacing:.1em;color:#c5b2ac;margin-top:10px}.threat-skulls{color:#f04450;font-size:19px;line-height:1;letter-spacing:3px;text-shadow:0 0 10px #ef36462a;font-family:Arial,sans-serif}.threat-meter b{font-size:9px;font-weight:400;color:#b59b98}.threat-track{flex-basis:100%;height:2px;background:#a34e4633;overflow:hidden;margin-top:2px}.threat-track i{display:block;width:100%;height:100%;background:#e65059;transform:scaleX(0);transform-origin:left;transition:transform .4s;box-shadow:none;border-radius:0;margin:0}.currency-score{top:163px;letter-spacing:.1em}.currency-score .gold-dot{background:#e4bc65;box-shadow:0 0 10px #e4bc6533}.currency-score .usdt-dot{background:#63bf9f;box-shadow:0 0 10px #63bf9f33}#gold-counter{color:#ebce88}#usdt-counter{color:#a3dbbe}.zone-alert{position:absolute;top:193px;left:30px;max-width:285px;padding:11px 14px;display:grid;gap:6px;border-left:2px solid #e14e50;background:linear-gradient(90deg,#290d12e8,#140a0ed9);color:#efc3be;pointer-events:none;box-shadow:0 6px 20px #0003}.zone-alert[hidden]{display:none}.zone-alert strong{font-size:10px;letter-spacing:1.5px;color:#ff8990}.zone-alert span{font-size:10px;line-height:1.55}.zone-alert small{font-size:9px;color:#d19e99}@media(max-width:680px){.currency-score{top:140px;left:28px;gap:6px}.threat-meter{max-width:210px;font-size:7px;gap:7px}.threat-skulls{font-size:16px;letter-spacing:2px}.zone-alert{top:166px;left:15px;max-width:235px;padding:8px 10px}}

/* Oficina: equipment recipes, components and repairs. */
.workshop-panel{--workshop-accent:#e6b96d}.workshop-panel .market-header{background:linear-gradient(115deg,#263b39,#191f21 68%)}.workshop-panel .market-eyebrow{color:var(--workshop-accent)}.workshop-profession{padding:10px 14px;border:1px solid #53635b;background:#24352c;color:#d6e5d0;border-radius:6px}.workshop-filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.workshop-filters button{padding:9px 12px;background:#202829;color:#c9cec3;border:1px solid #48514a;border-radius:5px}.workshop-filters button[aria-pressed=true]{color:#f4d499;border-color:#b38d51;background:#3b3325}.workshop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.workshop-card{display:flex;align-items:stretch;flex-direction:column;gap:8px;text-align:left;padding:12px;background:linear-gradient(150deg,#293333,#191f20);border:1px solid #46514b;border-top:3px solid var(--item-color);border-radius:7px;color:#ece6d5;min-height:184px;cursor:pointer}.workshop-card:hover,.workshop-card.selected{outline:1px solid #e6b96d;background:#343a32}.workshop-card small{color:#b8bdae;line-height:1.5}.workshop-art{height:80px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#60624a55,transparent 70%)}.workshop-art .item-art{position:static!important;width:70px;height:70px;object-fit:contain;image-rendering:pixelated}.workshop-card meter{width:100%;height:10px;margin-top:auto;accent-color:#b0c684}.workshop-panel .market-sidebar>.item-art{position:static!important;display:block;width:100px;height:100px;object-fit:contain;margin:12px auto;image-rendering:pixelated}.workshop-quantity{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:16px 0}.workshop-quantity input{width:76px;padding:8px;background:#151d1c;color:#f2e2c8;border:1px solid #647161;border-radius:4px}.workshop-output{display:block;color:#f1d39d;margin:12px 0}.workshop-needs{list-style:none;padding:0;margin:14px 0;border-top:1px solid #46514b}.workshop-needs li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #38433c}.workshop-needs .available,.workshop-ready{color:#b1d99f}.workshop-needs .missing{color:#efa495}.workshop-panel button:disabled{opacity:.5;cursor:not-allowed}.workshop-panel .market-sidebar>.market-announce,.workshop-panel .market-sidebar>.market-primary{width:100%;margin:12px 0}.workshop-hint{border-color:#d7b77a}
.equipment-slot:hover,.equipment-slot:focus-visible{outline:1px solid #b7c9b3;outline-offset:1px;background-color:#30423966;cursor:pointer}.equipment-slot .item-art{margin-top:14px;height:55%}.equipment-slot .item-rarity-dot{top:8px;left:auto;right:7px}.head-slot .item-short-name{display:none}.head-slot .item-level{top:auto;bottom:2px;right:2px;font-size:7px}.tooltip-card>.item-art{display:block;width:72px;height:72px;margin:12px auto}

.workshop-art-status{display:grid;place-content:center;justify-items:center;flex:1;gap:12px;padding:28px;text-align:center;color:#becdbf}.workshop-art-status h3{margin:0;color:#f0d58d}.workshop-art-status p{max-width:440px;line-height:1.6}.workshop-art{flex-shrink:0;min-height:80px}.workshop-art .item-art{flex:none;display:block}
