@import url("/fonts/fonts.css");

/* Paper notebook in light mode, chalkboard in dark mode. */
:root {
  --paper: #fdf6e3;
  --paper-dot: #e9dfc4;
  --card: #fffdf6;
  --card-2: #f6eedb;
  --ink: #22201c;
  --muted: #6e675a;
  --sun: #ffd23f;
  --sun-light: #fff1b8;
  --tomato: #ff6b4a;
  --mint: #3bb273;
  --sky: #5aa9e6;
  --lilac: #b39ddb;
  --on-accent: #22201c;
  --good: #23824a;
  --good-bg: #d8f3dc;
  --bad: #c8381f;
  --bad-bg: #ffe0d9;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
  --sketch: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --sketch-2: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1f2b25; --paper-dot: #2c3b33; --card: #26352d; --card-2: #2f4137;
    --ink: #f1ecdc; --muted: #a9b3a5; --sun-light: #fff1b8;
    --good: #7be09a; --good-bg: #24452f; --bad: #ff9a85; --bad-bg: #4a2a24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1f2b25; --paper-dot: #2c3b33; --card: #26352d; --card-2: #2f4137;
  --ink: #f1ecdc; --muted: #a9b3a5; --sun-light: #fff1b8;
  --good: #7be09a; --good-bg: #24452f; --bad: #ff9a85; --bad-bg: #4a2a24;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dot) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  font: 17px/1.5 var(--body);
}
.wrap { max-width: 760px; margin: 0 auto; padding: 14px 16px 72px; }
.wrap.wide { max-width: 1120px; }
a { color: inherit; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hand { font-family: var(--hand); font-size: 1.15em; }
.squiggle { display: block; width: 140px; height: 10px; margin: -2px 0 10px; }

/* ---------- top bar ---------- */
header.top { display: flex; align-items: center; gap: 10px; padding: 4px 0 16px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.logo .mascot { width: 38px; height: 38px; }
.logo span { color: var(--tomato); }
.hud { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.hud-chip {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 600; font-size: .9rem;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--sketch); padding: 3px 10px; box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink);
}
.hud-chip .ico { width: 20px; height: 20px; }
.xpbar { width: 54px; height: 8px; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--paper); }
.xpbar > div { height: 100%; background: var(--mint); }
.icon-btn { background: var(--card); border: 2px solid var(--ink); border-radius: 50%; width: 36px; height: 36px; padding: 0; box-shadow: var(--shadow-sm); font-size: 1rem; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--sketch);
  padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); position: relative;
}
.card:nth-of-type(even) { border-radius: var(--sketch-2); }
.card.tilt { transform: rotate(-.6deg); }
.card.tilt-r { transform: rotate(.5deg); }
.hero { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.hero .mascot { width: 104px; height: 104px; }
@media (max-width: 520px) { .hero { grid-template-columns: 1fr; } .hero .mascot { width: 84px; height: 84px; } }
.bubble {
  position: relative; display: inline-block; background: var(--card-2); border: 2px solid var(--ink); border-radius: 18px;
  padding: 8px 14px; font-family: var(--hand); font-size: 1.2rem; line-height: 1.25;
}
.bubble::before {
  content: ""; position: absolute; left: -11px; top: 16px; width: 18px; height: 18px; background: var(--card-2);
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
}
.say { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.say .mascot { flex-shrink: 0; }

/* ---------- buttons ---------- */
button, .btn {
  font: 600 1rem var(--display); cursor: pointer; color: var(--ink); background: var(--card);
  border: 2.5px solid var(--ink); border-radius: var(--sketch); padding: 10px 18px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-sm);
  transition: transform .06s ease, box-shadow .06s ease;
}
button:hover, .btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
button:active, .btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.primary { background: var(--sun); color: var(--on-accent); }
.go { background: var(--mint); color: #fff; }
.hot { background: var(--tomato); color: #fff; }
.big { padding: 14px 22px; font-size: 1.15rem; width: 100%; }
.btn.sm, button.sm { padding: 6px 12px; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.danger { color: var(--bad); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
a.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
button.link { border: 0; box-shadow: none; background: none; padding: 0 4px; color: var(--tomato); text-decoration: underline; font: inherit; }
button.link:hover { transform: none; }

.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--card); }
.seg button { border: 0; border-radius: 0; padding: 4px 10px; background: transparent; box-shadow: none; font-size: .85rem; }
.seg button:hover { transform: none; }
.seg button.on { background: var(--ink); color: var(--paper); }

/* ---------- home: game board ---------- */
.board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 4px 0 18px; }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } }
.tile {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; text-align: left;
  padding: 14px 16px; border: 2.5px solid var(--ink); border-radius: var(--sketch); box-shadow: var(--shadow);
  background: var(--card); text-decoration: none; color: var(--ink); font-family: var(--body);
}
.tile:nth-child(even) { border-radius: var(--sketch-2); }
.tile:hover { transform: translate(-1px, -2px) rotate(-.4deg); }
.tile .ico { width: 48px; height: 48px; grid-row: span 2; }
.tile b { font-family: var(--display); font-size: 1.15rem; }
.tile span { font-size: .9rem; color: var(--muted); }
.tile.sun { background: var(--sun-light); color: #22201c; } .tile.sun span { color: #5c5546; }

.rounds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 600px) { .rounds { grid-template-columns: repeat(2, 1fr); } }
.round { border: 2px dashed var(--ink); border-radius: 14px; padding: 10px; text-align: center; font-size: .9rem; background: var(--card); }
.round .ico { width: 36px; height: 36px; display: block; margin: 0 auto 2px; }
.round b { display: block; font-family: var(--display); }
.round .tag { font-family: var(--hand); font-size: 1rem; color: var(--muted); }

