/* Pitchboard — classroom idea wall. Hand-written CSS, no build step (cPanel friendly). */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --card: #fffdf8;
  --ink: #17140f;
  --ink-2: #4a443b;
  --muted: #8a8173;
  --accent: #ff5a36;
  --accent-deep: #e0431f;
  --mark: #ffd23f;
  --mint: #2fcf8a;
  --sky: #5b8cff;
  --lilac: #b69cff;
  --danger: #d6342c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(23, 20, 15, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- Primitives ---------- */
.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
  user-select: none; white-space: nowrap;
}
.btn:hover { background: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2b261e; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn-ghost:hover { background: rgba(23, 20, 15, .06); }
.btn-danger { color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.is-armed { background: var(--danger); color: #fff; }

.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 700; font-size: 14px; }
.input, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: #fff; font-size: 16px; /* 16px stops iOS zoom */
  transition: box-shadow .12s ease;
}
.input:focus, .textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(91, 140, 255, .35); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.hint { font-size: 13px; color: var(--muted); }
.error { font-size: 14px; color: var(--danger); font-weight: 600; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .01em; background: #fff; white-space: nowrap;
}
.tag[data-cat="feature"] { background: #ffe2d9; }
.tag[data-cat="design"] { background: #e7e0ff; }
.tag[data-cat="problem"] { background: #fff1bf; }
.tag[data-cat="name"] { background: #d9f6e8; }
.tag[data-cat="other"] { background: #e6eefc; }
.tag-picked { background: var(--mint); }
.tag-pending { background: var(--mark); }
.tag-hidden { background: var(--paper-2); color: var(--ink-2); }

.mono { font-family: var(--font-mono); letter-spacing: .08em; }
.highlight { background: linear-gradient(transparent 55%, var(--mark) 55%, var(--mark) 92%, transparent 92%); padding: 0 .1em; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; width: min(92vw, 420px); pointer-events: none; }
.toast {
  background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 16px;
  font-weight: 600; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  animation: toast-in .2s ease-out;
}
.toast.is-error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Join screen ---------- */
.join-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; }
.join-card { width: min(100%, 440px); padding: 28px 24px; display: grid; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--accent); box-shadow: var(--shadow-sm); position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 8px 7px auto 7px; height: 4px; background: #fff; border-radius: 2px; box-shadow: 0 7px 0 #fff, 0 14px 0 rgba(255,255,255,.6); }
.join-title { font-size: clamp(32px, 9vw, 44px); font-weight: 800; }
.join-sub { color: var(--ink-2); }
.code-input { text-transform: uppercase; font-family: var(--font-mono); font-size: 26px; letter-spacing: .3em; text-align: center; font-weight: 700; }

/* ---------- Student board ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 239, 230, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title .board-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title .who { font-size: 13px; color: var(--ink-2); }
.votes-meter { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 700; font-size: 13px; }
.votes-dots { display: flex; gap: 4px; }
.votes-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--accent); }
.votes-dots i.is-used { background: transparent; }

.page { max-width: 1180px; margin: 0 auto; padding: 18px 16px 140px; }
.hero { padding: 10px 0 18px; display: grid; gap: 10px; }
.hero h1 { font-size: clamp(26px, 6.4vw, 46px); font-weight: 800; max-width: 22ch; }
.banner {
  display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 14px;
  border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--mark); font-weight: 600; font-size: 14px;
}
.banner.is-muted { background: var(--paper-2); }

.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.segmented { display: inline-flex; padding: 4px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); gap: 2px; }
.segmented button {
  border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.count-note { font-size: 13px; color: var(--ink-2); font-weight: 600; }

.feed { columns: 1; column-gap: 16px; }
@media (min-width: 720px) { .feed { columns: 2; } }
@media (min-width: 1100px) { .feed { columns: 3; } }

.idea {
  break-inside: avoid; margin: 0 0 16px; padding: 16px; display: grid; gap: 10px;
  animation: pop-in .25s ease-out;
}
.idea.is-picked { box-shadow: 4px 4px 0 var(--mint), 4px 4px 0 2px var(--ink); }
.idea.is-pending { border-style: dashed; box-shadow: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.idea-head { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.idea-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; overflow-wrap: anywhere; }
.idea-body { color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.idea-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.thumbs { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); }
.thumbs.is-single { grid-template-columns: 1fr; }
.thumbs button { padding: 0; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--paper-2); aspect-ratio: 4 / 3; }
.thumbs.is-single button { aspect-ratio: auto; max-height: 340px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.idea-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.byline { font-size: 13px; color: var(--muted); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.byline .you { color: var(--accent-deep); }

.vote {
  display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-sm); cursor: pointer; padding: 0; min-height: 44px;
  transition: transform .08s ease, box-shadow .08s ease;
}
.vote:active { transform: translate(2px, 2px); box-shadow: none; }
.vote .vote-label { display: flex; align-items: center; gap: 7px; padding: 0 14px; font-weight: 800; font-size: 14px; }
.vote .vote-label::before { content: ""; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid currentColor; }
.vote .vote-count { display: flex; align-items: center; padding: 0 14px; border-left: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 18px; min-width: 46px; justify-content: center; }
.vote.is-on { background: var(--accent); color: #fff; }
.vote.is-on .vote-count { background: var(--ink); color: #fff; }
.vote[disabled] { cursor: default; opacity: .55; box-shadow: none; }
.vote.bump .vote-count { animation: bump .3s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); font-weight: 600; font-size: 13px; text-decoration: underline; cursor: pointer; }

.empty { text-align: center; padding: 48px 16px; display: grid; gap: 8px; justify-items: center; }
.empty h2 { font-size: 24px; }
.empty p { color: var(--ink-2); max-width: 34ch; }

.fab {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 40; min-height: 58px; padding: 0 28px; font-size: 17px; box-shadow: var(--shadow);
}
.fab:active { transform: translate(calc(-50% + 2px), 2px); }

/* ---------- Sheet / dialog ---------- */
dialog { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(23, 20, 15, .55); }
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; width: 100%;
  max-height: 92dvh; overflow: auto;
  background: var(--card); border: 2px solid var(--ink); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
}
.sheet[open] { animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 4px; background: var(--paper-2); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { font-size: 24px; }
.sheet form { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .sheet { inset: 0; margin: auto; width: min(560px, 94vw); height: fit-content; border-radius: 24px; border-bottom: 2px solid var(--ink); box-shadow: var(--shadow); padding: 18px 24px 24px; }
  .sheet-grip { display: none; }
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 14px; background: #fff; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picker {
  position: relative; display: grid; place-items: center; text-align: center; gap: 2px;
  min-height: 72px; padding: 10px; border: 2px dashed var(--ink); border-radius: var(--radius-sm); background: var(--paper);
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.picker small { font-weight: 500; color: var(--muted); font-size: 12px; }
.picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preview { position: relative; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-weight: 800; line-height: 1; cursor: pointer; padding: 0; }

.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; margin: 0; place-items: center; padding: 16px; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: 100%; max-height: 90dvh; border-radius: 14px; border: 2px solid var(--ink); background: #fff; }
.lightbox .btn { position: fixed; top: 16px; right: 16px; }

/* ---------- Admin ---------- */
.admin-top { border-bottom: 2px solid var(--ink); background: var(--card); position: sticky; top: 0; z-index: 30; }
.admin-top .inner { max-width: 1280px; margin: 0 auto; padding: 10px 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-top .spacer { flex: 1; }
.admin-page { max-width: 1280px; margin: 0 auto; padding: 22px 18px 80px; display: grid; gap: 20px; }
.admin-head { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.admin-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.code-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--mark); font-weight: 800; }
.code-pill .mono { font-size: 18px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 14px 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1; }
.stat span { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.admin-grid { display: grid; gap: 20px; }
@media (min-width: 1020px) { .admin-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.panel { padding: 18px; display: grid; gap: 14px; }
.panel h2 { font-size: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1.5px dashed var(--paper-2); }
.switch-row:first-of-type { border-top: 0; }
.switch-row .t { font-weight: 700; font-size: 15px; }
.switch-row .d { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: transform .15s; }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 36px; height: 34px; border: 0; background: transparent; font-weight: 800; font-size: 18px; cursor: pointer; }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; font-family: var(--font-display); font-size: 18px; }

.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; align-items: start; }
.row.is-hidden { opacity: .55; }
.row.is-pending { border-style: dashed; box-shadow: none; background: #fffbe8; }
.row.is-picked { background: #effcf5; }
.rank { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-align: center; line-height: 1; padding-top: 4px; }
.rank small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.row-main { display: grid; gap: 8px; min-width: 0; }
.row-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.row-body { font-size: 14px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.row-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.row-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.row-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.row-meta .tag { color: var(--ink); }
.row-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.people { display: grid; gap: 4px; max-height: 460px; overflow: auto; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1.5px dashed var(--paper-2); font-size: 14px; }
.person .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--ink); flex: none; }
.person .dot.on { background: var(--mint); }
.person .name { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .name.blocked { text-decoration: line-through; color: var(--muted); }
.person .nums { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }

.boards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.board-card { padding: 18px; display: grid; gap: 12px; text-decoration: none; transition: transform .1s ease, box-shadow .1s ease; }
.board-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.board-card h3 { font-size: 22px; }
.board-card .meta { display: flex; gap: 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

.flash { padding: 12px 16px; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--mint); font-weight: 700; }

/* Export */
.export-steps { display: grid; gap: 12px; counter-reset: step; margin: 0; padding: 0; }
.export-steps li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.export-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: var(--mark); font-weight: 800; font-family: var(--font-display); }
.export-steps ol { margin: 0; padding: 0; }
.brief { margin: 0; padding: 18px; max-height: 620px; overflow: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.55; white-space: pre-wrap; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm); }

/* ---------- Present (projector) ---------- */
body.present { background: var(--ink); background-image: radial-gradient(rgba(244, 239, 230, .07) 1px, transparent 1px); color: var(--paper); }
.present-wrap { min-height: 100dvh; display: grid; grid-template-columns: minmax(320px, 0.9fr) 1.4fr; gap: 4vw; padding: 4vh 4vw; align-items: center; }
@media (max-width: 900px) { .present-wrap { grid-template-columns: 1fr; } }
.present-join { display: grid; gap: 2.4vh; align-content: center; }
.present-join .kicker { font-weight: 700; font-size: clamp(16px, 1.5vw, 24px); color: var(--mark); text-transform: uppercase; letter-spacing: .12em; }
.present-join h1 { font-size: clamp(26px, 2.9vw, 52px); font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.present-url { font-size: clamp(18px, 1.8vw, 30px); font-weight: 700; word-break: break-all; }
.present-code { display: inline-block; padding: 1.2vh 2vw; border: 3px solid var(--paper); border-radius: 22px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-weight: 800; font-size: clamp(40px, 5.4vw, 104px); letter-spacing: .14em; box-shadow: 6px 6px 0 var(--paper); }
.present-qr { width: clamp(150px, 15vw, 280px); background: #fff; border-radius: 18px; padding: 10px; border: 3px solid var(--paper); }
.present-qr svg { width: 100%; height: auto; display: block; }
.present-board { display: grid; gap: 2vh; }
.present-board .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.present-board h2 { font-size: clamp(26px, 2.6vw, 44px); }
.present-board .counts { font-weight: 700; color: var(--mark); font-size: clamp(14px, 1.3vw, 22px); white-space: nowrap; }
.lb { display: grid; gap: 1.2vh; }
.lb-row { position: relative; display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 1.3vh 18px; border: 2px solid rgba(244, 239, 230, .9); border-radius: 16px; overflow: hidden; }
.lb-row .bar { position: absolute; inset: 0 auto 0 0; background: rgba(255, 90, 54, .35); transition: width .6s cubic-bezier(.2,.8,.2,1); z-index: 0; }
.lb-row.is-picked .bar { background: rgba(47, 207, 138, .4); }
.lb-row > * { position: relative; z-index: 1; }
.lb-row .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 1.8vw, 30px); color: var(--mark); }
.lb-row .t { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.7vw, 30px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .t small { display: block; font-family: var(--font-body); font-size: clamp(11px, .9vw, 15px); font-weight: 600; color: rgba(244, 239, 230, .7); }
.lb-row .v { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 38px); }
.present-empty { padding: 6vh 2vw; border: 2px dashed rgba(244, 239, 230, .5); border-radius: 20px; text-align: center; font-size: clamp(18px, 1.6vw, 26px); color: rgba(244, 239, 230, .75); }
.present-exit { position: fixed; top: 14px; right: 14px; opacity: .25; }
.present-exit:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
