/* Generated from design/tokens.json by design/build.py. DO NOT EDIT: change tokens.json and rebuild. */
@font-face{font-family:"Bricolage Grotesque";src:url(fonts/bricolage.woff2) format("woff2"),url(https://watchloge.com/fonts/bricolage.woff2) format("woff2");font-weight:200 800;font-stretch:75% 100%;font-style:normal;font-display:swap}
:root{
  --loge-field:#0D1218;
  --loge-raised-low:#1A222B;
  --loge-raised:#212A33;
  --loge-raised2:#29313A;
  --loge-line-soft:#3D4650;
  --loge-line:#6F7983;
  --loge-paper:#F6F6EE;
  --loge-paper-dim:#B7BFC7;
  --loge-sticker:#F4F046;
  --loge-ink:#0B121A;
  --loge-ink-dim:#393A21;
  --loge-white:#FCFCFC;
  --loge-white-name:#F8F8F8;
  --loge-on-white:#070E16;
  --loge-alarm:#FD7466;
  --loge-device:#050505;
  --loge-device-edge:#3A3A3E;
  --loge-shade06:#0000000F;
  --loge-shade07:#00000012;
  --loge-shade12:#0000001F;
  --loge-shade18:#0000002E;
  --loge-shade35:#00000059;
  --loge-shade50:#00000080;
  --loge-shade80:#000000CC;
  --bg:var(--loge-field);
  --field:var(--loge-field);
  --surface-low:var(--loge-raised-low);
  --surface:var(--loge-raised);
  --raised:var(--loge-raised);
  --bubble:var(--loge-raised);
  --surface-2:var(--loge-raised2);
  --raised-2:var(--loge-raised2);
  --line:var(--loge-line-soft);
  --line-soft:var(--loge-line-soft);
  --line-strong:var(--loge-line);
  --text:var(--loge-paper);
  --on-field:var(--loge-paper);
  --text-2:var(--loge-paper-dim);
  --on-field-2:var(--loge-paper-dim);
  --muted:var(--loge-paper-dim);
  --placeholder:var(--loge-paper-dim);
  --accent:var(--loge-white);
  --accent-2:var(--loge-white-name);
  --name:var(--loge-white-name);
  --on-accent:var(--loge-on-white);
  --sticker:var(--loge-sticker);
  --on-sticker:var(--loge-ink);
  --on-sticker-2:var(--loge-ink-dim);
  --num:var(--loge-sticker);
  --accent-hi:var(--loge-sticker);
  --pen:var(--loge-ink);
  --badge:var(--loge-field);
  --on-badge:var(--loge-sticker);
  --moment:var(--loge-sticker);
  --on-moment:var(--loge-ink);
  --live:var(--loge-paper);
  --warn:var(--loge-sticker);
  --ok:var(--loge-paper);
  --danger:var(--loge-alarm);
  --device:var(--loge-device);
  --device-edge:var(--loge-device-edge);
  --scrim:var(--loge-shade50);
  --tint-press:var(--loge-shade06);
  --tint-quote-sticker:var(--loge-shade07);
  --tint-quote-me:var(--loge-shade12);
  --line-on-paper:var(--loge-shade12);
  --tint-quote:var(--loge-shade18);
  --shade:var(--loge-shade35);
  --font-display:"Bricolage Grotesque","Bricolage","Arial Rounded MT Bold",system-ui,"Segoe UI",Roboto,Arial,sans-serif;
  --font-ui:"Bricolage Grotesque","Bricolage","Arial Rounded MT Bold",system-ui,"Segoe UI",Roboto,Arial,sans-serif;
  --font-num:"Bricolage Grotesque","Bricolage","Arial Rounded MT Bold",system-ui,"Segoe UI",Roboto,Arial,sans-serif;
  --font-mono:"Bricolage Grotesque","Bricolage","Arial Rounded MT Bold",system-ui,"Segoe UI",Roboto,Arial,sans-serif;
  --font-emoji:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  --font-display-weight:800;
  --font-display-transform:none;
  --font-display-tracking:-0.02em;
  --font-display-line-height:1.05;
  --font-display-width:85%;
  --font-ui-weight:500;
  --font-ui-width:100%;
  --font-num-weight:800;
  --font-num-transform:none;
  --font-num-tracking:-0.04em;
  --font-num-line-height:.85;
  --font-num-width:75%;
  --font-num-variation:"opsz" 48;
  --font-num-kerning:none;
  --size-label:min(calc(var(--type-scale) * 0.75rem), 24px);
  --size-small:min(calc(var(--type-scale) * 0.875rem), 28px);
  --size-body:min(calc(var(--type-scale) * 1rem), 32px);
  --size-lead:clamp(calc(var(--type-scale) * 1rem),1.6vw,calc(var(--type-scale) * 1.1875rem));
  --size-team:min(calc(var(--type-scale) * 1.1875rem), 38px);
  --size-h3:min(calc(var(--type-scale) * 1.375rem), 44px);
  --size-score:min(calc(var(--type-scale) * 1.625rem), 33.8px);
  --size-stat:min(calc(var(--type-scale) * 2.375rem), 49.4px);
  --size-strip:min(calc(var(--type-scale) * 2.875rem), 59.8px);
  --size-big:min(calc(var(--type-scale) * 3.375rem), 70.2px);
  --size-h2:clamp(calc(var(--type-scale) * 1.625rem),3.6vw,calc(var(--type-scale) * 2.375rem));
  --size-h1:clamp(calc(var(--type-scale) * 2.375rem),6.4vw,calc(var(--type-scale) * 3.375rem));
  --size-mega:clamp(calc(var(--type-scale) * 2.875rem),8vw,calc(var(--type-scale) * 6rem));
  --size-poster:clamp(calc(var(--type-scale) * 3.375rem),13vw,calc(var(--type-scale) * 6.5rem));
  --size-icon:16px;
  --size-avatar:22px;
  --size-tap:44px;
  --type-scale:1;
  --tracking-num:-0.04em;
  --tracking-display:-0.02em;
  --tracking-mark:-0.03em;
  --tracking-tight:-0.01em;
  --tracking-none:0;
  --tracking-read:0;
  --tracking-label:.05em;
  --tracking-caps:.06em;
  --tracking-wordmark:.02em;
  --tracking-sep:.08em;
  --tracking-dot:.1em;
  --space-half:2px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:24px;
  --space-6:32px;
  --space-7:48px;
  --space-8:72px;
  --space-9:96px;
  --space-10:144px;
  --space-section:clamp(72px,12vw,144px);
  --radius-xs:6px;
  --radius-sm:10px;
  --radius-chip:10px;
  --radius-md:14px;
  --radius-card:16px;
  --radius-bubble:18px;
  --radius-lg:20px;
  --radius-sticker:20px;
  --radius-sheet:22px;
  --radius-device:52px;
  --radius-pill:999px;
  --shadow-sticker:0 1px 0 var(--loge-shade35), 0 12px 24px -12px var(--loge-shade80);
  --shadow-sheet:0 -12px 30px var(--loge-shade35);
  --shadow-ring:0 0 0 var(--border-focus) var(--num), 0 0 0 9px color-mix(in oklch, var(--num) 25%, transparent);
  --shadow-ring-ink:0 0 0 var(--border-focus) var(--on-sticker);
  --shadow-drop:0 4px 0 var(--loge-shade35);
  --shadow-dock:0 6px 0 var(--loge-shade35), 0 0 0 2px var(--loge-field);
  --line-height-num:.85;
  --line-height-none:1;
  --line-height-tight:1.05;
  --line-height-clock:1.1;
  --line-height-snug:1.2;
  --line-height-title:1.25;
  --line-height-read:1.38;
  --line-height-body:1.4;
  --line-height-loose:1.5;
  --weight-regular:400;
  --weight-medium:500;
  --weight-semibold:600;
  --weight-bold:700;
  --weight-heavy:800;
  --weight-black:800;
  --width-num:75%;
  --width-mark:80%;
  --width-display:85%;
  --width-body:100%;
  --border-hairline:1px;
  --border-mid:1.5px;
  --border-strong:2px;
  --border-focus:3px;
  --border-sticker:7px;
  --shape-border:1px;
  --shape-surface-alpha:86%;
  --shape-blur:24px;
  --shape-gap:14px;
  --shape-shadow:none;
  --shape-rot-max:0.6deg;
  --shape-slap-rot:3deg;
  --motion-instant:0ms;
  --motion-press:100ms;
  --motion-fast:160ms;
  --motion-base:220ms;
  --motion-slow:300ms;
  --motion-glance:700ms;
  --motion-rise:180ms;
  --motion-ink:400ms;
  --motion-hold:500ms;
  --motion-card-stay:6000ms;
  --motion-fade-out:400ms;
  --motion-reduce:150ms;
  --motion-print:1.4s;
  --motion-pulse:1.6s;
  --motion-slap-fade:90ms;
  --motion-slap-scale:1.06;
  --motion-ease:cubic-bezier(.23,1,.32,1);
  --motion-ease-out:cubic-bezier(.23,1,.32,1);
  --motion-ease-in-out:cubic-bezier(.77,0,.175,1);
  --motion-ease-sheet:cubic-bezier(.32,.72,0,1);
  --motion-ease-pen:cubic-bezier(.35,0,.25,1);
  --motion-press-scale:.97;
  --motion-press-scale-small:.94;
  --motion-enter-rise:8px;
  --motion-enter-scale:.96;
  --motion-stagger:40ms;
  --motion-hold-delay:350ms;
  --motion-hold-slop:10px;
  --motion-hold-lift:1.03;
  --motion-pick-scale:1.35;
  --motion-fling-speed:.11;
  --motion-decay:.998;
  --motion-rubber:.7;
  --motion-reduced-motion:fade 150ms ease-out; no transform; highlights and colour changes stay;
  --layout-gutter:16px;
  --layout-phone:360px;
  --layout-room:600px;
  --layout-content:1120px;
  --layout-readable:640px;
  --layout-card:420px;
  --state-slow:15000ms;
  --state-dim:.55;
  --state-dot:6px;
  --state-net-h:26px;
  --state-coach-tip:7px;
  --state-reconnecting:muted dot, three pulses then steady;
  --state-unsent:bubble at dim with Retry;
  --state-error:muted line with an action; danger colour only for destructive actions;
  --pen-pad-right:60px;
  --pen-min-height:64px;
  --pen-pad-top:36px;
  --pen-pad-above:24px;
  --pen-stroke:1;
  --pen-under:2.4;
  --pen-draw:650ms;
  --pen-draw-margin:800ms;
  --pen-delay:200ms;
  --pen-seen:.6;
  --pen-bold:1.6;
  --pen-corner-cell:44 24;
  --pen-corner-word-max:42;
  --pen-margin-right:8px;
  --pen-inset:2px;
  --pen-corner-top:3px;
  --motion-tick:220ms;
  --motion-tick-shift:40%;
  --spring-snap:linear(0, 0.071, 0.211, 0.364, 0.505, 0.623, 0.718, 0.792, 0.848, 0.89, 0.921, 0.943, 0.96, 0.971, 0.98, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 1);
  --spring-snap-duration:350ms;
  --spring-move:linear(0, 0.039, 0.125, 0.231, 0.341, 0.445, 0.54, 0.622, 0.693, 0.752, 0.801, 0.841, 0.874, 0.9, 0.921, 0.938, 0.951, 0.962, 0.97, 0.977, 0.982, 0.986, 0.989, 0.991, 0.993, 0.995, 0.996, 1);
  --spring-move-duration:450ms;
  --spring-sheet:linear(0, 0.039, 0.125, 0.231, 0.341, 0.445, 0.54, 0.622, 0.693, 0.752, 0.801, 0.841, 0.874, 0.9, 0.921, 0.938, 0.951, 0.962, 0.97, 0.977, 0.982, 0.986, 0.989, 0.991, 0.993, 0.995, 0.996, 1);
  --spring-sheet-duration:450ms;
  --spring-sheet-throw:linear(0, 0.04, 0.131, 0.247, 0.369, 0.486, 0.593, 0.685, 0.762, 0.825, 0.875, 0.913, 0.942, 0.964, 0.979, 0.99, 0.997, 1.001, 1.004, 1.005, 1.006, 1.005, 1);
  --spring-sheet-throw-duration:367ms;
  --spring-slap:linear(0, 0.048, 0.159, 0.3, 0.447, 0.586, 0.707, 0.808, 0.886, 0.945, 0.986, 1.013, 1.028, 1.035, 1.037, 1.035, 1.03, 1.025, 1.02, 1.015, 1.01, 1.007, 1.004, 1.002, 1, 1);
  --spring-slap-duration:417ms;
  --spring-flight-x:linear(0, 0.051, 0.16, 0.287, 0.412, 0.525, 0.623, 0.704, 0.769, 0.822, 0.864, 0.896, 0.921, 0.94, 0.955, 0.966, 0.975, 0.981, 0.986, 0.989, 0.992, 0.994, 0.996, 0.997, 1);
  --spring-flight-x-duration:400ms;
  --spring-flight-y:linear(0, 0.028, 0.092, 0.176, 0.267, 0.358, 0.444, 0.524, 0.595, 0.658, 0.713, 0.76, 0.801, 0.835, 0.863, 0.887, 0.907, 0.924, 0.938, 0.949, 0.959, 0.966, 0.973, 0.978, 0.982, 0.985, 0.988, 0.99, 0.992, 0.994, 0.995, 0.996, 1);
  --spring-flight-y-duration:533ms;
  color-scheme:dark;
}
@supports (font:-apple-system-body) and (-webkit-touch-callout:none){:root{font:-apple-system-body;font-family:var(--font-ui);line-height:var(--line-height-body);--type-scale:0.9412}}

/* Loge components, language v3 (D-156): the room's language everywhere. Source for the component part of
   design/dist/loge.css (build.py appends it). Pages compose these classes; they never restyle them with their own values.
   Rules: design/LANGUAGE.md. Only var(--…) values here: design/lint.py checks this file like any page.
   Loge is the sticker colour, people are white, the ground is Riso Night. One face, Bricolage Grotesque. */

/* ---------- base ---------- */
/* An app, not a page (D-158): no grey-blue flash on a tap (every control has its own :active below), the phone never
   inflates text on rotation, and text follows the reader's text size (rem sizes, tokens.size.$scale). */
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Controls are not text to select; what people and Loge say is (long-press to copy). */
:is(.l-btn,.l-send,.l-ask,.l-clock,.l-bug-mid,.l-switch,.l-strip,.l-react,.l-react-add,.l-stat-share,.l-sheet-grab,.l-sheet-title,.l-dg,.l-ep,.l-hstat,.l-newpill,.l-more){-webkit-user-select:none;user-select:none}
:is(.l-bubble,.l-bubble-me,.l-loge,.l-stat,.l-moment,.l-call,.l-beat,.l-show) :is(p,span:not(.l-dg),blockquote,em,b){-webkit-user-select:text;user-select:text}
/* Pressed: every tappable piece answers the finger with the press scale on the snap spring (A22). */
:is(.l-lc,.l-pill,.l-clock,.l-bug-mid,.l-quote,.l-more,.l-ep,.l-hstat,.l-stat-share,.l-react-add,.l-newpill){transition:transform var(--spring-snap-duration) var(--spring-snap)}
:is(.l-lc,.l-pill,.l-clock,button.l-bug-mid,.l-quote,.l-ep,.l-hstat,.l-newpill):active{transform:scale(var(--motion-press-scale))}
:is(.l-more,.l-stat-share,.l-react-add):active{transform:scale(var(--motion-press-scale))}
.l-newpill:active{transform:translateX(-50%) scale(var(--motion-press-scale))}
@media (prefers-reduced-motion:reduce){:is(.l-lc,.l-pill,.l-clock,.l-bug-mid,.l-quote,.l-more,.l-ep,.l-hstat,.l-stat-share,.l-react-add,.l-newpill){transition:none}}
.l-page{background:var(--bg);color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--font-ui-weight);line-height:var(--line-height-body);font-optical-sizing:auto}
.l-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Display type: Bricolage 800, a little condensed, sentence case. Headlines, card titles, the room's words. */
.l-display{font-family:var(--font-display);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);text-transform:var(--font-display-transform);letter-spacing:var(--font-display-tracking);line-height:var(--font-display-line-height);color:var(--text);text-shadow:none;margin:0}
.l-h1{font-size:var(--size-h1)}
.l-h2{font-size:var(--size-h2)}
.l-h3{font-size:var(--size-h3)}

