.wilds-view {
  --wilds-mono: var(--mono, 'SFMono-Regular', Consolas, monospace);
  --wilds-ink: #dce6c9;
  --wilds-panel: #14271ded;
  --wilds-border: #abc18742;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  color: #35533d;
  font-family: var(--wilds-mono);
}
.wilds-view [hidden] { display: none !important; }
.wilds-toolbar, .wilds-world-info { display: flex; align-items: center; gap: 12px; }
.wilds-toolbar { justify-content: space-between; margin-bottom: 10px; }
.wilds-toolbar-actions { display: flex; gap: 7px; align-items: center; }
.wilds-sound { width: 34px; min-height: 34px; padding: 7px; border: 1px solid #9dab85; border-radius: 4px; background: #e8eddc; color: #35533d; font: 14px var(--wilds-mono); cursor: pointer; }
.wilds-sound[data-muted='true'] { color: #929980; text-decoration: line-through; }
.wilds-world-info { flex-wrap: wrap; gap: 5px 16px; font-size: 9px; letter-spacing: .4px; }
.wilds-save-status { color: #7b8464; }
.wilds-open-inventory, .wilds-close-inventory {
  padding: 10px 12px;
  border: 1px solid #9dab85;
  border-radius: 4px;
  background: #e8eddc;
  color: #35533d;
  font: 10px var(--wilds-mono);
  white-space: nowrap;
  cursor: pointer;
}
.wilds-board { position: relative; isolation: isolate; overflow: hidden; border: 2px solid #51644b; border-radius: 7px; background: #20322b; box-shadow: 0 4px 0 #2c42231a; }
.wilds-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; min-height: 320px; background: #8daec0; outline: none; touch-action: none; }
.wilds-canvas:focus-visible { box-shadow: inset 0 0 0 3px #e9d792; }
.wilds-hud { position: absolute; inset: 15px auto auto 15px; display: flex; gap: 8px; pointer-events: none; }
.wilds-vital, .wilds-day { position: relative; padding: 9px 10px 11px; border: 1px solid var(--wilds-border); border-radius: 3px; background: var(--wilds-panel); box-shadow: 0 2px 0 #08120d55; color: var(--wilds-ink); }
.wilds-vital { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; width: 98px; }
.wilds-vital > span { font-size: 7px; letter-spacing: .8px; line-height: 14px; }
.wilds-vital > b { font-size: 12px; font-weight: 500; }
.wilds-vital-track { position: absolute; bottom: 4px; left: 9px; right: 9px; height: 3px; background: #ffffff19; }
.wilds-vital-track > i { display: block; height: 100%; background: #9ed293; }
.wilds-hunger .wilds-vital-track > i { background: #dec586; }
.wilds-vital[data-urgent='true'] { border-color: #e8886c; }
.wilds-vital[data-urgent='true'] .wilds-vital-track > i { background: #eb9c7d; }
.wilds-day { display: flex; flex-direction: column; gap: 4px; min-width: 119px; padding-block: 7px; }
.wilds-day > b { font-size: 9px; font-weight: 500; letter-spacing: .8px; }
.wilds-day > span { color: #adbe99; font-size: 7px; }
.wilds-view[data-night='true'] .wilds-day { border-color: #9cafd47a; }
.wilds-view[data-night='true'] .wilds-day > span { color: #bfd0ee; }
.wilds-compass { position: absolute; top: 15px; right: 15px; padding: 8px 10px; border: 1px solid var(--wilds-border); border-radius: 3px; background: var(--wilds-panel); color: #cfddbf; font-size: 9px; pointer-events: none; }
.wilds-crosshair { position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; transform: translate(-50%, -50%); filter: drop-shadow(0 1px 1px #10241c); pointer-events: none; }
.wilds-crosshair::before, .wilds-crosshair::after { content: ''; position: absolute; background: #f7f4d8df; }
.wilds-crosshair::before { width: 1px; height: 15px; left: 7px; }
.wilds-crosshair::after { width: 15px; height: 1px; top: 7px; }
.wilds-aim-hint { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); max-width: calc(100% - 34px); width: max-content; padding: 9px 12px; border: 1px solid #d9d1a34f; border-radius: 3px; background: #172b23dc; color: #e0dfb5; font-size: 9px; line-height: 1.5; text-align: center; pointer-events: none; }
.wilds-target { position: absolute; top: calc(50% + 26px); left: 50%; transform: translateX(-50%); min-width: 125px; max-width: 260px; padding: 7px 11px; border: 1px solid #b4c69038; border-radius: 3px; background: #13281ed4; color: #e5ebcf; text-align: center; font-size: 9px; pointer-events: none; }
.wilds-mining-track { height: 3px; margin-top: 7px; background: #ffffff20; }
.wilds-mining-track > i { display: block; height: 100%; background: #edcd91; }
.wilds-hotbar { position: absolute; bottom: 15px; left: 50%; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; transform: translateX(-50%); width: min(480px, calc(100% - 24px)); padding: 5px; border: 1px solid #b5c59655; border-radius: 4px; background: #14271ddc; box-shadow: 0 3px 8px #07191038; }
.wilds-slot { position: relative; height: 49px; padding: 5px; border: 1px solid #78926d55; border-radius: 2px; background: #203a2985; color: #e3e8c9; cursor: pointer; }
.wilds-slot:hover { background: #43604688; }
.wilds-slot[aria-pressed='true'] { background: #8c945157; border-color: #ead591; box-shadow: inset 0 0 0 1px #ead5914f; }
.wilds-slot-key { position: absolute; top: 4px; left: 5px; font: 8px var(--wilds-mono); color: #b3c399; }
.wilds-slot[aria-pressed='true'] .wilds-slot-key { color: #ead591; }
.wilds-slot-art { display: block; width: 32px; height: 32px; margin: 2px auto; }
.wilds-item-icon { width: 32px; height: 32px; display: block; filter: drop-shadow(1px 2px 0 #07170b70); }
.wilds-slot-count { position: absolute; bottom: 5px; right: 5px; font: 9px var(--wilds-mono); text-shadow: 1px 1px #11261b; }
.wilds-durability { display: block; position: absolute; left: 0; bottom: 0; height: 2px; max-width: 100%; background: #91c58a; }
.wilds-selected-name { position: absolute; bottom: 83px; left: 50%; transform: translateX(-50%); padding: 4px 8px; background: #173125ab; color: #e0e7c9; font-size: 9px; text-shadow: 1px 1px #0e2119; pointer-events: none; }
.wilds-objective { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 11px; padding: 12px 14px; margin-top: 10px; border: 1px solid #b3bea0; border-radius: 4px; background: #e9eddc; }
.wilds-objective > b { font-size: 8px; letter-spacing: .8px; color: #727d4f; font-weight: 500; }
.wilds-objective > span { font-size: 10px; line-height: 1.6; }
.wilds-status { margin: 10px 0 0; min-height: 17px; color: #677249; font-size: 10px; line-height: 1.7; }
.wilds-controls-hint { margin: 8px 0 0; color: #718060; font-size: 9px; line-height: 1.9; }
.wilds-field-guide { margin-top: 12px; padding: 10px 12px; border: 1px solid #bec9ac; border-radius: 4px; background: #f1f3e9; font-size: 10px; line-height: 1.8; }
.wilds-field-guide > summary { cursor: pointer; color: #4f6a41; }
.wilds-field-guide > p { margin: 10px 0 0; color: #6c795e; }
.wilds-overlay, .wilds-inventory { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 25px; background: #0b1b17aa; backdrop-filter: blur(3px); }
.wilds-overlay-card { width: min(430px, 100%); max-height: 100%; overflow-y: auto; padding: 25px; border: 1px solid #b5c4967a; border-radius: 5px; background: #1b3228f2; color: #dbe5c6; box-shadow: 0 8px 0 #07170f44; }
.wilds-overlay-tag { color: #a5bb83; font-size: 8px; letter-spacing: 1.2px; }
.wilds-overlay-card > h3 { margin: 13px 0 10px; color: #efeed1; font: 21px var(--wilds-mono); font-weight: 500; line-height: 1.3; }
.wilds-overlay-card > p { margin: 0 0 18px; color: #bdccae; font-size: 11px; line-height: 1.9; }
.wilds-overlay-actions { display: flex; flex-direction: column; gap: 10px; }
.wilds-overlay-actions > button { padding: 13px 16px; border: 1px solid #b9c692; border-radius: 3px; background: #dbe4b9; color: #203d2c; font: 11px var(--wilds-mono); cursor: pointer; }
.wilds-overlay-actions > .wilds-new-world { border-color: #879a72; background: #263e2f; color: #ceddb6; }
.wilds-seed-field { margin-top: 5px; color: #9caf8b; font-size: 8px; letter-spacing: .8px; }
.wilds-seed { display: block; width: 100%; box-sizing: border-box; padding: 11px 10px; margin-top: 7px; border: 1px solid #839873; border-radius: 3px; background: #11261b; color: #e2e9ce; font: 10px var(--wilds-mono); }
.wilds-seed::placeholder { color: #819678; opacity: 1; }
.wilds-inventory { z-index: 7; padding: 22px; }
.wilds-inventory-card { width: min(770px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 20px; border: 1px solid #b5c4967a; border-radius: 5px; background: #1b3228f5; color: #dbe5c6; box-shadow: 0 8px 0 #07170f44; scrollbar-color: #78906a #1a3025; }
.wilds-inventory-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wilds-inventory-header > h3 { margin: 0; font-size: 18px; font-weight: 500; color: #e8edce; }
.wilds-close-inventory { min-height: 36px; padding: 8px 10px; border-color: #78966b; background: #233c2c; color: #d4dfb9; font-size: 9px; }
.wilds-inventory-note { margin: 12px 0; font-size: 10px; line-height: 1.8; color: #a8be97; }
.wilds-inventory-summary { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #a0b17b3d; }
.wilds-pack-item { display: flex; align-items: center; gap: 5px; padding: 4px 7px; min-height: 32px; border: 1px solid #83986c3d; border-radius: 2px; background: #122a1d; color: #d4dfb9; font: 9px var(--wilds-mono); cursor: pointer; }
.wilds-pack-item[aria-pressed='true'] { border-color: #d2c58d; background: #384932; }
.wilds-pack-item > .wilds-item-icon { width: 22px; height: 22px; }
.wilds-pack-empty { color: #b9c9a6; font-size: 10px; line-height: 1.7; }
.wilds-pack-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.wilds-pack-selected { font-size: 8px; color: #afc297; letter-spacing: .5px; }
.wilds-discard { padding: 8px 10px; border: 1px solid #aa967d66; border-radius: 3px; background: #403f2e; color: #dac7a0; font: 9px var(--wilds-mono); cursor: pointer; }
.wilds-discard:disabled { opacity: .45; cursor: default; }
.wilds-recipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.wilds-recipe { display: grid; grid-template-columns: 32px minmax(0, 1fr); position: relative; align-items: center; gap: 10px; padding: 10px 11px 26px; min-height: 82px; border: 1px solid #93ad74; border-radius: 3px; background: #29432f; color: #e5ecd1; font: 10px var(--wilds-mono); text-align: left; cursor: pointer; }
.wilds-recipe:disabled { opacity: .65; border-color: #83916e55; background: #192e22; cursor: default; }
.wilds-recipe:not(:disabled):hover { background: #38533a; border-color: #cad79e; }
.wilds-recipe-detail { display: flex; flex-direction: column; gap: 6px; }
.wilds-recipe-detail > b { font-size: 10px; font-weight: 500; }
.wilds-recipe-cost { color: #aabb93; font-size: 8px; line-height: 1.5; }
.wilds-recipe-availability { position: absolute; bottom: 8px; left: 53px; right: 8px; overflow: hidden; font-size: 7px; color: #e1d393; text-overflow: ellipsis; white-space: nowrap; }
.wilds-recipe:disabled .wilds-recipe-availability { color: #adbaa2; }
.wilds-craft-status { min-height: 14px; margin: 12px 0 0; color: #e8d397; font-size: 10px; line-height: 1.7; }
.wilds-view button:focus-visible, .wilds-view input:focus-visible, .wilds-view summary:focus-visible { outline: 2px solid #dcaf69; outline-offset: 3px; }
@media (max-width: 700px) {
  .wilds-hud { inset: 10px auto auto 10px; gap: 5px; }
  .wilds-vital { width: 82px; padding-inline: 7px; }
  .wilds-vital > span { font-size: 6px; }
  .wilds-vital > b { font-size: 11px; }
  .wilds-day { min-width: 96px; padding-inline: 7px; }
  .wilds-day > b { font-size: 8px; }
  .wilds-day > span { font-size: 6px; }
  .wilds-compass { top: 62px; right: 10px; font-size: 7px; }
  .wilds-world-info { font-size: 8px; }
  .wilds-open-inventory { font-size: 8px; padding: 9px; }
  .wilds-overlay, .wilds-inventory { padding: 14px; }
  .wilds-overlay-card, .wilds-inventory-card { padding: 16px; }
  .wilds-overlay-card > h3 { font-size: 18px; }
  .wilds-inventory-header > h3 { font-size: 15px; }
  .wilds-recipes { grid-template-columns: 1fr; }
  .wilds-recipe { min-height: 75px; }
}
@media (max-width: 430px) {
  .wilds-canvas { min-height: 360px; }
  .wilds-hud { inset: 8px 8px auto; display: grid; grid-template-columns: .8fr .8fr 1.1fr; gap: 3px; }
  .wilds-vital { width: auto; min-width: 0; gap: 0 4px; padding-inline: 5px; }
  .wilds-vital > span { letter-spacing: .3px; }
  .wilds-vital-track { left: 5px; right: 5px; }
  .wilds-day { min-width: 0; padding-inline: 6px; }
  .wilds-hotbar { gap: 2px; bottom: 10px; padding: 3px; }
  .wilds-slot { height: 40px; padding: 2px; }
  .wilds-slot-art, .wilds-slot-art > .wilds-item-icon { width: 25px; height: 25px; }
  .wilds-slot-key { top: 2px; left: 3px; font-size: 7px; }
  .wilds-slot-count { bottom: 3px; right: 3px; font-size: 8px; }
  .wilds-selected-name { bottom: 64px; font-size: 8px; }
  .wilds-aim-hint { top: 25%; font-size: 8px; }
  .wilds-inventory-header { align-items: flex-start; }
  .wilds-close-inventory { white-space: normal; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .wilds-overlay, .wilds-inventory { backdrop-filter: none; }
}