.sticker {
  display: inline-block; font-family: var(--hand); font-size: .95rem; padding: 0 8px; border: 1.5px solid var(--ink);
  border-radius: 8px; background: var(--sun); color: #22201c; transform: rotate(-3deg); white-space: nowrap;
}
.sticker.sky { background: var(--sky); } .sticker.mint { background: var(--mint); color: #fff; }
.sticker.tomato { background: var(--tomato); color: #fff; } .sticker.lilac { background: var(--lilac); }
.pill { font-size: .78rem; padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card-2); white-space: nowrap; font-weight: 700; }

.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.section-title .ico { width: 34px; height: 34px; }
.section-title h2 { margin: 0; }

.packs { display: grid; gap: 10px; }
.pack {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); text-align: left; width: 100%;
  box-shadow: var(--shadow-sm); font-family: var(--body); font-weight: 400;
}
.pack:hover { transform: none; }
.pack-info { min-width: 0; flex: 1 1 200px; }
.pack-info b { font-family: var(--display); font-size: 1.05rem; }
.pack .meta { font-size: .85rem; color: var(--muted); }
.pack-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mastery { height: 7px; border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; margin-top: 6px; background: var(--paper); max-width: 220px; }
.mastery > div { height: 100%; background: var(--mint); }

/* ---------- play ---------- */
.qhead { display: flex; justify-content: space-between; gap: 8px; font-family: var(--hand); font-size: 1.1rem; color: var(--muted); margin-bottom: 8px; }
.timer { height: 12px; border: 2px solid var(--ink); background: var(--paper); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.timer > div { height: 100%; background: var(--tomato); width: 100%; transition: width .25s linear; }
.timer.calm > div { background: var(--mint); }
.question { font-family: var(--display); font-size: clamp(1.35rem, 4.4vw, 1.8rem); font-weight: 600; margin: 6px 0 20px; line-height: 1.25; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .choices { grid-template-columns: 1fr; } }
.choices button { padding: 14px; text-align: left; justify-content: flex-start; min-height: 58px; font-family: var(--body); font-weight: 700; }
.choices button:nth-child(4n+1) { border-radius: var(--sketch); } .choices button:nth-child(4n+2) { border-radius: var(--sketch-2); }
.choices button.picked { background: var(--sun); color: #22201c; }
.choices button.right { background: var(--good-bg); }
.choices button.wrong { background: var(--bad-bg); }
.choices button:disabled { opacity: 1; cursor: default; }

input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  font: 600 1.05rem var(--body); color: var(--ink); background: var(--card); border: 2.5px solid var(--ink);
  border-radius: 12px; padding: 11px 13px; width: 100%;
}
input.handwrite, .sheet-paper input { font-family: var(--hand); font-size: 1.35rem; font-weight: 400; padding: 8px 12px; }
input:focus, select:focus, textarea:focus, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.answer-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .duo { grid-template-columns: 1fr; } }

.feedback { border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; margin-top: 16px; }
.feedback.ok { background: var(--good-bg); }
.feedback.no { background: var(--bad-bg); }
.feedback b { display: block; font-family: var(--display); margin-bottom: 2px; }

.score-big { font-family: var(--display); font-size: 3.6rem; font-weight: 700; line-height: 1; }
.score-big small { font-size: 1.6rem; color: var(--muted); }

