/* Cat AI Township: full-screen iso town (canvas) + game HUD + sheets. Transform/opacity animations only. */
@font-face { font-family: 'Chakra'; src: url(/fonts/chakra-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url(/fonts/sora.woff2) format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'JBM'; src: url(/fonts/jbm.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
:root { --bg: #04070a; --glass: rgba(7, 12, 10, .92); --line: rgba(157, 255, 58, .2); --text: #f2f7f2; --mute: #93a79a; --lime: #9dff3a; --lime2: #c8ff7c;
  --gold: #f5c542; --gold2: #ffe28a; --cyan: #3ff2ff; --red: #ff5a6a; --f-d: 'Chakra', 'Sora', system-ui, sans-serif; --f-b: 'Sora', system-ui, sans-serif; --f-m: 'JBM', ui-monospace, Menlo, monospace; color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--f-b); overflow: hidden; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; } a { color: inherit; }
.mono { font-family: var(--f-m); letter-spacing: .05em; }
body.idle *, body.idle *::before, body.idle *::after { animation-play-state: paused !important; }

.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, #020304, #061210 60%, #0b1a13); }
.sky img { position: absolute; left: 50%; top: 0; width: max(100%, 1100px); height: auto; transform: translateX(-50%); opacity: .9; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 33% 9%, #cfe, transparent), radial-gradient(1.5px 1.5px at 71% 22%, #fff, transparent),
  radial-gradient(1px 1px at 88% 12%, #dfd, transparent), radial-gradient(1px 1px at 52% 30%, #fff, transparent); }
@keyframes twinkle { 50% { opacity: .35; } }
.map { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; cursor: grab; }
.map.drag { cursor: grabbing; }

/* ------------------------------------------------------------------ HUD */
.hud { position: fixed; left: 0; right: 0; top: 0; z-index: 10; padding: calc(8px + env(safe-area-inset-top)) 10px 0; pointer-events: none; }
.hud-top { display: flex; align-items: center; gap: 8px; }
.hud button { pointer-events: auto; }
.lvl { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; min-width: 0; flex: 1; max-width: 230px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); cursor: pointer; text-align: left; }
.lvl b { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(180deg, var(--lime2), var(--lime)); color: #061000; font: 700 20px/1 var(--f-d); }
.lvl small { font-size: 11.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.xp i { display: block; height: 100%; background: linear-gradient(90deg, #a46bff, #e3b3ff); transform-origin: left; transform: scaleX(0); transition: transform .5s; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); cursor: pointer; white-space: nowrap; }
.pill img { width: 28px; height: 28px; object-fit: contain; }
.pill b { font: 700 16px/1 var(--f-d); font-variant-numeric: tabular-nums; } .pill small { font-size: 10.5px; color: var(--mute); }
.pill.gpu { margin-left: auto; border-color: rgba(245, 197, 66, .45); } .pill.gpu b { color: var(--gold); }
.res { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
.res::-webkit-scrollbar { display: none; }
.r { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px 0 4px; border-radius: 11px; background: rgba(4, 8, 6, .75); border: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; flex: none; }
.r img { width: 24px; height: 24px; object-fit: contain; } .r b { font: 700 14px/1 var(--f-d); font-variant-numeric: tabular-nums; }
.r.lock { opacity: .35; }
.r.bump { animation: rbump .5s ease-out; } @keyframes rbump { 40% { transform: scale(1.18); } }

.collect-all { position: fixed; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 10; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border: 0; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, var(--gold2), var(--gold) 50%, #c08a12); color: #1a1200; font: 700 15px/1 var(--f-d); letter-spacing: .04em; box-shadow: 0 10px 30px -8px rgba(245, 197, 66, .8); animation: bob 2s ease-in-out infinite; }
.collect-all img { width: 28px; height: 28px; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.lit { position: fixed; left: 12px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 10; padding: 7px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font: 600 12px/1.3 var(--f-m); color: var(--lime); pointer-events: none; }
.lit.dark { color: var(--red); border-color: rgba(255, 90, 106, .4); }

.dock { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 10; transform: translateX(-50%); display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: min(560px, calc(100% - 16px)); padding: 6px; border-radius: 22px;
  background: rgba(6, 10, 8, .88); border: 1px solid var(--line); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); }
.dock button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; border-radius: 16px; background: none; cursor: pointer; font: 700 11px/1 var(--f-b); color: var(--mute); }
.dock button:hover, .dock button.on { background: rgba(157, 255, 58, .1); color: var(--text); }
.dock img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); transition: transform .2s; }
.dock button:hover img { transform: translateY(-3px) scale(1.06); }
.av { background: url(/media/agents.webp) 0 0 / 800% 100% no-repeat; border-radius: 50%; }
.dock .dock-av { width: 38px; height: 38px; border: 2px solid rgba(157, 255, 58, .5); background-position: 57.14% 0; }
.dot { position: absolute; top: 4px; right: 18%; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ------------------------------------------------------------------ sheets */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fade .2s both; }
.sheet-in { position: relative; width: min(560px, 100%); max-height: min(82vh, 760px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; user-select: text; -webkit-user-select: text;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #070c09; border: 1px solid var(--line); border-bottom: 0; animation: up .3s cubic-bezier(.2, .9, .3, 1) both; }
@media (min-width: 900px) { .sheet { justify-content: flex-end; align-items: stretch; } .sheet-in { width: 440px; max-height: none; height: 100%; border-radius: 0; border: 0; border-left: 1px solid var(--line); animation-name: side; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } } @keyframes side { from { transform: translateX(40px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
.x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; z-index: 2; }
.sh-h { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.sh-h img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.sh-h h2 { margin: 0; font: 700 22px/1.1 var(--f-d); } .sh-h p { margin: 4px 0 0; color: var(--mute); font-size: 13px; }
.sec { margin-top: 14px; } .sec > h3 { margin: 0 0 8px; font: 700 12px/1 var(--f-m); color: var(--mute); letter-spacing: .14em; text-transform: uppercase; }
.card { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.btn { display: block; width: 100%; padding: 14px; border: 0; border-radius: 15px; cursor: pointer; text-align: center; text-decoration: none; font: 700 16px/1 var(--f-d); letter-spacing: .05em; text-transform: uppercase;
  color: #061000; background: linear-gradient(180deg, var(--lime2), var(--lime) 45%, #5fbf14); box-shadow: 0 10px 26px -12px rgba(157, 255, 58, .9); }
.btn.gold { color: #1a1200; background: linear-gradient(180deg, var(--gold2), var(--gold) 45%, #c08a12); box-shadow: 0 10px 26px -12px rgba(245, 197, 66, .9); }
.btn.ghost { background: rgba(255, 255, 255, .07); color: var(--text); box-shadow: none; }
.btn.sm { width: auto; padding: 10px 14px; font-size: 13px; border-radius: 12px; }
.btn:disabled { filter: grayscale(.85) brightness(.55); cursor: default; }
.bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--gold)); transform-origin: left; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .kv div { padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .35); } .kv small { display: block; color: var(--mute); font-size: 11px; } .kv b { font: 700 18px/1.2 var(--f-d); }
.seats { display: flex; gap: 8px; flex-wrap: wrap; }
.seat { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 1px dashed rgba(157, 255, 58, .35); background: rgba(0, 0, 0, .3); cursor: pointer; font-size: 22px; color: var(--lime); position: relative; }
.seat .av { width: 50px; height: 50px; }
.seat em { position: absolute; right: -4px; bottom: -4px; padding: 1px 5px; border-radius: 6px; background: var(--lime); color: #061000; font: 700 10px/1.3 var(--f-m); font-style: normal; }
.list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.item img { width: 64px; height: 64px; object-fit: contain; } .item b { display: block; font: 700 16px/1.2 var(--f-d); } .item small { color: var(--mute); font-size: 12.5px; }
.item.lock { opacity: .45; }
.need { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.need span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 10px; background: rgba(0, 0, 0, .4); font: 700 13px/1 var(--f-d); }
.need span img { width: 22px; height: 22px; object-fit: contain; } .need span.ok { color: var(--lime); } .need span.no { color: var(--red); }
.order { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.order .co { display: flex; align-items: center; gap: 10px; }
.order .tk { display: grid; place-items: center; min-width: 58px; height: 36px; padding: 0 8px; border-radius: 10px; background: #0d1a10; border: 1px solid var(--line); font: 700 14px/1 var(--f-m); color: var(--lime); }
.mv { font: 700 13px/1 var(--f-m); } .mv.up { color: var(--lime); } .mv.dn { color: var(--red); }
.rw { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font: 700 14px/1 var(--f-d); } .rw span { display: inline-flex; align-items: center; gap: 4px; } .rw img { width: 20px; height: 20px; object-fit: contain; }
.rw .g { color: var(--gold); }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 16px; border: 2px solid transparent; background: rgba(255, 255, 255, .04); cursor: pointer; }
.cat .av { width: 58px; height: 58px; } .cat b { font: 700 12px/1 var(--f-m); color: var(--lime); } .cat small { font-size: 10.5px; color: var(--mute); }
.cat.sel { border-color: var(--gold); background: rgba(245, 197, 66, .1); transform: translateY(-2px); }
.cat.work::after { content: '⚙'; position: absolute; top: 4px; right: 6px; font-size: 12px; color: var(--cyan); }
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: r; }
.lb li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .35); font-size: 13.5px; }
.lb li::before { counter-increment: r; content: counter(r); font: 700 12px/1 var(--f-m); color: var(--mute); } .lb li:nth-child(1)::before { color: var(--gold); }
.lb small { color: var(--mute); } .lb b { color: var(--gold); white-space: nowrap; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; } .feed li { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: 13px; } .feed li b { color: var(--lime); } .feed time { color: var(--mute); font-size: 11px; margin-left: 6px; }
.mkt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .mkt div { padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .35); } .mkt b { display: block; font: 700 13px/1 var(--f-m); } .mkt small { font-size: 10.5px; color: var(--mute); }
.p { color: var(--mute); font-size: 13.5px; margin: 6px 0 0; } .p b { color: var(--text); }
.hl { color: var(--gold); } .ok { color: var(--lime); }

/* ------------------------------------------------------------------ start (airdrop claim) */
.start { position: fixed; inset: 0; z-index: 30; overflow-y: auto; touch-action: pan-y; user-select: text; -webkit-user-select: text; background: linear-gradient(180deg, rgba(3, 6, 5, .55), rgba(3, 6, 5, .85) 50%, rgba(3, 6, 5, .96)); }
.start-in { max-width: 520px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 16px 40px; text-align: center; }
.st-logo { width: 150px; height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .8)) drop-shadow(0 0 30px rgba(157, 255, 58, .35)); animation: bob 3.4s ease-in-out infinite; }
.st-k { margin: 8px 0 0; font-size: 12px; color: var(--lime); letter-spacing: .2em; }
.start h1 { margin: 8px 0 0; font: 700 clamp(30px, 8vw, 44px)/1.08 var(--f-d); text-transform: uppercase; }
.start h1 span { background: linear-gradient(180deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-sub { margin: 10px auto 0; max-width: 440px; color: var(--mute); font-size: 14.5px; }
.st-card { margin-top: 18px; padding: 16px; border-radius: 22px; background: rgba(8, 14, 10, .9); border: 1px solid var(--line); text-align: left; }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .07); }
.st-steps li > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .08); font: 700 12px/1 var(--f-m); font-style: normal; }
.st-steps li.ok { border-color: rgba(157, 255, 58, .45); } .st-steps li.ok > i { background: var(--lime); color: #061000; }
.st-steps b { font-size: 14px; display: block; } .st-steps small { color: var(--mute); font-size: 12px; }
.st-steps a, .st-steps button { padding: 9px 12px; border: 0; border-radius: 10px; background: #fff; color: #000; font-weight: 700; font-size: 12.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.st-steps button.did { background: var(--gold); color: #1a1200; }
.st-fields { display: grid; gap: 6px; margin-top: 12px; }
.lbl { font-size: 12.5px; font-weight: 700; color: var(--mute); margin-top: 4px; }
.field { width: 100%; padding: 13px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .55); color: var(--text); font: 500 15px/1.2 var(--f-b); outline: none; }
.field:focus { border-color: var(--lime); } .field.mono { font-family: var(--f-m); font-size: 13.5px; }
.err { min-height: 1.2em; margin: 8px 0 0; color: #ffb547; font-size: 13px; }
.fine { margin: 10px 2px 0; color: var(--mute); font-size: 11.5px; }
.start .btn { margin-top: 6px; }
.peek { margin-top: 10px; padding: 12px 18px; border: 0; background: none; color: var(--mute); cursor: pointer; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ FX */
.fly { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.fly img { position: absolute; left: 0; top: 0; width: 34px; height: 34px; object-fit: contain; will-change: transform, opacity; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.fly .num { position: absolute; left: 0; top: 0; font: 700 22px/1 var(--f-d); color: var(--gold); text-shadow: 0 2px 8px #000; will-change: transform, opacity; white-space: nowrap; }
.banner { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; }
.banner .bn { display: grid; justify-items: center; gap: 8px; padding: 24px 30px; border-radius: 26px; background: rgba(5, 10, 7, .9); border: 1px solid var(--gold); text-align: center; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; box-shadow: 0 0 80px rgba(245, 197, 66, .35); }
.banner .bn b { font: 700 40px/1 var(--f-d); background: linear-gradient(180deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner .bn span { font: 700 12px/1 var(--f-m); color: var(--cyan); letter-spacing: .2em; } .banner .bn small { color: var(--mute); max-width: 280px; }
.banner .bn img { width: 120px; height: auto; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
.toasts { position: fixed; left: 50%; top: calc(110px + env(safe-area-inset-top)); z-index: 70; transform: translateX(-50%); display: grid; gap: 6px; width: max-content; max-width: calc(100% - 24px); pointer-events: none; }
.toast { padding: 11px 15px; border-radius: 13px; background: var(--lime); color: #061000; font-weight: 700; font-size: 14px; animation: up .25s both; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .8); }
.toast.bad { background: #ffb547; color: #1a1000; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.goal { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 8px; padding: 8px 12px 8px 8px; border: 1px solid rgba(245, 197, 66, .45); border-radius: 14px; background: rgba(20, 16, 4, .92); cursor: pointer; text-align: left; }
.goal::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 22px rgba(245, 197, 66, .4); opacity: 0; animation: glowb 2.4s ease-in-out infinite; pointer-events: none; }
.goal i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--gold); color: #1a1200; font: 700 13px/1 var(--f-m); font-style: normal; flex: none; }
.goal span { font-size: 13px; font-weight: 600; } .goal small { display: block; color: var(--mute); font-size: 11px; font-weight: 400; }
@keyframes glowb { 50% { opacity: 1; } }

/* ------------------------------------------------------------------ v2 */
.hud-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pill.sm { height: 32px; padding: 0 10px; border-radius: 11px; font-size: 13px; gap: 4px; } .pill.sm b { font-size: 14px; }
.pill.warn { border-color: rgba(255, 90, 106, .6); } .pill.warn b { color: var(--red); }
.pill.gems { padding-left: 10px; } .pill .gem { font-size: 18px; }
.hud-row .goal { margin-top: 0; }
.ii { object-fit: contain; vertical-align: middle; }
.modebar, .placebar { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 12; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px);
  padding: 8px 8px 8px 14px; border-radius: 16px; background: rgba(6, 12, 8, .96); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); }
.modebar button { padding: 8px 12px; border: 0; border-radius: 10px; background: var(--lime); color: #061000; font-weight: 800; cursor: pointer; }
.placebar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claimfab { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 12; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 12px; border: 0; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, var(--gold2), var(--gold) 50%, #c08a12); color: #1a1200; font: 700 16px/1 var(--f-d); box-shadow: 0 10px 30px -8px rgba(245, 197, 66, .8); }
.claimfab img { width: 30px; height: 30px; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { display: grid; place-items: center; gap: 2px; width: 70px; height: 76px; padding: 6px; border-radius: 16px; border: 1px dashed rgba(157, 255, 58, .3); background: rgba(0, 0, 0, .35); color: var(--mute); font-size: 20px; }
.slot small { font: 700 11px/1 var(--f-m); color: var(--mute); }
.slot.done { border: 1px solid var(--lime); background: rgba(157, 255, 58, .1); } .slot.done small { color: var(--lime); }
.slot.hungry { border-color: rgba(245, 197, 66, .5); } .slot.hungry small { color: var(--gold); }
.slot.add { cursor: pointer; font: 700 12px/1.2 var(--f-m); color: var(--cyan); border-color: rgba(63, 242, 255, .4); }
.seat { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; border: 1px dashed rgba(157, 255, 58, .35); background: rgba(0, 0, 0, .3); font-size: 22px; color: var(--lime); position: relative; flex: none; }
.seat.on { border-style: solid; } .seat .av { width: 48px; height: 48px; }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.inv .cell { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: rgba(0, 0, 0, .35); text-align: center; }
.inv .cell b { font: 700 16px/1 var(--f-d); } .inv .cell small { font-size: 10.5px; color: var(--mute); }
.orders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.orders .order { padding: 10px; } .orders .order.can { border-color: rgba(157, 255, 58, .55); } .orders .order.wait { display: grid; place-items: center; gap: 6px; min-height: 150px; text-align: center; opacity: .7; }
.orders .need { margin-top: 6px; } .orders .need span { font-size: 12px; padding: 3px 6px 3px 3px; }
.orders .rw { font-size: 13px; gap: 8px; margin-top: 8px; }
.orders .co { justify-content: space-between; } .orders .tk { min-width: 0; height: 28px; font-size: 12px; } .orders .mv { font-size: 11px; }
.crates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.crate { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.crate b { font: 700 16px/1 var(--f-d); } .crate small { font-size: 11px; color: var(--mute); } .crate .mat { font: 700 11px/1 var(--f-m); color: var(--gold); }
.crate.done { border-color: var(--lime); background: rgba(157, 255, 58, .08); } .crate .btn { width: 100%; }
.tabsb { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; } .tabsb::-webkit-scrollbar { display: none; }
.tabsb button { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .3); color: var(--mute); font-weight: 700; font-size: 13px; cursor: pointer; }
.tabsb button.on { background: var(--lime); color: #061000; border-color: var(--lime); }
.jic { display: grid; place-items: center; width: 64px; height: 64px; font-size: 28px; border-radius: 16px; background: rgba(157, 255, 58, .1); }
.big { font: 700 38px/1.1 var(--f-d); color: var(--gold); }
button.item { width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit; }
@media (max-width: 400px) { .orders { grid-template-columns: minmax(0, 1fr); } .crates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gift { border-color: rgba(245, 197, 66, .6); animation: bob 1.6s ease-in-out infinite; }
.visitbar { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); z-index: 14; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px); padding: 8px 8px 8px 14px; border-radius: 16px; background: rgba(6, 12, 8, .96); border: 1px solid var(--gold); font-weight: 700; font-size: 13.5px; }
.visitbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days div { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); font-size: 11px; text-align: center; }
.days div b { font: 700 11px/1 var(--f-m); color: var(--mute); } .days div.got { border-color: var(--lime); opacity: .6; } .days div.now { border-color: var(--gold); background: rgba(245, 197, 66, .12); }
.days div span { font: 700 12px/1.1 var(--f-d); }
.lb li .vbtn { margin-left: 6px; padding: 5px 9px; border: 0; border-radius: 8px; background: rgba(157, 255, 58, .15); color: var(--lime); font-weight: 700; font-size: 12px; cursor: pointer; }

.tapdock img { animation: bob 1.8s ease-in-out infinite; } .tapdock span { color: var(--gold); }
.tapw { display: grid; justify-items: center; gap: 10px; margin-top: 10px; text-align: center; }
.tapcoin { position: relative; width: min(260px, 70vw); aspect-ratio: 1; border: 0; border-radius: 50%; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tapcoin img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(0,0,0,.7)) drop-shadow(0 0 30px rgba(245,197,66,.45)); transition: transform .08s; pointer-events: none; }
.tapcoin.hit img { transform: scale(.93) rotate(-3deg); }
.tapcoin::before { content: ''; position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,197,66,.4), transparent 70%); animation: pulse 2.4s ease-in-out infinite; pointer-events: none; }
.tapcoin.empty img { filter: grayscale(.8) brightness(.6); }
.tapstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.tapstats div { padding: 10px; border-radius: 14px; background: rgba(0,0,0,.35); } .tapstats small { display: block; color: var(--mute); font-size: 11px; } .tapstats b { font: 700 18px/1.2 var(--f-d); }
.energy { width: 100%; } .energy .bar i { background: linear-gradient(90deg, #3ff2ff, #9dff3a); }
.tapfx { position: fixed; z-index: 70; pointer-events: none; font: 700 26px/1 var(--f-d); color: var(--gold); text-shadow: 0 2px 8px #000; }
@keyframes pulse { 50% { opacity: .45; } }
