/* Work Club: warm neutrals, one loud colour per phase, edges drawn with shadows.
   Spacing is a 4/8 scale. Radii: 6, 10, 14, 18. Control heights: 32, 36, 44, 52.
   Type: Plus Jakarta Sans for everything, JetBrains Mono for small labels, codes and times. */

:root {
  --bg: #F6F5F3;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --fill: #EFEDEA;
  --fill-2: #F5F4F1;
  --ink: #1A1917;
  --ink-2: #46433E;
  --muted: #75716B;
  --faint: #A6A19A;
  --line: #E7E4DF;
  --line-2: #D9D5CF;

  --accent: #FF5A3C;
  --accent-2: #FF8A3D;
  --accent-text: #D93A1D;
  --accent-edge: #C2361C;
  --accent-soft: rgba(255, 90, 60, 0.1);

  --focus-a: #FF5A3C;
  --focus-b: #FF8A3D;
  --focus-text: #D93A1D;
  --short-a: #14B886;
  --short-b: #2BC4D9;
  --short-text: #0B8A63;
  --long-a: #7C5CF6;
  --long-b: #C26BF0;
  --long-text: #6340E0;

  --phase-a: var(--focus-a);
  --phase-b: var(--focus-b);
  --phase-text: var(--focus-text);
  --phase-soft: color-mix(in srgb, var(--phase-a) 11%, var(--surface));

  /* Older names, kept so markup built in JS keeps working. */
  --focus-soft: color-mix(in srgb, var(--focus-a) 11%, var(--surface));
  --focus-ink: var(--focus-text);
  --focus-dot: var(--focus-a);
  --short-soft: color-mix(in srgb, var(--short-a) 12%, var(--surface));
  --short-ink: var(--short-text);
  --short-dot: var(--short-a);
  --long-soft: color-mix(in srgb, var(--long-a) 11%, var(--surface));
  --long-ink: var(--long-text);
  --long-dot: var(--long-a);

  --online: #1FAE6E;
  --danger: #D63C2A;
  --danger-soft: #FCEAE7;
  --danger-text: #A42D1F;
  --warn-soft: #FFF2D6;
  --warn-text: #7A4D00;
  --ping-soft: #FFF5D6;
  --ping-edge: #E9B000;
  --mention-soft: #FFE8A3;
  --mention-text: #6B4A00;
  --streak-soft: #FFEEDF;
  --streak-text: #B2470B;
  --good-soft: #E0F5EC;
  --bad-soft: #FCE6E2;
  --bad-edge: #E59184;

  --edge: 0 0 0 1px rgba(26, 25, 23, 0.07), 0 1px 2px rgba(26, 25, 23, 0.05);
  --shadow-card: 0 0 0 1px rgba(26, 25, 23, 0.07), 0 1px 2px rgba(26, 25, 23, 0.04), 0 10px 28px -16px rgba(26, 25, 23, 0.18);
  --shadow-pop: 0 0 0 1px rgba(26, 25, 23, 0.08), 0 4px 10px -4px rgba(26, 25, 23, 0.08), 0 28px 60px -20px rgba(26, 25, 23, 0.32);
  --ring: inset 0 0 0 1px var(--line);
  --ring-2: inset 0 0 0 1px var(--line-2);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  --scrim: rgba(26, 25, 23, 0.38);
  --glow: 16%;
  --avatar-dim: transparent;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0D0C;
    --surface: #161514;
    --raised: #1C1B19;
    --fill: #242220;
    --fill-2: #1C1B19;
    --ink: #F3F1EE;
    --ink-2: #D2CEC8;
    --muted: #9B968F;
    --faint: #6E6963;
    --line: #2A2826;
    --line-2: #3A3734;

    --accent: #FF6A4D;
    --accent-2: #FF9550;
    --accent-text: #FF8166;
    --accent-edge: #B33A22;
    --accent-soft: rgba(255, 106, 77, 0.14);

    --focus-a: #FF6A4D;
    --focus-b: #FF9550;
    --focus-text: #FF8166;
    --short-a: #1FC794;
    --short-b: #33CBE0;
    --short-text: #4EDBAE;
    --long-a: #8E73FF;
    --long-b: #CB7BF5;
    --long-text: #B3A1FF;

    --phase-soft: color-mix(in srgb, var(--phase-a) 14%, var(--surface));
    --focus-soft: color-mix(in srgb, var(--focus-a) 14%, var(--surface));
    --short-soft: color-mix(in srgb, var(--short-a) 14%, var(--surface));
    --long-soft: color-mix(in srgb, var(--long-a) 14%, var(--surface));

    --online: #2BC47F;
    --danger: #F0533F;
    --danger-soft: rgba(240, 83, 63, 0.14);
    --danger-text: #FF8A7A;
    --warn-soft: rgba(255, 184, 46, 0.14);
    --warn-text: #FFC766;
    --ping-soft: rgba(233, 176, 0, 0.1);
    --ping-edge: #C99A12;
    --mention-soft: rgba(255, 210, 77, 0.18);
    --mention-text: #FFD666;
    --streak-soft: rgba(255, 138, 61, 0.15);
    --streak-text: #FFA463;
    --good-soft: rgba(31, 199, 148, 0.16);
    --bad-soft: rgba(240, 83, 63, 0.14);
    --bad-edge: #B4483B;

    --edge: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 0 0 1px rgba(255, 255, 255, 0.07);
    --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    --shadow-pop: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.09), 0 28px 60px -16px rgba(0, 0, 0, 0.8);
    --scrim: rgba(0, 0, 0, 0.6);
    --glow: 24%;
    --avatar-dim: rgba(0, 0, 0, 0.16);
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