/* The numeral face: every big number and its flying copy. opsz pinned at 48, kerning off, tracking −0.04em, so a number
   set at 54, 46, 38 or 26 is the same shape and a flying copy never changes face when it lands. */
.l-numface{font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);letter-spacing:var(--font-num-tracking);line-height:var(--font-num-line-height);font-optical-sizing:none;font-variation-settings:var(--font-num-variation);font-kerning:var(--font-num-kerning);font-variant-numeric:tabular-nums;white-space:nowrap}
.l-big{display:inline-block;position:relative;margin-top:var(--space-2);font-size:var(--size-big);font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);letter-spacing:var(--font-num-tracking);line-height:var(--font-num-line-height);font-optical-sizing:none;font-variation-settings:var(--font-num-variation);font-kerning:var(--font-num-kerning);font-variant-numeric:tabular-nums;color:var(--num)}
/* A big number built cell by cell (the T1 tick moves only the digit that changed). «:» and «–» get air on both
   sides, the decimal point half of it; the cell clips only vertically so negative tracking never cuts a glyph. */
.l-dg{display:inline-block;position:relative;vertical-align:top;clip-path:inset(0 calc(-1 * var(--tracking-sep) * 3))}
.l-dg > i{display:block;font-style:normal}
.l-dg > i + i{position:absolute;left:0;top:0}
.l-dg.is-sep{margin:0 var(--tracking-sep)}
.l-dg.is-dot{margin:0 var(--tracking-dot)}

/* Small label above a block: uppercase, heavy, a little air. */
.l-label{font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--muted)}

/* Body text. */
.l-body{font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-medium);line-height:var(--line-height-body);color:var(--text-2)}

/* Key number inside text: the numeral colour (the sticker yellow on the ground, ink on a sticker). */
.l-num{color:var(--num);font-weight:var(--weight-heavy);font-variant-numeric:tabular-nums}

/* ---------- actions ---------- */
/* Primary action: a white pill (people's colour), one per screen. Press: scale .97 on pointerdown. */
.l-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:var(--size-tap);padding:0 var(--space-5);border:var(--border-hairline) solid transparent;border-radius:var(--radius-pill);background:var(--accent);color:var(--on-accent);font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-heavy);cursor:pointer;text-decoration:none;white-space:nowrap;transition:transform var(--motion-press) var(--motion-ease-out),opacity var(--motion-fast) var(--motion-ease-out)}
.l-btn:active{transform:scale(var(--motion-press-scale))}
.l-btn[aria-disabled="true"],.l-btn:disabled{opacity:var(--state-dim);cursor:default}
/* Quiet button: the raised surface with a control border (≥3:1). */
.l-btn-quiet{background:var(--surface);color:var(--text);border-color:var(--line-strong);font-weight:var(--weight-bold)}
.l-btn-quiet[aria-pressed="true"]{background:var(--text);color:var(--bg);border-color:transparent}
/* The sticker action (Loge's colour), only for Loge's own controls: @Loge on, Sync again after a lost sync. */
.l-btn-sticker{background:var(--sticker);color:var(--on-sticker)}
@media (prefers-reduced-motion:reduce){.l-btn{transition:none}.l-btn:active{transform:none}}

/* Card: a raised surface, flat, rounded. */
.l-card{background:var(--surface);border:var(--border-hairline) solid transparent;border-radius:var(--radius-card);padding:var(--space-4);box-shadow:var(--shape-shadow)}

/* ---------- the room's header ---------- */
/* Three independent columns: the wordmark left, the score centred, the clock button with the sync word right. */
.l-header{display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);align-items:center;column-gap:var(--space-3);padding:var(--space-2) var(--space-4)}
.l-header > :first-child{justify-self:start}
.l-header > :last-child{justify-self:end}
.l-wordmark{font-family:var(--font-display);font-size:var(--size-body);font-weight:var(--weight-heavy);font-stretch:var(--width-mark);letter-spacing:var(--tracking-mark);color:var(--sticker);text-decoration:none}
.l-scoreline{display:flex;align-items:baseline;justify-self:center;gap:var(--space-2);font-variant-numeric:tabular-nums}
.l-scoreline .l-tm{font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);color:var(--text-2)}
.l-scoreline b{font-size:var(--size-score);font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);line-height:var(--line-height-none)}
.l-scoreline b.is-trail{color:var(--text-2)}
.l-scoreline .l-dash{font-size:var(--size-body);font-weight:var(--weight-bold);color:var(--text-2)}
/* The game clock is the button that opens sync with the TV. data-sync: off (sticker outline and word), on (muted word
   with a check), lost (sticker fill and «!»). Before tip-off it shows the start time and no sync. */
.l-clock{display:grid;justify-items:center;min-height:var(--size-tap);min-width:calc(var(--size-tap) * 2);padding:var(--space-half) var(--space-3) var(--space-1);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-md);background:var(--surface);color:var(--text);font-family:var(--font-ui);line-height:var(--line-height-clock);cursor:pointer}
.l-clock .l-cq{font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap;font-optical-sizing:none;font-variation-settings:var(--font-num-variation)}
.l-clock .l-cq b{margin-left:var(--space-half);font-size:var(--size-h3);font-weight:var(--weight-heavy);font-stretch:var(--font-display-width);letter-spacing:var(--tracking-tight);color:var(--text)}
.l-clock .l-sy{display:inline-flex;align-items:center;gap:var(--space-1);font-size:var(--size-label);font-weight:var(--weight-bold);letter-spacing:var(--tracking-label);color:var(--text-2)}
.l-clock[data-sync="off"]{border:var(--border-mid) solid var(--sticker)}
.l-clock[data-sync="off"] .l-sy{color:var(--sticker)}
.l-clock[data-sync="lost"]{background:var(--sticker);border-color:transparent}
.l-clock[data-sync="lost"] :is(.l-cq,.l-cq b,.l-sy){color:var(--on-sticker)}
.l-clock[data-sync="pre"]{cursor:default}

/* Main room | Just me: a thumb that slides (spring snap); the rooms cross-fade, never slide sideways. The thumb is white,
   people's colour: a switch is the viewer's choice, not Loge speaking (D-159). */
.l-switch{position:relative;display:grid;grid-template-columns:1fr 1fr;padding:var(--space-half);border:var(--border-hairline) solid transparent;border-radius:var(--radius-pill);background:var(--surface)}
.l-switch > i{position:absolute;top:var(--space-half);bottom:var(--space-half);left:var(--space-half);width:calc(50% - var(--space-half));border-radius:var(--radius-pill);background:var(--accent);transition:transform var(--spring-snap-duration) var(--spring-snap)}
.l-switch :is(button,a){display:flex;align-items:center;justify-content:center;text-decoration:none;position:relative;z-index:1;min-height:calc(var(--size-tap) - var(--space-3));border:var(--border-hairline) solid transparent;border-radius:var(--radius-pill);background:none;color:var(--text-2);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);cursor:pointer}
.l-switch :is(button[aria-pressed="true"],a[aria-current="page"]){color:var(--on-accent)}
.l-switch button:last-of-type[aria-pressed="true"] ~ i,.l-switch a:last-of-type[aria-current="page"] ~ i,.l-switch.is-right > i{transform:translateX(100%)}
.l-switch small{margin-left:var(--space-1);font-size:var(--size-label);font-weight:var(--weight-semibold)}
@media (prefers-reduced-motion:reduce){.l-switch > i{transition:none}}

/* ---------- live strip: episodes alive right now (at most two) ---------- */
/* The large card (number, what and since when) and the small pill beside it. The strip is the only part of the room
   that changes; a tap on the large card goes to the episode's first card, a tap on the pill swaps them. */
.l-strip{display:flex;gap:var(--space-2);align-items:stretch;padding:0 var(--space-4) var(--space-3)}
.l-strip:empty{display:none}
.l-lc{flex:1;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:var(--space-3);padding:var(--space-2) var(--space-3);border:var(--border-mid) solid var(--num);border-radius:var(--radius-card);background:var(--surface);color:var(--text);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.l-lc .l-k,.l-pill .l-k{grid-column:1 / -1;display:flex;align-items:center;gap:var(--space-1);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-caps);text-transform:uppercase;color:var(--num)}
.l-lc .l-k i,.l-pill .l-k i{width:var(--state-dot);height:var(--state-dot);border-radius:var(--radius-pill);background:var(--num)}
.l-lc .l-n{display:flex;align-items:center;font-size:var(--size-strip);font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);letter-spacing:var(--font-num-tracking);line-height:var(--line-height-none);font-optical-sizing:none;font-variation-settings:var(--font-num-variation);font-kerning:var(--font-num-kerning);font-variant-numeric:tabular-nums;color:var(--num);white-space:nowrap}
.l-lc .l-w{min-width:0;font-size:var(--size-small);font-weight:var(--weight-bold);line-height:var(--line-height-snug);overflow-wrap:normal;hyphens:none}
.l-lc .l-w span{display:block;font-weight:var(--weight-medium);color:var(--text-2)}
.l-pill{flex:none;display:grid;align-content:center;justify-items:start;gap:var(--space-half);min-width:calc(var(--size-tap) * 2);padding:var(--space-2) var(--space-3);border:var(--border-mid) solid var(--line-strong);border-radius:var(--radius-card);background:var(--surface);color:var(--text);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.l-pill .l-k{color:var(--name)}
.l-pill b{font-size:var(--size-score);font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);letter-spacing:var(--font-num-tracking);line-height:var(--line-height-none);font-optical-sizing:none;font-variation-settings:var(--font-num-variation);font-kerning:var(--font-num-kerning);font-variant-numeric:tabular-nums;color:var(--num)}
.l-pill>span:not(.l-k){font-size:var(--size-label);font-weight:var(--weight-semibold);color:var(--text-2)}
/* sync lost: the strip freezes and says so; only the number and the frame are muted, the words keep full strength */
.l-strip.is-paused :is(.l-n,.l-pill b){opacity:var(--state-dim)}
.l-strip.is-paused .l-lc{border-color:color-mix(in oklch,var(--num) calc(var(--state-dim) * 100%),var(--surface))}
.l-strip.is-paused .l-k i{background:var(--text-2)}
@media (max-width:340px){.l-lc .l-n{font-size:var(--size-stat)}.l-lc .l-w span{display:none}
  /* beside a pill the large card is too narrow for number and words in a row: the words go under the number, whole */
  .l-strip:has(.l-pill) .l-lc{grid-template-columns:minmax(0,1fr);row-gap:var(--space-half)}}

/* ---------- the chat ---------- */
/* Immutable and chronological: new things arrive only at the bottom. */
.l-feed{display:flex;flex-direction:column;gap:var(--shape-gap)}
.l-stamp{align-self:center;font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
/* People: friends on the left on the raised surface, names white; mine on the right in white with dark text. */
.l-bubble{position:relative;align-self:flex-start;max-width:86%;background:var(--bubble);border:var(--border-hairline) solid transparent;border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) var(--radius-xs);padding:var(--space-2) var(--space-3);font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-medium);line-height:var(--line-height-body);color:var(--text)}
.l-bubble.is-wide{align-self:stretch;max-width:none}
.l-bubble > .l-react{margin-top:var(--space-2)}
.l-bubble-me{position:relative;align-self:flex-end;max-width:80%;background:var(--accent);border:var(--border-hairline) solid transparent;border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-xs) var(--radius-bubble);padding:var(--space-2) var(--space-3);font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-medium);line-height:var(--line-height-body);color:var(--on-accent);--text:var(--on-accent);--text-2:var(--on-accent);--muted:var(--on-accent)}

/* Inside a bubble: who wrote it (white name, Loge in the sticker colour) and the message it answers. */
.l-who{display:block;font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-heavy);color:var(--name);margin-bottom:var(--space-half)}
.l-who-loge{color:var(--sticker)}
.l-bubble-me .l-who{color:var(--on-accent)}
.l-reply{display:block;font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-semibold);color:var(--muted);margin-bottom:var(--space-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l-reply q{font-weight:var(--weight-regular);quotes:none;margin-left:var(--space-1)}
/* A quoted reply: author and one line, a bar on the left; a tap jumps to the original. */
.l-quote{display:grid;gap:var(--space-half);width:100%;margin-bottom:var(--space-1);padding:var(--space-1) var(--space-3);border:0;border-left:var(--border-focus) solid var(--q-bar,var(--name));border-radius:var(--radius-xs) var(--radius-sm) var(--radius-sm) var(--radius-xs);background:var(--q-bg,var(--tint-quote));color:inherit;font:inherit;text-align:left;cursor:pointer}
.l-quote b{font-size:var(--size-label);font-weight:var(--weight-heavy);color:var(--q-name,var(--name))}
.l-quote span{display:block;max-width:30ch;overflow:hidden;font-size:var(--size-small);font-weight:var(--weight-medium);white-space:nowrap;text-overflow:ellipsis}
.l-bubble-me .l-quote{--q-bar:var(--on-accent);--q-bg:var(--tint-quote-me);--q-name:var(--on-accent)}
.is-sticker .l-quote{--q-bar:var(--on-sticker);--q-bg:var(--tint-quote-sticker);--q-name:var(--on-sticker)}

/* Your message on its way (a small spinner after your name) and one that didn't go: the bubble at dim with Retry. */
.l-sending .l-who::after{content:"";display:inline-block;vertical-align:middle;width:var(--size-label);height:var(--size-label);margin-left:var(--space-1);border:var(--border-hairline) solid currentColor;border-top-color:transparent;border-radius:var(--radius-pill);animation:l-spin var(--motion-print) linear infinite}
@keyframes l-spin{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){.l-sending .l-who::after{animation:none}}
.l-unsent{opacity:var(--state-dim)}
.l-unsent-note{display:flex;align-items:center;gap:var(--space-1);margin:var(--space-1) 0 0;font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
.l-retry{position:relative;min-height:calc(var(--size-tap) - var(--space-4));padding:0 var(--space-half);border:0;background:none;color:var(--text);font:inherit;text-decoration:underline;text-underline-offset:var(--space-half);cursor:pointer}

/* ---------- Loge: sticker or quiet line ---------- */
/* Significance decides (Maxim 30.10 16:52, no count limits): a more significant event is a yellow sticker, a less
   significant one a quiet bubble. The engine judges it with the line's weight ("major" | "minor"); a page adds
   .is-sticker or .is-quiet to .l-loge (and to the old card classes .l-stat, .l-moment, .l-call, .l-beat).
   Inside a sticker the roles turn to ink, so every component in it reads on yellow without its own rules. */
.l-loge-item{display:flex;flex-direction:column;gap:var(--space-1);max-width:92%;align-self:flex-start}
.l-loge{position:relative;padding:var(--space-3) var(--space-4);font-family:var(--font-ui);color:var(--text)}
.l-loge > :first-child{margin-top:0}
.l-loge.is-quiet{padding:var(--space-2) var(--space-3)}
.l-loge h3,.l-loge .l-title{margin:var(--space-1) 0 0;font-family:var(--font-display);font-size:var(--size-h3);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);line-height:var(--font-display-line-height)}
.l-loge.is-quiet :is(h3,.l-title){font-size:var(--size-body);font-stretch:var(--width-body);letter-spacing:var(--tracking-none);line-height:var(--line-height-title);margin-top:var(--space-half)}
.l-loge .l-line{margin:var(--space-2) 0 0;font-size:var(--size-body);font-weight:var(--weight-semibold);line-height:var(--line-height-read);text-wrap:pretty}
.l-loge.is-quiet .l-line{margin-top:var(--space-half);font-weight:var(--weight-medium)}
.l-loge .l-sub{margin:var(--space-1) 0 0;font-size:var(--size-small);font-weight:var(--weight-semibold);color:var(--text-2)}
.l-loge.is-quiet .l-sub{color:var(--text)}
/* the quiet card: a line with a big number that is not a moment; the number one step down (38), in the text colour,
   its label muted: yellow is only for stickers (D-159), so the sticker stays the loudest thing on the screen */
.l-loge.is-quiet .l-big{font-size:var(--size-stat);color:var(--text)}
.l-loge.is-quiet .l-big + .l-sub{color:var(--text-2)}
.l-loge .l-to{font-size:var(--size-label);font-weight:var(--weight-semibold);color:var(--text-2)}
.l-loge .l-who-loge{font-size:var(--size-small)}
.l-more{display:block;min-height:var(--size-tap);margin:0 0 calc(-1 * var(--space-3));padding:0;border:0;background:none;font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-heavy);color:var(--text-2);text-align:left;text-decoration:underline;text-underline-offset:var(--space-half);cursor:pointer}
@media (hover:hover) and (pointer:fine){.l-more:hover{color:var(--text)}}
/* "2 more from the timeout" (D-373): the rest of a break's lines, folded under the last one shown; Loge's count in volt */
.l-pmore{align-self:flex-start;display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--size-tap);padding:0 var(--space-3) 0 var(--space-2);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) var(--radius-xs);background:none;font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-heavy);color:var(--text-2);cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform var(--spring-snap-duration) var(--spring-snap)}
.l-pmore-n{display:inline-grid;place-items:center;min-width:var(--size-icon);height:var(--size-icon);padding:0 var(--space-1);border-radius:var(--radius-pill);background:var(--sticker);color:var(--on-sticker);font-variant-numeric:tabular-nums}
.l-pmore .ic{width:var(--size-icon);height:var(--size-icon)}
.l-pmore:active{transform:scale(var(--motion-press-scale))}
@media (hover:hover) and (pointer:fine){.l-pmore:hover{color:var(--text);border-color:var(--text-2)}}
@media (prefers-reduced-motion:reduce){.l-pmore{transition:none}}
.l-detail{display:block;margin-top:var(--space-1);font-size:var(--size-small);line-height:var(--line-height-body);color:var(--text)}
/* the small "loge" chip under a sticker, in the reactions row; a quiet line is already signed and has none */
.l-lm{display:inline-block;padding:0 var(--space-1) var(--space-half);border-radius:var(--radius-xs);background:var(--sticker);color:var(--on-sticker);font-family:var(--font-display);font-size:var(--size-label);font-weight:var(--weight-heavy);font-stretch:var(--width-mark);letter-spacing:var(--tracking-tight);transform:rotate(calc(-1 * var(--shape-slap-rot)))}
/* a milestone: one line, no card of its own */
.l-mile{align-self:flex-start;display:flex;align-items:center;gap:var(--space-2);padding:var(--space-half) 0;font-size:var(--size-small);font-weight:var(--weight-bold);color:var(--text)}
.l-mile time{font-size:var(--size-label);font-weight:var(--weight-semibold);color:var(--text-2);font-variant-numeric:tabular-nums}
/* Loge is answering: three ink dots on a small sticker */
.l-typing{display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-1) 0}
.l-typing i{width:var(--state-dot);height:var(--state-dot);border-radius:var(--radius-pill);background:currentColor;opacity:.35;animation:l-breathe calc(var(--motion-glance) + var(--motion-fast)) ease-in-out infinite}
.l-typing i:nth-child(2){animation-delay:var(--motion-fast)}
.l-typing i:nth-child(3){animation-delay:var(--motion-slow)}
@keyframes l-breathe{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(calc(-1 * var(--space-half)))}}
@media (prefers-reduced-motion:reduce){.l-typing i{animation:none;opacity:.6}}

