@font-face { font-family: 'Lilita'; src: url('../assets/fonts/LilitaOne-Regular.ttf') format('truetype'); font-display: swap; }
:root { --cyan: #39ffe0; --pink: #ff2bd6; --bg: rgba(8, 10, 26, .72); --line: rgba(120, 140, 255, .35); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #070815; color: #e9ecff; font-family: system-ui, -apple-system, Segoe UI, sans-serif; -webkit-user-select: none; user-select: none; touch-action: none; }
#app { position: fixed; inset: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
h1, h2, h3 { font-family: 'Lilita', sans-serif; font-weight: normal; letter-spacing: .03em; margin: 0 0 8px; }
input { font: inherit; font-size: 17px; padding: 9px 11px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0, 0, 0, .45); color: #fff; outline: none; }
input:focus { border-color: var(--cyan); }

.screen { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: radial-gradient(ellipse at center, rgba(30, 10, 60, .45), rgba(4, 4, 14, .9)); overflow: auto; }
#join, #lobby { background: radial-gradient(ellipse at center, rgba(30, 10, 60, .25), rgba(4, 4, 14, .78)); }
.title { font-size: clamp(44px, 10vw, 92px); color: var(--cyan); text-shadow: 0 0 18px rgba(57, 255, 224, .8), 0 0 44px rgba(57, 255, 224, .4); margin: 0; }
.title span { color: var(--pink); text-shadow: 0 0 18px rgba(255, 43, 214, .8), 0 0 44px rgba(255, 43, 214, .4); }
.sub { color: #b9c0ff; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.bar { position: relative; height: 16px; border-radius: 8px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); overflow: hidden; }
#loading .bar { width: min(360px, 80vw); }
#loadfill { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--cyan)); transition: width .2s; }

.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 0 30px rgba(80, 60, 255, .25), inset 0 0 20px rgba(120, 140, 255, .08); backdrop-filter: blur(6px); width: min(400px, 94vw); }
.panel.wide { width: min(620px, 96vw); max-height: 92vh; overflow: auto; }
.panel label, .label { display: block; font-size: 13px; color: #aab2ff; text-transform: uppercase; letter-spacing: .1em; margin: 10px 0 6px; }
.panel label input { display: block; width: 100%; margin-top: 6px; }
.row { display: flex; gap: 8px; margin-top: 10px; }
.row input { flex: 1; text-transform: uppercase; letter-spacing: .3em; text-align: center; min-width: 0; }
.btn { font-family: 'Lilita', sans-serif; font-size: 17px; letter-spacing: .04em; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; padding: 9px 16px; cursor: pointer; transition: filter .1s, transform .08s; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(1) brightness(.6); cursor: default; }
.btn.hot { background: linear-gradient(135deg, #ff2bd6, #8b3bff); box-shadow: 0 0 16px rgba(255, 43, 214, .45); }
.btn.cool { background: linear-gradient(135deg, #1fd8ff, #3b5bff); box-shadow: 0 0 16px rgba(31, 216, 255, .4); }
.btn.dim { background: rgba(255, 255, 255, .08); }
.btn.big { font-size: 22px; padding: 12px 22px; width: 100%; margin-top: 14px; }
.btn.small { font-size: 13px; padding: 4px 10px; }
#create { flex: 1; }
#openrooms .room { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); margin-top: 6px; cursor: pointer; }
.note { margin-top: 8px; font-size: 13px; color: #aab2ff; text-align: center; }

#lobbylist .lp { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.teams button { font-family: 'Lilita', sans-serif; font-size: 16px; padding: 10px 4px; border-radius: 10px; border: 2px solid transparent; color: #08081a; cursor: pointer; }
.teams button.sel { border-color: #fff; box-shadow: 0 0 14px currentColor; }
.teams button:disabled { opacity: .3; cursor: default; }
.looks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.looks button { font-size: 11px; padding: 7px 2px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: #dfe3ff; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.looks button.sel { border-color: var(--cyan); background: rgba(57, 255, 224, .15); }
.how { margin-top: 12px; font-size: 14px; color: #cfd4ff; }
.how summary { cursor: pointer; color: var(--cyan); }
.how li { margin: 4px 0; }

/* hud */
#hud { position: absolute; top: env(safe-area-inset-top); right: env(safe-area-inset-right); bottom: env(safe-area-inset-bottom); left: env(safe-area-inset-left); pointer-events: none; z-index: 5; }
#hud .btn, #hud input, #panel, #touchui button, #chat { pointer-events: auto; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; }
#crosshair::before { content: ''; position: absolute; left: 19px; top: 19px; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; box-shadow: 0 0 6px rgba(57, 255, 224, .8); transition: transform .12s ease-out; }
#crosshair.kick::before { transform: scale(1.35); transition: none; }
#crosshair::after { content: ''; position: absolute; left: 29px; top: 29px; width: 2px; height: 2px; background: #fff; border-radius: 50%; }
#crosshair svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
#crosshair .heatbg { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3; opacity: 0; transition: opacity .3s; }
#crosshair.hot .heatbg { opacity: 1; }
#heatarc { fill: none; stroke: #39ffe0; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 151; filter: drop-shadow(0 0 3px currentColor); }
#crosshair.vent #heatarc { stroke: #ff3b4f; animation: ventpulse .25s infinite alternate; }
@keyframes ventpulse { from { opacity: 1; } to { opacity: .35; } }
#hitmark { stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0; }
#hitmark.show { animation: hitmark .22s ease-out; }
#hitmark.focus { stroke: #ffd23b; }
#hitmark.kill { stroke: #ff3b4f; stroke-width: 4; animation-duration: .45s; }
#hitmark.head { stroke: #ff3bd6; stroke-width: 4; animation-duration: .35s; }
#headtag { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); white-space: nowrap; font: 15px 'Lilita', sans-serif; letter-spacing: .1em; color: #ff3bd6; text-shadow: 0 0 8px #ff3bd6, 0 2px 0 #000; opacity: 0; }
#headtag.show { animation: headtag .8s ease-out; }
@keyframes headtag { 0% { opacity: 1; transform: translateX(-50%) scale(1.5); } 20% { transform: translateX(-50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
@keyframes hitmark { from { opacity: 1; transform: scale(.75); transform-origin: 30px 30px; } to { opacity: 0; transform: scale(1.15); transform-origin: 30px 30px; } }
#alttag, #venttag { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); white-space: nowrap; font: 11px 'Lilita', sans-serif; letter-spacing: .08em; color: #ffd23b; text-shadow: 0 0 6px #ff7a1a; opacity: 0; transition: opacity .2s; }
#alttag b { color: #fff; font-weight: normal; padding: 0 4px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px; font-size: 9px; }
#crosshair.alt #alttag { opacity: 1; }
#venttag { color: #ff3b4f; text-shadow: 0 0 6px #ff3b4f; top: 78px; }
#crosshair.vent #venttag { opacity: 1; }
body.touch #alttag b { display: none; }
#titlefx { position: absolute; top: calc(22% - 4vw); left: 50%; transform: translateX(-50%); width: min(92vw, 900px); aspect-ratio: 1024 / 192; pointer-events: none; opacity: 0; }
#teamsbox { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }
.tm { display: grid; grid-template-columns: 12px 1fr 90px; align-items: center; gap: 8px; background: var(--bg); padding: 5px 9px; border-radius: 9px; font-size: 13px; min-width: 210px; border-left: 3px solid; }
.tm .hq { height: 7px; background: rgba(0, 0, 0, .6); border-radius: 4px; overflow: hidden; }
.tm .hq div { height: 100%; }
.tm.out { opacity: .45; }
.tm .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#topmid { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); text-align: center; }
#clock { font-family: 'Lilita', sans-serif; font-size: 26px; text-shadow: 0 0 10px rgba(57, 255, 224, .6); }
#chestinfo { font-size: 13px; color: #ffcf7a; text-shadow: 0 1px 3px #000; }
#minimap { position: absolute; top: 10px; right: 10px; width: 160px; height: 160px; border-radius: 10px; }
#leftbottom { position: absolute; left: 12px; bottom: 14px; width: min(300px, 40vw); display: flex; flex-direction: column; gap: 5px; }
#leftbottom .bar { height: 18px; }
#leftbottom .bar span { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 16px; text-shadow: 0 1px 2px #000; }
#hpfill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, #ff3b5b, #ff8a6b); transition: width .15s; }
#shieldfill { position: absolute; left: 0; top: 0; height: 100%; background: rgba(120, 220, 255, .55); z-index: 1; }
#packfill { height: 100%; background: linear-gradient(90deg, #ffd23b, #ff9f3b); transition: width .2s; }
.bar.pack.full { border-color: #ff5050; box-shadow: 0 0 10px rgba(255, 80, 80, .7); }
#bank { display: flex; gap: 14px; font-size: 15px; background: var(--bg); padding: 4px 10px; border-radius: 8px; align-items: center; }
#bank .dim { color: #8f97d8; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-left: auto; }
#slots { position: absolute; right: 12px; bottom: 14px; display: flex; gap: 6px; }
.slot { position: relative; width: 52px; height: 52px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 24px; pointer-events: auto; cursor: pointer; }
.slot.empty { opacity: .35; }
.slot .k { position: absolute; left: 4px; top: 2px; font-size: 10px; color: #aab2ff; }
.slot .n { position: absolute; right: 4px; bottom: 2px; font-size: 12px; font-weight: bold; }
#prompt { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); font-family: 'Lilita', sans-serif; font-size: 18px; text-shadow: 0 0 8px rgba(0, 0, 0, .9); color: var(--cyan); }
#channel { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); width: 220px; height: 14px; border-radius: 7px; background: rgba(0, 0, 0, .6); border: 1px solid var(--cyan); overflow: hidden; }
#chanfill { height: 100%; background: var(--cyan); }
#chantext { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 12px; }
#banner { position: absolute; top: 22%; left: 0; right: 0; text-align: center; font-family: 'Lilita', sans-serif; font-size: clamp(30px, 6vw, 58px); color: #fff; text-shadow: 0 0 18px var(--pink), 0 0 40px var(--pink); opacity: 0; transition: opacity .3s; }
#banner.show { opacity: 1; }
#banner.sub { top: calc(22% + min(92vw, 900px) * 0.13); font-size: clamp(30px, 6vw, 58px); text-shadow: none; }
#banner small { display: block; font-family: system-ui, sans-serif; font-size: .32em; color: #dfe3ff; text-shadow: 0 1px 3px #000; }
#toast { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); background: var(--bg); padding: 6px 14px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
#toast.show { opacity: 1; }
#alert { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); color: #ff6b6b; font-family: 'Lilita', sans-serif; font-size: 20px; text-shadow: 0 0 10px #f00; opacity: 0; transition: opacity .2s; }
#alert.show { opacity: 1; }
#chat { position: absolute; left: 12px; bottom: 110px; width: min(330px, 40vw); font-size: 13px; }
#chatlog { display: flex; flex-direction: column; gap: 2px; max-height: 150px; overflow: hidden; justify-content: flex-end; }
#chatlog div { background: rgba(8, 10, 26, .55); padding: 2px 7px; border-radius: 6px; text-shadow: 0 1px 2px #000; }
#chatlog .sys { color: #c8ccff; font-style: italic; }
#chatin { width: 100%; margin-top: 4px; font-size: 13px; padding: 5px 8px; opacity: .5; }
#chatin:focus { opacity: 1; }
#lockhint { position: absolute; left: 50%; top: 68%; transform: translateX(-50%); background: var(--bg); padding: 6px 12px; border-radius: 10px; font-size: 13px; color: #cfd4ff; }
#dead { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(255, 0, 60, .12), rgba(0, 0, 0, .35)); }
#deadtext { font-family: 'Lilita', sans-serif; font-size: 34px; text-align: center; text-shadow: 0 0 14px #f05; }
#vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 160px rgba(255, 0, 40, .75); opacity: 0; transition: opacity .2s; z-index: 3; }
#floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.fl { position: absolute; left: 0; top: 0; font-family: 'Lilita', sans-serif; text-shadow: 0 2px 0 #000, 0 0 6px #000; white-space: nowrap; will-change: transform, opacity; }
.fl.crit { text-shadow: 0 2px 0 #000, 0 0 10px currentColor; letter-spacing: .03em; }
.tag { position: absolute; left: 0; top: 0; text-align: center; font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.tag .tb { width: 56px; height: 5px; margin: 2px auto 0; background: #0009; border-radius: 3px; overflow: hidden; }
.tag .tb div { height: 100%; }

#panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .35); pointer-events: auto; }
#panelbody h2 { display: flex; align-items: center; gap: 10px; }
#panelbody .close { margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.card { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; }
.card:hover { border-color: var(--cyan); background: rgba(57, 255, 224, .08); }
.card.no { opacity: .45; cursor: default; }
.card .ic { font-size: 26px; }
.card .cn { font-family: 'Lilita', sans-serif; font-size: 17px; margin: 2px 0; }
.card .ct { font-size: 12.5px; color: #c4c9f5; }
.card .cost { margin-top: 6px; font-size: 13px; color: #ffd23b; }
.stats { font-size: 14px; color: #cfd4ff; margin: 6px 0 10px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tgt { padding: 6px 10px; border-radius: 8px; border: 2px solid transparent; font-family: 'Lilita', sans-serif; cursor: pointer; color: #08081a; }
.tgt.sel { border-color: #fff; }

#over table { border-collapse: collapse; background: var(--bg); border-radius: 12px; overflow: hidden; font-size: 14px; }
#over td, #over th { padding: 6px 12px; text-align: right; }
#over th { color: var(--cyan); font-weight: 600; }
#over td:first-child, #over th:first-child { text-align: left; }
#overtitle { font-size: clamp(36px, 8vw, 70px); }
.overwrap { max-width: 100%; overflow-x: auto; }

/* touch controls */
#touchui { display: none; }
body.touch #touchui { display: block; }
body.touch #lockhint, body.touch #chat { display: none; }
#joystick { position: absolute; left: 30px; bottom: 120px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .2); }
#stick { position: absolute; left: 35px; top: 35px; width: 50px; height: 50px; border-radius: 50%; background: rgba(57, 255, 224, .35); }
.tbtn { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); background: rgba(8, 10, 26, .55); color: #fff; font-size: 22px; }
.tbtn.fire { right: 24px; bottom: 110px; width: 84px; height: 84px; font-size: 32px; border-color: var(--pink); box-shadow: 0 0 14px rgba(255, 43, 214, .5); }
.tbtn.dash { right: 120px; bottom: 96px; width: 56px; height: 56px; }
.tbtn.alt { right: 116px; bottom: 166px; width: 52px; height: 52px; font-size: 20px; opacity: .45; border-color: #ffd23b; }
.tbtn.alt.ready { opacity: 1; box-shadow: 0 0 14px rgba(255, 210, 59, .7); }
.tbtn.use { right: 40px; bottom: 210px; width: 56px; height: 56px; font-family: 'Lilita', sans-serif; border-color: var(--cyan); }
.tbtn.fs { right: 8px; top: 180px; width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
body.touch #minimap { width: 110px; height: 110px; }
body.touch #teamsbox { top: 6px; left: 6px; }
body.touch .tm { min-width: 150px; grid-template-columns: 10px 1fr 50px; font-size: 11px; padding: 3px 7px; }
body.touch #leftbottom { left: 8px; bottom: 8px; width: 46vw; }
body.touch #leftbottom .bar { height: 13px; }
body.touch #leftbottom .bar span { font-size: 10px; line-height: 11px; }
body.touch #bank { font-size: 12px; padding: 2px 8px; }
body.touch #slots { right: 8px; bottom: 8px; }
body.touch .slot { width: 40px; height: 40px; font-size: 18px; }
body.touch #clock { font-size: 20px; }
body.touch .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (orientation: portrait) {
  body.touch #topmid { top: 54px; }
}

#rotate { display: none; }
@media (orientation: portrait) {
  body.touch.ingame #rotate { display: flex; position: absolute; inset: 0; z-index: 30; align-items: center; justify-content: center; text-align: center; font-family: 'Lilita', sans-serif; font-size: 26px; background: rgba(4, 4, 14, .92); color: var(--cyan); line-height: 1.6; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body.touch #chestinfo { font-size: 11px; }
  body.touch #topmid { top: 2px; }
  body.touch #minimap { width: 92px; height: 92px; top: 4px; right: 4px; }
  body.touch .tbtn.fs { top: 102px; right: 4px; }
  body.touch #leftbottom { width: 30vw; }
  body.touch #joystick { left: 24px; bottom: 70px; width: 110px; height: 110px; }
  body.touch .tbtn.fire { right: 20px; bottom: 64px; }
  body.touch .tbtn.dash { right: 112px; bottom: 54px; }
  body.touch .tbtn.alt { right: 106px; bottom: 118px; width: 46px; height: 46px; }
  body.touch .tbtn.use { right: 34px; bottom: 160px; }
  body.touch #slots { right: 200px; bottom: 6px; }
  body.touch #prompt { top: 58%; font-size: 15px; }
  body.touch .panel.wide { max-height: 96vh; padding: 10px 12px; }
}
.gfxrow { justify-content: flex-end; align-items: center; gap: 8px; font-size: 13px; opacity: .8; }

/* ------------------------------------------------------------------ HUD polish */
#hud { --glass: rgba(10, 12, 32, .62); --edge: rgba(130, 150, 255, .28); }
.tm, #leftbottom, #weaponbar, #topmid, #feed > div, .slot { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#topmid { background: var(--glass); border: 1px solid var(--edge); border-radius: 12px; padding: 2px 14px 4px; }
#minimap { border: 1px solid rgba(57, 255, 224, .45); box-shadow: 0 0 14px rgba(57, 255, 224, .25), inset 0 0 0 1px rgba(0, 0, 0, .6); }
.tm { background: var(--glass); border: 1px solid var(--edge); border-left: 4px solid; }
#leftbottom { background: var(--glass); border: 1px solid var(--edge); border-radius: 14px; padding: 8px 10px 8px; gap: 6px; }
#leftbottom .hplabel { display: flex; justify-content: space-between; align-items: baseline; font: 11px 'Lilita', sans-serif; letter-spacing: .12em; color: #9aa3e6; margin-bottom: -2px; }
#leftbottom .hplabel b { font-size: 22px; letter-spacing: 0; color: #fff; text-shadow: 0 0 8px rgba(255, 70, 110, .6); }
#leftbottom .bar.hp { height: 14px; border-radius: 4px; }
#hpfill { background: linear-gradient(90deg, #ff2b5a, #ff6a3d 70%, #ffb13b) !important; box-shadow: 0 0 10px rgba(255, 60, 90, .6); }
#leftbottom.low .bar.hp { animation: lowhp .6s infinite alternate; }
#leftbottom.low .hplabel b { color: #ff5a5a; }
@keyframes lowhp { from { box-shadow: 0 0 0 rgba(255, 40, 60, 0); } to { box-shadow: 0 0 16px rgba(255, 40, 60, .9); } }
#leftbottom .bar.pack { height: 12px; border-radius: 4px; }
#leftbottom .bar.pack span { font-size: 10px; line-height: 11px; }
#bank { background: none; padding: 0 2px; }
.slot { background: var(--glass); border: 1px solid var(--edge); }
.slot:not(.empty):hover { border-color: var(--cyan); }

#weaponbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--glass); border: 1px solid var(--edge); border-radius: 14px; padding: 7px 12px; }
#wname { font: 15px 'Lilita', sans-serif; letter-spacing: .08em; color: #e8ecff; min-width: 120px; }
#wheat { position: relative; width: 150px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 13px, transparent 13px 15px); border: 1px solid rgba(255, 255, 255, .15); overflow: hidden; }
#wheatfill { height: 100%; width: 0; background: linear-gradient(90deg, #39ffe0, #ffd23b 60%, #ff3b4f); background-size: 150px 100%; transition: width .08s linear; }
#wheat.vent #wheatfill { background: #ff3b4f; animation: ventpulse .25s infinite alternate; }
#wheattext { position: absolute; inset: 0; text-align: center; font: 9px 'Lilita', sans-serif; letter-spacing: .2em; line-height: 11px; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 2px #000; }
.chip { position: relative; overflow: hidden; font: 11px 'Lilita', sans-serif; letter-spacing: .06em; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .45); white-space: nowrap; }
.chip b { font-weight: normal; font-size: 9px; padding: 0 4px; margin-left: 3px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px; }
.chip i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .08); z-index: -1; }
.chip.ready { color: #ffd23b; border-color: rgba(255, 210, 59, .6); box-shadow: 0 0 10px rgba(255, 210, 59, .35); }
#chipdash.ready { color: var(--cyan); border-color: rgba(57, 255, 224, .55); box-shadow: 0 0 10px rgba(57, 255, 224, .3); }
#crosshair #alttag { display: none; }

#feed { position: absolute; top: 180px; right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
#feed > div { background: var(--glass); border: 1px solid var(--edge); border-radius: 8px; padding: 3px 9px; font: 13px 'Lilita', sans-serif; letter-spacing: .03em; animation: feedin .25s ease-out; transition: opacity .5s; }
#feed > div .x { color: #ff5a5a; margin: 0 6px; }
@keyframes feedin { from { transform: translateX(30px); opacity: 0; } }

#home { position: absolute; left: 0; top: 0; display: none; flex-direction: column; align-items: center; transform: translate(-50%, -50%); pointer-events: none; font: 12px 'Lilita', sans-serif; letter-spacing: .1em; text-shadow: 0 0 6px #000, 0 1px 2px #000; }
#home b { font-weight: normal; }
#home small { font-size: 10px; opacity: .8; }
#homearrow { font-size: 18px; line-height: 16px; display: inline-block; }
body.touch #weaponbar { bottom: auto; top: 44px; padding: 3px 8px; gap: 6px; transform: translateX(-50%) scale(.82); }
body.touch .chip b { display: none; }
body.touch #feed { top: 120px; }
#todbtn { position: absolute; top: 10px; left: calc(50% + 70px); width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--edge); background: var(--glass); color: #fff; font-size: 17px; cursor: pointer; pointer-events: auto; backdrop-filter: blur(6px); }
#todbtn:hover { border-color: var(--cyan); }
body.touch #todbtn { top: 4px; left: calc(50% + 56px); width: 28px; height: 28px; font-size: 14px; }