/* the answer sheet looks like lined paper */
.sheet-paper {
  background: var(--card) repeating-linear-gradient(transparent 0 37px, color-mix(in srgb, var(--sky) 45%, transparent) 37px 38px);
  border-left: 3px solid color-mix(in srgb, var(--tomato) 70%, transparent);
  padding: 4px 4px 4px 14px; border-radius: 6px;
}
.sheet-paper label { display: grid; gap: 2px; padding: 8px 0; color: var(--ink); font-size: .95rem; }
.sheet-paper label > span { font-weight: 700; }
.sheet-paper input, .sheet-paper select { background: transparent; border-width: 0 0 2px; border-radius: 0; }

.review { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.review li { padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); font-size: .97rem; }
.review li.ok { background: var(--good-bg); }
.review li.no { background: var(--bad-bg); }
.review li .mark { font-family: var(--hand); font-size: 1.3rem; float: right; margin-left: 8px; }
.review.night li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review.night li.cur { background: var(--sun-light); color: #22201c; }

.match-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 2px dashed var(--paper-dot); }
.match-row:last-child { border-bottom: 0; }
.match-row b { font-family: var(--display); }
.match-row.ok select { background: var(--good-bg); }
.match-row.no select { background: var(--bad-bg); }
.match-row .fix { grid-column: 2; font-family: var(--hand); font-size: 1.1rem; color: var(--bad); }

/* ---------- learn: flash cards ---------- */
.flash {
  background: var(--card-2); border: 2.5px solid var(--ink); border-radius: var(--sketch-2); box-shadow: var(--shadow);
  padding: 28px 18px; min-height: 240px; cursor: pointer; text-align: center; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 10px; margin-bottom: 16px; user-select: none;
  transition: transform .2s ease;
}
.flash:hover { transform: rotate(-.6deg); }
.flash.open { cursor: default; background: var(--card); transform: none; }
.flash .question { margin: 0; }
.flash .back { font-family: var(--display); font-size: clamp(1.5rem, 5.5vw, 2.1rem); font-weight: 700; color: var(--tomato); }
.flash .extra { font-size: .98rem; background: var(--sun-light); color: #22201c; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; text-align: left; max-width: 540px; transform: rotate(-.5deg); }
.flash .src { font-size: .8rem; }
.learn-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.learn-btns button { padding: 14px; font-size: 1.05rem; }
.no-btn { background: var(--bad-bg); }
.yes-btn { background: var(--good-bg); }
kbd { font: 600 .7rem var(--body); opacity: .7; border: 1.5px solid currentColor; border-radius: 5px; padding: 0 5px; }
@media (hover: none) { kbd { display: none; } }

/* ---------- music ---------- */
.player { display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; }
.player .ico { width: 92px; height: 92px; flex-shrink: 0; }
.player.playing .ico { animation: spin 2.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .player.playing .ico { animation: none; } }
.player .bars { flex: 1; }
.player .prog { height: 10px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); margin: 8px 0; }
.player .prog > div { height: 100%; background: var(--lilac); width: 0; }

/* ---------- estimate ---------- */
.ruler { position: relative; height: 46px; margin: 70px 14px 6px; border-bottom: 3px solid var(--ink); }
.ruler .tick { position: absolute; bottom: -3px; width: 2px; height: 10px; background: var(--ink); }
.ruler .pin { position: absolute; bottom: 0; transform: translateX(-50%); font-family: var(--hand); font-size: 1rem; text-align: center; white-space: nowrap; }
.ruler .pin::after { content: ""; display: block; margin: 2px auto 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.ruler .pin.truth::after { background: var(--mint); }
.ruler .pin.guess::after { background: var(--tomato); }

/* ---------- team ---------- */
.code-big { font-family: var(--display); font-size: 3rem; letter-spacing: .2em; font-weight: 700; background: var(--sun); color: #22201c; display: inline-block; padding: 2px 16px; border: 2.5px solid var(--ink); border-radius: var(--sketch); box-shadow: var(--shadow); transform: rotate(-2deg); }
.players { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.player-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 700; }
.avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-size: .85rem; color: #22201c; }
.byline { font-family: var(--hand); font-size: 1.05rem; color: var(--muted); margin-top: 6px; }

/* ---------- stats / badges ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.badge { text-align: center; padding: 12px 8px; border: 2px solid var(--ink); border-radius: var(--sketch); background: var(--card); box-shadow: var(--shadow-sm); }
.badge .ico { width: 44px; height: 44px; }
.badge b { display: block; font-family: var(--display); font-size: .95rem; }
.badge span { font-size: .78rem; color: var(--muted); }
.badge.locked { opacity: .45; box-shadow: none; border-style: dashed; }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .statgrid { grid-template-columns: 1fr 1fr; } }
.stat { border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; background: var(--card-2); }
.stat b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin-top: 8px; }
.spark div { flex: 1; background: var(--sky); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 4px 4px 0 0; min-height: 4px; }

/* ---------- cheat sheet ---------- */
ol.sheet { padding-left: 1.5rem; margin: 0; display: grid; gap: 10px; }
ol.sheet b { color: var(--tomato); font-family: var(--display); }
.sheet-groups { display: grid; gap: 4px; }
.sheet-group { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-bottom: 2px dashed var(--paper-dot); }
.sheet-group b { font-family: var(--display); color: var(--tomato); }
@media (max-width: 480px) { .sheet-group { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 28px 16px; }
.empty .mascot { margin: 0 auto 6px; display: block; }
footer { text-align: center; margin-top: 30px; font-size: .9rem; color: var(--muted); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) rotate(-1deg); z-index: 20;
  background: var(--sun); color: #22201c; border: 2.5px solid var(--ink); border-radius: var(--sketch); box-shadow: var(--shadow);
  padding: 10px 18px; font-family: var(--display); font-weight: 600; max-width: calc(100% - 32px); text-align: center;
}
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 30; }
.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } .tile:hover, .flash:hover { transform: none; } }