/* ---------- poll ---------- */
.l-poll-opts,.l-call-opts{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:var(--space-2)}
.l-call-opts.is-grid{grid-auto-flow:row;grid-template-columns:1fr 1fr}
.l-poll-opts button,.l-call-opts button{display:flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:var(--size-tap);padding:0 var(--space-3);border:var(--border-mid) solid var(--line-strong);border-radius:var(--radius-pill);background:none;color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-heavy);cursor:pointer;transition:transform var(--motion-press) var(--motion-ease-out)}
.l-poll-opts button:active,.l-call-opts button:active{transform:scale(var(--motion-press-scale-small))}
.l-poll-opts button[aria-pressed="true"],.l-call-opts button[aria-pressed="true"]{background:var(--text);border-color:var(--text);color:var(--bg)}
.is-sticker :is(.l-poll-opts,.l-call-opts) button[aria-pressed="true"]{color:var(--sticker)}
.l-poll-opts button:disabled,.l-call-opts button:disabled{cursor:default}
.l-poll-opts button:disabled:not([aria-pressed="true"]),.l-call-opts button:disabled:not([aria-pressed="true"]){opacity:var(--state-dim)}
.l-call-opts small{font-size:var(--size-label);font-weight:var(--weight-semibold)}
/* "Who takes it tonight?" (the engine's "winner" call, Maxim 02.11): two team tiles, a dot in the team colour, the nickname in the display face, "at home" or
   "on the road"; after your pick the room's share under the name and a bar in the team colour along the bottom edge. */
.l-call-opts.is-teams button{position:relative;display:grid;justify-content:stretch;justify-items:start;align-content:start;gap:var(--space-1);min-height:calc(2 * var(--size-tap));padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);overflow:hidden;text-align:left}
.l-call-dot{width:var(--space-4);height:var(--space-4);border-radius:var(--radius-pill);background:var(--team,var(--muted))}
.l-call-team{font-family:var(--font-display);font-size:var(--size-h3);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);line-height:var(--font-display-line-height)}
.l-call-opts.is-teams small{font-weight:var(--weight-medium);opacity:var(--state-dim)}
.l-call-bar{position:absolute;left:0;bottom:0;width:var(--v,0%);height:var(--space-1);background:var(--team,var(--muted));transition:width var(--motion-slow) var(--motion-ease-out)}
@media (prefers-reduced-motion:reduce){.l-call-bar{transition:none}}
/* Loge's own pick (Maxim 05.11: "the AI bets and votes too" must read at a glance): the option it picked carries the loge
   sticker mark and stays at full strength when the call is closed; under the options a line "loge picks Yes" in body ink.
   Shown only after your pick or once the call closes, so Loge never leads you. */
.l-call-opts button.is-loge{opacity:1}
.l-call-opts button .l-lm{margin-left:var(--space-1)}
.l-call-opts.is-teams button .l-lm{position:absolute;top:var(--space-2);right:var(--space-2);margin:0}
.l-call-loge{display:flex;align-items:center;gap:var(--space-2);margin:0;font-size:var(--size-small);font-weight:var(--weight-heavy);color:var(--text)}
.l-poll-status,.l-result{display:flex;justify-content:space-between;gap:var(--space-3);margin-top:var(--space-2);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
.l-result b{color:var(--text);font-weight:var(--weight-heavy)}

/* ---------- Loge's cards (old class names, v3 look) ---------- */
/* .l-stat, .l-moment, .l-call: a quiet card by default (raised bubble), a sticker with .is-sticker. */
.l-moment,.l-call,.l-stat{align-self:stretch;display:grid;gap:var(--space-3);padding:var(--space-3) var(--space-4);border:var(--border-hairline) solid transparent;border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) var(--radius-xs);background:var(--bubble);color:var(--text)}
.l-moment.is-sticker,.l-call.is-sticker,.l-stat.is-sticker{border-radius:var(--radius-sticker)}
/* The hook (D-114): a headline with the whole thought behind More; a small chart (.l-bars); a moment; a call. */
.l-head{display:block}
.l-bars{display:grid;grid-template-columns:max-content 1fr max-content;align-items:center;gap:var(--space-3);margin-top:var(--space-2);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-semibold);line-height:var(--line-height-snug);color:var(--text-2)}
.l-bar{display:contents}
.l-bar i{display:block;height:var(--space-2);border-radius:var(--radius-pill);background:var(--surface-2);overflow:hidden}
.l-bar b{display:block;width:var(--v,0);height:100%;border-radius:inherit;background:var(--c,var(--text-2))}
.l-bar span:last-child{text-align:right;color:var(--text);font-size:var(--size-body);font-weight:var(--weight-heavy);font-variant-numeric:tabular-nums}
.l-bar.is-me span{color:var(--text)}
.l-bar.is-me b{background:var(--accent)}
/* A card's one sentence in words (D-126). */
.l-say{margin:0;font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-semibold);line-height:var(--line-height-read);color:var(--text)}
.l-moment canvas{display:block;width:100%;height:calc(var(--size-tap) * 2)}
.l-moment p:not(.l-stat-head):not(.l-say){margin:0;font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-medium);line-height:var(--line-height-read);color:var(--text)}
.l-moment .l-moment-story{font-size:var(--size-body);font-weight:var(--weight-bold);line-height:var(--line-height-snug);color:var(--text)}
.l-moment.is-hot{border-color:transparent}
.l-moment .l-stat-fig,.l-stat-fig.is-row{min-height:0}
/* each side's biggest lead: a big number in the numeral face with its words under it */
.l-leads{display:flex;gap:var(--space-2) var(--space-6);flex-wrap:wrap;align-items:end}
.l-leads > .l-label{flex-basis:100%}
/* lego blocks (D-363): stretches as tiles in the winner's ground (--gh/--ga from grounds()), context chips in a row */
.l-tiles{display:grid;grid-template-columns:max-content repeat(4,1fr);gap:var(--space-1);align-items:center}
.l-tiles > span{padding-right:var(--space-2);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-semibold);color:var(--text-2)}
.l-tiles > i{padding:var(--space-2) 0;border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text-2);font-style:normal;text-align:center;font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);font-size:var(--size-body);font-variant-numeric:tabular-nums}
.l-tiles > i.is-h{background:var(--gh);color:var(--oh)}
.l-tiles > i.is-a{background:var(--ga);color:var(--oa)}
.l-chips{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4)}
.l-leads span:not(.l-label){display:grid;gap:var(--space-1);font-family:var(--font-ui);font-size:var(--size-small);color:var(--text-2)}
.l-leads b{font-family:var(--font-num);font-size:var(--size-stat);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);letter-spacing:var(--font-num-tracking);line-height:var(--font-num-line-height);font-variation-settings:var(--font-num-variation);color:var(--c,var(--num))}
.l-call{gap:var(--space-2)}
/* Time to vote (Maxim 07.11): the count in the card's top corner, a bar under it that drains to the close. */
.l-call-top{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3)}
.l-call-left{flex:none;font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);font-size:var(--size-h3);line-height:var(--line-height-none);font-variant-numeric:tabular-nums;color:var(--text)}
.l-call-time{display:block;height:var(--space-1);border-radius:var(--radius-pill);background:var(--line);overflow:hidden}
.l-call-time::before{content:"";display:block;width:var(--left,100%);height:100%;border-radius:inherit;background:var(--accent);transition:width var(--motion-slow) linear}
.is-sticker .l-call-time{background:var(--tint-quote-sticker)}
@media (prefers-reduced-motion:reduce){.l-call-time::before{transition:none}}
/* A stat card (D-116): the moment on top, the headline, the figure, the one line under it, and Share. */
.l-stat-top{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
.l-stat-top b{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--text);font-weight:var(--weight-heavy)}
.l-stat-who{display:inline-flex;flex-wrap:wrap;gap:var(--space-1) var(--space-3);min-width:0}
.l-stat-top > span:last-child{flex:none;white-space:nowrap}
.l-stat-top b i{width:var(--state-dot);height:var(--state-dot);border-radius:var(--radius-pill);background:var(--team,var(--muted))}
/* Every Loge headline looks the same: display face, 22 on a sticker, body size on a quiet card. */
.l-stat-head,.l-call-q,.l-head{margin:0;font-family:var(--font-display);font-size:var(--size-body);font-weight:var(--font-display-weight);font-stretch:var(--width-body);text-transform:var(--font-display-transform);letter-spacing:var(--tracking-none);line-height:var(--line-height-title);color:var(--text)}
.is-sticker :is(.l-stat-head,.l-call-q){font-size:var(--size-h3);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);line-height:var(--font-display-line-height)}
.l-stat-fig{display:grid;place-items:center;min-height:calc(var(--size-tap) * 2)}
.l-stat-fig svg,.l-stat-fig canvas{display:block;width:100%;height:auto;max-height:calc(var(--size-tap) * 5)}
.l-stat-fig canvas{height:calc(var(--size-tap) * 2)}
.l-stat p{margin:0;font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-medium);line-height:var(--line-height-read);color:var(--text)}
.l-stat-share{display:inline-grid;place-items:center;width:var(--size-tap);height:var(--size-tap);margin:calc(-1 * var(--space-2)) 0;padding:0;border:0;border-radius:var(--radius-pill);background:none;color:var(--text-2);cursor:pointer}
@media (hover:hover){.l-stat-share:hover{background:var(--tint-press);color:var(--text)}}
.l-stat-share svg{width:var(--size-icon);height:var(--size-icon)}

/* sticker and quiet, after the card rules so they win */
.l-sticker,:is(.l-loge,.l-moment,.l-call,.l-stat,.l-beat).is-sticker{background:var(--sticker);color:var(--on-sticker);border-color:transparent;border-radius:var(--radius-sticker);box-shadow:var(--shadow-sticker);transform:rotate(var(--rot,0deg));
  --text:var(--on-sticker);--text-2:var(--on-sticker-2);--muted:var(--on-sticker-2);--placeholder:var(--on-sticker-2);--num:var(--on-sticker);--accent:var(--on-sticker);--accent-hi:var(--on-sticker);--on-accent:var(--sticker);--line:var(--on-sticker-2);--line-strong:var(--on-sticker);--surface-2:var(--tint-quote-sticker);--pen:var(--on-sticker);--c:var(--on-sticker);--name:var(--on-sticker)}
:is(.l-loge,.l-moment,.l-call,.l-stat,.l-beat).is-quiet{background:var(--bubble);color:var(--text);border-color:transparent;border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) var(--radius-xs);box-shadow:none;transform:none;--pen:var(--accent);--num:var(--text)}
.l-stat-fig.is-big{display:block;min-height:0}
.is-quiet .l-big{font-size:var(--size-stat);color:var(--text)}
.is-quiet .l-stat-fig.is-big + .l-say{color:var(--text-2)}
.is-quiet .l-badges b{background:var(--surface-2);color:var(--text)}

/* ---------- reactions ---------- */
/* Under any bubble or card: emoji with counts (yours outlined in white), add-a-reaction, and for Loge the meta (the
   small "loge" chip under a sticker, the time) with Share at the right end of the same row. 28px chips, 44px hits. */
.l-react{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1)}
.l-react button:not(.l-react-add):not(.l-stat-share){position:relative;display:inline-flex;align-items:center;gap:var(--space-1);min-height:calc(var(--size-tap) - var(--space-4));padding:var(--space-half) var(--space-2);border:var(--border-hairline) solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);font-variant-numeric:tabular-nums;cursor:pointer;transition:transform var(--motion-press) var(--motion-ease-out)}
.l-react button:not(.l-react-add):not(.l-stat-share)::after{content:"";position:absolute;inset:calc(-1 * var(--space-2)) calc(-1 * var(--space-half))}
.l-react button:not(.l-react-add):not(.l-stat-share):active{transform:scale(var(--motion-press-scale))}
.l-react button[aria-pressed="true"]:not(.l-react-add):not(.l-stat-share){border-color:var(--accent);background:var(--surface-2)}
.l-react .l-stat-share{margin:0 0 0 auto}
/* Add a reaction and Share (Maxim 07.11: "small and ugly"): round chips on the card's second surface, a bold glyph,
   both the same size; on a sticker the chip is the ink's shade. Share stays in the card's right corner even when a
   pen mark widens the right margin (.l-pen-r). */
