:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
  color: #f3ecd8;
  background: #161d19;
  --ink: #f3ecd8;
  --muted: #b6c0ad;
  --line: #394638;
  --gold: #efc17d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(1420px, 100%); margin: auto; padding: clamp(16px, 4vw, 60px); }
.header, .brand, .status, .section-head, #players li { display: flex; align-items: center; }
.header-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.header-control-group { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #202a22; }
.header-control-group button { min-height: 34px; white-space: nowrap; }
@media (max-width: 740px) {
  .header-controls { justify-content: flex-start; }
}
.header { flex-wrap: wrap; justify-content: space-between; margin-bottom: 24px; gap: 10px; }
.brand { gap: 13px; }
.emblem { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #324637; color: var(--gold); }
h1, h2, p { margin: 0; }
h1 { font-size: 23px; letter-spacing: .08em; }
small { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.status { gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #e3ac65; }
.status[data-state="online"] i { background: #9cd19e; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.camp-tools { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1024px) {
  .layout:has(#camp-tools:not([hidden])) { grid-template-columns: 216px minmax(0, 1fr) 260px; }
  .layout:has(#camp-tools:not([hidden])) > .map-column { grid-area: 1 / 2; }
  .layout:has(#camp-tools:not([hidden])) > .sidebar { grid-area: 1 / 3; }
  .layout > .camp-tools { grid-area: 1 / 1; }
}
.map-column { min-width: 0; }
.map-inventory { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: #202a22; font-size: 13px; }
.map-inventory h2 { font-size: 14px; }
.map-inventory button { display: inline-flex; align-items: center; gap: 5px; width: auto; min-height: 44px; margin: 0 0 0 auto; padding-inline: 8px; font-size: 13px; }
.map-inventory #item-status { flex-basis: 100%; }
.field { position: relative; display: grid; align-self: start; align-items: center; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #20372b; min-height: 420px; }
.field:has(.gate[hidden]) { min-height: 0; }
.map-layer { position: relative; grid-area: 1 / 1; min-width: 0; container-type: inline-size; }
canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; }
.map-title { display: grid; gap: 4px; position: absolute; left: 15px; top: 15px; padding: 9px 13px; background: #17251eee; border: 1px solid #72817055; border-radius: 9px; pointer-events: none; }
.map-corner-actions { position: absolute; z-index: 3; top: 8px; right: 8px; display: flex; align-items: center; gap: 5px; }
.map-corner-actions button { width: auto; min-height: 34px; margin: 0; padding: 6px 9px; border-color: var(--line); font-size: 12px; white-space: nowrap; }
.camp-arrival { position: absolute; z-index: 2; inset: 61px 8px auto; width: fit-content; margin: 0 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #17251eee; color: var(--ink); overflow-wrap: anywhere; pointer-events: none; }
.landmark-message { position: absolute; z-index: 2; inset: auto 8px 8px; width: fit-content; margin: 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #17251eee; color: var(--ink); pointer-events: none; }
.gate { position: relative; z-index: 1; grid-area: 1 / 1; align-self: stretch; display: grid; place-items: center; background: #101e16a8; padding: 18px; }
form { width: min(100%, 360px); border: 1px solid #637058; background: #212c23; padding: clamp(18px, 4vw, 30px); border-radius: 16px; box-shadow: 0 18px 70px #0006; }
form h2 { font-size: clamp(20px, 4vw, 29px); }
p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 8px; }
label { display: block; margin: 20px 0 7px; font-size: 13px; font-weight: 600; }
input, button { width: 100%; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; }
input { background: #171f19; color: var(--ink); border: 1px solid #53624f; }
input::placeholder { color: #a0aa98; }
button { border: 1px solid transparent; cursor: pointer; font-weight: 700; color: #29251c; background: var(--gold); margin-top: 10px; }
button:hover:not(:disabled) { background: #ffdaa1; }
button:disabled { cursor: default; opacity: .5; }
button span { float: right; }
:focus-visible { outline: 2px solid #f7d49d; outline-offset: 2px; }
.panel { background: #202a22; border: 1px solid var(--line); border-radius: 18px; padding: 19px; display: flex; flex-direction: column; gap: 20px; }
.panel h2 { font-size: 15px; }
.section-head { justify-content: space-between; }
#count { color: var(--gold); font-size: 12px; font-variant-numeric: tabular-nums; }
#players { list-style: none; padding: 0; margin: 0; }
#players li { gap: 8px; padding-top: 9px; font-size: 14px; overflow-wrap: anywhere; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.you { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.you.host-badge { color: var(--gold); font-weight: 700; }
#players .kick-player { width: auto; flex: none; margin: 0 0 0 auto; padding: 3px 7px; border-color: var(--line); background: #373229; color: #f8c6aa; font-size: 12px; }
#players .kick-player:hover:not(:disabled) { background: #544032; }
#players .add-friend { width: auto; flex: none; margin: 0; padding: 3px 7px; font-size: 12px; }
#member-error { color: #ffad99; }
.invite, .controls { border-top: 1px solid var(--line); padding-top: 15px; }
.invite input { margin-top: 10px; font-size: 12px; }
.invite button { background: #364735; color: var(--ink); }
.invite button:hover:not(:disabled) { background: #465d46; }
.controls { margin-top: auto; }
.camp-tools > .controls, #game-panel > .chat { margin-top: 0; padding-top: 0; border-top: 0; }
#error { color: #ffad99; }
@media (max-width: 740px) {
  .camp-arrival { top: 39px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .field { min-height: 320px; }
  .gate { padding: 14px; }
}
@media (max-width: 420px) {
  .header { gap: 6px; margin-bottom: 16px; }
  .brand { gap: 7px; }
  .emblem { flex: none; width: 32px; height: 32px; border-radius: 9px; }
  h1 { font-size: clamp(16px, 5vw, 20px); letter-spacing: .03em; }
  .status { gap: 5px; padding: 6px 8px; font-size: 11px; }
}

.chat { border-top: 1px solid var(--line); padding-top: 15px; }
#chat-form { display: flex; width: 100%; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
#chat-form input { min-width: 0; }
#chat-form button { width: auto; flex: none; margin: 0; padding-inline: 9px; }
.reactions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.reactions button { min-width: 0; min-height: 40px; padding: 3px; margin: 0; border-color: var(--line); background: #2d3c2e; color: var(--ink); font-size: 20px; }
.reactions button:hover:not(:disabled) { background: #465d46; }
#chat-error, #action-status { color: var(--gold); }
#action-status { min-block-size: 3.3em; }
#action-status[hidden] { display: block !important; visibility: hidden; }
#wood-status { color: var(--ink); }
#wallet-status, #shop-wallet { color: var(--gold); }
.fire-clock { position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 3; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 16px); padding: 10px clamp(10px, 2.5vw, 18px); margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: #202a22; }
.fire-clock-message { grid-column: 1 / -1; color: var(--ink); font-size: 13px; }
.fire-feed { position: absolute; top: calc(100% + 5px); right: 8px; margin: 0; padding: 4px 8px; border: 1px solid #927146; border-radius: 7px; background: #202a22; color: var(--gold); font-weight: 700; pointer-events: none; }
.fire-clock-label { color: var(--ink); font-size: 13px; white-space: nowrap; }
#fire-time { color: var(--gold); font-size: clamp(20px, 5vw, 25px); line-height: 1; font-variant-numeric: tabular-nums; }
#fire-bar { display: block; width: 100%; height: 10px; accent-color: var(--gold); }
.fire-clock[data-low="true"] #fire-bar { accent-color: #e58e68; }
.fire-clock[data-low="true"] #fire-time { color: #ffab86; }
button.secondary { background: #364735; color: var(--ink); }
button.secondary:hover:not(:disabled) { background: #465d46; }
.sidebar { min-width: 0; }
.lobby-palette { gap: 7px; }
#open-account, #account-close, #open-feedback, #close-feedback, #toggle-music, #toggle-fire-ambience, #mute-xylophone { flex: none; width: auto; margin: 0; padding: 7px 10px; font-size: 13px; }
#feedback-dialog .section-head { justify-content: space-between; }
#feedback-form :is(select, textarea) { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #17251e; color: var(--ink); font: inherit; }
#feedback-form textarea { resize: vertical; }
:is(#toggle-music, #toggle-fire-ambience)[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.account-panel { width: min(360px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #212c23; color: var(--ink); }
.account-panel::backdrop { background: #101611b8; }
.account-panel form input { font-size: 16px; }
.account-panel form { width: 100%; padding: 0; border: 0; box-shadow: none; background: none; }
.account-panel form label { margin-top: 10px; }
#account-password-settings, #account-friends { margin: 12px 0 0; }
#account-password-settings summary, #account-friends summary { cursor: pointer; }
#friend-list { padding: 0; margin: 8px 0; list-style: none; }
#friend-list li { padding: 6px 0; overflow-wrap: anywhere; }
#friend-list button { width: auto; margin: 0 0 0 4px; padding: 4px 7px; }
.friend-presence { display: inline-block; margin-inline-start: 8px; font-size: 12px; color: var(--muted); }
.friend-presence[data-online="true"] { color: #a8dea6; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.account-actions button { padding-inline: 5px; }
.account-remember { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.account-panel form .account-remember label { display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; cursor: pointer; }
.account-remember input[type="checkbox"] { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--gold); }
#account-error, #item-status { color: #ffad99; }
#camp-list { padding: 0; margin: 0; list-style: none; max-height: 160px; overflow: auto; }
#camp-list button { text-align: left; overflow-wrap: anywhere; }
#access-error { color: #ffad99; }
.color-picker { border: 0; margin: 12px 0 0; padding: 0; min-width: 0; font-size: 13px; color: var(--muted); }
.color-picker legend { padding: 0; }
.color-picker summary { cursor: pointer; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px 1px; }
.color-swatches .swatch { width: 30px; height: 30px; padding: 0; margin: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid #b2bca479; color: #26332a; background: var(--swatch, #b9c2ac); }
.color-swatches .swatch:hover:not(:disabled) { background: var(--swatch, #b9c2ac); outline: 1px solid var(--ink); }
.color-swatches .swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.color-swatches .swatch[aria-pressed="true"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.color-swatches .swatch:disabled { opacity: .32; }
.color-swatches .auto-swatch { width: auto; padding: 0 7px; border-radius: 8px; font-size: 12px; }
#add-fire { background: #364735; color: var(--ink); }
#add-fire:hover:not(:disabled) { background: #465d46; }
.test-fire-form { padding: 7px; margin-top: 8px; }
.test-fire-form label { margin-top: 0; }

.mini-game { border-top: 1px solid var(--line); padding-top: 15px; }
.mini-game summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.game-choice { text-align: left; }
.game-choice[aria-expanded="true"] { border-color: #78916d; }
#tic-tac-toe-count { color: var(--gold); font-size: 12px; float: right; }
.tic-tac-toe-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.tic-tac-toe-board button { min-height: 44px; padding: 0; margin: 0; border: 1px solid var(--line); background: #26382b; color: var(--ink); font-size: 23px; }
.tic-tac-toe-board button:hover:not(:disabled) { background: #465d46; }
.tic-tac-toe-board button:disabled { opacity: 1; }
.tic-tac-toe-board button[data-mark="X"] { color: #f6bc66; }
.tic-tac-toe-board button[data-mark="O"] { color: #8fd9e0; }
.tic-tac-toe-board button[data-winning="true"] { background: #47604a; border-color: #afc398; }
.tic-tac-toe-actions { display: flex; gap: 6px; }
.tic-tac-toe-actions button { min-width: 0; padding-inline: 6px; }
#tic-tac-toe-error, #topic-error { color: #ffad99; }
.map-talk { position: absolute; z-index: 1; transform: translate(-50%, -50%); pointer-events: none; }
.map-talk .topic-sign {
  display: block;
  pointer-events: auto;
  width: max(44px, 12cqw);
  min-height: max(44px, 8cqw);
  margin: 0;
  padding: 0;
  background: transparent;
}
.map-talk .topic-sign:hover:not(:disabled) { background: transparent; }
.map-talk .topic-sign:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.topic-cooldown { position: absolute; top: calc(100% - 5px); left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 5px; background: #24352a; color: var(--gold); font-size: 11px; white-space: nowrap; }
.topic-categories { position: absolute; z-index: 1; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 164px; padding: 6px; border: 1px solid #a4865a; border-radius: 9px; background: #24352a; pointer-events: auto; }
.topic-categories button { min-height: 36px; margin: 0; padding: 4px; font-size: 12px; white-space: nowrap; }
.map-shed-actions { position: absolute; z-index: 2; display: grid; grid-template-columns: repeat(2, auto); gap: 4px; transform: translate(-50%, -50%); padding: 6px; border: 1px solid #a4865a; border-radius: 8px; background: #26362b; box-shadow: 0 3px 8px #13231885; }
.map-shed-stock { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 7px; white-space: nowrap; color: var(--ink); font-size: 11px; }
.map-shed-controls { position: absolute; z-index: 1; pointer-events: none; }
.map-shed-count { position: absolute; bottom: max(10px, 4cqw); transform: translateX(-50%); white-space: nowrap; padding: 2px 5px; border-radius: 5px; background: #17251eee; color: var(--gold); font-size: clamp(10px, 2.4cqw, 13px); }
.map-shed-buttons { position: absolute; top: max(14px, 4.5cqw); display: flex; gap: 3px; transform: translateX(-50%); pointer-events: auto; }
.map-shed-buttons button { width: auto; min-height: 32px; margin: 0; padding: 3px 6px; font-size: 11px; white-space: nowrap; border-color: var(--line); }
.map-shed-actions button { width: auto; min-height: 32px; margin: 0; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.map-shop { left: var(--shop-left); top: var(--shop-top); }
.map-shop button { grid-column: 1 / -1; }
.shop-quantity { grid-column: 1 / -1; display: flex; gap: 4px; }
.shop-quantity button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
@media (max-width: 740px) {
  .map-shop { position: relative; grid-area: 2 / 1; inset: auto; transform: none; margin: 0 8px 8px; }
  .map-title { left: 8px; top: 8px; gap: 0; padding: 4px 7px; font-size: 12px; }
  .map-title small { display: none; }
}
.topic-card, .map-talk #topic-error { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: min(74vw, 230px); margin: 0; padding: 7px 10px; border: 1px solid #a4865a; border-radius: 9px; background: #24352a; }
.topic-card p { margin: 0; color: var(--ink); font-size: 13px; }

.region-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: min(100%, 330px); margin: 8px auto; }
.region-map button { min-width: 0; min-height: 42px; margin: 0; padding: 4px; font-size: 12px; }
.region-map button[aria-current="location"] { border-color: var(--gold); background: #43543a; color: var(--gold); }
.region-map button[data-locked="true"] { background: #27382d; color: #d4c9aa; border: 1px dashed #867356; }
.region-map button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.camp-expansion { gap: 12px; width: min(720px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); margin: auto; overflow: auto; color: var(--ink); box-shadow: 0 15px 50px #0d1410b3; }
.camp-expansion:not([open]) { display: none; }
.camp-expansion::backdrop { background: #101611b8; }
.camp-expansion .section-head { justify-content: space-between; }
.camp-expansion .section-head button { width: auto; margin: 0; }
.camp-expansion p, .camp-expansion button { margin-top: 0; }
.expansion-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(5px, 1vw, 12px); }
.expansion-choices button { display: flex; flex-direction: column; gap: 6px; align-items: center; min-width: 0; padding: clamp(4px, 1vw, 9px); border-color: var(--line); }
.expansion-choices button[aria-pressed="true"] { border-color: var(--gold); background: #47593c; }
.expansion-choices canvas { width: 100%; border-radius: 5px; image-rendering: pixelated; cursor: inherit; }
.expansion-choices strong { font-size: 13px; }
.expansion-choices em { color: var(--ink); font-size: 11px; font-weight: 400; font-style: normal; }
.expansion-message { text-align: center; color: var(--gold); }
#desktop-exploration-slot:empty, #desktop-xylophone-slot:empty { display: none; }
@media (min-width: 1024px) {
  #desktop-exploration-slot .region-map { width: 100%; margin: 0 0 8px; }
  #desktop-exploration-slot .region-map button { padding-inline: 2px; }
  #desktop-xylophone-slot .xylophone { margin: 0 0 12px; }
  #desktop-xylophone-slot .xylophone-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.map-xylophone { position: absolute; z-index: 1; width: max(44px, 7.5cqw); min-height: max(44px, 5.5cqw); margin: 0; padding: 0; transform: translate(-50%, -50%); background: transparent; }
.map-xylophone:hover:not(:disabled) { background: transparent; }
.map-xylophone:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.decoration-toggle { width: auto; padding-inline: 14px; }
.decoration-dock { position: absolute; z-index: 4; left: 8px; bottom: 8px; width: min(252px, calc(100% - 16px)); max-height: calc(100% - 16px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.decoration-dock > * { pointer-events: auto; }
.decoration-dock > button { flex: none; min-height: 44px; margin: 0; border-color: #7f906f; box-shadow: 0 3px 12px #10161188; }
.decoration-dock .decorations { width: 100%; min-height: 0; margin: 0; padding: 12px; overflow: auto; box-shadow: 0 5px 24px #101611a0; }
.inventory-dock { position: absolute; z-index: 4; right: 8px; bottom: 8px; width: min(302px, calc(100% - 16px)); max-height: calc(100% - 16px); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.inventory-dock > button, .inventory-dock > section { pointer-events: auto; }
.inventory-dock > button { flex: none; width: auto; min-height: 44px; margin: 0; border-color: #7f906f; box-shadow: 0 3px 12px #10161188; }
.inventory-dock .map-inventory { width: 100%; min-height: 0; margin: 0; padding: 10px; overflow: auto; box-shadow: 0 5px 24px #101611a0; }
.inventory-dock > p { flex: none; margin: 0; padding: 4px 7px; border-radius: 6px; background: #202a22; }
#use-mat[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.mat-selection canvas { cursor: cell; }
.decorations { gap: 10px; margin-top: 8px; }
.decorations .section-head { justify-content: space-between; }
.decoration-choices, .decoration-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.decorations button { width: auto; min-height: 44px; margin: 0; padding-inline: 10px; }
.decoration-choices button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.decorations p { margin: 0; }
.decorations p:empty { display: none; }
.arranging-camp .map-talk,
.arranging-camp .map-shed-controls,
.arranging-camp .map-xylophone { visibility: hidden; }
.arranging-camp canvas { cursor: default; }
.xylophone { margin-top: 8px; }
.xylophone-keys { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: start; gap: 5px; }
.xylophone-keys button { min-width: 0; min-height: 44px; height: calc(74px - var(--key) * 5px); margin: 0; padding: 4px; border-color: #b28d64; background: #77513a; color: #fff0ce; }
.xylophone-keys button:active { background: #a7784c; }
@media (max-width: 600px) {
  .xylophone-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.xylophone-mute[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

#item-shop { grid-column: 1 / -1; display: grid; gap: 4px; max-height: 170px; overflow: auto; }
#item-shop button { text-align: left; }
.camp-item-row, .item-counter-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.map-inventory .camp-item-row { flex-basis: 100%; }
.map-inventory .camp-item-row button,
.map-inventory > button { margin: 0; }
.item-counter { position: absolute; z-index: 4; left: 50%; top: 46px; transform: translateX(-50%); width: min(365px, calc(100% - 16px)); max-height: calc(100% - 62px); padding: 10px; gap: 6px; overflow: auto; box-shadow: 0 5px 24px #101611a0; }
.item-counter[data-panel="wardrobe"] { left: auto; right: 8px; transform: none; width: min(252px, calc(100% - 16px)); }
.item-counter button { width: auto; min-height: 36px; margin: 0; padding: 4px 8px; }
.item-counter h3 { margin: 0 0 5px; font-size: 13px; }
.item-counter p { margin: 4px 0; }
.item-counter select { max-width: 100%; padding: 6px; }
.item-counter-actions button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.locker-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.locker-columns section { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #27372d; }
.locker-columns h4 { margin: 0; }
.locker-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.locker-heading h3 { margin: 0; }
.locker-columns p { font-size: 12px; }
.locker-tiles { display: flex; flex-wrap: wrap; gap: 5px; }
.expansion-announcement { z-index: 3; border-color: var(--gold); color: var(--gold); }
#item-aim { color: var(--gold); }
:is(.map-inventory, .item-counter) .item-tile { position: relative; display: grid; justify-items: center; gap: 2px; width: 68px; min-height: 62px; padding: 5px 2px; border: 1px solid #64735e; background: #2c3e31; }
.item-tile canvas { width: 32px; height: 32px; image-rendering: pixelated; cursor: inherit; }
.item-tile .item-tile-name { font-size: 10px; line-height: 1.2; }
.item-tile .item-tile-count { position: absolute; top: 4px; right: 4px; padding: 1px 4px; border-radius: 4px; background: #151e18; color: #ffe0a6; font-size: 10px; }
:is(.map-inventory, .item-counter) .item-tile[aria-pressed="true"] { border-color: var(--gold); background: #4a5034; }
.aiming-item #map { cursor: crosshair; }
.aiming-item .map-layer > :not(canvas), .aiming-item .map-layer > :not(canvas) * { pointer-events: none; }
