:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #090d0f; color: #ede4cf; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 50% 0, #263133, #090d0f 65%); }
button { font: inherit; }
#game-shell { position: relative; width: 100vw; min-height: 100vh; overflow: hidden; }
.auth-screen { position: absolute; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 55% 35%, #324032bb, #090d0ff2 72%), linear-gradient(120deg, #0e1717, #19130e); }
.auth-panel { width: min(470px, 100%); padding: 28px; border: 1px solid #b99d66; border-radius: 8px; background: linear-gradient(145deg, #1c2422f7, #111411fa); box-shadow: 0 24px 90px #000b, inset 0 1px #fff1; }.auth-panel h1 { margin: 5px 0 10px; color: #f1deae; font: 600 30px Georgia, serif; }.auth-copy { color: #c6bba0; line-height: 1.5; font-size: 13px; }.auth-panel label { display: grid; gap: 5px; margin-top: 12px; color: #cdbb94; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }.auth-panel input { width: 100%; padding: 9px; color: #efe5ce; border: 1px solid #706145; border-radius: 4px; background: #101513; outline: none; }.auth-panel input:focus { border-color: #d7b773; box-shadow: 0 0 0 2px #d7b77324; }.auth-status { min-height: 20px; margin: 14px 0 0; color: #aeb6a6; font-size: 12px; }.auth-status.error { color: #e49b92; }.character-list { display: grid; gap: 8px; margin-bottom: 12px; }.character-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; color: #e9dfc7; text-align: left; border: 1px solid #675c42; border-radius: 5px; background: #202720; cursor: pointer; }.character-card:hover { border-color: #d7b773; background: #2d392c; }.character-card b, .character-card small { display: block; }.character-card small { margin-top: 3px; color: #aaa38f; font-size: 11px; }.character-name-label { margin-top: 8px !important; }.appearance-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 14px 0; padding: 9px; border: 1px solid #675c42; border-radius: 6px; }.appearance-picker legend { padding: 0 5px; color: #cdbb94; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }.appearance-option { display: grid; justify-items: center; gap: 3px; padding: 7px 3px; color: #dcd0b4; border: 1px solid #4d513d; border-radius: 4px; background: #172019; cursor: pointer; }.appearance-option img { width: 40px; height: 40px; image-rendering: pixelated; }.appearance-option b, .appearance-option small { display: block; font-size: 10px; }.appearance-option small { color: #a9a38e; font-size: 9px; }.appearance-option.is-selected { border-color: #d7b773; background: #39402d; box-shadow: inset 0 0 0 1px #d7b77355; }
#game-stage { position: relative; display: grid; place-items: center; width: 100vw; height: 100vh; overflow: hidden; isolation: isolate; background: #151d1c; }
canvas { box-shadow: 0 24px 80px #000a; image-rendering: pixelated; }
#game-stage .voxel-world-canvas { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; image-rendering: auto; box-shadow: none; pointer-events: none; }
#game-stage.voxel-ready > canvas:not(.voxel-world-canvas) { position: absolute; z-index: 1; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.voxel-interaction-hint { position: absolute; z-index: 14; left: 50%; bottom: 88px; transform: translateX(-50%); padding: 7px 12px; color: #fff1c4; border: 1px solid #b99d66; border-radius: 4px; background: #111a16e8; box-shadow: 0 5px 18px #0009; font: 600 13px Georgia, serif; pointer-events: none; }
#game-hud { pointer-events: none; position: absolute; inset: 18px 18px auto; display: grid; grid-template-columns: 270px minmax(250px, 360px) 1fr; gap: 12px; align-items: start; }
.hud-card, .panel, .dialogue-panel { background: linear-gradient(145deg, #1a2020eF, #101414ed); border: 1px solid #b99d66aa; box-shadow: 0 8px 28px #0009, inset 0 1px #fff1; backdrop-filter: blur(9px); }
.hud-card { border-radius: 6px; padding: 10px 12px; }
.player-card { display: flex; gap: 10px; align-items: center; }
.portrait { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #f0d493; border: 1px solid #d1b276; background: #443526; font-size: 20px; }
.player-card strong, .quest-card strong { display: block; letter-spacing: .02em; }
.player-card span, .hud-card small, .quest-card p { display: block; color: #c9c0ac; font-size: 12px; margin: 2px 0; }
.meter { width: 185px; height: 7px; overflow: hidden; margin: 5px 0 2px; border-radius: 999px; background: #3a2223; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #a22e36, #db6a58); transition: width .2s ease; }
.quest-card p { margin-bottom: 0; }
.controls-card { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 12px; color: #cec3ac; font-size: 11px; }
kbd { font: 600 10px ui-monospace, monospace; color: #f4e2b6; border: 1px solid #ae9568; border-bottom-width: 2px; border-radius: 3px; padding: 1px 4px; background: #252320; }
.eyebrow { display: block; color: #cba45d; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.quick-actions { position: absolute; z-index: 20; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; max-width: min(620px, calc(100vw - 36px)); }.inventory-toggle, .economy-toggle, .character-toggle, .quest-toggle, .map-toggle { position: static; padding: 10px 13px; color: #f4e2b6; border: 1px solid #b99d66; border-radius: 5px; box-shadow: 0 6px 20px #0008; cursor: pointer; }.inventory-toggle { background: #242018ee; }.economy-toggle { background: linear-gradient(#405040, #1b291f); }.character-toggle { color: #e8d7b1; border-color: #8d7250; background: #2e2920e8; }.quest-toggle { color: #ead9b5; border-color: #9b7657; background: #31251fe8; }.map-toggle { color: #cfe1d7; border-color: #628b79; background: #1d3028e8; }.character-toggle:hover, .quest-toggle:hover, .map-toggle:hover, .economy-toggle:hover { filter: brightness(1.2); }
.pause-toggle { position: absolute; z-index: 10; left: 18px; bottom: 18px; padding: 8px 10px; color: #d8d0bc; border: 1px solid #6d6554; border-radius: 5px; background: #1d211ee8; box-shadow: 0 6px 20px #0008; cursor: pointer; font-size: 11px; }.pause-toggle:hover { filter: brightness(1.2); }
.logout-button { position: absolute; z-index: 10; right: 18px; top: 18px; padding: 6px 8px; color: #cdbf9e; border: 1px solid #665b44; border-radius: 4px; background: #171b19e8; cursor: pointer; font-size: 10px; }.logout-button:hover { color: #f0dfb4; border-color: #bb9f64; }
.inventory-toggle:hover, .action-button:hover, .icon-button:hover { filter: brightness(1.2); }
.panel { position: absolute; z-index: 20; inset: 50% auto auto 50%; width: min(800px, calc(100vw - 28px)); max-height: min(690px, calc(100vh - 28px)); transform: translate(-50%, -50%); padding: 18px; overflow: auto; border-radius: 8px; }
.is-hidden { display: none !important; }
.panel-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #6d5e42; padding-bottom: 12px; }
.panel-header h1 { font: 600 24px Georgia, serif; margin: 2px 0 0; }
.icon-button { width: 32px; height: 32px; color: #dec99c; background: #312821; border: 1px solid #876e43; border-radius: 4px; cursor: pointer; }
.inventory-summary { display: flex; gap: 18px; padding: 12px 0; color: #e7ce96; font-size: 13px; }
.inventory-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.inventory-layout h2 { margin: 0 0 7px; font: 600 17px Georgia, serif; }
.panel-help { color: #bfb49c; font-size: 12px; line-height: 1.35; margin: 0 0 10px; }
.inventory-grid { display: grid; grid-template-columns: repeat(4, minmax(52px, 1fr)); gap: 6px; }
.equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(72px, 1fr)); gap: 8px; }
.item-slot { position: relative; min-height: 57px; display: grid; place-items: center; color: #ead6ad; border: 1px solid #66583e; background: linear-gradient(135deg, #2a2925, #171b1b); border-radius: 4px; cursor: pointer; transition: transform .12s, border-color .12s, background .12s; }
.item-slot:hover, .item-slot:focus-visible { outline: none; border-color: #d7b773; transform: translateY(-1px); }
.item-slot.is-dragging { opacity: .45; }
.item-slot.is-drop-target { border-color: #86c66e; background: #2e4932; box-shadow: inset 0 0 0 1px #b2e99a; }
.item-slot[data-rarity="uncommon"] { border-color: #75a86c; }
.item-slot[data-rarity="rare"] { border-color: #5a82c4; }
.equipment-slot { min-height: 66px; background: linear-gradient(135deg, #31271f, #171b1b); }
.slot-label { color: #988866; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.item-icon { font-size: 26px; filter: drop-shadow(0 2px 2px #000); }
.item-slot b { position: absolute; right: 6px; bottom: 4px; font-size: 11px; color: #fff4d4; }
.action-button { margin-top: 10px; padding: 8px 11px; color: #f4e2b6; border: 1px solid #b99d66; border-radius: 4px; background: linear-gradient(#58452d, #302518); cursor: pointer; }
.action-button:disabled { opacity: .45; cursor: not-allowed; }
.item-tooltip { min-height: 98px; margin-top: 12px; padding: 10px; border-left: 2px solid #b99d66; color: #cfc5ad; background: #0d1112a8; font-size: 12px; }
.item-tooltip strong { display: block; color: #f4e2b6; font: 600 15px Georgia, serif; }
.item-tooltip p { margin: 7px 0; line-height: 1.35; }
.rarity { display: inline-block; margin-top: 2px; color: #b9b9b9; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.rarity.uncommon { color: #9ad282; }.rarity.rare { color: #8eaff0; }
.dialogue-panel { position: absolute; z-index: 18; left: 50%; bottom: 26px; width: min(640px, calc(100vw - 36px)); transform: translateX(-50%); padding: 15px 18px; border-radius: 7px; }
.dialogue-panel p { margin: 7px 0 2px; line-height: 1.45; color: #eee3cd; }
.dialogue-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.shop-stock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.shop-item { display: flex; justify-content: space-between; gap: 8px; padding: 7px; color: #e5d9bd; text-align: left; border: 1px solid #695d43; border-radius: 4px; background: #252923; cursor: pointer; }.shop-item:hover { border-color: #d5b774; background: #384033; }.shop-item b { color: #e1bd70; font-size: 11px; white-space: nowrap; }
.economy-panel { width: min(1050px, calc(100vw - 28px)); }
.economy-panel section { margin-top: 18px; }.economy-panel h2 { margin: 0 0 8px; font: 600 18px Georgia, serif; color: #e8d6ad; }
.economy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 8px; }
.economy-card { padding: 10px; min-height: 150px; border: 1px solid #5f553e; border-radius: 5px; background: linear-gradient(150deg, #252a24, #151917); }.economy-card.locked { opacity: .62; border-style: dashed; }.economy-card.compact { min-height: 118px; }.economy-card h3 { margin: 4px 0; color: #f0dfb5; font: 600 16px Georgia, serif; }.economy-card p { min-height: 29px; margin: 5px 0; color: #beb6a4; font-size: 11px; line-height: 1.35; }
.economy-card ul, .cargo-ledger ul { padding: 0; margin: 7px 0; list-style: none; }.requirement { display: flex; justify-content: space-between; gap: 6px; color: #b98888; font-size: 11px; }.requirement.met { color: #a9d294; }.requirement b { font-weight: 600; }
.minor-button { padding: 5px 7px; color: #e7d8b5; border: 1px solid #766644; border-radius: 3px; background: #2a2e27; cursor: pointer; font-size: 11px; }.minor-button:hover { border-color: #ddbd75; background: #414837; }.button-row { display: flex; flex-wrap: wrap; gap: 5px; }
.cargo-ledger, .market-ledger { margin-top: 10px; padding: 9px; border-left: 2px solid #b99d66; background: #111614a8; }.cargo-ledger li, .market-ledger div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 12px; }.market-ledger { margin: 0; }.market-ledger b { color: #dfbd73; }.event-button { margin-top: 7px; color: #e9af8f; }
.economy-bottom { display: grid; grid-template-columns: 1fr minmax(250px, .9fr); gap: 16px; }.profession-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 7px 0; border-bottom: 1px solid #403d31; color: #e4d8bd; font-size: 12px; }.profession-row small { grid-column: 1 / -1; color: #a9a492; }
.quest-panel { width: min(700px, calc(100vw - 28px)); }.quest-list { display: grid; gap: 8px; margin-top: 14px; }.quest-entry { padding: 11px; border-left: 2px solid #665b45; background: #141917; }.quest-entry.active { border-color: #bd9b5b; }.quest-entry.ready { border-color: #83bd72; }.quest-entry.turned_in { opacity: .6; }.quest-entry h3 { margin: 3px 0; font: 600 17px Georgia, serif; color: #f0dfb7; }.quest-entry p { margin: 5px 0; color: #bcb5a4; font-size: 12px; }.quest-entry div { display: flex; justify-content: space-between; color: #d8bb7b; font-size: 11px; }
.character-panel { width: min(570px, calc(100vw - 28px)); }.character-sheet-section { margin-top: 18px; }.character-sheet-section h2 { margin: 0 0 8px; color: #ead8ad; font: 600 18px Georgia, serif; }.character-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }.character-stats div, .character-gear { display: flex; justify-content: space-between; gap: 10px; padding: 9px; border: 1px solid #514a38; background: #141916; color: #c5bda9; font-size: 12px; }.character-stats b, .character-gear b { color: #f0d69b; font-weight: 600; }.character-equipment { display: grid; gap: 6px; }
.map-panel { width: min(620px, calc(100vw - 28px)); }.map-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }.map-node { display: flex; gap: 9px; align-items: center; min-height: 52px; padding: 9px; border: 1px solid #403f35; background: #131816; color: #77776d; }.map-node > span { color: #6a6c63; font-size: 18px; }.map-node b, .map-node small { display: block; }.map-node b { font: 600 14px Georgia, serif; }.map-node small { margin-top: 2px; font-size: 10px; }.map-node.known { color: #d7d1bb; border-color: #586957; background: #1a241f; }.map-node.known > span { color: #9bc38f; }.map-node.current { border-color: #d5b56c; box-shadow: inset 0 0 0 1px #d5b56c66; }.map-node.current > span { color: #f0cb78; }
.pause-panel { width: min(440px, calc(100vw - 28px)); }.settings-row { display: grid; grid-template-columns: 1fr 180px; gap: 14px; align-items: center; padding: 12px 0; color: #d7ccb2; border-top: 1px solid #4b493d; border-bottom: 1px solid #4b493d; font-size: 12px; }.settings-row input { accent-color: #cda664; }.control-reference { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 14px 0; color: #c2b9a4; font-size: 11px; }
.toast-region { position: absolute; z-index: 50; right: 18px; bottom: 70px; display: grid; justify-items: end; gap: 7px; pointer-events: none; }
.toast { margin: 0; max-width: 290px; padding: 8px 11px; color: #e9e4d5; border: 1px solid #59645a; background: #16201bdd; box-shadow: 0 4px 14px #0008; border-radius: 4px; font-size: 12px; animation: toast-in .2s ease-out; }.toast.error { border-color: #b45b57; background: #351a1add; }.toast.success { border-color: #81b86c; background: #1a2a1add; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 740px) { #game-hud { inset: 8px; grid-template-columns: 1fr auto; gap: 7px; }.quest-card { display: none; }.controls-card { display: none; }.player-card { max-width: 230px; }.panel { padding: 14px; }.inventory-layout, .economy-bottom { grid-template-columns: 1fr; }.inventory-grid { grid-template-columns: repeat(4, minmax(44px, 1fr)); gap: 6px; }.equipment-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }.shop-stock, .map-list { grid-template-columns: 1fr; }.dialogue-panel { bottom: 10px; }.inventory-toggle { right: 10px; bottom: 10px; }.economy-toggle { right: 108px; bottom: 10px; }.quest-toggle { right: 215px; bottom: 10px; }.map-toggle { left: 10px; right: auto; bottom: 50px; }.character-toggle { left: 102px; right: auto; bottom: 50px; }.pause-toggle { left: 10px; bottom: 10px; }.settings-row { grid-template-columns: 1fr; gap: 6px; }.character-stats { grid-template-columns: 1fr; }.logout-button { right: 8px; top: 8px; }.economy-grid { grid-template-columns: 1fr; } }