.l-react :is(.l-react-add,.l-stat-share){width:calc(var(--size-tap) - var(--space-2));height:calc(var(--size-tap) - var(--space-2));min-height:0;background:var(--surface-2);color:var(--text)}
.l-react :is(.l-react-add,.l-stat-share) svg{width:var(--size-h3);height:var(--size-h3);stroke-width:calc(var(--border-strong) * 1.15)}
.is-sticker .l-react :is(.l-react-add,.l-stat-share){background:var(--tint-quote-sticker);color:var(--on-sticker)}
.is-sticker .l-react button:not(.l-react-add):not(.l-stat-share){border-color:transparent;background:var(--tint-quote-sticker)}
.is-sticker .l-react button[aria-pressed="true"]:not(.l-react-add):not(.l-stat-share){border-color:var(--on-sticker)}
.l-pen-r > .l-react{margin-right:calc(var(--space-4) - var(--pen-pad-right))}
.l-react b{font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text)}
.l-react .l-e{font-family:var(--font-emoji);font-size:var(--size-small);line-height:var(--line-height-none)}
.l-react-meta{display:inline-flex;align-items:center;gap:var(--space-1);margin-right:var(--space-half);font-size:var(--size-label);font-weight:var(--weight-semibold);color:var(--text-2);font-variant-numeric:tabular-nums}
.l-react-add{display:grid;place-items:center;width:var(--size-tap);min-height:calc(var(--size-tap) - var(--space-4));padding:0;border:0;border-radius:var(--radius-pill);background:none;color:var(--text-2);cursor:pointer}
@media (hover:hover){.l-react-add:hover{background:var(--surface-2);color:var(--text)}}
.l-react-add:focus-visible{background:var(--surface-2);color:var(--text)}
.l-react-add svg{width:var(--size-icon);height:var(--size-icon)}
@media (prefers-reduced-motion:reduce){.l-react button{transition:none!important}}
/* Message menu: six quick reactions and the any-emoji button, one row of equal round buttons. */
.l-react-quick{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--space-2);margin-bottom:var(--space-3)}
.l-react-quick button,.l-react-quick .l-react-add{justify-content:center;border:var(--border-hairline) solid var(--line);background:var(--surface-2);width:auto;aspect-ratio:1;padding:0;font-family:var(--font-emoji);font-size:var(--size-h3)}
/* reactions on a person's message: counts only */
.l-bubble-react{display:flex;flex-wrap:wrap;gap:var(--space-1);margin-top:var(--space-2)}
.l-bubble-react span{display:inline-flex;align-items:center;gap:var(--space-1);padding:0 var(--space-2);border:var(--border-hairline) solid var(--line);border-radius:var(--radius-pill);background:var(--surface);font-size:var(--size-label)}
.l-bubble-react span.is-mine{border-color:var(--accent)}
.l-bubble-me .l-bubble-react span{--text:var(--on-field);color:var(--on-field)}
.l-bubble-react b{font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}

/* ---------- composer ---------- */
/* A pill: @Loge on the left (off by default: a Loge question costs a question and money; a tap fills it, sending turns
   it off; it shows the questions left), the field, and Send (inactive while the field is empty, white with text). */
.l-composer{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-1) var(--space-1) var(--space-2);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface)}
.l-composer:has(:is(input,textarea):focus-visible){outline:var(--border-strong) solid var(--accent);outline-offset:var(--space-half)}
.l-composer :is(input,textarea){flex:1;min-width:0;padding:var(--space-2) var(--space-1);border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:var(--size-body)}
.l-composer :is(input,textarea)::placeholder{color:var(--placeholder)}
.l-ask{position:relative;display:inline-flex;align-items:baseline;gap:var(--space-1);min-height:calc(var(--size-tap) - var(--space-2));padding:var(--space-2) var(--space-3);border:var(--border-mid) solid var(--sticker);border-radius:var(--radius-pill);background:none;color:var(--sticker);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-heavy);white-space:nowrap;cursor:pointer;isolation:isolate;transition:color var(--motion-press) var(--motion-ease-out)}
.l-ask::before{content:"";position:absolute;inset:calc(-1 * var(--border-mid));z-index:-1;border-radius:inherit;background:var(--sticker);opacity:0;transition:opacity var(--motion-press) var(--motion-ease-out)}
.l-ask[aria-pressed="true"]{color:var(--on-sticker);border-color:transparent}
.l-ask[aria-pressed="true"]::before{opacity:1}
.l-ask .l-q{font-size:var(--size-label);font-weight:var(--weight-heavy);opacity:.8}
.l-ask[data-out="true"]{border-color:var(--line-strong);color:var(--text-2)}
@media (prefers-reduced-motion:reduce){.l-ask,.l-ask::before{transition:none}}
/* The old composer (a field that grows with the text) keeps its name and takes the same pill. */
.l-compose{position:relative;display:flex;align-items:flex-end;gap:var(--space-2);flex:1 1 0;min-width:0;padding:var(--space-1) var(--space-1) var(--space-1) var(--space-4);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-bubble);background:var(--surface)}
.l-compose:focus-within{outline:var(--border-strong) solid var(--accent);outline-offset:var(--space-half)}
.l-compose textarea{display:block;flex:1 1 0;width:0;min-width:0;max-height:calc(var(--size-tap) * 3);margin:0;padding:var(--space-2) 0;border:0;outline:0;resize:none;overflow-y:auto;field-sizing:content;background:none;color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);line-height:var(--line-height-body);text-indent:var(--at-indent,0)}
.l-compose textarea::placeholder{color:var(--placeholder)}
.l-send{position:relative;display:grid;place-items:center;flex:none;width:calc(var(--size-tap) - var(--space-1));height:calc(var(--size-tap) - var(--space-1));padding:0;border:var(--border-hairline) solid transparent;border-radius:var(--radius-pill);background:var(--accent);color:var(--on-accent);cursor:pointer;transition:background-color var(--motion-press) var(--motion-ease-out),color var(--motion-press) var(--motion-ease-out),transform var(--motion-press) var(--motion-ease-out)}
.l-send:active{transform:scale(var(--motion-press-scale-small))}
/* The arrow while the code is on its way (bot check, then the send): the icon gives way to a small spinner. */
.l-send[aria-busy="true"]{pointer-events:none}
.l-send[aria-busy="true"] svg{opacity:0}
.l-send[aria-busy="true"]::after{content:"";position:absolute;inset:0;margin:auto;width:var(--size-small);height:var(--size-small);border:var(--border-strong) solid currentColor;border-top-color:transparent;border-radius:var(--radius-pill);animation:l-spin var(--motion-print) linear infinite}
@media (prefers-reduced-motion:reduce){.l-send[aria-busy="true"]::after{animation:none}}
.l-send:disabled,.l-send[aria-disabled="true"],.l-compose.is-empty .l-send{background:none;border-color:var(--line-strong);color:var(--text-2);cursor:default;transform:none}
.l-send svg{width:var(--size-icon);height:var(--size-icon)}
/* A mention: @Loge is one colour everywhere, sticker with ink. */
.l-at{padding:0 var(--space-1) var(--space-half);border-radius:var(--radius-xs);background:var(--sticker);color:var(--on-sticker);font-weight:var(--weight-heavy)}
.l-compose .l-at{position:absolute;left:var(--space-3);top:calc(var(--space-3) + var(--space-half));padding:var(--space-half) var(--space-2);border-radius:var(--radius-pill);font-size:var(--size-small);line-height:var(--line-height-body)}
/* "Want Loge's answer? Start with @Loge" (Maxim 27.11): a note over the composer after a question sent without @Loge */
.l-atip{display:flex;align-items:center;gap:var(--space-3);padding:var(--space-1) var(--space-1) var(--space-1) var(--space-3);border:var(--border-hairline) solid var(--line);border-radius:var(--radius-md);background:var(--surface);font-family:var(--font-ui);font-size:var(--size-small);line-height:var(--line-height-body);color:var(--text-2)}
.l-atip[hidden]{display:none}
.l-atip p{flex:1;margin:0;min-width:0}
.l-atip .l-at{display:inline-block}
.l-atip-mark{flex:none;width:var(--size-avatar);height:var(--size-avatar);overflow:visible;fill:var(--sticker)}
.l-atip-go{flex:none;min-height:var(--size-tap);padding:0 var(--space-3);border:0;border-radius:var(--radius-pill);background:var(--sticker);color:var(--on-sticker);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-heavy);white-space:nowrap;cursor:pointer;transition:transform var(--spring-snap-duration) var(--spring-snap)}
.l-atip-go:active{transform:scale(var(--motion-press-scale))}
.l-atip-x{flex:none;display:grid;place-items:center;width:var(--size-tap);height:var(--size-tap);padding:0;border:0;background:none;color:var(--muted);cursor:pointer}
.l-atip-x .ic{width:var(--size-icon);height:var(--size-icon)}
@media (hover:hover) and (pointer:fine){.l-atip-x:hover{color:var(--text)}}
@media (prefers-reduced-motion:reduce){.l-atip-go{transition:none}}
.l-suggest{display:grid;padding:var(--space-1);border:var(--border-hairline) solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.l-suggest button{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:var(--size-tap);padding:0 var(--space-3);border:0;border-radius:var(--radius-sm);background:none;color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);text-align:left;cursor:pointer}
.l-suggest button[aria-selected="true"]{background:var(--surface-2)}
@media (hover:hover) and (pointer:fine){.l-suggest button:hover{background:var(--surface-2)}}
.l-suggest svg{flex:none;width:var(--size-avatar);height:var(--size-avatar);overflow:visible}
.l-suggest .dot{fill:var(--sticker)}
.l-suggest .ghost{display:none}
.l-suggest b{font-weight:var(--weight-heavy)}
.l-suggest small{margin-left:auto;font-size:var(--size-small);color:var(--muted)}
/* "N new": the chat doesn't jump when you've scrolled up; a white pill says how many came. */
.l-newpill{position:absolute;left:50%;bottom:var(--space-8);z-index:3;padding:var(--space-2) var(--space-3);border:var(--border-hairline) solid transparent;border-radius:var(--radius-pill);background:var(--accent);color:var(--on-accent);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-heavy);box-shadow:var(--shadow-sticker);transform:translateX(-50%);cursor:pointer}

/* ---------- sheets ---------- */
/* A sheet from the bottom with a grab handle (it promises the drag): open on spring sheet, the scrim follows it. */
.l-scrim{position:fixed;inset:0;z-index:20;background:var(--scrim)}
.l-sheet{position:fixed;left:0;right:0;bottom:0;z-index:21;max-width:var(--layout-room);margin:0 auto;padding:var(--space-2) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;background:var(--surface);color:var(--text);box-shadow:var(--shadow-sheet);animation:l-sheet-in var(--spring-sheet-duration) var(--spring-sheet) both}
/* the grab and the title take the gesture from the browser, so the sheet follows the finger 1:1 (A3) */
.l-sheet-grab,.l-sheet-title{touch-action:none}
.l-sheet-grab{width:calc(var(--space-6) + var(--space-2));height:var(--space-1);margin:var(--space-half) auto var(--space-3);border-radius:var(--radius-pill);background:var(--line-strong)}
.l-sheet h2{margin:var(--space-3) 0 var(--space-1);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--text-2)}
.l-sheet-title{margin:var(--space-1) 0;font-family:var(--font-display);font-size:var(--size-body);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-tight)}
.l-sheet p{margin:0 0 var(--space-3);font-size:var(--size-small);color:var(--text-2)}
.l-sheet-acts{display:flex;gap:var(--space-2)}
/* A sheet about a game opens with its band (Maxim 07.11, design/sheets/ B): the two teams' grounds side by side (one for
   a team's sheet), a kicker and the display headline on them in the ink that reads on both (teams.mjs bandInks); the
   handle and the close button sit on the band. It bleeds to the sheet's edges and takes its top corners. */
/* Loge's note (D-311): Loge talks on its own yellow sheet, the voice of Loge (D-176). The mark and "Loge", a status chip
   on the right when something is on, a display headline, one line, then up to two actions in ink. The room before
   tip-off says with it when the pregame starts. */
/* Two grounds (D-312, Maxim 08.11 "очень красиво, все берем"): a box-score comparison as the two teams' grounds side by
   side, the split is the numbers, each number big on its own ground; the side that loses a row goes grey. Rows stack
   with a hairline gap; a label row over a block names it and who it went to; the key row is taller. Used by the stat
   cards box_* and the Stats sheet. On arrival the grounds grow out of the seam on the move spring, row by row (poster.mjs play). --gh/--oh home ground and ink on it, --ga/--oa the away team's. */
.l-split{display:grid;gap:var(--space-half);border-radius:var(--radius-md);overflow:hidden}
.l-split-lab{display:flex;justify-content:space-between;gap:var(--space-2);padding:var(--space-2) 0 var(--space-1);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-heavy);color:var(--text)}
.l-split-lab span{color:var(--text-2);font-weight:var(--weight-bold);text-align:right}
.l-split-row{position:relative;display:flex;gap:var(--space-half);height:calc(var(--space-7) + var(--space-1));border-radius:var(--radius-xs);overflow:hidden}
.l-split-row > i{display:flex;align-items:center;min-width:0;padding:0 var(--space-3);font-style:normal;background:var(--gh);color:var(--oh)}
.l-split-row > i + i{justify-content:flex-end;text-align:right;background:var(--ga);color:var(--oa)}
.l-split-row > i.is-lose{background:var(--surface-2);color:var(--text-2)}
.l-split-row b{font-family:var(--font-num);font-size:var(--size-stat);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);letter-spacing:var(--font-num-tracking);line-height:var(--font-num-line-height);font-variation-settings:var(--font-num-variation)}
.l-split-row em{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:var(--space-1) var(--space-2);border-radius:var(--radius-pill);background:var(--bg);color:var(--text);font-style:normal;font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase;white-space:nowrap}
.l-split-row.is-key{height:calc(var(--space-9) + var(--space-2))}
.l-split-row.is-key b{font-size:var(--size-big)}
.l-split-who{display:grid;gap:var(--space-half);line-height:var(--line-height-tight)}
.l-split-who small{font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.l-split-tot{display:flex;justify-content:space-between;align-items:end;gap:var(--space-3)}
.l-split-tot div{display:grid;gap:var(--space-1)}.l-split-tot div:last-child{text-align:right}
.l-split-tot b{font-family:var(--font-num);font-size:var(--size-big);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);letter-spacing:var(--font-num-tracking);line-height:var(--font-num-line-height)}
.l-split-tot small{font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);color:var(--text-2)}
.l-split-key{display:flex;justify-content:space-between;font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);color:var(--text-2)}
.l-split-key i{display:inline-block;width:var(--space-3);height:var(--space-3);margin-right:var(--space-1);border-radius:var(--radius-xs);vertical-align:calc(-1 * var(--space-half))}
.l-note{display:grid;gap:var(--space-3);padding:var(--space-4);border-radius:var(--radius-card);background:var(--sticker);color:var(--on-sticker)}
.l-note-who{display:flex;align-items:center;gap:var(--space-2);min-height:var(--space-5);font-size:var(--size-small);font-weight:var(--weight-heavy)}
.l-note-mk{position:relative;flex:none;width:var(--space-4);height:var(--space-4)}
.l-note-mk i{position:absolute;width:var(--space-2);height:var(--space-2);border-radius:var(--radius-pill);background:currentColor}
.l-note-mk i:first-child{top:0;right:0}.l-note-mk i:last-child{bottom:0;left:0}
.l-note-chip{display:inline-flex;align-items:center;gap:var(--space-1);margin-left:auto;padding:var(--space-half) var(--space-2);border-radius:var(--radius-pill);background:var(--on-sticker);color:var(--sticker);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase;white-space:nowrap}
.l-note-chip[hidden]{display:none}
.l-note-chip i{width:var(--space-1);height:var(--space-1);border-radius:var(--radius-pill);background:currentColor;animation:l-pulse var(--motion-pulse) var(--motion-ease-in-out) infinite}
.l-note-chip.is-new{animation:l-note-pop var(--spring-snap-duration) var(--spring-snap) both}
@keyframes l-note-pop{from{transform:scale(var(--motion-enter-scale));opacity:0}}
.l-note-chip.is-soft{background:none;color:var(--on-sticker-2);padding:0;letter-spacing:var(--tracking-none);text-transform:none;font-size:var(--size-small)}
.l-note h2{margin:0;font-family:var(--font-display);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);font-size:var(--size-h2);line-height:var(--line-height-title)}
.l-note p{margin:0;font-size:var(--size-body);font-weight:var(--weight-semibold);line-height:var(--line-height-snug);color:var(--on-sticker-2)}
.l-note-acts{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-2)}
.l-note-acts .l-btn{width:100%;min-height:calc(var(--size-tap) + var(--space-2))}
.l-note-acts .l-btn[hidden]{display:none}
.l-note-go{background:var(--on-sticker);color:var(--sticker)}
.l-note-alt{background:none;color:var(--on-sticker);border:var(--border-strong) solid var(--on-sticker)}
@media (prefers-reduced-motion:reduce){.l-note-chip i,.l-note-chip.is-new{animation:none}}
.l-sheet-band{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:var(--space-half);min-height:calc(var(--space-10) + var(--space-5));margin:calc(-1 * var(--space-2)) calc(-1 * var(--layout-gutter)) 0;border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;overflow:hidden;background:var(--surface);color:var(--on, var(--text));touch-action:none}
.l-sheet-band[hidden]{display:none}
.l-sheet-band > i{display:block;background:var(--g)}
.l-sheet-band > small{position:absolute;left:var(--layout-gutter);top:var(--space-6);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase}
.l-sheet-band > :is(h2,p){position:absolute;left:var(--layout-gutter);right:calc(var(--layout-gutter) + var(--size-tap));bottom:var(--space-3);margin:0;font-family:var(--font-display);font-size:var(--size-h1);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);line-height:var(--line-height-num);color:inherit;overflow-wrap:anywhere}
.l-sheet-band > button{position:absolute;top:var(--space-4);right:var(--space-3);background:var(--shade);color:inherit}
:has(> .l-sheet-band:not([hidden])) > .l-sheet-grab{position:absolute;top:var(--space-2);left:50%;z-index:1;margin:0;transform:translateX(-50%);background:var(--shade)}
@keyframes l-sheet-in{from{transform:translateY(100%)}}
@media (prefers-reduced-motion:reduce){.l-sheet{animation:l-fade var(--motion-reduce) var(--motion-ease-out) both}}
@keyframes l-fade{from{opacity:0}}