i, em, cite, var, dfn, address { font-style: normal; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  font-feature-settings: 'ss01' 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4, h5 { font-weight: 650; letter-spacing: -0.02em; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

svg { display: block; flex: none; }
[data-icon] { display: inline-flex; }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

.mono { font-family: var(--mono); letter-spacing: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.08s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary, .btn-dark { background: var(--ink); color: var(--bg); }
.btn-primary:hover, .btn-dark:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-primary:disabled, .btn-dark:disabled { opacity: 0.5; }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: var(--edge); }
.btn-secondary:hover { background: var(--fill-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 86%, #000); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

/* The one pressable button: solid bottom edge, soft top highlight. Start/Pause and Create/Join. */
.btn-press {
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 var(--accent-edge), 0 10px 22px -10px var(--accent);
  transform: translateY(-1px);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.btn-press:hover { filter: brightness(1.04); }
.btn-press:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 var(--accent-edge), 0 4px 10px -6px var(--accent); }
.btn-press:disabled { filter: saturate(0.6); opacity: 0.7; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--fill); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm svg { width: 17px; height: 17px; }

/* ---------- pills, toggles, inputs ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--edge);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag .dot { width: 6px; height: 6px; background: var(--accent); }
.tag-dark { background: var(--surface); }
.tag-dark .dot { background: var(--accent); }

.toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--fill);
}
.toggle button {
  height: 30px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.toggle button:hover { color: var(--ink); }
.toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--edge); }
.toggle-full { display: flex; width: 100%; margin-bottom: 20px; }
.toggle-full button { flex: 1; height: 32px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--focus-dot); flex: none; }
.dot.short { background: var(--short-dot); }
.dot.long { background: var(--long-dot); }

.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--ring-2);
  font-size: 15px;
  transition: box-shadow 0.15s;
}
.input::placeholder, textarea::placeholder, .task-pill input::placeholder, .music-add input::placeholder { color: var(--faint); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), var(--focus-ring); }
.input[readonly] { background: var(--fill-2); color: var(--ink-2); }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--faint); }

.ico-tile {
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex: none;
}
.ico-tile svg { width: 18px; height: 18px; }

.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #2A2622;
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 0 0 100px var(--avatar-dim);
  user-select: none;
}
.avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.s24 { width: 24px; height: 24px; font-size: 10px; }
.avatar.s28 { width: 28px; height: 28px; font-size: 11px; }
.avatar.s32 { width: 32px; height: 32px; font-size: 12px; }
.avatar .status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 2px var(--surface);
}
.avatar .status.away { background: var(--faint); }

.stack { display: inline-flex; align-items: center; }
.appbar-right .stack { --ring-1: #12B886; --ring-2: #8B5CF6; --ring-3: #F5A524; --ring-4: #2E9BF0; --ring-5: #EC5FA4; --ring-6: #14B8C4; padding: 4px; }
.appbar-right .stack .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ring, var(--line-2)), inset 0 0 0 100px var(--avatar-dim); }
.stack .avatar { box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 100px var(--avatar-dim); }
.stack .avatar + .avatar { margin-left: -8px; }
.appbar-right .stack .avatar + .avatar { margin-left: -4px; }
.appbar-right .stack .more { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--line-2); }
.stack .more { background: var(--fill); color: var(--ink-2); font-family: var(--mono); font-size: 10.5px; font-weight: 500; }

/* ---------- brand ---------- */

.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark svg { width: 24px; height: 24px; }
.mark-arc { stroke: var(--phase-a); transition: stroke 0.4s; }
.brand-word { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.brand-light .brand-word { color: var(--ink); }

/* ---------- landing ---------- */
/* Big centred type over a timer dial, real product cards under the headline, and sections that move
   with the scroll: a chip marquee, a statement that lights up word by word, a session timeline with
   a playhead, and a tabbed "why". Large panels use a 28px radius; everything else keeps the app's scale. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.landing { --lp-w: min(100% - 64px, 1160px); --lp-r: 28px; background: var(--bg); overflow-x: clip; }
.landing h2 { margin: 0; font-size: clamp(36px, 5vw, 68px); font-weight: 700; line-height: 0.98; letter-spacing: -0.048em; text-wrap: balance; }
.landing .lp-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.landing .lp-kicker .dot { width: 7px; height: 7px; background: var(--online); box-shadow: 0 0 0 0 color-mix(in srgb, var(--online) 50%, transparent); animation: live 2s infinite; }

/* nav: two floating pills */

.lp-nav { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100% - 32px, 1160px); margin: 0 auto; padding-top: 0; pointer-events: none; }
.lp-pill { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 8px 0 20px; border-radius: 100px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-card); pointer-events: auto; }
.lp-pill { flex: 1; }
.lp-pill .brand { margin-right: auto; }
.lp-nav .brand-word { font-weight: 800; }
.lp-nav-link { border: 0; background: none; font-family: inherit; cursor: pointer; }
.lp-nav-link[hidden], .lp-nav-icon[hidden] { display: none; }
.lp-nav-account.signed { gap: 8px; padding: 0 14px 0 6px; font-weight: 650; color: var(--ink); }
.lp-nav-account .avatar { background: var(--fill); }
.lp-nav-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.lp-nav-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.lp-nav-icon:hover { background: var(--fill); color: var(--ink); }
.lp-nav-icon svg { width: 20px; height: 20px; }
.lp-card-link { margin-top: 14px; padding: 0; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 650; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 4px; }
.lp-card-link:hover { text-decoration-color: currentColor; }
.lp-card-link[hidden] { display: none; }
.lp-pill > .btn-press { margin-left: 4px; }
.lp-links { display: flex; margin: 0 auto 0 16px; }
.lp-pill .brand:has(+ .lp-links) { margin-right: 0; }
.lp-links a, .lp-nav-link { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 100px; font-size: 14.5px; font-weight: 550; letter-spacing: -0.012em; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.lp-links a:hover, .lp-nav-link:hover { background: var(--fill); color: var(--ink); }
.lp-pill .btn-press { height: 40px; padding: 0 18px; border-radius: 100px; font-size: 14.5px; text-decoration: none; }

/* hero */

.demo { --pa: var(--focus-a); --pb: var(--focus-b); --pt: var(--focus-text); }
.demo[data-phase='break'] { --pa: var(--short-a); --pb: var(--short-b); --pt: var(--short-text); }

.lp-hero { position: relative; margin-top: -68px; padding: 148px 0 96px; isolation: isolate; }

/* Page backdrop: plain background with film grain over it (dark specks in light mode, light specks in dark). Cards sit on top, clean. */
.landing { position: relative; isolation: isolate; }
.landing::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.2 0 0 0 -0.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 256px 256px; opacity: 0.16; }
@media (prefers-color-scheme: dark) { .landing::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.2 0 0 0 -0.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: 0.13; } }
/* The grain drifts: a slow, large-scale mask thins it out in patches so it never reads as a flat texture. */
.landing::after { opacity: 0.1; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1400'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0024' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1400'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0024' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"); -webkit-mask-size: 1400px 1400px; mask-size: 1400px 1400px; }
@media (prefers-color-scheme: dark) { .landing::after { opacity: 0.075; } }
.lp-hero-head { display: flex; flex-direction: column; align-items: center; width: var(--lp-w); margin: 0 auto; text-align: center; }
.lp-hero h1 span { display: block; }
.lp-hero h1 { max-width: 19ch; font-size: clamp(38px, 6vw, 84px); font-weight: 700; line-height: 0.96; letter-spacing: -0.052em; text-wrap: balance; }
.lp-hero h1 em { color: var(--accent-text); }
.lp-lede { max-width: 34em; margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; letter-spacing: -0.014em; color: var(--ink-2); text-wrap: pretty; }
.lp-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.lp-proof li { display: inline-flex; align-items: center; font-size: 14px; font-weight: 550; letter-spacing: -0.01em; color: var(--muted); }
.lp-proof li::before { content: ''; width: 10px; height: 6px; margin: -3px 8px 0 1px; border: solid var(--online); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.lp-stage { display: grid; grid-template-columns: minmax(0, 1fr) 400px minmax(0, 1fr); align-items: stretch; gap: 20px; width: var(--lp-w); margin: 56px auto 0; }

.entry-card { padding: 28px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-pop); color: var(--ink); }
.entry-head { margin-bottom: 20px; }
.landing .entry-head h2, .landing .entry-invite h2 { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.entry-head p, .entry-invite p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.entry-invite { margin-bottom: 20px; }
.entry-kicker { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.landing .entry-invite h2 { margin-top: 6px; overflow-wrap: anywhere; }
.entry-card .btn-press { margin-top: 4px; }
/* The form's edge: an ember ring with a brighter arc travelling round it, a soft glow of the same, and a few sparks. */
@property --ea { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.entry-card { position: relative; }
.entry-card::before, .entry-card::after { content: ''; position: absolute; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--ea), transparent 0 52%, var(--accent-2) 68%, var(--accent) 80%, #FFE3C7 87%, transparent 96%), linear-gradient(color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent) 34%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; animation: entry-ring 6s linear infinite; }
.entry-card::before { inset: -1.5px; padding: 1.5px; border-radius: 23.5px; }
.entry-card::after { inset: -5px; padding: 5px; border-radius: 27px; filter: blur(9px); opacity: 0.55; }
@keyframes entry-ring { to { --ea: 360deg; } }
.entry-sparks { position: absolute; inset: 0; pointer-events: none; }
.entry-sparks i { position: absolute; width: 14px; height: 14px; margin: -7px; background: var(--accent-2); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: entry-spark 4.2s ease-in-out infinite; }
.entry-sparks i:nth-child(1) { top: 0; left: 18%; }
.entry-sparks i:nth-child(2) { top: 22%; left: 100%; width: 10px; height: 10px; margin: -5px; animation-delay: 1.1s; }
.entry-sparks i:nth-child(3) { top: 100%; left: 72%; animation-delay: 2.3s; }
.entry-sparks i:nth-child(4) { top: 64%; left: 0; width: 10px; height: 10px; margin: -5px; animation-delay: 3.1s; }
.entry-sparks i:nth-child(5) { top: 0; left: 88%; width: 8px; height: 8px; margin: -4px; background: #FFE3C7; animation-delay: 1.9s; }
@keyframes entry-spark { 0%, 62%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); } 78% { opacity: 1; transform: scale(1) rotate(45deg); } 92% { opacity: 0; transform: scale(0.4) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .entry-card::before, .entry-card::after { animation: none; } .entry-sparks { display: none; } }
.code-input { font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.code-input::placeholder { letter-spacing: 0.24em; }
.form-error { margin: -4px 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger-text); font-size: 13px; font-weight: 550; }
.link-btn { display: block; margin: 16px auto 0; font-size: 13px; font-weight: 550; color: var(--muted); }
.link-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* An invite link goes straight to the form. */
.landing:has(#entry-invite:not([hidden])) .lp-hero-head { display: none; }
.landing:has(#entry-invite:not([hidden])) .lp-stage { margin-top: 0; }

/* the two product cards beside the form */

.demo-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card); }
.demo-left { margin-top: 32px; }
.demo-right { margin-top: 32px; }
/* Wide screens: the form is the subject. The two demo cards lean away behind it, slightly out of focus. */
@media (min-width: 861px) {
  .lp-stage { grid-template-columns: minmax(0, 1fr) 440px minmax(0, 1fr); gap: 0; }
  .entry-card { position: relative; z-index: 2; padding: 32px; }
  .demo-left, .demo-right { z-index: 1; margin: 44px 0 36px; filter: blur(1.6px); opacity: 0.9; pointer-events: none; user-select: none; }
  .demo-left { transform: translateX(44px) rotate(-5deg); transform-origin: 100% 60%; }
  .demo-right { transform: translateX(-44px) rotate(5deg); transform-origin: 0 60%; }
}
/* Narrower laptops and tablets: the side cards keep a readable width and slide further behind the form. */
@media (min-width: 861px) and (max-width: 1100px) {
  .lp-stage { grid-template-columns: minmax(0, 1fr) 400px minmax(0, 1fr); }
  .entry-card { padding: 28px; }
  .demo-left, .demo-right { width: 280px; }
  .demo-left { justify-self: start; transform: translateX(28px) rotate(-5deg); }
  .demo-right { justify-self: end; transform: translateX(-28px) rotate(5deg); }
}
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 0; }
.demo-room { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.demo-live, .demo-state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--fill); font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.demo-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--online); }
.demo[data-phase='break'] .demo-state { background: color-mix(in srgb, var(--pa) 14%, transparent); color: var(--pt); }
.demo-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
  border-radius: 14px;
  background: radial-gradient(80% 90% at 50% -20%, color-mix(in srgb, var(--pa) var(--glow), transparent), transparent 70%), var(--fill-2);
  box-shadow: var(--ring);
}
.demo-phase { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--pt); transition: color 0.4s; }
.demo-clock { display: flex; font-size: clamp(56px, 6vw, 76px); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }
.demo-clock span { width: 0.58em; text-align: center; }
.demo-clock span.c { width: 0.3em; transform: translateY(-0.06em); }
.demo[data-phase='break'] .demo-clock.release { animation: demo-release 0.7s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes demo-release { 0% { transform: scale(0.94); } 60% { transform: scale(1.04); } }
.demo-bar { width: 100%; height: 4px; margin-top: 4px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.demo-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pa), var(--pb)); }
.demo-people { display: grid; gap: 2px; margin: 0; padding: 0 4px 4px; list-style: none; }
.demo-people li { display: grid; grid-template-columns: 28px auto minmax(0, 1fr); align-items: center; gap: 10px; height: 40px; font-size: 13px; }
.demo-people img, .demo-msgs img { width: 28px; height: 28px; border-radius: 50%; background: var(--fill); }
.demo-people b { font-weight: 650; letter-spacing: -0.01em; }
.demo-people span { justify-self: end; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.demo-chat { position: relative; flex: 1; min-height: 220px; padding: 16px; border-radius: 14px; background: var(--fill-2); box-shadow: var(--ring); overflow: hidden; }
.demo-locked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); transition: opacity 0.3s; }
.demo-locked svg { width: 20px; height: 20px; opacity: 0.7; }
.demo-locked b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-msgs { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.demo-msgs li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.demo-msgs li.in { opacity: 1; transform: none; }
.demo-msgs b { font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.demo-msgs p { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.demo[data-phase='break'] .demo-locked { opacity: 0; }
.demo-compose { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 8px 0 14px; border-radius: 14px; background: var(--fill-2); box-shadow: var(--ring); font-size: 14px; color: var(--faint); transition: opacity 0.3s; }
.demo-compose [data-icon] { align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); color: var(--muted); }
.demo-compose svg { width: 14px; height: 14px; }
.demo[data-phase='focus'] .demo-compose { opacity: 0.5; }
.demo[data-phase='break'] .demo-compose [data-icon] { background: var(--pa); color: #fff; }

/* the problem */

.lp-problem { display: flex; flex-direction: column; align-items: center; padding: 96px 0 112px; text-align: center; }
.lp-problem h2 { width: var(--lp-w); max-width: 17ch; }
.lp-marquee { width: 100%; margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lp-marquee-track { display: flex; gap: 12px; width: max-content; padding: 4px 6px; animation: lp-marquee 44s linear infinite; }
.lp-marquee span { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; border-radius: 100px; background: var(--surface); box-shadow: var(--edge); font-size: 17px; font-weight: 550; letter-spacing: -0.015em; color: var(--ink-2); white-space: nowrap; }
.lp-marquee span::before { content: '✕'; font-size: 13px; font-weight: 700; color: var(--accent-text); }
@keyframes lp-marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* the statement, lit word by word */

.lp-statement { width: var(--lp-w); margin: 0 auto; padding: 96px 0 128px; }
.lp-reveal { max-width: 21ch; font-size: clamp(40px, 6.6vw, 96px); font-weight: 700; line-height: 0.98; letter-spacing: -0.052em; color: var(--accent-text); }
.lp-reveal span { transition: opacity 0.35s; }
.lp-reveal.js span { opacity: 0.16; }
.lp-reveal.js span.on { opacity: 1; }

/* how a session goes */

.lp-how { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: start; gap: 96px; width: var(--lp-w); margin: 0 auto; padding: 112px 0; border-top: 1px solid var(--line); }
.lp-how-copy { position: sticky; top: 112px; }
.lp-how h2 { max-width: none; font-size: clamp(30px, 3.5vw, 48px); }
.lp-how-copy p:not(.lp-kicker) { max-width: 30em; margin-top: 20px; font-size: 17px; line-height: 1.55; letter-spacing: -0.01em; color: var(--ink-2); }
.lp-how-copy h2 + p { margin-top: 28px; }
.lp-how-copy .lp-note { font-size: 14px; color: var(--muted); }

.tl { --p: 0; position: relative; display: grid; gap: 12px; }
.tl-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 16px; opacity: 0.4; transition: opacity 0.4s; }
.tl-row.on { opacity: 1; }
.tl-time { padding-top: 14px; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-block { --ta: var(--focus-a); --tt: var(--focus-text); display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 18px 20px; border-radius: 18px; background: color-mix(in srgb, var(--ta) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ta) 22%, transparent); }
.tl-block.tall { min-height: 208px; }
.tl-block.slim { min-height: 0; padding: 14px 20px; background: none; box-shadow: inset 0 0 0 1px var(--line); }
.tl-block b { font-size: 18px; font-weight: 700; letter-spacing: -0.025em; color: var(--tt); }
.tl-block > span { font-size: 15px; color: var(--ink-2); }
.tl-block.slim span { font-size: 14px; color: var(--muted); }
.tl-block em { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tl-block em svg { width: 13px; height: 13px; }
.tl-row.break .tl-block { --ta: var(--short-a); --tt: var(--short-text); }
.tl-row.long .tl-block { --ta: var(--long-a); --tt: var(--long-text); }
.tl-bubbles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tl-bubbles span { padding: 6px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: var(--edge); font-size: 13.5px; font-weight: 500; color: var(--ink-2); opacity: 0; transform: translateY(6px) scale(0.96); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
.tl-row.on .tl-bubbles span { opacity: 1; transform: none; }
.tl-row.on .tl-bubbles span:nth-child(2) { transition-delay: 0.12s; }
.tl-row.on .tl-bubbles span:nth-child(3) { transition-delay: 0.24s; }
.tl-head { position: absolute; top: calc(var(--p) * 100%); left: 56px; right: 0; z-index: 1; height: 2px; background: var(--accent); pointer-events: none; }
.tl-head i { position: absolute; left: -11px; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }

/* why: tabs */

.lp-why { width: min(100% - 32px, 1320px); margin: 0 auto; padding: 72px 56px 56px; border-radius: var(--lp-r); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); }
.lp-why h2 { max-width: 14ch; }
.lp-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 40px; padding: 6px; border-radius: 100px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); }
.lp-tabs button { height: 44px; padding: 0 20px; border-radius: 100px; font-size: 15px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink-2); white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.lp-tabs button:hover { color: var(--ink); }
.lp-tabs button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.lp-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; min-height: 420px; margin-top: 24px; padding: 56px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card); }
.lp-pane:not([hidden]) { animation: lp-pane 0.35s ease-out; }
@keyframes lp-pane { from { opacity: 0; transform: translateY(8px); } }
.lp-pane h3 { max-width: 13ch; font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; line-height: 1.02; letter-spacing: -0.042em; text-wrap: balance; }
.lp-pane-copy p { max-width: 32em; margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.lp-pane-copy ul { display: grid; gap: 10px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.lp-pane-copy li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.lp-pane-copy li::before { content: ''; flex: none; width: 10px; height: 6px; margin: 5px 0 0 2px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.lp-mock { display: grid; gap: 12px; justify-self: center; width: min(100%, 400px); }
.mock-card { padding: 20px; border-radius: 18px; background: var(--fill-2); box-shadow: var(--ring); }
.mock-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 650; letter-spacing: -0.015em; }
.mock-head span { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.mock-people { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.mock-people li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; height: 52px; }
.mock-people img { width: 36px; height: 36px; border-radius: 50%; background: var(--fill); }
.mock-people b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.mock-people span { font-size: 13px; color: var(--muted); }
.mock-streak { padding: 1px 6px; border-radius: 6px; background: var(--streak-soft); font-size: 11px; font-weight: 700; color: var(--streak-text); }
.mock-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 260px; text-align: center; font-size: 14px; color: var(--muted); }
.mock-locked svg { width: 24px; height: 24px; opacity: 0.7; }
.mock-locked strong { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mock-q { margin-top: 12px; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -0.02em; }
.mock-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.mock-opts li { display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--edge); font-size: 14px; font-weight: 600; }
.mock-opts li.pick { background: var(--short-soft); box-shadow: inset 0 0 0 1.5px var(--short-a); color: var(--short-text); }
.mock-song { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; }
.mock-song i { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--long-a), var(--long-b)); }
.mock-song b { display: block; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-song span { font-size: 12.5px; color: var(--muted); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stats div { padding: 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--edge); }
.mock-stats b { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.mock-stats span { font-size: 12px; color: var(--muted); }
.mock-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; margin-top: 16px; }
.mock-heat i { aspect-ratio: 1; border-radius: 3px; background: var(--fill); }
.mock-heat i.l1 { background: color-mix(in srgb, var(--accent) 24%, var(--fill)); }
.mock-heat i.l2 { background: color-mix(in srgb, var(--accent) 48%, var(--fill)); }
.mock-heat i.l3 { background: color-mix(in srgb, var(--accent) 74%, var(--fill)); }
.mock-heat i.l4 { background: var(--accent); }

/* lobby and facts */

.lp-section { width: var(--lp-w); margin: 0 auto; padding: 128px 0 0; }
.landing .lobby { padding: 128px 0 0; }
.landing .lobby-head { max-width: none; }
.landing .lobby-head h2 { max-width: 12ch; }
.landing .lobby-head p:not(.lp-kicker) { margin-top: 20px; font-size: 17px; color: var(--muted); }
.landing .lobby-grid { max-width: none; margin-top: 40px; }

.lp-facts h2 { max-width: none; }
.lp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.lp-ico { align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 40px; border-radius: 14px; background: var(--surface); box-shadow: var(--edge); color: var(--ink); }
.lp-ico svg { width: 24px; height: 24px; }
.lp-cards article { display: flex; flex-direction: column; align-items: flex-start; min-height: 232px; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card); }
.lp-cards h3 { font-size: 24px; font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
.lp-cards p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.lp-cards article:nth-child(1) { background: color-mix(in srgb, var(--focus-a) 10%, var(--surface)); }
.lp-cards article:nth-child(2) { background: color-mix(in srgb, var(--short-a) 11%, var(--surface)); }
.lp-cards article:nth-child(3) { background: color-mix(in srgb, var(--long-a) 10%, var(--surface)); }
.lp-cards article:nth-child(4) { background: color-mix(in srgb, #F5A524 12%, var(--surface)); }
.lp-cards article:nth-child(1) .lp-ico { color: var(--focus-text); }
.lp-cards article:nth-child(2) .lp-ico { color: var(--short-text); }
.lp-cards article:nth-child(3) .lp-ico { color: var(--long-text); }

/* closing call to action: the one inverted panel on the page */

.lp-cta { display: flex; flex-direction: column; align-items: center; width: min(100% - 32px, 1320px); margin: 128px auto 0; padding: 120px 32px; border-radius: var(--lp-r); background: var(--ink); color: var(--bg); text-align: center; }
.lp-cta h2 { max-width: 12ch; font-size: clamp(40px, 6vw, 84px); }
.lp-cta p { margin-top: 20px; font-size: 18px; color: color-mix(in srgb, var(--bg) 62%, transparent); }
.lp-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.lp-cta .btn-lg { height: 56px; padding: 0 28px; border-radius: 100px; font-size: 16px; }
.lp-cta .btn-secondary { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 26%, transparent); }
.lp-cta .btn-secondary:hover { background: color-mix(in srgb, var(--bg) 8%, transparent); }
/* In dark mode the inverted band would turn white, so it becomes a raised card instead. */
@media (prefers-color-scheme: dark) {
  .lp-cta { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
  .lp-cta p { color: color-mix(in srgb, var(--ink) 62%, transparent); }
  .lp-cta .btn-secondary { color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 26%, transparent); }
  .lp-cta .btn-secondary:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
}

.lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: var(--lp-w); margin: 0 auto; padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.lp-foot .brand-mark svg { width: 20px; height: 20px; }
.lp-foot .brand-word { font-size: 15px; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lp-foot-links a { color: var(--muted); text-decoration: none; }
.lp-foot-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .lp-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 4px 16px; }
  .lp-marquee-track span:nth-child(n + 7) { display: none; }
  .lp-marquee { -webkit-mask-image: none; mask-image: none; }
  .demo-msgs li, .tl-row, .tl-bubbles span, .lp-reveal span { transition: none; }
  .demo[data-phase='break'] .demo-clock.release, .lp-pane:not([hidden]) { animation: none; }
  .tl-head { display: none; }
}

@media (max-width: 1100px) {
  .lp-how { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .lp-how-copy { position: static; }
  .lp-pane { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px; }
  .lp-mock { justify-self: start; }
  .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-why { padding: 56px 32px 32px; }
}
@media (max-width: 860px) {
  .lp-links { display: none; }
  .lp-pill .brand:has(+ .lp-links) { margin-right: auto; }
  .lp-stage { grid-template-columns: minmax(0, 1fr); width: min(100% - 32px, 460px); }
  .demo-left { order: 2; margin-top: 0; }
  .demo-right { display: none; }
}
@media (max-width: 560px) {
  .landing { --lp-w: calc(100% - 32px); --lp-r: 22px; }
  .lp-nav { top: 8px; width: calc(100% - 16px); }
  .lp-pill { height: 48px; padding: 0 6px 0 14px; }
  .lp-nav-link { display: none; }
  .lp-nav-account:not([hidden]) { display: inline-flex; height: 36px; padding: 0 10px; font-size: 13.5px; }
  .lp-nav-account.signed { padding: 0 4px; }
  .lp-nav-account.signed .lp-nav-name { display: none; }
  .lp-nav-icon { width: 36px; height: 36px; }
  .lp-pill > .btn-press { margin-left: 2px; }
  .lp-pill .btn-press { height: 36px; padding: 0 14px; font-size: 13.5px; }
  .lp-nav .brand-word { font-size: 15px; }
  .lp-hero { margin-top: -56px; padding: 104px 0 64px; }
  .lp-hero h1 { max-width: none; font-size: clamp(26px, 8.6vw, 46px); line-height: 1; }
  .lp-lede { margin-top: 20px; font-size: 16px; }
  .lp-reveal { font-size: clamp(30px, 9vw, 44px); }
  .lp-proof { margin-top: 20px; gap: 6px 16px; }
  .lp-stage { margin-top: 36px; gap: 12px; }
  .entry-card { padding: 24px 20px; }
  .lp-problem { padding: 56px 0 72px; }
  .lp-marquee { margin-top: 36px; }
  .lp-marquee span { height: 44px; padding: 0 16px 0 14px; font-size: 15px; }
  .lp-statement { padding: 56px 0 80px; }
  .lp-how { padding: 72px 0; gap: 40px; }
  .tl-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .tl-time { font-size: 12px; }
  .tl-block.tall { min-height: 160px; }
  .tl-head { left: 44px; }
  .lp-why { width: calc(100% - 16px); padding: 40px 12px 12px; }
  .lp-why h2 { margin-left: 8px; }
  .lp-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0 0; border-radius: 26px; }
  .lp-tabs button { height: 42px; padding: 0 8px; font-size: 14px; }
  .lp-pane { min-height: 0; margin-top: 16px; padding: 24px 20px; }
  .lp-section, .landing .lobby { padding-top: 88px; }
  .lp-cards { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .lp-cards article { min-height: 0; padding: 20px; }
  .lp-ico { margin-bottom: 20px; }
  .lp-cards h3 { font-size: 22px; }
  .lp-cta { width: calc(100% - 16px); margin-top: 88px; padding: 72px 20px; }
  .lp-cta-row { flex-direction: column; align-self: stretch; }
  .lp-foot { flex-direction: column; align-items: flex-start; padding: 32px 0 48px; }
}

/* Landing headlines in Plus Jakarta Sans: extra-bold and tight. */
.landing h1, .landing h2, .landing h3, .landing .lp-reveal, .landing .demo-clock, .landing .brand-word { font-weight: 800; }
.landing h1, .landing h2, .landing .lp-reveal, .landing .lp-pane h3 { letter-spacing: -0.05em; }
.landing .lp-cards h3, .landing .brand-word { letter-spacing: -0.03em; }

/* ---------- room layout ---------- */

.app {
  display: grid;
  grid-template-rows: 60px minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}
.app[data-phase='short'] { --phase-a: var(--short-a); --phase-b: var(--short-b); --phase-text: var(--short-text); --phase-soft: var(--short-soft); }
.app[data-phase='long'] { --phase-a: var(--long-a); --phase-b: var(--long-b); --phase-text: var(--long-text); --phase-soft: var(--long-soft); }

.appbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 16px 0 20px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
  z-index: 2;
}
.appbar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--phase-a), var(--phase-b));
  transition: opacity 0.3s;
}
.appbar-sep { width: 1px; height: 20px; background: var(--line-2); flex: none; }
.room-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.room-name { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--fill);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  flex: none;
  transition: background-color 0.15s, color 0.15s;
}
.code-chip:hover { background: var(--line); color: var(--ink); }
.code-chip svg { width: 13px; height: 13px; }
.appbar-right { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.appbar-right .stack { margin-right: 8px; }
.appbar-right .btn { margin-right: 4px; }
.conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  margin-right: 4px;
  border-radius: 6px;
  background: var(--warn-soft);
  color: var(--warn-text);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
}
.conn::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.me { display: flex; align-items: center; gap: 2px; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--line); }
.me-btn { border-radius: 50%; margin: 0 2px 0 4px; }
.me-btn:hover .avatar { box-shadow: 0 0 0 3px var(--fill), inset 0 0 0 100px var(--avatar-dim); }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 16px;
  min-height: 0;
  padding: 16px;
}

