/* Blobbits board prototypes: shared tokens. Geist for everything (Ryan dislikes the serif display face). */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --surface: #151922;
  --surface-2: #1b2030;
  --line: #ffffff12;
  --line-2: #ffffff1f;
  --text: #f2f4f8;
  --text-2: #b4bccb;
  --mute: #7c8698;
  --gold: #FFC21A;      /* needs Ryan, and nothing else */
  --gold-soft: #ffc21a26;
  --red: #F0463C;       /* a failure that needs Ryan */
  --red-soft: #f0463c26;
  --calm: #5CC8BA;      /* activity, healthy */
  --claude: #E8875B;
  --codex: #3FBF8F;
  --cursor: #7C93FF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 #ffffff0a inset, 0 20px 40px -20px #000c;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* the one header line: "3 things need you" with clickable chips, or "Nothing needs you" */
.bb-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: linear-gradient(var(--bg) 60%, #0b0d1200); }
.bb-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.bb-brand svg { width: 24px; height: 24px; }
.bb-needs { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); padding-right: 40px; }
.bb-needs::-webkit-scrollbar { display: none; }
.bb-needs .count { font-weight: 650; white-space: nowrap; margin-right: 4px; }
.bb-needs .count.calm { color: var(--mute); font-weight: 500; }
.bb-chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 13px; font-weight: 550; transition: transform .2s var(--ease), background .2s; }
.bb-chip:hover { transform: translateY(-1px); }
.bb-chip.gold { background: var(--gold-soft); color: #ffe39a; box-shadow: 0 0 0 1px #ffc21a55 inset; }
.bb-chip.red { background: var(--red-soft); color: #ffb9b3; box-shadow: 0 0 0 1px #f0463c66 inset; }
.bb-chip .dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #1a1300; }
.bb-chip.gold .dot { background: var(--gold); }
.bb-chip.red .dot { background: var(--red); color: #fff; }

/* the prototype switcher (bottom-centre pill) */
.bb-switch { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; flex-wrap: nowrap; white-space: nowrap; max-width: calc(100vw - 20px); overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 4px; border-radius: 999px; background: #151922e6; backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line-2), 0 12px 30px #0009; font-size: 13px; }
.bb-switch a { text-decoration: none; padding: 7px 14px; border-radius: 999px; color: var(--text-2); white-space: nowrap; }
.bb-switch a.on { background: #ffffff14; color: var(--text); font-weight: 600; }
.bb-switch button { padding: 7px 12px; border-radius: 999px; color: var(--mute); }

/* the gold quest marker: the one unmistakable "needs you" shape */
@keyframes bb-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes bb-ping { 0% { transform: scale(.8); opacity: .9 } 100% { transform: scale(2.1); opacity: 0 } }
.bb-quest { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1a1300; font-weight: 900; font-size: 20px; box-shadow: 0 0 0 3px #0b0d12, 0 0 24px #ffc21a99; animation: bb-bob 1.6s var(--ease) infinite; }
.bb-quest.red { background: var(--red); color: #fff; box-shadow: 0 0 0 3px #0b0d12, 0 0 24px #f0463c99; }
.bb-quest::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; color: var(--gold); animation: bb-ping 1.6s ease-out infinite; }
.bb-quest.red::after { color: var(--red); }
.bb-quest small { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: #111; font-size: 11px; line-height: 18px; font-weight: 800; text-align: center; }

/* tooltip / panel basics */
.bb-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 280px; padding: 10px 12px; border-radius: 12px; background: #1b2030f2; backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px #000a; font-size: 13px; color: var(--text-2); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.bb-tip.show { opacity: 1; transform: none; }
.bb-tip b { color: var(--text); font-weight: 600; }

.mono { font-family: var(--mono); }
@media (max-width: 640px) {
  .bb-header { padding: 12px 16px; }
  .bb-switch { bottom: 10px; font-size: 12px; }
  .bb-switch a { padding: 6px 9px; }
  .bb-switch button { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* header chips: the project's logo, the bit's picture, its age */
.bb-chip .cl { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }
.bb-chip .ct { width: 26px; height: 18px; border-radius: 5px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px #ffffff22; }
.bb-chip .age { font-weight: 450; opacity: .7; }