/* ---------- hold: the long-press menu on a message (D-159, Maxim 30.10 18:42) ---------- */
/* Held 350 ms (motion.holdDelay) on a bubble or a Loge line: the room dims, the message lifts (motion.holdLift, the
   sticker's shadow), reactions grow over it from the finger, the menu opens under it. The finger slides along the
   reactions (the one under it jumps to motion.pickScale, white: it is the viewer's pick) and lets go to pick; let go
   elsewhere and the menu stays for a tap. «Ask Loge about this» is Loge's own action, in the sticker colour. Context
   menu key, Shift+F10 or the «More actions» button (shown on focus) open the same menu from the keyboard. */
.l-hold{position:fixed;inset:0;z-index:30;background:var(--scrim);-webkit-backdrop-filter:blur(var(--shape-blur));backdrop-filter:blur(var(--shape-blur));-webkit-user-select:none;user-select:none;touch-action:none}
.l-hold-lift{position:fixed;z-index:1;margin:0;box-shadow:var(--shadow-sticker);pointer-events:none}
.l-hold-react,.l-hold-menu{position:fixed;z-index:2;background:var(--surface-2);box-shadow:var(--shadow-sheet)}
.l-hold-react{display:flex;gap:var(--space-1);max-width:calc(100vw - 2 * var(--layout-gutter));padding:var(--space-1);border-radius:var(--radius-pill)}
.l-hold-react button{position:relative;display:grid;place-items:center;flex:1 1 0;min-width:0;max-width:var(--size-tap);width:var(--size-tap);aspect-ratio:1;height:auto;padding:0;border:0;border-radius:var(--radius-pill);background:none;color:var(--text);font-family:var(--font-emoji);font-size:var(--size-h3);line-height:var(--line-height-none);cursor:pointer;transition:transform var(--spring-snap-duration) var(--spring-snap),background-color var(--motion-fast) var(--motion-ease-out)}
.l-hold-react button[aria-pressed="true"]{background:var(--tint-quote)}
.l-hold-react button:is(.is-pick,:focus-visible){z-index:1;background:var(--accent);transform:scale(var(--motion-pick-scale));outline:0}
.l-hold-react button.is-pick[data-name]::after{content:attr(data-name);position:absolute;bottom:calc(100% + var(--space-1));left:50%;padding:var(--space-half) var(--space-2);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--text);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);white-space:nowrap;transform:translateX(-50%) scale(calc(1 / var(--motion-pick-scale)));transform-origin:50% 100%}
.l-hold-react svg{width:var(--size-h3);height:var(--size-h3);fill:none;stroke:currentColor;stroke-width:var(--border-strong);stroke-linecap:round;stroke-linejoin:round}
.l-hold-react button.is-pick svg,.l-hold-react button:focus-visible svg{color:var(--on-accent)}
.l-hold-menu{display:grid;min-width:calc(var(--size-tap) * 5);border-radius:var(--radius-card);overflow:hidden}
.l-hold-item{display:flex;align-items:center;justify-content:space-between;gap:var(--space-5);min-height:var(--size-tap);padding:var(--space-2) var(--space-4);border:0;border-bottom:var(--border-hairline) solid var(--line);background:none;color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-semibold);text-align:left;cursor:pointer;transition:background-color var(--motion-fast) var(--motion-ease-out)}
.l-hold-item:last-child{border-bottom:0}
.l-hold-item:is(.is-pick,:active,:focus-visible){background:var(--line);outline:0}
.l-hold-item.is-loge{color:var(--sticker)}
.l-hold-item.is-dim{color:var(--text-2)}
.l-hold-item.is-bad{color:var(--danger)}
.l-hold-item svg{flex:none;width:var(--size-icon);height:var(--size-icon);fill:none;stroke:currentColor;stroke-width:var(--border-strong);stroke-linecap:round;stroke-linejoin:round}
.l-hold-item b{flex:none;font-weight:var(--weight-heavy)}
/* the keyboard's way in: hidden until it has focus */
.l-hold-key{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;padding:0;border:0}
.l-hold-key:focus-visible{position:static;display:inline-flex;width:auto;height:auto;margin-top:var(--space-2);overflow:visible;clip:auto;padding:var(--space-1) var(--space-3);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--text);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);outline:var(--border-strong) solid var(--accent)}
/* on a phone the long press is the menu's, not the browser's: no callout, no selection (Copy is in the menu) */
@media (pointer:coarse){[data-hold]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}[data-hold] :is(p,span,blockquote,em,b){-webkit-user-select:none;user-select:none}}
@media (prefers-reduced-motion:reduce){.l-hold-react button,.l-hold-item{transition:none}.l-hold-react button:is(.is-pick,:focus-visible){transform:none}}
/* kit only: the menu laid out in place */
.l-hold.is-demo{position:relative;inset:auto;display:grid;gap:var(--space-2);justify-items:start;padding:var(--space-6) var(--space-4) var(--space-4);border-radius:var(--radius-card)}
.l-hold.is-demo > *{position:static}

/* ---------- pen marks ---------- */
/* Hand-drawn marks over Loge's words (the margin, an underline, a circle around a number). The SVG layer sits over its
   line; ink is the sticker ink on a sticker and W1 white on a quiet bubble (D-159: never muted, never yellow). A line with a margin mark keeps room
   on the right (.l-pen-r), a corner word on top (.l-pen-t), a crown or hat over its word (.l-pen-above). Marks on the
   margin are 1.7× (cell 26×30 → 44×51), corner words 1.45×, crown and hat 1.5×; marks tied to text are drawn 1.6× heavier. */
.l-ink{position:absolute;left:0;top:0;z-index:2;overflow:visible;pointer-events:none}
.l-ink > path{fill:var(--pen)}
.l-has-ink{position:relative}
.l-mk{position:relative}
.l-pen-r{padding-right:var(--pen-pad-right);min-height:var(--pen-min-height)}
.l-pen-t{padding-top:var(--pen-pad-top)}
.l-pen-above{padding-top:var(--pen-pad-above)}
/* the drawing itself runs in pen.mjs (drawMark): strokes in order, tokens.pen.draw / drawMargin, after the card settles
   and is in view (D-159); reduced motion fades the mark in */

/* ---------- states ---------- */
/* offline: a slim line under the header; reconnecting pulses its dot three times, then the dot stays lit */
.l-netline{display:flex;align-items:center;justify-content:center;gap:var(--space-1);min-height:var(--state-net-h);border-block:var(--border-hairline) solid var(--line-strong);background:var(--surface);color:var(--text-2);font-size:var(--size-label);font-weight:var(--weight-bold)}
.l-netline i{width:var(--state-dot);height:var(--state-dot);border-radius:var(--radius-pill);background:var(--text-2)}
.l-netline.is-reconnecting i{animation:l-pulse var(--motion-print) ease-in-out 3}
@keyframes l-pulse{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.l-netline i{animation:none}}
/* first visit: one coach mark (white, with a tip) */
.l-coach{position:relative;display:flex;align-items:center;gap:var(--space-1);padding:var(--space-2) var(--space-1) var(--space-2) var(--space-3);border-radius:var(--radius-chip);background:var(--text);color:var(--bg);box-shadow:var(--shadow-sticker)}
.l-coach::before{content:"";position:absolute;top:calc(var(--state-coach-tip) * -1);left:var(--space-5);border:var(--state-coach-tip) solid transparent;border-top:0;border-bottom-color:var(--text)}
.l-coach p{flex:1;margin:0;font-size:var(--size-small);font-weight:var(--weight-bold);line-height:var(--line-height-snug)}
.l-coach button{flex:none;width:var(--size-tap);height:var(--size-tap);margin:calc(-1 * var(--space-2)) 0;border:0;background:none;color:var(--bg);font-size:var(--size-h3);font-weight:var(--weight-bold);line-height:var(--line-height-none);cursor:pointer}
/* the highlight after a jump to a quoted message: its own layer, only opacity moves (hold 500, fade 400) */
.l-hl{position:absolute;inset:calc(-1 * var(--space-1));border-radius:var(--radius-sheet);box-shadow:var(--shadow-ring);opacity:0;pointer-events:none}
.l-hl.is-on{opacity:1;transition:opacity var(--motion-fade-out) var(--motion-ease-out) var(--motion-hold)}

/* ---------- old surfaces that keep their class names ---------- */
/* break show (D-124): the parts stand apart with a lot of air, held together by one strong line on the left (not
   yellow: a break is not a moment, D-159) */
.l-show{align-self:stretch;display:grid;gap:var(--space-7);margin:var(--space-5) 0;padding:0 0 0 var(--space-4);border-left:var(--border-strong) solid var(--line-strong)}
.l-show > .l-stat-top b i{background:var(--text-2)}
.l-show-main{display:grid;gap:var(--space-4);padding:var(--space-4);border:var(--border-hairline) solid transparent;border-radius:var(--radius-card);background:var(--surface)}
.l-show-cap{font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--text-2)}
.l-show-slide{display:grid;gap:var(--space-3);align-content:start}
.l-show-swipe{display:grid;gap:var(--space-3)}
.l-show-cards{display:grid;grid-auto-flow:column;grid-auto-columns:100%;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.l-show-cards::-webkit-scrollbar{display:none}
.l-show-cards > .l-show-slide{scroll-snap-align:start}
.l-show-nav{display:flex;align-items:center;justify-content:space-between;font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
.l-show-arrows{display:flex;gap:var(--space-2)}
.l-show-arrows button{display:grid;place-items:center;width:var(--size-tap);height:var(--size-tap);padding:0;border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);cursor:pointer}
.l-show-arrows button:disabled{opacity:var(--state-dim);cursor:default}
.l-show-arrows svg{width:var(--size-icon);height:var(--size-icon)}
@media (pointer:coarse){.l-show-arrows{display:none}}
.l-show-take{margin:0;font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-medium);line-height:var(--line-height-read);color:var(--text)}
.l-show-main .l-more{justify-self:start;margin:calc(-1 * var(--space-2)) 0}
.l-show-poll .l-call{padding:0;border:0;border-radius:0;background:none}
.l-show-poll .l-call > .l-label:first-child{display:none}
.l-show-room{display:grid;gap:var(--space-7)}
.l-show-msg{display:grid;gap:var(--space-2);margin:0}
.l-show-msg blockquote{margin:0;font-family:var(--font-display);font-size:var(--size-h3);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);line-height:var(--line-height-snug);color:var(--text)}
.l-show-msg figcaption{display:flex;gap:var(--space-3);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
.l-show-msg figcaption b{color:var(--name);font-weight:var(--weight-heavy)}
.l-show-ad{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);font-family:var(--font-ui);font-size:var(--size-small);color:var(--text-2)}
.l-show-ad button{min-height:var(--size-tap);padding:0;border:0;background:none;font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-heavy);color:var(--accent);cursor:pointer}
/* Emoji picker, as the phone's own (D-126): search, recent, sections, a tab per section at the bottom. */
.l-emoji-pick{display:grid;gap:var(--space-2)}
.l-emoji-search{display:flex;align-items:center;gap:var(--space-2);min-height:var(--size-tap);padding:0 var(--space-3);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-sm);background:var(--bg);color:var(--text-2)}
.l-emoji-search:focus-within{border-color:var(--accent)}
.l-emoji-search svg{flex:none;width:var(--size-icon);height:var(--size-icon)}
.l-emoji-search input{flex:1;min-width:0;padding:0;border:0;background:none;color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);outline:0}
.l-emoji-body{position:relative;height:calc(var(--size-tap) * 7);overflow-y:auto;overscroll-behavior:contain}
.l-emoji-body h3{margin:var(--space-3) 0 var(--space-1);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--text-2)}
.l-emoji-body section:first-child h3{margin-top:0}
.l-emoji{display:grid;grid-template-columns:repeat(8,minmax(0,1fr))}
.l-emoji button{aspect-ratio:1;padding:0;border:0;border-radius:var(--radius-sm);background:none;font-family:var(--font-emoji);font-size:var(--size-score);line-height:var(--line-height-none);cursor:pointer}
.l-emoji button:focus-visible,.l-emoji button:active{background:var(--surface-2)}
@media (hover:hover) and (pointer:fine){.l-emoji button:hover{background:var(--surface-2)}}
.l-emoji-none{margin:var(--space-4) 0;text-align:center;color:var(--text-2);font-size:var(--size-small)}
.l-emoji-tabs{display:flex;padding-top:var(--space-2);border-top:var(--border-hairline) solid var(--line-strong)}
.l-emoji-tabs button{flex:1;min-height:var(--size-tap);padding:0;border:0;border-radius:var(--radius-sm);background:none;font-size:var(--size-body);filter:grayscale(1);opacity:.5;cursor:pointer}
.l-emoji-tabs button[aria-current]{background:var(--surface-2);filter:none;opacity:1}
/* a Loge line the viewer heard in another game (D-125): one quiet row, open on a tap */
.l-heard{align-self:flex-start;display:grid;justify-items:start;gap:var(--space-1);padding:var(--space-2) var(--space-3);border:var(--border-hairline) dashed var(--line);border-radius:var(--radius-bubble);background:none;font-family:var(--font-ui);font-size:var(--size-small);color:var(--text-2);text-align:left;cursor:pointer}
.l-heard .l-who{margin:0}
.l-heard .l-more{margin:0;min-height:0}
/* what Loge remembers (D-125) */
.l-mem{display:grid;grid-template-columns:auto 1fr;gap:var(--space-3) var(--space-4);align-items:center;margin:0 0 var(--space-3)}
.l-mem dt{font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-medium);color:var(--text-2)}
.l-mem dd{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:0;font-family:var(--font-ui);font-size:var(--size-body);color:var(--text)}
.l-mem-x{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--size-tap);padding:0 var(--space-3);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);cursor:pointer}
.l-mem-x svg{width:var(--size-icon);height:var(--size-icon);color:var(--text-2)}
/* the memory screen (design/memory/1, Maxim 04.11): sections, rows with one action on the right, add line, notes */
.l-mem-sec{margin:var(--space-4) 0 0;color:var(--text-2);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);text-transform:uppercase;letter-spacing:var(--tracking-label)}
.l-mem-row{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:var(--size-tap);padding:var(--space-2) 0;border:0;border-bottom:var(--border-hairline) solid var(--line);background:none;color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);text-align:left}
button.l-mem-row{cursor:pointer}
.l-mem-row > *{min-width:0}
.l-mem-tx{flex:1;line-height:var(--line-height-snug)}
.l-mem-tx small{display:block;margin-top:var(--space-half);color:var(--text-2);font-size:var(--size-small)}
.l-mem-chips{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.l-mem-none{color:var(--text-2)}
.l-mem-side{display:flex;align-items:center;gap:var(--space-3)}
.l-mem-act{flex:none;display:inline-flex;align-items:center;min-height:var(--size-tap);padding:0;border:0;background:none;color:var(--text-2);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);cursor:pointer}
.l-mem-act svg{width:var(--size-icon);height:var(--size-icon)}
.l-mem-add{display:flex;align-items:center;gap:var(--space-2);width:100%;min-height:var(--size-tap);padding:0;border:0;background:none;color:var(--accent);font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-bold);cursor:pointer}
.l-mem-add svg{width:var(--size-icon);height:var(--size-icon)}
.l-mem-area{width:100%;min-height:calc(var(--size-tap) * 2.4);padding:var(--space-3) var(--space-4);border:var(--border-hairline) solid var(--text);border-radius:var(--radius-lg);background:var(--bg);color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);line-height:var(--line-height-body);resize:none}
.l-mem-cnt{display:flex;justify-content:space-between;gap:var(--space-3);margin:var(--space-1) 0 0;color:var(--text-2);font-size:var(--size-small);line-height:var(--line-height-snug)}
.l-mem-cnt.is-bad > :first-child{color:var(--danger);font-weight:var(--weight-semibold)}
.l-mem-cnt > :last-child{flex:none;font-variant-numeric:tabular-nums}
.l-mem-empty{display:flex;align-items:flex-start;gap:var(--space-2);margin:var(--space-2) 0}
.l-mem-mark{flex:none;width:var(--size-avatar);height:var(--size-avatar);border-radius:var(--radius-pill);background:var(--bg) url(/app/mark.svg) center/55% no-repeat}
.l-mem-undo{justify-self:center;display:block;margin:0 auto var(--space-2);padding:var(--space-2) var(--space-4);border:0;border-radius:var(--radius-pill);background:var(--text);color:var(--bg);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);cursor:pointer}
.l-mem-link{padding:0;border:0;background:none;color:var(--text);font:inherit;text-decoration:underline;text-underline-offset:var(--space-half);cursor:pointer}
.l-btn.is-bad{color:var(--danger)}
/* The camera in the room (D-126, D-122): the TV through the phone, a frame for the scoreboard, one card at the bottom.
   data-state: aim (the frame breathes), read (it scans), pause (white corners), miss (sticker), done. */
