:root {
  --black: #000000;
  --wisteria: #7F95D1;
  --bubblegum: #FF82A9;
  --powder: #FFC0BE;
  --blush: #FFEBE7;

  --bg: #000;
  --panel: #0d0d13;
  --panel-2: #15151e;
  --line: rgba(255, 235, 231, .14);
  --text: var(--blush);
  --muted: rgba(255, 235, 231, .6);
  --code-bg: #0a0a12;
  --right: var(--wisteria);
  --wrong: var(--bubblegum);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* no ligatures: students should see => and === exactly as typed */
code, pre, input, .resp-ans, [class*="mono"] { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--wisteria); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--bubblegum); }

button {
  font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 10px;
  padding: .65em 1.15em; background: var(--wisteria); color: #000; transition: transform .08s, filter .15s;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .35; cursor: not-allowed; }
button.pink { background: var(--bubblegum); }
button.powder { background: var(--powder); }
button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
button.ghost:hover:not(:disabled) { background: var(--panel-2); }
button.small { padding: .4em .75em; font-size: .85rem; border-radius: 8px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--bubblegum); outline-offset: 2px; }

input, select {
  font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: .65em .85em; min-width: 0;
}
input::placeholder { color: rgba(255, 235, 231, .35); }
label { font-weight: 600; }

/* ---------- rendered markdown ---------- */
.md p { margin: 0 0 .6em; line-height: 1.35; }
.md p:last-child { margin-bottom: 0; }
.md h4 { margin: .4em 0; font-size: 1.1em; }
.md ul, .md ol { margin: .2em 0 .6em; padding-left: 1.3em; line-height: 1.4; }
.md :not(pre) > code {
  font-family: var(--mono); font-size: .88em; background: rgba(127, 149, 209, .18);
  color: var(--blush); padding: .08em .35em; border-radius: 6px;
}
.md pre.code {
  position: relative; margin: .6em 0; padding: 1em 1.2em; background: var(--code-bg);
  border: 1px solid rgba(127, 149, 209, .35); border-left: 4px solid var(--wisteria);
  border-radius: 12px; overflow-x: auto; text-align: left;
}
.md pre.code code {
  font-family: var(--mono); font-size: .8em; line-height: 1.5; white-space: pre; display: block;
  counter-reset: line; background: none; padding: 0;
}
.md pre.code .ln { display: block; }
.md pre.code .ln::before {
  counter-increment: line; content: counter(line); display: inline-block; width: 2.2em; margin-right: 1em;
  text-align: right; color: rgba(255, 235, 231, .25); user-select: none;
}
.code-lang {
  position: absolute; top: .45em; right: .7em; font: 700 .62em var(--font); letter-spacing: .1em;
  text-transform: uppercase; color: var(--wisteria); opacity: .8;
}
.code-lang:empty { display: none; }