.main { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; overflow-y: auto; padding: 4px; margin: -4px; }

/* timer card: the hero of the room */

.timer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  padding: 20px 24px 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
}
.timer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 30% -12%, color-mix(in srgb, var(--phase-a) var(--glow), transparent), transparent 70%),
    radial-gradient(55% 65% at 75% -8%, color-mix(in srgb, var(--phase-b) var(--glow), transparent), transparent 70%);
  transition: opacity 0.4s;
}
.big-time {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
  font-size: clamp(88px, 22cqi, 176px);
  font-weight: 650;
  line-height: 0.88;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.big-time .d { display: inline-block; width: 0.6em; text-align: center; }
/* The colon is drawn, not typed, so its dots sit exactly between the digits at any size. */
.big-time .c { position: relative; display: inline-block; width: 0.3em; color: transparent; }
.big-time .c::before, .big-time .c::after { content: ''; position: absolute; left: 50%; width: 0.09em; height: 0.09em; margin-left: -0.045em; border-radius: 50%; background: var(--faint); }
.big-time .c::before { top: 0.24em; }
.big-time .c::after { top: 0.56em; }
.app[data-phase='short'] .big-time.release,
.app[data-phase='long'] .big-time.release { animation: release 0.75s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes release { 0% { transform: scale(0.94); } 55% { transform: scale(1.045); } 100% { transform: none; } }
.caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}
.caption svg { width: 14px; height: 14px; }
.caption .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* Progress: one tick per minute (up to 60), the current minute stands taller. */
.ticks {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: min(520px, 100%);
  height: 16px;
  margin-top: 20px;
}
.ticks i { flex: 1; height: 8px; border-radius: 2px; background: var(--fill); transition: background-color 0.3s, height 0.3s; }
.ticks i.q { height: 11px; }
.ticks i.done { background: linear-gradient(180deg, var(--phase-a), var(--phase-b)); }
.ticks i.cur { height: 16px; background: var(--phase-a); }

.controls { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--edge);
  transition: color 0.15s, background-color 0.15s;
}
.ctl:hover { color: var(--ink); background: var(--fill-2); }
.ctl svg { width: 17px; height: 17px; }
.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 132px;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--phase-a) 88%, #fff), var(--phase-a));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 3px 0 color-mix(in srgb, var(--phase-a) 66%, #000), 0 12px 24px -12px var(--phase-a);
  transform: translateY(-1px);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.play:hover { filter: brightness(1.04); }
