:root { --ink: #f5f6fa; --dim: #9aa1b5; --line: rgba(255,255,255,.12); --y: #ffd21f; --g: #48ff7a; --b: #3ad0ff; --r: #ff5a4e; --glass: rgba(10,12,20,.62); --disp: Unbounded, "Avenir Next", "Arial Black", system-ui, sans-serif; --text: Rubik, "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif; --ease: cubic-bezier(.2,.8,.2,1); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #05060a; font: 400 16px/1.45 var(--text); color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
h1, h2, h3 { font-family: var(--disp); font-weight: 900; margin: 0; letter-spacing: -.01em; line-height: 1; }
h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 18px; color: #fff; }
.kicker { font-family: var(--disp); font-weight: 700; font-size: 11px; letter-spacing: .5em; color: var(--dim); margin-bottom: 14px; }

/* ---------- screens and panels ---------- */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,.25), rgba(0,0,0,.6)); z-index: 20; animation: fadeIn .3s var(--ease); }
#loading { background: #05060a; }
.panel { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -20px rgba(0,0,0,.8); padding: 30px 34px; min-width: 340px; max-width: 92vw; max-height: 92vh; overflow: auto; text-align: center; animation: popIn .45s var(--ease); }
.panel.wide { min-width: 560px; }
@keyframes popIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }
.logo { font-size: clamp(44px, 7vw, 76px); color: #fff; letter-spacing: -.02em; text-shadow: 0 10px 40px rgba(255,210,31,.25); }
.logo::after { content: ""; display: block; width: 120px; height: 3px; margin: 14px auto 18px; background: linear-gradient(90deg, transparent, var(--y), transparent); }
.btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.btns > * { animation: popIn .5s var(--ease) both; }
.btns > *:nth-child(2) { animation-delay: 60ms; } .btns > *:nth-child(3) { animation-delay: 120ms; } .btns > *:nth-child(4) { animation-delay: 180ms; } .btns > *:nth-child(5) { animation-delay: 240ms; } .btns > *:nth-child(6) { animation-delay: 300ms; } .btns > *:nth-child(7) { animation-delay: 360ms; } .btns > *:nth-child(8) { animation-delay: 420ms; } .btns > *:nth-child(9) { animation-delay: 480ms; } .btns > *:nth-child(10) { animation-delay: 540ms; }
.btns.horiz { flex-direction: row; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
button { font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; height: 48px; padding: 0 22px; border-radius: 48px; border: 0; background: rgba(255,255,255,.08); color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
button:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; }
button.big { height: 58px; font-size: 15px; font-weight: 900; background: var(--y); color: #05060a; box-shadow: 0 10px 30px -8px var(--y); }
button.big:hover { background: #ffdc4a; }
button.small { height: 38px; font-size: 11px; padding: 0 16px; color: var(--dim); }
.hint { font-size: 14px; color: var(--dim); line-height: 1.4; }
textarea, input { font: inherit; color: var(--ink); background: rgba(0,0,0,.35); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; padding: 10px 12px; }
textarea { width: 100%; min-height: 110px; font: 13px/1.3 ui-monospace, Menlo, monospace; resize: none; }
input:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--y); }
.error { color: var(--r); font-weight: 600; min-height: 22px; margin-top: 6px; }
.bar { width: 320px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin: 14px auto; }
#loadbar { height: 100%; width: 0%; background: var(--y); transition: width .15s; }
#loadtext { font-family: var(--disp); font-size: 11px; letter-spacing: .3em; color: var(--dim); text-transform: uppercase; }
.bigtext { font-family: var(--disp); font-size: clamp(36px, 7vw, 72px); font-weight: 900; color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,.6); }
#faint { background: rgba(5,6,10,.9); }
#win { background: radial-gradient(ellipse at 50% 40%, rgba(255,210,31,.35), rgba(5,6,10,.85)); }
.code { font-family: var(--disp); font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: .18em; color: var(--y); margin: 8px 0 12px; min-height: 56px; }

/* ---------- boot: gate, ident, title ---------- */
#boot { position: fixed; inset: 0; z-index: 60; color: #fff; font-family: var(--disp); transition: opacity .6s var(--ease); }
#boot.out { opacity: 0; pointer-events: none; }
#boot .gate, #boot .ident, #boot .title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#boot .gate { background: #05060a; cursor: pointer; transition: opacity .35s var(--ease); }
#boot .gate.out { opacity: 0; }
#boot .gmark { display: flex; gap: .3em; font-size: clamp(22px, 4vw, 40px); letter-spacing: .06em; opacity: .9; }
#boot .gtap { margin-top: 30px; font-size: 12px; letter-spacing: .5em; color: var(--dim); animation: pulse 1.6s ease-in-out infinite; }
#boot .ident { background: #05060a; gap: 18px; animation: bootIdent 2.9s var(--ease) forwards; }
#boot .lab { display: flex; gap: .32em; font-size: clamp(34px, 7vw, 84px); letter-spacing: .06em; line-height: 1; }
#boot .lab i, #boot .gmark i { display: inline-block; font-style: normal; }
#boot .lab i { animation: bootLetter .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
#boot .w1 i { font-weight: 900; }
#boot .w2 i { font-weight: 500; color: transparent; -webkit-text-stroke: 1.5px #fff; }
#boot .lab .w2 i { animation-delay: calc(var(--i) * 60ms + 450ms); }
#boot .rule { width: min(380px, 60vw); height: 2px; background: linear-gradient(90deg, transparent, var(--y), transparent); transform: scaleX(0); animation: bootRule 1s .8s var(--ease) forwards; }
#boot .pres { font-weight: 500; font-size: 11px; letter-spacing: .7em; color: rgba(255,255,255,.6); opacity: 0; animation: bootPres .6s 1.2s forwards; }
@keyframes bootLetter { from { opacity: 0; transform: translateY(40%) scale(.9); filter: blur(8px); } }
@keyframes bootRule { to { transform: scaleX(1); } }
@keyframes bootPres { to { opacity: 1; } }
@keyframes bootIdent { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }
#boot .title { animation: fadeIn .6s var(--ease); }
#boot .tshade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(0,0,0,0) 20%, rgba(0,0,0,.55) 100%), linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,.5)); }
#boot .tin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
#boot .tlabs { font-weight: 700; font-size: 11px; letter-spacing: .6em; color: rgba(255,255,255,.75); margin-bottom: 22px; animation: fadeIn 1s .3s both; }
#boot .tword { display: flex; gap: .04em; font-size: clamp(54px, 12vw, 150px); font-weight: 900; line-height: .95; letter-spacing: -.02em; color: #fff; text-shadow: 0 12px 0 rgba(0,0,0,.25), 0 30px 60px rgba(0,0,0,.6); }
#boot .tcraft { color: var(--y); }
#boot .tword i { display: inline-block; font-style: normal; animation: dropIn .7s cubic-bezier(.2,1.4,.3,1) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-120px) rotate(-6deg) scale(1.2); } 60% { transform: translateY(8px) rotate(1deg) scale(.98); } }
#boot .tsub { margin-top: 18px; font-weight: 500; font-size: 12px; letter-spacing: .5em; color: rgba(255,255,255,.8); animation: fadeIn 1s 1.2s both; }
#boot .start { margin-top: 44px; height: 54px; padding: 0 30px; display: inline-flex; align-items: center; border-radius: 54px; font-weight: 900; font-size: 14px; letter-spacing: .3em; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); animation: bootPulse 1.6s 2.2s ease-in-out infinite, fadeIn .5s 2.2s both; }
@keyframes bootPulse { 0%, 100% { opacity: 1; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), 0 0 0 0 rgba(255,210,31,0); } 50% { opacity: .6; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 0 40px 0 rgba(255,210,31,.3); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- dog maker ---------- */
.maker { display: flex; gap: 22px; align-items: flex-start; justify-content: center; text-align: left; }
#dogpreview { border-radius: 18px; background: #bfe3ff; box-shadow: inset 0 0 0 1px var(--line); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.row label { width: 80px; font-family: var(--disp); font-weight: 700; font-size: 11px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.row input { font-size: 18px; width: 220px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: transform .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.sel { outline: 3px solid var(--y); outline-offset: 2px; }
.choice { display: flex; gap: 6px; }
.choice button { height: 36px; font-size: 11px; padding: 0 14px; }
.choice button.sel { background: var(--y); color: #05060a; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-family: var(--text); }
#crosshair { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
#crosshair::before, #crosshair::after { content: ""; position: absolute; background: rgba(255,255,255,.9); box-shadow: 0 0 3px rgba(0,0,0,.8); border-radius: 2px; }
#crosshair::before { left: 9px; top: 0; width: 4px; height: 22px; }
#crosshair::after { top: 9px; left: 0; width: 22px; height: 4px; }
#topleft { position: absolute; left: 16px; top: 14px; display: flex; flex-direction: column; gap: 8px; }
#clock { background: var(--glass); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 8px 14px; font-family: var(--disp); font-weight: 700; font-size: 15px; letter-spacing: .06em; display: flex; gap: 10px; align-items: center; }
#clock-icon { font-size: 20px; }
#modebadge, #level { align-self: flex-start; border-radius: 12px; padding: 5px 12px; font-family: var(--disp); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; background: rgba(72,255,122,.18); color: var(--g); box-shadow: inset 0 0 0 1px rgba(72,255,122,.35); }
#modebadge.survival { background: rgba(255,90,78,.18); color: var(--r); box-shadow: inset 0 0 0 1px rgba(255,90,78,.35); }
#level { background: rgba(255,210,31,.16); color: var(--y); box-shadow: inset 0 0 0 1px rgba(255,210,31,.35); }
#hearts { position: absolute; left: 50%; bottom: 102px; transform: translateX(-50%); display: flex; gap: 3px; }
#hearts .heart { width: 30px; height: 30px; background-repeat: no-repeat; background-size: 30px 30px; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
#hearts .heart.empty { opacity: .25; filter: grayscale(1); }
#notify { position: absolute; left: 50%; top: 17%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; }
#notify .msg { background: var(--glass); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 10px 20px; font-size: 17px; font-weight: 600; color: #fff; animation: popIn .3s var(--ease); white-space: nowrap; }
#build { position: absolute; right: 16px; top: 14px; margin-top: 0; background: var(--glass); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; padding: 10px 14px; min-width: 230px; max-width: 300px; }
#jobs:not(.hidden) ~ #build { top: auto; bottom: 110px; }
#build .need { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; padding: 2px 0; } #build .need .ico { width: 28px; height: 28px; background-repeat: no-repeat; image-rendering: pixelated; flex: none; } #build .need i { font-style: normal; color: var(--dim); font-family: var(--disp); font-size: 11px; margin-left: 4px; }
.build-keys { font-family: var(--disp); font-size: 10px; letter-spacing: .15em; color: var(--dim); margin-top: 6px; text-transform: uppercase; }
.buildrow { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 8px; text-transform: none; letter-spacing: 0; font-family: var(--text); font-size: 15px; } .buildrow .bn { color: var(--dim); font-size: 12px; } .buildrow.sel { box-shadow: inset 0 0 0 2px var(--y); }
#craft-list { max-height: 58vh; overflow: auto; padding: 4px; } .trade .plus { color: var(--dim); font-family: var(--disp); } .trade .n i { font-style: normal; color: var(--dim); font-size: 11px; font-family: var(--disp); margin-left: 4px; }
#pops { position: absolute; left: 50%; bottom: 96px; width: 0; pointer-events: none; } .popitem { position: absolute; bottom: 0; transform: translateX(-50%); white-space: nowrap; display: flex; align-items: center; gap: 6px; font-family: var(--disp); font-weight: 700; font-size: 13px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.9); animation: popUp 1.1s var(--ease) forwards; } .popitem .ico { width: 28px; height: 28px; background-repeat: no-repeat; image-rendering: pixelated; }
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); } 30% { transform: translate(-50%, -10px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -54px) scale(.9); } }
.slot.bump { animation: slotBump .35s var(--ease); } @keyframes slotBump { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-10px) scale(1.18); } 100% { transform: translateY(0) scale(1); } } .slot.sel.bump { animation: slotBumpSel .35s var(--ease); } @keyframes slotBumpSel { 0% { transform: translateY(-4px) scale(1); } 35% { transform: translateY(-14px) scale(1.18); } 100% { transform: translateY(-4px) scale(1); } }
#sleepfade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 1.2s ease; z-index: 15; } #sleepfade.on { opacity: 1; }
#targetname { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); font-family: var(--disp); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); text-shadow: 0 2px 6px rgba(0,0,0,.9); }
#hotbar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 6px; background: var(--glass); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); padding: 6px; border-radius: 18px; pointer-events: auto; }
.slot { width: 62px; height: 62px; border-radius: 12px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); position: relative; display: flex; align-items: center; justify-content: center; transition: transform .15s var(--ease); }
.slot.sel { background: rgba(255,210,31,.18); box-shadow: inset 0 0 0 2px var(--y), 0 0 20px rgba(255,210,31,.35); transform: translateY(-4px); }
.slot .ico { width: 44px; height: 44px; background-repeat: no-repeat; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.slot .n { position: absolute; right: 5px; bottom: 3px; font-family: var(--disp); font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; }
.slot .k { position: absolute; left: 6px; top: 3px; font-family: var(--disp); font-size: 9px; font-weight: 700; color: var(--dim); }
#hint { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); background: var(--glass); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 8px 16px; font-size: 14px; color: var(--ink); }
#hurtflash { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,90,78,0) 40%, rgba(255,90,78,.55)); opacity: 0; transition: opacity .15s; }
#watertint { position: absolute; inset: 0; background: rgba(63,139,232,.35); display: none; }
#tutorial { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: var(--glass); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; padding: 10px 16px; display: flex; gap: 14px; align-items: center; max-width: 70vw; pointer-events: auto; transition: box-shadow .3s; }
#tutorial.done { box-shadow: inset 0 0 0 2px var(--g); }
#tut-num { font-family: var(--disp); font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--dim); white-space: nowrap; }
#tut-text { font-size: 16px; font-weight: 600; color: #fff; }
#tut-skip { height: 30px; font-size: 10px; padding: 0 12px; }
#jobs { position: absolute; right: 16px; top: 14px; background: var(--glass); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; padding: 10px 14px; min-width: 230px; max-width: 300px; }
.jobs-title { font-family: var(--disp); font-weight: 700; font-size: 10px; letter-spacing: .3em; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; }
.job { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 3px 0; color: #fff; }
.job-box { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); font-size: 12px; line-height: 18px; text-align: center; color: #05060a; flex: none; }
.job.done .job-box { background: var(--g); }
.job-text { flex: 1; } .job-n { font-family: var(--disp); color: var(--y); font-size: 11px; }
#compass { position: absolute; left: 50%; top: 110px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--glass); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 6px 14px; font-weight: 600; }
#compass-arrow { font-size: 28px; color: var(--y); transition: transform .15s; }
#kitehud { position: absolute; left: 16px; bottom: 110px; background: var(--glass); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 8px 16px; }
#kite-speed { font-family: var(--disp); font-weight: 900; font-size: 24px; color: #fff; }
#kite-rings { font-family: var(--disp); font-size: 10px; letter-spacing: .2em; color: var(--y); }
#approve { position: absolute; left: 50%; top: 150px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: var(--glass); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 2px var(--y); border-radius: 16px; padding: 10px 16px; pointer-events: auto; font-size: 17px; font-weight: 600; }
#approve button.big { height: 42px; font-size: 12px; padding: 0 18px; }

/* ---------- picker, chest, trade, friends ---------- */
#picker-grid, .grid { display: grid; grid-template-columns: repeat(auto-fill, 68px); gap: 8px; justify-content: center; max-height: 56vh; overflow: auto; padding: 6px; }
.grid { max-height: 26vh; min-height: 60px; }
.pick { width: 68px; height: 68px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: transform .15s var(--ease), background .15s; }
.pick:hover { background: rgba(255,210,31,.18); transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--y); }
.pick .ico { width: 44px; height: 44px; background-repeat: no-repeat; image-rendering: pixelated; }
.pick .n { position: absolute; right: 5px; bottom: 3px; font-family: var(--disp); font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; }
.keys { margin: 0 auto; font-size: 15px; text-align: left; border-collapse: collapse; }
.keys td { padding: 6px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.keys td:first-child { font-family: var(--disp); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--y); white-space: nowrap; }
.trade { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; margin-bottom: 8px; height: 56px; text-transform: none; letter-spacing: 0; font-family: var(--text); font-size: 15px; }
.trade .ico { width: 36px; height: 36px; background-repeat: no-repeat; image-rendering: pixelated; display: inline-block; }
.trade .arrow { font-family: var(--disp); color: var(--y); }
.trade.cant { opacity: .4; }
.friend { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; font-weight: 500; font-size: 16px; border-bottom: 1px solid var(--line); }
#friends-list { margin: 8px 0; text-align: left; }
#joinfriend .row { justify-content: center; margin-bottom: 10px; }
#join-friend-code { text-transform: uppercase; letter-spacing: .3em; font-family: var(--disp); font-weight: 700; }
#bm-wish { width: 100%; font-size: 18px; }
#blockmaker .row { margin-bottom: 8px; }
#bm-preview { image-rendering: pixelated; border-radius: 16px; margin: 10px auto 6px; display: block; background: #bfe3ff; box-shadow: inset 0 0 0 1px var(--line); }
.bm-name { font-family: var(--disp); font-size: 22px; font-weight: 900; color: var(--y); }

/* ---------- touch ---------- */
#touch { position: fixed; inset: 0; pointer-events: none; z-index: 12; }
#joy { position: absolute; left: 30px; bottom: 110px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); pointer-events: auto; }
#joy-knob { position: absolute; left: 45px; top: 45px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.85); }
#tbtns { position: absolute; right: 20px; bottom: 100px; display: grid; grid-template-columns: 84px 84px; gap: 10px; pointer-events: auto; }
#tmenu { position: absolute; right: 16px; top: 14px; display: flex; gap: 8px; pointer-events: auto; }
.tb { width: 84px; height: 84px; font-size: 11px; padding: 0; border-radius: 50%; background: rgba(10,12,20,.7); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.tb.big { background: var(--y); color: #05060a; }
.tb.small { width: auto; height: 40px; border-radius: 40px; padding: 0 14px; font-size: 10px; }
.tb.down { transform: translateY(3px); filter: brightness(.9); }

@media (max-width: 700px) {
  .logo { font-size: 38px; } .panel { padding: 18px; min-width: 280px; } .panel.wide { min-width: 0; } .maker { flex-direction: column; align-items: center; }
  #hotbar { gap: 3px; padding: 4px; } .slot { width: 36px; height: 36px; border-radius: 8px; } .slot .ico { width: 26px; height: 26px; } .slot .n { font-size: 10px; } .slot .k { display: none; }
  #hearts { bottom: 58px; left: 8px; transform: none; } #hearts .heart { width: 22px; height: 22px; background-size: 22px 22px; }
  #hint { display: none; } #tutorial { top: 58px; left: 8px; right: 8px; transform: none; max-width: none; padding: 6px 10px; gap: 8px; } #tut-text { font-size: 13px; } #tut-num { font-size: 9px; }
  #topleft { gap: 4px; } #clock { font-size: 12px; padding: 4px 8px; } #modebadge, #level { font-size: 9px; }
  #notify .msg { font-size: 14px; white-space: normal; max-width: 80vw; text-align: center; }
  #tbtns { right: 10px; bottom: 96px; grid-template-columns: 64px 64px; gap: 8px; } .tb { width: 64px; height: 64px; font-size: 10px; } #joy { left: 14px; bottom: 100px; width: 120px; height: 120px; } #joy-knob { left: 34px; top: 34px; } #tmenu { top: 8px; right: 8px; }
  #jobs { top: 60px; right: 8px; min-width: 0; max-width: 46vw; } .job { font-size: 12px; }
}
#pause .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#pause .btns > button.big { grid-column: 1 / -1; }
#pause .btns > button.small:last-child { grid-column: 1 / -1; }
@media (max-width: 700px) { #pause .btns { grid-template-columns: 1fr; } }
