/* PUMP PARK (was Scope Park): candy game UI. Coiny (display) + Grandstander (text). Chunky stickers, thick outlines, pressed buttons. */
@font-face { font-family: Coiny; src: url(/fonts/coiny.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Grand; src: url(/fonts/grandstander.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --pink: #ff4fa3; --pink-d: #c4246f; --grape: #7a4dff; --grape-d: #4b23c4; --blue: #2fb8ff; --blue-d: #1077c4;
  --yellow: #ffd23f; --yellow-d: #d89a00; --mint: #3ee8a8; --mint-d: #12a56f; --orange: #ff9a3c; --orange-d: #d0620e;
  --ink: #2a1650; --ink2: #4a3480; --paper: #fff8fe; --night: #21124f; --night2: #2d1a6b; --night3: #3b2490; --line: rgba(255,255,255,.12);
  --up: #3dff9a; --dn: #ff4d7d; --txt: #f6f0ff; --dim: #b9a8ec;
  --r: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #7fd6ff; font-family: Grand, system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; user-select: none; }
canvas#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; touch-action: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; }
kbd { font-family: Grand; font-weight: 800; font-size: 11px; background: rgba(42,22,80,.85); color: #fff; padding: 1px 6px 2px; border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.35); white-space: nowrap; }
[hidden] { display: none !important; }
.num, .n { font-variant-numeric: tabular-nums; }

/* ---------- scrollbars: thin, candy ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.45); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

/* ---------- buttons ---------- */
.btn { --c: var(--yellow); --d: var(--yellow-d); --t: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px 10px; border-radius: 16px;
  background: var(--c); color: var(--t); font-family: Coiny; font-size: 15px; letter-spacing: .02em; box-shadow: 0 5px 0 var(--d), 0 8px 14px rgba(30,10,70,.25); transition: transform .08s, box-shadow .08s, filter .15s; position: relative; top: 0; white-space: nowrap; }
.btn:hover { filter: brightness(1.07) saturate(1.08); transform: translateY(-1px); }
.btn:active, .btn.press { transform: translateY(4px); box-shadow: 0 1px 0 var(--d), 0 3px 6px rgba(30,10,70,.2); }
.btn.pink { --c: var(--pink); --d: var(--pink-d); --t: #fff; }
.btn.grape { --c: var(--grape); --d: var(--grape-d); --t: #fff; }
.btn.blue { --c: var(--blue); --d: var(--blue-d); --t: #fff; }
.btn.mint { --c: var(--mint); --d: var(--mint-d); --t: #06301f; }
.btn.orange { --c: var(--orange); --d: var(--orange-d); --t: #fff; }
.btn.red { --c: #ff4d6d; --d: #b5173a; --t: #fff; }
.btn.ghost { --c: rgba(255,255,255,.12); --d: rgba(0,0,0,.25); --t: #fff; box-shadow: 0 4px 0 var(--d); }
.btn.white { --c: #fff; --d: #c9b8ff; --t: var(--ink); }
.btn.big { font-size: 22px; padding: 14px 28px 16px; border-radius: 22px; box-shadow: 0 7px 0 var(--d), 0 12px 22px rgba(30,10,70,.3); }
.btn.sm { font-size: 13px; padding: 6px 11px 7px; border-radius: 12px; box-shadow: 0 4px 0 var(--d); }
.btn.xs { font-size: 12px; padding: 4px 9px 5px; border-radius: 10px; box-shadow: 0 3px 0 var(--d); }
.btn[disabled] { filter: grayscale(.7) brightness(.85); cursor: default; transform: none; }

/* ---------- loading: candy dusk, bouncing 3D logo, your gummy, the gumball rain, an iris into the park ---------- */
@property --iris { syntax: '<length>'; inherits: false; initial-value: 0px; }
#loading { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: linear-gradient(180deg, #3b1aa8 0%, #7a3df0 30%, #d651d9 58%, #ff7fa8 78%, #ffc078 100%); display: grid; place-items: center; }
#loading.out { animation: iris 0.85s cubic-bezier(.6,0,.2,1) forwards; -webkit-mask: radial-gradient(circle at 50% 56%, transparent var(--iris), #000 calc(var(--iris) + 1px)); mask: radial-gradient(circle at 50% 56%, transparent var(--iris), #000 calc(var(--iris) + 1px)); }
@keyframes iris { from { --iris: 0px; } to { --iris: 150vmax; } }
#loading.out .ld-center { animation: ldOut .5s ease-in forwards; }
@keyframes ldOut { to { transform: scale(1.12); opacity: 0; } }
.ld-glow { position: absolute; left: 50%; bottom: -30vh; width: 120vmax; height: 70vh; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255,230,170,.75), rgba(255,180,120,.25) 40%, transparent 70%); pointer-events: none; }
.ld-clouds i { position: absolute; height: 80px; border-radius: 60px; background: #fff; opacity: .55; filter: blur(2px); animation: drift linear infinite; box-shadow: 40px -26px 0 -6px #fff, 90px -8px 0 -2px #fff; }
.ld-clouds i:nth-child(1) { top: 12%; width: 180px; animation-duration: 48s; animation-delay: -6s; }
.ld-clouds i:nth-child(2) { top: 26%; width: 240px; animation-duration: 62s; animation-delay: -30s; opacity: .4; }
.ld-clouds i:nth-child(3) { top: 8%; width: 140px; animation-duration: 40s; animation-delay: -22s; }
.ld-clouds i:nth-child(4) { top: 40%; width: 200px; animation-duration: 70s; animation-delay: -50s; opacity: .3; }
.ld-clouds i:nth-child(5) { top: 18%; width: 120px; animation-duration: 36s; animation-delay: -12s; opacity: .45; }
.ld-clouds i:nth-child(6) { top: 33%; width: 160px; animation-duration: 54s; animation-delay: -40s; opacity: .35; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
#ldRain { position: absolute; inset: 0; pointer-events: none; }
.ld-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -4vh; }
.ld-logo { font-family: Coiny; line-height: .82; display: flex; flex-direction: column; align-items: center; font-size: clamp(64px, 10vw, 138px); letter-spacing: .02em; }
.ld-logo span { display: inline-block; animation: lb 1.8s cubic-bezier(.3,1.6,.5,1) infinite; animation-delay: calc(var(--i) * .09s); }
.ld-logo .w1 span { color: #ffd23f; text-shadow: 0 2px 0 #ffb800, 0 4px 0 #f5a300, 0 6px 0 #e08f00, 0 8px 0 #c97a00, 0 10px 0 #b06600, 0 12px 0 #8f5200, 0 16px 18px rgba(60,10,80,.45); -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }
.ld-logo .w2 { margin-top: 4px; }
.ld-logo .w2 span { color: #fff; text-shadow: 0 2px 0 #ffd6ee, 0 4px 0 #ff9fd2, 0 6px 0 #ff7cc0, 0 8px 0 #f45ab0, 0 10px 0 #d9409a, 0 12px 0 #b42a7f, 0 16px 18px rgba(60,10,80,.45); }
@keyframes lb { 0%, 62%, 100% { transform: translateY(0) rotate(0) scale(1); } 20% { transform: translateY(-16px) rotate(-5deg) scale(1.06, .95); } 40% { transform: translateY(2px) rotate(2deg) scale(.97, 1.04); } }
.ld-sub { margin-top: 14px; font-family: Coiny; font-size: clamp(15px, 1.4vw, 20px); color: #fff; letter-spacing: .03em; text-shadow: 0 3px 0 rgba(60,10,90,.35); }
.ld-stage { position: relative; width: 260px; height: 230px; margin-top: 2px; }
#ldGummy { width: 260px; height: 260px; position: absolute; left: 0; top: -20px; }
.ld-shadow { position: absolute; left: 50%; bottom: 14px; width: 120px; height: 18px; transform: translateX(-50%); border-radius: 50%; background: rgba(60,10,90,.28); filter: blur(3px); }
.ld-bar { width: min(440px, 80vw); height: 22px; border-radius: 14px; background: rgba(255,255,255,.25); border: 4px solid #fff; box-shadow: 0 6px 0 rgba(60,10,90,.25), inset 0 2px 6px rgba(0,0,0,.15); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 8%; border-radius: 10px; background: repeating-linear-gradient(-45deg, #ffd23f 0 12px, #ff9a3c 12px 24px); background-size: 34px 34px; animation: stripes .6s linear infinite; transition: width .4s cubic-bezier(.3,1.3,.5,1); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
@keyframes stripes { to { background-position: 34px 0; } }
.ld-steps { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.ld-steps span { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.18); color: #fff; padding: 5px 12px 6px 6px; border-radius: 20px; font-weight: 800; font-size: 13px; transition: background .3s; }
.ld-steps span i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); border-top-color: #fff; animation: spinI .8s linear infinite; }
.ld-steps span.done { background: #fff; color: var(--ink); }
.ld-steps span.done i { animation: popI .35s cubic-bezier(.3,1.8,.5,1); border: 0; background: var(--mint); position: relative; }
.ld-steps span.done i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #063; font: 900 12px Grand; }
@keyframes spinI { to { transform: rotate(360deg); } }
@keyframes popI { from { transform: scale(0); } }
.ld-chips { display: flex; gap: 6px; margin-top: 12px; min-height: 32px; justify-content: center; flex-wrap: wrap; max-width: 92vw; }
.ld-chip { display: flex; align-items: center; gap: 6px; background: rgba(33,18,79,.78); color: #fff; padding: 3px 11px 3px 3px; border-radius: 16px; font-size: 13px; font-weight: 800; animation: chipIn .4s cubic-bezier(.3,1.7,.5,1); }
.ld-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #fff3; }
.ld-chip b { font-family: Coiny; font-weight: 400; color: var(--yellow); }
.ld-chip span { color: var(--mint); }
@keyframes chipIn { from { transform: scale(.4) translateY(10px); opacity: 0; } }
.ld-msg { margin-top: 12px; background: #fff; color: var(--ink); font-weight: 800; padding: 8px 14px; border-radius: 14px; }
.ld-foot { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 2px 4px rgba(60,10,90,.5); }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud > *, #hud button, #hud input { pointer-events: auto; }
.hud-tl { position: absolute; left: 16px; top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: #fff; border-radius: 40px; box-shadow: 0 5px 0 #c9b8ff, 0 8px 18px rgba(30,10,70,.2); transform: rotate(-1deg); }
.me-card canvas { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(#bde9ff, #e8d8ff); }
.me-card b { font-family: Coiny; font-size: 18px; display: block; color: var(--ink); text-align: left; line-height: 1.05; }
.me-card small { font-weight: 800; color: var(--grape); font-size: 12px; display: block; text-align: left; }
.zone-pill { font-family: Coiny; font-size: 14px; color: #fff; background: var(--grape); padding: 5px 14px 6px; border-radius: 20px; box-shadow: 0 4px 0 var(--grape-d); letter-spacing: .04em; transform: rotate(1deg); }
.hud-tc { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wallet-pill { display: flex; align-items: center; gap: 12px; background: var(--night); color: #fff; padding: 6px 16px 6px 6px; border-radius: 40px; box-shadow: 0 5px 0 #120a33, 0 10px 24px rgba(30,10,70,.3); border: 3px solid #fff; }
.mode { display: flex; background: rgba(255,255,255,.1); border-radius: 30px; padding: 3px; }
.mode button { font-family: Coiny; font-size: 13px; padding: 5px 12px 6px; border-radius: 30px; color: var(--dim); letter-spacing: .04em; }
.mode button.on[data-m=paper] { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-d); }
.mode button.on[data-m=real] { background: var(--mint); color: #06301f; box-shadow: 0 3px 0 var(--mint-d); }
.bal { display: flex; align-items: baseline; gap: 4px; }
.bal b { font-family: Coiny; font-size: 22px; font-variant-numeric: tabular-nums; }
.bal span { font-family: Coiny; font-size: 13px; color: var(--dim); }
.bal small { font-weight: 700; color: var(--dim); font-size: 12px; margin-left: 4px; }
.pnl { font-family: Coiny; font-size: 14px; }
.pnl.up { color: var(--up); } .pnl.dn { color: var(--dn); }
.hud-tr { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; }
.hbtn { --c: var(--yellow); --d: var(--yellow-d); --t: var(--ink); display: flex; align-items: center; gap: 6px; padding: 8px 12px 9px; border-radius: 16px; background: var(--c); color: var(--t); font-family: Coiny; font-size: 14px; box-shadow: 0 5px 0 var(--d), 0 8px 14px rgba(30,10,70,.22); position: relative; transition: transform .08s; }
.hbtn:hover { transform: translateY(-2px) rotate(-1deg); }
.hbtn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--d); }
.hbtn.pink { --c: var(--pink); --d: var(--pink-d); --t: #fff; } .hbtn.blue { --c: var(--blue); --d: var(--blue-d); --t: #fff; } .hbtn.grape { --c: var(--grape); --d: var(--grape-d); --t: #fff; } .hbtn.mint { --c: var(--mint); --d: var(--mint-d); --t: #06301f; }
.hbtn kbd { font-size: 10px; padding: 0 5px 1px; background: rgba(0,0,0,.25); box-shadow: none; }
.hbtn em { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: #ff3355; color: #fff; font: 700 12px Grand; display: grid; place-items: center; font-style: normal; border: 2px solid #fff; padding: 0 4px; }
.hbtn i, .ico { width: 18px; height: 18px; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-scope { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h4v16H4zM10 9h4v11h-4zM16 6h4v14h-4z'/%3E%3C/svg%3E"); }
.ico-friends { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='8' r='4'/%3E%3Ccircle cx='17' cy='9' r='3'/%3E%3Cpath d='M1 20c0-4 3-7 7-7s7 3 7 7zM14 20c0-2-.6-4-1.8-5.4C13 14.2 15 13 17 13c3 0 6 2.4 6 7z'/%3E%3C/svg%3E"); }
.ico-crown { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 7l5 4 5-7 5 7 5-4-2 12H4z'/%3E%3C/svg%3E"); }
.ico-bag { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l-1.5 3h-3zM7 8h10c3 3 4 6 4 9 0 3-2 4-4 4H7c-2 0-4-1-4-4 0-3 1-6 4-9z'/%3E%3C/svg%3E"); }
.ico-gear { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2h4l.6 3 2.3 1 2.6-1.7 2.8 2.8L20.6 10l1 2.3 2.4.7v4l-3 .6-1 2.3 1.7 2.6-2.8 2.8-2.6-1.7-2.3 1-.6 2.9h-4l-.6-3-2.3-1-2.6 1.7-2.8-2.8L3.4 18l-1-2.3L0 14v-4l3-.6 1-2.3-1.7-2.6 2.8-2.8L7.7 3.4 10 2.6zM12 8a4 4 0 100 8 4 4 0 000-8z'/%3E%3C/svg%3E"); }
.ico-mic { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='8' y='2' width='8' height='13' rx='4'/%3E%3Cpath d='M5 11a7 7 0 0014 0h-2a5 5 0 01-10 0zM11 18h2v4h-2z'/%3E%3C/svg%3E"); }
#minimap { position: absolute; right: 16px; top: 74px; width: 150px; height: 150px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 5px 0 #c9b8ff, 0 10px 20px rgba(30,10,70,.25); background: #8ee86b; }
.online { position: absolute; right: 18px; top: 236px; background: #fff; color: var(--ink); padding: 4px 12px 5px; border-radius: 20px; font-weight: 800; font-size: 12px; box-shadow: 0 3px 0 #c9b8ff; display: flex; align-items: center; gap: 6px; }
.online i { width: 9px; height: 9px; border-radius: 50%; background: #2bd96b; box-shadow: 0 0 0 3px #2bd96b33; }

/* trade feed (left, under the player card) */
#feed { position: absolute; left: 16px; top: 118px; width: 330px; display: flex; flex-direction: column; gap: 5px; pointer-events: none !important; }
.fd { display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; background: rgba(33,18,79,.82); color: #fff; border-radius: 14px; font-weight: 700; font-size: 13px; animation: fdIn .35s cubic-bezier(.2,1.6,.4,1); transform-origin: left center; border-left: 5px solid var(--up); backdrop-filter: blur(4px); }
.fd.sell { border-left-color: var(--dn); }
.fd.out { animation: fdOut .4s forwards; }
.fd .av { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.fd img { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; flex: none; background: #fff3; }
.fd .w { font-family: Coiny; font-size: 12px; padding: 1px 7px 2px; border-radius: 8px; background: var(--up); color: #063; }
.fd.sell .w { background: var(--dn); color: #fff; }
.fd .tk { font-family: Coiny; color: var(--yellow); }
.fd .badge { font: 800 9px Grand; padding: 1px 5px; border-radius: 6px; background: var(--yellow); color: var(--ink); letter-spacing: .05em; }
.fd .badge.real { background: var(--mint); color: #063; }
.fd .nm { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes fdIn { from { transform: scale(.6) translateX(-30px); opacity: 0; } }
@keyframes fdOut { to { transform: translateX(-30px); opacity: 0; } }

/* party (left middle) */
#party { position: absolute; left: 16px; top: 50%; transform: translateY(-30%); width: 210px; background: rgba(255,255,255,.95); border-radius: 20px; padding: 10px; box-shadow: 0 5px 0 #c9b8ff, 0 10px 20px rgba(30,10,70,.2); }
#party h4 { margin: 0 0 6px; font-family: Coiny; font-weight: 400; font-size: 14px; color: var(--grape); display: flex; justify-content: space-between; align-items: center; }
.pm { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 12px; font-weight: 800; font-size: 13px; }
.pm .av { width: 28px; height: 28px; border-radius: 50%; flex: none; position: relative; }
.pm .av.talk { box-shadow: 0 0 0 3px var(--mint); }
.pm small { display: block; font-weight: 700; color: var(--ink2); font-size: 11px; }
.pm .lead { color: var(--yellow-d); }

/* chat */
.hud-bl { position: absolute; left: 16px; bottom: 16px; width: 400px; }
#chatLog { display: flex; flex-direction: column; gap: 3px; max-height: 210px; overflow: hidden; justify-content: flex-end; pointer-events: none !important; -webkit-mask: linear-gradient(transparent, #000 30%); mask: linear-gradient(transparent, #000 30%); }
#hud.chatting #chatLog { pointer-events: auto !important; overflow-y: auto; -webkit-mask: none; mask: none; background: rgba(33,18,79,.55); border-radius: 14px; padding: 6px; }
.cl { font-weight: 700; font-size: 14px; color: #fff; text-shadow: 0 1px 0 #2a1650, 0 0 4px #2a1650, 0 0 8px rgba(42,22,80,.6); line-height: 1.3; word-wrap: break-word; }
.cl b { font-family: Coiny; font-weight: 400; }
.cl .pt { color: var(--mint); }
.cl .sys { color: var(--yellow); }
.cl .ca { background: var(--yellow); color: var(--ink); padding: 0 6px; border-radius: 6px; cursor: pointer; text-shadow: none; font-size: 12px; }
.chat-in { display: flex; gap: 6px; margin-top: 6px; }
.chat-in input { flex: 1; border: 3px solid #fff; border-radius: 14px; padding: 8px 12px; background: rgba(33,18,79,.85); color: #fff; font-weight: 700; outline: none; }
.chat-in .ch { font-family: Coiny; background: var(--yellow); color: var(--ink); border-radius: 12px; padding: 0 12px; box-shadow: 0 3px 0 var(--yellow-d); font-size: 13px; }
.chat-in .ch.party { background: var(--mint); box-shadow: 0 3px 0 var(--mint-d); }
.chat-hint { margin-top: 6px; font-weight: 800; font-size: 12px; color: #fff; text-shadow: 0 1px 2px #2a1650; }

/* interaction prompt */
#prompt { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px 18px 8px 8px; border-radius: 40px; box-shadow: 0 6px 0 #c9b8ff, 0 14px 28px rgba(30,10,70,.3); animation: pop .25s cubic-bezier(.2,1.6,.4,1); cursor: pointer; }
#prompt img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #eee; border: 3px solid var(--yellow); }
#prompt .k { font-family: Coiny; width: 38px; height: 38px; border-radius: 12px; background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-d); display: grid; place-items: center; font-size: 20px; }
#prompt b { font-family: Coiny; font-size: 20px; }
#prompt small { display: block; font-weight: 800; color: var(--ink2); font-size: 12px; }
@keyframes pop { from { transform: translateX(-50%) scale(.5); opacity: 0; } }

/* voice + keys */
.hud-br { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#voiceBox { display: flex; align-items: center; gap: 10px; background: #fff; padding: 6px 16px 6px 6px; border-radius: 40px; box-shadow: 0 5px 0 #c9b8ff, 0 8px 18px rgba(30,10,70,.2); }
.mic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #b5a8d8; box-shadow: 0 4px 0 #7f73a8; }
.mic i { width: 22px; height: 22px; }
.mic.ptt { background: var(--blue); box-shadow: 0 4px 0 var(--blue-d); }
.mic.open { background: var(--mint); box-shadow: 0 4px 0 var(--mint-d); }
.mic.talk { animation: talk .5s ease-in-out infinite alternate; }
.mic.denied { background: #ff4d6d; box-shadow: 0 4px 0 #b5173a; }
@keyframes talk { to { transform: scale(1.1); box-shadow: 0 4px 0 var(--mint-d), 0 0 0 8px rgba(62,232,168,.3); } }
.vinfo b { font-family: Coiny; font-weight: 400; display: block; font-size: 14px; }
.vinfo small { font-weight: 800; font-size: 11px; color: var(--ink2); }
.keys { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: flex-end; max-width: 520px; font-weight: 800; font-size: 12px; color: #fff; text-shadow: 0 1px 2px #2a1650, 0 0 6px rgba(42,22,80,.5); }

/* ---------- toasts + tooltips ---------- */
#toasts { position: fixed; left: 50%; top: 132px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 40; pointer-events: none; }
.toast { background: #fff; color: var(--ink); font-weight: 800; padding: 10px 18px; border-radius: 18px; box-shadow: 0 5px 0 #c9b8ff, 0 10px 24px rgba(30,10,70,.25); animation: tIn .35s cubic-bezier(.2,1.6,.4,1); font-size: 15px; display: flex; gap: 10px; align-items: center; pointer-events: auto; max-width: 560px; }
.toast.good { background: var(--mint); color: #06301f; box-shadow: 0 5px 0 var(--mint-d); }
.toast.bad { background: #ff4d6d; color: #fff; box-shadow: 0 5px 0 #b5173a; }
.toast.big { font-family: Coiny; font-weight: 400; font-size: 26px; padding: 12px 26px; background: var(--yellow); box-shadow: 0 6px 0 var(--yellow-d); transform: rotate(-2deg); }
.toast .btn { pointer-events: auto; }
.toast.out { animation: tOut .3s forwards; }
@keyframes tIn { from { transform: translateY(-20px) scale(.6); opacity: 0; } }
@keyframes tOut { to { transform: translateY(-14px); opacity: 0; } }
#tip { position: fixed; z-index: 60; background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; padding: 5px 9px; border-radius: 9px; pointer-events: none; white-space: nowrap; }

/* ---------- windows (panels over the world) ---------- */
#layer { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#layer > * { pointer-events: auto; }
.shade { position: fixed; inset: 0; background: rgba(42,22,80,.35); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.win { position: fixed; background: var(--night); color: var(--txt); border-radius: 28px; border: 4px solid #fff; box-shadow: 0 8px 0 #120a33, 0 24px 60px rgba(20,5,60,.45); display: flex; flex-direction: column; overflow: hidden; animation: winIn .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes winIn { from { transform: translateY(30px) scale(.94); opacity: 0; } }
.win.light { background: var(--paper); color: var(--ink); box-shadow: 0 8px 0 #c9b8ff, 0 24px 60px rgba(20,5,60,.35); }
.win .wh { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px 20px; background: linear-gradient(100deg, var(--grape), var(--pink)); color: #fff; flex: none; }
.win .wh h2 { margin: 0; font-family: Coiny; font-weight: 400; font-size: 24px; letter-spacing: .02em; text-shadow: 0 3px 0 rgba(0,0,0,.18); flex: 1; display: flex; align-items: center; gap: 10px; }
.win .wh .x { width: 38px; height: 38px; border-radius: 14px; background: #fff; color: var(--pink); font-family: Coiny; font-size: 20px; box-shadow: 0 4px 0 #ffc3e3; flex: none; }
.win .wh .x:hover { transform: rotate(8deg); }
.win .wb { flex: 1; overflow: auto; min-height: 0; }
.tabs { display: flex; gap: 6px; padding: 10px 14px 0; flex: none; }
.tabs button { font-family: Coiny; font-size: 14px; padding: 7px 14px 8px; border-radius: 14px 14px 0 0; background: rgba(255,255,255,.07); color: var(--dim); }
.tabs button.on { background: var(--night3); color: #fff; }
.win.light .tabs button { background: #ece4ff; color: var(--ink2); } .win.light .tabs button.on { background: var(--grape); color: #fff; }

/* ---------- the memescope ---------- */
.scope { left: 24px; right: 24px; top: 24px; bottom: 24px; }
.scope .wh h2 small { font-family: Grand; font-weight: 800; font-size: 13px; opacity: .85; text-shadow: none; }
.sc-tools { display: flex; align-items: center; gap: 8px; }
.sc-tools input { width: 240px; border: 3px solid #fff; border-radius: 14px; padding: 6px 12px; background: rgba(255,255,255,.2); color: #fff; font-weight: 700; outline: none; }
.sc-tools input::placeholder { color: #ffffffb0; }
.qb { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.18); border-radius: 14px; padding: 4px 6px 4px 10px; font-family: Coiny; font-size: 13px; }
.qb input { width: 54px; border: 0; background: #fff; color: var(--ink); border-radius: 9px; padding: 3px 6px; font-family: Coiny; text-align: center; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; height: 100%; }
.col { display: flex; flex-direction: column; min-height: 0; border-right: 2px solid var(--line); }
.col:last-child { border-right: 0; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; height: 50px; flex: none; border-bottom: 2px solid var(--line); }
.col-h b { font-family: Coiny; font-weight: 400; font-size: 17px; }
.col-h .cnt { font-weight: 800; font-size: 12px; background: rgba(255,255,255,.12); padding: 1px 8px 2px; border-radius: 9px; }
.col-h .dot { width: 12px; height: 12px; border-radius: 50%; }
.col-h .cgo { margin-left: auto; }
.col-b { flex: 1; overflow-y: auto; min-height: 0; padding: 6px; }
.col-b.paused { box-shadow: inset 0 0 0 2px rgba(255,210,63,.35); border-radius: 12px; }
.card { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; padding: 9px; border-radius: 16px; cursor: pointer; position: relative; min-height: 112px; transition: background .12s; }
.card:hover { background: var(--night2); }
.card.flash-b { animation: flb .7s; } .card.flash-s { animation: fls .7s; }
@keyframes flb { 0% { background: rgba(61,255,154,.25); } } @keyframes fls { 0% { background: rgba(255,77,125,.22); } }
.card + .card { margin-top: 2px; }
.pic { width: 76px; height: 76px; position: relative; }
.pic img, .pic .ph { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; position: absolute; left: 6px; top: 6px; background: var(--night3); }
.pic .ph { display: grid; place-items: center; font-family: Coiny; font-size: 22px; color: #fff8; }
.pic svg { position: absolute; inset: 0; }
.pic .ca { position: absolute; left: 0; right: 0; bottom: -16px; text-align: center; font-size: 10px; font-weight: 700; color: var(--dim); }
.c-mid { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.l1 b { font-family: Coiny; font-weight: 400; font-size: 16px; color: #fff; white-space: nowrap; }
.l1 span { color: var(--dim); font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l1 .cp { width: 14px; height: 14px; flex: none; opacity: .55; cursor: copy; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8h12v12H8zM4 4h12v2H6v10H4z'/%3E%3C/svg%3E") center/contain no-repeat; color: #fff; }
.l2 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--dim); white-space: nowrap; }
.l2 .age { color: var(--mint); } .l2 .age.old { color: var(--yellow); }
.l2 .so { display: flex; gap: 4px; }
.l2 .so a { width: 16px; height: 16px; border-radius: 5px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: #fff; font-size: 9px; text-decoration: none; font-family: Coiny; }
.l2 .so a:hover { background: var(--blue); }
.l3 { display: flex; flex-wrap: wrap; gap: 4px; }
.bd { font-size: 11px; font-weight: 800; padding: 1px 6px 2px; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--dim); white-space: nowrap; }
.bd.g { color: var(--up); background: rgba(61,255,154,.1); } .bd.r { color: var(--dn); background: rgba(255,77,125,.12); } .bd.y { color: var(--yellow); background: rgba(255,210,63,.12); }
.c-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; font-weight: 800; color: var(--dim); white-space: nowrap; }
.c-right .mc { font-family: Coiny; font-weight: 400; font-size: 16px; }
.c-right .v b, .c-right .mc b { color: #fff; font-family: Coiny; font-weight: 400; }
.tier1 b { color: #fff !important; } .tier2 b { color: var(--blue) !important; } .tier3 b { color: var(--yellow) !important; } .tier4 b { color: var(--mint) !important; } .tier5 b { color: var(--pink) !important; }
.ratio { width: 80px; height: 5px; border-radius: 3px; background: var(--dn); overflow: hidden; }
.ratio i { display: block; height: 100%; background: var(--up); }
.qbuy { margin-top: auto; }
.qbuy.done { --c: var(--mint); --d: var(--mint-d); }
.empty { text-align: center; padding: 40px 10px; color: var(--dim); font-weight: 800; }
.sc-foot { display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-top: 2px solid var(--line); font-size: 12px; font-weight: 800; color: var(--dim); flex: none; }
.sc-foot .live { color: var(--up); display: flex; align-items: center; gap: 6px; }
.sc-foot .live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- coin window ---------- */
.coinw { right: 20px; top: 20px; bottom: 20px; width: min(980px, calc(100vw - 40px)); }
.coinw .wh { padding: 10px 14px 10px 12px; }
.ch-pic { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; border: 3px solid #fff; background: var(--night3); flex: none; }
.ch-id { flex: 1; min-width: 0; }
.ch-id .t { font-family: Coiny; font-size: 24px; display: flex; align-items: center; gap: 8px; line-height: 1.05; }
.ch-id .t span { font-family: Grand; font-weight: 800; font-size: 14px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-id .s { display: flex; gap: 10px; font-size: 12px; font-weight: 800; opacity: .95; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.ch-id .s a { color: #fff; }
.ch-id .s .mint { cursor: copy; background: rgba(255,255,255,.2); padding: 0 6px; border-radius: 7px; }
.ch-stats { display: flex; gap: 6px; flex: none; }
.ch-stats div { background: rgba(255,255,255,.18); border-radius: 14px; padding: 4px 10px 5px; text-align: right; min-width: 78px; }
.ch-stats small { display: block; font-size: 10px; font-weight: 800; opacity: .85; letter-spacing: .05em; }
.ch-stats b { font-family: Coiny; font-weight: 400; font-size: 17px; font-variant-numeric: tabular-nums; }
.coin-body { display: grid; grid-template-columns: 1fr 300px; grid-template-rows: minmax(0, 1fr) 260px; gap: 12px; padding: 12px; flex: 1; min-height: 0; }
.chart-box { grid-column: 1; grid-row: 1; background: #170c3d; border-radius: 20px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 2px solid var(--line); }
.chart-tools { display: flex; align-items: center; gap: 4px; padding: 8px 10px; flex: none; }
.chart-tools button { font-family: Coiny; font-size: 12px; padding: 3px 9px 4px; border-radius: 9px; color: var(--dim); background: rgba(255,255,255,.06); }
.chart-tools button.on { background: var(--yellow); color: var(--ink); }
.chart-tools .lab { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--dim); }
.chart-cv { flex: 1; min-height: 0; position: relative; }
.chart-cv canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.trade-box { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.tb-card { background: var(--night2); border-radius: 20px; padding: 12px; border: 2px solid var(--line); }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.bs button { font-family: Coiny; font-size: 16px; padding: 8px 0 9px; border-radius: 14px; background: rgba(255,255,255,.07); color: var(--dim); }
.bs button.on.b { background: var(--up); color: #053d22; box-shadow: 0 4px 0 #14a35e; }
.bs button.on.s { background: var(--dn); color: #fff; box-shadow: 0 4px 0 #b5173a; }
.tmode { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--dim); margin-bottom: 8px; }
.tmode .m { font-family: Coiny; padding: 2px 9px 3px; border-radius: 9px; background: var(--yellow); color: var(--ink); font-size: 12px; }
.tmode .m.real { background: var(--mint); color: #063; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.presets button { font-family: Coiny; font-size: 14px; padding: 8px 0 9px; border-radius: 12px; background: var(--night3); color: #fff; box-shadow: 0 3px 0 #1a0f45; }
.presets button:hover { background: var(--grape); }
.presets button:active { transform: translateY(2px); box-shadow: 0 1px 0 #1a0f45; }
.amt { display: flex; gap: 6px; margin-bottom: 10px; }
.amt input { flex: 1; min-width: 0; border-radius: 12px; border: 2px solid var(--line); background: #170c3d; color: #fff; padding: 8px 10px; font-family: Coiny; font-size: 16px; outline: none; }
.amt input:focus { border-color: var(--yellow); }
.amt span { align-self: center; font-family: Coiny; color: var(--dim); }
.trade-box .go { width: 100%; font-size: 18px; }
.tb-note { font-size: 11px; font-weight: 700; color: var(--dim); margin-top: 8px; line-height: 1.35; }
.tb-note a { color: var(--yellow); }
.pos-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; padding: 3px 0; }
.pos-row span { color: var(--dim); }
.pos-big { font-family: Coiny; font-size: 26px; text-align: center; margin: 4px 0 6px; }
.pos-big.up { color: var(--up); } .pos-big.dn { color: var(--dn); }
.curvebar { height: 12px; border-radius: 8px; background: #170c3d; overflow: hidden; margin: 6px 0 2px; border: 2px solid var(--line); }
.curvebar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--orange) 8px 16px); border-radius: 6px; transition: width .5s; }
.here-list { display: flex; flex-direction: column; gap: 4px; }
.lists { grid-column: 1; grid-row: 2; background: var(--night2); border-radius: 20px; display: flex; flex-direction: column; min-height: 0; border: 2px solid var(--line); overflow: hidden; }
.lists .tabs { padding: 8px 10px 0; }
.lists .tabs button { border-radius: 12px; padding: 5px 12px 6px; font-size: 13px; }
.lists .tabs button.on { background: var(--grape); }
.lists .tabs .note { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--dim); align-self: center; }
.tbl { flex: 1; overflow-y: auto; min-height: 0; padding: 4px 8px 8px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 12px; font-weight: 700; }
.tbl th { text-align: left; color: var(--dim); font-size: 11px; font-weight: 800; padding: 6px 6px; position: sticky; top: 0; background: var(--night2); white-space: nowrap; }
.tbl td { padding: 4px 6px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl th.n, .tbl td.n { text-align: right; }
.tbl tr.b td.ty { color: var(--up); } .tbl tr.s td.ty { color: var(--dn); }
.tbl tr.b td.u { color: var(--up); } .tbl tr.s td.u { color: var(--dn); }
.tbl tr.me td { background: rgba(255,210,63,.1); }
.tbl tr.new td { animation: flb 1s; }
.tbl .tag { font: 800 9px Grand; padding: 1px 5px; border-radius: 6px; margin-left: 4px; background: var(--yellow); color: var(--ink); }
.tbl .tag.dev { background: var(--pink); color: #fff; } .tbl .tag.fr { background: var(--mint); color: #063; }
.tbl a { color: var(--blue); text-decoration: none; }

/* ---------- light panels: friends, profile, board, bags, settings ---------- */
.side { right: 20px; top: 84px; width: 420px; max-height: calc(100vh - 110px); }
.mid { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 560px; max-height: calc(100vh - 80px); animation: none; }
.locker { left: 20px; top: 84px; width: 380px; bottom: 20px; }
.pad { padding: 14px 16px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; }
.row + .row { margin-top: 4px; }
.row:hover { background: #f1eaff; }
.row .av { width: 40px; height: 40px; border-radius: 50%; flex: none; position: relative; }
.row .av.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #2bd96b; border: 2px solid #fff; }
.row .who { flex: 1; min-width: 0; }
.row .who b { font-family: Coiny; font-weight: 400; font-size: 16px; display: flex; gap: 6px; align-items: center; }
.row .who small { display: block; font-weight: 800; color: var(--ink2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.real-b { font: 800 9px Grand; background: var(--mint); color: #063; padding: 1px 6px; border-radius: 6px; letter-spacing: .05em; }
.sec { font-family: Coiny; font-size: 15px; color: var(--grape); margin: 12px 4px 6px; display: flex; align-items: center; gap: 8px; }
.sec:first-child { margin-top: 0; }
.codebox { display: flex; align-items: center; gap: 10px; background: linear-gradient(100deg, #fff3b0, #ffe0f2); border-radius: 18px; padding: 10px 14px; }
.codebox b { font-family: Coiny; font-size: 26px; letter-spacing: .12em; color: var(--ink); flex: 1; }
.addf { display: flex; gap: 6px; margin-top: 10px; }
.addf input { flex: 1; border: 3px solid #e4d8ff; border-radius: 14px; padding: 8px 12px; font-family: Coiny; font-size: 16px; text-transform: uppercase; letter-spacing: .1em; outline: none; background: #fff; color: var(--ink); }
.addf input:focus { border-color: var(--grape); }
.muted { color: var(--ink2); font-weight: 700; font-size: 13px; padding: 8px; }
.lb .rk { font-family: Coiny; width: 28px; text-align: center; font-size: 18px; color: var(--ink2); }
.lb .row:nth-child(1) .rk { color: #e6a800; } .lb .row:nth-child(2) .rk { color: #9aa4b8; } .lb .row:nth-child(3) .rk { color: #d07a3a; }
.lb .pn { font-family: Coiny; font-size: 16px; }
.up { color: #10a85a; } .dn { color: #e0244f; }
.win:not(.light) .up { color: var(--up); } .win:not(.light) .dn { color: var(--dn); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { width: 62px; height: 62px; border-radius: 18px; background: #fff; border: 3px solid #e4d8ff; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink2); text-align: center; line-height: 1.1; padding: 4px; }
.opt.on { border-color: var(--grape); background: #f1eaff; box-shadow: 0 3px 0 var(--grape); }
.opt canvas { width: 46px; height: 46px; }
.lk-name { width: 100%; border: 3px solid #e4d8ff; border-radius: 16px; padding: 10px 14px; font-family: Coiny; font-size: 22px; outline: none; color: var(--ink); background: #fff; }
.lk-name:focus { border-color: var(--grape); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-grid div { background: #f1eaff; border-radius: 14px; padding: 8px; text-align: center; }
.stat-grid small { display: block; font-size: 11px; font-weight: 800; color: var(--ink2); }
.stat-grid b { font-family: Coiny; font-weight: 400; font-size: 18px; }
.wal-box { background: #f1eaff; border-radius: 18px; padding: 12px; }
.wal-box p { margin: 0 0 8px; font-weight: 700; font-size: 13px; color: var(--ink2); line-height: 1.4; }
.wal-list { display: flex; flex-direction: column; gap: 6px; }
.wal-list button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #fff; font-weight: 800; box-shadow: 0 3px 0 #d7c9ff; }
.wal-list button img { width: 26px; height: 26px; border-radius: 8px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 6px; border-bottom: 2px dashed #ece4ff; font-weight: 800; }
.set-row:last-child { border-bottom: 0; }
.set-row small { display: block; font-weight: 700; color: var(--ink2); font-size: 12px; }
.set-row input[type=range] { width: 150px; accent-color: var(--grape); }
.set-row input[type=number] { width: 80px; border: 3px solid #e4d8ff; border-radius: 12px; padding: 4px 8px; font-family: Coiny; text-align: center; }
.sw { width: 52px; height: 30px; border-radius: 20px; background: #d9cff5; position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.sw.on { background: var(--mint); } .sw.on::after { left: 26px; }
.bag-row .who b span { font-family: Grand; font-weight: 800; font-size: 12px; color: var(--ink2); }
.bag-row img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: #eee; }
.bag-row .val { text-align: right; font-weight: 800; font-size: 13px; }
.bag-row .val b { font-family: Coiny; font-weight: 400; font-size: 16px; display: block; }

/* the player card (click someone) */
.pcard { width: 380px; }
.pc-top { display: flex; gap: 14px; align-items: center; }
.pc-top canvas { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(#bde9ff, #e8d8ff); flex: none; }
.pc-top h3 { margin: 0; font-family: Coiny; font-weight: 400; font-size: 26px; }
.pc-top small { font-weight: 800; color: var(--ink2); }
.pc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini-trades { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.mini-trades div { display: flex; justify-content: space-between; font-weight: 800; font-size: 12px; background: #f6f1ff; padding: 5px 10px; border-radius: 10px; }

/* invites pop at the bottom */
.invite { position: fixed; left: 50%; bottom: 190px; transform: translateX(-50%); z-index: 30; background: #fff; border-radius: 24px; padding: 12px 14px 12px 12px; display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 0 #c9b8ff, 0 18px 40px rgba(30,10,70,.3); animation: pop .3s cubic-bezier(.2,1.6,.4,1); }
.invite .av { width: 46px; height: 46px; border-radius: 50%; }
.invite b { font-family: Coiny; font-weight: 400; font-size: 17px; display: block; }
.invite small { font-weight: 800; color: var(--ink2); }

/* name tags + bubbles drawn in HTML over the world */
#tags { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.bubble { position: absolute; transform: translate(-50%, -100%); background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; padding: 7px 12px; border-radius: 16px; max-width: 260px; box-shadow: 0 4px 0 #c9b8ff; animation: pop2 .25s cubic-bezier(.2,1.6,.4,1); white-space: normal; text-align: center; line-height: 1.25; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bubble.party { background: var(--mint); } .bubble.party::after { border-top-color: var(--mint); }
@keyframes pop2 { from { transform: translate(-50%, -100%) scale(.4); opacity: 0; } }
.float-pnl { position: absolute; transform: translate(-50%, -100%); font-family: Coiny; font-size: 22px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25), 0 0 10px rgba(0,0,0,.25); animation: rise 2.2s ease-out forwards; white-space: nowrap; }
.float-pnl.b { color: var(--up); } .float-pnl.s { color: var(--dn); }
@keyframes rise { 0% { transform: translate(-50%, -60%) scale(.5); opacity: 0; } 15% { transform: translate(-50%, -100%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -260%) scale(1); opacity: 0; } }

@media (max-width: 1100px) {
  .coin-body { grid-template-columns: 1fr; grid-template-rows: 340px auto 260px; overflow-y: auto; }
  .trade-box { grid-column: 1; grid-row: 2; }
  .lists { grid-row: 3; }
  .cols { grid-template-columns: 1fr; }
  .col { display: none; } .col.show { display: flex; }
  .hud-tr span, .hud-tr kbd { display: none; }
  .keys { display: none; }
  #feed { width: 260px; }
  .hud-bl { width: 300px; }
  .ch-stats div:nth-child(n+3) { display: none; }
}

/* name tags over other players */
.ntag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.92); color: var(--ink); font-family: Coiny; font-size: 15px; padding: 3px 11px 4px; border-radius: 14px; box-shadow: 0 3px 0 rgba(42,22,80,.25); white-space: nowrap; transform-origin: 50% 100%; will-change: transform; }
.ntag em { font: 800 9px Grand; font-style: normal; background: var(--mint); color: #063; padding: 1px 5px; border-radius: 6px; letter-spacing: .05em; }
.ntag .tk { display: none; width: 14px; height: 14px; background: var(--mint-d); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='8' y='2' width='8' height='13' rx='4'/%3E%3Cpath d='M5 11a7 7 0 0014 0h-2a5 5 0 01-10 0zM11 18h2v4h-2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ntag.talk { box-shadow: 0 0 0 3px var(--mint), 0 3px 0 rgba(42,22,80,.25); }
.ntag.talk .tk { display: block; }
.ntag.mate { background: var(--mint); color: #06301f; }
.ntag.fr { background: #fff3b0; }

/* ---------- the room dock (right side while you stand in a coin's room) ---------- */
.dock { right: 14px; top: 78px; bottom: 14px; width: 392px; border-radius: 26px; }
.dock .wh { padding: 10px 10px 10px 10px; gap: 10px; }
.dock .ch-pic { width: 50px; height: 50px; }
.dock .ch-id .t { font-size: 22px; }
.dock .wb { display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; }
.dk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: none; }
.dk-stats div { background: var(--night2); border-radius: 14px; padding: 6px 8px; border: 2px solid var(--line); }
.dk-stats small { display: block; font-size: 9px; font-weight: 800; color: var(--dim); letter-spacing: .05em; }
.dk-stats b { font-family: Coiny; font-weight: 400; font-size: 16px; font-variant-numeric: tabular-nums; }
.dk-links { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.dk-links a { font-size: 11px; font-weight: 800; color: #fff; background: rgba(255,255,255,.1); padding: 3px 9px; border-radius: 9px; text-decoration: none; }
.dk-links a:hover { background: var(--blue); }
.dock .chart-tools { background: var(--night2); border-radius: 14px; border: 2px solid var(--line); flex: none; }
.dock .tb-card { padding: 10px; border-radius: 18px; flex: none; }
.dock .tb-card.mini .pos-row { font-size: 12px; padding: 2px 0; }
.dock .pos-big { font-size: 22px; margin: 0 0 4px; }
.dock .lists { flex: none; height: 260px; }
.dock .back { flex: none; width: 100%; font-size: 17px; }
.dock .go { width: 100%; font-size: 18px; }
#roomList { position: absolute; left: 16px; top: 118px; width: 240px; background: rgba(33,18,79,.86); color: #fff; border-radius: 20px; padding: 10px; border: 3px solid #fff; box-shadow: 0 5px 0 #120a33; backdrop-filter: blur(4px); }
#roomList h4 { margin: 0 0 6px; font-family: Coiny; font-weight: 400; font-size: 15px; display: flex; align-items: center; gap: 8px; }
#roomList h4 img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
#roomList .pm { color: #fff; }
#roomList .pm small { color: var(--dim); }
#roomList .tip2 { font-size: 11px; font-weight: 700; color: var(--dim); margin-top: 6px; }
body.in-room #feed { top: auto; bottom: 250px; }
body.in-room #minimap, body.in-room .online { display: none; }
body.in-room .hud-tr { right: 420px; }
body.in-room .hud-br { right: 420px; }
canvas#gl.aim { cursor: pointer; }
#aimTip { position: fixed; z-index: 4; pointer-events: none; background: #fff; color: var(--ink); font-family: Coiny; font-size: 14px; padding: 5px 12px 6px; border-radius: 14px; box-shadow: 0 4px 0 #c9b8ff; white-space: nowrap; transform: translate(14px, 14px); }
#aimTip small { font-family: Grand; font-weight: 800; color: var(--ink2); margin-left: 6px; }

/* ---------- music player ---------- */
#musicBox { display: flex; align-items: center; gap: 9px; background: #fff; padding: 6px 12px 6px 6px; border-radius: 40px; box-shadow: 0 5px 0 #c9b8ff, 0 8px 18px rgba(30,10,70,.2); }
.mu-play { width: 42px; height: 42px; border-radius: 50%; background: var(--grape); box-shadow: 0 4px 0 var(--grape-d); display: grid; place-items: center; }
.mu-play i { width: 0; height: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
#musicBox.on .mu-play { background: var(--pink); box-shadow: 0 4px 0 var(--pink-d); }
#musicBox.on .mu-play i { width: 12px; height: 14px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.mu-info { min-width: 120px; }
.mu-info b { font-family: Coiny; font-weight: 400; font-size: 13px; display: block; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.mu-info small { font-weight: 800; font-size: 11px; color: var(--ink2); }
.mu-next { font-size: 16px; width: 30px; height: 30px; border-radius: 10px; background: #f1eaff; }
#muVol { width: 70px; accent-color: var(--pink); }
.mu-bars { display: flex; gap: 2px; align-items: flex-end; height: 18px; }
.mu-bars i { width: 3px; height: 4px; background: var(--pink); border-radius: 2px; }
#musicBox.on .mu-bars i { animation: eq .8s ease-in-out infinite alternate; }
#musicBox.on .mu-bars i:nth-child(2) { animation-delay: .2s; } #musicBox.on .mu-bars i:nth-child(3) { animation-delay: .45s; } #musicBox.on .mu-bars i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { from { height: 3px; } to { height: 17px; } }

/* ---------- the coin's story (dock) ---------- */
.about { display: flex; flex-direction: column; gap: 8px; flex: none; }
.ab-wait { font-size: 12px; font-weight: 800; color: var(--dim); padding: 2px 4px; }
.ab-desc { font-size: 13px; font-weight: 700; line-height: 1.45; color: #e9e1ff; background: var(--night2); border-radius: 14px; padding: 9px 11px; border: 2px solid var(--line); max-height: 62px; overflow: hidden; cursor: pointer; position: relative; white-space: pre-wrap; }
.ab-desc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(transparent, var(--night2)); }
.ab-desc.open { max-height: none; } .ab-desc.open::after { display: none; }
.ab-card { display: block; text-decoration: none; color: #0f1419; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 4px 0 #c9b8ff; transition: transform .1s; }
.ab-card:hover { transform: translateY(-2px); }
.ab-card.link { color: #fff; background: var(--night2); box-shadow: none; border: 2px solid var(--line); font-weight: 800; font-size: 13px; }
.ab-u { display: grid; grid-template-columns: 38px 1fr auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center; }
.ab-u img { width: 38px; height: 38px; border-radius: 50%; grid-row: 1 / span 2; object-fit: cover; background: #eee; }
.ab-u b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-u small { font-size: 12px; font-weight: 700; color: #536471; grid-column: 2; }
.ab-u .vf { font-style: normal; background: #1d9bf0; color: #fff; border-radius: 50%; font-size: 9px; padding: 1px 4px; }
.xlogo { grid-row: 1 / span 2; grid-column: 3; font-size: 20px; font-weight: 800; }
.ab-text { font-size: 13px; font-weight: 600; line-height: 1.4; margin-top: 7px; white-space: pre-wrap; word-wrap: break-word; max-height: 130px; overflow: hidden; }
.ab-media { width: 100%; border-radius: 12px; margin-top: 8px; max-height: 170px; object-fit: cover; display: block; }
.ab-stats { display: flex; gap: 12px; font-size: 12px; font-weight: 800; color: #536471; margin-top: 7px; flex-wrap: wrap; }
.ab-card.site { background: #fff; }
.ab-site { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.ab-site b { font-size: 14px; }
.ab-site small { font-size: 12px; font-weight: 600; color: #536471; line-height: 1.35; }
.ab-site span { font-size: 11px; font-weight: 800; color: #12a56f; }

/* ---------- bags ---------- */
.pos-head { display: flex; justify-content: space-between; align-items: center; font-family: Coiny; font-size: 14px; margin-bottom: 4px; }
.pos-entry { font-family: Grand; font-weight: 800; font-size: 11px; color: #041d33; background: #41b8ff; padding: 1px 8px 2px; border-radius: 8px; }
.pos-big small { font-size: 15px; }
.qsell { display: flex; gap: 6px; margin-top: 8px; }
.qsell .btn { flex: 1; }
.bagc { font: 800 11px Grand; padding: 1px 7px 2px; border-radius: 8px; white-space: nowrap; }
.bagc.up { background: var(--up); color: #053d22 !important; } .bagc.dn { background: var(--dn); color: #fff !important; }
.ntag .bagc { margin-left: 2px; }
.ab-banner { width: 100%; border-radius: 14px; display: block; max-height: 110px; object-fit: cover; }
.ab-note { font-size: 11px; font-weight: 800; color: var(--yellow); padding: 0 4px; }
.ab-ci { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 50%; background: #e8f5fe; display: grid; place-items: center; font-size: 18px; }

/* top bar spacing (owner 11-26: buttons sat on the balance pill in a chart room) */
@media (max-width: 1599px) { .hud-tr .hbtn span, .hud-tr .hbtn kbd { display: none; } .hud-tr .hbtn { padding: 9px 11px 10px; } }
body.in-room .hud-tr .hbtn span, body.in-room .hud-tr .hbtn kbd { display: none; }
body.in-room .hud-tr .hbtn { padding: 9px 11px 10px; }
body.in-room .hud-tc { left: calc((100% - 420px) / 2); }
@media (max-width: 1180px) { .wallet-pill .bal small, .wallet-pill .pnl { display: none; } }

.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #e4d8ff, 0 3px 0 rgba(0,0,0,.15); }
.swatch.on { box-shadow: 0 0 0 3px var(--grape), 0 3px 0 rgba(0,0,0,.15); transform: scale(1.12); }

body.in-room .keys { display: none; }
body.in-room #musicBox .mu-info, body.in-room #musicBox #muVol, body.in-room #musicBox .mu-bars { display: none; }
body.in-room #voiceBox .vinfo { display: none; }
body.in-room #voiceBox, body.in-room #musicBox { padding: 5px; }
body.in-room .hud-br { flex-direction: row; align-items: center; }

/* the brand (the kit he set): logo + name badge top-left, X + website buttons top-right */
.brand-badge { display: flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; background: var(--night); border: 3px solid #fff; border-radius: 40px; box-shadow: 0 5px 0 #120a33, 0 8px 18px rgba(30,10,70,.25); text-decoration: none; color: #fff; transform: rotate(-1deg); }
.brand-badge img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #41b8ff; }
.brand-badge b { font-family: Coiny; font-weight: 400; font-size: 17px; display: block; line-height: 1.05; }
.brand-badge small { font-family: Coiny; font-size: 12px; color: var(--yellow); display: block; }
.hbtn.ink { --c: #0f1419; --d: #000; --t: #fff; }
.hbtn.white { --c: #fff; --d: #c9b8ff; --t: var(--ink); }
.hbtn .xl { font-size: 17px; font-weight: 900; line-height: 1; min-width: 18px; text-align: center; }
#feed { top: 182px; }
#roomList { top: 182px; }

/* THE COIN ADDRESS (launch kit CA slot, candy look): under the balance pill; "not live yet" until the coin exists, then the whole
   address, Copy, pump.fun and the chart. The payer / `launch ca` put it there within ~3 s; the CA hold keeps it blank. */
.is-hidden { display: none !important; }
.ca-pill { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 5px 0 14px; border-radius: 999px; background: #fff; border: 3px solid #fff; box-shadow: 0 4px 0 #c9b8ff, 0 8px 18px rgba(30,10,70,.2); pointer-events: auto; max-width: min(640px, calc(100vw - 560px)); }
.ca-pill.is-live { border-color: var(--yellow); box-shadow: 0 4px 0 var(--yellow-d), 0 8px 18px rgba(30,10,70,.2); }
.ca-lab { font-family: Coiny; font-weight: 400; font-size: 14px; letter-spacing: .03em; color: var(--grape); white-space: nowrap; }
.ca-addr { display: flex; align-items: center; gap: 8px; min-width: 0; height: 28px; padding: 0 2px; border: 0; background: none; border-radius: 999px; font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); cursor: copy; user-select: text; -webkit-user-select: text; }
.ca-addr:disabled { cursor: default; color: var(--ink2); font: 800 13px/1 Grand, system-ui, sans-serif; padding-right: 9px; }
.ca-addr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy { flex: none; font-family: Coiny; font-size: 12px; font-style: normal; padding: 6px 11px 7px; border-radius: 999px; background: var(--yellow); color: var(--ink); box-shadow: 0 2px 0 var(--yellow-d); min-width: 58px; text-align: center; }
.ca-link { flex: none; font-family: Coiny; font-size: 12px; padding: 6px 11px 7px; border-radius: 999px; background: #ece4ff; color: var(--grape-d); white-space: nowrap; text-decoration: none; }
.ca-link:hover { background: var(--grape); color: #fff; }
body.in-room .ca-pill { max-width: min(560px, calc(100vw - 420px - 420px)); }
@media (max-width: 1180px) { .ca-pill { max-width: calc(100vw - 520px); } .ca-link { display: none; } }