.play:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 0 0 color-mix(in srgb, var(--phase-a) 66%, #000), 0 4px 10px -6px var(--phase-a); }
.play svg { width: 18px; height: 18px; }
.play .ic-play { margin-left: 0; }

.rounds { display: flex; gap: 6px; margin-top: 20px; }
.rounds span { width: 18px; height: 6px; border-radius: 3px; background: var(--fill); }
.rounds span.done { background: linear-gradient(90deg, var(--focus-a), var(--focus-b)); }
.rounds span.now { background: var(--fill); box-shadow: inset 0 0 0 1.5px var(--focus-a); }

.task-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(440px, 100%);
  height: 44px;
  margin-top: 20px;
  padding: 0 14px 0 6px;
  border-radius: 14px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  color: var(--faint);
  cursor: text;
  transition: box-shadow 0.15s, background-color 0.15s;
}
.task-pill:focus-within { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent), var(--focus-ring); }
.task-pill svg { width: 16px; height: 16px; }
.task-pill input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.task-pill input:focus { outline: none; }
.last { min-height: 18px; margin-top: 12px; font-size: 12.5px; color: var(--faint); text-align: center; }
.timer-card .last:empty { min-height: 0; margin-top: 4px; }

.confetti { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; width: 7px; height: 7px; border-radius: 2px; animation: burst 1.1s cubic-bezier(0.1, 0.7, 0.3, 1) forwards; }
@keyframes burst { from { transform: translate(-50%, -50%) rotate(0); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); opacity: 0; } }

/* cards */

.card {
  flex: none;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 12px; }
