@font-face { font-family: "Basin Pixel"; src: url("vendor/basin-pixel.ttf") format("truetype"); font-weight: 100 900; font-display: block; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #b59b73; color: #f5f0db; font-family: "Basin Pixel", monospace; font-size: 20px; font-weight: normal; }
button, input, select { font: inherit; } button { cursor: pointer; border: 0; border-radius: 0; } button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #a5d8d9; outline-offset: 4px; }
.hidden { display: none!important; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip-path: inset(50%)!important; white-space: nowrap!important; border: 0!important; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
#vignette { pointer-events: none; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 48%, #271b1230); }
#sun-glare {position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,#fffce499,#fff1b844 40%,transparent 80%);opacity:0;z-index:1;}
#hud{z-index:2;}
#build-status{position:absolute;top:62%;left:50%;transform:translateX(-50%);font-size:20px;color:#cfe3bb;}
.screen { position: absolute; inset: 0; display: flex; align-items: center; background: #101411a6; z-index: 20; }
.eyebrow { font-size: 16px; letter-spacing: 2px; color: #d0bf94; }
#title-screen { background: linear-gradient(90deg, #1f1e16db, #2a25197a 35%, transparent 70%); }
#title-brand { margin-left: 8%; padding-bottom: 20px; }
#title-new-button { width: 245px; }
h1 { font-size: clamp(72px, 9vw, 126px); line-height: .9; letter-spacing: -3px; margin: 24px 0; color: #f5edd7; font-weight: normal; text-shadow: 3px 3px #26291f; }
h1 span { display: block; font-size: .4em; color: #ddb47d; margin: 10px 0; }
#title-tagline { font-size: 25px; line-height: 1.3; }
#title-rule { height: 2px; background: #baa482; width: 48px; margin: 22px 0; }
#title-description { font-size: 18px; line-height: 1.5; color: #d2c4aa; }
.primary { background: #e3bd83; color: #25271c; padding: 15px 18px; min-width: 245px; display: flex; justify-content: space-between; align-items: center; font-size: 19px; letter-spacing: 1px; margin-top: 22px; text-align: left; }
.primary:hover { background: #f3d39f; } .primary span { font-size: 26px; }
.text-button { display: block; background: none; color: #dfcfb6; font-size: 17px; padding: 16px 0 5px; }
.text-button:hover { color: white; }
#title-controls { font-size: 15px; color: #b3a58c; line-height: 1.6; margin-top: 18px; }
#title-aside { position: absolute; bottom: 28px; right: 4%; text-align: right; display: grid; gap: 10px; font-size: 14px; letter-spacing: 1px; }
#loading-label { position: absolute; right: 4%; top: 26px; font-size: 14px; }
/* Bare, icon-led HUD. Only the twelve individual blocks have a fill. */
#hud { position: absolute; inset: 0; pointer-events: none; text-shadow: 2px 2px #22291fcc; }
#hud-top { position: absolute; left: 26px; right: 26px; top: 25px; display: flex; justify-content: space-between; font-size: 18px; }
#seed-label { font-size: 13px; color: #d3c7aa; margin-left: 8px; }
#compass { position: absolute; top: 23px; left: 50%; transform: translateX(-50%); width: 224px; text-align: center; font-size: 20px; }
#compass-ticks { height: 11px; margin: 7px 0; background: repeating-linear-gradient(90deg, transparent 0 19px, #eee3c899 19px 21px); border-bottom: 1px solid #eee3c866; }
#objective-direction { display: block; font-size: 16px; color: #e7d2a8; }
#objective { position: absolute; top: 94px; left: 26px; max-width: 310px; }
#objective .eyebrow { font-size: 14px; color: #d8c99e; }
#objective p { font-size: 20px; margin: 9px 0 5px; }
#objective-distance { font-size: 16px; color: #dccba6; }
#crosshair { position: absolute; top: 50%; left: 50%; height: 3px; width: 3px; background: #faf2db99; transform: translate(-50%,-50%); }
#interact { position: absolute; top: 57%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-size: 22px; max-width: 90%; text-align: center; }
kbd { font-family: inherit; font-size: inherit; border-bottom: 2px solid #e0d9c1; padding: 3px 5px; }
#status-label { position: absolute; bottom: 202px; left: 27px; font-size: 15px; color: #eee2c4; }
#vitals { position: absolute; bottom: 28px; left: 28px; display: flex; gap: 18px; align-items: end; }
.vital { width: 28px; display: flex; flex-direction: column; align-items: center; gap: 13px; background: none; border: 0; padding: 0; }
.gauge-stack { width: 22px; height: 132px; display: flex; flex-direction: column-reverse; gap: 3px; }
.gauge-segment { display: block; width: 22px; height: 8px; flex: 1; background: #21292055; border: 1px solid #dedfc247; box-shadow: 1px 1px #1c261d55; }
.gauge-segment.lit { background: var(--gauge-color,#ddd7b7); border: 0; box-shadow: inset 0 2px #ffffff36, inset 0 -2px #00000026, 1px 1px #101b1a66; }
.gauge-icon { display: block; width: 24px; height: 24px; color: #eee4c8; filter: drop-shadow(2px 2px #1b261dbb); }
.gauge-icon svg { display: block; width: 100%; height: 100%; }
.vital.danger .gauge-icon { color: #edab86; }
#toast { position: absolute; bottom: 31%; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(610px,85vw); text-align: center; font-size: 20px; line-height: 1.5; color: #fff2d7; opacity: 0; transition: opacity .2s; }
#toast.visible { opacity: 1; }
/* PSX menu sheet: black negative space, white rules, and a torn teal wash. */
.panel { position: relative; isolation: isolate; margin: auto; width: 480px; max-width: 94%; padding: 32px; background: #05090af2; border-top: 3px solid #d7d9d3; border-bottom: 3px solid #b8c9c5; max-height: 92vh; overflow: auto; text-shadow: 2px 2px #000; scrollbar-width: thin; scrollbar-color: #818f8b #0d181b; }
.panel::before { content: none; }
.panel h2 { font-size: 38px; letter-spacing: 2px; font-weight: normal; margin: 15px 0 18px; }
.panel p { font-size: 19px; line-height: 1.45; color: #c7d0ca; }
.panel .primary { width: 100%; }
.secondary { display: block; width: 100%; background: transparent; border-bottom: 2px solid #bfc9c4; color: #e8ecdf; font-size: 20px; padding: 10px 7px; margin-top: 10px; text-align: left; text-shadow: 2px 2px #000; }
.secondary:hover:not(:disabled), .secondary:focus-visible { color: #b7edef; border-color: #b7edef; background: #3a737c30; }
.secondary:disabled { color: #71817d; border-color: #3b504d; cursor: default; }
#temperature-unit-label, #resolution-label, #sensitivity-label { display: flex; align-items: center; justify-content: space-between; font-size: 18px; margin-top: 24px; gap: 12px; }
select { background: #101c1c; color: #d9e9dc; border: 0; border-bottom: 2px solid #96b9b5; padding: 7px 4px; font-size: 17px; }
input { accent-color: #a1d1d0; width: 140px; }
#pause-help { font-size: 16px; margin-top: 26px; }
#pack-panel { width: 1020px; padding: 27px 32px; }
.close-button { position: absolute; top: 19px; right: 19px; padding: 0 8px 5px; background: none; border-bottom: 2px solid #d8e2d7; color: #e7eee1; font-size: 30px; }
#inventory-heading { display: flex; align-items: center; justify-content: space-between; padding-right: 34px; border-bottom: 3px solid #e2e4dc; }
#inventory-heading .eyebrow { font-size: 15px; letter-spacing: 1px; color: #91b9bb; }
#inventory-heading h2 { font-size: 35px; letter-spacing: 3px; margin: 11px 0 12px; }
#inventory-capacity { font-size: 17px; color: #dae2ce; white-space: nowrap; }
#pack-mission { font-size: 17px; line-height: 1.35; margin: 13px 0; min-height: 26px; }
#inventory-condition { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; padding: 11px 0; margin-bottom: 17px; border-top: 1px solid #537978; border-bottom: 1px solid #537978; }
#inventory-condition > div { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: #aec6c1; }
#inventory-condition b { display: block; font-size: 17px; color: #ecebdd; font-weight: normal; margin-top: 4px; }
.condition-icon { width: 21px; height: 21px; flex-shrink: 0; color: #dbe2ca; } .condition-icon svg { width: 100%; height: 100%; }
#inventory-layout { display: grid; grid-template-columns: minmax(0,1fr) 273px; gap: 24px; }
#pack-items { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 9px; }
.inventory-slot { position: relative; min-width: 0; min-height: 121px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 4px; color: #e7e6d7; background: transparent; border-top: 1px solid #66847d55; border-bottom: 2px solid #66847d55; text-shadow: 2px 2px #000; }
.inventory-slot.selected { color: #f6f4e5; background: linear-gradient(150deg, #71b9b64d, transparent 75%); border-color: #e9ede1; }
.inventory-slot.selected::before { content: "→"; position: absolute; left: 1px; top: 50%; transform: translateY(-50%); color: #eaf1dd; font-size: 23px; }
.inventory-slot:hover { border-color: #aad9d2; }
.slot-icon { width: 48px; height: 48px; } .slot-icon svg, #inventory-icon svg { width: 100%; height: 100%; filter: drop-shadow(3px 3px #000); }
.slot-name { font-size: 15px; text-align: center; line-height: 1.1; } .slot-amount { font-size: 14px; text-align: center; color: #a8c9bf; }
.inventory-slot.missing .slot-icon { opacity: .23; filter: grayscale(1); } .inventory-slot.missing .slot-amount { color: #6d8882; }
.equipped-tag { position: absolute; top: 4px; right: 6px; color: #9ddfc5; font-size: 17px; }
.inventory-slot.empty { opacity: .28; } .inventory-slot.empty span { font-size: 28px; } .inventory-slot.empty small { font-size: 13px; }
#inventory-detail { padding: 10px 0 10px 20px; border-left: 2px solid #729d9766; }
#inventory-category { font-size: 14px; color: #9ec2bc; }
#inventory-icon { width: 64px; height: 64px; float: right; margin: 14px 0 10px 12px; }
#inventory-name { font-size: 24px; font-weight: normal; line-height: 1.2; margin: 17px 0 7px; }
#inventory-quantity { font-size: 18px; font-weight: normal; color: #b2d2bc; }
#inventory-description { font-size: 17px; line-height: 1.4; color: #d0d8ce; clear: both; margin-top: 17px; }
#inventory-use { font-size: 18px; margin-top: 17px; padding: 10px 0; border-top: 2px solid #bdcec2; text-align: center; }
#inventory-feedback { color: #b4dfd4; font-size: 15px; margin: 13px 0 0; }
#pack-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 11px; }
#pack-actions .secondary { font-size: 16px; text-align: center; padding: 7px 2px; }
#field-guide { margin-top: 18px; } #field-guide summary { color: #b9d3c8; font-size: 17px; cursor: pointer; }
#survival-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 4px; }
#survival-notes p { font-size: 16px; } #survival-notes b { display: block; color: #9dd6d2; font-weight: normal; margin-bottom: 5px; font-size: 19px; }
.pack-controls { border-top: 1px solid #5c7774; padding-top: 13px; font-size: 14px!important; color: #97b4ae!important; margin-bottom: 0; line-height: 1.5!important; }
#end-stats { font-size: 19px; line-height: 1.8; color: #b9d8bd; }
#error-screen { position: absolute; inset: 0; z-index: 99; background: #101814; color: #ead6b4; padding: 10%; font-size: 25px; line-height: 1.6; }
@media(max-width:900px) {
  #hud-top { font-size: 15px; } #seed-label { display: none; } #compass { width: 180px; font-size: 18px; } #objective-direction { font-size: 14px; }
  #pack-panel { padding: 22px; } #inventory-layout { grid-template-columns: minmax(0,1fr) 236px; gap: 16px; }
  #inventory-condition { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; } #inventory-heading h2 { font-size: 30px; }
  .slot-name { font-size: 13px; } .slot-amount { font-size: 13px; } #inventory-description { font-size: 16px; }
}
@media(max-width:700px) {
  #hud-top { top: 17px; left: 18px; right: 18px; font-size: 14px; } #clock-label, #location-label { max-width: 30%; } #compass { top: 15px; width: 155px; font-size: 17px; }
  #objective { top: 89px; left: 18px; max-width: 245px; } #objective p { font-size: 18px; } #objective-distance { font-size: 14px; }
  #vitals { left: 20px; bottom: 22px; gap: 13px; } .gauge-stack { height: 118px; width: 20px; } .gauge-segment { width: 20px; } .vital { width: 24px; }
  #status-label { bottom: 182px; left: 20px; font-size: 13px; } #interact, #toast { font-size: 18px; }
  #title-brand { margin-left: 7%; } #title-aside { font-size: 11px; }
  #inventory-layout { grid-template-columns: minmax(0,1fr) 205px; gap: 14px; } #pack-items { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .inventory-slot { min-height: 105px; } .slot-icon { width: 40px; height: 40px; } #inventory-detail { padding-left: 14px; } #inventory-name { font-size: 21px; }
  #inventory-heading .eyebrow { font-size: 12px; } #inventory-capacity { font-size: 13px; } #pack-actions { grid-template-columns: 1fr 1fr; }
}
@media(max-width:520px) {
  #inventory-layout { grid-template-columns: 1fr; } #pack-items { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #inventory-detail { border-left: 0; border-top: 1px solid #729d97; padding: 15px 0; } #inventory-condition { gap: 10px; }
  #inventory-heading { padding-right: 25px; } #inventory-capacity { font-size: 11px; } .slot-name, .slot-amount { font-size: 12px; }
  #temperature-unit-label, #resolution-label, #sensitivity-label { font-size: 15px; } select { font-size: 14px; }
}
@media(max-height:650px) {
  #title-brand { padding: 0; } h1 { font-size: 72px; margin: 15px 0; } h1 span { margin: 7px 0; }
  #title-tagline { font-size: 21px; } #title-description { font-size: 16px; } #title-rule { margin: 15px 0; }
  .primary { margin-top: 15px; padding: 12px 16px; } #title-controls { margin-top: 12px; font-size: 13px; }
  .panel { padding: 24px; }
}
/* The pack is a compact, fixed four-column item grid with one action row. */
#pack-panel { width: 570px; padding: 22px; }
#inventory-heading { padding-right: 33px; }
#inventory-heading h2 { font-size: 30px; margin: 4px 0 13px; }
#inventory-capacity { font-size: 17px; }
#inventory-condition { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 14px 0; gap: 9px 12px; padding: 9px 0; }
#inventory-condition > div { justify-content: center; gap: 8px; }
#inventory-condition b { margin: 0; font-size: 16px; }
#inventory-layout { display: block; max-width: 356px; margin: 0 auto; }
#pack-items { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.inventory-slot { aspect-ratio: 1; min-height: 0; padding: 6px; border: 1px solid #c4cbb059; background: #171d1744; justify-content: space-between; gap: 3px; }
.inventory-slot.selected { background: #7e857333; border: 2px solid #edead3; padding: 5px; }
.inventory-slot.selected::before { content: none; }
.inventory-slot.empty { opacity: .42; background: #080e09; }
.slot-icon { width: 42px; height: 42px; margin: auto; }
.slot-amount { align-self: end; font-size: 13px; }
#inventory-detail { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 0; margin-top: 16px; border: 0; border-top: 1px solid #aebbaa88; }
#inventory-name { font-size: 21px; margin: 0 0 4px; }
#inventory-quantity { font-size: 16px; }
#inventory-use { width: 145px; flex-shrink: 0; border-top: 0; font-size: 18px; margin: 0; }
#pack-tabs{display:flex;gap:18px;margin:13px 0;}
#pack-tabs button{background:none;color:#81968b;font-size:18px;padding:4px 10px;border-bottom:2px solid transparent;}
#pack-tabs button.active{color:#efe9cf;border-color:#ded7b9;}
#recipe-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
#inventory-layout{max-height:350px;overflow-y:auto;padding-right:7px;scrollbar-width:thin;scrollbar-color:#818f8b #0d181b;}
.recipe em{display:block;font-style:normal;font-size:13px;color:#dbc68e;margin-top:8px;line-height:1.35;}
.recipe-station{display:block;font-weight:normal;font-size:12px;color:#9ab8ae;margin-top:8px;}
#recipe-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 15px;}
#recipe-filters button{font-size:14px;background:transparent;color:#94a08b;border-bottom:1px solid #54624d;padding:6px 8px;}
#recipe-filters button.active{color:#eee2bb;border-color:#eee2bb;}
.recipe{padding:15px 10px;text-align:left;background:#141d17;border:1px solid #89957a;color:#e5dfc5;font-size:18px;}
.recipe small{display:block;margin-top:10px;font-size:13px;line-height:1.5;color:#a9bba1;}
.recipe:disabled{opacity:.45;cursor:default;}
.recipe.selected{border-color:#efe8c9;background:#273228;}
#storage-panel{border-top:1px solid #758575;margin-top:16px;}
#storage-panel h3{font-size:21px;font-weight:normal;}
#storage-items{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.storage-slot{background:#15201a;color:#d6dbb7;border:1px solid #697a61;padding:10px;font-size:16px;}
.storage-slot svg{display:block;width:40px;height:40px;margin:auto;}
@media(max-width:520px) {
  #pack-panel { padding: 17px; } #inventory-layout { max-width: 320px; }
  #inventory-heading h2 { font-size: 25px; } #inventory-capacity { font-size: 14px; }
  #inventory-condition b { font-size: 14px; } .slot-icon { width: 34px; height: 34px; }
  .slot-amount { font-size: 11px; } #inventory-name { font-size: 18px; } #inventory-use { width: 116px; }
}