.l-cam{position:fixed;inset:0;z-index:20;overflow:hidden;background:var(--bg)}
.l-cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.l-cam-frame{position:absolute;left:50%;top:44%;width:min(calc(100vw - 2 * var(--space-6)),calc(56dvh * 16 / 9));aspect-ratio:16/9;transform:translate(-50%,-50%);border-radius:var(--radius-md);outline:100vmax solid color-mix(in srgb,var(--bg) 55%,transparent);transition:transform var(--motion-base) var(--motion-ease-out)}
.l-cam-frame i{position:absolute;width:var(--space-7);height:var(--space-7);border:var(--border-sticker) solid var(--sticker);transition:border-color var(--motion-base) var(--motion-ease-out)}
.l-cam-frame i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0;border-top-left-radius:var(--radius-md)}
.l-cam-frame i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0;border-top-right-radius:var(--radius-md)}
.l-cam-frame i:nth-child(3){bottom:0;left:0;border-right:0;border-top:0;border-bottom-left-radius:var(--radius-md)}
.l-cam-frame i:nth-child(4){bottom:0;right:0;border-left:0;border-top:0;border-bottom-right-radius:var(--radius-md)}
.l-cam-frame::after{content:"";position:absolute;left:var(--space-3);right:var(--space-3);top:0;height:var(--border-strong);border-radius:var(--radius-pill);background:var(--sticker);opacity:0}
.l-cam[data-state=aim] .l-cam-frame{animation:l-cam-breathe calc(var(--motion-print) * 1.2) ease-in-out infinite}
@keyframes l-cam-breathe{50%{transform:translate(-50%,-50%) scale(1.03)}}
.l-cam[data-state=read] .l-cam-frame{transform:translate(-50%,-50%) scale(.97)}
.l-cam[data-state=read] .l-cam-frame::after{animation:l-cam-scan var(--motion-print) ease-in-out infinite alternate}
@keyframes l-cam-scan{from{top:var(--space-2);opacity:1}to{top:calc(100% - var(--space-2));opacity:1}}
.l-cam[data-state=pause] .l-cam-frame i{border-color:var(--text)}
.l-cam[data-state=miss] .l-cam-frame i{border-color:var(--warn)}
.l-cam[data-state=done] .l-cam-frame{opacity:0}
.l-cam-top{position:absolute;top:calc(var(--space-3) + env(safe-area-inset-top));left:var(--space-3);right:var(--space-3);display:flex;align-items:center;justify-content:space-between;min-height:var(--size-tap)}
.l-cam-top .icon{background:color-mix(in srgb,var(--bg) 60%,transparent);-webkit-backdrop-filter:blur(var(--shape-blur));backdrop-filter:blur(var(--shape-blur))}
.l-cam-card{position:absolute;left:var(--layout-gutter);right:var(--layout-gutter);bottom:calc(var(--space-5) + env(safe-area-inset-bottom));max-width:var(--layout-card);margin:0 auto;display:grid;gap:var(--space-2);padding:var(--space-4) var(--space-5);text-align:center}
.l-cam-card p{margin:0}
.l-cam-say{font-family:var(--font-display);font-size:var(--size-h3);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);line-height:var(--line-height-snug);color:var(--text)}
.l-cam-sub{font-family:var(--font-ui);font-size:var(--size-small);line-height:var(--line-height-snug);color:var(--text-2);min-height:calc(var(--size-small) * 1.4)}
/* Without the camera: the quarter and the clock by hand, one quiet line under the card's progress. */
.l-cam-hand{display:block;min-height:var(--size-tap);margin:var(--space-1) auto 0;padding:0 var(--space-3);border:0;background:none;font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);color:var(--text-2);text-decoration:underline;text-underline-offset:var(--space-half);cursor:pointer}
.l-cam-track{height:var(--space-1);border-radius:var(--radius-pill);background:var(--surface-2);overflow:hidden;visibility:hidden}
.l-cam-track b{display:block;height:100%;border-radius:var(--radius-pill);background:var(--sticker)}
.l-cam[data-state=read] .l-cam-track{visibility:visible}
.l-cam[data-state=read] .l-cam-track b{animation:l-cam-wait var(--motion-print) ease-in-out infinite}
@keyframes l-cam-wait{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
.l-cam[data-state=done] .l-cam-track{display:none}
.l-cam-badge{justify-self:center;display:grid;place-items:center;width:calc(var(--size-tap) + var(--space-3));height:calc(var(--size-tap) + var(--space-3));border-radius:var(--radius-pill);background:var(--sticker);color:var(--on-sticker);animation:l-cam-pop var(--spring-slap-duration) var(--spring-slap) both}
.l-cam-badge.is-warn{background:var(--warn)}
.l-cam-badge.is-bad{background:var(--danger);color:var(--bg)}
.l-cam-badge .ic{width:var(--size-h3);height:var(--size-h3);fill:none;stroke:currentColor;stroke-width:calc(var(--border-strong) * 1.5);stroke-linecap:round;stroke-linejoin:round}
@keyframes l-cam-pop{from{transform:scale(0)}}
/* After a sync: the room's clock and score, live, to check against the TV before going in (D-189) */
.l-cam-now{display:grid;justify-items:center;gap:var(--space-1)}
.l-cam-nudge{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-2)}
.l-cam-nudge button{width:var(--size-tap);height:var(--size-tap);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-family:var(--font-ui);font-size:var(--size-h3);font-weight:var(--weight-bold);cursor:pointer}
.l-cam-nudge span{font-family:var(--font-ui);font-size:var(--size-small);color:var(--text-2)}
.l-cam-nudge b{color:var(--sticker);font-weight:var(--weight-heavy)}
.l-cam-card .l-btn{width:100%}
@media (prefers-reduced-motion:reduce){.l-cam *{animation:none!important}}
/* Set where you are (D-126): the quarter as a row of five pills, the game clock big, one button. */
.l-place{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-3);padding:var(--space-3) 0}
.l-place-q{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--space-2)}
.l-place-q button{min-height:var(--size-tap);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-heavy);cursor:pointer}
.l-place-q button[aria-pressed="true"]{border-color:var(--text);background:var(--text);color:var(--bg)}
.l-place-row{display:flex;gap:var(--space-2)}
.l-place-row .l-input{flex:1;min-width:0;font-family:var(--font-num);font-size:var(--size-h3);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);font-variant-numeric:tabular-nums;text-align:center}
.l-place-row .l-btn:disabled{opacity:var(--state-dim);cursor:default}
.l-teams{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2);margin-bottom:var(--space-3)}
.l-teams button,.l-ask-team button{display:flex;align-items:center;gap:var(--space-2);min-height:var(--size-tap);padding:0 var(--space-3);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);cursor:pointer}
.l-teams button[aria-pressed="true"]{border-color:var(--text)}
.l-ask-team{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);padding-top:var(--space-2)}
.l-ask-team button.dim{border-color:transparent;background:none;color:var(--text-2)}
/* The room's table of callers: rank, name, right of called; you in white, people's colour (D-159). */
.l-board{display:grid;gap:var(--space-2)}
.l-board-tabs{display:flex;gap:var(--space-4)}
.l-board-tabs button{min-height:var(--size-tap);padding:0;border:0;background:none;font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--text-2);cursor:pointer}
.l-board-tabs button[aria-pressed="true"]{color:var(--text)}
.l-board-row{display:grid;grid-template-columns:var(--space-5) 1fr auto;gap:var(--space-3);align-items:center;font-family:var(--font-ui);font-size:var(--size-body);color:var(--text)}
.l-board-none{margin:0;color:var(--text-2);font-size:var(--size-small);font-weight:var(--weight-medium);line-height:var(--line-height-snug)}
.l-board-row > span:first-child,.l-board-row > span:last-child{font-size:var(--size-small);color:var(--text-2);font-variant-numeric:tabular-nums}
.l-board-row.is-me{color:var(--accent);font-weight:var(--weight-heavy)}
/* figures (design/figures.mjs) */
.l-fig-name{font-family:var(--font-ui);font-size:var(--size-small);fill:var(--text-2)}
.l-fig-name.is-best{fill:var(--text);font-weight:var(--weight-heavy)}
.l-fig-chip{font-family:var(--font-ui);font-weight:var(--weight-heavy);font-size:var(--size-body);letter-spacing:var(--tracking-label)}
.l-fig-num{font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);letter-spacing:var(--tracking-label);fill:var(--text-2);text-transform:uppercase}
/* the key of a court drawing, whose 500-unit width shows at about 320px: type sized up so it reads at body size */
.l-fig-key{font-family:var(--font-ui);font-size:calc(var(--size-body) * 1.55);fill:var(--text-2)}
.l-fig-key.is-dim{fill:var(--muted)}
.l-fig-run{font-family:var(--font-num);font-size:var(--size-h3);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width)}

/* Team chip: a team colour appears only as a dot, in a score's digits and on its tag. Set --team from teamInk(). */
.l-chip{display:inline-flex;align-items:center;gap:var(--space-1);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--text-2)}
.l-chip::before{content:"";width:var(--state-dot);height:var(--state-dot);border-radius:var(--radius-pill);background:var(--team,var(--muted))}
.l-team-tag{display:inline-grid;place-items:center;min-width:var(--size-tap);height:var(--size-avatar);padding:0 var(--space-1);border-radius:var(--radius-xs);background:var(--team,var(--surface-2));color:var(--on-team,var(--text));font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label)}

/* Score: the numeral face, tabular. */
.l-score{font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);font-size:var(--size-score);line-height:var(--line-height-none);font-optical-sizing:none;font-variation-settings:var(--font-num-variation);font-kerning:var(--font-num-kerning);font-variant-numeric:tabular-nums;color:var(--text)}
/* Live: no pulse (a 0.5–1 Hz pulse pulls the eye all evening); the word in the text colour (--live, D-159: a live game
   is not a Loge moment). */
.l-live{color:var(--live);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase}

/* Text input: the raised surface with a control border, same height and radius as the button next to it. */
.l-input{min-height:var(--size-tap);padding:0 var(--space-4);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-family:var(--font-ui);font-size:var(--size-body)}
.l-input::placeholder{color:var(--placeholder)}
.l-input:focus-visible{outline:var(--border-strong) solid var(--accent);outline-offset:var(--space-half)}

/* Print canvas from design/print.mjs: fills its box, never stretched. */
.l-print{display:block;width:100%;height:100%}

/* Rail: a horizontal, swipeable row of cards that bleeds to the screen edges and snaps card by card. */
.l-rail{display:grid;grid-auto-flow:column;grid-auto-columns:min(86%,var(--layout-card));gap:var(--space-3);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;
  margin-inline:calc(50% - 50vw);padding-inline:max(var(--layout-gutter),calc(50vw - var(--layout-content) / 2 + var(--layout-gutter)));scroll-padding-inline:max(var(--layout-gutter),calc(50vw - var(--layout-content) / 2 + var(--layout-gutter)));padding-block:var(--space-1)}
.l-rail::-webkit-scrollbar{display:none}
.l-rail > *{scroll-snap-align:start;min-width:0}

/* Score bug (the app's game screen): hosts left, guests right (Maxim, 21 Oct), the clock in the middle as the header's
   clock button. No card around it: the header sits on the ground. Second row (.l-bug-bar): the player for a recording. */
.l-bug{container-type:inline-size;display:grid;gap:var(--space-2);padding:var(--space-1) 0;background:none;border:0;border-radius:0;box-shadow:none}
.l-bug-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:var(--space-3)}
.l-bug-side{display:flex;align-items:center;gap:var(--space-2);min-width:0}
.l-bug-side:last-child{justify-content:flex-end}
button.l-bug-side{padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.l-stats{display:grid;gap:var(--space-4)}
.l-bug-mid{display:grid;justify-items:center;gap:0;min-width:calc(var(--size-tap) * 2);min-height:var(--size-tap);padding:var(--space-half) var(--space-3) var(--space-1);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-md);background:var(--surface);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);line-height:var(--line-height-clock);color:var(--text-2);white-space:nowrap;font-variant-numeric:tabular-nums}
button.l-bug-mid{cursor:pointer}
.l-bug-mid b,.l-bug-mid strong{font-size:var(--size-h3);font-weight:var(--weight-heavy);font-stretch:var(--font-display-width);color:var(--text)}
.l-bug-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);padding-top:var(--space-2);border-top:var(--border-hairline) solid var(--line)}
.l-bug .l-team-tag{flex:none;height:calc(var(--size-avatar) + var(--space-2));padding:0 var(--space-2);font-size:var(--size-team)} /* bold 19px reads as large text: 3:1 on every team ground (D-317) */
@container (max-width:300px){.l-bug.is-long .l-bug-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);row-gap:var(--space-1)}.l-bug.is-long .l-bug-mid{grid-column:1 / -1;order:-1;justify-self:center}}
@container (max-width:260px){.l-bug-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);row-gap:var(--space-1)}.l-bug-mid{grid-column:1 / -1;order:-1;justify-self:center}}
/* Sync with the TV in the bug's second row: a dot and a few words. ask: why Loge wants the mic, one button;
   listening: the dot in the numeral colour; synced: muted words; deaf: the sticker dot (look here). */