.card-head h2 { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.count-num { margin-left: 0; font-family: var(--mono); color: var(--faint); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.hint { font-size: 12.5px; color: var(--faint); }
.hint kbd, .kbd {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

/* accounts and friends */

.icon-btn.has-pip { position: relative; }
.pip { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.auth-form .field:last-of-type { margin-bottom: 8px; }
.auth-form .btn-block { margin-top: 12px; height: 44px; }
.form-error { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger-text); font-size: 13.5px; line-height: 1.4; }
.form-error[hidden] { display: none; }
.form-note { margin: 14px 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.account { padding-bottom: 20px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--fill-2); }
.account-who { display: grid; min-width: 0; }
.account-who strong { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-who span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-add { display: flex; gap: 8px; margin-top: 12px; }
.friend-add .input { flex: 1; min-width: 0; }
.friends { margin-top: 4px; max-height: min(52vh, 440px); overflow-y: auto; }
.friends-title { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.friends-empty { margin: 20px 0 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.friend-list { list-style: none; margin: 0; padding: 0; }
.friend { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.friend + .friend { border-top: 1px solid var(--line); }
.friend .avatar { flex: none; width: 40px; height: 40px; font-size: 14px; }
.friend:not(.online) .avatar img { filter: grayscale(0.6); opacity: 0.75; }
.friend-text { flex: 1; min-width: 0; }
.friend-name { display: flex; align-items: center; gap: 8px; }
.friend-name strong { font-size: 14.5px; font-weight: 650; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-streak { flex: none; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.friend-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend.online .friend-sub { color: var(--accent-text); }
.friend-actions { display: flex; flex: none; align-items: center; gap: 4px; }
.friend-actions a.btn { text-decoration: none; }
.friend-here { padding: 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* cameras */

.cam-tools { display: flex; align-items: center; gap: 6px; }
.cams .icon-btn.active { background: var(--accent-soft); color: var(--accent-text); }
.cams .icon-btn.muted { background: var(--danger-soft); color: var(--danger-text); }
.cams .icon-btn[hidden], .cam-size[hidden] { display: none; }
.call-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.call-bar .btn svg { width: 16px; height: 16px; }
.call-bar .btn.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }
.call-gap { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.cam-size {
  width: 96px;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.cam-size.wide { width: 100%; }
.cam-size::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.cam-size::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.cam-size::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--surface); }
.cam-size::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--surface); }
.cam-size:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.voice-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.voice-list[hidden] { display: none; }
.voice-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 10px 0 4px; border-radius: 16px; background: var(--fill-2); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.12s ease; }
.voice-chip .avatar { box-shadow: none; }
.voice-chip svg { flex: none; width: 14px; height: 14px; color: var(--danger-text); }
.voice-chip.muted .voice-name { color: var(--muted); }
.voice-chip.speaking { box-shadow: inset 0 0 0 2px #12B886; }
.voice-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-empty { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cam-empty[hidden] { display: none; }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--cam-min, 304px), 100%), 1fr)); gap: 8px; }
.cam-tile.speaking { box-shadow: 0 0 0 3px #12B886; }
.call-settings .field:last-of-type { margin-bottom: 16px; }
.call-settings select.input { width: 100%; cursor: pointer; }
.mic-level { height: 6px; margin: -8px 0 16px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.mic-level i { display: block; width: 0; height: 100%; border-radius: 3px; background: #12B886; transition: width 0.1s linear; }
.check-list { display: grid; gap: 4px; margin-bottom: 4px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.check-row input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.check-row strong { display: block; font-size: 14px; font-weight: 600; }
.check-row small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* popped out: a window you can drag by its top and resize from its corner */
.cams.floating { position: fixed; z-index: 45; display: flex; flex-direction: column; min-width: 280px; min-height: 240px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); margin: 0; resize: both; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--line-2); }
.cams.floating .card-head { flex: none; cursor: grab; touch-action: none; user-select: none; }
.cams.floating .card-head:active { cursor: grabbing; }
.cams.floating .call-bar, .cams.floating .voice-list { flex: none; }
.cams.floating .cam-grid { flex: 1; min-height: 0; grid-template-columns: repeat(var(--cols, 1), var(--tile-w, 1fr)); justify-content: center; align-content: center; overflow: hidden; }
.cams.floating .cam-grid.spot { grid-template-columns: repeat(auto-fit, 128px); }
.cams.floating .cam-grid.spot .cam-tile.big { width: var(--big-w, 100%); justify-self: center; }
.cams.floating::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 10px; height: 10px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); border-radius: 0 0 4px 0; pointer-events: none; }
.cam-grid[hidden] { display: none; }
.cam-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--fill);
  color: inherit;
  font: inherit;
  cursor: zoom-in;
  box-shadow: inset 0 0 0 1px var(--line);
}
.cam-tile.big { grid-column: 1 / -1; cursor: zoom-out; }
.cam-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cam-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.cam-tile.live video { opacity: 1; }
.cam-tile.self video { transform: scaleX(-1); }
.cam-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.cam-wait-text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--muted); }
.cam-tile.live .cam-wait { display: none; }
.cam-name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(14, 13, 12, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (max-width: 560px) {
  .cam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cam-grid.solo { grid-template-columns: minmax(0, 1fr); }
  .cam-size { display: none; }
  .cams.floating { inset: 0 !important; width: auto !important; height: auto !important; max-width: none; max-height: none; border-radius: 0; resize: none; z-index: 55; }
  .cams.floating::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cam-tile video { transition: none; }
}

/* people */

.people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 52px;
  padding: 8px 8px 8px 8px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--edge);
  transition: box-shadow 0.2s, opacity 0.2s;
}
.person.away { opacity: 0.5; }
.person-body { min-width: 0; padding-right: 4px; }
.person-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; letter-spacing: -0.012em; white-space: nowrap; }
.person-name .you { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.host-tag {
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  border-radius: 6px;
  background: var(--fill);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.person-task { max-width: 240px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.count .dot { width: 6px; height: 6px; background: var(--accent); }
.count-ico {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 75%, var(--line-2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
}
.hi5 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--faint);
  transition: background-color 0.15s, color 0.15s;
}
.hi5 svg { width: 16px; height: 16px; }
.hi5:hover { background: var(--accent-soft); color: var(--accent-text); }
.person.cheered { box-shadow: 0 0 0 2px var(--accent), 0 0 18px -4px var(--accent); }

/* sessions */

.day + .day { margin-top: 16px; }
.day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--fill-2);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.day-head .tot { font-variant-numeric: tabular-nums; }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 72px;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.entry:last-child { border-bottom: 0; }
.entry-desc { min-width: 0; display: flex; align-items: center; gap: 8px; }
.entry-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.entry-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--focus-soft);
  color: var(--focus-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.entry-label.short { background: var(--short-soft); color: var(--short-ink); }
.entry-label.long { background: var(--long-soft); color: var(--long-ink); }
.entry-label .dot { width: 6px; height: 6px; }
.skipped { height: 22px; line-height: 22px; padding: 0 8px; border-radius: 6px; background: var(--fill); color: var(--muted); font-size: 12px; font-weight: 500; }
.entry-range { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.entry-dur { text-align: right; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); }
.empty { font-size: 14px; color: var(--muted); }
.empty strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }

/* chat */

.chat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  height: 56px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid var(--line);
}
.chat-head h2 { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.chat-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.chat-state svg { width: 12px; height: 12px; }
.chat-state.open { background: var(--phase-soft); color: var(--phase-text); }
.chat-state.open::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--phase-a); }
.chat-state.closed { background: var(--fill); color: var(--muted); }

/* While everyone focuses, the chat steps back. */
.chat .feed, .chat-head h2 { transition: opacity 0.4s; }
.chat.is-locked .feed, .chat.is-locked .chat-head h2 { opacity: 0.55; }
.chat.is-locked:hover .feed { opacity: 0.8; }

.feed { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 20px 8px; }
.feed-empty { margin: 40px 12px; text-align: center; font-size: 14px; color: var(--muted); }
.feed-empty strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

.msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; margin-top: 16px; }
.msg.grouped { margin-top: 4px; }
.msg .avatar { width: 32px; height: 32px; font-size: 12px; }
.msg-gutter { font-family: var(--mono); font-size: 9.5px; color: transparent; text-align: center; padding-top: 5px; }
.msg.grouped:hover .msg-gutter { color: var(--faint); }
.msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.msg-name { font-size: 14px; font-weight: 650; letter-spacing: -0.012em; }
.msg-time { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.msg-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-text a { color: var(--accent-text); font-weight: 550; text-underline-offset: 2px; }
.msg-body > * + * { margin-top: 8px; }
.msg-body > .msg-head + * { margin-top: 2px; }

.sys { display: flex; justify-content: center; margin: 16px 0 4px; }
.sys-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.sys-pill .dot { width: 6px; height: 6px; }
.sys-pill .dot.focus { background: var(--focus-dot); }
.sys-pill .dot.neutral, .sys-pill .dot.join { background: var(--faint); }
.sys-pill time { font-family: var(--mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; }

.msg-image {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--fill);
  box-shadow: var(--ring);
  cursor: zoom-in;
}
.msg-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-gone { padding: 12px 14px; border-radius: 14px; background: var(--fill-2); color: var(--muted); font-size: 14px; }

.voice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 6px 14px 6px 6px;
  border-radius: 14px;
  background: var(--fill-2);
  box-shadow: var(--ring);
}
.vplay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}
.vplay:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.vplay svg { width: 13px; height: 13px; }
.vplay .ic-play { margin-left: 1px; }
.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  height: 28px;
  padding: 0 1px;
  border-radius: 6px;
  cursor: pointer;
  touch-action: none;
}
.wave:focus-visible { outline-offset: 3px; }
.wave span { width: 3px; min-height: 3px; border-radius: 2px; background: var(--line-2); pointer-events: none; transition: background-color 0.1s; }
.wave span.on { background: var(--accent); }
.wave:hover span:not(.on) { background: var(--faint); }
.vdur { min-width: 32px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--muted); }

.composer { flex: none; padding: 8px 12px 12px; }

/* Locked: a quiet countdown instead of a composer. */
.locked {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 16px 16px;
  border-radius: 14px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  text-align: center;
}
.locked-ico {
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--edge);
  color: var(--muted);
  flex: none;
}
.locked-ico svg { width: 15px; height: 15px; }
.locked-count { display: block; font-size: 32px; font-weight: 650; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.locked strong:not(.locked-count) { display: block; font-size: 14px; font-weight: 600; }
.locked-sub { display: block; font-size: 13px; color: var(--muted); }

.chat:not(.is-locked) .locked { display: none; }
.chat.is-locked .compose { display: none; }

.compose-box {
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--ring-2);
  transition: box-shadow 0.15s;
}
.compose-box:focus-within { box-shadow: inset 0 0 0 1px var(--accent), var(--focus-ring); }
.compose-box textarea {
  display: block;
  width: 100%;
  max-height: 160px;
  padding: 12px 14px 4px;
  border: 0;
  background: none;
  resize: none;
  font-size: 15px;
  line-height: 1.5;
}
.compose-box textarea:focus { outline: none; }
.compose-bar { display: flex; align-items: center; gap: 2px; padding: 4px 6px 6px; }
.compose-hint { flex: 1; min-width: 0; padding-left: 6px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send {
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.send:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.send:disabled { background: var(--fill); color: var(--faint); box-shadow: none; }
.send svg { width: 16px; height: 16px; }

.recorder { display: none; align-items: center; gap: 8px; height: 52px; padding: 0 8px 0 16px; }
.compose-box.is-recording textarea,
.compose-box.is-recording .compose-bar { display: none; }
.compose-box.is-recording .recorder { display: flex; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); animation: blink 1.2s ease-in-out infinite; }
.rec-time { font-family: var(--mono); font-size: 13px; font-weight: 500; min-width: 40px; }
.rec-levels { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 2px; height: 24px; overflow: hidden; }
.rec-levels span { width: 3px; min-height: 3px; border-radius: 2px; background: var(--accent); flex: none; }

.staged { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 8px; border-radius: 14px; background: var(--fill-2); box-shadow: var(--ring); }
.staged img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.staged-info { flex: 1; min-width: 0; }
.staged-info strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staged-info span { font-size: 12.5px; color: var(--muted); }

.dropzone {
  position: absolute;
  inset: 8px;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--accent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent));
  pointer-events: none;
}
.dropzone div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-text); }
.dropzone svg { width: 24px; height: 24px; }
.chat.dragging .dropzone { display: flex; }

