/* FLORBMART - the HUD, the till, the card machine and cash drawer, the chat
   panel, the space computer (FlorbOS) and the sheets. Florb mint on deep
   space navy, gold for money. */
:root { --mint: #7affb0; --mint2: #2aa86a; --gold: #f0c868; --ink: #e8f2ff; --muted: #8fa0b8; --bg: #06080f; --card: rgba(12, 18, 32, .94); --line: rgba(122, 255, 176, .22); --red: #ff5a6a; --top: var(--mdts-h, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 15px/1.4 Inter, system-ui, sans-serif; overscroll-behavior: none; }
body.touch { -webkit-user-select: none; user-select: none; }
#game, #game canvas { position: fixed; inset: 0; display: block; touch-action: none; }
.hidden { display: none !important; }
#buildTag { position: fixed; right: 6px; bottom: 4px; font: 10px monospace; color: rgba(255,255,255,.35); pointer-events: none; z-index: 9999; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font: 700 11px Inter, sans-serif; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 5px; padding: 1px 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.btn { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); border-radius: 999px; padding: 10px 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); transition: transform .12s, background .12s; }
.btn:hover { background: rgba(255,255,255,.13); } .btn:active { transform: scale(.97); }
.btn.gold { background: linear-gradient(180deg, #a8ffcf, #3ccf86); color: #04140c; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 28px; font-size: 17px; }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
.btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.link { background: none; border: 0; color: var(--mint); text-decoration: underline; padding: 4px; }
.x { background: rgba(255,255,255,.08); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; }

/* ---------- loading and title ---------- */
#loading { position: fixed; inset: 0; z-index: 2000; background: radial-gradient(circle at 50% 40%, #0c1a2a, #02040a); display: grid; place-items: center; transition: opacity .6s; }
#loading.gone { opacity: 0; pointer-events: none; }
.ld { text-align: center; width: min(320px, 80vw); }
.ld b { font: 900 30px Orbitron, sans-serif; letter-spacing: .08em; color: var(--mint); text-shadow: 0 0 24px rgba(122,255,176,.5); }
.ld .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); margin: 16px 0 10px; overflow: hidden; }
.ld .bar i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--mint2), var(--mint)); transition: width .4s; }
.ld span { color: var(--muted); font-size: 13px; }
#title { position: fixed; inset: var(--top) 0 0 0; display: grid; place-items: center; z-index: 50; padding: 16px; background: linear-gradient(180deg, rgba(4,6,14,.2), rgba(4,6,14,.75)); overflow-y: auto; }
.tCard { width: min(560px, 100%); text-align: center; background: rgba(8,12,24,.72); border: 1px solid var(--line); border-radius: 24px; padding: 26px 22px; backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.tKick { color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.tLogo { font: 900 clamp(38px, 10vw, 64px)/1 Orbitron, sans-serif; margin: 10px 0 8px; letter-spacing: .04em; background: linear-gradient(180deg, #d4ffe6, #3ccf86); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(122,255,176,.35)); }
.tTag { color: #c4d4ea; margin: 0 auto 14px; max-width: 460px; }
.tSave { display: flex; flex-direction: column; gap: 2px; margin: 0 auto 4px; }
.tSave b { color: var(--gold); font-size: 17px; } .tSave span { color: var(--muted); font-size: 13px; }
.tRow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ---------- the HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
#hud > * { pointer-events: auto; }
#hTop { position: absolute; left: calc(10px + env(safe-area-inset-left)); top: calc(var(--top) + 10px + env(safe-area-inset-top)); display: flex; gap: 8px; flex-wrap: wrap; }
#clockCard, #moneyCard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 7px 12px; display: flex; align-items: center; gap: 9px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
#hDay { font: 800 13px Orbitron, sans-serif; color: var(--mint); }
#hTime { font: 700 16px monospace; }
#hState { font-style: normal; font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 6px; letter-spacing: .06em; }
#hState.open { background: rgba(90,255,154,.18); color: #5aff9a; } #hState.closed { background: rgba(255,90,106,.16); color: var(--red); }
#hCredits { color: var(--gold); font-size: 17px; } #hCredits.neg { color: var(--red); }
#hRep { color: #ffd23a; letter-spacing: 1px; font-size: 13px; }
#hLvl { display: flex; align-items: center; gap: 5px; } #hLvl i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--mint); }
#hLvl u { width: 46px; height: 5px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; display: block; } #hLvl s { display: block; height: 100%; background: var(--mint); width: 0; }
#tasks { position: absolute; left: calc(10px + env(safe-area-inset-left)); top: calc(var(--top) + 64px + env(safe-area-inset-top)); width: min(310px, 62vw); background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
#tasksHead { width: 100%; background: rgba(122,255,176,.1); border: 0; display: flex; justify-content: space-between; padding: 7px 12px; font-size: 13px; }
#tasksHead b { color: var(--mint); } #tasks.fold ol { display: none; } #tasks.fold #tasksArrow { transform: rotate(-90deg); display: inline-block; }
#taskList { margin: 0; padding: 6px 12px 9px; list-style: none; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
#taskList li.done { color: var(--muted); text-decoration: line-through; } #taskList li.hot { color: #ffd23a; font-weight: 700; } #taskList em { color: var(--muted); font-style: normal; font-size: 11px; }
.hRight { position: absolute; right: calc(10px + env(safe-area-inset-right)); top: calc(var(--top) + 10px + env(safe-area-inset-top)); display: flex; gap: 8px; }
.hb { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
.hb svg { width: 22px; height: 22px; fill: var(--ink); }
#cross { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 2px rgba(0,0,0,.35); pointer-events: none; }
#prompt { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); background: rgba(6,10,20,.82); border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; display: flex; gap: 8px; align-items: center; white-space: nowrap; max-width: 92vw; pointer-events: none; font-size: 14px; }
#prompt span { overflow: hidden; text-overflow: ellipsis; }
#prompt.off { border-color: rgba(255,255,255,.12); color: var(--muted); }
#prompt i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--mint); width: calc(var(--k, 0) * 100%); }
#carryTag { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; white-space: nowrap; }
body.touch #carryTag { bottom: calc(210px + env(safe-area-inset-bottom)); }
#note { position: absolute; left: 50%; top: calc(var(--top) + 70px); transform: translate(-50%, -20px); opacity: 0; transition: .35s; background: linear-gradient(180deg, rgba(20,40,34,.95), rgba(10,22,20,.95)); border: 1px solid var(--mint2); border-radius: 14px; padding: 10px 16px; font-weight: 600; text-align: center; max-width: min(520px, 90vw); pointer-events: none; }
#note.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 700px) { #note { top: calc(var(--top) + 150px); } }
#toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: rgba(8,12,24,.94); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; z-index: 900; pointer-events: none; font-weight: 600; white-space: nowrap; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.float { position: fixed; left: 50%; top: 42%; transform: translateX(-50%); color: var(--gold); font: 900 26px Orbitron, sans-serif; text-shadow: 0 2px 10px rgba(0,0,0,.6); pointer-events: none; z-index: 800; animation: floatUp 1.4s ease-out forwards; }
@keyframes floatUp { to { transform: translate(-50%, -80px); opacity: 0; } }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 1.1s; z-index: 700; }
#fade.on { opacity: 1; pointer-events: auto; }
#bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 15; overflow: hidden; }
.bub { position: absolute; left: 0; top: 0; max-width: 240px; background: #fff; color: #111824; border-radius: 14px; padding: 6px 10px 7px; font-size: 13px; line-height: 1.3; box-shadow: 0 6px 18px rgba(0,0,0,.35); transform-origin: 50% 100%; }
.bub b { display: block; font-size: 11px; color: var(--mint2); }
.bub::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }

/* ---------- touch controls ---------- */
#controls { position: fixed; inset: 0; pointer-events: none; z-index: 25; }
#controls > * { pointer-events: auto; }
.cb { position: absolute; right: calc(18px + env(safe-area-inset-right)); border-radius: 50%; border: 2px solid rgba(240,200,104,.7); background: rgba(10,14,24,.6); color: #fff; font: 800 12px Inter, sans-serif; letter-spacing: .04em; display: grid; place-items: center; touch-action: none; }
#useBtn { width: 92px; height: 92px; bottom: calc(40px + env(safe-area-inset-bottom)); background: radial-gradient(circle, rgba(122,255,176,.45), rgba(20,60,40,.7)); border-color: var(--mint); font-size: 15px; }
#useBtn.dim { opacity: .55; }
#dropBtn { width: 66px; height: 66px; bottom: calc(146px + env(safe-area-inset-bottom)); right: calc(30px + env(safe-area-inset-right)); font-size: 10px; text-align: center; line-height: 1.1; }
#talkBtn { width: 66px; height: 66px; bottom: calc(52px + env(safe-area-inset-bottom)); right: calc(126px + env(safe-area-inset-right)); background: rgba(240,200,104,.35); }

/* ---------- the till, the card machine, the cash drawer ---------- */
#tillUI { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; width: min(560px, 96vw); }
.tillBox { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.tillHead { display: flex; flex-direction: column; } .tillHead b { color: var(--mint); } .tillHead span { color: var(--muted); font-size: 13px; }
#tillLines { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tillTotal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; } .tillTotal span { color: var(--muted); font-weight: 700; letter-spacing: .08em; font-size: 12px; } .tillTotal b { font: 900 26px Orbitron, sans-serif; color: var(--gold); }
.tillBox .btns { margin-top: 8px; }
#payUI { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(0,0,0,.35); padding: 12px; }
.payCard { width: min(400px, 96vw); background: #0c1220; border: 1px solid var(--line); border-radius: 20px; padding: 16px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.payCard h3 { margin: 0 0 4px; }
.cmScreen { background: #04140c; border-radius: 10px; padding: 10px; margin: 10px 0; display: flex; justify-content: space-between; align-items: center; font-family: monospace; color: #5aff9a; } .cmScreen b { font-size: 26px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { height: 52px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: #1a2234; font-size: 20px; font-weight: 800; }
.keypad .ok { background: #2aa86a; } .keypad .clr { background: #6a2a34; }
.payTot { margin-top: 10px; color: var(--muted); } .payTot b { color: var(--gold); }
.cashRow { display: flex; justify-content: space-around; gap: 8px; margin: 10px 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; } .cashRow b { display: block; font-size: 20px; color: var(--ink); } .cashRow .due b { color: var(--gold); }
.giving { background: #10182a; border-radius: 12px; padding: 8px; } .giving span { color: var(--muted); font-size: 12px; } .giving > b { display: block; font: 900 26px Orbitron, sans-serif; } .giving b.ok { color: #5aff9a; } .giving b.over { color: #ffd23a; }
.coins { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; min-height: 26px; margin-top: 4px; }
.coins .cn { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 6px; border-radius: 10px; }
.drawer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.drawer button { height: 48px; border-radius: 12px; border: 0; font-weight: 900; color: #111; }
.cn.n1, .cn.n2 { background: #c8a058; border-radius: 50%; } .cn.n5 { background: #d8d8e0; } .cn.n10 { background: #9ad0ff; } .cn.n20 { background: #b8f0a0; } .cn.n50 { background: #ffb8d8; } .cn.n100 { background: #ffd86a; }
.drawer .n1, .drawer .n2 { border-radius: 50%; width: 48px; justify-self: center; }

/* ---------- talking ---------- */
#talkUI { position: fixed; right: calc(10px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); width: min(400px, calc(100vw - 20px)); z-index: 300; }
.talkCard { background: #0c1220; border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.55); display: flex; flex-direction: column; max-height: min(70vh, 560px); }
.talkHead { display: flex; gap: 10px; align-items: center; } .talkHead > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .talkHead b { font-size: 16px; } .talkHead span { color: var(--muted); font-size: 12px; }
.talkFace { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
#talkLog { flex: 1; overflow-y: auto; margin: 10px 0 8px; display: flex; flex-direction: column; gap: 6px; min-height: 90px; }
.msg { max-width: 82%; padding: 7px 11px; border-radius: 14px; font-size: 14px; }
.msg.them { background: #1c2740; align-self: flex-start; border-bottom-left-radius: 4px; } .msg.me { background: #2aa86a; color: #04140c; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.msg.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: dots 1s infinite; } .msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: .5; } }
#talkChips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
#talkChips button { flex: none; border: 1px solid var(--line); background: rgba(122,255,176,.08); border-radius: 999px; padding: 5px 10px; font-size: 12px; }
#talkForm { display: flex; gap: 6px; }
#talkIn { flex: 1; min-width: 0; background: #070b14; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 10px 14px; color: var(--ink); font: inherit; font-size: 16px; }
#talkMic { border: 1px solid rgba(255,255,255,.15); background: #10182a; border-radius: 50%; width: 42px; } #talkMic.on { background: var(--red); }
.talkFoot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* ---------- screens and sheets ---------- */
.screen { position: fixed; inset: var(--top) 0 0 0; z-index: 200; display: grid; place-items: center; background: rgba(2,4,10,.6); padding: 12px; backdrop-filter: blur(3px); }
#sheet { z-index: 260; } #signin { z-index: 280; }
.card { width: min(440px, 100%); max-height: 100%; overflow-y: auto; background: #0c1220; border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.card.wide { width: min(620px, 100%); }
.card h2 { margin: 0 0 6px; font-family: Orbitron, sans-serif; font-size: 21px; color: var(--mint); } .card h3 { margin: 14px 0 4px; color: var(--gold); font-size: 15px; } .card p { margin: 6px 0; }
.card form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.card input { background: #070b14; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 12px; color: var(--ink); font: inherit; font-size: 16px; }
.err { color: var(--red); font-size: 13px; min-height: 1em; }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sumGrid { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; margin: 12px 0; font-size: 14px; } .sumGrid span { color: var(--muted); } .sumGrid b { text-align: right; } .pos { color: #5aff9a; } .neg { color: var(--red); }
.bigWorth { text-align: center; background: linear-gradient(180deg, rgba(240,200,104,.12), rgba(240,200,104,.03)); border: 1px solid rgba(240,200,104,.3); border-radius: 16px; padding: 10px; margin: 10px 0; display: flex; flex-direction: column; }
.bigWorth span { color: var(--muted); font-size: 12px; } .bigWorth b { font: 900 30px Orbitron, sans-serif; color: var(--gold); }
.warn { color: #ffd23a; font-weight: 700; text-align: center; }
.todo { padding-left: 20px; }
.achList, .ups { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ach, .up { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 9px 11px; }
.ach > div, .up > div { display: flex; flex-direction: column; min-width: 0; } .ach span, .up span { color: var(--muted); font-size: 12px; } .ach em, .up em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ach.ready { border-color: var(--gold); } .ach.claimed { opacity: .6; }
.up.here { border-color: var(--mint); } .pips { color: var(--mint); font-size: 12px; } .ap { color: var(--mint); font-style: normal; }
.seg { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 999px; padding: 3px; margin: 6px 0 8px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; } .seg button.on { background: var(--mint); color: #04140c; }
.rich { display: flex; flex-direction: column; gap: 5px; }
.rr { display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 8px 11px; }
.rr i { font-style: normal; font: 800 14px Orbitron, sans-serif; color: var(--mint); width: 26px; } .rr > div { flex: 1; display: flex; flex-direction: column; min-width: 0; } .rr span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rr em { font-style: normal; font-weight: 800; color: var(--gold); }
.rr.me { border-color: var(--mint); background: rgba(122,255,176,.08); }

/* ---------- FlorbOS ---------- */
#comp { z-index: 240; }
.compCard { width: min(760px, 100%); height: min(92%, 760px); display: flex; flex-direction: column; background: linear-gradient(180deg, #0a1a30, #060a14); border: 1px solid rgba(159,247,255,.3); border-radius: 22px; overflow: hidden; box-shadow: 0 0 60px rgba(106,232,255,.15), 0 30px 80px rgba(0,0,0,.6); }
.compHead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(159,247,255,.15); }
.compHead b { font: 900 20px Orbitron, sans-serif; color: #9ff7ff; } .compHead span { flex: 1; color: var(--gold); font-weight: 800; text-align: right; }
#compTabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; border-bottom: 1px solid rgba(159,247,255,.1); }
#compTabs button { flex: none; border: 0; background: rgba(255,255,255,.05); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; color: #b8d8e8; } #compTabs button.on { background: #9ff7ff; color: #04121a; }
#compBody { flex: 1; overflow-y: auto; padding: 12px 14px 20px; -webkit-overflow-scrolling: touch; }
#compBody h4 { margin: 16px 0 6px; color: #9ff7ff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.cartBar { position: sticky; top: -12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #0c1a30; border: 1px solid rgba(159,247,255,.25); border-radius: 14px; padding: 8px 10px; flex-wrap: wrap; }
.pcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 6px; }
.pc, .pr { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 8px 9px; }
.pc.locked { opacity: .45; }
.pcIcon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 22px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); } .pcIcon.sm { width: 34px; height: 34px; font-size: 18px; }
.pcInfo, .prInfo { flex: 1; display: flex; flex-direction: column; min-width: 0; } .pcInfo span, .prInfo span { color: var(--muted); font-size: 12px; } .pcInfo em { font-style: normal; font-size: 11px; color: #9ff7ff; }
.qty { display: flex; align-items: center; gap: 6px; } .qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: #14203a; font-weight: 900; } .qty b { min-width: 34px; text-align: center; }
.lock { font-style: normal; }
.prices { display: flex; flex-direction: column; gap: 6px; }
.v { font-style: normal; font-size: 11px; font-weight: 800; } .v.g { color: #5aff9a; } .v.y { color: #ffd23a; } .v.o { color: #ff9a3a; } .v.r { color: var(--red); }
.nameRow { display: flex; gap: 8px; } .nameRow input { flex: 1; min-width: 0; background: #070b14; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 9px 12px; color: var(--ink); font: inherit; font-size: 16px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.sw { border: 2px solid rgba(255,255,255,.1); border-radius: 12px; padding: 30px 8px 6px; background: var(--c, #333); display: flex; flex-direction: column; align-items: flex-start; text-align: left; position: relative; color: #fff; text-shadow: 0 1px 3px #000; }
.sw.on { border-color: var(--mint); } .sw span { font-weight: 700; font-size: 12px; } .sw em { font-style: normal; font-size: 11px; }
.sw.fl-plain { background: #8a929e; } .sw.fl-checker { background: repeating-conic-gradient(#1a1a22 0 25%, #e8e8ee 0 50%) 0 0/20px 20px; } .sw.fl-stars { background: radial-gradient(#fff 1px, transparent 1px) 0 0/12px 12px, #0a0c1c; } .sw.fl-gold { background: linear-gradient(135deg, #c8962a, #f0c868); } .sw.fl-lava { background: linear-gradient(135deg, #1a0a08 40%, #ff6a1a 50%, #1a0a08 60%); }
.log { width: 100%; border-collapse: collapse; font-size: 13px; } .log th { color: var(--muted); text-align: left; font-weight: 600; } .log td, .log th { padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }

@media (max-width: 560px) {
  #hTop { flex-direction: column; gap: 6px; }
  #tasks { top: calc(var(--top) + 104px + env(safe-area-inset-top)); width: min(250px, 66vw); font-size: 12px; }
  #moneyCard { padding: 5px 10px; } #clockCard { padding: 5px 10px; }
  .pcs { grid-template-columns: 1fr; }
  #tillUI { bottom: calc(6px + env(safe-area-inset-bottom)); }
  #talkUI { bottom: calc(6px + env(safe-area-inset-bottom)); }
}