/* syntax colors (highlight.js tokens) from the palette */
.hljs-keyword, .hljs-selector-tag, .hljs-tag, .hljs-name, .hljs-meta .hljs-keyword { color: var(--bubblegum); }
.hljs-string, .hljs-regexp, .hljs-selector-attr, .hljs-template-tag, .hljs-meta .hljs-string { color: var(--powder); }
.hljs-number, .hljs-literal, .hljs-symbol, .hljs-bullet { color: #a9b8ff; }
.hljs-title, .hljs-title.function_, .hljs-section, .hljs-selector-id, .hljs-selector-class { color: var(--wisteria); }
.hljs-built_in, .hljs-type, .hljs-title.class_, .hljs-class .hljs-title { color: #c3cdf0; font-style: italic; }
.hljs-attr, .hljs-attribute, .hljs-property, .hljs-variable, .hljs-params, .hljs-template-variable { color: #ffd9d6; }
.hljs-comment, .hljs-quote, .hljs-meta { color: rgba(255, 235, 231, .42); font-style: italic; }
.hljs-addition { color: var(--wisteria); }
.hljs-deletion { color: var(--bubblegum); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

/* ---------- timer ---------- */
.timer { display: flex; align-items: center; gap: .8em; margin: .4em 0 1em; }
.timer-bar { flex: 1; height: 10px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; width: 100%; background: var(--wisteria); border-radius: 99px; transition: width .25s linear; }
.timer-num { font: 800 1.4rem var(--mono); min-width: 2.5ch; text-align: right; }
.timer.low .timer-bar i { background: var(--bubblegum); }
.timer.low .timer-num { color: var(--bubblegum); }
.timer.done .timer-num { color: var(--bubblegum); font-size: 1rem; font-family: var(--font); }

/* ---------- choices ---------- */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; margin-top: 1em; }
.choice {
  display: flex; align-items: center; gap: .7em; text-align: left; color: #000; font-weight: 700;
  padding: .8em 1em; border-radius: 12px; position: relative; line-height: 1.25;
}
.choice .letter {
  flex: none; width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 8px;
  background: rgba(0, 0, 0, .14); font-weight: 800;
}
.choice .ctext { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.choice code { font-family: var(--mono); background: rgba(0, 0, 0, .12); padding: .05em .3em; border-radius: 5px; }
.choice.c0 { background: var(--wisteria); }
.choice.c1 { background: var(--bubblegum); }
.choice.c2 { background: var(--powder); }
.choice.c3 { background: var(--blush); }
.choice.c4 { background: #b9c6ec; }
.choice.c5 { background: #ffa9c3; }
.choice.wrong { opacity: .28; }
.choice.right { box-shadow: 0 0 0 4px var(--black), 0 0 0 7px var(--blush); }
.choice.right .letter::after { content: '✓'; }
.choice.right .letter { font-size: 0; }
.choice.right .letter::after { font-size: 1rem; }
.choice .count { font: 800 .9em var(--mono); background: rgba(0, 0, 0, .78); color: var(--blush); padding: .15em .55em; border-radius: 99px; }
.choice .count:empty { display: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--blush); color: #000; font-weight: 700; padding: .75em 1.2em; border-radius: 12px;
  transition: .25s; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--bubblegum); }

.conn { width: 10px; height: 10px; border-radius: 50%; background: var(--wisteria); flex: none; }
.conn.off { background: var(--bubblegum); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ================================================================ HOST */
.host { height: 100vh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--panel);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.1rem; min-width: 0; }
.brand #title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--bubblegum); color: #000; font-weight: 900; font-size: 1rem;
}
.join-pill { margin-left: auto; display: flex; align-items: center; gap: .6rem; font-size: .95rem; white-space: nowrap; }
.join-pill b { font-family: var(--mono); color: var(--wisteria); }
.top-actions { display: flex; gap: .5rem; align-items: center; }

.host main { overflow: auto; position: relative; }
.controls {
  display: flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem; border-top: 1px solid var(--line); background: var(--panel);
  min-height: 62px; flex-wrap: wrap;
}
.controls .info { margin-right: auto; color: var(--muted); font-weight: 600; }
.controls .info b { color: var(--text); }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 10px; padding: 3px; }
.seg button { background: transparent; color: var(--muted); padding: .5em 1em; }
.seg button.on { background: var(--blush); color: #000; }

/* lobby */
.lobby { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.join-hero { text-align: center; padding: 2rem 1rem 2.5rem; }
.join-url { font: 800 clamp(1.8rem, 5vw, 3.8rem) var(--mono); color: var(--wisteria); margin: .3em 0; word-break: break-all; }
.lobby-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.card h3 { margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; }
.pu-card-wide { grid-column: 1 / -1; }
.pu-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; margin: .5rem 0 1rem; }
.pu-toggle { display: flex; align-items: center; gap: .3rem; cursor: pointer; font-weight: 600; }
.pu-toggle .pu-tag { margin-left: 0; }
.card h3 .count { background: var(--bubblegum); color: #000; border-radius: 99px; padding: .05em .6em; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .45em; background: var(--panel-2); padding: .45em .85em; border-radius: 99px; font-weight: 600; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wisteria); }
.chip.off { opacity: .45; }
.chip.off .dot { background: var(--muted); }
.row { display: flex; gap: .5rem; margin-top: .8rem; }
.row select { flex: 1; }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: .2rem; margin-top: .8rem; padding: 1.3rem;
  border: 2px dashed rgba(127, 149, 209, .45); border-radius: 12px; cursor: pointer; text-align: center; font-weight: 400;
}
.drop:hover, .drop.over { border-color: var(--bubblegum); background: rgba(255, 130, 169, .06); }
.drop span { color: var(--muted); font-size: .9rem; }
.loaded { background: var(--panel-2); border-radius: 10px; padding: .8rem 1rem; }
.loaded b { color: var(--powder); }
.error-box { margin-top: .8rem; background: rgba(255, 130, 169, .12); border: 1px solid var(--bubblegum); border-radius: 10px; padding: .7rem .9rem; font-family: var(--mono); font-size: .85rem; white-space: pre-wrap; }
.warn-box { margin-top: 1rem; border: 1px solid var(--powder); color: var(--powder); border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; }

/* board */
.board {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: auto repeat(var(--rows), minmax(0, 1fr)); gap: 10px; height: 100%; padding: 14px; min-height: 420px;
}
.cat-cell {
  display: grid; place-items: center; text-align: center; padding: .9rem .5rem; background: var(--panel-2);
  border-bottom: 4px solid var(--bubblegum); border-radius: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; font-size: clamp(.8rem, 1.5vw, 1.35rem); line-height: 1.15; overflow-wrap: anywhere;
}
.tile {
  background: var(--wisteria); color: #000; border-radius: 12px; font: 900 clamp(1.4rem, 4vw, 3.6rem) var(--font);
  display: grid; place-items: center; padding: 0;
}
.tile:hover:not(:disabled) { background: var(--powder); filter: none; }
.tile.used { background: transparent; box-shadow: inset 0 0 0 1px var(--line); opacity: 1; }
.tile.empty { background: none; }

/* question stage */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 100%; }
.qpane { padding: 2rem clamp(1.2rem, 4vw, 4rem); font-size: calc(clamp(1.3rem, 2.4vw, 2.5rem) * var(--scale, 1)); }
.qhead { display: flex; align-items: center; gap: .8rem; font-size: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.qcat { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--powder); font-size: 1.05rem; }
.qpts { background: var(--wisteria); color: #000; font-weight: 900; border-radius: 99px; padding: .15em .8em; }
.qpts.final { background: var(--bubblegum); }
.qbody { font-weight: 600; }
.answer-tag {
  display: inline-block; background: var(--bubblegum); color: #000; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; font-size: .9rem; padding: .3em .8em; border-radius: 8px; margin-bottom: .6em;
}
.qbody.answer { color: #fff; font-size: 1.5em; }
.qbody.answer pre.code code { font-size: .6em; }
.qpane .choices { font-size: .75em; }
.responses { border-left: 1px solid var(--line); background: var(--panel); padding: 1.2rem; overflow: auto; }
.responses h3 { margin: 0 0 .9rem; font-size: 1rem; display: flex; justify-content: space-between; }
.resp { display: flex; flex-direction: column; gap: .45rem; }
.resp-item { background: var(--panel-2); border-radius: 10px; padding: .55rem .75rem; display: flex; align-items: center; gap: .55rem; }
.resp-item .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 235, 231, .2); flex: none; }
.resp-item.in .dot { background: var(--wisteria); box-shadow: 0 0 0 3px rgba(127, 149, 209, .25); }
.resp-item.off { opacity: .45; }
.resp-item .name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resp-item.graded { flex-wrap: wrap; border-left: 4px solid var(--wrong); }
.resp-item.graded.right { border-left-color: var(--right); }
.resp-item.review { box-shadow: inset 0 0 0 1px var(--powder); }
.resp-ans { flex-basis: 100%; font-family: var(--mono); font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.resp-ans.none { font-family: var(--font); font-style: italic; }
.resp-flag { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: #000; background: var(--powder); padding: .1em .45em; border-radius: 6px; }
.delta { font: 800 .85rem var(--mono); }
.delta.pos { color: var(--wisteria); }
.delta.neg { color: var(--bubblegum); }
.mark { width: 34px; height: 34px; padding: 0; border-radius: 8px; font-size: 1.05rem; }
.mark.right { background: var(--right); }
.mark.wrong { background: var(--wrong); }

.final-intro { display: grid; place-items: center; text-align: center; padding: 3rem 1rem; align-content: center; min-height: 100%; }
.final-cat { font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 900; margin: .2em 0; color: var(--blush); }

/* podium */
.podium-wrap { padding: 2rem 1.5rem; max-width: 1000px; margin: 0 auto; text-align: center; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin: 2rem 0; }
.step { width: min(30%, 230px); }
.step .who { font-weight: 800; font-size: 1.4rem; margin-bottom: .2em; overflow-wrap: anywhere; }
.step .pts { font-family: var(--mono); color: var(--muted); margin-bottom: .5em; }
.step .block { border-radius: 14px 14px 0 0; display: grid; place-items: center; font: 900 3rem var(--font); color: #000; }
.step.p1 .block { height: 220px; background: var(--bubblegum); }
.step.p2 .block { height: 160px; background: var(--wisteria); }
.step.p3 .block { height: 115px; background: var(--powder); }
.rest { max-width: 520px; margin: 0 auto; text-align: left; }
.rest div { display: flex; justify-content: space-between; padding: .5rem .8rem; border-bottom: 1px solid var(--line); }

/* overlay */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); display: grid; place-items: center; z-index: 40; padding: 1rem; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; width: min(640px, 100%); max-height: 88vh; overflow: auto; padding: 1.5rem; }
.modal h2 { margin: 0 0 1rem; display: flex; justify-content: space-between; align-items: center; }
.score-row { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.score-row .name { flex: 1; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.score-row .pts { font: 800 1.1rem var(--mono); min-width: 5ch; text-align: right; }
.field { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: .8rem; margin: .8rem 0; }
.field.check { grid-template-columns: auto 1fr; }
.field small { display: block; color: var(--muted); font-weight: 400; }
.hr { border-top: 1px solid var(--line); margin: 1.2rem 0; }

.gate { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.gate form { width: min(380px, 100%); display: grid; gap: .8rem; text-align: center; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .responses { border-left: 0; border-top: 1px solid var(--line); }
  .lobby-grid { grid-template-columns: 1fr; }
  .join-pill span.label { display: none; }
}

/* ================================================================ PLAYER */
.player { min-height: 100vh; display: flex; flex-direction: column; }
.pbar { display: flex; align-items: center; gap: .7rem; padding: .7rem 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.pbar .name { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar .score { font: 800 1rem var(--mono); background: var(--wisteria); color: #000; padding: .2em .7em; border-radius: 99px; }
.pmain { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 1.2rem 16px 2rem; }
.pmain .qbody { font-size: 1.15rem; }
.pmain .md pre.code code { font-size: .78rem; }
.pmain .choices { grid-template-columns: 1fr; }
.pmain .choice { font-size: 1.05rem; padding: 1em; }
.pmain .choice.picked { box-shadow: 0 0 0 3px var(--black), 0 0 0 6px var(--blush); }
.pmain .choices.locked .choice:not(.picked) { opacity: .35; }

.center { text-align: center; display: grid; justify-items: center; gap: .4rem; padding-top: 12vh; }
.center h1, .center h2 { margin: .2em 0; }
.big-icon { font-size: 3.5rem; line-height: 1; }
.join-form { display: grid; gap: .8rem; width: min(420px, 100%); margin: 10vh auto 0; }
.join-form h1 { text-align: center; margin: 0 0 .4em; }
.join-form input { font-size: 1.2rem; text-align: center; padding: .9em; }
.join-form button { font-size: 1.15rem; padding: .9em; }
.ans-form { display: flex; gap: .5rem; margin-top: 1.2rem; }
.ans-form input { flex: 1; font-family: var(--mono); font-size: 1.05rem; }
.status { margin-top: 1rem; text-align: center; color: var(--muted); font-weight: 600; min-height: 1.4em; }
.status b { color: var(--wisteria); }
.stat { display: flex; gap: .8rem; justify-content: center; margin-top: 1rem; }
.stat div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1.1rem; }
.stat b { display: block; font: 800 1.5rem var(--mono); }
.stat span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.mini-board { width: min(380px, 100%); margin: 1.5rem auto 0; text-align: left; }
.mini-board div { display: flex; justify-content: space-between; padding: .45rem .7rem; border-bottom: 1px solid var(--line); }
.mini-board div.me { color: var(--bubblegum); font-weight: 800; }
.result { text-align: center; border-radius: 16px; padding: 1.4rem 1rem; margin-bottom: 1.2rem; color: #000; }
.result.right { background: var(--wisteria); }
.result.wrong { background: var(--bubblegum); }
.result.none { background: var(--panel-2); color: var(--text); }
.result h2 { margin: .1em 0; font-size: 1.8rem; }
.result .delta { font-size: 1.3rem; color: inherit; }
.wager-form { display: grid; gap: .6rem; margin-top: 1rem; }
.wager-form input { font: 800 1.6rem var(--mono); text-align: center; }

/* ================================================================ POWER-UPS + NEXT PICK */
.pu-tag {
  display: inline-block; flex: none; font: 800 .68rem var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: #000; padding: .2em .5em; border-radius: 6px; margin-left: .35em; vertical-align: middle;
}
.pu-double { background: var(--bubblegum); }
.pu-fifty { background: var(--wisteria); }
.pu-thief { background: var(--powder); }

.chooser { color: var(--text); font-size: 1.3rem; font-weight: 700; }
.chooser-name { font-size: 1.5rem; }
.chooser-name {
  display: inline-block; background: var(--bubblegum); color: #000; font-weight: 900;
  padding: .15em .65em; border-radius: 99px; margin-right: .15em;
}
.chooser-name.bounce { animation: bounce .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bounce {
  0% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-14px) scale(1.12); }
  40% { transform: translateY(0) scale(.96); }
  55% { transform: translateY(-6px) scale(1.04); }
  75% { transform: translateY(0) scale(1); }
}
.controls .info .left { color: var(--muted); }
.resp-note { flex-basis: 100%; font-size: .78rem; font-weight: 700; color: var(--powder); }

.chooser-banner {
  margin: 1rem auto; padding: .8rem 1rem; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line); text-align: center; font-weight: 600; width: min(420px, 100%);
}
.chooser-banner.me { background: var(--bubblegum); color: #000; font-weight: 800; border-color: transparent; }
.chooser-banner:empty { display: none; }
.note { background: var(--panel-2); border-left: 4px solid var(--powder); border-radius: 10px; padding: .7rem .9rem; margin: 0 0 .6rem; }

.pu-label { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--muted); margin: 1.4rem 0 .5rem; }
.pu-row { display: grid; gap: .5rem; }
.pu-btn {
  display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; text-align: left;
  background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); padding: .7rem .9rem;
}
.pu-btn .pu-tag { grid-row: span 2; margin: 0; }
.pu-btn span:not(.pu-tag), .pu-card span:not(.pu-tag) { font-weight: 400; font-size: .85rem; color: var(--muted); }
.pu-btn:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--bubblegum); }
.pu-active {
  display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; padding: .8rem 1rem; border-radius: 12px;
  background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--bubblegum);
}
.pu-active .pu-tag { margin: 0; }
.pu-inv { width: min(420px, 100%); margin: 0 auto; text-align: left; }
.pu-inv:empty { display: none; }
.pu-card { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.pu-card .pu-tag { margin: .15em 0 0; }
.pu-card b, .pu-btn b { display: block; }
.choice.gone { opacity: .12; text-decoration: line-through; pointer-events: none; }
.pu-shield { background: transparent; color: var(--wisteria); box-shadow: inset 0 0 0 2px var(--wisteria); }
.pu-spy { background: transparent; color: var(--bubblegum); box-shadow: inset 0 0 0 2px var(--bubblegum); }
.pu-teamup { background: transparent; color: var(--powder); box-shadow: inset 0 0 0 2px var(--powder); }
.pu-allin { background: #000; color: var(--bubblegum); box-shadow: inset 0 0 0 2px var(--bubblegum); }
.pu-guide { width: min(420px, 100%); margin: 2.5rem auto 0; }
.pu-guide p { margin: 0 0 .4rem; font-size: .9rem; }
.pmain .choice .count { margin-left: auto; font-size: .75rem; white-space: nowrap; }