/* ---------- emoji, reactions, GIFs ---------- */

.msg { position: relative; }
.msg-text.jumbo { font-size: 36px; line-height: 1.2; letter-spacing: 0.04em; }
.compose-bar .icon-btn.on { background: var(--accent-soft); color: var(--accent-text); }

.msg-tools {
  position: absolute;
  top: -16px;
  right: 0;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--raised);
  box-shadow: var(--shadow-pop);
}
.msg:hover .msg-tools,
.msg:focus-within .msg-tools,
.msg.tools-open .msg-tools { display: flex; }
.feed.no-react .msg-tools { display: none !important; }
.msg-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
}
.msg-tools button:hover { background: var(--fill); color: var(--ink); }
.msg-tools button:active { transform: scale(0.92); }
.msg-tools svg { width: 16px; height: 16px; }

.reacts { display: flex; flex-wrap: wrap; gap: 4px; }
.msg-body > .reacts { margin-top: 6px; }
.react {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.12s, box-shadow 0.12s;
}
.react:hover { box-shadow: var(--ring-2); background: var(--surface); }
.react.mine { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-text); }
.react-emoji { font-family: var(--font); font-size: 14px; line-height: 1; }
.react.add { width: 26px; justify-content: center; padding: 0; color: var(--faint); opacity: 0; }
.react.add svg { width: 14px; height: 14px; }
.msg:hover .react.add, .msg.tools-open .react.add, .react.add:focus-visible { opacity: 1; }
.react.mine .react-n { animation: pop 0.25s ease-out; }
@keyframes pop { 50% { transform: scale(1.3); } }
.feed.no-react .react { pointer-events: none; }
.feed.no-react .react.add { display: none; }

.msg-gif {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--fill);
  cursor: zoom-in;
}
.msg-gif img { display: block; width: 100%; height: 100%; object-fit: cover; }
.msg-gif.sticker { background: none; border-radius: 0; }
.msg-gif.sticker img { object-fit: contain; }

/* the picker floats over the feed, anchored to the composer */
.composer { position: relative; }
.picker {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% - 4px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  height: min(440px, 62vh);
  border-radius: 18px;
  background: var(--raised);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: rise 0.14s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 0 8px; }
.picker-tabs { display: flex; gap: 2px; min-width: 0; padding: 3px; border-radius: 10px; background: var(--fill); overflow-x: auto; scrollbar-width: none; }
.picker-tab { height: 28px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.picker-tab:hover { color: var(--ink); }
.picker-tab.on { background: var(--raised); color: var(--ink); box-shadow: var(--edge); }
.picker-title { padding: 0 8px; font-size: 14px; font-weight: 650; }
.picker-search {
  margin: 8px 8px 4px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  font-size: 14px;
}
.picker-search:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), var(--focus-ring); }
.picker-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 8px; overscroll-behavior: contain; }
.picker-foot { flex: none; padding: 6px 12px 8px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--faint); text-align: right; }
.picker-empty { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 14px; }

.emoji-group h4 { position: sticky; top: -4px; z-index: 1; padding: 8px 4px 4px; background: var(--raised); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.emoji-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 10px;
  font-size: 23px;
  line-height: 1;
  transition: transform 0.08s;
}
.emoji-cell:hover, .emoji-cell:focus-visible { background: var(--fill); transform: scale(1.12); }

.picker-body.gifs { display: flex; gap: 6px; align-items: flex-start; }
.gif-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gif-item { display: block; width: 100%; border-radius: 10px; overflow: hidden; background: var(--fill); }
.gif-item.sticker { background: var(--fill-2); }
.gif-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gif-item.sticker img { object-fit: contain; }
.gif-item:hover, .gif-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.ac {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 14px;
  background: var(--raised);
  box-shadow: var(--shadow-pop);
}
.ac-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 10px; font-size: 14px; color: var(--ink-2); text-align: left; }
.ac-item.on, .ac-item:hover { background: var(--fill); color: var(--ink); }
.ac-emoji { font-size: 18px; line-height: 1; }

.meme { display: grid; gap: 12px; }
.meme-canvas { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 14px; background: var(--fill); }

/* ---------- music ---------- */

.music .card-head { margin-bottom: 12px; }
.music-tools { display: flex; align-items: center; gap: 4px; }
.music-tools .icon-btn.off { color: var(--faint); }
.vol {
  --fill: 70%;
  width: 96px;
  height: 20px;
  margin: 0 4px 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--fill), var(--line-2) var(--fill)); }
.vol::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
.vol::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 1px 3px rgba(0, 0, 0, 0.2); border: 0; }
.vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 1px 3px rgba(0, 0, 0, 0.2); border: 0; }

.now { display: grid; grid-template-columns: minmax(0, 356px) minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 16px; }
/* YouTube asks for an embedded player of at least 200 x 200. */
.player { position: relative; aspect-ratio: 16 / 9; min-width: 0; min-height: 200px; border-radius: 14px; overflow: hidden; background: #0E0D0C; box-shadow: var(--edge); }
.player iframe, .player #music-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-shield { position: absolute; inset: 0; }
.tap-through .player-shield { display: none; }
.player-tap {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 10px;
  background: #fff;
  color: #1A1917;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
.player-tap svg { width: 16px; height: 16px; }
.tap-through .player-tap { top: 12px; bottom: auto; pointer-events: none; }
.player-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 13, 12, 0.88);
  color: #F3F1EE;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.now-info { display: flex; flex-direction: column; min-width: 0; }
.now-info .eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.now-title {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.now-sub { margin-top: 4px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-seek {
  --at: 0%;
  display: block;
  width: 100%;
  height: 20px;
  margin: 8px 0 -8px;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: none;
}
.now-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--at), var(--fill) var(--at)); }
.now-seek::-moz-range-track { height: 4px; border-radius: 4px; background: var(--fill); }
.now-seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
.now-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 1px 3px rgba(0, 0, 0, 0.2); border: 0; transition: transform 0.15s ease; }
.now-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 1px 3px rgba(0, 0, 0, 0.2); border: 0; }
.now-seek:hover::-webkit-slider-thumb, .now-seek:active::-webkit-slider-thumb { transform: scale(1.2); }
.now-seek:focus-visible { outline: 2px solid var(--accent, #FF5A3C); outline-offset: 2px; border-radius: 6px; }
.now-seek:disabled { cursor: default; opacity: 1; }
.now-seek:disabled::-webkit-slider-thumb { visibility: hidden; }
.now-seek:disabled::-moz-range-thumb { visibility: hidden; }
.now-times { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.now-skip { align-self: flex-start; margin-top: 12px; gap: 8px; }
.now-skip svg { width: 14px; height: 14px; }
.now-skip.voted { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }

.music-add {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 4px 0 14px;
  border-radius: 14px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  color: var(--faint);
  transition: box-shadow 0.15s, background-color 0.15s;
}
.music-add:focus-within { box-shadow: inset 0 0 0 1px var(--accent), var(--focus-ring); background: var(--surface); }
.music-add-ico svg { width: 16px; height: 16px; }
.music-add input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 14px; color: var(--ink); }
.music-add input:focus { outline: none; }
.music-add .btn { flex: none; min-width: 64px; height: 36px; border-radius: 10px; }

.results { margin-top: 8px; padding: 4px; border-radius: 14px; box-shadow: var(--ring); }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 4px 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.results-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.queue { list-style: none; margin: 12px -8px 0; padding: 0; }
.queue-label { padding: 0 8px 4px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.queue-empty { padding: 4px 8px 0; font-size: 13px; }
.song { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.song:hover { background: var(--fill-2); }
.song-thumb { flex: none; width: 64px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--fill); }
.song-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.song-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-by { display: inline-flex; flex: none; }
.song-pad { flex: none; width: 32px; }
.result .btn { flex: none; gap: 6px; padding: 0 12px; }
.result .btn svg { width: 14px; height: 14px; }
.music .last { margin-top: 8px; min-height: 0; text-align: left; }

.music { container-type: inline-size; }
@container (max-width: 620px) {
  .now { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vol { width: 72px; }
}

.tabbar { display: none; }

/* ---------- overlays ---------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 8px;
  justify-items: center;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px 10px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.2s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.toast svg { width: 16px; height: 16px; color: var(--accent-2); }
.toast.out { opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade 0.15s ease-out;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 18px;
  background: var(--raised);
  box-shadow: var(--shadow-pop);
  animation: modal-in 0.2s cubic-bezier(0.2, 1.1, 0.4, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 0 24px; min-height: 52px; }
.modal-head h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.modal-body { padding: 12px 24px 4px; }
.modal-body > p { font-size: 15px; color: var(--ink-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px 24px; }

.invite-code {
  margin: 4px 0 20px;
  padding: 20px;
  border-radius: 14px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  text-align: center;
}
.invite-code .eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.invite-code strong { display: block; margin-top: 6px; font-family: var(--mono); font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: 0.18em; padding-left: 0.18em; color: var(--ink); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; color: var(--ink-2); }
.copy-row .btn { height: 44px; border-radius: 10px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.num { position: relative; }
.num .input { padding-right: 60px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.num .input::-webkit-outer-spin-button,
.num .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--faint); font-size: 12px; pointer-events: none; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.toggle-row strong { display: block; font-size: 14px; font-weight: 600; }
.toggle-row span { font-size: 13px; color: var(--muted); }
.switch { position: relative; flex: none; width: 40px; height: 24px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 100px; background: var(--line-2); transition: background-color 0.15s; }
.switch .track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.settings-note { margin-top: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 9, 8, 0.9);
  cursor: zoom-out;
  animation: fade 0.15s ease-out;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* profile + avatar picker */

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile-head .field { flex: 1; margin: 0; }
.profile-preview { width: 72px; height: 72px; font-size: 24px; }
.picker-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tone-row { display: flex; gap: 8px; }
.tone { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); transition: box-shadow 0.15s; }
.tone.active { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ink); }
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.avatar-opt {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--fill-2);
  box-shadow: var(--ring);
  overflow: hidden;
  transition: box-shadow 0.15s, background-color 0.15s;
}
.avatar-opt:hover { background: var(--fill); }
.avatar-opt.active { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--accent); }
.avatar-opt img { display: block; width: 100%; height: 100%; transform: scale(1.06) translateY(4%); }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 360px; }
  .entry { grid-template-columns: minmax(0, 1fr) auto 72px; }
  .entry .stack { display: none; }
}