.l-hear{display:flex;flex:1;min-width:0;align-items:center;gap:var(--space-2);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);line-height:var(--line-height-snug);color:var(--text)}
.l-hear > i{flex:none;width:var(--state-dot);height:var(--state-dot);border-radius:var(--radius-pill);background:var(--text-2)}
.l-hear > span{flex:1;min-width:0}
.l-hear > .l-btn{flex:none;min-height:calc(var(--size-tap) * .8);padding:0 var(--space-4)}
.l-hear[data-state=ask]{order:-1;flex-basis:100%}
.l-hear[data-state=ask] > i{display:none}
.l-hear[data-state=ask] > span{color:var(--text)}
.l-hear[data-state=listening] > i{background:var(--num)}
.l-hear:is([data-state=synced],[data-state=resynced]) > span{color:var(--text-2)}
.l-hear:is([data-state=synced],[data-state=resynced]) > i{background:var(--text-2)}
.l-hear:is([data-state=deaf],[data-state=nomic],[data-state=unknown]) > i{background:var(--sticker)}
.l-hear[data-state=tip] > i{display:none}
.l-hear[data-state=tip] > span{color:var(--text-2)}
.l-hear > .icon{flex:none}
.l-hear:is([data-state=deaf],[data-state=nomic],[data-state=unknown]) > span{color:var(--sticker)}

/* Tooltip: a short hint under a control, only with a mouse (never on touch), after a short wait; on keyboard focus too. */
@media (hover:hover) and (pointer:fine){
[data-tip]{position:relative}
[data-tip]::after{content:attr(data-tip);position:absolute;top:calc(100% + var(--space-2));left:50%;z-index:1;padding:var(--space-1) var(--space-2);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);letter-spacing:normal;text-transform:none;white-space:nowrap;pointer-events:none;opacity:0;transform:translate(-50%,calc(-1 * var(--space-1)));transition:opacity var(--motion-fast) var(--motion-ease-out),transform var(--motion-fast) var(--motion-ease-out)}
[data-tip-at=end]::after{left:auto;right:0;transform:translateY(calc(-1 * var(--space-1)))}
[data-tip]:hover::after,[data-tip]:focus-visible::after{opacity:1;transform:translate(-50%,0);transition-delay:var(--motion-base)}
[data-tip-at=end]:hover::after,[data-tip-at=end]:focus-visible::after{transform:none}
}

/* The card head from design/poster.mjs (v3): no team band any more. The moment and time as a small label, the card's
   sentence in the display face, a short fact as a big number in the numeral face. A sticker or a quiet card decides
   the colours (.is-sticker / .is-quiet on the card). posterHead() keeps its API for ui.js. */
.is-poster{position:relative;gap:var(--space-2);overflow:visible;isolation:isolate}
.l-poster-band{position:relative;display:grid;justify-items:start;gap:var(--space-1);padding:0;background:none;color:var(--text);text-align:left}
.l-poster-meta{display:flex;align-items:center;gap:var(--space-2);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
.l-poster-meta span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l-poster-meta .l-who-loge{font-size:var(--size-small);font-weight:var(--weight-heavy)}
.is-sticker .l-poster-meta .l-who-loge{display:none}
.l-poster-title{display:block;font-family:var(--font-num);font-size:var(--size-big);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);letter-spacing:var(--font-num-tracking);line-height:var(--font-num-line-height);font-optical-sizing:none;font-variation-settings:var(--font-num-variation);font-kerning:var(--font-num-kerning);font-variant-numeric:tabular-nums;color:var(--num)}
.is-quiet .l-poster-title{font-size:var(--size-stat);color:var(--text)}
.is-poster .l-poster-head{position:relative;margin:0;font-family:var(--font-display);font-weight:var(--font-display-weight);font-size:var(--size-h3);font-stretch:var(--font-display-width);line-height:var(--font-display-line-height);letter-spacing:var(--font-display-tracking);text-transform:var(--font-display-transform);color:var(--text)}
.is-quiet .l-poster-head{font-size:var(--size-body);font-stretch:var(--width-body);letter-spacing:var(--tracking-none);line-height:var(--line-height-title)}
.l-poster-body{display:grid;gap:var(--space-2);padding:0}
.l-poster-body > .l-stat-head{font-size:var(--size-body);color:var(--text)}
.l-poster-body > .l-say,.l-poster-body > .l-stat-head{text-align:left}
.is-poster > .l-react{padding:0}

/* A live episode (D-136..D-140): its running count sits as a pill under the score (.l-ep: what, the count in the numeral
   face; a tap goes to the episode's card); a milestone is a quiet line in the feed at its moment (.l-beat). */
.l-ep{display:flex;align-items:center;gap:var(--space-2);min-height:var(--size-tap);padding:0 var(--space-3);border:var(--border-mid) solid var(--num);border-radius:var(--radius-card);background:var(--surface);color:var(--text);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-caps);text-transform:uppercase;cursor:pointer}
.l-ep i{flex:none;width:var(--state-dot);height:var(--state-dot);border-radius:var(--radius-pill);background:var(--num)}
.l-ep b{font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);font-size:var(--size-score);letter-spacing:var(--font-num-tracking);line-height:var(--line-height-none);font-variation-settings:var(--font-num-variation);text-transform:none;color:var(--num)}
.l-ep-t{flex:1 1 auto;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:var(--line-height-snug);text-align:left;color:var(--num)}
.l-ep-n{flex:none;display:flex;align-items:baseline;gap:var(--space-1);white-space:nowrap}
.l-ep-n small{font-size:var(--size-label);font-weight:var(--weight-heavy);color:var(--num)}
.l-ep.is-hit b{animation:l-catch var(--spring-snap-duration) var(--spring-snap)}
@keyframes l-catch{from{transform:scale(1.06)}}
@media (prefers-reduced-motion:reduce){.l-ep.is-hit b{animation:none}}
/* Maxim 05.11: the header cards stand in one row and fill it. One card takes the row (words left, count right, like
   .l-hstat); two split it evenly, each with its words over its count, so a long label never pushes a card to a second row. */
.l-eps{display:flex;gap:var(--space-2)}
.l-eps > .l-ep{flex:1 1 0;min-width:0}
.l-eps > .l-ep:not(:only-child),.l-heads:has(> .l-hstat-box:not([hidden])) .l-ep{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;align-content:center;gap:var(--space-1) var(--space-2);padding:var(--space-2) var(--space-3)}
.l-eps > .l-ep:not(:only-child) .l-ep-n,.l-heads:has(> .l-hstat-box:not([hidden])) .l-ep-n{grid-column:2}
.l-eps:empty{display:none}
/* Header stat cards (D-155 engine strip rows, D-164): one quiet live number under the score, never the sticker yellow.
   Alone it takes the row; beside one live episode the two share it evenly (.is-side, the number smaller); with two
   episodes it waits. Same card, new number: only the changed digits tick (.l-dg.is-out). A long title takes its own
   line over the number (.is-stack). Tap: the whole card in the sheet (.l-sheet-num). */
.l-heads{display:flex;gap:var(--space-2);align-items:stretch}
.l-heads[hidden]{display:none}
.l-heads .l-eps{flex:1 1 0;min-width:0}
.l-hstat-box{display:grid;flex:1 1 0;min-width:0;overflow:hidden}
.l-hstat-box[hidden]{display:none}
.l-hstat{grid-area:1/1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:var(--space-3);width:100%;min-height:var(--size-tap);padding:var(--space-2) var(--space-3);border:var(--border-mid) solid var(--line);border-radius:var(--radius-card);background:var(--surface);color:var(--text);font-family:var(--font-ui);text-align:left;cursor:pointer}
.l-hstat-t{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--size-small);font-weight:var(--weight-bold);line-height:var(--line-height-snug)}
.l-hstat-v{display:flex;align-items:center;gap:var(--space-2);justify-self:end}
.l-hstat-n{font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);letter-spacing:var(--font-num-tracking);line-height:var(--line-height-none);font-optical-sizing:none;font-variation-settings:var(--font-num-variation);font-kerning:var(--font-num-kerning);font-variant-numeric:tabular-nums;font-size:var(--size-strip);color:var(--num);white-space:nowrap}
.l-hstat-n .l-dg > i{white-space:pre}
.l-hstat-box.is-side .l-hstat-n{font-size:var(--size-score)}
.l-hstat-l{min-width:0;max-width:calc(3 * var(--space-6));font-size:var(--size-label);font-weight:var(--weight-semibold);line-height:var(--line-height-snug);color:var(--text-2)}
.l-hstat.is-stack{grid-template-columns:minmax(0,1fr);row-gap:var(--space-1)}
.l-hstat.is-stack .l-hstat-v{justify-self:start}
.l-hstat.is-stack .l-hstat-l{max-width:none}
.l-sheet-num{display:flex;align-items:center;gap:var(--space-3);margin:var(--space-1) 0 var(--space-2);font-size:var(--size-small);color:var(--text-2)}
.l-sheet-num .l-hstat-n{flex:none}
.l-badges{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.l-badges b{padding:var(--space-half) var(--space-2);border-radius:var(--radius-pill);background:var(--sticker);color:var(--on-sticker);font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase}
.is-sticker .l-badges b{background:var(--on-sticker);color:var(--sticker)}
.l-ep-rows{display:grid;grid-template-columns:max-content 1fr max-content;align-items:baseline;gap:var(--space-2) var(--space-3)}
.l-ep-rows > span{display:contents}
.l-ep-rows small{font-family:var(--font-ui);font-size:var(--size-label);font-weight:var(--weight-semibold);color:var(--text-2);font-variant-numeric:tabular-nums}
.l-ep-rows em{font-style:normal;font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-bold);color:var(--text)}
.l-ep-rows em i{margin-left:var(--space-1);font-style:normal;font-size:var(--size-label);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--text-2)}
.l-ep-rows b{font-family:var(--font-num);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);font-size:var(--size-body);color:var(--c,var(--text))}
.l-ep-rows .is-them em,.l-ep-rows .is-them b{color:var(--text-2)}
.is-sticker .l-ep-rows b,.is-sticker .l-leads b,.is-sticker .l-bar b{color:var(--on-sticker)}
.is-sticker .l-bar b{background:var(--on-sticker)}
.l-beat{align-self:flex-start;display:grid;gap:var(--space-1);max-width:92%;padding:var(--space-2) var(--space-3);border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) var(--radius-xs);background:var(--bubble);border:var(--border-hairline) solid transparent}
.l-beat .l-poster-head{font-size:var(--size-body)}
.l-beat > .l-react{padding:0}

/* ---------- motion (MOTION.md §4, variant A) ---------- */
/* A sticker slaps in once (spring slap: scale 1.06 → 1, rotate −3° → its angle; opacity in the first 90 ms), only for
   Loge, only when the viewer is at the bottom. Everything else rises 8px with opacity in 180 ms. Reduced: fade 150. */
@media (prefers-reduced-motion:no-preference){
.l-slap{animation:l-slap var(--spring-slap-duration) var(--spring-slap) both}
.l-rise{animation:l-rise var(--motion-rise) var(--motion-ease-out) both}
}
@media (prefers-reduced-motion:reduce){.l-slap,.l-rise{animation:l-fade var(--motion-reduce) var(--motion-ease-out) both}}
@keyframes l-slap{from{transform:rotate(calc(var(--rot,0deg) - var(--shape-slap-rot))) scale(var(--motion-slap-scale));opacity:0}15%{opacity:1}to{transform:rotate(var(--rot,0deg))}}
@keyframes l-rise{from{transform:translateY(var(--motion-enter-rise));opacity:0}}
/* T1 tick: the digit that changed leaves upwards, the new one comes from below. */
@media (prefers-reduced-motion:no-preference){
.l-dg.is-out > i:first-child{animation:l-tick-out var(--motion-tick) var(--motion-ease-out) both}
.l-dg.is-out > i + i{animation:l-tick-in var(--motion-tick) var(--motion-ease-out) both}
.l-dg.is-roll > i{animation:l-tick-in var(--motion-tick) var(--motion-ease-out) both}
.l-dg.is-roll::before{animation:l-tick-out var(--motion-tick) var(--motion-ease-out) both}
}
/* the score's tick (motion audit 05.11): the old digit is a pseudo-element, so the element's text is always the score */
.l-dg[data-old]::before{content:attr(data-old);position:absolute;left:0;top:0;pointer-events:none}
@keyframes l-tick-out{to{transform:translateY(calc(-1 * var(--motion-tick-shift)));opacity:0}}
@keyframes l-tick-in{from{transform:translateY(var(--motion-tick-shift));opacity:0}}

/* The quarter card (D-221, approved by Maxim 03.11 19:17, /mnt/project-files/design/room-recap/): how this room watched
   the quarter. One block per team in its own colour (neutral: both teams get one, loudest first), a giant number of
   people who reacted to that team's loudest moment with their emoji, Loge's line under it, people's own replies as
   tilted bubbles; then the room's "who takes it" with the shift since the last break. --ink / --on-ink come from
   teams.mjs pairInks per block; --a / --h / --w on the bar from the same pair. */
.l-recap{display:grid;gap:var(--space-2);align-self:stretch}
.l-recap-top{display:flex;justify-content:space-between;align-items:baseline;padding:0 var(--space-1);color:var(--text);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase}
.l-recap-top span + span{color:var(--text-2);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-none);text-transform:none}
.l-recap-team{--pen:var(--on-ink);position:relative;display:grid;gap:var(--space-4);padding:var(--space-5) var(--space-4) var(--space-4);border-radius:var(--radius-sticker);background:var(--ink);color:var(--on-ink)}
.l-recap-tag{font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase}
.l-recap-hero{display:flex;align-items:center;gap:var(--space-3)}
.l-recap-hero > b{font-family:var(--font-display);font-size:calc(var(--size-mega) * 1.8);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);line-height:var(--line-height-none);font-variant-numeric:tabular-nums}
.l-recap-e{display:block;font-size:var(--size-mega);line-height:var(--line-height-none)}
.l-recap-hero small{display:block;margin-top:var(--space-1);text-wrap:balance;font-size:var(--size-body);font-weight:var(--weight-bold);line-height:var(--line-height-snug)}
.l-recap-say{position:relative;margin:0;font-family:var(--font-display);font-size:var(--size-h2);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);line-height:var(--line-height-title);text-wrap:balance}
.l-recap-bub{display:flex;flex-direction:column;gap:var(--space-2)}
.l-recap-bub p{align-self:flex-start;max-width:85%;margin:0;padding:var(--space-2) var(--space-3);border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) var(--radius-xs);background:var(--bg);color:var(--text);font-size:var(--size-body);font-weight:var(--weight-semibold);overflow-wrap:anywhere;transform:rotate(calc(-.4 * var(--shape-slap-rot)))}
.l-recap-bub p + p{align-self:flex-end;transform:rotate(calc(.4 * var(--shape-slap-rot)))}
.l-recap-bub b{display:block;font-size:var(--size-label);font-weight:var(--weight-heavy);color:var(--name)}
.l-recap-call{display:grid;gap:var(--space-2);padding:var(--space-4);border-radius:var(--radius-sticker);background:var(--surface);color:var(--text)}
.l-recap-q{font-size:var(--size-small);font-weight:var(--weight-bold);color:var(--text-2)}
.l-recap-nums{display:flex;justify-content:space-between;align-items:baseline}
.l-recap-nums > div + div{text-align:right}
.l-recap-nums b{display:block;font-family:var(--font-display);font-size:var(--size-h1);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);line-height:var(--line-height-none);font-variant-numeric:tabular-nums}
.l-recap-nums span{font-size:var(--size-small);font-weight:var(--weight-heavy)}
.l-recap-nums small{display:block;font-size:var(--size-label);font-weight:var(--weight-semibold);color:var(--text-2)}
.l-recap-bar{display:grid;grid-template-columns:var(--w) 1fr;height:var(--space-3);border-radius:var(--radius-pill);overflow:hidden}
.l-recap-bar i:first-child{background:var(--a)}
.l-recap-bar i:last-child{background:var(--h)}