/* ---------- admin (shares the look) ---------- */
.admin-grid { display: grid; grid-template-columns: 290px 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .admin-grid { grid-template-columns: 1fr; } }
label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
label > span { font-weight: 700; }
.form { display: grid; gap: 10px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .form-2 { grid-template-columns: 1fr; } }
textarea { min-height: 80px; resize: vertical; }
textarea.code { font: .85rem ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 140px; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.items li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 10px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); }
.items li .txt { min-width: 0; overflow-wrap: anywhere; }
.items li .acts { display: flex; gap: 6px; flex-shrink: 0; }
.items li .acts button { padding: 4px 10px; font-size: .85rem; box-shadow: none; }
.pack.sel { background: var(--sun-light); color: #22201c; }
.search-results { display: grid; gap: 6px; margin-top: 8px; }
.search-results button { justify-content: flex-start; text-align: left; font-family: var(--body); font-weight: 600; box-shadow: none; padding: 6px 10px; }
.search-results img { width: 36px; height: 36px; border-radius: 6px; border: 1.5px solid var(--ink); }
details summary { cursor: pointer; font-family: var(--display); font-weight: 600; }

/* ---------- brief (pre-quiz summary) ---------- */
.brief-nav { position: sticky; top: 8px; z-index: 5; padding: 12px 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip { flex-shrink: 0; text-decoration: none; font: 600 .88rem var(--display); padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card-2); white-space: nowrap; }
.chip span { font-family: var(--body); color: var(--muted); font-size: .78rem; }
.brief-sec { scroll-margin-top: 130px; }
.brief-list { display: grid; gap: 4px; }
.brief-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; border-bottom: 2px dashed var(--paper-dot); }
.brief-item:last-child { border-bottom: 0; }
.brief-item h3 { font-size: 1.08rem; margin: 0 0 4px; }
.brief-item p { margin: 0 0 2px; line-height: 1.55; }
.brief-item mark { background: color-mix(in srgb, var(--sun) 70%, transparent); color: inherit; padding: 0 3px; border-radius: 4px; font-weight: 700; }
.brief-item.done { opacity: .55; }
.brief-item .tick { width: 30px; height: 30px; padding: 0; border-radius: 8px; box-shadow: none; font-size: 1rem; margin-top: 2px; }
.brief-item.done .tick { background: var(--mint); color: #fff; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip.hot { background: var(--sun); color: #22201c; }

/* ---------- music video clips ---------- */
.clipseg { margin: 0 0 12px; flex-wrap: wrap; }
.clipseg button { font-size: .8rem; padding: 5px 9px; }
.clipwrap { position: relative; border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: #000; }
.clip { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clipwrap.blurred .clip iframe { filter: blur(22px) saturate(1.4); transform: scale(1.15); }
.clipwrap .reveal { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.clip-slot .clip { margin-top: 8px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.flash .clip-slot { width: 100%; max-width: 520px; }
#ythost { position: fixed; left: -10000px; bottom: 0; width: 200px; height: 113px; pointer-events: none; }
.bip { background: var(--tomato); color: #fff; }