@media (max-width: 960px) {

  .app { grid-template-rows: 56px minmax(0, 1fr) auto; }
  .appbar { gap: 8px; padding: 0 8px 0 12px; }
  .appbar .brand-word, .appbar-sep, .appbar-right .stack, #btn-sound, .hide-sm { display: none; }
  .appbar-right .btn { padding: 0 10px; margin-right: 2px; }
  .me { padding-left: 4px; margin-left: 2px; }

  .workspace { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .main { gap: 12px; }
  .app[data-tab='timer'] .chat,
  .app[data-tab='chat'] .main { display: none; }

  .tabbar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface);
    box-shadow: 0 -1px 0 var(--line);
  }
  .tabbar button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--faint);
    transition: color 0.15s, background-color 0.15s;
  }
  .tabbar button svg { width: 20px; height: 20px; }
  .tabbar button.active { color: var(--ink); background: var(--fill-2); }
  .badge {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
  }

  .timer-card { padding: 16px 12px 20px; }
  .big-time { margin-top: 20px; }
  .card { padding: 16px; }
  .chat-head { padding: 0 12px 0 16px; height: 52px; }
  .feed { padding: 12px 16px 8px; }
  .composer { padding: 8px; }
  .compose-hint, .hint { display: none; }
}

@media (max-width: 560px) {
  .toggle button { padding: 0 10px; font-size: 12.5px; }
  .entry { grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; padding: 0 12px; }
  .entry-range { display: none; }
  .entry-desc { flex-wrap: wrap; row-gap: 4px; padding: 8px 0; }
  .entry-card { padding: 24px 20px; }
  .settings-grid { grid-template-columns: 1fr; }
  .toasts { bottom: 84px; }
  .person-task { max-width: 170px; }
  .room-meta .code-chip { display: none; }
  .modal-head { padding: 12px 8px 0 20px; }
  .modal-body { padding: 12px 20px 4px; }
  .modal-foot { padding: 16px 20px 20px; flex-wrap: wrap; }
  .play { min-width: 120px; }
  .controls { gap: 10px; }
}

/* ---------- streaks, status, battery ---------- */

.streak {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 0 6px 0 4px;
  border-radius: 6px;
  background: var(--streak-soft);
  color: var(--streak-text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.streak-fire { font-family: var(--font); font-size: 11px; }
.streak.cold { background: var(--fill); color: var(--muted); }
.streak.cold .streak-fire { filter: grayscale(1); opacity: 0.55; }
.msg-head .streak { align-self: center; height: 18px; font-size: 10.5px; }

.person-name .person-nm { overflow: hidden; text-overflow: ellipsis; }

.battery {
  position: relative;
  display: inline-flex;
  flex: none;
  gap: 1.5px;
  width: 24px;
  height: 13px;
  padding: 2px;
  margin-right: 3px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  color: var(--faint);
}
.battery::after { content: ''; position: absolute; top: 4px; right: -3.5px; width: 2px; height: 5px; border-radius: 0 2px 2px 0; background: currentColor; }
.battery i { flex: 1; border-radius: 1px; background: currentColor; opacity: 0.18; }
.battery.l1 { color: #E0452E; }
.battery.l2 { color: #E09412; }
.battery.l3 { color: #29B26F; }
.battery.l4 { color: #14946A; }
.battery.l1 i:nth-child(-n + 1),
.battery.l2 i:nth-child(-n + 2),
.battery.l3 i:nth-child(-n + 3),
.battery.l4 i { opacity: 1; }

.card-head .room-battery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: 6px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}
.card-head .room-battery.low { background: var(--danger-soft); color: var(--danger-text); box-shadow: none; }
.card-head .room-battery[hidden] { display: none; }

.kick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  border-radius: 8px;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.15s, background-color 0.15s, color 0.15s;
}
.kick svg { width: 15px; height: 15px; }
.person:hover .kick, .kick:focus-visible { opacity: 1; }
.kick:hover { background: var(--danger-soft); color: var(--danger); }
@media (pointer: coarse) { .kick { opacity: 1; } }

.mood-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--edge);
  color: var(--muted);
  transition: background-color 0.15s, transform 0.15s, color 0.15s;
}
.mood-btn:hover { color: var(--ink); }
.mood-btn:active { transform: scale(0.94); }
.mood-btn svg { width: 17px; height: 17px; }
.mood-btn.set { background: var(--surface); }
.mood-now { font-size: 18px; line-height: 1; }

.status-form .label-note { font-size: 12px; font-weight: 500; color: var(--faint); }
.mood-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px; }
.mood-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  box-shadow: var(--ring);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  transition: box-shadow 0.15s, background-color 0.15s;
}
.mood-opt:hover { background: var(--fill-2); }
.mood-opt.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); font-weight: 600; }
.mood-emoji { font-size: 17px; line-height: 1; }
.energy-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.energy-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 64px;
  border-radius: 14px;
  box-shadow: var(--ring);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: box-shadow 0.15s, background-color 0.15s, transform 0.15s;
}
.energy-opt:hover { background: var(--fill-2); }
.energy-opt:active { transform: scale(0.96); }
.energy-opt.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
.energy-opt .battery { width: 30px; height: 15px; }
.status-clear { margin-right: auto; }

