:root { color-scheme: dark; --bg: #141e1c; --panel: #1c2925; --border: #34443a; --text: #e0e6d9; --muted: #94a496; --gold: #cfb87f; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; overflow: hidden; }
body { height: 100%; overflow: hidden; margin: 0; background: radial-gradient(ellipse at 50% 0, #25372d 0, var(--bg) 65%); color: var(--text); font: 14px/1.5 system-ui, sans-serif;  }
html,body { user-select:none;-webkit-user-select:none; }
input,textarea,[contenteditable]:not([contenteditable="false"]) { user-select:text;-webkit-user-select:text; }
.shell { width: min(1280px, calc(100% - 32px)); height: 100vh; height: 100dvh; margin: auto; padding: 10px 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-width: 0; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); padding: 8px 0 12px; min-width: 0; }
.brand { display: flex; gap: 13px; align-items: center; color: var(--text); text-decoration: none; font: 25px Georgia, serif; }
.brand small { display: block; font: 8px system-ui; letter-spacing: 3px; color: var(--muted); margin-top: 5px; }
.crest { display: grid; place-items: center; border: 1px solid #827449; color: var(--gold); height: 42px; width: 42px; font-size: 30px; }
.build-label { font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.build-label span { color: var(--gold); border: 1px solid var(--border); padding: 3px 7px; margin-left: 8px; }
.build-meta { display: grid; justify-items: end; gap: 9px; }
.eyebrow { color: var(--gold); letter-spacing: 2px; font-size: 9px; margin: 0 0 6px; }
.realm-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; text-align: right; font-size: 10px; color: var(--muted); }
.realm-status > span { white-space: nowrap; }
.realm-status button{font:inherit;color:var(--muted);background:transparent;border:1px solid var(--border);border-radius:3px;cursor:pointer;padding:0 5px}
.performance-panel{position:absolute;z-index:60;right:10px;top:60px;width:min(380px,calc(100% - 20px));max-height:calc(100% - 80px);overflow:auto;padding:14px;background:#14261df5;border:1px solid #839263;box-shadow:0 8px 30px #0008;color:#e0e6d9;font:12px/1.5 system-ui}
.performance-panel header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.performance-panel button,.performance-panel select{background:#304638;color:#f1dfb2;border:1px solid #718264;padding:4px 8px;font:inherit}.performance-panel pre{font:11px/1.7 monospace;white-space:pre-wrap}.performance-panel p{font-size:10px;color:#b6c2b1}.performance-panel label{display:flex;align-items:center;gap:10px}
#connection { color: #d2ba81; }
#connection::before { content: ''; display: inline-block; width: 6px; height: 6px; background: currentColor; border-radius: 50%; margin-right: 7px; }
#connection[data-status="online"] { color: #a1c88b; }
#connection[data-status="offline"] { color: #df977e; }
.game-frame { min-height: 0; min-width: 0; overflow: hidden; border: 1px solid #52604a; box-shadow: 0 14px 50px #0004; }
.game-topline { position: absolute; z-index: 1; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; background: #202d26; padding: 10px 18px; font-size: 8px; letter-spacing: 2px; color: var(--muted); }
.game-location { color: #d4cba9; }
.game-topline i { display: inline-block; width: 5px; height: 5px; background: var(--gold); margin-right: 7px; transform: rotate(45deg); }
.viewport { position: relative; isolation: isolate; height: 100%; width: 100%; min-height: 0; overflow: hidden; background: #354d37; }
#gameCanvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; image-rendering: pixelated; touch-action: none; outline-offset: -3px; }
#gameCanvas { top: var(--topline-height, 50px); bottom: calc(var(--controls-height,100px) + 12px); height: max(1px, calc(100% - var(--topline-height,50px) - var(--controls-height,100px) - 12px)); }
#gameCanvas:focus,#gameCanvas:focus-visible { outline:none; }
#overlay { z-index: 2; position: absolute; inset: var(--topline-height,50px) 0 0; background: #152a25dd; display: grid; place-items: center; color: #ebdcaf; padding: 20px; text-align: center; }
#overlay[hidden] { display: none; }
.location-label { position: absolute; top: 64px; left: 20px; font-size: 9px; letter-spacing: 2px; color: #e4dfbd; background: #192a24d9; padding: 10px 14px; border-left: 2px solid #b9a16c; pointer-events: none; }
.location-label span { display: block; font-size: 10px; letter-spacing: 0; color: #a9b6a1; margin-top: 3px; }
.section-flash{position:absolute;z-index:3;top:calc(var(--topline-height,50px) + 12px);left:50%;transform:translateX(-50%);max-width:80%;padding:10px 22px;background:#17271fdf;border:1px solid #ae95604d;border-radius:4px;color:#e5d8b7;font:17px Georgia,serif;letter-spacing:1px;pointer-events:none;opacity:0;text-align:center;box-shadow:0 5px 20px #0003}
.section-flash.active{animation:area-notice 3s ease both}
@keyframes area-notice{0%,100%{opacity:0}10%,78%{opacity:1}}

.world-interact { position: absolute; z-index: 1; right: 12px; top: calc(var(--topline-height, 50px) + 12px); max-width: calc(100% - 24px); padding: 8px 10px; background: #203329ed; border: 1px solid #a59564; color: #ead7a2; font-size: 11px; }
.world-interact kbd { margin-left: 6px; }
.world-card { position: absolute; z-index: 2; left: 12px; top: calc(var(--topline-height,50px) + 84px); width: min(310px, calc(100% - 24px)); max-height: min(310px,calc(100% - var(--controls-height,100px) - var(--topline-height,50px) - 110px)); overflow-y: auto; overscroll-behavior: contain; background: #1c2925f7; border: 1px solid #8b815a; box-shadow: 0 8px 24px #0006; padding: 12px; }
.world-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.world-card h2 { margin: 0; font: 19px Georgia, serif; color: #ead7a2; }
.world-card button { background: #26362c; border: 1px solid #53664c; font-size: 19px; padding: 1px 7px; }
.world-card p { font-size: 12px; line-height: 1.6; margin: 10px 0 0; color: #bcc9af; }
.world-card[data-error="true"] p { color: #edaa8c; }

.world-card .world-actions { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 5px; margin-top: 10px; }
.world-actions:empty { display: none; }
.world-actions button { padding: 7px 8px; text-align: left; font-size: 11px; color: #e5d5a4; background: #2d4030; border: 1px solid #657557; }
.world-actions button:hover:not(:disabled) { border-color: var(--gold); background: #40513a; }
.world-card[hidden], .world-interact[hidden], .viewport[data-ui-open="true"] .world-interact, .viewport[data-ui-open="true"] .world-card { display: none; }
@media (max-width: 700px) { .viewport:has(.character-dock:not([hidden])) .world-card { visibility: hidden; } }
.game-bottom { position: absolute; z-index: 1; bottom: 0; left: 0; right: 0; pointer-events: none; }
.game-bottom > * { pointer-events: auto; }
.game-toolbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 18px; background: var(--panel); border-top: 1px solid var(--border); }
.vitals { width: 160px; flex-shrink: 0; }
.vitals label { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.vitals label span { color: #c6d3bd; letter-spacing: 0; }
progress { appearance: none; display: block; width: 100%; height: 5px; border: 0; background: #101b19; margin: 4px 0 8px; }
progress::-webkit-progress-bar { background: #101b19; }
progress::-webkit-progress-value { background: #93b77d; }
#mana::-webkit-progress-value { background: #79a8c3; }
progress::-moz-progress-bar { background: #93b77d; }
#mana::-moz-progress-bar { background: #79a8c3; }
.hotbar { display: flex; gap: 8px; }
.combat-controls { min-width: 0; }
.combat-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; min-height: 20px; color: var(--muted); font-size: 9px; }
#combat-block { font-size: 9px; background: #26342b; border: 1px solid #53604a; padding: 1px 6px; }
.spell[aria-pressed="true"], #combat-block[aria-pressed="true"] { border-color: #e0c384; background: #43513a; box-shadow: inset 0 2px #e0c384; }
.viewport[data-blocking="true"] #combat-status { color: #eed8a4; }
button, select { font: inherit; color: var(--text); }
input { font: inherit; color: var(--text); }
button { cursor: pointer; touch-action: none; }
.spell { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid #53604a; background: #26342b; padding: 10px; min-width: 150px; position: relative; }
.spell:hover, .spell:focus-visible { background: #334536; border-color: var(--gold); }
.spell:active { transform: translateY(1px); }
.skill-icon { display: block; width: 32px; height: 32px; flex-shrink: 0; image-rendering: pixelated; pointer-events: none; }
.spell .skill-icon { width: 28px; height: 28px; }
.spell-copy { min-width: 0; }
.spell strong { display: block; font-size: 11px; font-weight: 500; }
.spell small { display: block; font-size: 9px; color: var(--muted); }
.spell kbd { margin-left: auto; }
.unavailable .skill-icon { opacity: .65; }
button:disabled { opacity: .5; cursor: default; }
select { font-size: 11px; padding: 7px 25px 7px 9px; border: 1px solid #485744; background: #1b2822; width: 160px; }
kbd { display: inline-block; font: 9px monospace; background: #26352b; border: 1px solid #485443; border-bottom: 2px solid #485443; border-radius: 3px; padding: 2px 5px; color: #d8d7be; }
.touch-controls { display: none; grid-template: repeat(2, 44px) / repeat(3, 44px); gap: 5px; margin: 0 0 10px 10px; width: max-content; }
.touch-controls button { background: #263a2c; border: 1px solid #617153; font-size: 20px; }
.up { grid-column: 2; }.left { grid-row: 2; grid-column: 1; }.down { grid-row: 2; grid-column: 2; }.right { grid-row: 2; grid-column: 3; }
.account-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; width: min(760px, calc(100% - 32px)); }
.account-copy h2 { font: 27px Georgia, serif; margin: 8px 0; }
.account-copy p { color: var(--muted); max-width: 320px; font-size: 12px; }
.account-copy .eyebrow { color: var(--gold); font-size: 9px; }
.account-note { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 25px; }
.account-panel[data-mode="roster"] { width: min(960px, calc(100% - 32px)); grid-template-columns: .65fr 1.6fr; gap: 24px; }
.account-fields { min-width: 0; }
.roster-heading, .roster-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.roster-heading { font-size: 11px; color: var(--muted); margin-bottom: 12px; overflow-wrap: anywhere; }
.roster-heading strong { color: var(--gold); white-space: nowrap; }
.character-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.character-slot { padding: 13px; background: #17251f; border: 1px solid #4b5b47; border-radius: 3px; min-width: 0; }
.character-slot > small { color: var(--muted); font-size: 9px; }
.character-slot h3 { color: #ead7a2; font: 19px Georgia, serif; margin: 7px 0; overflow-wrap: anywhere; }
.character-slot p { color: #c5cfba; font-size: 10px; margin: 7px 0; }
.character-slot-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.character-slot-actions .primary-button { padding: 7px 16px; }
.character-slot-empty { display: flex; flex-direction: column; min-height: 112px; }
.character-slot-empty button { flex: 1; background: transparent; border: 1px dashed #536149; color: #b9c6aa; margin-top: 10px; padding: 12px; }
.character-delete { color: #dba693; background: transparent; border: 0; padding: 8px 0; font-size: 10px; }
.character-dead { float: right; color: #e4a58d; font-size: 9px; }
.roster-actions { margin-top: 15px; }
.roster-actions button, #character-back, #delete-back { padding: 9px 12px; background: #29392d; border: 1px solid #53634c; font-size: 11px; }
#character-delete-form { display: grid; gap: 12px; font-size: 12px; }
#character-delete-first p { font-size: 12px; }
.delete-warning { color: #efb09c; }
.danger-button, .roster-actions .danger-button { background: #713c35; border: 1px solid #af6757; color: #fff1dc; padding: 11px 15px; }
@media (max-width: 700px) { .account-panel[data-mode="roster"] { grid-template-columns: 1fr; gap: 12px; }.character-slot { padding: 10px; } }
@media (max-width: 390px) { .character-slots { grid-template-columns: 1fr; } }
.account-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.account-tabs button { padding: 0 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 12px; color: var(--muted); }
.account-tabs [aria-selected="true"] { color: var(--gold); border-color: var(--gold); }
#account-form { display: grid; gap: 11px; }
#account-form label { display: grid; gap: 5px; font-size: 9px; letter-spacing: 1px; color: var(--muted); }
#account-form small { font-size: 10px; letter-spacing: 0; }
input { width: 100%; border: 1px solid #50604d; background: #131f1a; padding: 10px 12px; border-radius: 2px; min-width: 0; }
input:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.primary-button { background: #cbb47b; color: #1e2c22; border: 1px solid #d7c28b; padding: 10px 20px; font-size: 12px; font-weight: 600; }
.primary-button:hover { background: #dec892; }
.account-links { display: flex; gap: 15px; margin-top: 14px; }
.account-links button { background: none; border: 0; padding: 0; color: #b8c5ae; font-size: 11px; text-decoration: underline; }
#account-message { color: #b7c9ab; min-height: 17px; margin-bottom: 0; font-size: 11px; }
#account-message[data-error="true"], #save-status[data-error="true"] { color: #edaa8c; }
.account-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; letter-spacing: 0; }
.character-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.account-summary .eyebrow { margin: 0; font-size: 8px; letter-spacing: 1px; }
.account-summary strong { color: #ead7a2; font: 15px Georgia, serif; }
.account-summary small, #save-status { color: var(--muted); font-size: 9px; }
.account-summary button { background: #2a392e; border: 1px solid #56644f; padding: 5px 10px; font-size: 10px; }
#class-field select { width: 100%; padding: 11px; }
.panel-buttons { display:flex; gap:4px; padding:0; border:0; background:transparent; }
.panel-buttons button, .dock-heading button { background: #26362c; border: 1px solid #53664c; padding: 8px 10px; font-size: 11px; }
.panel-buttons button { white-space: nowrap; }
.panel-buttons [aria-selected="true"] { color: #f1dfa8; background: #43513a; border-color: var(--gold); box-shadow: inset 0 2px var(--gold); }
.panel-buttons kbd { margin-left: 5px; }
#panel-shade { position: absolute; inset: 0; z-index: 3; background: #081511b8; }
.game-window { position: absolute; inset: 16px; z-index: 4; height: fit-content; max-height: calc(100% - 32px); margin: auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: #1c2925; border: 1px solid #8b815a; color: var(--text); padding: 22px; box-shadow: 0 10px 30px #0006; }
.game-window:focus { outline: none; }
.game-window:focus-visible { outline:none; }
.viewport[data-ui-open="true"] .location-label { visibility: hidden; }
.character-dock { position:absolute; z-index:2; right:8px; top:calc(var(--topline-height,50px) + 8px); bottom:calc(var(--controls-height,100px) + 8px); width:var(--character-width,320px); max-width:calc(100% - 44px); display:flex; flex-direction:column; background:#1c2925f7; border:1px solid #8b815a; box-shadow:0 8px 24px #0006; animation:dock-open .15s ease-out; }
.dock-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.dock-heading h2 { font: 21px Georgia, serif; color: #ead7a2; margin: 0; }
.dock-heading button { font-size: 19px; line-height: 1; padding: 3px 7px; }
.dock-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px; }
.dock-content .dialog-note { margin: 0 0 14px; font-size: 10px; }
.dock-content .dialog-note:last-child { margin: 12px 0 0; }
.character-dock .inventory-slot { padding: 10px; min-height: 72px; }
.equipment-list { display: grid; gap: 10px; }
.equipment-slot { padding: 12px; background: #223027; border: 1px solid #43523f; }
.equipment-slot small { display: block; color: var(--muted); font-size: 8px; letter-spacing: 2px; }
.equipment-slot strong { display: block; color: #dec994; font: 17px Georgia, serif; margin-top: 5px; }
.equipment-slot span { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.character-dock .inventory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.item-tile { position: relative; display: grid; place-items: center; min-width: 0; height: 44px; padding: 4px; background: #29372be8; border: 1px solid #52604a; box-shadow: inset 1px 1px #7c86682b, inset -1px -1px #0c1718a6; }
button.item-tile:hover, button.item-tile:focus-visible { background: #3c4b34; outline: 1px solid var(--gold); outline-offset: -2px; }
.item-tile img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; pointer-events: none; }
.item-tile[data-consumable][aria-disabled="true"] { cursor: wait; }
.consumable-cooldown { position: absolute; inset: 0; background: #d5bf7866; border-top: 2px solid #f4df9bcc; transform-origin: bottom; pointer-events: none; z-index: 1; }
.consumable-empty img { opacity: .4; }
.item-tile[aria-pressed="true"] { border: 2px solid #ecd17f; background: #556044; box-shadow: inset 0 0 0 1px #cab976; }
.item-count { position: absolute; left: 4px; top: 2px; color: #ffed9c; font: bold 10px monospace; text-shadow: 1px 1px #111, -1px -1px #111; pointer-events: none; }
.empty-tile { opacity: .42; border-color: #3e4d3c; }
.equipment-list { position: relative; grid-template-columns: 56px 22px 56px 22px 56px; grid-template-rows: repeat(5, 52px); justify-content: center; gap: 6px; margin: 0 auto 10px; }
.equipment-list::before { content: ''; position: absolute; width: 2px; background: #66705166; left: calc(50% - 1px); top: 26px; bottom: 26px; z-index: -1; }
.equipment-tile { height: 52px; padding: 14px 3px 3px; border-radius: 5px 1px 5px 1px; }
.equipment-tile img { width: 32px; height: 32px; }
.equipment-tile.empty-tile { opacity: 1; background: #202c24; border-color: #3e4d3c; }
.equipment-tile .item-count { top: 15px; left: 2px; font-size: 9px; }
.slot-placeholder { color: #56604d; font: 24px Georgia, serif; line-height: 1; pointer-events: none; }
.equipment-slot-label { position: absolute; top: 3px; left: 0; right: 0; text-align: center; font-size: 8px; letter-spacing: .5px; color: var(--gold); pointer-events: none; }
.equipment-tile[data-slot="head"] { grid-area: 1 / 3; }
.equipment-tile[data-slot="cape"] { grid-area: 2 / 1; }
.equipment-tile[data-slot="neck"] { grid-area: 2 / 3; }
.equipment-tile[data-slot="arrows"] { grid-area: 2 / 5; }
.equipment-tile[data-slot="weapon"] { grid-area: 3 / 1; }
.equipment-tile[data-slot="chest"] { grid-area: 3 / 3; }
.equipment-tile[data-slot="shield"] { grid-area: 3 / 5; }
.equipment-tile[data-slot="gloves"] { grid-area: 4 / 1; }
.equipment-tile[data-slot="legs"] { grid-area: 4 / 3; }
.equipment-tile[data-slot="ring"] { grid-area: 4 / 5; }
.equipment-tile[data-slot="boots"] { grid-area: 5 / 3; }
.equipment-bonuses { margin: 3px 0; text-align: center; color: #b9c4a6; font: 10px/1.5 system-ui, sans-serif; }
.item-use-bar { padding: 8px 12px; border-bottom: 1px solid #837347; background: #424a30; flex-shrink: 0; font-size: 11px; }
.item-use-bar strong { display: block; color: #f0d994; font-weight: 500; margin-bottom: 5px; }
.item-use-bar button { background: #2a382b; border: 1px solid #78815a; font-size: 10px; padding: 3px 7px; margin-right: 5px; }
.item-message { margin: 0; padding: 8px 12px; color: var(--muted); font-size: 10px; line-height: 1.35; min-height: 42px; border-top: 1px solid var(--border); flex-shrink: 0; }
.item-message[data-error="true"] { color: #edaa8c; }
.character-dock:has(#skills-panel:not([hidden])) .item-message { display: none; }
.viewport[data-using-item="true"] canvas, .viewport[data-using-item="true"] .vitals { cursor: crosshair; }
@media (max-height: 650px) {
  .combat-info { margin-top: 1px; min-height: 16px; font-size: 8px; line-height: 12px; }
  #combat-block { font-size: 8px; line-height: 12px; padding: 0 4px; } #combat-block kbd { display: none; }
  .dock-heading { padding: 5px 8px; }.dock-heading h2 { font-size: 17px; }.dock-heading button { font-size: 16px; padding: 1px 6px; }
  .dock-content { padding: 8px; }
  .item-use-bar { padding: 2px 8px; font-size: 9px; }.item-use-bar strong { margin-bottom: 0; }.item-use-bar button { font-size: 9px; padding: 1px 5px; }
  .character-dock:has(#item-use-bar:not([hidden])) .item-message { display: none; }
  .character-dock .item-tile:not(.equipment-tile) { height: 44px; }
}
@keyframes dock-open { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .character-dock { animation: none; } }
.dialog-note { color: var(--muted); font-size: 11px; margin: 18px 0; }
.inventory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.inventory-overflow-notice { grid-column: 1 / -1; margin: 8px 0 0; font-size: 12px; color: #e3c88a; }
.inventory-slot { border: 1px solid #43523f; background: #223027; min-height: 80px; padding: 16px; }
.inventory-slot strong { font-size: 12px; color: #dec994; font-weight: 500; }
.inventory-slot span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.skill-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 7px; }
.skill-list[data-skill-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skill-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.skill-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.skill-summary small { font-size: 8px; letter-spacing: .5px; color: var(--muted); }
.skill-summary strong { color: #efdb9f; font: 20px Georgia, serif; }
.skill-summary > span { grid-column: 1 / -1; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.skill-tile { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: 32px auto auto 4px; align-items: center; gap: 5px; min-width: 0; padding: 10px 8px 8px; color: var(--text); background: #26362ce8; border: 1px solid #52604a; border-radius: 5px 1px 5px 1px; box-shadow: inset 1px 1px #7c86682b, inset -1px -1px #0c1718a6; }
.skill-tile:hover, .skill-tile:focus-visible { background: #344532; border-color: var(--gold); outline: 1px solid var(--gold); outline-offset: -2px; }
.skill-tile > strong { grid-column: 1 / -1; font-size: 10px; font-weight: 500; text-align: left; color: #dec994; }
.skill-total-xp { grid-column: 1 / -1; font-size: 8px; line-height: 1.25; color: var(--muted); text-align: left; white-space: nowrap; }
.skill-level { display: flex; flex-direction: column; align-items: end; line-height: 1; }
.skill-level small { color: var(--muted); font-size: 7px; letter-spacing: 1px; }
.skill-level b { color: #efdb9f; font: 18px/1.1 Georgia, serif; font-variant-numeric: tabular-nums; }
.skill-tile progress { grid-column: 1 / -1; width: 100%; height: 4px; margin: 0; }
.skill-tooltip { position: fixed; z-index: 6; width: 232px; max-width: calc(100vw - 16px); padding: 11px 12px; background: #17261ff5; border: 1px solid #8b815a; border-radius: 4px 1px; box-shadow: 0 5px 18px #0007; pointer-events: none; color: var(--text); }
.skill-tooltip > strong { color: #efdb9f; font: 16px Georgia, serif; }
.skill-tooltip p { font-size: 10px; line-height: 1.4; color: var(--muted); margin: 7px 0 10px; }
.skill-tooltip dl { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 0; font-size: 11px; }
.skill-tooltip dt { color: var(--muted); }.skill-tooltip dd { margin: 0; color: #efdb9f; font-variant-numeric: tabular-nums; }
.skill-tooltip > small { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
@media (pointer: coarse) { .touch-controls { display: grid; } }
@media (max-width: 1000px) {
  .game-toolbar { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .combat-controls { order: 3; width: 100%; }.hotbar { width: 100%; justify-content: center; }
  .spell { flex: 1; min-width: 0; }
}
@media (max-width: 760px) {
  .account-panel { grid-template-columns: 1fr; gap: 12px; }.account-note { display: none; }
  .account-copy h2 { margin: 6px 0; }.account-summary { margin-left: 0; width: 100%; }
  .touch-controls { display: grid; }
  .shell { width: calc(100% - 16px); padding: 6px 0; gap: 6px; }.masthead { padding: 6px 0 8px; }
  .brand { font-size: 21px; gap: 8px; }.brand small { font-size: 7px; letter-spacing: 1.5px; }.crest { width: 34px; height: 34px; font-size: 25px; }
  .realm-status { font-size: 9px; }
  .panel-buttons { gap: 4px; }.panel-buttons button { padding: 6px; font-size: 10px; }.panel-buttons kbd { margin-left: 3px; padding: 1px 3px; }

  .game-toolbar { flex-wrap: wrap; gap: 8px; padding: 8px; }.vitals { width: 100px; }
  .hotbar { order: 3; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 6px; }.spell { min-width: 0; padding: 7px; gap: 4px; display: grid; grid-template-columns: 24px minmax(0, 1fr); }.spell .skill-icon { width: 24px; height: 24px; grid-area: 1 / 1; }.spell kbd { grid-area: 1 / 2; justify-self: end; }.spell-copy { grid-column: 1 / -1; }.spell strong { font-size: 10px; line-height: 1.3; }.spell small { font-size: 8px; }.game-topline { padding: 9px; font-size: 7px; letter-spacing: 1px; }
  .location-label { top: 92px; left: 10px; padding: 6px 9px; font-size: 7px; }.location-label span { font-size: 8px; }
  .build-label { font-size: 8px; letter-spacing: 1px; }
}

@media (max-width: 760px) { .panel-buttons { margin-left: auto; } .game-window { padding: 16px; inset: 10px; max-height: calc(100% - 20px); } .account-panel { width: calc(100% - 20px); }  }
@media (max-width: 360px) {
  .hotbar { grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); }
  .spell-copy { grid-area: 1 / 2; }
  .spell kbd { display: none; }
  .spell .skill-icon { align-self: start; margin-top: 2px; }
  .vitals { width: 80px; }
  .panel-buttons kbd { display: none; }
}

@media (max-height: 500px) {
  .shell { padding: 4px 0; gap: 4px; }
  .masthead { padding: 2px 0 6px; }
  .brand { font-size: 19px; }.brand small { display: none; }.crest { width: 28px; height: 28px; font-size: 22px; }
  .game-topline { padding: 6px 10px; }.game-toolbar { padding: 6px 10px; gap: 8px; }
  .account-panel { grid-template-columns: 1fr 1.2fr; gap: 16px; }.account-note { display: none; }
  .game-window { padding: 14px; inset: 8px; max-height: calc(100% - 16px); }
  .touch-controls { grid-template: repeat(2, 32px) / repeat(3, 32px); gap: 3px; }
}
/* Trading and exploration */
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.player-tools { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-left:auto; min-width:0; }
.gold-hud { display:flex; align-items:center; gap:9px; margin-left:0; color:#f0d48a; font-size:14px; white-space:nowrap; }
.gold-coin { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; border:3px solid #c49b49; background:#e1c26c; color:#73552a; box-shadow:inset 0 0 0 2px #f4df95,2px 2px #0e2019; font:bold 16px Georgia,serif; }

.viewport[data-ui-open="true"] .panel-buttons { pointer-events:none; opacity:.4; }
button.item-tile[data-inventory-slot] { touch-action:none; }
.item-tile.dragging { opacity:.45; }
.item-tile.drop-target { outline:2px solid #e1c778; background:#596044; }
.quest-entry { border:1px solid #4d604b; background:#22352a; padding:12px; margin-bottom:10px; }
.quest-entry h3 { margin:0 0 7px; font:18px Georgia,serif; color:#eddaad; }
.quest-entry p { font-size:11px; line-height:1.6; color:#c0ccb4; }
.quest-entry small { font-size:10px; color:#aebc9f; }
.quest-status { display:block; color:#b7c7ad; font-size:10px; }
.quest-entry[data-status="claimed"] { border-color:#749060; }
.quest-entry[data-status="claimed"] .quest-status { color:#c0dd94; }
.quest-entry[data-status="complete"] .quest-status { color:#f1cf7b; }
.character-dock:has(#quests-panel:not([hidden])) .item-message { display:none; }
.level-announcement { position:absolute; z-index:3; top:calc(var(--topline-height,50px) + 16px); left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 24px); text-align:center; color:#ffe7a2; background:#22372aed; border:1px solid #bda361; box-shadow:0 5px 20px #0008; padding:12px 22px; pointer-events:none; font:bold 19px Georgia,serif; }
.shop-window { width:min(900px,calc(100% - 32px)); padding:24px; }
.shop-heading { display:flex; align-items:center; gap:18px; border-bottom:1px solid #617052; padding-bottom:18px; }
.shop-heading > div { flex:1; min-width:0; }
.shop-heading canvas { width:86px; height:86px; flex-shrink:0; border:2px solid #a9935d; image-rendering:pixelated; }
.shop-heading h2 { font:28px Georgia,serif; color:#eddaad; margin:4px 0 8px; }
.shop-heading p { font-size:12px; color:#becab2; margin:0; line-height:1.6; }
.shop-heading .eyebrow { font-size:9px; color:#d4bd80; letter-spacing:2px; }
.shop-heading > button { align-self:flex-start; margin-left:auto; font-size:22px; }
.shop-window button { background:#33472f; border:1px solid #74805a; color:#efdba1; padding:7px 11px; }
.shop-window button:disabled { opacity:.4; }
.shop-window button:hover:not(:disabled) { background:#4b603e; }
.shop-balance { display:flex; justify-content:space-between; gap:12px; padding:14px 0; font-size:11px; color:#aebf9f; }
.shop-balance strong { color:#ead18a; white-space:nowrap; }
.shop-columns { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.shop-columns > section { min-width:0; }
.shop-columns h3 { font:20px Georgia,serif; color:#e1cf9b; margin:0 0 10px; }
.shop-list { display:grid; gap:7px; }
.shop-item { display:flex; align-items:center; gap:9px; min-height:62px; padding:8px; background:#24392c; border:1px solid #4a6048; }
.shop-item img { object-fit:contain; image-rendering:pixelated; flex-shrink:0; }
.shop-item > span { flex:1; min-width:0; }
.shop-item strong { display:block; font-size:11px; line-height:1.4; }
.shop-item small { display:block; font-size:9px; color:#b6c5a7; margin-top:4px; }
.shop-item button { font-size:11px; }
.shop-empty { padding:18px; border:1px dashed #52684e; color:#a8bc9d; font-size:12px; line-height:1.7; }
.shop-news { border-top:1px solid #4b6148; margin-top:18px; padding-top:10px; font-size:12px; color:#becab2; }
.shop-news:empty { display:none; }
.shop-news p { line-height:1.6; }
#shop-message[data-error="true"] { color:#edaa8c; }
@media(max-width:700px){
  .shop-window { width:calc(100% - 20px); padding:14px; }
  .shop-heading { gap:10px; padding-bottom:12px; }
  .shop-heading canvas { width:56px; height:56px; }
  .shop-heading h2 { font-size:21px; }
  .shop-heading p { font-size:11px; }
  .shop-heading .eyebrow { font-size:8px; letter-spacing:1px; }
  .shop-columns { grid-template-columns:1fr; gap:18px; }
  .shop-balance { flex-wrap:wrap; }
  .level-announcement { font-size:16px; padding:10px; }

  .gold-hud { gap:5px; font-size:12px; }.gold-coin { width:23px;height:23px;font-size:12px; }
}
@media(max-height:500px) and (min-width:650px){
  .game-bottom { display:flex; align-items:flex-end; background:var(--panel); border-top:1px solid var(--border); }
  .touch-controls { flex-shrink:0; margin:6px; }
  .game-toolbar { flex:1; min-width:0; flex-wrap:nowrap; gap:8px; padding:6px; border:0; }
  .combat-controls { order:0; flex:1; width:auto; min-width:0; }
  .vitals { width:82px; flex-shrink:0; }
  .hotbar { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:4px; }
  .spell { min-width:0; padding:5px; gap:4px; }
  .spell .skill-icon { width:22px; height:22px; }
  .spell strong { font-size:9px; }.spell small { font-size:8px; }.spell kbd { display:none; }
  .gold-hud { font-size:11px; gap:4px; }
}
@media(max-height:650px) and (max-width:400px){
  .touch-controls { grid-template:repeat(2,32px)/repeat(3,32px); gap:3px; margin-bottom:6px; }
}
/* Nearby chat stays above the shared bottom toolbar. */
.chat-window { position:absolute; z-index:2; left:8px; right:auto; bottom:calc(var(--controls-height,100px) + 18px); width:min(330px,calc(100% - 20px)); height:190px; max-height:max(90px,calc(100% - var(--controls-height,100px) - var(--topline-height,50px) - 30px)); display:flex; flex-direction:column; background:#14271ed6; border:1px solid #8b815a99; box-shadow:0 3px 12px #0003; color:#e1e4d6; }
.chat-heading { display:flex; align-items:center; gap:7px; padding:4px 7px; min-height:28px; background:#25382abb; border-bottom:1px solid #71805b55; }
.chat-heading > strong { color:#ddcf9e; font-size:10px; letter-spacing:.6px; font-weight:500; }
.chat-heading button { padding:0 5px; border:0; background:transparent; color:#c7d1b7; }
#chat-toggle { margin-left:auto; font-size:17px; line-height:18px; }
#chat-new { margin-left:auto; font-size:9px; color:#efd694; }
.chat-body { flex:1; min-height:0; display:flex; flex-direction:column; }
.chat-history-wrap { position:relative; flex:1; min-height:0; }
#chat-history { height:100%; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#6d7d5b #15271b88; padding:4px 8px; font-size:11px; line-height:1.55; overflow-wrap:anywhere; }
#chat-history:focus-visible { outline:none; }
#chat-history p { margin:2px 0; white-space:pre-wrap; }
#chat-history strong { color:#e2cc8f; font-weight:600; }
#chat-empty { position:absolute; top:4px; left:8px; right:8px; margin:0; color:#afbea5; font-size:10px; pointer-events:none; }
#chat-form { display:grid; grid-template-columns:minmax(0,1fr) 35px 43px; gap:5px; align-items:center; padding:5px; border-top:1px solid #71805b55; }
#chat-input { padding:6px 7px; font-size:11px; height:30px; border-color:#68765c88; background:#11231999; color:#edf0e4; }
#chat-count { color:#b9c5ad; font-size:9px; font-variant-numeric:tabular-nums; text-align:center; }
#chat-send { padding:5px 6px; background:#3b5031bb; border:1px solid #83916688; color:#e7d79f; font-size:10px; height:30px; }
#chat-send:disabled { opacity:.45; }
#chat-status { margin:0; padding:0 7px; color:#edbc93; font-size:10px; line-height:1.4; }
#chat-status:empty { display:none; }
.chat-window[data-collapsed="true"] { height:auto; }
.chat-window[data-collapsed="true"] .chat-body { display:none; }
.viewport[data-ui-open="true"] .chat-window { visibility:hidden; }

@media(max-height:650px){ .chat-window { height:145px; } }
@font-face { font-family:UnifrakturCook; src:url('assets/fonts/UnifrakturCook-Bold.ttf') format('truetype'); font-style:normal; font-weight:700; font-display:swap; }
.death-window { width:min(800px,calc(100% - 28px)); display:grid; grid-template-columns:220px minmax(0,1fr); gap:22px; align-items:center; border-color:#884d47; background:radial-gradient(ellipse at 20% 40%,#303429,#121c19 75%); padding:30px; }
.death-window .eyebrow { color:#bda581; }
.death-copy h1 { font:700 clamp(46px,6vw,78px)/1.15 UnifrakturCook,Georgia,serif; color:#ed4945; text-shadow:2px 3px #310d0d,0 0 24px #9b252b77; margin:0 0 12px; letter-spacing:2px; }
.death-copy > p { color:#c6bba4; font-size:12px; line-height:1.7; }
.death-copy h2 { color:#d8c593; font:18px Georgia,serif; margin:18px 0 8px; }
.reaper-art svg { display:block; width:100%; filter:drop-shadow(0 4px 18px #0009); }
.death-kept { display:flex; flex-wrap:wrap; gap:7px; }
.death-kept > div { display:flex; align-items:center; gap:6px; padding:6px 8px; background:#2c392c; border:1px solid #6c7154; font-size:10px; color:#ddcfad; }
.death-kept img { image-rendering:pixelated; }
#revive-player { margin-top:12px; }
#revive-player:disabled { opacity:.5; }
.grave-timer { position:absolute; z-index:2; left:50%; transform:translateX(-50%); top:calc(var(--topline-height,50px) + 8px); padding:4px 12px; background:#17251fe8; border:1px solid #b39b65; color:#ebd39a; font:13px monospace; }
.grave-timer b { font:24px 'Segoe UI Symbol',serif; vertical-align:middle; margin-right:6px; }
.grave-timer[data-public="true"] { color:#f09f8f; border-color:#b26c5f; }
.grave-list { position:absolute; z-index:3; left:50%; transform:translateX(-50%); top:calc(var(--topline-height,50px) + 50px); width:min(380px,calc(100% - 20px)); max-height:180px; overflow:auto; padding:8px 12px; background:#1b2b23fa; border:1px solid #8b815a; font-size:11px; }
.grave-list p { margin:7px 0; color:#d8cba9; }
.viewport:has(#grave-timer:not([hidden])) .level-announcement { top:calc(var(--topline-height,50px) + 56px); }
.grave-item { display:flex; align-items:center; gap:8px; }
.grave-item img { image-rendering:pixelated; }
.equipment-comparison { position:fixed; z-index:7; width:350px; max-width:calc(100vw - 16px); max-height:calc(100vh - 16px); overflow:auto; padding:12px; background:#14241ff7; border:1px solid #b29c64; box-shadow:0 6px 20px #0009; pointer-events:none; font-size:11px; }
.equipment-comparison > strong { color:#e7d39b; font:18px Georgia,serif; }
.equipment-comparison table { width:100%; border-collapse:collapse; margin:8px 0; font-size:10px; }
.equipment-comparison th,.equipment-comparison td { text-align:right; padding:5px 3px; border-bottom:1px solid #40513c; }
.equipment-comparison tr > :first-child { text-align:left; }
.equipment-comparison th { color:#aebca0; font-size:9px; }
.equipment-comparison p { margin:7px 0; color:#d5ccad; }.equipment-comparison small { color:#afbd9f; }
.equipment-comparison [data-change="better"] { color:#b1da8c; }.equipment-comparison [data-change="worse"] { color:#e69e8b; }
.gear-pane-title { display:none; font:18px Georgia,serif; color:#dcca99; margin:0 0 10px; }
.character-dock[data-gear="true"] { --character-width:610px; }
.character-dock[data-gear="true"] .dock-content { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:16px; align-items:start; }
.character-dock[data-gear="true"] #inventory-panel { grid-column:1; grid-row:1; }
.character-dock[data-gear="true"] #equipment-panel { grid-column:2; grid-row:1; min-width:0; }
.character-dock[data-gear="true"] .gear-pane-title { display:block; }

@media(max-width:700px){
  .death-window { grid-template-columns:95px minmax(0,1fr); gap:10px; padding:15px; }
  .death-copy h1 { font-size:42px; letter-spacing:0; }.death-copy > p { font-size:11px; }
  .death-copy h2 { margin-top:10px; font-size:16px; }.death-kept > div { font-size:9px; padding:3px 4px; }.death-kept img { width:24px; height:24px; }
  #revive-player { padding:8px 10px; font-size:11px; }
  .character-dock[data-gear="true"] .dock-content { gap:9px; padding:8px; }
  .character-dock[data-gear="true"] .equipment-list { grid-template-columns:minmax(0,1fr) 0 minmax(0,1fr) 0 minmax(0,1fr); gap:4px; width:100%; }
  .character-dock[data-gear="true"] .item-tile img { max-width:100%; width:32px; height:auto; max-height:32px; }
  .character-dock[data-gear="true"] .equipment-slot-label { font-size:6px; letter-spacing:0; }
  .character-dock[data-gear="true"] .dialog-note { font-size:8px; }
  .character-dock[data-gear="true"] .gear-pane-title { font-size:15px; }
  .grave-timer { font-size:10px; padding:2px 7px; }.grave-timer b { font-size:20px; }
}
@media(max-height:500px){ .death-window { grid-template-columns:100px minmax(0,1fr); max-width:650px; padding:12px; gap:12px; }.death-copy h1 { font-size:42px; margin-bottom:5px; }.death-copy > p { font-size:10px; margin:5px 0; }.death-copy h2 { font-size:16px; margin:8px 0; }.death-kept > div { padding:3px 5px; }.death-kept img { width:24px; height:24px; } }

@media(max-width:420px){
  .death-window { grid-template-columns:1fr; gap:3px; padding:12px; text-align:center; }
  .death-window .reaper-art { width:70px; margin:0 auto; }
  .death-copy .eyebrow { font-size:8px; letter-spacing:1px; margin:0 0 4px; }
  .death-copy h1 { font-size:46px; margin:0 0 7px; }
  .death-copy > p { font-size:11px; margin:5px 0; line-height:1.5; }
  .death-copy h2 { font-size:16px; margin:9px 0 7px; }
  .death-kept { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .death-kept > div { flex-direction:column; justify-content:center; gap:2px; font-size:8px; padding:4px; }
  #revive-player { margin-top:8px; }
}
.viewport:has(#grave-timer:not([hidden])) .world-interact { top:calc(var(--topline-height,50px) + 56px); }

/* Gold and character buttons share the toolbar, without a tab-only strip. */
@media(min-width:1001px){ .game-toolbar { gap:12px; padding:12px; }.vitals { width:115px; }.spell { min-width:115px; padding:8px; gap:6px; }.spell kbd { display:none; }.panel-buttons button { padding:7px 6px; font-size:10px; }.panel-buttons kbd { display:none; }.player-tools { gap:10px; }.gold-hud { font-size:12px; } }
@media(max-width:1000px){ .player-tools { flex:1; gap:8px; }.panel-buttons button { padding:6px; font-size:10px; }.panel-buttons kbd { display:none; } }
@media(max-width:600px){ .game-toolbar .vitals { width:80px; }.player-tools { flex:1 0 100%; order:4; }.combat-controls { order:3; }.panel-buttons { margin-left:0; }.panel-buttons button { padding:6px 4px; font-size:9px; }.player-tools { gap:8px; justify-content:space-between; }.gold-hud { font-size:11px; } }
@media(max-height:500px) and (min-width:650px){ .player-tools { flex:0; flex-wrap:wrap; max-width:210px; gap:4px; }.player-tools .panel-buttons { gap:2px; }.panel-buttons button { padding:4px 3px; font-size:8px; } }

/* Character menus overlay the right side inside the unchanged game viewport. */
.equipment-toggle { position:absolute; right:100%; top:50px; display:flex; flex-direction:column; align-items:center; gap:7px; width:28px; padding:9px 4px; color:#e5d39f; background:#26382cf5; border:1px solid #8b815a; border-right:0; border-radius:4px 0 0 4px; font-size:10px; }
.equipment-toggle > :last-child { writing-mode:vertical-rl; }
.equipment-toggle:hover,.equipment-toggle:focus-visible { background:#42543b; color:#fff0bb; }
.equipment-toggle[aria-expanded="true"] { background:#48543a; box-shadow:inset 2px 0 #d7c389; }
@media(min-width:1000px){
 .viewport:has(.character-dock:not([hidden])) { --character-width:320px; }
 .viewport:has(.character-dock[data-gear="true"]:not([hidden])) { --character-width:610px; }
 .viewport:has(.character-dock:not([hidden])) .world-interact { right:calc(var(--character-width) + 44px); }
}
@media(max-width:999px){
 .viewport:has(.character-dock:not([hidden])) .chat-window { width:38px; height:30px; bottom:calc(var(--controls-height,100px) + 8px); }
 .viewport:has(.character-dock:not([hidden])) .chat-body,
 .viewport:has(.character-dock:not([hidden])) .chat-heading > strong,
 .viewport:has(.character-dock:not([hidden])) #chat-new { display:none; }
 .viewport:has(.character-dock:not([hidden])) .chat-heading { padding:0; justify-content:center; }
 .viewport:has(.character-dock:not([hidden])) #chat-toggle { margin:0; font-size:0; width:100%; }
 .viewport:has(.character-dock:not([hidden])) #chat-toggle::after { content:'💬'; font-size:16px; }
}

@media(max-width:600px) and (max-height:650px){
 .touch-controls { display:flex; gap:4px; margin:5px 8px; }
 .touch-controls button { width:32px; height:32px; }
 .spell { display:flex; align-items:center; gap:5px; padding:5px; }
 .spell .skill-icon { width:20px; height:20px; }
 .spell-copy { min-width:0; }
 .spell small { display:none; }
 .spell strong { font-size:8px; }
 .spell kbd { display:none; }
}

.gathering-hud { position:absolute; z-index:2; left:50%; transform:translateX(-50%); bottom:calc(var(--controls-height,100px) + 12px); width:max-content; max-width:calc(100% - 30px); padding:7px 12px; background:#1b3025ef; border:1px solid #9a9665; color:#e4d49f; font-size:11px; text-align:center; pointer-events:none; }
.gathering-hud progress { margin:5px 0 0; height:4px; }

#cursor-feedback { position:absolute; z-index:30; max-width:190px; padding:7px 11px; border:1px solid #7b8767; border-radius:3px; background:#172a22ed; color:#f0ddaa; font-size:11px; text-align:center; pointer-events:none; transform:translate(-50%,-100%); }

.cooking-hud { position:absolute; z-index:6; left:50%; transform:translateX(-50%); bottom:calc(var(--controls-height,100px) + 12px); width:350px; max-width:calc(100% - 24px); padding:12px; background:#192f25f5; border:1px solid #b1a16b; color:#e4d49f; text-align:center; font-size:11px; box-shadow:0 4px 18px #10241b66; }
.cooking-hud strong { display:block; margin-bottom:8px; }
.cooking-timing { position:relative; height:20px; overflow:hidden; background:#634b38; border:1px solid #9a8861; }
#cooking-zone { position:absolute; top:0; bottom:0; background:#74944b; border-left:2px solid #c6d486; border-right:2px solid #c6d486; }
#cooking-marker { position:absolute; top:1px; bottom:1px; width:3px; margin-left:-1px; background:#fff1c2; box-shadow:0 0 4px #f7e7ad; }
#cooking-progress { height:3px; margin-top:4px; }
.cooking-buttons { display:flex; gap:8px; margin:8px 0; }
.cooking-buttons button { flex:1; padding:7px; color:#f0dfa8; border:1px solid #8c8c5d; background:#3b5134; }
.cooking-buttons button:last-child { flex:0 0 auto; background:#443e2f; }
#cooking-message { display:block; min-height:26px; line-height:1.4; }
#cooking-message[data-outcome="burned"] { color:#e4a27e; }
#cooking-message[data-outcome="cooked"] { color:#b9d28a; }
.cooking-hud[data-active="false"] .cooking-timing,.cooking-hud[data-active="false"] progress,.cooking-hud[data-active="false"] .cooking-buttons,.cooking-hud[data-active="false"] strong { display:none; }

.viewport > .item-use-bar { position:absolute; z-index:7; left:50%; transform:translateX(-50%); bottom:calc(var(--controls-height,100px) + 12px); width:350px; max-width:calc(100% - 24px); padding:10px; border:1px solid #a69862; text-align:center; background:#273d29f5; }

.cooking-buttons button { min-height:40px; }
@media(max-width:999px) { .cooking-buttons button { min-height:44px; } }

.item-context-menu { position:fixed; z-index:1000; width:184px; max-width:calc(100vw - 12px); padding:5px; background:#1b3028fa; border:1px solid #aa9867; box-shadow:0 5px 18px #0c1c13aa; color:#eadbb2; font-size:12px; }
.item-context-menu > strong { display:block; padding:7px 8px; border-bottom:1px solid #57664b; margin-bottom:3px; font-size:11px; }
.item-context-menu > button { display:block; width:100%; border:0; background:transparent; color:#e1d3a4; text-align:left; padding:8px; min-height:34px; }
.item-context-menu > button:hover:not(:disabled),.item-context-menu > button:focus-visible { background:#485a37; outline:1px solid #bdad76; }
@media(max-width:999px){.item-context-menu > button{min-height:42px;}}
.trade-window { width:min(960px,calc(100% - 32px)); }
.trade-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.trade-header h2 { margin:0; font:26px Georgia,serif; color:#e8d5a0; }
.trade-window button,.player-stats-window button,.trade-invitation button { background:#33472f; border:1px solid #74805a; color:#efdba1; padding:8px 12px; cursor:pointer; }
.trade-window button:disabled { opacity:.5; cursor:default; }
.trade-window input { min-width:0; width:100%; padding:7px; color:#f4e9cf; background:#14201d; border:1px solid #66725b; box-sizing:border-box; }
.trade-help { color:#c9c8af; line-height:1.5; }
.trade-columns { display:flex; gap:14px; align-items:stretch; }
.trade-columns > section { flex:1; min-width:0; padding:12px; background:#14201d; border:1px solid #52634e; }
.trade-columns h3 { margin:0 0 10px; font:20px Georgia,serif; color:#e1cf9b; }
.trade-bag-list,.trade-offer-list { max-height:min(32vh,270px); overflow:auto; overscroll-behavior:contain; }
.trade-bag-item { display:flex; gap:5px; align-items:end; padding:7px 0; border-bottom:1px solid #344238; }
.trade-bag-item label { flex:1; min-width:0; font-size:12px; }
.trade-bag-item input { width:65px; display:block; margin-top:4px; }
.trade-bag > label { display:block; margin:12px 0 6px; font-size:12px; }
.trade-item { display:flex; align-items:center; gap:7px; padding:6px 0; }
.trade-item img { image-rendering:pixelated; object-fit:contain; flex-shrink:0; }
.trade-item span { flex:1; overflow-wrap:anywhere; }
.trade-item button { font-size:11px; padding:4px; }
.trade-gold { display:block; margin-top:14px; color:#ebce7d; }
.trade-empty { font-size:12px; color:#acb7a6; }
.trade-message { min-height:1.3em; color:#edb292; margin:12px 0; }
.trade-footer { display:flex; justify-content:flex-end; align-items:center; gap:12px; flex-wrap:wrap; }
.trade-footer p { flex:1; font-size:13px; color:#b8c9aa; }
.trade-invitation { position:absolute; z-index:5; bottom:calc(var(--controls-height,58px) + 14px); right:14px; max-width:300px; padding:14px; background:#1c2925f5; border:1px solid #aa9562; box-shadow:0 6px 24px #0008; }
.trade-invitation strong { display:block; margin-bottom:12px; overflow-wrap:anywhere; }
.trade-invitation div { display:flex; gap:10px; }
.trade-toast { position:absolute; pointer-events:none; z-index:8; top:calc(var(--topline-height,45px) + 10px); left:50%; transform:translateX(-50%); max-width:85%; padding:10px 14px; border:1px solid #8b815a; background:#1b2824f5; color:#e8d5a0; font-size:13px; text-align:center; }
.player-stats-window { width:min(620px,calc(100% - 32px)); }
.player-stats-window > p { color:#c9c8af; }
.player-stats-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.player-stat { display:flex; gap:12px; padding:12px; background:#14201d; border:1px solid #52634e; }
.player-stat .skill-icon { width:36px; height:36px; flex-shrink:0; }
.player-stat div { display:grid; gap:4px; }
.player-stat strong { color:#e1cf9b; }
.player-stat small { color:#b3bda9; }
@media(max-width:650px) {
  .trade-window,.player-stats-window { width:calc(100% - 16px); }
  .trade-columns { flex-wrap:wrap; gap:8px; }
  .trade-columns > .trade-bag { flex-basis:100%; }
  .trade-bag-list { max-height:140px; }
  .trade-offer-list { max-height:160px; }
  .trade-item { flex-wrap:wrap; font-size:12px; }
  .trade-header h2 { font-size:21px; }
  .player-stat { padding:8px; gap:7px; font-size:12px; }
  .player-stat .skill-icon { width:25px; height:25px; }
}
.bank-window { width:min(1060px,calc(100% - 32px)); }
.bank-heading { display:flex; align-items:center; gap:14px; }
.bank-heading canvas { flex-shrink:0; width:64px; height:64px; border:1px solid #a28e5c; image-rendering:pixelated; }
.bank-heading > div { flex:1; }
.bank-heading h2 { margin:0 0 5px; font:26px Georgia,serif; color:#e8d5a0; }
.bank-heading p,.bank-help { color:#bfc7b0; font-size:12px; line-height:1.5; }
.bank-window button { border:1px solid #758263; background:#33472f; color:#e7d9a7; padding:7px 11px; cursor:pointer; }
.bank-window button:disabled { opacity:.5; cursor:default; }
.bank-window button:focus-visible { outline:2px solid #e0c47d; outline-offset:1px; }
.bank-toolbar { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin-top:16px; }
.bank-toolbar label { display:grid; gap:5px; font-size:12px; }
.bank-toolbar > label:first-child { flex:1; min-width:140px; }
.bank-toolbar input { width:100%; padding:8px; background:#14221c; border:1px solid #66775b; color:#f0e3bf; min-width:0; }
.bank-custom-label { width:70px; }
.bank-toolbar fieldset { margin:0; padding:0; border:0; }
.bank-toolbar legend { padding:0 0 5px; font-size:12px; }
.bank-quantities { display:flex; gap:4px; }
.bank-quantities [aria-pressed="true"] { background:#6c7043; border-color:#c7b67a; color:#fff0b8; }
.bank-columns { display:grid; grid-template-columns:minmax(0,2fr) minmax(220px,1fr); gap:18px; }
.bank-columns > section { min-width:0; }
.bank-columns section > header { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:40px; }
.bank-columns h3 { font:21px Georgia,serif; color:#e3cfa0; margin:0; }
#bank-capacity { color:#acbba2; font-size:12px; }
.bank-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:5px; align-content:start; max-height:min(44vh,410px); overflow:auto; padding:3px; background:#14221c; border:1px solid #4a5b43; overscroll-behavior:contain; scrollbar-gutter:stable; }
.bank-bag .bank-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.bank-window .bank-slot { position:relative; min-width:0; padding:0; height:52px; border:1px solid #52664b; display:flex; justify-content:center; align-items:center; background:#26372a; }
.bank-slot img { width:32px; height:32px; image-rendering:pixelated; pointer-events:none; }
.bank-window .bank-slot:hover:not(:disabled) { background:#43533a; border-color:#b4a06a; }
.bank-window .bank-empty { background:#1d2d23; opacity:.55; }
.bank-count { position:absolute; left:3px; top:2px; font:bold 10px monospace; color:#ffeea0; text-shadow:1px 1px #111,-1px -1px #111; }
.bank-no-results { grid-column:1/-1; padding:12px; color:#a9b59d; font-size:12px; }
#bank-message { min-height:30px; margin:12px 0 0; color:#d5cda7; font-size:12px; line-height:1.5; }
#bank-message[data-error="true"] { color:#e2a98d; }
@media(max-width:700px) {
  .bank-window { width:calc(100% - 16px); }
  .bank-heading { gap:9px; }
  .bank-heading canvas { width:44px; height:44px; }
  .bank-heading h2 { font-size:20px; }
  .bank-heading p { margin:0; font-size:10px; }
  .bank-columns { grid-template-columns:minmax(0,1fr); gap:10px; }
  .bank-grid { grid-template-columns:repeat(6,minmax(0,1fr)); max-height:210px; }
  .bank-bag .bank-grid { grid-template-columns:repeat(6,minmax(0,1fr)); max-height:140px; }
  .bank-window .bank-slot { height:43px; }
  .bank-toolbar { gap:8px; margin-top:10px; }
  .bank-help { font-size:10px; margin:8px 0; }
}

.item-context-menu form { padding:8px; }
.item-context-menu form label { display:block; }
.item-context-menu form input { display:block; width:100%; margin-top:6px; padding:6px; background:#10251e; color:#eadbb2; border:1px solid #839263; }
.item-context-menu form p { margin:4px 0; font-size:11px; color:#edbb99; }
.item-context-menu form button { margin:6px 6px 0 0; padding:6px 9px; }
.bank-slot[data-bank-item] { touch-action:none; cursor:grab; }
.bank-window .bank-slot.dragging { opacity:.5; }
.bank-window .bank-slot.drop-target { border-color:#e3cf84; background:#53613c; }
.staff-badge{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;margin-right:4px;border:1px solid currentColor;border-radius:3px;font-size:13px;line-height:1;vertical-align:middle;background:#14281e}
.staff-admin{color:#f4cb65}.staff-moderator{color:#b8dbe5}
.admin-window{position:absolute;inset:6% 8%;z-index:45;padding:18px;display:flex;flex-direction:column;gap:10px;max-height:88%;background:#172d25f7;border:1px solid #9f9869;box-shadow:0 12px 50px #0009;color:#e9dfc3}
.admin-window[hidden]{display:none}.admin-window h2{margin:0}.admin-private{color:#b2bdab}.admin-window input{width:100%;box-sizing:border-box;padding:9px;background:#0f211b;color:#e9dfc3;border:1px solid #718264}.admin-list{overflow:auto;min-height:0;overscroll-behavior:contain}.admin-row{display:flex;gap:10px;align-items:center;padding:9px 2px;border-bottom:1px solid #5a715044}.admin-row>div{flex:1;min-width:0}.admin-row small{display:block;color:#b9c5b4;margin-top:4px}.admin-row button{flex-shrink:0}.admin-window button{padding:7px 10px;background:#304638;border:1px solid #87916b;color:#f1dfb2;cursor:pointer}.admin-window button:hover{background:#3b5743}.admin-toast{z-index:46}
@media(max-width:600px){.admin-window{inset:3% 2%;max-height:94%;padding:12px}.admin-row{gap:5px}.admin-row button{padding:7px 6px;font-size:11px}.admin-row small{font-size:10px}}

/* The map is a viewport overlay; opening it never changes the game canvas. */
.map-open{padding:4px 7px;background:#2e4232;border:1px solid #74805e;color:#ead7a2;font-size:9px;letter-spacing:.5px;white-space:nowrap}.map-open kbd{margin-left:3px;padding:0 3px}
.map-guide{color:#cbd7bc;background:#22382a;border:1px solid #5b6e54;font-size:11px;padding:5px 9px}.map-guide summary{cursor:pointer;color:#efda9a;font-weight:bold}.map-guide div{max-height:125px;overflow:auto}.map-guide p{margin:5px 0;line-height:1.35}
.map-window.game-window{width:min(1060px,calc(100% - 32px));height:min(780px,calc(100% - 32px));max-height:calc(100% - 32px);padding:14px;overflow:hidden;display:flex;flex-direction:column;gap:8px}
.map-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.map-heading .eyebrow{margin-bottom:1px}.map-heading h2{margin:0;color:#ecdbab;font:24px Georgia,serif}.map-location{margin:2px 0 0;color:#b7c7b0;font-size:11px}.map-heading>button{font-size:22px;line-height:1;padding:3px 9px}
.map-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:5px;color:#aebda6;font-size:10px}.map-toolbar button,.map-heading>button{background:#263c2e;color:#eadbb0;border:1px solid #627657;border-radius:2px}.map-toolbar button{padding:5px 10px}.map-toolbar span{margin-left:6px}.map-toolbar small{margin-left:auto;color:#d2bc8e}
.map-scroll{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;border:1px solid #5b6e54;background:#14251e;cursor:grab;scrollbar-color:#718564 #1d3025;user-select:none}.map-scroll.dragging{cursor:grabbing}.map-scroll > svg{display:block;max-width:none;overflow:visible}.map-legend{display:flex;flex-wrap:wrap;gap:5px 14px;color:#bfcdb7;font-size:10px}.map-legend span{white-space:nowrap}.map-legend i{display:inline-block;width:9px;height:9px;margin-right:4px;border:1px solid #e3dfba}.map-key-you{background:#f0c96a;border-radius:50%}.map-key-road{background:#c3ac85}.map-key-building{background:#76573d}.map-key-ore{background:#d9a15e;transform:rotate(45deg)}.map-legend b{color:#ffc27a}.map-north{margin-left:auto;color:#e9d39e}
@media(max-width:700px){.map-window.game-window{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);max-height:calc(100% - 16px);padding:9px}.map-heading h2{font-size:20px}.map-toolbar button{padding:5px 8px}.map-toolbar span{display:none}.map-toolbar small{margin-left:3px}.map-legend{font-size:9px;gap:4px 10px}}
/* Shared merchant and player-exchange surfaces. Inventory remains the real dock. */
.viewport:has(#shop-window:not([hidden])),.viewport:has(#trade-window:not([hidden])){--exchange-top:calc(var(--topline-height,50px) + 12px);--exchange-space:calc(100% - var(--topline-height,50px) - var(--controls-height,100px) - 24px)}
.shop-window.game-window,.trade-window.game-window{inset:var(--exchange-top) auto auto 12px;margin:0;width:calc(100% - 364px);max-width:880px;height:var(--exchange-space);max-height:var(--exchange-space);box-sizing:border-box;display:flex;flex-direction:column;gap:12px;padding:20px;background:linear-gradient(145deg,#26382f,#16241f 70%);border-color:#8b7a54;overflow:auto;scrollbar-gutter:auto}
.shop-window[hidden],.trade-window[hidden]{display:none}
.character-dock[data-commerce="shop"],.character-dock[data-commerce="trade"]{z-index:5;width:328px;max-width:328px;top:var(--exchange-top);bottom:calc(var(--controls-height,100px) + 12px);animation:none}
.character-dock[data-commerce="shop"] #close-character-panel,.character-dock[data-commerce="trade"] #close-character-panel{display:none}
.character-dock[data-commerce="shop"] .item-tile,.character-dock[data-commerce="trade"] .item-tile{cursor:pointer}
.exchange-heading{display:flex;gap:13px;align-items:center;border-bottom:1px solid #576147;padding-bottom:12px;flex-shrink:0}
.exchange-heading canvas{width:58px;height:58px;image-rendering:pixelated;background:#344339;border:1px solid #6e7555}
.exchange-heading>div{flex:1;min-width:0}.exchange-heading h2{font:27px Georgia,serif;color:#eddbad;margin:0}.exchange-heading .eyebrow{font-size:9px;letter-spacing:2px;color:#b5bc9e;margin:0 0 5px}
.exchange-heading>button{font-size:25px;padding:1px 10px}.exchange-toolbar{display:flex;align-items:end;gap:14px;justify-content:space-between;flex-shrink:0}.exchange-search{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#b9c6b2;flex:1}.exchange-search input{width:100%;box-sizing:border-box;border:1px solid #576a56;background:#12231d;color:#e1dbc3;padding:9px 11px;font:12px inherit}.exchange-toolbar>span{color:#e5c980;font-size:12px;white-space:nowrap;padding:10px 0}
.exchange-quantities{display:flex;align-items:center;gap:5px;flex-wrap:wrap;flex-shrink:0}.exchange-quantities>span{font-size:10px;color:#b9c6b2;margin-right:7px}.exchange-quantities button{border:1px solid #59694e;background:#233c2e;color:#cdd4bb;padding:6px 11px;font-size:11px}.exchange-quantities button[aria-pressed="true"]{background:#bc9d59;color:#15241c;border-color:#e6cd8f}
.exchange-help,.trade-help{font-size:11px;line-height:1.6;color:#acbda6;margin:0}.exchange-stock{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:7px;overflow:auto;min-height:100px;align-content:start;flex:1;padding:2px}
.exchange-stock-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:104px;padding:8px 4px;background:radial-gradient(ellipse at top,#354b39,#1c2c23);color:#e2d9b8;border:1px solid #50634d;cursor:pointer}.exchange-stock-item:hover,.exchange-stock-item:focus-visible{border-color:#e1c782;background:#394c37;outline:1px solid #bda667;outline-offset:1px}.exchange-stock-item:disabled{opacity:.45;cursor:default}.exchange-stock-item img{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}.exchange-stock-name{font-size:10px;line-height:1.4;text-align:center;max-width:100%;overflow-wrap:anywhere}.exchange-stock-item small{font-size:10px;color:#dcc383;font-variant-numeric:tabular-nums}
.exchange-detail{padding:10px 12px;border:1px solid #52644c;background:#13251d;color:#e3d4aa;font-size:11px;line-height:1.5;flex-shrink:0}#shop-message{font-size:11px;line-height:1.5;color:#c5cfb4;margin:0;flex-shrink:0}.shop-news{margin:0;padding-top:9px;font-size:10px;flex-shrink:0;max-height:110px;overflow:auto}.shop-news p{margin:0 0 7px}.exchange-reserved{position:absolute;bottom:2px;left:1px;right:1px;background:#293f2df2;color:#d9c28e;font-size:8px;text-align:center;line-height:12px;pointer-events:none}
.trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:1;min-height:150px}.trade-columns>.trade-offer{padding:13px;background:#11221bc9;border:1px solid #52644e;display:flex;flex-direction:column;gap:12px}.trade-columns h3{font-size:19px;margin:0;color:#dcca9d}.exchange-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:7px;align-content:start;overflow:auto;min-height:110px;flex:1}.exchange-offered-item{display:flex;align-items:center;gap:8px;padding:8px;background:#263b2b;border:1px solid #4f634b;color:#e4d4a8;min-width:0;min-height:48px;box-sizing:border-box}.trade-window .exchange-offered-item{padding:8px}.exchange-offered-item img{image-rendering:pixelated;object-fit:contain;width:32px;height:32px;flex-shrink:0}.exchange-offered-item span{font:12px monospace;overflow-wrap:anywhere}.trade-window .exchange-offered-item:hover{border-color:#cfb67b}.exchange-gold{display:flex;gap:9px;align-items:center;min-height:37px;border-top:1px solid #4d614b;padding:9px;color:#e1ca86;font-size:12px}.exchange-gold>span:first-child{color:#ebbe53;font-size:21px}.trade-window button.exchange-gold{background:#2d402c;border:1px solid #617351}.trade-empty{grid-column:1/-1;font-size:11px;line-height:1.6;padding:8px;color:#a4b69c}.trade-message{font-size:11px;margin:0;min-height:1em}.trade-footer{gap:9px;flex-shrink:0}.trade-footer p{font-size:11px}.trade-header h2{font-size:25px}
.exchange-quantity-menu{position:fixed;z-index:100;width:218px;box-sizing:border-box;padding:12px;background:#172a21;border:1px solid #b29a64;box-shadow:0 12px 40px #0009;color:#e4d7b5;display:flex;flex-direction:column;gap:6px;font:12px/1.5 system-ui}.exchange-quantity-menu strong{font:17px Georgia,serif;padding:1px 0 7px}.exchange-quantity-menu button{border:1px solid #576d50;background:#2c432e;color:#ecd7a0;padding:8px;text-align:left;cursor:pointer}.exchange-quantity-menu button:focus-visible{outline:2px solid #cbb474}.exchange-quantity-menu input{width:100%;box-sizing:border-box;padding:9px;margin:5px 0;color:#fff1ca;background:#102118;border:1px solid #8a8b5f;font-size:16px}.exchange-quantity-menu form{display:grid;gap:7px}.exchange-quantity-menu p{margin:0;color:#e6a18a;font-size:11px}
@media(max-width:760px){.shop-window.game-window,.trade-window.game-window{left:8px;right:8px;width:auto;max-width:none;top:var(--exchange-top);height:calc(var(--exchange-space) * .59);max-height:calc(var(--exchange-space) * .59);padding:10px;gap:6px}.character-dock[data-commerce="shop"],.character-dock[data-commerce="trade"]{left:8px;right:8px;width:auto;max-width:none;top:calc(var(--exchange-top) + var(--exchange-space) * .59 + 6px);bottom:calc(var(--controls-height,100px) + 12px)}.character-dock[data-commerce="shop"] .inventory-grid,.character-dock[data-commerce="trade"] .inventory-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.character-dock[data-commerce]:not([data-commerce=""]) .dock-content{padding:7px}.character-dock[data-commerce]:not([data-commerce=""]) .item-tile:not(.equipment-tile){height:41px}.character-dock[data-commerce]:not([data-commerce=""]) .item-message{font-size:9px}.exchange-heading{gap:8px;padding-bottom:6px}.exchange-heading canvas{width:36px;height:36px}.exchange-heading h2,.trade-header h2{font-size:19px}.exchange-heading .eyebrow{display:none}.exchange-toolbar input{padding:5px 8px}.exchange-toolbar>span{font-size:10px;padding:4px}.exchange-quantities button{padding:4px 9px}.exchange-quantities>span{display:none}.exchange-help,.trade-help{font-size:9px;line-height:1.35}.exchange-stock{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));min-height:50px}.exchange-stock-item{min-height:78px;gap:2px;padding:4px}.exchange-stock-item img{width:28px;height:28px}.exchange-stock-name{font-size:8px}.exchange-detail{padding:5px;font-size:9px}#shop-message{font-size:9px}.shop-news{max-height:58px;font-size:9px}.trade-columns{min-height:65px;gap:6px}.trade-columns>.trade-offer{padding:7px;gap:5px}.trade-columns h3{font-size:15px}.exchange-items{grid-template-columns:1fr;min-height:40px;gap:3px}.exchange-offered-item,.trade-window .exchange-offered-item{padding:3px;min-height:34px;gap:4px}.exchange-offered-item img{width:26px;height:26px}.exchange-offered-item span{font-size:10px}.exchange-gold{padding:3px;min-height:24px;font-size:10px}.trade-footer button{padding:5px 8px}.trade-footer p,.trade-message{font-size:9px}.trade-empty{font-size:9px;padding:2px}}
/* On phones, commerce covers the combat controls without moving the canvas. */
@media(max-width:760px){.viewport:has(#shop-window:not([hidden])),.viewport:has(#trade-window:not([hidden])){--exchange-space:calc(100% - var(--topline-height,50px) - 24px)}.character-dock[data-commerce="shop"],.character-dock[data-commerce="trade"]{bottom:12px}.trade-columns{min-height:120px;overflow:auto}.trade-columns>.trade-offer{min-height:0}.exchange-gold{flex-shrink:0}.exchange-items{min-height:35px}.exchange-stock{flex-shrink:1;min-height:90px}}
.exchange-stock-item[data-unavailable="true"]{opacity:.55}
.item-tile.commerce-unavailable{opacity:.45}.shop-news summary{cursor:pointer;color:#dbc28d;font-size:11px;padding:3px 0 7px}.shop-news details>p{padding-top:5px}

.fishing-hud { position:absolute; z-index:6; left:50%; transform:translateX(-50%); bottom:calc(var(--controls-height,100px) + 12px); width:340px; max-width:calc(100% - 24px); padding:14px 16px 10px; color:#e5d8af; background:linear-gradient(135deg,#223c32f8,#142920f8); border:1px solid #ae9b64; border-radius:5px; box-shadow:0 5px 24px #0a1d18a6,inset 0 1px #e8d5a022; font-size:11px; text-align:center; }
.fishing-hud header { display:flex; align-items:center; justify-content:space-between; text-align:left; gap:12px; }
.fishing-hud header small { display:block; font-size:9px; color:#93b0a2; letter-spacing:2px; margin-bottom:3px; }
.fishing-hud header strong { font-size:13px; }
.fishing-hud .fishing-stop { padding:5px 9px; font-size:10px; background:#243d30; border-color:#6e8062; }
.fishing-cue { display:block; font-size:19px; color:#e9d89f; margin:12px 0 8px; letter-spacing:.5px; }
.fishing-arrows { display:grid; grid-template-columns:repeat(3,42px); grid-template-rows:36px 36px; gap:4px; justify-content:center; margin-bottom:12px; }
.fishing-arrows button { padding:0; font:24px Georgia,serif; color:#829d8f; border:1px solid #597160; background:#193026; touch-action:none; user-select:none; }
.fishing-arrows button:first-child { grid-column:2; }
.fishing-arrows button:nth-child(2) { grid-column:1; grid-row:2; }
.fishing-arrows button:nth-child(3) { grid-column:2; grid-row:2; }
.fishing-arrows button:nth-child(4) { grid-column:3; grid-row:2; }
.fishing-arrows button[data-required="true"] { color:#fff1b9; background:#5f6440; border-color:#e2cb80; box-shadow:0 0 12px #d8c57d33; }
.fishing-arrows button[data-held="true"][data-required="true"] { background:#457356; border-color:#b0d6a3; box-shadow:inset 0 0 0 2px #193b2b; }
.fishing-arrows button[data-held="true"][data-required="false"] { color:#edb4a2; border-color:#d48568; }
.fishing-meters { display:grid; grid-template-columns:1fr 1fr; gap:12px; text-align:left; }
.fishing-meters label { font-size:10px; color:#b9c6ae; }
.fishing-meters progress { display:block; width:100%; height:6px; margin:5px 0 0; accent-color:#92b69b; border:0; background:#10271d; }
.fishing-tension::-webkit-progress-value { background:#ceaa65; }
.fishing-tension::-moz-progress-bar { background:#ceaa65; }
.fishing-catch::-webkit-progress-value { background:#80baa0; }
.fishing-hud[data-danger="true"] .fishing-tension::-webkit-progress-value { background:#df8062; }
.fishing-hud[data-danger="true"] .fishing-tension::-moz-progress-bar { background:#df8062; }
.fishing-hud[data-danger="true"] { border-color:#d48568; }
.fishing-note { min-height:26px; line-height:1.4; color:#b4c9b4; margin:10px 0 0; }

@media(max-width:599px) {
  .fishing-hud { width:300px; padding:9px 12px 7px; }
  .fishing-hud header strong { font-size:12px; }
  .fishing-cue { font-size:17px; margin:7px 0 5px; }
  .fishing-arrows { grid-template-columns:repeat(3,36px); grid-template-rows:29px 29px; gap:3px; margin-bottom:8px; }
  .fishing-arrows button { font-size:21px; }
  .fishing-note { font-size:10px; min-height:22px; margin-top:6px; }
}

.world-editor-toolbar { position:absolute; z-index:12; left:50%; top:calc(var(--topline-height,48px) + 10px); transform:translateX(-50%); width:500px; max-width:calc(100% - 24px); padding:10px 12px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; background:#1a302cf5; border:1px solid #c8ad6c; box-shadow:0 5px 20px #10231b80; color:#ecddad; border-radius:4px; }
.world-editor-toolbar[hidden],.world-editor-palette[hidden] { display:none; }
.world-editor-toolbar>div { flex:1; min-width:130px; }
.world-editor-toolbar small { display:block; color:#aac5b2; font-size:8px; letter-spacing:1.5px; margin-bottom:3px; }
.world-editor-toolbar strong { font-size:13px; }
.world-editor-toolbar button,.world-editor-toolbar select { font-size:10px; padding:5px 8px; }
.world-editor-toolbar label { font-size:10px; }
.world-editor-toolbar input[type="number"] { width:64px; padding:5px; font-size:10px; }
.world-editor-message { width:100%; font-size:10px; line-height:1.4; margin:0; color:#becfaf; }
.world-editor-toolbar[data-error="true"] .world-editor-message { color:#efb198; }
.world-editor-palette { position:absolute; z-index:14; right:12px; top:calc(var(--topline-height,48px) + 12px); bottom:calc(var(--controls-height,100px) + 12px); width:355px; max-width:calc(100% - 24px); padding:12px; background:#1b3029fa; border:1px solid #b59e64; box-shadow:0 6px 24px #0d201caa; color:#eadcb3; display:flex; flex-direction:column; gap:8px; border-radius:4px; }
.world-editor-palette header { display:flex; justify-content:space-between; align-items:center; }
.world-editor-palette header small { color:#a5bca9; letter-spacing:1.5px; font-size:8px; }
.world-editor-palette h2 { margin:3px 0 0; font-size:17px; }
.world-editor-palette header button { padding:3px 9px; font-size:20px; }
.world-editor-palette input,.world-editor-palette select { width:100%; padding:7px 8px; font-size:11px; }
.world-editor-help { font-size:10px; line-height:1.4; color:#bdcbb0; margin:0; }
.world-editor-assets { overflow:auto; min-height:0; display:grid; grid-template-columns:1fr 1fr; align-content:start; gap:6px; }
.world-editor-assets>button { display:flex; flex-direction:column; align-items:center; padding:5px; background:#233c30; border:1px solid #4e6850; text-align:center; min-height:111px; }
.world-editor-assets>button:hover,.world-editor-assets>button:focus-visible { background:#3b5138; border-color:#d6bf7b; }
.world-editor-assets canvas { width:64px; height:64px; image-rendering:pixelated; }
.world-editor-assets strong { display:block; font-size:10px; color:#e8d7a4; }
.world-editor-assets small { display:block; margin-top:4px; font-size:8px; color:#a9bfab; }
@media(max-width:599px) { .world-editor-toolbar { gap:5px; padding:7px 9px; } .world-editor-toolbar strong { font-size:11px; } .world-editor-palette { right:8px; bottom:calc(var(--controls-height,100px) + 8px); padding:9px; } }

.gathering-check { position:absolute; z-index:6; left:50%; transform:translateX(-50%); bottom:calc(var(--controls-height,100px) + 12px); width:310px; max-width:calc(100% - 24px); padding:12px 14px; background:linear-gradient(135deg,#253b30f8,#17291ff8); border:1px solid #ac9562; border-radius:5px; color:#e8dbaf; box-shadow:0 5px 24px #09170ba6; font-size:11px; text-align:center; }
.gathering-check header { display:flex; align-items:center; justify-content:space-between; gap:8px; text-align:left; }
.gathering-check header small { display:block; color:#a3b09b; font-size:8px; letter-spacing:1.6px; margin-bottom:4px; }
.gathering-check header strong { font-size:13px; }
.gathering-check button { touch-action:none; font:inherit; color:#e8dbaf; background:#2b4335; border:1px solid #74866b; border-radius:3px; box-shadow:inset 0 1px #e8d5a022; cursor:pointer; }
.gathering-check .check-stop { padding:5px 8px; font-size:10px; }
.wood-check { display:flex; align-items:center; justify-content:center; gap:22px; padding:14px 0 4px; }
.balance-track { width:34px; height:134px; position:relative; overflow:hidden; border:1px solid #99815a; background:linear-gradient(#583c2f,#574c31 35%,#314c38 50%,#574c31 65%,#583c2f); border-radius:3px; }
.balance-center { position:absolute; left:0; right:0; top:37.5%; height:25%; border-block:1px solid #96c58c; background:#6d956850; }
.balance-marker { position:absolute; left:2px; right:2px; height:3px; top:50%; transform:translateY(-50%); background:#ffe7a8; box-shadow:0 0 3px #17190d; transition:top 90ms linear; }
.balance-buttons { display:flex; justify-content:center; gap:8px; margin:12px 0; }
.balance-buttons button { min-width:48px; min-height:44px; font-size:22px; }
.balance-buttons button[aria-pressed="true"] { background:#657b43; border-color:#e2d19a; }
.gathering-check small { color:#b6c5ac; line-height:1.5; }
.mining-rock { position:relative; margin:12px auto 5px; width:174px; height:148px; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); gap:3px; }
.mining-rock::before { content:''; position:absolute; inset:1px; background:linear-gradient(135deg,#7b8172,#4c5a52 45%,#303e37); clip-path:polygon(19% 2%,70% 0,94% 20%,100% 65%,80% 96%,25% 100%,0 69%,4% 30%); box-shadow:inset 0 0 14px #151c17; }
.mining-rock button { z-index:1; min-width:44px; min-height:44px; margin:2px; border-radius:35%; color:#d4d8c3; border-color:#5f7061; background:radial-gradient(ellipse,#64756a,#33453bd9); font-size:12px; text-shadow:1px 1px #19271d; }
.mining-rock button:nth-child(1) { grid-area:1/1; }.mining-rock button:nth-child(2) { grid-area:1/3; }.mining-rock button:nth-child(3) { grid-area:2/2; }.mining-rock button:nth-child(4) { grid-area:3/1; }.mining-rock button:nth-child(5) { grid-area:3/3; }
.mining-rock button[data-lit="true"] { background:#b79848; border-color:#ffe3a2; color:#fff1be; box-shadow:0 0 9px #e5b95299; opacity:1; }
.mining-rock button:disabled { opacity:.78; }.mining-rock button[data-lit="true"]:disabled { opacity:1; }
.mining-steps { letter-spacing:6px; color:#e5d08b; font-size:14px; min-height:20px; }
.check-note { min-height:16px; margin:10px 0 6px; color:#dbd3ab; }
.gathering-check progress { height:6px; margin:0; }
.gathering-check [hidden] { display:none !important; }

#stamina::-webkit-progress-value { background: #c4a568; }
#stamina::-moz-progress-bar { background: #c4a568; }

/* Stats stay inside the existing overlay dock; canvas geometry never changes. */
#character-skills { display:block; }
.character-dock[data-page="skills"] { --character-width:500px; }
.character-dock[data-page="skills"] .dock-content { padding:10px; }
.character-dock[data-page="skills"] .skill-summary { padding-bottom:6px;margin-bottom:4px;gap:2px 12px; }
.character-dock[data-page="skills"] .skill-summary strong { font-size:18px; }
.stats-pools { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0;color:#e7d5a6; }
.stats-pools > span { display:flex;justify-content:space-between;align-items:center;gap:5px;padding:7px;background:#192b29;border:1px solid #57675a;border-radius:4px;font-size:11px; }
.stats-pools b { font-size:11px;font-variant-numeric:tabular-nums; }
.stats-message[data-error="true"] { color:#ffb1a2; }
.stats-xp-line { display:flex;align-items:center;gap:8px; }
.stats-xp { font-size:10px;color:#c5d0ba;white-space:nowrap; }
.stats-xp-bar { flex:1;min-width:30px;height:5px;accent-color:#c7a85e; }
.stats-groups { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.stats-groups section { display:grid;gap:5px;min-width:0; }
.stats-groups h3 { font:13px Georgia,serif;color:#e7d5a6;margin:0 0 2px; }
.stat-row { display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:stretch;min-width:0;min-height:55px;background:linear-gradient(120deg,#263c31,#192b29);border:1px solid #465b50;border-radius:5px;overflow:hidden; }
.stat-row[data-pending="true"] { border-color:#c3a96b;background:linear-gradient(120deg,#344b35,#24392e); }
.stat-row button { padding:3px;border:0;border-radius:0;background:transparent;color:#ecdaa6;min-width:0;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none; }
.stat-row [data-minus],.stat-row [data-plus] { font:22px Georgia,serif;background:#ffffff05; }
.stat-row [data-minus] { border-right:1px solid #77896a33; }.stat-row [data-plus] { border-left:1px solid #77896a33; }
.stat-row button:hover:not(:disabled),.stat-row button:active:not(:disabled) { background:#81975a33; }
.stat-row button:focus-visible { outline:2px solid #e0c58d;outline-offset:-3px; }
.stat-row button:disabled { opacity:.3;cursor:default; }
.stat-row [data-detail] { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px 2px;touch-action:manipulation; }
.stat-heading { display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%; }
.stat-heading .skill-icon { width:18px;height:18px;flex-shrink:0; }.stat-heading strong { font-size:10px;font-weight:500; }
.stat-current { color:#f2dfab;font:19px/1.1 Georgia,serif;font-variant-numeric:tabular-nums; }
.stat-bonus { font:8px/1.1 system-ui,sans-serif;color:#d4df9a;white-space:nowrap; }
.stat-note { color:#bdcbb3;font-size:9px;line-height:1.1; }
.stat-row[data-pending="true"] .stat-note { color:#f2d386; }
.stats-hint { font-size:10px;color:#bcc8b3;margin:7px 0; }
.stats-actions { display:flex;gap:6px; }.stats-actions button { font-size:11px;padding:7px 10px; }.stats-actions [data-apply] { background:#365b40;flex:1; }
.stats-message { min-height:14px;font-size:11px;line-height:1.3;margin:6px 0 0; }
.stat-detail,.stats-reset-review { position:absolute;z-index:3;left:10px;right:10px;bottom:10px;max-height:calc(100% - 80px);overflow:auto;background:#162820;border:1px solid #aa8953;box-shadow:0 4px 25px #000a;padding:14px;border-radius:5px;color:#d0d9c4;font-size:12px;line-height:1.5; }
.stat-detail[hidden],.stats-reset-review[hidden] { display:none; }
.stat-detail h3 { margin:0 30px 8px 0;font:19px Georgia,serif;color:#ecd49a; }.stat-detail p { margin:8px 0; }
.stat-detail [data-close-detail] { position:absolute;right:7px;top:7px;font-size:21px;padding:1px 9px; }
.stat-help { color:#aebda6;font-size:10px;border-top:1px solid #59694b;padding-top:8px; }
.stats-reset-review button { font-size:12px;margin:4px; }
@media(max-width:700px) {
 .character-dock[data-page="skills"] { left:8px;right:8px;width:auto;max-width:none;bottom:12px; }
 .stats-pools > span { font-size:10px; }.stats-pools b { font-size:10px; }
 .stat-row { grid-template-columns:34px minmax(0,1fr) 34px; }
 .stat-heading strong { font-size:9px; }.stat-current { font-size:17px; }
}
@media(max-height:760px) {
 .character-dock[data-page="skills"] { bottom:10px; }
 .character-dock[data-page="skills"] .dock-content { padding:7px; }
 .stat-row { min-height:45px; }.stat-row [data-detail] { padding:2px; }.stat-heading .skill-icon { width:16px;height:16px; }
 .stat-current { font-size:16px; }.stats-pools { margin:5px 0; }.stats-pools > span { padding:5px; }
 .stats-advancement { margin:3px 0!important; }.stats-hint { margin:5px 0; }
}
.command-suggestions { position:fixed;z-index:2000;overflow:auto;background:#162925;border:1px solid #c3a56b;border-radius:6px;box-shadow:0 8px 28px #0009;padding:5px; }
.command-suggestions button { display:flex;flex-direction:column;text-align:left;width:100%;padding:8px 9px;background:transparent;border:0;border-radius:3px;color:#eee2bd; }
.command-suggestions button small { color:#b9cbb7;font-size:11px;margin-top:3px; }.command-suggestions button[aria-selected="true"],.command-suggestions button:hover { background:#405642;outline:1px solid #bfa76d; }.command-suggestion-help { display:block;color:#aabca8;font-size:10px;padding:6px 9px; }
.developer-board { inset:12px!important;width:auto!important;max-width:none!important;height:calc(100% - 24px)!important;max-height:calc(100% - 24px)!important;margin:0;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;padding:16px;background:#142721f5;z-index:100; }
.developer-board[hidden],.command-suggestions[hidden] { display:none; }.developer-board .trade-header { flex-shrink:0; }.developer-board h2 { margin:0;font-size:24px; }.board-add-form { display:flex;gap:8px;margin:12px 0 3px; }.board-add-form input { flex:1;min-width:0;padding:10px;background:#10221d;border:1px solid #71836c;color:#f1e4c7;border-radius:4px; }.board-add-form button { padding:8px 12px;font-size:12px; }.board-status { font-size:12px;color:#c2cfb7;min-height:18px;flex-shrink:0; }.board-status[data-error="true"] { color:#ffb1a2; }
.board-lanes { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;flex:1;min-height:0;overflow:auto; }.board-lane { display:flex;flex-direction:column;min-height:170px;min-width:0;background:#20362d;border:1px solid #4e6554;border-radius:5px; }.board-lane h3 { margin:0;padding:11px;font-size:13px;color:#e8d7ac;border-bottom:2px solid #b9a06a; }.board-lane[data-lane="in-progress"] h3 { border-color:#75abc2; }.board-lane[data-lane="needs-refinement"] h3 { border-color:#c89b67; }.board-lane[data-lane="done"] h3 { border-color:#85b479; }.board-lane h3 span { float:right;color:#b8c5af; }.board-cards { padding:8px;min-height:100px;overflow:auto;flex:1; }.board-card { cursor:grab;touch-action:none;user-select:none;margin-bottom:9px;padding:11px;background:#314b3b;border:1px solid #6a8060;border-radius:4px;box-shadow:0 2px 4px #0003; }.board-card strong { display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere;color:#f1e5c8; }.board-card small { display:block;font-size:10px;color:#b8c9ac;margin:8px 0; }.board-card select { width:100%;padding:5px;font-size:10px;background:#20372b;color:#d8ddc4;border:1px solid #6a8060;border-radius:3px; }.board-card.dragging { opacity:.35; }.board-lane.drop-target { background:#42583a;outline:2px solid #e0be70;outline-offset:-2px; }.board-drag-ghost { position:fixed;z-index:2200;pointer-events:none;opacity:.9;transform:rotate(2deg);box-shadow:0 10px 30px #0008; }
@media(max-width:700px){.developer-board { inset:5px!important;height:calc(100% - 10px)!important;max-height:calc(100% - 10px)!important;padding:10px; }.developer-board h2 { font-size:21px; }.board-lanes { display:flex;scroll-snap-type:x proximity; }.board-lane { flex:0 0 78%;min-width:240px;scroll-snap-align:start; }.board-add-form { gap:5px; }.board-add-form input { font-size:14px; }.board-add-form button { padding:7px;font-size:11px; }}

.board-cards:empty::after { content:"Drop tasks here";display:block;text-align:center;color:#879e88;font-size:11px;padding:20px 5px; }

/* Dedicated profession progression */
.stat-training{margin-top:10px;padding-top:8px;border-top:1px solid #59694b55;min-width:0}
.stat-training p{margin:0 0 5px;font-size:12px;overflow-wrap:anywhere}
.stat-training progress{display:block;width:100%;height:7px;accent-color:#b9a069}
.stat-training small{display:block;margin-top:5px;overflow-wrap:anywhere}
.stats-advancement{color:#e0c58e;font-size:12px;margin:4px 0;overflow-wrap:anywhere}
.stat-cost{white-space:normal;overflow-wrap:anywhere}

.ferry-status{position:absolute;z-index:11;left:50%;top:calc(var(--topline-height,48px) + 12px);transform:translateX(-50%);max-width:calc(100% - 28px);padding:9px 14px;border:1px solid #bca574;border-radius:4px;background:#1a302ced;color:#eadcb2;font:11px/1.5 sans-serif;text-align:center;pointer-events:none}.ferry-status[hidden]{display:none}@media(max-width:599px){.ferry-status{width:calc(100% - 50px);font-size:10px;padding:7px 10px}}

.map-labels text{font-family:Georgia,serif;fill:#f0e3b8;stroke:#314032;stroke-width:2.8;paint-order:stroke;stroke-linejoin:round;font-weight:600}.map-labels .map-region-label{font-style:italic;fill:#dbe4cf;stroke:#345761;stroke-width:3;letter-spacing:1px}.map-labels .map-island-label{fill:#eed4a2;letter-spacing:.7px}.map-overview .map-zone-label:not(.map-major-label){display:none}

/* Read-only release history in the browser's modal layer. */
.changelog-window:not([open]){display:none}
.changelog-window{width:min(740px,calc(100vw - 24px));max-width:none;height:min(820px,calc(100vh - 24px));height:min(820px,calc(100dvh - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #99865e;border-radius:5px;background:#1c2925;color:var(--text);box-shadow:0 18px 60px #0008;font:13px/1.55 system-ui,sans-serif}
.changelog-window::backdrop{background:#07110dc9}
.changelog-heading{position:sticky;top:0;z-index:1;padding:16px 20px 10px;background:#202f29;border-bottom:1px solid #59634b}
.changelog-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.changelog-title-row h2{font:25px Georgia,serif;color:#e9d9ae;margin:0}
.changelog-window button{border:1px solid #897c59;border-radius:3px;background:#304337;color:#eee2c4;padding:6px 13px;font:inherit;cursor:pointer;min-height:34px}.changelog-window button:hover{background:#405443}.changelog-window button:focus-visible,.changelog-window input:focus-visible{outline:2px solid #d8bc78;outline-offset:2px}
.changelog-window input{display:block;width:100%;border:1px solid #61705c;border-radius:3px;background:#17251e;color:#e7ebde;padding:9px 11px;font:inherit}
.changelog-heading p{margin:8px 0 0;color:#b4bda8;font-size:11px;min-height:17px}.changelog-heading>button{margin-top:8px}
.changelog-content{padding:0 20px 20px}.changelog-release{padding:15px 0 3px;border-bottom:1px solid #52604766}.changelog-release:last-child{border-bottom:0}.changelog-release h3{margin:0 0 6px;color:#d9bf83;font:18px Georgia,serif}.changelog-release ul{margin:0 0 7px;padding-left:19px}.changelog-release li{margin:5px 0;overflow-wrap:anywhere}
@media(max-width:600px){.changelog-window{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);font-size:14px;scrollbar-gutter:auto}.changelog-heading{padding:12px}.changelog-content{padding:0 14px 14px}.changelog-window input{font-size:16px}.changelog-window button{min-height:40px}.changelog-heading p{font-size:10px}.changelog-release{padding-top:13px}}
