* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1026; color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; overscroll-behavior: none;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; position: fixed; inset: 0; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20;
  background: radial-gradient(ellipse at 30% 20%, #4a2a7a 0%, #1a1240 45%, #05030f 100%); overflow-y: auto; padding: 12px; }
.panel { width: min(420px, 94vw); background: rgba(10,14,40,.75); border: 1px solid rgba(160,140,255,.35); border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); text-align: center; }
h1 { margin: 0; font-size: 34px; letter-spacing: 6px; font-weight: 900; background: linear-gradient(90deg,#9be7ff,#c79bff,#ff9bd2); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 span { margin-left: 10px; }
.sub { margin: 4px 0 12px; opacity: .8; font-size: 14px; }
label, .label { display: block; text-align: left; font-size: 13px; opacity: .85; margin: 8px 0 4px; }
input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font-size: 17px; border-radius: 10px; border: 1px solid #556; background: #0d1230; color: #fff; user-select: text; -webkit-user-select: text; }
#colors { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 4px 0 12px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.sw.sel { border-color: #fff; box-shadow: 0 0 0 2px #000 inset; }
.hint { font-size: 11px; opacity: .65; margin: 10px 0 0; line-height: 1.4; }
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none;
  --sl: max(12px, env(safe-area-inset-left)); --sr: max(12px, env(safe-area-inset-right));
  --st: max(8px, env(safe-area-inset-top)); --sb: max(10px, env(safe-area-inset-bottom)); }
#tl { position: absolute; top: var(--st); left: var(--sl); }
#tr { position: absolute; top: var(--st); right: var(--sr); display: flex; gap: 6px; align-items: center; }
#inv { display: flex; gap: 6px; }
.slot { background: rgba(10,6,24,.5); padding: 4px 10px; border-radius: 10px; font-size: 16px; min-width: 62px; border: 1px solid rgba(180,150,255,.2); }
#status { background: rgba(10,6,24,.5); padding: 5px 9px; border-radius: 10px; font-size: 12px; border: 1px solid rgba(180,150,255,.2); }
#online { color: #5f5; } #online.off { color: #f55; }
.mini { pointer-events: auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(180,150,255,.35); background: rgba(10,6,24,.5); color: #fff; font-size: 18px; }
#prompt { position: absolute; left: 50%; bottom: calc(var(--sb) + 8px); transform: translateX(-50%); background: rgba(10,6,24,.6); padding: 5px 14px; border-radius: 20px; font-size: 13px; white-space: nowrap; }
#toasts { position: absolute; left: 50%; top: 16%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.toast { background: rgba(30,16,60,.8); padding: 5px 14px; border-radius: 14px; font-size: 14px; animation: fade 2.2s forwards; }
@keyframes fade { 0% { opacity: 0; transform: translateY(8px); } 10%,70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
/* floating joystick: appears where the left thumb lands */
#stick { position: absolute; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; left: calc(var(--sl) + 85px); top: calc(100% - var(--sb) - 85px);
  background: rgba(255,255,255,.10); border: 2px solid rgba(255,255,255,.28); transition: opacity .15s; }
#stick.idle { opacity: .35; }
#stick.sprint { border-color: #ffcf6a; box-shadow: 0 0 14px rgba(255,207,106,.6); }
#knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.55); }
#actions { position: absolute; right: var(--sr); bottom: var(--sb); width: 230px; height: 200px; }
.btn { position: absolute; pointer-events: auto; width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(220,200,255,.45); background: rgba(16,8,36,.45);
  color: #fff; font-size: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: none; padding: 0; line-height: 1; }
.btn small { font-size: 9px; letter-spacing: 1px; margin-top: 2px; }
.btn.down { background: rgba(255,255,255,.3); }
.btn.on { background: rgba(255,207,106,.45); border-color: #ffcf6a; }
.btn.empty { opacity: .35; border-style: dashed; }
.btn.big { width: 84px; height: 84px; font-size: 30px; right: 0; bottom: 0; }
#btnAttack { width: 92px; height: 92px; font-size: 34px; border-color: rgba(255,140,120,.75); background: rgba(70,12,24,.5); }
#btnAttack.cool { border-color: rgba(255,140,120,.3); }
#btnJump { right: 102px; bottom: 4px; width: 64px; height: 64px; }
#btnSprint { right: 176px; bottom: 8px; width: 54px; height: 54px; }
#btnCrouch { right: 2px; bottom: 102px; width: 56px; height: 56px; }
#btnGather { right: 76px; bottom: 82px; width: 62px; height: 62px; }
#btnBuild { right: 150px; bottom: 78px; width: 48px; height: 48px; }
#btnUse { right: 62px; bottom: 154px; width: 48px; height: 48px; }
#target { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); text-align: center; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px #000; transition: opacity .3s; }
#target.hidden { display: block; opacity: 0; }
#targetBar { width: 140px; height: 7px; margin-top: 3px; border-radius: 4px; background: rgba(0,0,0,.5); overflow: hidden; border: 1px solid rgba(255,255,255,.3); }
#targetFill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg,#ff6a5a,#ffcf6a); transition: width .15s; }
#banner { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); background: #a33; padding: 6px 14px; border-radius: 8px; }
#settings { z-index: 30; background: rgba(5,3,15,.7); }
#settings h2 { margin: 0 0 8px; letter-spacing: 3px; }
#settings input[type=range] { width: 100%; padding: 0; }
label.row { display: flex; gap: 8px; align-items: center; } label.row input { width: auto; margin: 0; }
#closeSettings, #play { width: 100%; padding: 11px; font-size: 18px; font-weight: 800; letter-spacing: 3px; border: 0; border-radius: 12px; color: #120a2a; background: linear-gradient(90deg,#7af7ff,#c79bff); cursor: pointer; margin-top: 10px; }
#rotate { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  #rotate { display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 50; font-size: 18px;
    background: radial-gradient(ellipse at 50% 30%, #3a2a7a, #070a1c); }
  #rotate .phone { font-size: 64px; animation: rot 1.8s ease-in-out infinite; }
}
/* iPhone (no orientation lock): held upright, the whole game is drawn rotated 90deg clockwise
   (orient.js sets html.rot + --ow/--oh = innerWidth/innerHeight). Fixed children of #root lay out
   inside the rotated box. Screen top (notch) = game left, screen bottom (home bar) = game right. */
html.rot #root { position: fixed; left: 0; top: 0; width: var(--oh, 100vh); height: var(--ow, 100vw); overflow: hidden;
  transform-origin: 0 0; transform: translateX(var(--ow, 100vw)) rotate(90deg); }
html.rot #rotate { display: none !important; }
html.rot #hud { --sl: max(12px, env(safe-area-inset-top)); --sr: max(12px, env(safe-area-inset-bottom));
  --st: max(8px, env(safe-area-inset-right)); --sb: max(10px, env(safe-area-inset-left)); }
html.rot .screen { padding: 12px max(12px, env(safe-area-inset-bottom)) 12px max(12px, env(safe-area-inset-top)); }
html.rot .panel { max-height: calc(var(--ow, 100vw) - 24px); overflow-y: auto; }
html.rot .panel { width: min(420px, calc(var(--oh, 100vh) * .94)); padding: 10px 16px; }
html.rot h1 { font-size: 26px; } html.rot .sub, html.rot .hint { display: none; } html.rot .sw { width: 28px; height: 28px; }
html.rot input { padding: 7px 10px; } html.rot #play { padding: 9px; } html.rot .pick { margin: 2px 0 6px; }
html.rot .pick .opt:not(.sw) { padding: 6px 0; } html.rot .label { margin: 2px 0 !important; }
@keyframes rot { 0%,20% { transform: rotate(0); } 60%,100% { transform: rotate(-90deg); } }
@media (max-height: 420px) { .panel { padding: 10px 16px; } h1 { font-size: 26px; } .sub { margin-bottom: 4px; } .hint { display: none; } .sw { width: 28px; height: 28px; } input { padding: 7px 10px; } #play { padding: 9px; } }

.loadpanel .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; margin: 16px 0 8px; }
#loadbar { height: 100%; width: 0; background: linear-gradient(90deg,#7af7ff,#c79bff); transition: width .25s; }
#loadmsg { font-size: 13px; opacity: .75; }
#loading { z-index: 40; } #fatal { z-index: 60; }
select { display: block; width: 100%; margin-top: 4px; padding: 8px; font-size: 15px; border-radius: 10px; border: 1px solid #556; background: #0d1230; color: #fff; }
#fatal button { width: 100%; padding: 11px; font-size: 18px; font-weight: 800; border: 0; border-radius: 12px; background: linear-gradient(90deg,#7af7ff,#c79bff); color: #120a2a; }
#debug { position: absolute; left: var(--sl); top: calc(var(--st) + 40px); background: rgba(0,0,0,.6); font: 11px/1.35 ui-monospace, Menlo, monospace; padding: 6px 8px; border-radius: 8px; min-width: 190px; }
#debug div { display: flex; justify-content: space-between; gap: 10px; } #debug .bad { color: #ff6b6b; }
/* cheap color grading: vignette overlay (no post-processing pass) */
#vignette { position: fixed; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 55%, rgba(8,4,20,.55) 100%); }
.pick { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 4px 0 10px; }
.pick .opt:not(.sw) { flex: 1; padding: 9px 0; border-radius: 12px; border: 2px solid rgba(160,140,255,.35); background: rgba(255,255,255,.06); color: #eee; font: 600 15px system-ui, sans-serif; cursor: pointer; }
.pick .opt.sel:not(.sw) { border-color: #fff; background: rgba(160,140,255,.3); }
.pick .sw { padding: 0; }
.row2 { display: flex; gap: 14px; justify-content: center; }
@media (max-height: 420px) { .pick { margin: 2px 0 6px; } .pick .opt:not(.sw) { padding: 6px 0; } .label { margin: 2px 0 !important; } .panel { max-height: 96vh; overflow-y: auto; } .sub { display: none; } }
/* full-screen map (map.js): drawn on one 2D canvas, only while open */
#mapUI { position: absolute; inset: 0; pointer-events: auto; background: #0c2646; touch-action: none; }
#mapCanvas { position: absolute; left: 0; top: 0; touch-action: none; }
#hud.mapopen > *:not(#mapUI):not(#tr) { display: none !important; }
.mini.maptab { width: auto; padding: 0 9px; display: flex; align-items: center; gap: 4px; font-size: 16px; }
.mini.maptab small { font-size: 10px; letter-spacing: 1px; font-weight: 700; }
.mini.on { background: rgba(255,207,106,.45); border-color: #ffcf6a; }
#mapClose { position: absolute; left: var(--sl); top: var(--st); width: 40px; height: 40px; font-size: 20px; }
#mapCoord { position: absolute; left: calc(var(--sl) + 50px); top: calc(var(--st) + 8px); font: 700 12px ui-monospace, Menlo, monospace; letter-spacing: 1px; background: rgba(10,6,24,.55); padding: 5px 9px; border-radius: 9px; pointer-events: none; }
#mapTools { position: absolute; right: var(--sr); bottom: var(--sb); display: flex; flex-direction: column; gap: 8px; }
#mapTools .mini { width: 44px; height: 44px; font-size: 22px; }
#mapHint { position: absolute; left: 50%; bottom: calc(var(--sb) + 2px); transform: translateX(-50%); font-size: 11px; opacity: .7; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px #000; }

/* sleigh: SLEIGH tab (top bar), riding HUD: altitude slider (driver), GET OFF, speed/height readout */
.mini.maptab.glow { border-color: #ff5a4a; box-shadow: 0 0 12px rgba(255,90,74,.75); background: rgba(150,20,30,.55); }
.mini.maptab.dim { opacity: .45; }
#sleighUI { display: none; }
#hud.riding #sleighUI { display: block; }
#hud.riding #actions, #hud.riding #prompt { display: none !important; }
#btnGetOff { position: absolute; right: calc(var(--sr) + 6px); bottom: calc(var(--sb) + 6px); width: 74px; height: 74px; font-size: 26px; border-color: rgba(255,140,120,.75); background: rgba(70,12,24,.55); }
#sleighInfo { position: absolute; left: 50%; bottom: calc(var(--sb) + 8px); transform: translateX(-50%); background: rgba(10,6,24,.6); padding: 5px 14px; border-radius: 20px; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#altBox { display: none; position: absolute; right: calc(var(--sr) + 18px); top: calc(var(--st) + 54px); bottom: calc(var(--sb) + 96px); width: 58px; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
#hud.driving #altBox { display: flex; }
#altBox b { font-size: 9px; letter-spacing: 1px; text-shadow: 0 1px 2px #000; }
#altTrack { position: relative; flex: 1; width: 46px; border-radius: 23px; background: rgba(16,8,36,.5); border: 2px solid rgba(220,200,255,.45); pointer-events: auto; touch-action: none; overflow: hidden; }
#altFill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(120,200,255,.25), rgba(170,225,255,.55)); }
#altThumb { position: absolute; left: 3px; right: 3px; height: 14px; margin-bottom: -7px; border-radius: 7px; background: #fff; box-shadow: 0 0 8px rgba(160,220,255,.9); }
#altVal { font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }

/* ---- hunting / survival ---- */
#inv .slot.extra { min-width: 0; padding: 3px 7px; font-size: 14px; }
#inv { flex-wrap: wrap; max-width: 300px; }
#food { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; }
#foodBar { width: 112px; height: 8px; border-radius: 5px; background: rgba(10,6,24,.55); border: 1px solid rgba(255,220,170,.25); overflow: hidden; }
#foodFill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #e8913a, #f6c35b); transition: width .4s; }
#food.low #foodFill { background: #e0453a; } #food.low span { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
#firePanel { position: absolute; left: 50%; bottom: calc(var(--sb) + 6px); transform: translateX(-50%); pointer-events: auto; background: rgba(18,10,8,.72); border: 1px solid rgba(255,170,90,.4); border-radius: 14px; padding: 7px 10px 8px; min-width: 250px; text-align: center; font-size: 12px; }
#firePanel .fhead { font-size: 13px; } #fireInfo { opacity: .8; font-size: 11px; margin-left: 4px; }
#fireQueue { margin: 3px 0; opacity: .9; }
#fireBar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin: 0 4px 6px; } #fireFill { display: block; height: 100%; width: 0; background: #ffb347; transition: width .25s linear; }
#firePanel .frow { display: flex; gap: 8px; justify-content: center; }
#firePanel .pill { pointer-events: auto; border: 1.5px solid rgba(255,200,140,.55); background: rgba(60,26,10,.6); color: #fff; border-radius: 12px; padding: 4px 10px; font-size: 17px; display: flex; flex-direction: column; align-items: center; min-width: 64px; }
#firePanel .pill small { font-size: 9px; letter-spacing: 1px; margin-top: 1px; }
#firePanel .pill.dim { opacity: .4; }
#hud.riding #firePanel { display: none !important; }

/* ---- inventory + crafting (ARK-style), hotbar ---- */
#hud.invopen > *:not(#invUI):not(#toasts) { display: none !important; }
#invUI { position: absolute; inset: 0; pointer-events: auto; background: rgba(9,7,22,.93); display: flex; flex-direction: column;
  padding: var(--st) var(--sr) var(--sb) var(--sl); gap: 6px; touch-action: none; font-size: 12px; }
#invUI .ihead { display: flex; align-items: center; gap: 10px; } #invUI .ihead b { font-size: 14px; letter-spacing: 2px; }
#wBar { position: relative; flex: 1; max-width: 260px; height: 16px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(180,150,255,.3); overflow: hidden; }
#wFill { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#6ad08a,#cfe46a); } #wBar.heavy #wFill { background: linear-gradient(90deg,#e0a040,#ff5a4a); }
#wTxt { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 15px; } #wTxt::before { content: '⚖ '; }
#invClose { margin-left: auto; }
#invUI .icols { flex: 1; display: flex; gap: 8px; min-height: 0; }
#invUI .ipane { background: rgba(255,255,255,.04); border: 1px solid rgba(180,150,255,.18); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 5px; min-height: 0; }
#invPane { width: 292px; flex: none; } #craftPane { flex: 1; min-width: 0; }
.scrolly { overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#wearRow { display: flex; gap: 4px; } #wearRow .tile { opacity: .45; } #wearRow .tile.on { opacity: 1; border-color: #c99b5f; background: rgba(120,80,40,.35); }
#invGrid { display: grid; grid-template-columns: repeat(5, 52px); grid-auto-rows: 52px; gap: 4px; align-content: start; flex: 1; min-height: 0; }
.tile { position: relative; width: 52px; height: 52px; border-radius: 9px; background: rgba(20,14,44,.8); border: 1.5px solid rgba(180,150,255,.22); display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; }
.tile .ic { font-size: 24px; line-height: 1; } .tile em { position: absolute; right: 4px; bottom: 2px; font-style: normal; font-weight: 700; font-size: 11px; text-shadow: 0 1px 2px #000; }
.tile s { position: absolute; left: 4px; top: 2px; text-decoration: none; font-size: 8px; opacity: .55; }
.tile.sel { border-color: #ffcf6a; box-shadow: 0 0 0 1px #ffcf6a inset; } .tile.held { background: rgba(255,207,106,.22); }
.tile .dur, .hb .dur { position: absolute; left: 5px; right: 5px; bottom: 4px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.55); overflow: hidden; }
.tile .dur b, .hb .dur b { display: block; height: 100%; background: #7fe07a; }
#itemInfo { min-height: 56px; font-size: 11px; line-height: 1.3; } #itemInfo p { margin: 2px 0 4px; opacity: .8; } .dim { opacity: .6; } .empty { opacity: .6; grid-column: 1 / -1; }
#catTabs { display: flex; gap: 4px; } .tab { flex: 1; pointer-events: auto; border: 1px solid rgba(180,150,255,.3); background: rgba(20,14,44,.7); color: #fff; border-radius: 9px; padding: 3px 0; font-size: 16px; display: flex; flex-direction: column; align-items: center; }
.tab small { font-size: 8px; letter-spacing: 1px; margin-top: 1px; } .tab.on { background: rgba(255,207,106,.3); border-color: #ffcf6a; }
#craftPane .crow { flex: 1; display: flex; gap: 8px; min-height: 0; }
#recGrid { display: grid; grid-template-columns: repeat(4, 56px); grid-auto-rows: 58px; gap: 4px; align-content: start; flex: none; }
#recGrid .tile { width: 56px; height: 58px; opacity: .55; } #recGrid .tile.ok { opacity: 1; border-color: rgba(120,230,140,.6); } #recGrid .tile.sel { opacity: 1; border-color: #ffcf6a; }
#recGrid .tile small { font-size: 8px; text-align: center; line-height: 1; margin-top: 3px; max-width: 52px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#recGrid .tile u { position: absolute; right: 3px; top: 2px; text-decoration: none; font-size: 8px; font-weight: 700; padding: 0 3px; border-radius: 4px; background: #8a7a3a; } #recGrid .tile u.wood { background: #7a4f2a; }
#recDetail { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
#rdHead b { font-size: 14px; } #rdHead p { margin: 2px 0; opacity: .75; font-size: 11px; }
#rdCost > div { display: flex; justify-content: space-between; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.05); margin-bottom: 2px; }
#rdCost .ok b { color: #8ff09a; } #rdCost .no b { color: #ff7a6a; }
.rdBtns { display: flex; gap: 6px; }
.cbtn { pointer-events: auto; border: 0; border-radius: 10px; padding: 7px 14px; font-weight: 800; letter-spacing: 1px; color: #1a0d00; background: linear-gradient(#ffd77a,#f0a93a); font-size: 13px; }
.cbtn.alt { padding: 7px 10px; background: linear-gradient(#cdb8ff,#9a7ff0); } .cbtn:disabled { opacity: .35; }
#rdBtns .cbtn { flex: 1; } #craft1 { flex: 1; }
#craftQueue { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.qrow { display: flex; align-items: center; gap: 6px; } .qrow > span { font-size: 16px; width: 20px; }
.qbar { flex: 1; height: 8px; border-radius: 4px; background: rgba(0,0,0,.5); overflow: hidden; } .qbar i { display: block; height: 100%; background: linear-gradient(90deg,#ffcf6a,#ff9a40); }
.qx { pointer-events: auto; width: 24px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,140,120,.5); background: rgba(70,12,24,.5); color: #fff; font-size: 11px; padding: 0; }
#hotbar { position: absolute; left: 50%; bottom: var(--sb); transform: translateX(-50%); display: flex; gap: 4px; pointer-events: auto; }
.hb { position: relative; width: 44px; height: 44px; border-radius: 9px; background: rgba(10,6,24,.5); border: 1.5px solid rgba(180,150,255,.3); display: flex; align-items: center; justify-content: center; touch-action: none; }
.hb .ic { font-size: 22px; } .hb small { position: absolute; left: 3px; top: 1px; font-size: 8px; opacity: .6; } .hb.on { border-color: #ffcf6a; background: rgba(255,207,106,.3); } .hb.empty { opacity: .45; }
#prompt { bottom: calc(var(--sb) + 56px); }
#craftChip { position: absolute; left: 50%; bottom: calc(var(--sb) + 50px); transform: translateX(-50%) translateX(140px); display: flex; align-items: center; gap: 5px; background: rgba(10,6,24,.6); padding: 3px 8px; border-radius: 10px; font-size: 14px; }
#ccBar { width: 50px; height: 6px; border-radius: 3px; background: rgba(0,0,0,.5); overflow: hidden; } #ccFill { display: block; height: 100%; width: 0; background: #ffcf6a; } #ccN { font-size: 10px; opacity: .8; }
#hud.riding #hotbar, #hud.riding #craftChip, #hud.mapopen #hotbar { display: none !important; }
#firePanel { bottom: calc(var(--sb) + 52px); }
@media (max-width: 700px) { html:not(.rot) #invPane { width: 236px; } html:not(.rot) #invGrid { grid-template-columns: repeat(4, 52px); } html:not(.rot) #recGrid { grid-template-columns: repeat(3, 56px); } }
@media (max-height: 700px) { html.rot #invPane { width: 236px; } html.rot #invGrid { grid-template-columns: repeat(4, 52px); } html.rot #recGrid { grid-template-columns: repeat(3, 56px); } }
