/* Phase 1 progress: Paul's Prize Counter, Collection Lists, the profile part of a player's card, the token counter
   and the Claim button. Same look as the CHIPS screen (styles.css holds the shared palette and .panel / .btn). */

/* ---------- Paul's Prize Counter + Collection Lists (full-screen panels like CHIPS) ---------- */
.prizes, .lists { position: absolute; inset: 44px 60px 20px 60px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; overflow: auto; user-select: none; }
.prizes header, .lists header { display: flex; align-items: center; gap: 12px; }
.prizes header h2, .lists header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 24px; }
.prizes .blurb, .lists .blurb { margin: 0 0 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.prizes .balance { font-size: 16px; color: var(--yellow); }

.capsules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.capsule .have { display: block; font-size: 11px; opacity: 0.8; } /* (a pack capsule: how many of its chips you have, ui/prize-panel.js) */
.capsule, .shelfitem { font: inherit; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 2px solid var(--c); border-radius: 14px;
	padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.capsule:hover:not(:disabled), .shelfitem:hover:not(:disabled) { background: rgba(255, 255, 255, 0.11); }
.capsule:disabled, .shelfitem:disabled { opacity: 0.45; cursor: default; }
.capsule .ball { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, 0.4);
	background: linear-gradient(180deg, var(--c) 0 50%, #f4f2ff 50% 100%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15); }
.capsule .price, .shelfitem .price { color: var(--yellow); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shelfitem img { width: 56px; height: 56px; object-fit: contain; }
.shelfitem .rar { font-size: 11px; color: var(--c); font-weight: 400; }
.shelfitem .have { font-size: 11px; color: var(--muted); font-weight: 400; }
.prize-result { min-height: 64px; display: flex; align-items: center; gap: 10px; font-size: 15px;
	position: sticky; bottom: -12px; margin: 0 -16px -12px; padding: 0 16px; background: var(--panel); border-top: 1px solid rgba(200, 190, 255, 0.2); }
.prize-result:empty { min-height: 0; border: 0; }
.prize-result img { width: 56px; height: 56px; object-fit: contain; }
/* At Paul's the line sits in the gap above the first capsules and takes up no room, so a purchase can't cover a capsule or move one out from under the pointer. */
.prizes .prize-result { box-sizing: border-box; min-height: 0; background: rgb(20, 16, 52); height: 42px; flex: none; z-index: 2; top: -12px; bottom: auto; margin: 0 -16px -48px; border-top: 0; border-bottom: 1px solid rgba(200, 190, 255, 0.2); }
.prizes .prize-result:empty { display: none; }
.prizes .prize-result img { width: 40px; height: 40px; }

.lists .streak { color: #ffaa5a; font-size: 14px; }
.lists-body { display: flex; flex-direction: column; gap: 8px; }
.list { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.2); border-radius: 12px; padding: 6px 10px; }
.list.done { border-color: var(--green); }
.lhead { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.lhead b { color: var(--yellow); }
.lhead span { font-size: 12px; font-weight: 400; color: var(--muted); }
.lhead .when { margin-left: auto; }
.listchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lchip { position: relative; width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--c); background: rgba(0, 0, 0, 0.25); opacity: 0.45; }
.lchip.got { opacity: 1; background: rgba(92, 214, 74, 0.18); }
.lchip img { width: 100%; height: 100%; object-fit: contain; }
.lchip .tick { position: absolute; right: -4px; bottom: -6px; color: var(--green); font-size: 18px; text-shadow: 1px 1px 0 #000; }
.lists .total { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---------- the profile part of a player's card ---------- */
.playercard.withprofile { flex-wrap: wrap; max-width: 420px; }
.profile { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; font-size: 13px; padding-top: 4px; border-top: 1px solid rgba(200, 190, 255, 0.2); }
.profile.loading, .profile .none { color: var(--muted); font-weight: 400; }
.prank { display: flex; gap: 8px; align-items: baseline; }
.prank b { color: var(--yellow); }
.prank .ptitle { color: var(--muted); font-weight: 400; font-style: italic; }
.pchip .bar { height: 6px; border-radius: 3px; background: rgba(10, 8, 30, 0.85); overflow: hidden; margin-top: 2px; }
.pchip .bar > div { height: 100%; background: linear-gradient(90deg, var(--green), #9cff7a); }
.pbadges { display: flex; flex-wrap: wrap; gap: 4px; }
.pbadges .badge { font-size: 11px; padding: 1px 7px; border-radius: 8px; background: rgba(160, 100, 255, 0.25); border: 1px solid var(--purple); }
.pbests { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; font-size: 12px; }
.pbests div { display: flex; justify-content: space-between; gap: 6px; }
.pbests span { color: var(--muted); font-weight: 400; }
.pworn { display: flex; gap: 3px; }
.pworn img { width: 28px; height: 28px; object-fit: contain; }
.prank .pxp { color: #9cff7a; font-size: 12px; }
/* the chips in their bag (SK-TV): a short scrolling strip of pictures, each with how many */
.pbag > span { font-size: 12px; color: var(--muted); font-weight: 400; }
.pbagicons { display: flex; flex-wrap: wrap; gap: 3px; max-height: 96px; overflow-y: auto; margin-top: 2px; }
.pbagicons .pbc { position: relative; width: 30px; height: 30px; }
.pbagicons .pbc img { width: 30px; height: 30px; object-fit: contain; }
.pbagicons .pbc b { position: absolute; right: -2px; bottom: -3px; font-size: 10px; line-height: 1; padding: 1px 2px; border-radius: 4px; background: rgba(10, 8, 30, 0.85); color: var(--yellow); }

/* ---------- token counter, Claim button, small labels ---------- */
.tokens { font-size: 12px; color: var(--yellow); }
.tokens .gain { margin-left: 4px; color: #9cff7a; animation: rise 1.2s ease-out forwards; }
.btn.claim { animation: pulse 1.2s ease-in-out infinite; }
@keyframes rise { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-12px); } }
@keyframes pulse { 50% { filter: brightness(1.3); } }

/* ---------- Phase 2: trades, the live window, the Fusion Lab ---------- */
.trades, .fusion { position: absolute; inset: 44px 60px 20px 60px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; overflow: auto; user-select: none; }
.trades header, .fusion header { display: flex; align-items: center; gap: 12px; }
.trades header h2, .fusion header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 24px; }
.trades .blurb, .fusion .blurb { margin: 0 0 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.trades .acts, .offer .acts { display: flex; gap: 8px; margin-top: 4px; }
.pickgrid { display: flex; flex-wrap: wrap; gap: 5px; }
.pickchip { width: 46px; height: 46px; padding: 2px; border-radius: 10px; border: 2px solid var(--c); background: rgba(0, 0, 0, 0.25); cursor: pointer; }
.pickchip img { width: 100%; height: 100%; object-fit: contain; }
.pickchip.on { background: rgba(255, 204, 0, 0.3); box-shadow: 0 0 0 2px var(--yellow); }
.pickchip:disabled { cursor: default; }
.pick-empty { font-size: 12px; font-weight: 400; color: var(--muted); }
.offer { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.2); border-radius: 12px; padding: 6px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offer .ohead, .offer .for { font-size: 13px; color: var(--muted); }
.trades.live { inset: 70px 140px 60px 140px; }
.fusion .tabs { display: flex; gap: 6px; }
.fuseslots { display: flex; align-items: center; gap: 10px; }
.fslot { width: 64px; height: 64px; border-radius: 50%; border: 3px dashed var(--c); background: rgba(92, 214, 74, 0.08); display: grid; place-items: center; }
.fslot img { width: 48px; height: 48px; object-fit: contain; }
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recipe { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.2); border-radius: 12px; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; }
.recipe.secret { border-style: dashed; }
.rhead { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rhead img { width: 34px; height: 34px; object-fit: contain; }
.rhead b { color: var(--yellow); }
.rhead span { font-size: 11px; font-weight: 400; color: var(--muted); }
.recipe .riddle { font-size: 12px; font-style: italic; font-weight: 400; color: #ffe6a8; }
.ptrade { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.ptrade span { color: var(--muted); font-weight: 400; }
.ptrade img { width: 28px; height: 28px; object-fit: contain; }
.ptrade .btn { margin-left: auto; }
/* someone in the room asks to trade: a small Yes / No under the room name */
.tradeask { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; font-size: 14px; border-color: var(--yellow); }
/* the icon-only buttons in the bottom bar (Sound, Music): faded when off */
.bar .btn.icon { min-width: 0; padding-left: 9px; padding-right: 9px; }
.bar .btn.icon.off { opacity: 0.5; }

/* ---------- The Wiki Library ---------- */
.wiki { position: absolute; inset: 44px 40px 20px 40px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; user-select: none; }
.wiki header { display: flex; align-items: center; gap: 12px; }
.wiki header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 22px; }
.wikibody { flex: 1; min-height: 0; display: flex; gap: 12px; }
.wikinav { width: 190px; flex: none; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.wikilink { font: inherit; font-size: 13px; text-align: left; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(200, 190, 255, 0.2); border-radius: 9px; padding: 6px 10px; cursor: pointer; }
.wikilink:hover { background: rgba(255, 255, 255, 0.1); }
.wikilink.on { background: rgba(255, 204, 0, 0.16); border-color: var(--yellow); color: var(--yellow); }
.wikipage { flex: 1; min-width: 0; overflow: auto; padding-right: 6px; font-weight: 400; font-size: 13px; line-height: 1.45; user-select: text; }
.wikipage h3 { margin: 0 0 6px; color: var(--yellow); font-size: 19px; }
.wikipage h4 { margin: 12px 0 2px; color: #c8beff; font-size: 14px; }
.wikipage p { margin: 4px 0; }
.wikipage ul { margin: 4px 0; padding-left: 20px; }
.wikipage table { border-collapse: collapse; margin: 6px 0; font-size: 12px; }
.wikipage th, .wikipage td { border: 1px solid rgba(200, 190, 255, 0.25); padding: 3px 8px; text-align: left; }
.wikipage th { color: #c8beff; }
.wchip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--c); background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.wchip img { width: 32px; height: 32px; object-fit: contain; }
.wchip.dim { filter: grayscale(1); opacity: 0.35; }
.wgrid { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.wfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wfilters .gap { width: 10px; }
.wsearch { margin-left: auto; font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(200, 190, 255, 0.35); background: rgba(10, 6, 30, 0.6); color: var(--ink); }
.wdetail { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; padding: 8px 10px; min-height: 48px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.wdetail .wchip { width: 56px; height: 56px; flex: none; }
.wdetail .wchip img { width: 46px; height: 46px; }
.wdetail b { color: var(--ink); }
.wdetail .src { color: #ffe6a8; margin-top: 2px; }
.wdetail .own { color: #9cff7a; margin-top: 2px; }
.wdetail .src.first { color: #ffcf5c; font-weight: 600; }
.wdetail .src.first:empty { display: none; }
.wcount { color: var(--yellow); font-weight: 700; }
.wrecipes { display: flex; flex-direction: column; gap: 6px; }
.wrecipe { display: flex; align-items: center; gap: 6px; }
.wrecipe .arrow { color: var(--yellow); font-size: 18px; }
.wrecipe small { color: var(--muted); }
.wpioneers .wrecipe small { color: #ffcf5c; }
.wrecipe .wsecret { min-width: 40px; text-align: center; color: var(--muted); font-weight: 700; letter-spacing: 2px; }
.wstory { display: flex; flex-direction: column; gap: 6px; }
.wch { padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.2); }
.wch.now { border-color: var(--yellow); }
.wch.locked { opacity: 0.6; }
.wch .whead { display: flex; align-items: center; gap: 8px; }
.wch .whead span { margin-left: auto; color: var(--muted); font-size: 12px; }
.weggs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.wegg { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 2px dashed rgba(200, 190, 255, 0.3); color: var(--muted); }
.wegg span { font-size: 26px; font-weight: 900; color: #c8beff; }
.wegg.found { border-style: solid; border-color: var(--yellow); color: var(--ink); }
.wpaints { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wpaints .wdone { flex-basis: 100%; }
.wpaint { font: inherit; font-size: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 2px solid rgba(200, 190, 255, 0.3); background: rgba(255, 255, 255, 0.05); color: var(--ink); cursor: pointer; }
.wpaint i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.wpaint.on { border-color: var(--yellow); }

/* ---------- Decorating your Dock: a panel down the right, so the room stays in view ---------- */
.dockedit { position: absolute; top: 44px; right: 8px; bottom: 62px; width: 330px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; overflow: auto; user-select: none; }
.dockedit header { display: flex; align-items: center; gap: 10px; }
.dockedit header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 20px; }
.dockbody { display: flex; flex-direction: column; gap: 5px; }
.swatches, .spots { display: flex; flex-wrap: wrap; gap: 5px; }
.swatch { width: 34px; height: 24px; border-radius: 7px; border: 2px solid rgba(200, 190, 255, 0.35); cursor: pointer; }
.swatch.on { border-color: var(--yellow); }
.spot { font: inherit; font-size: 11px; min-width: 32px; padding: 3px 5px; border-radius: 7px; border: 2px dashed rgba(200, 190, 255, 0.4); background: transparent; color: var(--muted); cursor: pointer; }
.spot.full { border-style: solid; color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.spot.on { border-color: var(--yellow); color: var(--yellow); }
.dockedit .picked { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 0; }
.dockedit .picked .btn { margin-left: auto; }
.ditems { display: flex; flex-direction: column; gap: 3px; }
.ditems.frames { max-height: 220px; overflow: auto; }
.ditem { font: inherit; font-size: 12px; display: flex; align-items: center; gap: 6px; text-align: left; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(200, 190, 255, 0.25); background: rgba(255, 255, 255, 0.05); color: var(--ink); cursor: pointer; }
.ditem:disabled { opacity: 0.45; cursor: default; }
.ditem small { margin-left: auto; color: var(--muted); }
.ditem img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; border: 2px solid #888; }
/* the secret-code console */
.codepanel { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); width: 360px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.codepanel h2 { margin: 0; color: #9cff7a; font-size: 20px; }
.codepanel input { font: inherit; font-size: 20px; letter-spacing: 3px; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; border: 2px solid #9cff7a; background: #0a2a14; color: #9cff7a; }
.codepanel .acts { display: flex; gap: 8px; }
.codepanel .msg { min-height: 18px; font-size: 13px; }
.shelf.decor { grid-template-columns: repeat(4, 1fr); }
.decoritem { min-height: 0; padding: 6px; }
.shelfitem canvas.dprev { display: block; }
.label.show { color: #ffd24a; }
.shelf.showpieces { grid-template-columns: repeat(3, 1fr); }
.showitem { background: radial-gradient(120% 90% at 50% 25%, rgba(255, 210, 80, 0.16), rgba(255, 255, 255, 0.03)); box-shadow: 0 0 16px rgba(255, 210, 80, 0.2); }
.shelfitem.owned:disabled { opacity: 1; }
.shelfitem.owned .have { color: var(--yellow); font-weight: 700; }
.ditem canvas.dprev { flex: none; }

/* the bottom-right buttons (Phase 3 added Wiki, Dock and Music) wrap into two rows, so the chat box keeps its room */
.bar { flex-wrap: wrap; justify-content: flex-end; max-width: 340px; }
.chatbar { right: 356px; }
.hint { right: 356px; }

/* ---------- the volume panel (the 🔊 button) ---------- */
.volpanel { position: absolute; right: 8px; bottom: 136px; width: 300px; padding: 10px 12px; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.volrow { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vollabel { width: 96px; }
.volrow input[type=range] { flex: 1; accent-color: var(--yellow); cursor: pointer; }
.volval { width: 38px; text-align: right; color: var(--muted); font-size: 12px; }

/* ---------- the colour wheel (🎨 Colour on your own card) ---------- */
.colourpanel { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); width: 500px; padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; user-select: none; }
.colourpanel header { display: flex; align-items: center; gap: 10px; }
.colourpanel header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 20px; }
.colourpanel .cbody { display: flex; gap: 14px; align-items: center; justify-content: center; }
.colourpanel .cleft { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.colourpanel .cpreview { width: 200px; height: 200px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.08), rgba(0,0,0,0.25)); }
.colourpanel .cnowrow { display: flex; align-items: center; gap: 8px; }
.colourpanel .cnow { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7); }
.colourpanel .chex { width: 92px; font: inherit; font-size: 15px; letter-spacing: 1px; padding: 4px 8px; border-radius: 8px; border: 2px solid rgba(200,190,255,0.4); background: rgba(10,6,30,0.6); color: var(--ink); text-transform: uppercase; }
.colourpanel .cright { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.colourpanel .cwheel { width: 220px; height: 220px; cursor: crosshair; touch-action: none; border-radius: 50%; }
.colourpanel .cbrightrow { display: flex; align-items: center; gap: 8px; width: 220px; }
.colourpanel .cbright { flex: 1; -webkit-appearance: none; appearance: none; height: 12px; border-radius: 6px; cursor: pointer; }
.colourpanel .cbright::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #1a0f46; }
.colourpanel .crow { display: flex; align-items: center; gap: 8px; }
.colourpanel .crow .label { width: 64px; }
.colourpanel .cswatches { display: flex; flex-wrap: wrap; gap: 6px; }
.colourpanel .cswatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); cursor: pointer; padding: 0; }
.colourpanel .cswatch:hover { border-color: var(--yellow); transform: scale(1.12); }
.colourpanel .acts { display: flex; gap: 8px; justify-content: flex-end; }

/* the chip wishlist (CHIPS → WISHLIST: ui/wishlist-view.js), "Looking for" on a card, "wanted" in TRADES */
.wishview { display: flex; flex-direction: column; gap: 6px; height: 430px; } /* (what the CHIPS panel shows of its right-hand column) */
.wishview .blurb { margin: 0; font-size: 12px; font-weight: 400; color: var(--muted); }
.wishview .waddrow { display: flex; }
.wishview .wishsearch { flex: 1; font: inherit; font-size: 13px; padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(255, 143, 208, 0.5); background: rgba(10, 6, 30, 0.6); color: var(--ink); }
.wishview .wfound { display: flex; flex-wrap: wrap; gap: 4px; }
.wishview .wfound:empty { display: none; }
.wishview .wpick { display: flex; align-items: center; gap: 4px; font: inherit; font-size: 12px; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 2px solid var(--c); border-radius: 999px; padding: 2px 10px 2px 4px; cursor: pointer; }
.wishview .wpick:hover { background: rgba(255, 143, 208, 0.18); }
.wishview .wpick img { width: 24px; height: 24px; object-fit: contain; }
.wishview .wmsg { font-size: 12px; color: #ffb3b3; font-weight: 400; }
.wishview .wmsg:empty { display: none; }
.wishview .wlist { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 4px; }
.wishview .wcard { flex: none; }
.wishview .wcard { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.2); border-left: 4px solid var(--c); }
.wishview .whead { display: flex; align-items: center; gap: 8px; }
.wishview .wicon { width: 44px; height: 44px; object-fit: contain; flex: none; }
.wishview .wname { flex: 1; min-width: 0; }
.wishview .wname .rar { color: var(--muted); font-size: 12px; font-weight: 400; }
.wishview .wnow { margin: 6px 0 2px; font-size: 13px; font-weight: 800; }
.wishview .wnow.yes { color: #9cff7a; }
.wishview .wnow.no { color: #ffb36b; }
.wishview .wsrc { margin: 0; padding-left: 18px; font-size: 12px; font-weight: 400; color: #ffe6a8; }
.wishview .wsrc li.later { color: var(--muted); }
.wishview .wsrc li.info { color: #c8beff; list-style: '★ '; }
.wishview .wfuse { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.wishview .wfuse img { width: 28px; height: 28px; object-fit: contain; }
.wishview .wtrade { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; }
.wishview .wtrade .small { color: var(--muted); font-weight: 400; }
.wwish { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wwish .small { color: var(--muted); font-size: 12px; font-weight: 400; }
.pwish { display: flex; align-items: center; gap: 4px; font-size: 12px; flex-wrap: wrap; }
.pwish span { color: #ff8fd0; font-weight: 400; }
.pwish img { width: 28px; height: 28px; object-fit: contain; }
.trades .wanted .small { color: #ff8fd0; font-size: 12px; font-weight: 400; }

/* ---------- 🏪 the Player Market (ui/market-panel.js) ---------- */
.market { position: absolute; inset: 44px 60px 20px 60px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; overflow: auto; user-select: none; }
.market header { display: flex; align-items: center; gap: 12px; }
.market header h2 { margin: 0; flex: 1; color: var(--yellow); font-size: 24px; }
.market .purse { font-size: 14px; color: var(--muted); }
.market .blurb { margin: 0 0 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.market .tabs { display: flex; gap: 6px; }
.market .tabs .tab { flex: 1; padding: 6px 0; border-radius: 10px; border: 2px solid rgba(160, 100, 255, 0.4); background: rgba(10, 6, 30, 0.5); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.market .tabs .tab.on { border-color: var(--yellow); color: var(--yellow); background: rgba(60, 30, 120, 0.6); }
.market .mmsg { min-height: 0; font-size: 13px; }
.market .mmsg.good { color: var(--green); }
.market .mmsg.bad { color: #ff9a9a; }
.market .mbody { display: flex; flex-direction: column; gap: 6px; }
.market .mfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.market .mfilters .csearch { margin-left: auto; }
.market span.small, .market div.small { font-size: 12px; font-weight: 400; color: var(--muted); }
.market .mlist, .market .mgearlist { display: flex; flex-direction: column; gap: 5px; }
.market .mrow { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(200, 190, 255, 0.2); }
.market .mitem, .market .mgear { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.market div.mitem { cursor: default; }
.market .mgear { padding: 5px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 2px solid rgba(200, 190, 255, 0.2); }
.market .mgear.on { border-color: var(--yellow); background: rgba(255, 204, 0, 0.08); }
.market .micon { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 9px; background: rgba(0, 0, 0, 0.25); }
.market .micon.glyph { display: grid; place-items: center; font-size: 22px; border: 2px solid var(--c, rgba(200, 190, 255, 0.4)); }
.market .mname { display: flex; flex-direction: column; min-width: 0; }
.market .mname b { font-size: 14px; }
.market .mname small { font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market .typical { color: #9fd0ff !important; }
.market .mupgrade { display: flex; flex-direction: column; gap: 3px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.2); font-size: 13px; font-weight: 400; }
.market .mupline b { font-weight: 700; }
.market .mname small.mup { white-space: normal; } /* (a gear listing's upgrade line wraps, never cut off) */
.market .mbuy { display: flex; gap: 6px; flex: none; align-items: center; }
.market .mdetail { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.market .mbig { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 260px; }
.market .mbig .micon { width: 64px; height: 64px; font-size: 34px; }
.market .mbig .mname b { font-size: 18px; }
.market .mbig .mname small { white-space: normal; font-size: 12px; }
.market .mchartrow { display: flex; flex-wrap: wrap; gap: 14px; }
.market .mone { display: flex; flex-direction: column; gap: 2px; }
.market .mone > small { font-size: 12px; font-weight: 400; color: var(--muted); }
.market .mchart { position: relative; }
.market .mchart svg { display: block; background: #141034; border-radius: 10px; border: 1px solid rgba(200, 190, 255, 0.15); }
.market .mchart .ctitle { fill: #fff; font-size: 12px; font-weight: 700; }
.market .mchart .tick { fill: #b9b0e8; font-size: 10px; font-weight: 400; }
.market .mchart .tick.strong { fill: #fff; font-weight: 700; }
.market .mchart .hit { cursor: default; }
.market .mtip { position: absolute; transform: translate(-50%, -100%); padding: 3px 8px; border-radius: 7px; background: #0b0820; border: 1px solid rgba(200, 190, 255, 0.4); font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.08s; }
.market .mtip.on { opacity: 1; }
.market .msales { font-size: 12px; font-weight: 400; color: var(--muted); }
.market .msales summary { cursor: pointer; }
.market .msales ul, .market .mrecent { margin: 4px 0 0; padding-left: 18px; font-size: 12px; font-weight: 400; color: var(--muted); }
.market .msell { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; border-top: 1px solid rgba(200, 190, 255, 0.2); }
.market .mprice { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.market .mnum { width: 110px; margin-left: 0 !important; }
.market .mnet { color: var(--green); }
.market .micon.glyph.gem { font-size: 26px; text-shadow: 0 0 6px currentColor; }

/* Paul's wheel slots (ui/prize-panel.js, logic/wheel-slots.js): two big items, and the "are you sure?" line */
.shelf.wheelshop { grid-template-columns: repeat(2, 1fr); }
.wheelitem .wwhat { display: block; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.25; max-width: 30em; text-align: center; }
.wheelitem canvas.dprev { border-radius: 10px; background: radial-gradient(circle at 50% 50%, rgba(123, 63, 228, 0.4), rgba(10, 6, 30, 0.8)); }
.prize-result .ask { flex: 1; }
