/* Sitekick Hub. Palette from "They Came for the Ooze": night purple, Sitekick yellow, Ooze green. */
:root {
	--night: #120c2e;
	--panel: rgba(20, 16, 52, 0.95);
	--panel-edge: #7b3fe4;
	--ink: #ffffff;
	--muted: #c8beff;
	--yellow: #ffcc00;
	--yellow-dark: #8c6000;
	--green: #5cd64a;
	--green-dark: #1c5c16;
	--purple: #a064ff;
	--purple-dark: #46208c;
	--red: #ff6262;
	--red-dark: #821e1e;
	--common: #b8c4d6;
	--rare: #4fc3f7;
	--legendary: #ffc94d;
	--unique: #e040fb;
	--unreleased: #8c8c96;
	font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #07051a; color: var(--ink); overflow: hidden; }
#app { position: fixed; inset: 0; display: grid; place-items: center; }

/* The game is a fixed 960×560 stage (like AQW's Flash stage), scaled to fit the window. */
#stage { position: absolute; left: 50%; top: 50%; width: 960px; height: 560px; transform: translate(-50%, -50%); transform-origin: center center; flex: none; } /* (stage.js fit() centres and scales it: a grid track would grow to the unscaled 960 × 560 on a small screen) */
#view { position: absolute; inset: 0; width: 960px; height: 560px; display: block; border-radius: 6px; background: var(--night); cursor: pointer; }
#ui { position: absolute; inset: 0; pointer-events: none; font-weight: 700; }
#ui > * { pointer-events: auto; }
#ui .passive, #ui .passive * { pointer-events: none; }

.panel {
	background: var(--panel);
	border: 3px solid var(--panel-edge);
	border-radius: 16px;
	box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

.btn {
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	color: #10300a;
	background: var(--green);
	border: 2px solid var(--green-dark);
	border-bottom-width: 5px;
	border-radius: 11px;
	padding: 5px 14px;
	cursor: pointer;
	transition: transform 0.05s, filter 0.1s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(2px); border-bottom-width: 3px; }
.btn:disabled { background: #5a5a6e; border-color: #32324a; color: #b4b4c8; cursor: default; filter: none; }
.btn.yellow { background: var(--yellow); border-color: var(--yellow-dark); color: #462800; }
.btn.purple { background: var(--purple); border-color: var(--purple-dark); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red-dark); color: #3c0000; }
.btn.small { font-size: 13px; padding: 3px 10px; border-radius: 9px; }

/* ---------- sign in ---------- */
.signin { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 6, 30, 0.55); }
.signin .card { width: 560px; padding: 18px 22px; text-align: center; }
.signin .logo { height: 96px; display: block; margin: 0 auto 2px; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: 12px; background: #ff9128; color: #281000; margin-bottom: 8px; }
.pill.live { background: var(--green); color: #0a2806; }
.signin h1 { margin: 2px 0 4px; font-size: 22px; color: var(--yellow); }
.signin p { margin: 0 0 8px; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.35; }
.code { width: 100%; font: inherit; font-size: 28px; font-weight: 800; text-align: center; letter-spacing: 2px; text-transform: uppercase;
	color: #1e1446; background: #faf8ff; border: 3px solid var(--yellow); border-radius: 12px; padding: 6px; outline: none; }
.code:focus { box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.35); }
.error { color: #ff8a8a; min-height: 20px; font-size: 13px; margin: 4px 0; }
.demo { margin-top: 10px; border-top: 2px solid rgba(123, 63, 228, 0.6); padding-top: 8px; text-align: left; }
.demo .head { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 400; }
.demo button { display: grid; grid-template-columns: 96px 96px 1fr; gap: 8px; width: 100%; align-items: center; text-align: left;
	background: none; border: 0; color: var(--ink); font: inherit; padding: 4px 8px; border-radius: 9px; cursor: pointer; }
.demo button:hover { background: rgba(123, 63, 228, 0.35); }
.demo .c { color: var(--yellow); font-size: 14px; }
.demo .n { font-size: 14px; }
.voicelink { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--yellow); }
.bar a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.demo .t { font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.25; }

/* ---------- HUD (AQW-style frame) ---------- */
.plate { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 14px; }
.plate canvas { width: 54px; height: 54px; border-radius: 10px; background: rgba(123, 63, 228, 0.25); }
.plate .who { font-size: 16px; line-height: 1.1; }
.plate .rank { font-size: 11px; color: var(--muted); font-weight: 400; display: flex; align-items: center; gap: 4px; }
.plate .rank img { height: 16px; }
.xp { width: 130px; height: 7px; background: rgba(255, 255, 255, 0.12); border-radius: 4px; overflow: hidden; margin-top: 3px; }
.xp > div { height: 100%; background: linear-gradient(90deg, var(--yellow), #ffe680); }
.where { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); text-align: center; text-shadow: 2px 2px 0 #28104f; }
.where .map { font-size: 17px; color: var(--yellow); }
.where .room { font-size: 11px; color: var(--muted); }
.bar { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; padding: 6px; border-radius: 14px; }
.prompt { position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px;
	border-color: var(--yellow); font-size: 15px; white-space: nowrap; }
.chat { position: absolute; left: 8px; bottom: 8px; width: 330px; height: 96px; padding: 6px 8px; border-radius: 12px; overflow: hidden;
	font-size: 12px; font-weight: 400; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(10, 8, 30, 0.72); border-width: 2px; }
.chat div { line-height: 1.3; text-shadow: 1px 1px 0 #000; }
.chat .sys { color: var(--muted); }
.chat .npc b { color: var(--yellow); }
.chat .got { color: #9ff58f; }
.toasts { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 12px; font-size: 15px; border-color: var(--green);
	animation: toast 2.6s forwards; }
.toast img { width: 34px; height: 34px; object-fit: contain; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- NPC dialog ---------- */
.dialog { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); width: 560px; display: grid; grid-template-columns: 92px 1fr;
	gap: 10px; padding: 10px 12px; }
.dialog canvas { width: 92px; height: 92px; border-radius: 12px; background: rgba(123, 63, 228, 0.25); }
.dialog .name { color: var(--yellow); font-size: 16px; }
.dialog .title { color: var(--muted); font-size: 11px; font-weight: 400; }
.dialog .line { font-weight: 400; font-size: 14px; line-height: 1.35; margin: 4px 0 8px; min-height: 38px; }
.dialog .opts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- CHIPS ---------- */
.chips { position: absolute; inset: 44px 20px 20px 20px; padding: 12px 14px; display: grid; grid-template-columns: 300px 1fr; grid-template-rows: auto 1fr; gap: 6px 16px; }
.chips header { grid-column: 1 / -1; display: flex; align-items: center; }
.chips header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 24px; }
.label { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.wheel { position: relative; width: 300px; height: 296px; }
.wheel canvas { position: absolute; left: 75px; top: 70px; width: 150px; height: 150px; }
.slot { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); border: 3px solid rgba(200, 190, 255, 0.35);
	display: grid; place-items: center; cursor: pointer; padding: 0; }
.slot:hover { border-color: #fff; }
.slot.worn { background: rgba(255, 204, 0, 0.18); border-color: var(--yellow); }
.slot.sel { box-shadow: 0 0 0 3px var(--green); }
.slot img { width: 46px; height: 46px; object-fit: contain; }
.slot.off img { opacity: 0.45; }
.slot .num { position: absolute; left: -5px; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: #141034; border: 2px solid rgba(200, 190, 255, 0.6);
	font-size: 10px; display: grid; place-items: center; color: #fff; }
.slot .badge { position: absolute; right: -10px; bottom: -4px; background: #ff9128; color: #281000; border-radius: 6px; padding: 0 4px; font-size: 9px; }
.worn-count { position: absolute; right: 2px; top: 6px; text-align: right; font-size: 12px; color: var(--muted); }
.details { margin-top: 2px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); min-height: 96px; }
.details .head { display: flex; gap: 8px; align-items: center; }
.details .head img { width: 54px; height: 54px; object-fit: contain; }
.details .nm { font-size: 17px; }
.rar { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 10px; color: #141034; margin-top: 2px; }
.details .desc { font-size: 12px; font-weight: 400; color: #d7cdff; margin: 4px 0 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.details .note { font-size: 11px; color: #ffaa5a; margin-bottom: 4px; }
.details .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.details .head > div { flex: 1; min-width: 0; }
.details .note { font-size: 11px; margin-bottom: 2px; }
/* (a chip's words, between its picture and its buttons, scroll past two lines, so a long note can't push the buttons
   off the bottom of the panel. 37px is a two-line description and its top margin, all an ordinary chip ever shows,
   and the words' last margin goes as it used to fold into the buttons' own, so ordinary chips look just as they did.) */
.details .dbody { max-height: 37px; overflow-y: auto; scrollbar-width: thin; }
.details .dbody > :last-child { margin-bottom: 0; }
.inv { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cell { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(200, 190, 255, 0.25); display: grid; place-items: center;
	position: relative; cursor: pointer; padding: 0; color: #fff; font: inherit; font-size: 9px; }
.cell:hover { border-color: #fff; }
.cell.sel { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.cell.empty { background: rgba(255, 255, 255, 0.02); border-color: rgba(200, 190, 255, 0.08); cursor: default; }
.cell img { width: 72%; height: 72%; object-fit: contain; }
.cell .dot { position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; font-size: 13px; }
.savenote { font-size: 10px; font-weight: 400; color: rgba(200, 190, 255, 0.7); text-align: center; margin-top: 6px; }

/* ---------- Dump ---------- */
.dumpbar { position: absolute; right: 8px; top: 8px; padding: 8px 10px; border-radius: 12px; font-size: 13px; width: 240px; }
.dumpbar .legend { display: flex; gap: 8px; font-size: 11px; font-weight: 400; color: var(--muted); margin: 4px 0 6px; align-items: center; }
.dumpbar .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 3px; }

/* ---------- Ooze Run ---------- */
.score { position: absolute; right: 18px; top: 58px; font-size: 24px; letter-spacing: 1px; text-shadow: 2px 2px 0 #28104f; font-variant-numeric: tabular-nums; }
.score.flash { color: var(--yellow); }
.crossscore { position: absolute; left: 50%; top: 50px; transform: translateX(-50%); text-align: center; text-shadow: 3px 3px 0 #28104f; }
.crossscore b { display: block; font-size: 40px; line-height: 40px; color: #fff; }
.crossscore span { font-size: 12px; color: var(--muted); }
.heaphud { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); display: flex; gap: 16px; align-items: baseline; font-size: 13px; text-shadow: 2px 2px 0 #28104f; }
.heaphud b { color: var(--yellow); font-size: 15px; }
.heapbar { position: absolute; right: 16px; top: 100px; width: 10px; height: 360px; border-radius: 5px; background: rgba(10, 8, 30, 0.7); border: 2px solid #3a2a6a; }
.heapbar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px; background: linear-gradient(0deg, #ffcc00, #ff6a3c); }
.heapbar em { position: absolute; left: -6px; right: -6px; height: 3px; background: #9fd8ff; }
.heapbar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 13px; }
.runinfo { position: absolute; right: 18px; top: 92px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; text-shadow: 2px 2px 0 #28104f; }
.runinfo span { position: relative; padding-bottom: 3px; }
.runinfo span b { position: absolute; left: 0; bottom: 0; height: 2px; }
.runinfo .combo { color: var(--yellow); font-size: 16px; }
/* A game's card always fits on the 560-px stage, buttons and all (Seth, 2026-11-11: "fix the heapking machine i cant
   see my buttons, check all the machines": Heap King's, Ooze Run's and Ooze Crossing's menus ran off the bottom once
   the Top 5, a saved climb or a few open rooms were on them). A short card sits at --top as it always has; a taller
   one rises (by up to --lift) to keep its bottom 12 px above the stage's; taller still, it scrolls, and its buttons
   stay pinned along its bottom (.acts:last-child below). (translateY's % is the card's own height.) */
.runcard { --top: 150px; --lift: 96px; position: absolute; left: 50%; top: var(--top); width: 520px; padding: 14px 18px; text-align: center;
	max-height: calc(548px - var(--top) + var(--lift)); overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin;
	transform: translate(-50%, max(calc(0px - var(--lift)), min(0px, calc(548px - var(--top) - 100%)))); }
.runcard h2 { margin: 0 0 4px; font-size: 32px; color: var(--yellow); text-shadow: 2px 2px 0 #28104f; }
.runcard p { margin: 0 0 10px; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.4; white-space: pre-line; }
.runcard .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
/* the menus with a room list (Heap King, Ooze Run, Ooze Crossing: ui/room-picker.js) are wider, so their five buttons
   take two rows and the whole menu fits without scrolling until a few rooms are open */
.runcard:has(> .roomlistbox) { width: 640px; }
/* the room list's notes ("No rooms yet…", "Practice: …", "Waiting for the host…") as small as on the other cards
   (ui/room-picker.js; they were full-size bold here); a race's results (world/race.js) stay as they were */
.runcard .small { font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.runcard .small.raceresults { font: inherit; color: inherit; margin-top: 0; }
/* the buttons along a card's bottom stay in sight while the rest scrolls (they stretch over the card's side and
   bottom padding, so a card that fits looks just as before) */
.runcard .acts:last-child, .defcard .acts:last-child { position: sticky; bottom: -14px; z-index: 1; /* (-14: the card's padding, which the browser keeps a pinned thing inside) */ margin: 0 -18px -14px; padding: 6px 18px 14px; border-radius: 0 0 13px 13px;
	background: linear-gradient(rgba(20, 16, 52, 0), rgb(20, 16, 52) 6px); } /* (solid: --panel is see-through, and what scrolls under shouldn't show) */

.fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
#ui .fade { pointer-events: none; } /* it covers the whole stage: never let it catch clicks meant for the game (#ui > * would) */
.fade.on { opacity: 1; }
.hint { position: absolute; left: 350px; right: 260px; bottom: 12px; text-align: center; font-size: 11px; font-weight: 400; color: rgba(220, 210, 255, 0.85); text-shadow: 1px 1px 0 #000; }

/* ---------- CHIPS drag & drop ---------- */
.chips { user-select: none; -webkit-user-select: none; }
.chips img { -webkit-user-drag: none; }
.slot, .cell { touch-action: none; }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.55)); transform: scale(1.1) rotate(-6deg); }
.lifted { opacity: 0.35; }
.slot.drop { box-shadow: 0 0 0 4px var(--green), 0 0 18px var(--green); border-color: #fff; }
.inv.drop { outline: 3px dashed var(--green); outline-offset: 4px; border-radius: 12px; }
.details .note.ok { color: #9ff58f; }
.dumpbar .total { font-size: 11px; font-weight: 400; color: var(--muted); }

/* ---------- Ooze Defense ---------- */
.defcard { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); width: 560px; padding: 14px 18px; text-align: center; max-height: 420px; overflow: auto; }
.defcard h2 { margin: 0 0 4px; font-size: 28px; color: var(--yellow); text-shadow: 2px 2px 0 #28104f; }
.defcard p { margin: 0 0 10px; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.4; }
.defcard .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.defcard { scrollbar-width: thin; overscroll-behavior: contain; }
.defcard .acts:last-child { margin-top: 2px; } /* (+ its 6 px of top padding: the 8 px it always had) */
.defcard .note { font-size: 12px; font-weight: 400; color: #ffaa5a; margin: 4px 0 8px; }
.defcard .small { font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.defcard .label { margin-top: 8px; text-align: left; }
.joinrow { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 4px 0; }
.roomcode { width: 120px; font: inherit; font-size: 20px; font-weight: 800; text-align: center; letter-spacing: 3px; text-transform: uppercase; color: #1e1446;
	background: #faf8ff; border: 3px solid var(--yellow); border-radius: 10px; padding: 2px 6px; outline: none; }
.roomlist { display: grid; gap: 4px; }
/* a game card's open rooms scroll in their own box past about four and a half (half a row peeks out to say there are
   more), so the rest of the card stays put however many rooms are open (2026-11-11) */
.roomlistbox { max-height: 140px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.roomrow { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; text-align: left; background: rgba(255, 255, 255, 0.06); border: 0;
	color: #fff; font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.roomrow:hover { background: rgba(123, 63, 228, 0.35); }
.roomrow b { color: var(--yellow); letter-spacing: 2px; }
.roomrow .go { color: var(--green); }
.lobbylist { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.lobbyp { display: flex; flex-direction: column; align-items: center; font-size: 12px; gap: 2px; }
.lobbyp canvas { width: 72px; height: 72px; border-radius: 12px; background: rgba(123, 63, 228, 0.25); }
.results { display: grid; gap: 4px; margin: 6px 0; }
.resrow { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; font-size: 13px; text-align: left; background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: 8px; }
.resrow span { font-weight: 400; color: var(--muted); }
.defhud { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); width: 420px; text-align: center; }
.defrow { display: flex; justify-content: space-between; font-size: 13px; text-shadow: 2px 2px 0 #28104f; margin-bottom: 3px; }
.defrow b { color: var(--yellow); }
.vatbar { position: relative; height: 16px; border-radius: 8px; background: rgba(10, 8, 30, 0.85); border: 2px solid #3a2a6a; overflow: hidden; }
.vatbar > div { height: 100%; background: linear-gradient(90deg, #46dc3c, #9cff7a); transition: width 0.2s; }
.vatbar.low > div { background: linear-gradient(90deg, #ff6262, #ffaa5a); }
.vatbar span { position: absolute; inset: 0; font-size: 10px; line-height: 12px; color: #fff; text-shadow: 1px 1px 0 #000; }
.defteam { position: absolute; right: 8px; top: 76px; padding: 6px 10px; border-radius: 12px; font-size: 12px; min-width: 150px; }
.defteam div { white-space: nowrap; }
.defteam .me b { color: var(--yellow); }
.defteam .hp { color: #ff4a6a; letter-spacing: -1px; }
.defteam .hp.gone { color: rgba(255, 255, 255, 0.2); }
.defteam .ko { color: #ff6262; font-weight: 800; }
.defres .resrow { grid-template-columns: 1fr auto auto auto auto auto auto; }
.defme { position: absolute; left: 10px; bottom: 8px; width: 360px; padding: 4px 10px; border-radius: 12px; display: flex; align-items: center; gap: 10px; }
.defme .hearts { font-size: 20px; letter-spacing: 1px; line-height: 22px; color: rgba(255, 255, 255, 0.18); text-shadow: 1px 1px 0 #000; }
.defme .hearts .on { color: #ff4a6a; }
.defme .heat { position: relative; flex: 1; height: 14px; border-radius: 7px; background: rgba(10, 8, 30, 0.85); border: 2px solid #3a2a6a; overflow: hidden; }
.defme .heat > div { height: 100%; background: linear-gradient(90deg, #ffe066, #ffb43c); }
.defme .heat.warm > div { background: linear-gradient(90deg, #ffb43c, #ff7a3c); }
.defme .heat.hot > div { background: #ff4a4a; animation: hotblink 0.35s steps(2) infinite; }
.defme .heat.cool > div { background: linear-gradient(90deg, #d8f0ff, #a8dcff); }
.defme .pws { position: absolute; left: 0; bottom: calc(100% + 4px); display: flex; gap: 4px; }
.defme .pw { position: relative; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 3px; border-radius: 9px; font-size: 11px; color: var(--c); background: rgba(10, 8, 30, 0.82); border: 1px solid var(--c); overflow: hidden; }
.defme .pw i { font-style: normal; font-size: 12px; }
.defme .pw b { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--c); }
.defhud .clutch { margin-top: 3px; font-size: 12px; color: #9cff7a; text-shadow: 1px 1px 0 #000; }
.defme .heat span { position: absolute; inset: 0; font-size: 9px; line-height: 10px; text-align: center; color: #fff; text-shadow: 1px 1px 0 #000; }
@keyframes hotblink { 50% { opacity: 0.45; } }

/* ---------- Leaderboard lists (game cards) ---------- */
.blist { display: grid; gap: 3px; margin: 4px 0 2px; }
.brow { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; text-align: left; font-size: 13px; background: rgba(255, 255, 255, 0.05); padding: 3px 10px; border-radius: 8px; }
.brow b { color: var(--yellow); }
.brow .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .d { font-size: 11px; font-weight: 400; color: var(--muted); }
.brow .s { font-variant-numeric: tabular-nums; }
.brow.me { background: rgba(255, 204, 0, 0.18); }

/* ---------- Hover Hop ---------- */
.hopcard { top: 70px; }
.hoprow { grid-template-columns: 1fr auto; }
.hoprow.me { background: rgba(255, 204, 0, 0.18); }
.hopnote { position: absolute; left: 50%; top: 118px; transform: translateX(-50%); font-size: 14px; text-shadow: 2px 2px 0 #28104f; color: var(--muted); white-space: nowrap; }
.hoprace { position: absolute; right: 8px; top: 64px; padding: 6px 10px; border-radius: 12px; font-size: 12px; min-width: 160px; }
.hoprace div:not(.label) { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px; align-items: center; white-space: nowrap; }
.hoprace i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.hoprace span { font-variant-numeric: tabular-nums; color: var(--muted); }
.hoprace .me b { color: var(--yellow); }
.hoprace .out { opacity: 0.5; }

/* ---------- Blob Pop ---------- */
.tdshop { position: absolute; right: 8px; top: 8px; bottom: 58px; width: 176px; padding: 8px; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.tdstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; text-align: center; }
.tdstats div { background: rgba(255, 255, 255, 0.06); border-radius: 8px; padding: 2px 0; }
.tdstats span { display: block; font-size: 9px; color: var(--muted); letter-spacing: 1px; }
.tdstats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.tdstats .ooze b { color: #9cff7a; }
.tdstats .cash b { color: var(--yellow); }
.tdbuy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tdtower { position: relative; display: flex; flex-direction: column; align-items: center; padding: 3px 2px 4px; border-radius: 10px; border: 2px solid #3a2a6a;
	background: rgba(123, 63, 228, 0.18); color: #fff; font: inherit; cursor: pointer; }
.tdtower canvas { width: 32px; height: 32px; }
.tdtower b { font-size: 9px; letter-spacing: -0.3px; text-align: center; line-height: 1.05; }
.tdtower span { font-size: 10px; color: var(--yellow); }
.tdtower i { position: absolute; left: 4px; top: 2px; font-style: normal; font-size: 9px; color: var(--muted); }
.tdtower:hover { background: rgba(123, 63, 228, 0.4); }
.tdtower.on { border-color: var(--yellow); box-shadow: 0 0 10px rgba(255, 204, 0, 0.5); }
.tdtower:disabled { opacity: 0.45; cursor: default; }
.tdinfo { flex: 1; min-height: 0; background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; overflow: hidden; }
.tdinfo .name { display: flex; justify-content: space-between; align-items: center; }
.tdinfo .small { font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.3; }
.tdinfo .pips i { display: inline-block; width: 9px; height: 9px; margin-left: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.tdinfo .pips i.got { background: var(--yellow); }
.tdinfo .btn { width: 100%; }
.tdgo { width: 100%; font-size: 14px; padding: 6px 4px; }
.tdrow { display: flex; gap: 4px; }
.tdrow .btn { flex: 1; padding: 3px 2px; font-size: 10px; white-space: nowrap; }
.tdcard { left: 385px; top: 110px; width: 520px; }
.tdinfo .keys { color: #a99de0; font-size: 10px; }
.tdinfo .lvl { font-size: 10px; color: var(--yellow); }
.uprow { display: grid; grid-template-columns: 14px 1fr auto; gap: 4px; align-items: center; padding: 2px 4px; border-radius: 7px; background: rgba(255, 255, 255, 0.04); }
.uprow i { font-style: normal; font-size: 10px; text-align: center; color: var(--muted); }
.uprow b { display: block; font-size: 10.5px; line-height: 1.1; }
.uprow span { display: block; font-size: 9.5px; font-weight: 400; color: var(--muted); line-height: 1.15; }
.uprow em { font-style: normal; font-size: 10px; color: #8a80b8; }
.uprow.got { background: rgba(92, 214, 74, 0.14); }
.uprow.got i { color: #9cff7a; }
.uprow.next { background: rgba(255, 204, 0, 0.12); outline: 1px solid rgba(255, 204, 0, 0.45); }
.uprow.later { opacity: 0.55; }
.tdinfo .uprow .btn { width: auto; padding: 2px 6px; font-size: 10px; }

/* ---------- Room picker (Ooze Drop, Kablooey Blast) ---------- */
.roomppl { display: grid; gap: 4px; margin: 6px auto; max-width: 320px; }
.roomppl div { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; text-align: left; background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.roomppl i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.roomppl span { font-weight: 400; color: var(--muted); font-size: 11px; }

/* ---------- Kablooey Blast ---------- */
.blastside { position: absolute; right: 8px; top: 78px; width: 300px; padding: 8px 10px; border-radius: 14px; font-size: 12px; }
.blastside .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; text-shadow: 2px 2px 0 #28104f; }
.blastside .top b { color: var(--yellow); }
.blastside .top .hurry { color: var(--red); }
.blastside > div:not(.top):not(.small) { display: grid; grid-template-columns: 12px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 5px 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); margin-bottom: 4px; }
.blastside i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; grid-row: span 2; }
.blastside .stars { letter-spacing: 1px; }
.blastside .pw { grid-column: 2 / span 2; font-size: 11px; font-weight: 400; color: var(--muted); }
.blastside .me b { color: var(--yellow); }
.blastside .out { opacity: 0.45; }
.blastside .small { font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.blastrow { grid-template-columns: 1fr auto auto; }
.blastrow.me, .resrow.me { background: rgba(255, 204, 0, 0.18); }
.blastcard { left: 324px; top: 96px; width: 560px; }
.dropcard { top: 96px; }
.blastside .stars em { font-style: normal; color: rgba(255, 255, 255, 0.18); }
.blastside .stars em.won { color: var(--yellow); text-shadow: 0 0 6px rgba(255, 204, 0, 0.7); }

/* ---------- Chat ---------- */
.chatbar { position: absolute; left: 350px; right: 262px; bottom: 8px; display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(10, 8, 30, 0.72); border-width: 2px; }
.chatin { flex: 1; min-width: 0; font: inherit; font-size: 13px; font-weight: 400; color: #fff; background: rgba(0, 0, 0, 0.35); border: 2px solid #3a2a6a; border-radius: 8px; padding: 3px 8px; outline: none; }
.chatin:focus { border-color: var(--yellow); background: rgba(0, 0, 0, 0.55); }
.chatin::placeholder { color: rgba(200, 190, 255, 0.55); }
.chattoggle { font: inherit; font-size: 11px; background: rgba(123, 63, 228, 0.55); color: #fff; border: 0; border-radius: 8px; padding: 0 9px; cursor: pointer; white-space: nowrap; }
.chattoggle.off { background: rgba(255, 98, 98, 0.55); }
.with-chat .hint { bottom: 46px; }
.chat .said { color: #ffffff; }
.playercard { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; font-size: 14px; }
.playercard i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Emotes + titles ---------- */
.emotepanel { position: absolute; right: 8px; bottom: 62px; width: 330px; padding: 10px 12px; border-radius: 14px; }
.emotepanel .label { margin: 2px 0 6px; }
.emotepanel .small { font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.emotegrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.emote { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 3px; border-radius: 10px; border: 1px solid rgba(200, 190, 255, 0.25);
	background: rgba(123, 63, 228, 0.18); color: #fff; font: inherit; cursor: pointer; }
.emote span { font-size: 20px; line-height: 22px; }
.emote small { font-size: 9px; color: var(--muted); }
.emote:hover { background: rgba(123, 63, 228, 0.4); }
.emote.locked { opacity: 0.45; cursor: default; }
.emote.locked span { font-size: 15px; }
.emotepanel .titles { display: flex; flex-wrap: wrap; gap: 5px; }
.emotepanel .titles .btn { font-size: 11px; padding: 3px 8px; }
/* Blob Pop versus: blobs to send, and everyone's vat */
.tdsend { display: flex; flex-direction: column; gap: 3px; }
.tdsend .label { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.tdsendgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.tdsendb { display: flex; flex-direction: column; align-items: center; padding: 2px 1px; border-radius: 7px; border: 2px solid #3a2a6a; background: rgba(0, 0, 0, 0.25); color: inherit; font: inherit; cursor: pointer; }
.tdsendb i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.tdsendb b { font-size: 10px; }
.tdsendb span { font-size: 9px; color: var(--yellow); }
.tdsendb:hover { background: rgba(123, 63, 228, 0.4); }
.tdsendb:disabled { opacity: 0.4; cursor: default; }
.tdpeers div { display: flex; justify-content: space-between; gap: 4px; font-size: 10px; }
.tdpeers span { color: var(--muted); }
.tdpeers .out { opacity: 0.5; }

/* ---------- the glassy look (UI overhaul 2026-10-16) ---------- */
.glass { background: linear-gradient(180deg, rgba(40, 28, 96, 0.72), rgba(18, 12, 50, 0.72)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	border: 2px solid rgba(160, 100, 255, 0.85);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 4px 0 rgba(0, 0, 0, 0.35), 0 0 14px rgba(160, 100, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
@keyframes slidein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

/* ---------- the rail (src/ui/rail.js) ---------- */
.rail { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px; border-radius: 13px; z-index: 5; }
.rail.row { flex-direction: row; }
.rail.sliding { transition: left 0.16s ease-out, top 0.16s ease-out; }
.rail.lift { transform: rotate(-4deg) scale(1.04); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.55), 0 0 0 3px var(--yellow); z-index: 20; }
.rail .grip { flex: none; width: 26px; height: 14px; border-radius: 5px; cursor: grab; touch-action: none; opacity: 0.85;
	background-image: radial-gradient(circle, #e2d6ff 1.6px, transparent 2px); background-size: 6px 6px; background-position: 1px 1px; }
.rail.row .grip { width: 14px; height: 26px; background-position: 1px 1px; }
.rail .grip:hover { opacity: 1; background-color: rgba(255, 255, 255, 0.06); }
.rail.lift .grip { cursor: grabbing; }
.rbtn { position: relative; flex: none; width: 46px; height: 46px; padding: 0; border-radius: 13px; display: grid; place-items: center; cursor: pointer;
	font: inherit; font-size: 20px; color: #fff; background: linear-gradient(180deg, #b27bff, #7d45e6);
	border: 2px solid var(--purple-dark); border-bottom-width: 5px; transition: transform 0.05s, filter 0.1s; }
.rbtn:hover { filter: brightness(1.12); }
.rbtn:active { transform: translateY(2px); border-bottom-width: 3px; }
.rbtn.main { background: linear-gradient(180deg, #ffe066, #ffbf00); border-color: var(--yellow-dark); color: #462800; }
.rbtn.small { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; border-bottom-width: 4px; }
/* the Slim rail on PC (the round orb on phones keeps its own sizes: .orb .orbfan .rbtn) */
.rail .rbtn { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; border-bottom-width: 4px; }
.rail .rbtn:active { border-bottom-width: 2px; }
.rail .rbtn.small { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; border-bottom-width: 3px; }
.rail .rbtn .key { right: -4px; bottom: -5px; font-size: 8px; line-height: 11px; padding: 0 2px; }
/* the fold tab beside the grip, and the ☰ it turns into once the bar is folded (src/ui/rail.js setFolded; the Small size
   is the rail shrunk from its corner by the `scale` rail.js sets, so it needs nothing here) */
.rail .foldbtn { width: 34px; height: 18px; border-radius: 6px; font-size: 15px; font-weight: 900; color: #e2d6ff;
	background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(160, 100, 255, 0.6); }
.rail.row .foldbtn { width: 18px; height: 34px; }
.rail .foldbtn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.rail .foldbtn:active { border-bottom-width: 1px; }
.rail .foldbtn .ico { line-height: 1; }
.rail:not(.row) .foldbtn .ico { rotate: 90deg; }
.rail.folded > .rbtn:not(.foldbtn) { display: none; }
.rail.folded .foldbtn { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; color: #fff; background: linear-gradient(180deg, #b27bff, #7d45e6);
	border: 2px solid var(--purple-dark); border-bottom-width: 4px; }
.rail.folded .foldbtn:active { border-bottom-width: 2px; }
.rail.folded .foldbtn .ico { rotate: none; }
.rbtn .key { position: absolute; right: -5px; bottom: -7px; font-size: 9px; line-height: 13px; padding: 0 3px; border-radius: 5px;
	background: var(--night); border: 1px solid var(--purple); color: var(--yellow); }
.rbtn .tip { position: absolute; white-space: nowrap; font-size: 12px; padding: 3px 9px; border-radius: 8px; pointer-events: none; opacity: 0;
	transition: opacity 0.12s; background: rgba(18, 12, 50, 0.92); border: 2px solid rgba(160, 100, 255, 0.85); color: #fff; }
.rbtn:hover .tip { opacity: 1; }
.rail.at-right .tip { right: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
.rail.at-left .tip { left: calc(100% + 10px); top: 50%; transform: translateY(-50%); }
.rail.at-top .tip { top: calc(100% + 10px); left: 50%; transform: translateX(-50%); }
.rail.at-bottom .tip { bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); }
.rail.lift .tip { display: none; }
.railzone { position: absolute; border: 3px dashed rgba(255, 204, 0, 0.75); border-radius: 16px; background: rgba(255, 204, 0, 0.08); z-index: 4; }
.railzone.hot { background: rgba(255, 204, 0, 0.22); border-style: solid; }
.rail.at-right { --nx: -8px; --ny: 0px; }
.rail.at-left { --nx: 8px; --ny: 0px; }
.rail.at-top { --nx: 0px; --ny: 8px; }
.rail.at-bottom { --nx: 0px; --ny: -8px; }
@keyframes railnudge { 0%, 100% { translate: 0 0; } 35% { translate: var(--nx) var(--ny); } 70% { translate: calc(var(--nx) * -0.35) calc(var(--ny) * -0.35); } }
.rail.nudge { animation: railnudge 0.55s ease-in-out 3; }

/* ---------- the frame, kept off the floor (UI overhaul 2026-10-16) ---------- */
/* the name pill, compact (a player, 2026-11-09: "reduce the size of the profile bar on the top left … can't click the
   framed photo on the wall in the library"): a small face, and beside it the name, a thin XP bar and the tokens stacked.
   A long name is cut short (the whole name is in the tooltip and on your card). With the rail at home it ends left of
   x 200, where the Library's painting hangs, and it's only as big as it looks: nothing round it catches clicks. */
.plate.namepill { border-radius: 999px; padding: 3px 11px 3px 3px; gap: 7px; }
.plate.namepill canvas { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--yellow); background: rgba(123, 63, 228, 0.35); }
.plate.namepill .pillstack { display: flex; flex-direction: column; min-width: 0; }
.plate.namepill .who { font-size: 13px; line-height: 14px; max-width: 118px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate.namepill .rank { display: none; }
.plate.namepill .xp { width: auto; min-width: 58px; height: 3px; margin: 2px 0; }
.plate.namepill .tokens { position: relative; font-size: 11px; line-height: 12px; color: var(--yellow); white-space: nowrap; }
/* (the "+N" floats up beside the count without making the pill wider, and never catches a click, even once it's faded) */
.plate.namepill .tokens .gain { position: absolute; left: 100%; top: 0; pointer-events: none; }
.plate.namepill .aurabtn { margin-left: 0; width: 24px; height: 24px; font-size: 12px; }
.plate.namepill.withaura .who { max-width: 88px; } /* (the ✨ takes the room a long name gives up, so the pill ends no further right) */
.where { top: 8px; }
.where .map { font-size: 15px; letter-spacing: 1px; }
.where .room { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.keycap { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 6px; background: var(--yellow); color: #462800;
	border-bottom: 3px solid var(--yellow-dark); font-size: 12px; line-height: 1; }
.prompt.glass { left: auto; bottom: auto; transform: none; display: flex; align-items: center; gap: 7px; padding: 3px 11px 3px 4px; border-radius: 999px;
	font-size: 13px; white-space: nowrap; animation: slidein 0.14s ease-out; }
.chat { background: none; border: 0; box-shadow: none; height: auto; max-height: 130px; overflow: visible; padding: 0; width: 340px;
	left: calc(10px + var(--rl, 0px)); bottom: calc(44px + var(--rb, 0px)); display: flex; flex-direction: column; justify-content: flex-end; }
.chat > div { text-shadow: 0 1px 0 #000, 0 0 6px rgba(0, 0, 0, 0.9); font-size: 12.5px; animation: chatfade 9s ease-in forwards; }
@keyframes chatfade { 0% { opacity: 0; transform: translateY(6px); } 4% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; } }
.chatopen .chat { display: none; }
.chatpill { position: absolute; left: calc(10px + var(--rl, 0px)); bottom: 10px; display: flex; align-items: center; gap: 6px;
	padding: 3px 11px 3px 4px; border-radius: 999px; font: inherit; font-size: 11px; color: var(--muted); cursor: pointer; }
.chatpill:hover { color: #fff; }
.chatlog { position: absolute; left: calc(10px + var(--rl, 0px)); bottom: calc(10px + var(--rb, 0px)); width: 380px; padding: 8px; border-radius: 14px;
	display: flex; flex-direction: column; gap: 6px; animation: slidein 0.14s ease-out; z-index: 6; }
.chatlog .loglines { max-height: 190px; overflow-y: auto; font-size: 12.5px; font-weight: 400; line-height: 1.35; display: flex; flex-direction: column; }
.chatlog .loglines .sys { color: var(--muted); }
.chatlog .loglines .npc b { color: var(--yellow); }
.chatlog .loglines .got { color: #9ff58f; }
.chatlog .loglines .whisper, .chat .whisper { color: #e2c4ff; font-style: italic; }
.frow .fmsg { padding: 2px 7px; flex: none; }
.chatlog .logbar { display: flex; gap: 6px; }
.toasts { left: auto; transform: none; right: calc(10px + var(--rr, 0px)); top: calc(10px + var(--rt, 0px)); align-items: flex-end; }
.toast.glass { animation: slidein 0.14s ease-out; font-size: 14px; }
.settings, .volpanel { position: absolute; width: 300px; padding: 10px 12px; border-radius: 14px; animation: slidein 0.14s ease-out; z-index: 6; }
.volpanel { right: 10px; bottom: 54px; }
.settings .label { margin: 6px 0 4px; }
.volrow { display: grid; grid-template-columns: 96px 1fr 38px; align-items: center; gap: 6px; font-size: 12px; margin: 3px 0; }
.volrow input { width: 100%; accent-color: var(--yellow); }
.volval { text-align: right; color: var(--muted); font-size: 11px; }
.controls { margin: 0; padding-left: 16px; font-size: 11.5px; font-weight: 400; line-height: 1.45; color: #e4dcff; }
.settings .acts { display: flex; gap: 6px; margin-top: 10px; justify-content: flex-end; }
.emotepanel.glass, .emotepanel { animation: slidein 0.14s ease-out; }
.helpcard { position: absolute; left: 50%; top: 110px; transform: translateX(-50%); width: 420px; padding: 14px 18px; border-radius: 16px; z-index: 7; }
.helpcard .name { color: var(--yellow); font-size: 17px; margin-bottom: 6px; }
.helpcard .small { font-size: 11px; font-weight: 400; color: var(--muted); margin: 8px 0; }
.backpill { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px;
	font: inherit; font-size: 12px; color: #fff; cursor: pointer; z-index: 6; }
.backpill:hover { filter: brightness(1.12); }
.playmute { position: absolute !important; right: 10px; bottom: 10px; z-index: 6; }

/* ---- kept clear of the rail (review fixes 2026-10-16): the name pill and the room name move over for a rail on the
   top or left; the Dump bar sits under the name pill, leaving the top-right to the notices. */
/* (the name pill moves over only when the rail would sit on its corner: ui/hud.js pillShift sets --pl and --pt) */
.plate.namepill { left: calc(8px + var(--pl, 0px)); top: calc(8px + var(--pt, 0px)); }
.where { top: calc(8px + var(--rt, 0px)); }
.dumpbar { right: auto; left: calc(8px + var(--rl, 0px)); top: calc(62px + var(--rt, 0px)); }
/* the Wastes bar: kept short, because the Warden's left pylon stands right under it (logic/wastes/rules.js PYLONS) */
.wastesbar { padding: 6px 8px; font-size: 12px; }
.wastesbar > * + * { margin-top: 3px; }
.wastesbar .stock { display: grid; grid-template-columns: 30px repeat(4, 1fr); align-items: center; font-variant-numeric: tabular-nums; }
.wastesbar .stock span { display: inline-flex; align-items: center; gap: 2px; }
.wastesbar .stock span:first-child { font-size: 11px; }
.wastesbar .line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wastesbar .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wastesbar .acts:empty { display: none; }
.wastesbar .btn.small { padding: 1px 8px; font-size: 12px; border-bottom-width: 3px; }
.wastesbar .btn.help { margin-left: auto; padding: 1px 7px; background: rgba(255, 255, 255, 0.12); color: var(--muted); border-color: rgba(255, 255, 255, 0.25); }

/* ---- a player's profile card, big (click a Sitekick or your own portrait) */
.playercard.big { top: 52px; left: calc(50% - 320px); transform: none; display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; width: 640px; max-height: 452px;
	padding: 14px; border-radius: 18px; font-size: 13px; z-index: 6; animation: slidein 0.18s ease-out;
	background: rgba(20, 13, 50, 0.96); backdrop-filter: blur(6px); }
.playercard.big .pportrait { width: 240px; height: 240px; border-radius: 16px; border: 3px solid var(--c);
	background: radial-gradient(circle at 50% 42%, rgba(123, 63, 228, 0.55), rgba(18, 12, 46, 0.92) 72%); box-shadow: 0 0 22px rgba(0, 0, 0, 0.45), inset 0 0 18px rgba(0, 0, 0, 0.5); }
.playercard.big .pinfo { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-height: 420px; overflow: auto; }
.playercard.big .phead { display: flex; align-items: center; gap: 8px; }
.playercard.big .pname { flex: 1; font-size: 24px; color: #fff; text-shadow: 2px 2px 0 #28104f; overflow-wrap: anywhere; }
.playercard.big .pacts { display: flex; flex-wrap: wrap; gap: 6px; }
.playercard.big .pacts:empty { display: none; }
.playercard.big .profile { border-top: 1px solid rgba(200, 190, 255, 0.2); padding-top: 8px; gap: 6px; }
.playercard.big .pworn img { width: 34px; height: 34px; }

/* ---- an effect chip on a profile card: the frame takes its colours and glows */
.playercard.big.aura .pportrait { border-color: var(--ac); animation: auraglow 1.8s ease-in-out infinite; }
.playercard.big.aura .pname { text-shadow: 0 0 12px var(--ag), 2px 2px 0 #28104f; }
/* a name aura's level (name auras: render/name-auras.js) */
.playercard .plv { align-self: center; padding: 2px 8px; border-radius: 999px; font: 800 12px "Trebuchet MS", sans-serif; color: #1a1036; background: var(--ac, #ffcc00); box-shadow: 0 0 10px var(--ag, transparent); white-space: nowrap; }
@keyframes auraglow { 0%, 100% { box-shadow: 0 0 14px var(--ag), inset 0 0 18px rgba(0, 0, 0, 0.5); } 50% { box-shadow: 0 0 30px var(--ag), inset 0 0 18px rgba(0, 0, 0, 0.5); } }

/* ---- the Prize Counter's effect chips and Dock expansions */
.prizes .effectitem canvas { background: radial-gradient(circle at 50% 50%, rgba(123, 63, 228, 0.45), rgba(10, 6, 30, 0.8)); border-radius: 10px; }
.prizes .growitem .growpic { font-size: 34px; line-height: 70px; height: 70px; }

/* ---- the Chips panel's SETS tab (outfits on your mannequins) */
.chips header .ctabs { display: flex; gap: 4px; margin-right: 10px; }
.chips .ctab { font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(160, 100, 255, 0.45); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.chips .ctab.on { color: #1a0f3c; background: var(--yellow); border-color: var(--yellow); }
.chips .setrows { display: flex; flex-direction: column; gap: 8px; overflow: auto; max-height: 360px; padding-right: 4px; }
.chips .setrow { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 2px solid rgba(160, 100, 255, 0.3); }
.chips .setrow.focus { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25); }
.chips .setrow .acts { grid-column: 1 / -1; display: flex; gap: 6px; }
.chips .seticons { display: flex; gap: 4px; }
.chips .seticon { width: 34px; height: 34px; border-radius: 50%; background: rgba(10, 6, 30, 0.6); border: 1px dashed rgba(200, 190, 255, 0.3); display: grid; place-items: center; }
.chips .seticon img { width: 30px; height: 30px; object-fit: contain; }
.chips .seticon.off img { opacity: 0.4; }

/* ---- TRADES: find a player */
.trades .findrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trades .findbox { font: inherit; font-size: 14px; padding: 5px 10px; border-radius: 10px; border: 2px solid rgba(160, 100, 255, 0.6); background: rgba(10, 6, 30, 0.7); color: #fff; width: 200px; }
.trades .findmsg { font-size: 12px; color: #ffb3b3; font-weight: 400; }
.trades .metrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ---- phones and tablets (ui/orb.js, ui/touch.js): the round menu button, the game pads, the turn-sideways card */
body.touch, body.touch #view { touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.touch #ui .panel { touch-action: pan-y; } /* (panels still scroll with a finger) */
body.touch button { touch-action: manipulation; }
.orb { position: absolute; z-index: 5; }
.orb .orbball { position: absolute; inset: 0; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
	border: 3px solid var(--yellow); background: radial-gradient(circle at 40% 35%, #b27bff, #3d1b85 75%);
	box-shadow: 0 0 18px rgba(255, 204, 0, 0.55), 0 5px 0 rgba(0, 0, 0, 0.4); }
.orb.open .orbball { box-shadow: 0 0 28px rgba(255, 204, 0, 0.9), 0 5px 0 rgba(0, 0, 0, 0.4); }
.orb .orbface { width: 100%; height: 100%; display: block; }
.orb .orbfan { position: absolute; inset: 0; pointer-events: none; }
.orb .orbfan .rbtn { position: absolute; pointer-events: none; opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.3);
	transition: opacity 0.16s ease-out var(--d, 0s), transform 0.18s cubic-bezier(0.3, 1.4, 0.6, 1) var(--d, 0s); }
.orb.open .orbfan .rbtn { opacity: 1; transform: none; pointer-events: auto; }
.orb .olabel { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-size: 9px; white-space: nowrap; color: #fff; text-shadow: 1px 1px 0 #28104f, -1px 1px 0 #28104f; pointer-events: none; }
#ui.touch .prompt { cursor: pointer; font: inherit; color: #fff; }
#ui.touch .playmute { bottom: auto; top: 10px; } /* (up top, clear of the game pad) */
.touchpad { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.touchpad .tbtn { position: absolute; pointer-events: auto; padding: 0; border-radius: 50%; display: grid; place-items: center; touch-action: none;
	font: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0.5px; color: #fff; text-shadow: 1px 1px 0 #28104f;
	background: radial-gradient(circle at 40% 35%, rgba(178, 123, 255, 0.55), rgba(40, 18, 96, 0.55)); border: 3px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); -webkit-tap-highlight-color: transparent; }
.touchpad .tbtn.big { font-size: 18px; border-color: rgba(255, 204, 0, 0.8); }
.touchpad .tbtn.on { background: radial-gradient(circle at 40% 35%, rgba(255, 224, 102, 0.85), rgba(255, 170, 0, 0.7)); color: #462800; text-shadow: none; transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
/* the thumb stick (ui/touch.js stickPad): a ring with a knob that follows the thumb and springs back */
.touchpad .tstick { position: absolute; pointer-events: auto; border-radius: 50%; display: grid; place-items: center; touch-action: none; -webkit-tap-highlight-color: transparent;
	background: radial-gradient(circle, rgba(40, 18, 96, 0.25) 30%, rgba(40, 18, 96, 0.5)); border: 3px solid rgba(255, 255, 255, 0.45); box-shadow: inset 0 0 18px rgba(178, 123, 255, 0.35); }
.touchpad .tstick::before { content: ''; position: absolute; inset: -16px; border-radius: 50%; } /* (a thumb that lands just outside still grabs it) */
.touchpad .tstick .knob { width: 46%; height: 46%; border-radius: 50%; pointer-events: none; transition: transform 0.12s ease-out;
	background: radial-gradient(circle at 40% 35%, rgba(178, 123, 255, 0.85), rgba(40, 18, 96, 0.8)); border: 3px solid rgba(255, 255, 255, 0.7); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.touchpad .tstick.on { border-color: rgba(255, 204, 0, 0.8); }
.touchpad .tstick.on .knob { transition: none; background: radial-gradient(circle at 40% 35%, rgba(255, 224, 102, 0.9), rgba(255, 170, 0, 0.75)); }
.rotate { display: none; }
@media (orientation: portrait) and (max-width: 700px) { /* (phones: a tablet fits the stage upright) */
	body.touch .rotate { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: rgba(7, 5, 26, 0.96); }
	.rotatecard { display: grid; gap: 8px; place-items: center; text-align: center; color: #fff; font: 700 18px "Trebuchet MS", sans-serif; padding: 24px; }
	.rotatecard .rotateicon { font-size: 54px; animation: rotatehint 1.8s ease-in-out infinite; }
	.rotatecard span { font-weight: 400; font-size: 14px; color: #c8beff; }
	@keyframes rotatehint { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
}
.orb .orbfan .rbtn { width: 58px; height: 58px; font-size: 24px; border-radius: 16px; }
.orb .olabel { font-size: 11px; }
/* (on a phone the stage is drawn at about two thirds size: the small buttons get a bigger target) */
#ui.touch .btn.small { min-height: 34px; padding: 6px 14px; font-size: 14px; }
#ui.touch .panel header .btn { min-height: 38px; padding: 6px 18px; }
#ui.touch .chatpill { padding: 7px 14px 7px 7px; font-size: 14px; }

/* ---- open lobby lists (every arcade game): rooms by their host's name, not a code */
.roomrow { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.roomrow b { letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roomrow span { white-space: nowrap; }
.roomrow.closed, .roomrow:disabled { opacity: 0.55; cursor: default; }
.roomrow.closed .go { color: var(--muted); }
.roomrow:disabled:hover { background: rgba(255, 255, 255, 0.06); }

/* ---- phones, after the review: thumbs on the pads, bigger ways out, compact shop rows kept compact */
.touchpad .tbtn > span { pointer-events: none; } /* (the finger lands on the button, so letting go of its capture works) */
.touchpad .tbtn::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; } /* (a thumb that drifts a little keeps it) */
#ui.touch.game-blobpop .playmute { top: auto; bottom: 10px; } /* (Blob Pop has no pad, and its cash is top-right) */
#ui.touch .backpill { font-size: 17px; padding: 8px 10px 8px 18px; }
#ui.touch .prompt { padding: 7px 16px 7px 7px; font-size: 15px; }
#ui.touch .playmute { width: 48px; height: 48px; font-size: 20px; }
#ui.touch .tdrow .btn.small, #ui.touch .tdinfo .btn.small { min-height: 0; padding: 3px 2px; font-size: 10px; }
#ui.touch .tdinfo .uprow .btn.small { padding: 2px 6px; }

/* ---- popouts, less in the way (2026-10-16): a slim emote strip; a narrow profile card on the far side */
.emotestrip { position: absolute; padding: 6px; border-radius: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 6; animation: slidein 0.14s ease-out; max-width: 470px; }
.emotestrip .emoterow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.emotestrip .emote, .emotestrip .emotetitle { position: relative; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 12px; cursor: pointer;
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(200, 190, 255, 0.3); color: #fff; font: inherit; }
.emotestrip .emote:hover, .emotestrip .emotetitle:hover { background: rgba(255, 204, 0, 0.16); border-color: var(--yellow); }
.emotestrip .emote span, .emotestrip .emotetitle span { font-size: 22px; line-height: 1; }
.emotestrip .emote small { position: absolute; right: 3px; bottom: 1px; font-size: 9px; color: var(--muted); }
.emotestrip .emotenext { font-size: 11px; color: var(--muted); padding: 0 4px; white-space: nowrap; cursor: help; }
.emotestrip .titlerow { display: flex; flex-wrap: wrap; gap: 4px; max-width: 440px; }
.emotestrip .titlerow .btn { font-size: 11px; padding: 3px 8px; }
#ui.touch .emotestrip .emote, #ui.touch .emotestrip .emotetitle { width: 56px; height: 56px; }
#ui.touch .emotestrip .emote span, #ui.touch .emotestrip .emotetitle span { font-size: 28px; }
.settings .ctoggle { margin: 8px 0 4px; }
.playercard.big.side { width: 300px; top: 56px; grid-template-columns: 1fr; gap: 10px; max-height: 492px; }
.playercard.big.side.left { left: 16px; right: auto; }
.playercard.big.side.right { left: auto; right: calc(16px + var(--rr, 0px)); }
.playercard.big.side .pportrait { width: 268px; height: 268px; justify-self: center; }
.playercard.big.side .pinfo { max-height: 196px; }

/* ---- the emotes beside a rail up the side: a narrow column hugging it (two once you have them all), titles beside */
.emotestrip.column { flex-direction: row; align-items: flex-start; max-width: none; }
.emotestrip.column.fromright { flex-direction: row-reverse; }
.emotestrip.column .emoterow { display: grid; gap: 4px; justify-items: center; }
.emotestrip.column .emotenext { padding: 2px 0; font-size: 10px; text-align: center; }
.emotestrip.column .titlerow { flex-direction: column; flex-wrap: nowrap; align-items: stretch; max-width: 150px; max-height: 500px; overflow-y: auto; }
#ui.touch .emotestrip { max-width: 800px; } /* (one line along the bottom beside the round button) */
#ui.touch .emotestrip .emoterow { flex-wrap: nowrap; }

/* ---- the admin's prank row on a player card */
.playercard .padmin { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.playercard .padmin .label { font-size: 10px; }
.playercard .pranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0; }
.playercard .prank { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px; border-radius: 10px; cursor: pointer;
	border: 1px solid rgba(255, 102, 204, 0.5); background: rgba(80, 20, 70, 0.55); color: #fff; font: inherit; }
.playercard .prank:hover { background: rgba(140, 30, 110, 0.7); border-color: #ff66cc; }
.playercard .prank span { font-size: 20px; line-height: 1; }
.playercard .prank small { font-size: 9px; color: #ffd6f0; white-space: nowrap; }

/* ---- 🛡 ADMIN (ui/admin-panel.js): laid out like TRADES */
.adminpanel { position: absolute; inset: 44px 60px 20px 60px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; overflow: auto; user-select: none; }
.adminpanel header { display: flex; align-items: center; gap: 12px; }
.adminpanel header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 24px; }
.adminpanel .atabs { display: flex; gap: 6px; flex-wrap: wrap; }
.adminpanel .amsg { min-height: 18px; font-size: 13px; }
.adminpanel .amsg.ok { color: #9cff7a; }
.adminpanel .amsg.bad { color: #ff8a8a; }
.adminpanel .abody { display: flex; flex-direction: column; gap: 6px; }
.adminpanel .arows { display: flex; flex-direction: column; gap: 4px; }
.adminpanel .arow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 5px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.2); }
.adminpanel .arow b { min-width: 120px; }
.adminpanel .awhere { flex: 1; font-size: 12px; font-weight: 400; color: var(--muted); }
.adminpanel .achoose { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.adminpanel .aoff { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adminpanel input { font: inherit; font-size: 14px; padding: 5px 10px; border-radius: 10px; border: 2px solid rgba(160, 100, 255, 0.6); background: rgba(10, 6, 30, 0.7); color: #fff; }
.adminpanel .aname, .adminpanel .ato { width: 190px; }
.adminpanel .afind { width: 260px; }
.adminpanel .awhy { width: 210px; }
.adminpanel .acount { width: 64px; }
.adminpanel .aspawn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.adminpanel .apicked { font-weight: 700; color: var(--yellow); }
.adminpanel .blurb { margin: 2px 0 0; font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---- no tap flash on phones: the stage counts as tappable, so without this a phone browser flashes its grey/blue
   tap box over the whole game on every tap to walk (Seth, 2026-10-16) */
* { -webkit-tap-highlight-color: transparent; }

/* ---- a phone held upright whose page won't turn (Discord's browser, rotation lock): the game is drawn sideways
   (engine/stage.js), and the "turn your phone" card goes by itself or with a tap instead of blocking it */
@media (orientation: portrait) and (max-width: 700px) {
	body.touch .rotate { animation: rotategone 0.5s ease-in 3.5s forwards; cursor: pointer; }
}
@keyframes rotategone { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.rotate.gone { display: none !important; }
body.sideways .drag-ghost { transform: scale(1.1) rotate(84deg); } /* (its usual tilt, turned with the game) */

/* ---- in an arcade game the pop-ups ("Saucer down!") show top-centre: top-right sits under Blob Pop's shop and
   Hover Hop's race board (Seth, 2026-10-16: "what are these ufo tabs on the right") */
#ui[class*="game-"] .toasts { left: 50%; right: auto; top: 58px; transform: translateX(-50%); align-items: center; z-index: 8; }

/* ---- every game's Top 5 on its menu card (ui/room-picker.js board, Ooze Defense, Hover Hop) */
.menuboard { margin: 6px 0 2px; }
.menuboard .blist { max-width: 420px; margin: 0 auto; }

/* ---- special titles (logic/titles.js) on the 🏷 list */
.emotestrip .titlerow .btn.special { border-color: #ffd65a; box-shadow: 0 0 6px rgba(255, 214, 90, 0.45); }

/* ---- Fusion: a finger drags chips in and out instead of scrolling the panel */
.fusion .pickchip, .fusion .fslot { touch-action: none; }

/* ---- Blob Pop's shop always fits (Seth, 2026-10-16: "when you overclock you then cant sell and in multiplayer vs
   things are off the screen"): the upgrade list scrolls with Sell pinned under it, and the shop scrolls if need be */
.tdshop { overflow-y: auto; overscroll-behavior: contain; }
.tdinfo { min-height: 96px; }
.tdinfo .tdrows { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.tdinfo .tdsell { flex: none; }
.tdpeers { max-height: 64px; overflow-y: auto; }
body.touch .tdshop, body.touch .tdinfo .tdrows, body.touch .tdpeers { touch-action: pan-y; }

/* ---- Blob Pop versus: someone asking for ×3 speed */
.tdask { flex: none; display: flex; flex-direction: column; gap: 3px; padding: 5px; border-radius: 10px; background: rgba(255, 204, 0, 0.12); border: 1px solid rgba(255, 204, 0, 0.5); }
.tdask .small { font-size: 11px; color: #ffe9a0; }

/* ---- Blob Pop's shop: the Round button, a speed ask and Speed / Auto / Leave stay put at the bottom; the rest scrolls */
.tdshop { overflow: hidden; }
.tdshop .tdscroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; }
.tdshop .tdscroll .tdinfo { flex: 1 0 auto; }
.tdshop > .btn, .tdshop > .tdrow, .tdshop > .tdask { flex: none; }
body.touch .tdshop .tdscroll { touch-action: pan-y; }

/* ---- a test server (serve.mjs with its own data file) says so, so it's never mistaken for the live game (ui/test-badge.js) */
.testbadge { position: fixed; top: 6px; left: 50%; transform: translateX(-50%); z-index: 10000; pointer-events: none; white-space: nowrap;
	padding: 3px 12px; border-radius: 999px; border: 2px solid #1a1300; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	background: repeating-linear-gradient(-45deg, #ffcc00 0 10px, #ffe066 10px 20px); color: #1a1300;
	font: 800 12px/1.2 "Trebuchet MS", "Segoe UI", system-ui, sans-serif; letter-spacing: 0.06em; }

/* ---- chat in every arcade game (ui/hud.js setPlaying, server/world.mjs game chat): a 💬 button beside 🔊, and only
   players' lines, small, up under the "◀ Arcade" pill (clear of the touch pad at the bottom) */
.gamechat { position: absolute !important; right: 64px; bottom: 10px; z-index: 6; }
#ui.touch .gamechat { bottom: auto; top: 10px; right: 66px; width: 48px; height: 48px; font-size: 20px; }
#ui.touch.game-blobpop .gamechat { top: auto; bottom: 10px; }
.ingame .chat { top: 48px; bottom: auto; left: 10px; width: 280px; max-height: 96px; font-size: 11.5px; pointer-events: none; }
.ingame .chat > div { font-size: 11.5px; }
.ingame .chat > :not(.said) { display: none; }

/* ---- an admin's message to everyone (ui/hud.js announce): a banner across the top, over everything, even a game */
.announce { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px;
	width: max-content; max-width: min(620px, calc(100% - 32px)); padding: 10px 12px; border: 2px solid #ffcc00; border-radius: 14px;
	background: rgba(36, 16, 78, 0.97); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 204, 0, 0.35); color: #fff;
	font-size: 15px; line-height: 1.35; pointer-events: auto; animation: announcein 0.35s ease-out; }
.announce .aicon { font-size: 22px; flex: none; }
.announce .atext b { color: #ffcc00; }
.announce .btn { flex: none; }
@keyframes announcein { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.adminpanel .asay { width: 100%; box-sizing: border-box; }

/* ---- the Labyrinth (world/maze-mode.js): the clock up in the corner · SiteKick Factory (world/factory-mode.js) */
.mazeinfo { position: absolute; top: 52px; left: 12px; padding: 4px 10px; font: 800 12px "Trebuchet MS", sans-serif; letter-spacing: 0.05em;
	color: #ffe98a; background: rgba(26, 20, 6, 0.75); border: 1px solid rgba(232, 210, 106, 0.6); border-radius: 8px; }
.factorybox { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 690px; height: 502px;
	max-width: calc(100% - 24px); max-height: calc(100% - 70px); padding: 0; overflow: hidden; display: flex; align-items: center;
	justify-content: center; background: #000; border: 3px solid #ffb03c; }
.factorybox .factoryplayer { width: 100%; height: 100%; display: block; }
.factorymsg { color: #ffe0a0; font: 700 15px "Trebuchet MS", sans-serif; padding: 20px; text-align: center; }

/* ---- the sign-in card always fits (more test accounts than the screen has room for): the list scrolls on its own,
   under the code box and GO, and the card can never run past the bottom of the screen */
.signin .card { max-height: calc(100% - 16px); overflow-y: auto; box-sizing: border-box; }
.signin .demo { max-height: 172px; overflow-y: auto; overscroll-behavior: contain; }

/* ---- keeping your chips (Seth, 2026-10-17): sort, ★ favourites, SELECT to dump lots at once, the bin, the vault ---- */
.invhead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.invhead .label { flex: 1; margin: 0; }
.invhead .tools { display: flex; gap: 5px; align-items: center; }
.tool { font: inherit; font-size: 11px; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(160, 100, 255, 0.45); border-radius: 999px; padding: 2px 10px; cursor: pointer; white-space: nowrap; }
.tool:hover { color: #fff; border-color: #fff; }
.tool.on { color: #1a0f3c; background: var(--yellow); border-color: var(--yellow); }
.bin { width: 30px; height: 26px; display: grid; place-items: center; font-size: 16px; border-radius: 9px; border: 2px dashed rgba(255, 98, 98, 0.65); background: rgba(255, 98, 98, 0.1); cursor: default; }
.bin.drop { border-style: solid; border-color: var(--red); background: rgba(255, 98, 98, 0.45); transform: scale(1.2); box-shadow: 0 0 14px var(--red); }
.selbar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.inv.selecting .cell:not(.empty) { cursor: copy; }
.cell.ticked { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); background: rgba(255, 98, 98, 0.18); }
.cell.ticked img { opacity: 0.6; }
.cell .tick { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: 15px; line-height: 24px; text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.cell .star { position: absolute; left: 4px; top: 1px; color: var(--yellow); font-size: 13px; text-shadow: 0 1px 2px #000; }
.cell.fav { border-color: rgba(255, 204, 0, 0.7); }
.details .confirm { padding: 6px 8px; border-radius: 10px; border: 2px solid var(--red); background: rgba(255, 98, 98, 0.12); }
.details .confirm .desc { -webkit-line-clamp: 4; }
/* a chip you've never had (trade offers, the Prize Counter shelf): a bouncing "!" like the one in the Dump */
.newmark { position: absolute; top: -9px; right: -7px; width: 17px; height: 17px; border-radius: 5px; background: #ffe14d; color: #3a2a00; border: 2px solid #fff; font-size: 12px; font-weight: 900; line-height: 13px; text-align: center; animation: newhop 0.7s ease-in-out infinite alternate; pointer-events: none; z-index: 1; }
@keyframes newhop { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.pickchip { position: relative; }
.shelfitem { position: relative; }
.vault { position: absolute; inset: 44px 20px 20px 20px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; gap: 6px 18px; user-select: none; -webkit-user-select: none; }
.vault header { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.vault header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 24px; }
.vault img { -webkit-user-drag: none; }
.vault .cell { touch-action: none; }
.vault .vcol { min-width: 0; }
.vault .vbuy { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.vault .vtokens { font-size: 12px; color: var(--muted); }
.vault .vfoot { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 30px; }
.vault .vacts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; font-size: 13px; }
.vault .vacts .vhint { font-size: 11px; font-weight: 400; color: var(--muted); }
.vault .vmsg { font-size: 12px; color: #ffaa5a; max-width: 45%; text-align: right; }
.vault .vmsg.ok { color: #9ff58f; }
.vault .inv.drop { outline: 3px dashed var(--green); outline-offset: 4px; border-radius: 12px; }

/* finding a chip in your bag and your vault (ui/chips-panel.js searchBox) */
.panel .csearch { width: 150px; min-width: 0; padding: 5px 9px; border-radius: 9px; border: 2px solid #6a4fc4; background: #1a1240; color: #fff; font: inherit; font-size: 13px; }
.panel .csearch::placeholder { color: #a99be0; }
.panel .csearch:focus { outline: none; border-color: #ffcc00; box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25); }
.panel.vault header .csearch { margin-left: auto; }
@media (max-width: 640px) { .panel .csearch { width: 110px; } }

/* boss auras: CHIPS → AURA (ui/chips-panel.js drawAuras) and the ✨ by your portrait (ui/hud.js) */
.panel.chips .auraview .aurarows { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.panel.chips .aurarow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(40, 28, 96, 0.7); border: 2px solid #4b3a9a; }
.panel.chips .aurarow.on { border-color: #ffcc00; box-shadow: 0 0 12px rgba(255, 204, 0, 0.35); }
.panel.chips .aurarow.locked { opacity: 0.6; }
.panel.chips .aurarow .swatch { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 2px solid rgba(255, 255, 255, 0.6); }
.panel.chips .aurarow .grow { flex: 1; min-width: 0; }
.panel.chips .aurarow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.panel.chips .aurarow .locked { color: #b9b0e8; font-size: 12px; }
.panel.chips .aurawait { color: #ffcc00; margin-top: 6px; }
.plate .aurabtn { margin-left: 6px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #6a4fc4; background: #2a1d66; font-size: 15px; cursor: pointer; padding: 0; flex: none; }
.plate .aurabtn.on { border-color: #ffcc00; box-shadow: 0 0 10px rgba(255, 204, 0, 0.6); }
.playercard .pportrait.bossaura { box-shadow: 0 0 26px 6px var(--bc), inset 0 0 22px var(--bc); border-color: var(--bc); }

/* ---- 👥 Play with friends (src/ui/friends-panel.js): who's on and where, every game's rooms, everyone offline ---- */
.friendspanel { position: absolute; inset: 44px 60px 20px 60px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; overflow: auto; user-select: none; }
.friendspanel header { display: flex; align-items: center; gap: 12px; }
.friendspanel header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 24px; }
.friendspanel .fbody { display: flex; flex-direction: column; gap: 4px; }
.friendspanel .frow { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.2); }
.friendspanel .frow i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); }
.friendspanel .frow b { min-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friendspanel .fwhere { flex: 1; font-size: 13px; font-weight: 400; color: var(--muted); }
.friendspanel .fhere .fwhere { color: #9cff7a; }
.friendspanel .fwhy { font-size: 12px; color: var(--muted); }
.friendspanel .foffline { opacity: 0.55; }
.friendspanel .foffline i { background: transparent; border-style: dashed; }
/* 🗺 MAP (ui/map-panel.js): an area card each, a tile per place; the place you're in glows green */
.mappanel { position: absolute; inset: 44px 60px 20px 60px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; overflow: auto; user-select: none; }
.mappanel header { display: flex; align-items: center; gap: 12px; }
.mappanel header h2 { margin: 0; color: var(--yellow); font-size: 24px; }
.mappanel .mhint { flex: 1; font-size: 13px; font-weight: 400; color: var(--muted); }
.mappanel .mareas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.mappanel .marea { padding: 8px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.25); }
.mappanel .marea-labs { grid-column: 1 / -1; } /* (the labs are the middle of everything: a full row) */
.mappanel .marea h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: 1.5px; color: var(--muted); }
.mappanel .mrooms { display: flex; flex-wrap: wrap; gap: 8px; }
.mappanel .mroom { flex: 1 1 108px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 8px; border-radius: 12px;
	font: inherit; color: #fff; cursor: pointer; background: radial-gradient(circle at 40% 30%, rgba(178, 123, 255, 0.35), rgba(40, 18, 96, 0.55)); border: 2px solid rgba(255, 255, 255, 0.3); }
.mappanel .mroom:hover:not(:disabled) { border-color: var(--yellow); }
.mappanel .mroom .micon { font-size: 22px; line-height: 1; }
.mappanel .mroom b { font-size: 13px; }
.mappanel .mroom small { font-size: 11px; color: #9cff7a; }
/* 📺 SK-TV (ui/sktv-panel.js): one row a player, 11 to a page; yours in yellow, a green dot for who's on now */
.sktvpanel { position: absolute; inset: 44px 60px 20px 60px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; user-select: none; }
.sktvpanel header { display: flex; align-items: center; gap: 10px; }
.sktvpanel header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 24px; }
.sktvpanel .tsearch { width: 190px; }
.sktvpanel .thead, .sktvpanel .trow { display: grid; grid-template-columns: 56px 1fr 150px 90px; align-items: center; gap: 8px; padding: 0 12px; }
.sktvpanel .thead { font-size: 11px; letter-spacing: 1.2px; color: var(--muted); }
.sktvpanel .tbody { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.sktvpanel .trow { min-height: 28px; border-radius: 10px; font: inherit; color: #fff; text-align: left; cursor: pointer; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.2); }
.sktvpanel .trow:hover { border-color: var(--yellow); }
.sktvpanel .trow.tmine { background: rgba(255, 204, 0, 0.14); border-color: rgba(255, 204, 0, 0.6); }
.sktvpanel .tplace { font-weight: 800; color: var(--yellow); }
.sktvpanel .tname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sktvpanel .tname i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); }
.sktvpanel .tname b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sktvpanel .tname small { flex: none; font-size: 11px; color: #9cff7a; font-weight: 400; }
.sktvpanel .trank { font-size: 13px; color: var(--muted); font-weight: 400; }
.sktvpanel .txp { text-align: right; font-weight: 800; color: #9cff7a; }
.sktvpanel .pager { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; }
/* a player's card up beside it (main.js findPlayer `beside`, the 300px side card on the right): SK-TV moves left to make
   room, and the row whose card it is gets a white edge — both gone the moment the card closes */
.sktvpanel { transition: left 0.18s ease, right 0.18s ease; }
.sktvpanel:has(~ .playercard.big.side.right) { left: 16px; right: calc(332px + var(--rr, 0px)); }
.sktvpanel:has(~ .playercard.big.side.right) .trow.tview { background: rgba(255, 255, 255, 0.14); border-color: #fff; box-shadow: inset 4px 0 0 #fff; }
.mappanel .mroom.mhere { cursor: default; border-color: #9cff7a; background: radial-gradient(circle at 40% 30%, rgba(120, 255, 120, 0.25), rgba(20, 70, 40, 0.55)); }

/* Ooze Dash (world/dash-mode.js): the level picker, and each level's top 5 */
.runcard.dashcard { --top: 54px; --lift: 0px; width: 600px; }
.dashlevels { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.dashlevel { display: grid; grid-template-columns: 40px 1fr 150px auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(10, 6, 30, 0.55); border: 2px solid rgba(160, 100, 255, 0.35); text-align: left; }
.dashlevel.on, .dashlevel:hover { border-color: var(--yellow); background: rgba(60, 30, 120, 0.55); }
.dashlevel .face { font-size: 26px; text-align: center; }
.dashlevel .name b, .dashlevel .best b { display: block; font-size: 15px; }
.dashlevel .name span, .dashlevel .best span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.dashlevel .best b { color: var(--green); }
.dashlevel .go { display: flex; gap: 6px; }
.dashboard { margin: 0 auto 10px; width: 320px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); font-size: 13px; }
.dashboard .label { font-size: 11px; color: var(--yellow); letter-spacing: 1px; margin-bottom: 3px; }
.dashboard .row { display: flex; justify-content: space-between; padding: 1px 0; font-weight: 400; }
.dashboard .row.me { color: var(--yellow); font-weight: 700; }

/* Idle Brawl (world/idle-mode.js): the shop down the right, the skills along the bottom of the fight */
.idlebrawl .idleshop { position: absolute; right: 8px; top: 8px; bottom: 58px; width: 344px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
#ui.touch .idlebrawl .idleshop { top: 66px; bottom: 8px; }
.idleshop .purse { display: flex; align-items: baseline; gap: 8px; }
.idleshop .purse .coin { font-size: 22px; }
.idleshop .purse .gold { font-size: 28px; color: var(--yellow); text-shadow: 2px 2px 0 #28104f; }
.idleshop .purse .rate { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: auto; }
.idleshop .tabs { display: flex; gap: 4px; }
.idleshop .tabs .tab { flex: 1; padding: 5px 0; border-radius: 9px; border: 2px solid rgba(160, 100, 255, 0.4); background: rgba(10, 6, 30, 0.5); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.idleshop .tabs .tab.on { border-color: var(--yellow); color: var(--yellow); background: rgba(60, 30, 120, 0.6); }
.idleshop .buyn { display: flex; gap: 4px; justify-content: flex-end; }
.idleshop .buyn .n { padding: 1px 9px; border-radius: 7px; border: 2px solid rgba(160, 100, 255, 0.35); background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.idleshop .buyn .n.on { border-color: var(--green); color: var(--green); }
.idleshop .list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 2px; }
.idleshop .item { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 11px; background: rgba(10, 6, 30, 0.55); border: 2px solid rgba(160, 100, 255, 0.3); }
.idleshop .item.cant { opacity: 0.72; }
.idleshop .item .ic { font-size: 20px; text-align: center; }
.idleshop .item .top { display: flex; align-items: baseline; gap: 6px; }
.idleshop .item .top b { font-size: 14px; }
.idleshop .item .lv { font-size: 11px; color: var(--green); }
.idleshop .item .what { font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.25; }
.idleshop .item .buy { min-width: 72px; white-space: nowrap; }
.idleshop .item .buy:disabled { filter: grayscale(0.8); opacity: 0.6; cursor: default; }
.idleshop .reborn { padding: 8px 4px; text-align: center; }
.idleshop .reborn h3 { margin: 4px 0 6px; color: #d29bff; }
.idleshop .reborn p { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4; white-space: pre-line; }
.idleshop .stats { font-size: 11px; font-weight: 400; color: var(--muted); white-space: pre-line; border-top: 1px solid rgba(160, 100, 255, 0.3); padding-top: 6px; line-height: 1.35; }
.idlebrawl .idleskills { position: absolute; left: 10px; top: 60px; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.idleskills .skill { position: relative; overflow: hidden; width: 86px; height: 58px; border-radius: 12px; border: 3px solid var(--panel-edge); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px; }
.idleskills .skill .fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--cd, 0) * 100%); background: rgba(0, 0, 0, 0.55); pointer-events: none; }
.idleskills .skill .ic { font-size: 20px; line-height: 1; position: relative; }
.idleskills .skill b { font-size: 10px; position: relative; }
.idleskills .skill small { font-size: 10px; font-weight: 400; color: var(--muted); position: relative; }
.idleskills .skill kbd { position: absolute; top: 2px; right: 5px; font-size: 9px; color: var(--muted); }
.idleskills .skill.ready { border-color: var(--yellow); box-shadow: 0 0 12px rgba(255, 204, 0, 0.45); }
.idleskills .skill.on { border-color: var(--green); box-shadow: 0 0 16px rgba(92, 214, 74, 0.7); }
.idleskills .skill.locked { opacity: 0.5; cursor: default; }
.idleskills .bossbtn { height: 40px; font-size: 12px; padding: 4px 8px; }
.idleskills .bossbtn.glow { animation: idleglow 0.9s ease-in-out infinite alternate; }
@keyframes idleglow { from { box-shadow: 0 0 4px rgba(255, 204, 0, 0.4); } to { box-shadow: 0 0 22px rgba(255, 204, 0, 0.95); } }
.runcard.idlecard { left: 300px; --top: 120px; --lift: 66px; width: 440px; }
.idleshop .board { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; }
.idleshop .board .row { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 8px; background: rgba(10, 6, 30, 0.5); font-size: 13px; font-weight: 400; }
.idleshop .board .row.me { color: var(--yellow); font-weight: 700; border: 1px solid rgba(255, 204, 0, 0.5); }
.idleshop .boardnote { font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.35; padding: 6px 4px 0; }

/* The Labyrinth's escape card: the fastest escapes (world/maze-mode.js) */
.mazeboard { margin: 0 auto 10px; width: 300px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); font-size: 13px; }
.mazeboard .label { font-size: 11px; color: var(--yellow); letter-spacing: 1px; margin-bottom: 3px; }
.mazeboard .row { display: flex; justify-content: space-between; padding: 1px 0; font-weight: 400; }
.mazeboard .row.me { color: var(--yellow); font-weight: 700; }

/* SCRAP FM, the Scrap Racers radio (world/racers-radio.js): bottom left of the racing screen, clear of the lap counter
   (top left) and the minimap (top right); the song list opens upwards */
.racersradio { position: absolute; left: 10px; bottom: 10px; width: 232px; padding: 8px 10px; border-radius: 12px; background: rgba(14, 8, 34, 0.84); border: 2px solid rgba(255, 216, 74, 0.55); color: #fff; font-size: 12px; text-align: left; z-index: 3; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.racersradio .rr-head { display: flex; justify-content: space-between; align-items: baseline; }
.racersradio .rr-logo { font-weight: 800; color: var(--yellow); letter-spacing: 0.5px; font-size: 11px; }
.racersradio .rr-time { color: var(--muted); font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; }
.racersradio .rr-song { display: block; margin-top: 2px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.racersradio .rr-by { display: block; min-height: 12px; color: var(--muted); font-size: 10px; font-weight: 400; }
.racersradio .rr-bar { height: 4px; margin: 6px 0; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.racersradio .rr-bar i { display: block; height: 100%; width: 0; background: var(--yellow); }
.racersradio .rr-btns { display: flex; gap: 4px; }
.racersradio .rr-btn { flex: 1; padding: 3px 0; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 14px; line-height: 1.2; cursor: pointer; }
.racersradio .rr-btn:hover { background: rgba(255, 216, 74, 0.25); }
.racersradio .rr-btn.on { background: rgba(255, 216, 74, 0.35); border-color: var(--yellow); }
.racersradio.off .rr-song { color: var(--muted); }
.racersradio .rr-list { margin-top: 6px; max-height: 190px; overflow: auto; display: flex; flex-direction: column; gap: 3px; }
.racersradio .rr-row { text-align: left; padding: 4px 6px; border-radius: 6px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; }
.racersradio .rr-row:hover { background: rgba(255, 216, 74, 0.18); }
.racersradio .rr-row b { display: block; font-size: 11px; }
.racersradio .rr-row small { color: var(--muted); font-size: 10px; font-weight: 400; }
.racersradio .rr-row.on { border-color: var(--yellow); }
/* phones: the steering pad is bottom left and the driving buttons bottom right (ui/touch.js LAYOUTS.racers), so the
   radio sits top left under the lap time and coins — slimmer, with finger-sized buttons; its list opens downwards */
body.touch .racersradio { top: 152px; bottom: auto; width: 200px; padding: 6px 8px; }
/* in the Racers' Lounge and the Garage (Seth: "i want the music to play in the lobby too"): one strip, top right, clear of
   the chat (bottom left) and the lounge's starting lights over the track door */
.racersradio.inroom, body.touch .racersradio.inroom { left: auto; right: calc(8px + var(--rr, 0px)); top: calc(8px + var(--rt, 0px)); bottom: auto; width: 250px; padding: 4px 8px; display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; }
.racersradio.inroom .rr-time, .racersradio.inroom .rr-by, .racersradio.inroom .rr-bar { display: none; }
.racersradio.inroom .rr-song { margin-top: 0; font-size: 12px; }
.racersradio.inroom .rr-btns, .racersradio.inroom .rr-list { grid-column: 1 / -1; }
.racersradio.inroom .rr-btns { margin-top: 3px; }
.racersradio.inroom .rr-btn { font-size: 12px; padding: 1px 0; }
body.touch .racersradio .rr-by, body.touch .racersradio .rr-time { display: none; }
body.touch .racersradio .rr-btn { padding: 6px 0; font-size: 16px; }
body.touch .racersradio .rr-list { max-height: 130px; }

/* Basement menus share the existing game panel palette and button hierarchy. */
.basement-panel { position:absolute; inset:44px 70px 20px; padding:12px 14px; display:flex; flex-direction:column; gap:12px; overflow:hidden; }
.basement-panel > header { display:flex; align-items:center; gap:12px; flex:none; border-bottom:2px solid rgba(160,100,255,.3); padding-bottom:10px; }
.basement-panel > header h2 { margin:0; flex:1; color:var(--yellow); font-size:24px; }
.basement-panel-body { min-height:0; overflow:auto; display:grid; gap:12px; padding:2px 5px 12px 0; align-content:start; }
.basement-copy { line-height:1.5; margin:4px 0; font-size:14px; color:var(--muted); }
.basement-panel .btn { white-space:normal; }
.basement-preview { background:var(--night); border:2px solid var(--panel-edge); border-radius:12px; }
.basement-io { inset:32px 24px 18px; }
.basement-io p { color:var(--muted); }
.basement-io:fullscreen { position:fixed; inset:0; width:100vw; height:100dvh; box-sizing:border-box; transform:none; border-radius:0; background:#17102b; padding:12px 20px; }
.basement-io-results { border:1px solid #9269bd; border-radius:10px; background:#231835; padding:12px 18px; max-width:440px; }
.basement-io-results h3 { color:var(--yellow); margin:0 0 10px; }
.basement-io-results p { margin:8px 0; }
.basement-fishing { inset:18px 40px 12px; gap:6px; }
.basement-fishing .basement-panel-body { gap:6px; }
.basement-fishing .basement-copy { margin:3px 0; font-size:13px; }
.basement-fishing:not(:fullscreen) .basement-preview { width:auto !important; max-width:100%; height:280px; justify-self:center; } /* (the water a little smaller, so HOOK NOW and Hold to raise bar fit without scrolling) */
.basement-fishing:fullscreen { position:fixed; inset:0; width:100vw; height:100dvh; box-sizing:border-box; transform:none; border-radius:0; background:#17102b; }
.basement-fishing:fullscreen .basement-panel-body { width:min(100%,900px); align-self:center; }
.radio-console { padding:16px; border:3px solid #667372; border-radius:12px; background:linear-gradient(145deg,#394440,#182623); box-shadow:inset 0 0 0 3px #111b1a; }
.radio-readout { padding:12px; background:#091611; color:#b2d5ad; font: bold 15px monospace; text-align:center; border:2px inset #526259; overflow-wrap:anywhere; }
.radio-dials { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:16px; }
.radio-channel { display:flex; flex-direction:column; align-items:center; gap:7px; color:#c7c7ac; font:11px monospace; }
.radio-lamp { width:11px; height:11px; border-radius:50%; background:#18291a; border:2px solid #09120b; }
.radio-lamp.aligned { background:#83ff91; box-shadow:0 0 12px #72ff89; }
.radio-knob { width:60px; height:60px; border:4px solid #111919; border-radius:50%; background:repeating-conic-gradient(#43514a 0deg 7deg,#2d3731 7deg 14deg); box-shadow:2px 4px 5px #0008; }
.radio-needle { display:block; width:100%; height:100%; position:relative; }
.radio-needle:after { content:''; position:absolute; width:4px; height:18px; left:calc(50% - 2px); top:4px; background:#e5deb4; border-radius:2px; }
.radio-channel input { width:min(100%,130px); accent-color:#d4c58a; cursor:ew-resize; }

.vault-feed-top{display:flex;gap:20px;align-items:center;margin-bottom:12px}.vault-feed-slot{width:180px;min-height:130px;flex-shrink:0;border:5px solid #87908e;border-radius:12px;background:linear-gradient(#34464b,#101d23);box-shadow:inset 0 10px 20px #000;color:#ffcc00;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px}.vault-feed-slot img{width:72px;height:72px;object-fit:contain}.vault-chip-bag{display:grid;grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:10px;margin:14px 0;height:260px;min-height:260px;grid-auto-rows:76px;align-content:start;overflow:auto;padding:8px}.vault-chip-tile{position:relative;aspect-ratio:1;border:2px solid #c8beff55;border-radius:12px;background:#ffffff10;cursor:pointer}.vault-chip-tile:hover,.vault-chip-tile:focus{border-color:var(--chip-color);box-shadow:0 0 9px var(--chip-color)}.vault-chip-tile img{width:74%;height:74%;object-fit:contain}.vault-chip-tile span{position:absolute;bottom:2px;right:3px;background:var(--chip-color);border-radius:4px;padding:1px 4px;color:#141034;font-weight:bold}.vault-chip-tile:disabled{filter:grayscale(1);opacity:.4;cursor:default}.vault-notes{background:#e0d3a7;color:#403a2a;padding:12px;margin:12px 0;border-left:4px solid #ad6a5e}.vault-note-row{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #9b967666;padding:8px 0}.vault-notes p{color:#403a2a}@media(max-width:600px){.vault-feed-top{flex-direction:column}}

.vault-input{box-sizing:border-box;width:100%;padding:10px 12px;border:2px solid #7663ac;border-radius:9px;background:#211b40;color:#eee6ff;font:inherit}.vault-input::placeholder{color:#bdb0db}.vault-note-pages{display:flex;align-items:center;justify-content:space-between;gap:12px}.vault-note-pages .btn{width:auto!important}

/* Keep the growing aura catalogue inside the chip panel grid. */
.panel.chips { grid-template-rows: auto minmax(0, 1fr); }
.panel.chips .chips-content { min-height:0; min-width:0; }
.panel.chips .auraview { height:100%; min-height:0; box-sizing:border-box; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-gutter:stable; padding:0 8px 8px 0; }
.panel.chips .aurarow { min-width:0; }
.panel.chips .aurarow .grow { overflow-wrap:anywhere; }
.panel.chips .aurarow .acts { flex:0 1 180px; }

.chip-animation-mode { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 12px; }
.chip-animation-mode select { background: #241b3f; color: #fff; border: 1px solid #9480c2; border-radius: 5px; padding: 4px 7px; font: inherit; }
.hold-it { display: flex; flex-direction: column; gap: 4px; margin: 5px 0; font-size: 12px; color: #d8d0ee; } /* ("Hold it": a weapon in an arm chip's hand, ui/chips-panel.js) */
.hold-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.hold-row .btn { flex: none; }
.hold-name { margin-right: 2px; font-weight: bold; }
/* the Dual Laserblade's blade colours (ui/chips-panel.js bladeColours) */
.blade-colours { display: flex; flex-direction: column; gap: 4px; margin: 5px 0; font-size: 12px; }
.blade-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.blade-name { min-width: 52px; }
.blade-swatch { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 2px solid #241b3f; cursor: pointer; box-shadow: 0 0 0 1px #9480c2; }
.blade-swatch.on { border-color: #fff; box-shadow: 0 0 0 2px #ffd21f; }
.blade-row input[type=color] { width: 30px; height: 22px; padding: 1px; border: 1px solid #9480c2; border-radius: 4px; background: #241b3f; cursor: pointer; }

/* Keep chip details inside the fixed-height stage, including extra actions and animation options. */
.panel.chips .wheelcol { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.panel.chips .wheelcol > .label, .panel.chips .wheel { flex: none; }
.panel.chips .details { flex: 1 1 0; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; padding-bottom: 12px; overflow-wrap: anywhere; }
.panel.chips .details .dbody { max-height: none; overflow: visible; }
.panel.chips .details .desc { display: block; -webkit-line-clamp: unset; }
.panel.chips .details .head img { flex: none; }
.panel.chips .chip-animation-mode { flex-wrap: wrap; }
.panel.chips .chip-animation-mode select { max-width: 100%; }

/* The Chip Maker (ui/chip-maker-panel.js): the machine's words, then the paint tool, the canvas left, the tools right. */
.chipmaker { inset:14px 24px 10px; gap:6px; padding:10px 12px; }
.chipmaker > header { padding-bottom:6px; }
.chipmaker > header h2 { font-size:22px; }
.chipmaker-tokens { color:var(--yellow); font-size:15px; }
.chipmaker-body { min-height:0; flex:1; display:flex; flex-direction:column; }
.chipmaker-start { overflow:auto; display:grid; gap:10px; align-content:start; justify-items:start; max-width:640px; }
.chipmaker-note { margin:2px 0; padding:9px 12px; border-radius:10px; border:2px solid #6a4fc4; background:#1a1240; color:#fff; font-size:14px; line-height:1.45; }
.chipmaker-note.good { border-color:var(--green); }
.chipmaker-note.bad { border-color:var(--red); }
.chipmaker-paint { flex:1; min-height:0; display:flex; gap:12px; }
.chipmaker-left { flex:none; width:420px; display:flex; flex-direction:column; gap:5px; }
.chipmaker-stage { width:420px; height:420px; box-sizing:border-box; overflow:auto; border:3px solid var(--panel-edge); border-radius:12px; background:#1a1240; }
.chipmaker-canvas { width:100%; height:100%; display:block; touch-action:none; cursor:crosshair; }
.chipmaker-side { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; overflow:auto; padding-right:3px; }
.chipmaker-parts { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; }
.chipmaker-part { font:inherit; font-size:12px; font-weight:700; color:#fff; padding:6px 2px; border-radius:9px; border:2px solid #4b3596; background:#231a55; cursor:pointer; position:relative; }
.chipmaker-part.on { border-color:var(--yellow); background:#3a2a7a; }
.chipmaker-part.drawn::after { content:'●'; position:absolute; top:0; right:4px; color:var(--green); font-size:10px; }
.chipmaker-part.guided::before { content:'🦾'; position:absolute; top:-2px; left:3px; font-size:10px; }
.chipmaker-tray { display:flex; gap:5px; align-items:center; flex-wrap:wrap; min-height:46px; }
.chipmaker-real { width:44px; height:44px; padding:2px; border-radius:9px; border:2px solid #4b3596; background:#120c2e; cursor:grab; touch-action:none; color:#fff; font:inherit; font-weight:700; }
.chipmaker-real img { width:100%; height:100%; object-fit:contain; pointer-events:none; }
.chipmaker-real.on { border-color:var(--yellow); background:#3a2a7a; }
.chipmaker-real.none { cursor:pointer; font-size:16px; }
.chipmaker-tools { display:grid; grid-template-columns:repeat(11,1fr); gap:3px; }
.chipmaker-tool { font-size:17px; line-height:1; padding:5px 0; border-radius:8px; border:2px solid #4b3596; background:#231a55; cursor:pointer; }
.chipmaker-tool.on { border-color:var(--yellow); background:#5a4290; }
.chipmaker-row { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
.chipmaker-row input[type=range] { flex:1; min-width:80px; accent-color:var(--yellow); }
.chipmaker-label { color:var(--muted); font-size:12px; min-width:46px; }
.chipmaker-value { color:#fff; font-size:12px; min-width:42px; text-align:right; }
.chipmaker-dot { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; border:2px solid #4b3596; background:#231a55; cursor:pointer; padding:0; }
.chipmaker-dot i { display:block; border-radius:50%; background:#fff; }
.chipmaker-swatches { display:grid; grid-template-columns:repeat(13,1fr); gap:3px; }
.chipmaker-swatch { aspect-ratio:1; border-radius:6px; border:2px solid #0e0a24; cursor:pointer; padding:0; }
.chipmaker-swatch.on { outline:3px solid var(--yellow); outline-offset:1px; }
.chipmaker-swatch.small { width:20px; height:20px; }
.chipmaker-recent { display:flex; gap:4px; min-height:20px; }
.chipmaker-custom { width:100%; height:100%; padding:0; border:2px solid #0e0a24; border-radius:6px; background:none; cursor:pointer; }
.chipmaker-name { padding:5px 10px; border-radius:9px; border:2px solid #6a4fc4; background:#1a1240; color:#fff; font:inherit; font-size:14px; }
.chipmaker-name:focus { outline:none; border-color:var(--yellow); }
.chipmaker-send { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.chipmaker-short, .chipmaker-confirm { color:var(--muted); font-size:13px; }
.chipmaker-confirm { color:#fff; }
.chipmaker-ghost { position:fixed; width:64px; height:64px; pointer-events:none; z-index:9999; filter:drop-shadow(0 3px 4px rgba(0,0,0,.6)); }

/* 🖌 Chip orders (ui/chip-orders-panel.js), from 🛡 ADMIN: the queue left, the chosen order right. */
.corders { inset:22px 40px 14px; gap:6px; }
.corders .amsg { min-height:18px; font-size:13px; }
.corders .amsg.ok { color:#9cff7a; }
.corders .amsg.bad { color:#ff8a8a; }
.corders-main { flex:1; min-height:0; display:flex; gap:12px; }
.corders-list { width:230px; flex:none; overflow:auto; display:flex; flex-direction:column; gap:4px; }
.corders-count { margin:0 0 4px; font-size:12px; color:var(--muted); }
.corders-row { font:inherit; text-align:left; display:grid; gap:1px; padding:6px 9px; border-radius:10px; border:2px solid rgba(200,190,255,.2); background:rgba(255,255,255,.04); color:#fff; cursor:pointer; }
.corders-row strong { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.corders-row span { font-size:11px; font-weight:400; color:var(--muted); }
.corders-row.on { border-color:var(--yellow); background:#3a2a7a; }
.corders-row.approved strong { color:#9cff7a; }
.corders-row.rejected strong { color:#ff8a8a; }
.corders-detail { flex:1; min-width:0; overflow:auto; display:flex; flex-direction:column; gap:6px; }
.corders-detail h3 { margin:0; color:var(--yellow); }
.corders-pics, .corders-parts { display:flex; gap:10px; flex-wrap:wrap; }
.corders figure { margin:0; display:grid; justify-items:center; gap:2px; }
.corders figcaption { font-size:11px; color:var(--muted); }
.corders-big { width:230px; height:230px; object-fit:contain; background:#1a1240; border:2px solid var(--panel-edge); border-radius:10px; }
.corders-small { width:72px; height:72px; object-fit:contain; background:#1a1240; border:2px solid #4b3596; border-radius:8px; }
.corders-none { display:grid; place-items:center; color:var(--muted); font-size:13px; }
.corders-act { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.corders input { font:inherit; font-size:14px; padding:5px 10px; border-radius:10px; border:2px solid rgba(160,100,255,.6); background:rgba(10,6,30,.7); color:#fff; width:260px; }
.chipmaker-send .btn:disabled { background:#5a5a6e; border-color:#32324a; color:#b4b4c8; cursor:default; filter:none; }

/* ---- a quick timing event in the middle of the stage, over everything (src/ui/qte-card.js: the Wastes' gather games) */
.qtecard { position: absolute; left: 50%; top: 50%; width: 340px; height: 190px; transform: translate(-50%, -50%); z-index: 70; touch-action: none; cursor: pointer;
	-webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
body.touch .qtecard { transform: translate(-50%, -50%) scale(1.45); } /* (a phone shrinks the whole stage: the card grows back to a size a thumb can read and hit) */
.qtecard[hidden] { display: none; }
.qtecard canvas { display: block; width: 340px; height: 190px; }

/* ---------- Paul's wheel slots (logic/wheel-slots.js): 8 to 12 chip slots round the ring, sized by the layout (--s),
   the name-aura socket in the corner, and a slot just bought arriving (ui/chips-panel.js arrive) ---------- */
.slot img { width: calc(var(--s, 64px) * 0.72); height: calc(var(--s, 64px) * 0.72); }
.wheel[data-slots='11'] .slot .num, .wheel[data-slots='12'] .slot .num { width: 18px; height: 18px; left: -4px; top: -4px; font-size: 9px; }
.slot.auraslot { background: radial-gradient(circle at 50% 38%, rgba(196, 107, 255, 0.38), rgba(20, 10, 52, 0.92) 72%); border-color: rgba(214, 170, 255, 0.8);
	box-shadow: 0 0 0 3px rgba(20, 16, 52, 0.95), 0 0 0 5px rgba(160, 100, 255, 0.5); }
.slot.auraslot:not([data-chip])::after { content: 'AURA'; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); font-size: 9px; font-weight: 800;
	letter-spacing: 1.5px; color: #e6d4ff; text-align: center; pointer-events: none; text-shadow: 0 0 6px rgba(196, 107, 255, 0.9); }
.slot.auraslot .num { background: #3a1670; border-color: #d6aaff; color: #ffe8a8; font-size: 11px; }
.slot.auraslot.worn { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--ag, #c46bff) 40%, transparent), rgba(20, 10, 52, 0.92) 74%); }
.slot.auraslot.lit { border-color: var(--ag, #c46bff); animation: auraglow 2.4s ease-in-out infinite; }
.slot.auraslot.sel { box-shadow: 0 0 0 3px var(--green); animation: none; }
.slot.auraslot.drop { box-shadow: 0 0 0 4px var(--green), 0 0 18px var(--green); }
.wheel.growing .slot { transition: left 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.75s ease, height 0.75s ease; }
.slot.unborn { opacity: 0; transform: scale(0.2); pointer-events: none; }
.slot.born { animation: slotborn 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) 0.35s both, slotglow 2.2s ease-out 0.35s; }
.slot.born::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #ffe36a; pointer-events: none; animation: slotring 1.1s ease-out 0.55s both; }
@keyframes slotborn { 0% { opacity: 0; transform: scale(0.2) rotate(-90deg); } 60% { opacity: 1; transform: scale(1.18) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes slotglow { 0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.9), 0 0 34px rgba(255, 204, 0, 0.85); } 100% { box-shadow: 0 0 0 16px rgba(255, 204, 0, 0), 0 0 0 rgba(255, 204, 0, 0); } }
@keyframes slotring { from { opacity: 1; transform: scale(0.6); } to { opacity: 0; transform: scale(2.3); } }
@media (prefers-reduced-motion: reduce) { .wheel.growing .slot { transition: none; } .slot.born, .slot.born::before { animation: none; } }
.wheel.hasaura .worn-count { left: 2px; right: auto; text-align: left; }
.slot.auraslot .num { left: auto; right: -5px; }
.chips .seticons { flex-wrap: wrap; } /* (an outfit from a 9- to 12-slot wheel: logic/wheel-slots.js) */
.chips .seticons.many { gap: 3px; }
.chips .seticons.many .seticon { width: 31px; height: 31px; }
.chips .seticons.many .seticon img { width: 27px; height: 27px; }

/* Ooze Defense: the upgrade shop (src/world/defense-shop-panel.js), its button, and the spare-Ooze counter */
.defshopbtn { position: absolute; left: 398px; bottom: 12px; }
.defshop { position: absolute; right: 8px; bottom: 52px; width: 340px; padding: 8px 10px; border-radius: 12px; font-size: 12px; } /* (above the 🔊 and 💬 buttons, which sit in the bottom-right corner) */
.defshop .defhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.defshop .defhead b { color: var(--yellow); font-size: 14px; }
.defshop .ooze, .defme .ooze { color: #ffd84a; font-weight: 800; white-space: nowrap; }
.defshop .uprow { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 1px 8px; align-items: center; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.defshop .uprow i { font-style: normal; font-size: 15px; text-align: center; }
.defshop .pips { letter-spacing: 1px; color: var(--yellow); font-size: 11px; }
.defshop .what { grid-column: 2 / span 3; font-size: 10px; font-weight: 400; color: var(--muted); line-height: 1.25; }
.defshop .buy { min-width: 74px; }
.defshop .deffoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.defshop .deffoot .small { font-size: 10px; font-weight: 400; color: var(--muted); }

/* big-ticket:paul — Paul's big-ticket shelf (ui/big-paul-shelf.js), the Patron badge on profile cards, the limited-run
   line in chip details, and the admin's ✍ Title orders / 🎟 Limited runs (ui/title-orders-panel.js, limited-admin-panel.js) */
.bpaul { display: flex; flex-direction: column; gap: 6px; }
.bpaul-patrons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
@media (max-width: 640px) { .bpaul-patrons { grid-template-columns: minmax(0, 1fr); } }
.bpaul-me { font-weight: 700; margin-bottom: 4px; }
.bpaul .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bpaul .bar > div { height: 100%; border-radius: 4px; }
.bpaul-board { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; max-height: 170px; overflow-y: auto; }
.bpaul-board li { display: flex; gap: 6px; align-items: baseline; padding: 2px 6px; border-left: 3px solid var(--c, #fff); background: rgba(255, 255, 255, 0.04); }
.bpaul-board li b { color: var(--c, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpaul-board li span:not(.bpaul-gem) { opacity: 0.75; font-size: 12px; }
.bpaul-board li small { margin-left: auto; opacity: 0.7; }
.bpaul-board li.none { border-left-color: transparent; opacity: 0.7; }
.bpaul-title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bpaul-input { flex: 1 1 180px; min-width: 0; padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(200, 190, 255, 0.4); background: rgba(10, 6, 30, 0.6); color: #fff; font: inherit; }
.bpaul-note { font-size: 12px; opacity: 0.8; }
.bpaul-runrow { margin-bottom: 8px; } /* big-ticket:paul — one row per Limited chip on the counter */
.bpaul-run { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border: 2px solid var(--c, #ffd24a); border-radius: 8px; background: rgba(255, 210, 74, 0.06); }
.bpaul-run img { width: 48px; height: 48px; object-fit: contain; }
.bpaul-run > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bpaul-price { font-weight: 700; color: #ffd24a; }
.bpaul-owners { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-size: 12px; }
.bpaul-owners span { padding: 1px 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); opacity: 0.6; }
.bpaul-owners span.sold { opacity: 1; background: rgba(255, 210, 74, 0.18); }
.bpaul-run > .bpaul-acts { flex: none; gap: 4px; align-items: stretch; } /* big-ticket:limited2 (👀 Try on beside Buy) */
.bpaul-owners span.earn { opacity: 0.9; border: 1px dashed #e040fb; } .bpaul-owners span.earned { background: rgba(224, 64, 251, 0.25); } /* big-ticket:limited2 (copy #5: earned) */
.bpaul-msg { min-height: 1.2em; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.profile .ppatron { color: var(--c, #fff); font-weight: 700; font-size: 12px; }
.note.limited { color: #ffd24a; font-weight: 700; }
.torders { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.torder { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 4px; }
.limited-form { flex-wrap: wrap; }
.limited-form input { width: 90px; }

/* big-ticket:chipfx — ✨ Show off (src/ui/show-off.js): under your name pill while you wear a Limited chip with a super move */
.plate .showoffbtn { position: absolute; left: 0; top: calc(100% + 6px); padding: 4px 11px; border-radius: 999px; border: 2px solid #ffcc33; background: linear-gradient(#5a2fb0, #2a1466);
	color: #fff4c2; font: 800 12px "Trebuchet MS", sans-serif; letter-spacing: 0.3px; cursor: pointer; white-space: nowrap; box-shadow: 0 0 10px rgba(255, 200, 60, 0.55); pointer-events: auto; }
.plate .showoffbtn:hover:not(:disabled) { filter: brightness(1.15); }
.plate .showoffbtn:disabled { border-color: #6a5a9a; color: #b9b0e0; box-shadow: none; cursor: default; }
.arm-pose .pose-deg { min-width: 38px; text-align: center; font-weight: bold; color: #ffd27a; margin-right: 8px; } /* (the arm pose dial: ui/chips-panel.js armPose) */