.checkin {
  margin: 16px 0 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--phase-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--phase-a) 22%, transparent);
  animation: rise-spring 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
  transition: opacity 0.35s, transform 0.35s;
}
@keyframes rise-spring { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.checkin.out { opacity: 0; transform: translateY(-4px); }
.checkin-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.checkin-head > div { flex: 1; min-width: 0; }
.checkin-head strong { display: block; font-size: 14px; font-weight: 650; color: var(--ink); }
.checkin-head span { font-size: 13px; color: var(--ink-2); }
.checkin-emoji { font-size: 20px; line-height: 1.2; }
.checkin-head .icon-btn { margin: -6px -6px 0 0; color: var(--muted); }
.checkin-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.checkin-opts .energy-opt { height: 56px; background: var(--surface); box-shadow: var(--edge); }
.checkin-done { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.checkin-done strong { color: var(--ink); font-weight: 650; }

/* ---------- replies + mentions ---------- */

.reply-quote {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 2px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: left;
}
.reply-quote svg { width: 12px; height: 12px; flex: none; transform: scaleX(-1); color: var(--faint); }
.reply-quote b { flex: none; font-weight: 600; color: var(--ink-2); }
.reply-snip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-quote:hover .reply-snip, .reply-quote:hover b { color: var(--ink); }
.msg.has-reply .msg-body > .reply-quote + .msg-head { margin-top: 0; }

.msg.pinged::before {
  content: '';
  position: absolute;
  inset: -6px -10px;
  z-index: -1;
  border-radius: 10px;
  background: var(--ping-soft);
  box-shadow: inset 2px 0 0 var(--ping-edge);
}
.msg { isolation: isolate; }
.msg.flash::after {
  content: '';
  position: absolute;
  inset: -6px -10px;
  z-index: -1;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  animation: flash 1.6s ease-out forwards;
}
@keyframes flash { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }

.mention-tag { padding: 0 3px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.mention-tag.me { background: var(--mention-soft); color: var(--mention-text); }

.replybar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 4px 4px 4px 12px;
  border-radius: 10px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  font-size: 13px;
  color: var(--muted);
  animation: rise 0.15s ease-out;
}
.replybar > svg { width: 13px; height: 13px; flex: none; transform: scaleX(-1); color: var(--faint); }
.replybar-text { display: flex; gap: 6px; flex: 1; min-width: 0; white-space: nowrap; }
.replybar-text b { color: var(--ink); font-weight: 600; }
.replybar-text .reply-snip::before { content: '·'; margin-right: 6px; }
.replybar .icon-btn { width: 28px; height: 28px; border-radius: 7px; }

.ac-name { font-weight: 600; color: var(--ink); }
.ac-cmd { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--accent-text); }
.ac-desc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); font-size: 13px; }
.ac-item .avatar { width: 24px; height: 24px; font-size: 10px; }
.badge.at { background: #FFC93D; color: #4A3200; }

/* ---------- polls + games ---------- */

.poll {
  width: min(360px, 100%);
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.poll-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.poll-kind { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.poll-kind-emoji { font-family: var(--font); font-size: 14px; letter-spacing: 0; }
.poll-status { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--faint); }
.poll-clock { display: inline-flex; height: 22px; align-items: center; padding: 0 7px; border-radius: 6px; background: var(--ink); color: var(--bg); }
.poll-q { margin-bottom: 12px; font-size: 16px; font-weight: 650; line-height: 1.3; letter-spacing: -0.018em; color: var(--ink); }
.poll-opts { display: grid; gap: 6px; }
.poll-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--ring-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: box-shadow 0.15s, transform 0.12s;
}
.poll-opt:not(:disabled):hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.poll-opt:not(:disabled):active { transform: scale(0.985); }
.poll-opt:disabled { cursor: default; }
.poll-fill { position: absolute; inset: 0 auto 0 0; z-index: 0; background: var(--fill); transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.poll-label, .poll-meta, .poll-opt > svg { position: relative; z-index: 1; }
.poll-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.poll-meta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.poll-meta .avatar { box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 100px var(--avatar-dim); }
.poll-meta .avatar + .avatar { margin-left: -6px; }
.poll-opt.mine { box-shadow: inset 0 0 0 1.5px var(--accent); }
.poll-opt.mine .poll-fill { background: var(--accent-soft); }
.poll-opt.mine .poll-label::after { content: ' · you'; color: var(--accent-text); font-weight: 600; }
.poll-opt.right { box-shadow: inset 0 0 0 1.5px var(--short-a); }
.poll-opt.right .poll-fill { background: var(--good-soft); }
.poll-opt.right > svg { width: 16px; height: 16px; color: var(--short-text); }
.poll-opt.wrong { box-shadow: inset 0 0 0 1.5px var(--bad-edge); }
.poll-opt.wrong .poll-fill { background: var(--bad-soft); }
.poll-foot { margin-top: 10px; font-size: 12px; color: var(--faint); }

.poll.wyr .poll-opts { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 8px; }
.poll.wyr .poll-opt { flex-direction: column; justify-content: center; align-items: flex-start; min-height: 84px; padding: 12px; }
.poll.wyr .poll-meta { margin-top: auto; }
.poll-or { align-self: center; font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; color: var(--faint); }
.poll.trivia { background: linear-gradient(165deg, var(--surface) 45%, color-mix(in srgb, var(--long-a) 8%, var(--surface))); }

.roll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.roll-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  animation: tumble 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.roll.coin .roll-face { border-radius: 50%; background: linear-gradient(145deg, #FFE08A, #F2B320); color: #5A3E00; box-shadow: inset 0 0 0 3px rgba(160, 110, 0, 0.35), inset 0 2px 2px rgba(255, 255, 255, 0.6); animation-name: coin-flip; }
.roll-body { display: flex; flex-direction: column; }
.roll-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.roll-value { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
@keyframes tumble { from { transform: rotate(-200deg) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes coin-flip { from { transform: rotateY(720deg) scale(0.7); } to { transform: none; } }

.games { display: grid; gap: 2px; min-height: 0; padding: 4px 8px 8px; overflow-y: auto; }
/* The games list is short: size the panel to it instead of the emoji grid height. */
.picker:has(> .games) { height: auto; max-height: min(440px, 62vh); }
.game-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  text-align: left;
  transition: background-color 0.15s;
}
.game-tile:hover, .game-tile:focus-visible { background: var(--fill); }
.game-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  font-size: 20px;
}
.game-tile:hover .game-emoji { background: var(--raised); }
.game-text { display: flex; flex-direction: column; min-width: 0; }
.game-text strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.game-text span { font-size: 12.5px; color: var(--muted); }
.picker-foot kbd { padding: 1px 5px; border-radius: 4px; background: var(--fill); font: inherit; font-weight: 600; color: var(--ink-2); }

.poll-inputs { display: grid; gap: 8px; }
.poll-add { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.poll-add svg { width: 14px; height: 14px; }
.poll-add:hover { text-decoration: underline; text-underline-offset: 3px; }

.avatar.s20 { width: 20px; height: 20px; font-size: 9px; }

/* ---------- public rooms ---------- */

.public-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  height: 20px;
  padding: 0 6px 0 5px;
  border-radius: 6px;
  background: var(--fill);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
}
.public-tag svg { width: 12px; height: 12px; }

.lobby { padding: 96px 32px 8px; }
.lobby-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.lobby-head h2 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; }
.lobby-head p { margin-top: 12px; font-size: 16px; color: var(--muted); }
.tag .dot.live { background: var(--online); box-shadow: 0 0 0 0 color-mix(in srgb, var(--online) 50%, transparent); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 32px auto 0;
}
.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 176px;
  padding: 20px 20px 20px 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.room-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--rc-a, transparent), var(--rc-b, transparent)); }
.room-card:has(.room-status.focus) { --rc-a: var(--focus-a); --rc-b: var(--focus-b); }
.room-card:has(.room-status.short) { --rc-a: var(--short-a); --rc-b: var(--short-b); }
.room-card:has(.room-status.long) { --rc-a: var(--long-a); --rc-b: var(--long-b); }
.room-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.room-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-card-name { font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.room-card-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
@media (max-width: 560px) {
  .room-card { min-height: 0; }
  .room-card-foot { margin-top: 8px; }
}
.room-card-count { flex: 1; font-size: 13px; font-weight: 500; color: var(--muted); }
.room-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--fill); font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.room-status .dot { width: 6px; height: 6px; background: var(--faint); }
.room-status.focus { color: var(--focus-ink); background: var(--focus-soft); }
.room-status.focus .dot { background: var(--focus-dot); }
.room-status.short { color: var(--short-ink); background: var(--short-soft); }
.room-status.short .dot { background: var(--short-dot); }
.room-status.long { color: var(--long-ink); background: var(--long-soft); }
.room-status.long .dot { background: var(--long-dot); }

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--fill-2);
  box-shadow: var(--ring);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
button.topic-chip { height: 32px; padding: 0 10px; border-radius: 10px; }
button.topic-chip:hover { background: var(--fill); }
.topic-chip.on { background: var(--ink); box-shadow: none; color: var(--bg); }
.topic-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 16px; }

.lobby-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
  color: var(--muted);
}
.lobby-empty strong { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.lobby-empty span:last-child { max-width: 440px; font-size: 14px; }
.lobby-empty-ico { font-size: 28px; }

.invite-preview { margin: 0 0 16px; }
.invite-card { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 14px; background: #121110; box-shadow: var(--edge); }
.invite-preview figcaption { margin-top: 8px; font-size: 12px; color: var(--faint); text-align: center; }
.listing .toggle-row { border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .lobby { padding: 56px 16px 0; }
  .lobby-head { flex-direction: column; align-items: flex-start; }
  .lobby-grid { grid-template-columns: 1fr; margin-top: 24px; }
}
@media (max-width: 560px) {
  .mood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-head .room-battery { font-size: 12px; padding: 0 8px 0 6px; }
  .poll.wyr .poll-opts { grid-template-columns: 1fr; }
  .poll-or { justify-self: center; }
}

/* ---------- profiles ---------- */

.person-open { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-align: left; border-radius: 10px; }
.person-open:hover .person-nm { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.msg [data-avatar-of] { cursor: pointer; }

.avatar.s72 { width: 72px; height: 72px; font-size: 24px; }
.modal.modal-wide { max-width: 640px; }
.pf { display: grid; gap: 24px; padding-bottom: 12px; }
.pf-loading { color: var(--muted); padding: 16px 0 24px; }
.pf-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pf-who { min-width: 0; }
.pf-name { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-since { margin-top: 4px; font-size: 13px; color: var(--muted); }

.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pf-stat { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--fill-2); box-shadow: var(--ring); min-width: 0; }
.pf-stat strong { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-stat span { font-size: 12px; color: var(--muted); }
.pf-stat.hot { background: var(--streak-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.pf-stat.hot strong { color: var(--streak-text); }

.pf-section { display: grid; gap: 12px; min-width: 0; }
.pf-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pf-section-head h5 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.pf-section-head span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* Activity chart: one column per week, Monday at the top. */
.heat { display: flex; gap: 4px; min-width: 0; }
.heat-days { display: grid; grid-template-rows: 14px repeat(7, 8px); row-gap: 2px; flex: none; font-family: var(--mono); font-size: 9px; line-height: 8px; color: var(--faint); }
.heat-scroll { min-width: 0; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.heat-cols { display: flex; gap: 2px; width: max-content; }
.heat-col { display: grid; grid-template-rows: 14px repeat(7, 8px); row-gap: 2px; width: 8px; }
.heat-month { font-family: var(--mono); font-size: 9.5px; line-height: 10px; color: var(--faint); white-space: nowrap; overflow: visible; }
.heat i, .heat-legend i { display: block; width: 8px; height: 8px; border-radius: 2px; background: var(--fill); }
.heat i.none { background: none; }
.heat i.l1, .heat-legend i.l1 { background: color-mix(in srgb, var(--accent) 24%, var(--fill)); }
.heat i.l2, .heat-legend i.l2 { background: color-mix(in srgb, var(--accent) 48%, var(--fill)); }
.heat i.l3, .heat-legend i.l3 { background: color-mix(in srgb, var(--accent) 74%, var(--fill)); }
.heat i.l4, .heat-legend i.l4 { background: var(--accent); }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.heat-legend i:first-of-type { margin-left: 4px; }
.heat-legend i:last-of-type { margin-right: 4px; }

/* Badges are objects: a glossy medal once earned, an outline with a progress ring until then. */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.badge-tile { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 14px 8px 12px; border-radius: 14px; background: var(--fill-2); box-shadow: var(--ring); text-align: center; min-width: 0; }
.badge-tile strong { margin-top: 8px; font-size: 13px; font-weight: 650; line-height: 1.25; letter-spacing: -0.012em; }
.badge-how { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.badge-tile:not(.earned) .badge-how { font-family: var(--mono); font-size: 10.5px; }
.badge-medal {
  --m1: #FFB199;
  --m2: #FF5A3C;
  --p: 0%;
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}
.badge-medal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--p), var(--line-2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}
.badge-emoji { position: relative; filter: grayscale(1); opacity: 0.4; }
.badge-tile.earned { background: var(--surface); box-shadow: var(--edge); }
.badge-tile.earned .badge-medal {
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85), transparent 42%), linear-gradient(145deg, var(--m1), var(--m2));
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.18), inset 0 2px 2px rgba(255, 255, 255, 0.6), 0 6px 14px -6px var(--m2);
}
.badge-tile.earned .badge-medal::before { display: none; }
.badge-tile.earned .badge-emoji { filter: none; opacity: 1; }
.badge-bar { display: none; }

.avatar-opt.upload { display: grid; place-items: center; color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.avatar-opt.upload img { transform: none; object-fit: cover; }
.avatar-opt.upload.busy { opacity: 0.7; cursor: progress; }
.upload-ico { display: grid; justify-items: center; gap: 2px; }
.upload-ico svg { width: 20px; height: 20px; }
.upload-ico small { font-size: 10.5px; font-weight: 600; }

@media (max-width: 560px) {
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-name { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .roll-face, .checkin, .replybar, .modal, .toast, .big-time.release, .confetti i, .conn::before, .rec-dot, .tag .dot.live { animation: none !important; }
  .poll-fill, .ticks i { transition: none; }
}