/* The score card (first game, D-236, Maxim 04.11: «Your night», «While you were out»): one element with a border; the
   teams' colours only in the score header (away left, home right, the moment between them), the body quiet and dark,
   the brand yellow only on the logo's plate. Loge's line in the display face. .l-only says only you see it. */
.l-only{display:flex;align-items:center;gap:var(--space-1);margin:0 0 calc(-1 * var(--space-1));padding:0 var(--space-1);font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
.l-only::before{content:"";width:var(--state-dot);height:var(--state-dot);border-radius:var(--radius-pill);background:var(--accent)}
.l-sc{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-4);align-self:stretch;padding:var(--space-4);border:var(--border-mid) solid var(--line-strong);border-radius:var(--radius-sticker);background:var(--surface);color:var(--text)}
.l-sc-head{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:var(--space-half);margin:calc(-1 * var(--space-4) - var(--border-mid)) calc(-1 * var(--space-4) - var(--border-mid)) 0;border-radius:var(--radius-sticker) var(--radius-sticker) 0 0;overflow:hidden;background:var(--bg)}
.l-sc-side{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-2);padding:calc(var(--space-6) + var(--space-1)) var(--space-4) var(--space-3);background:var(--team);color:var(--on-team)}
.l-sc-side + .l-sc-side{flex-direction:row-reverse}
.l-sc-side b{display:block;font-family:var(--font-display);font-size:var(--size-stat);font-weight:var(--weight-heavy);font-stretch:var(--width-num);line-height:var(--line-height-num)}
.l-sc-side small{display:block;font-size:var(--size-label);font-weight:var(--weight-bold)}
.l-sc-side .l-sc-n{font-family:var(--font-display);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);font-size:calc(var(--size-mega) * 1.15);line-height:var(--line-height-none);font-variant-numeric:tabular-nums}
.l-sc-pt{position:absolute;left:50%;top:var(--space-2);transform:translateX(-50%);padding:var(--space-half) var(--space-2);border-radius:var(--radius-xs);background:var(--bg);color:var(--text);font-size:var(--size-label);font-weight:var(--weight-bold);white-space:nowrap}
.l-sc-who{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-2);font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase}
.l-sc-who span + span{letter-spacing:var(--tracking-none);text-transform:none;font-weight:var(--weight-bold);text-align:right}
.l-sc-body{display:grid;gap:var(--space-2)}
.l-sc-lab{font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--text-2)}
.l-sc-hero{display:flex;align-items:flex-end;gap:var(--space-3)}
.l-sc-hero b{font-family:var(--font-display);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);font-size:calc(var(--size-mega) * 1.9);line-height:var(--line-height-none);font-variant-numeric:tabular-nums}
.l-sc-hero small{padding-bottom:var(--space-2);font-size:var(--size-body);font-weight:var(--weight-heavy);line-height:var(--line-height-snug);text-wrap:balance}
.l-sc-hero.is-small b{font-size:calc(var(--size-mega) * 1.5)}
.l-sc-quote{margin:0;font-family:var(--font-display);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);font-size:var(--size-h1);line-height:var(--line-height-title);overflow-wrap:anywhere}
.l-sc-sub{margin:0;font-size:var(--size-small);font-weight:var(--weight-bold);line-height:var(--line-height-snug)}
.l-sc-rows{display:grid;gap:var(--space-1);margin:0;padding:0;list-style:none;font-size:var(--size-small);font-weight:var(--weight-bold)}
.l-sc-rows li{display:flex;justify-content:space-between;gap:var(--space-3);padding-top:var(--space-1);border-top:var(--border-hairline) solid var(--line-strong)}
.l-sc-rows li > span{color:var(--text-2)}
.l-sc-rows em{font-style:normal;font-weight:var(--weight-heavy)}
.l-sc-loge{display:grid;gap:var(--space-1);padding:var(--space-3) var(--space-4);border-radius:var(--radius-bubble);background:var(--bg)}
.l-sc-loge .l-who{margin:0}
.l-sc-loge p{margin:0;font-family:var(--font-display);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);font-size:var(--size-h2);line-height:var(--line-height-title)}
.l-sc-next{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2)}
.l-sc-tile{position:relative;display:grid;grid-template-rows:auto 1fr;min-height:calc(var(--space-8) + var(--space-3));padding:var(--space-2) var(--space-3) var(--space-3) calc(var(--space-3) + var(--space-1));overflow:hidden;border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-md);background:var(--bg);color:var(--text)}
.l-sc-tile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--space-1);background:var(--team)}
.l-sc-tile b{font-family:var(--font-display);font-size:var(--size-stat);font-weight:var(--weight-heavy);font-stretch:var(--width-num);line-height:var(--line-height-num)}
.l-sc-tile small{display:block;font-size:var(--size-label);font-weight:var(--weight-bold)}
.l-sc-tile .l-sc-when{align-self:end;font-size:var(--size-small);font-weight:var(--weight-heavy)}
.l-sc-cal{position:absolute;right:var(--space-2);top:var(--space-2);display:grid;place-items:center;width:calc(var(--size-tap) * .75);height:calc(var(--size-tap) * .75);padding:0;border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-size:var(--size-small);cursor:pointer}
.l-sc-acts{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.l-sc-acts .l-btn{flex:1}
.l-sc-foot{display:flex;justify-content:space-between;align-items:center;gap:var(--space-2);font-size:var(--size-label);font-weight:var(--weight-bold);letter-spacing:var(--tracking-label);text-transform:uppercase}
.l-sc-foot:only-child,.l-sc-foot.is-end{justify-content:flex-end}
.l-sc-plate{display:inline-flex;align-items:center;gap:var(--space-1);padding:var(--space-half) var(--space-2);border-radius:var(--radius-pill);background:var(--sticker);color:var(--on-sticker);font-family:var(--font-display);font-size:var(--size-small);font-weight:var(--weight-heavy);font-stretch:var(--width-mark);letter-spacing:var(--tracking-mark);text-transform:none;line-height:var(--line-height-none)}
.l-sc-plate img{width:var(--space-3);height:var(--space-3);filter:brightness(0)}
.l-sc-flow{display:grid;gap:var(--space-1)}
.l-sc-flow svg{display:block;width:100%;height:auto}
.l-sc-axis{position:relative;display:flex;justify-content:space-between;font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
.l-sc-axis span:nth-child(2){position:absolute;left:var(--at);transform:translateX(-50%)}
/* «Your night» for a viewer who read the game (scenario R, Maxim 11.11): the game in one picture (the swing stacked
   over its line, the lead all game) and the question «Which moment decided the game?» with three of the engine's
   moments; once answered, the question and the answer sit on top in the paper block and that is what you share. */
.l-sc-hero.is-stack{flex-direction:column;align-items:flex-start;gap:var(--space-1)}
.l-sc-hero.is-stack small{padding-bottom:0}
.l-sc-qa{gap:var(--space-1);padding:var(--space-3) var(--space-4);border-radius:var(--radius-bubble);background:var(--text);color:var(--bg)}
.l-sc-qa .l-sc-lab{color:var(--bg);font-size:var(--size-body);letter-spacing:var(--tracking-none);text-transform:none}
.l-sc-qa .l-sc-quote{font-size:var(--size-h1)}
.l-sc-qa .l-sc-quote.is-long{font-size:var(--size-h2)}
.l-sc-qa .l-sc-sub{font-size:var(--size-label);font-weight:var(--weight-heavy);letter-spacing:var(--tracking-label);text-transform:uppercase}
.l-sc-ask{display:grid;gap:var(--space-2)}
.l-sc-ask h3{margin:0;font-size:var(--size-h3);font-weight:var(--weight-heavy);line-height:var(--line-height-snug)}
.l-sc-ask button{display:flex;justify-content:space-between;align-items:center;gap:var(--space-3);width:100%;min-height:var(--size-tap);padding:var(--space-2) var(--space-4);border:var(--border-mid) solid var(--line-strong);border-radius:var(--radius-pill);background:none;color:var(--text);font-family:var(--font-ui);font-size:var(--size-body);font-weight:var(--weight-heavy);line-height:var(--line-height-snug);text-align:left;cursor:pointer;transition:transform var(--motion-press) var(--motion-ease-out)}
.l-sc-ask button:active{transform:scale(var(--motion-press-scale-small))}
.l-sc-ask button small{flex:none;font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2);white-space:nowrap}
.l-sc-ask p{margin:0;font-size:var(--size-small);font-weight:var(--weight-bold);color:var(--text-2)}
.l-sc-own{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-1) var(--space-2);align-items:end}
.l-sc-own .l-input{display:block;width:100%;min-width:0;max-height:calc(var(--size-tap) * 3);padding-block:calc((var(--size-tap) - var(--size-body) * var(--line-height-snug)) / 2 - var(--border-hairline));line-height:var(--line-height-snug);resize:none;overflow-y:auto;transition:border-radius var(--motion-press) var(--motion-ease-out)}
.l-sc-own .l-input.is-tall{border-radius:var(--radius-md)}
.l-sc-left{grid-column:1/-1;justify-self:end;font-size:var(--size-label);font-weight:var(--weight-bold);color:var(--text-2)}
.l-sc-left:empty{display:none}
.l-sc-ask .l-sc-save{width:auto;justify-content:center;border-color:var(--text);background:var(--text);color:var(--bg)}
.l-sc-ask .l-sc-save:disabled{opacity:var(--state-dim)}
@media (prefers-reduced-motion:reduce){.l-sc-ask button,.l-sc-own .l-input{transition:none}}
.l-sc-wait{min-height:calc(var(--space-7) * 2.4);border-radius:var(--radius-sticker);background:var(--bg)}
/* The next game's teaser from Loge after the final: the two teams' tile (away | home), its time between them. */
.l-nx{display:grid;gap:var(--space-2)}
.l-nx-tile{position:relative;display:flex;justify-content:space-between;align-items:flex-end;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);background:linear-gradient(90deg,var(--a) 0 50%,var(--h) 50% 100%);color:var(--on-team)}
.l-nx-tile b{font-family:var(--font-display);font-size:var(--size-stat);font-weight:var(--weight-heavy);font-stretch:var(--width-num);line-height:var(--line-height-num)}
.l-nx-tile span{position:absolute;left:50%;top:var(--space-1);transform:translateX(-50%);padding:var(--space-half) var(--space-2);border-radius:var(--radius-xs);background:var(--bg);color:var(--text);font-size:var(--size-label);font-weight:var(--weight-bold);white-space:nowrap}
.l-nx-cal{justify-self:start;padding:var(--space-1) var(--space-3);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:none;color:var(--text);font:inherit;font-size:var(--size-small);font-weight:var(--weight-bold);cursor:pointer}
/* The room card in the same quiet language (Maxim 04.11 10:17): dark, a border, the team's colour as a band on top. */
.l-recap-team{--pen:var(--text);padding-top:var(--space-3);border:var(--border-mid) solid var(--line-strong);border-top:var(--space-2) solid var(--ink);background:var(--surface);color:var(--text)}
.l-recap-tag{color:var(--text-2)}
.l-sc-typing{display:flex;align-items:center;gap:var(--space-2);color:var(--text-2)}
/* Sign-in as an exchange (Maxim 04.11, design/first-game 2-sign-in-as-exchange.png): what a guest keeps, a mark per call. */
.l-xch{display:grid;gap:var(--space-3);margin-bottom:var(--space-3)}
.l-xch-marks{display:flex;gap:var(--space-1)}
.l-xch-marks i{flex:1;height:var(--space-2);border-radius:var(--radius-pill);background:var(--line-strong)}
.l-xch-marks i.is-right{background:var(--text)}
.l-xch-marks i.is-open{background:none;border:var(--border-hairline) dashed var(--line-strong)}
.l-xch-draft{display:grid;justify-items:end;gap:var(--space-1)}
.l-xch-draft .l-bubble-me{max-width:100%}
.l-xch-draft small{color:var(--muted);font-size:var(--size-label)}
.l-xch > .l-xch-h{margin:var(--space-2) 0 0;font-family:var(--font-display);font-size:var(--size-h1);font-weight:var(--font-display-weight);font-stretch:var(--font-display-width);letter-spacing:var(--font-display-tracking);line-height:var(--line-height-title)}
/* sign-in sheet (D-245): the line under the field that turns into the error, so nothing moves (Maxim 04.11); the
   6-digit code as cells over one field; the name and the year in one row; the second action is a quiet button */
.l-slot{min-height:calc(var(--size-small) * var(--line-height-body));margin:var(--space-1) 0 0;padding:0 var(--space-4);font-size:var(--size-small);line-height:var(--line-height-body);color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l-slot.is-bad{color:var(--danger);font-weight:var(--weight-semibold)}
/* The bot check's place on the sign-in sheet: Cloudflare's small box under the email, only while it asks for a click. */
.l-bot{display:flex;justify-content:center;margin-top:var(--space-2)}
.l-bot:empty{display:none}
/* Passkey sign-in on a new device: one quiet text link under the email field. */
.l-sheet-key{display:block;min-height:var(--size-tap);margin:0 auto;padding:0 var(--space-3);border:0;background:none;font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);color:var(--text-2);text-decoration:underline;text-underline-offset:var(--space-half);cursor:pointer}
.l-composer.is-bad{border-color:var(--danger)}
.l-code{position:relative;display:grid;grid-template-columns:repeat(6,1fr);gap:var(--space-2)}
.l-code i{display:grid;place-items:center;height:calc(var(--size-tap) + var(--space-3));border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-md);background:var(--bg);font-style:normal;font-family:var(--font-num);font-size:var(--size-h2);font-weight:var(--font-num-weight);font-stretch:var(--font-num-width);font-variant-numeric:tabular-nums;color:var(--text)}
.l-code i.is-on{border-color:var(--text)}
.l-code.is-bad i{border-color:var(--danger);color:var(--danger)}
.l-code input{position:absolute;inset:0;width:100%;height:100%;opacity:0;border:0;background:none;font-size:var(--size-body);caret-color:transparent}
.l-wait{display:flex;align-items:center;gap:var(--space-2);margin:var(--space-2) 0;color:var(--text-2);font-size:var(--size-small)}
.l-wait i{flex:none;width:var(--space-2);height:var(--space-2);border-radius:var(--radius-pill);background:var(--accent)}
.l-name-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-2)}
.l-name-row > *{min-width:0}
/* Free names under a taken one (D-277): chips, a tap puts the name in the field. */
.l-sugg{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}
.l-sugg:empty{display:none}
.l-sugg button{min-height:calc(var(--size-tap) - var(--space-2));padding:0 var(--space-3);border:var(--border-hairline) solid var(--line-strong);border-radius:var(--radius-pill);background:none;color:var(--text);font-family:var(--font-ui);font-size:var(--size-small);font-weight:var(--weight-bold);cursor:pointer}
.l-sugg button:active{transform:scale(var(--motion-press-scale-small))}
.l-year{min-width:calc(var(--size-tap) * 2.4)}
.l-sheet-main{width:100%;margin-top:var(--space-2)}
.l-sheet-alt{width:100%;margin-top:var(--space-2)}
.l-sheet-foot{margin:var(--space-2) 0 0;text-align:center;color:var(--text-2);font-size:var(--size-label);line-height:var(--line-height-tight)}
.l-sheet-foot a{color:var(--text);text-decoration:underline;text-underline-offset:var(--space-half)}
.l-or{display:flex;align-items:center;gap:var(--space-2);color:var(--text-2);font-size:var(--size-label)}
.l-or::before,.l-or::after{content:"";flex:1;height:var(--border-hairline);background:var(--line)}
/* the keyboard is up: the waiting message shrinks to one line so the button stays above it */
:has(> .l-xch):has(input:focus) .l-xch-draft .l-bubble-me{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l-sheet-form{display:grid;gap:var(--space-2)}
