
  :root {
    --ink:#000; --ink-soft:#23272A; --bg:#fff; --card:#fff; --chalk:#F5F7F8; --line:#E1E4E6; --rule:#000; --muted:#5E6468; --rail:#A9A9AA;
    --solid:#000; --on-solid:#fff; --on-solid-muted:#C9CDD0; --media:#111; --band:#ECEEF0; --staff:#5A4FCF; --staff-tint:#F4F2FE; --staff-line:#B8B0F2; --gold:#E3A600; --gold-tint:#FFF6D8; --gold-ink:#6E5200;
    --cyan:#00A7E1; --cyan-deep:#0079A8; --cyan-tint:#EAF6FB; --error:#C0262D; --error-tint:#FDF3F3; --error-line:#E7A9AC;
    --display:Saira, "Arial Narrow", sans-serif;
    --body:Barlow, system-ui, -apple-system, sans-serif;
    color-scheme:light;
  }
  /* Dark: the same ink-and-cyan look on charcoal. Black surfaces (buttons, bars) flip to light so they still stand out. */
  html.dark {
    --ink:#F2F4F5; --ink-soft:#D5D9DC; --bg:#0F1214; --card:#171B1E; --chalk:#1D2226; --line:#2B3237; --rule:#3A424A; --muted:#9AA3A9; --rail:#6B7378;
    --solid:#F2F4F5; --on-solid:#0F1214; --on-solid-muted:#4E565C; --media:#000; --band:#050708; --staff:#AFA4FF; --staff-tint:#1C1A30; --staff-line:#4B4486; --gold:#F5C542; --gold-tint:#1C1B14; --gold-ink:#F5C542;
    --cyan:#1CB3E8; --cyan-deep:#4CC2F0; --cyan-tint:#10303D; --error:#FF7078; --error-tint:#3A1B1E; --error-line:#6B2D31;
    color-scheme:dark;
  }
  * { box-sizing:border-box; }
  body { margin:0; background:var(--bg); color:var(--ink); font:400 17px/1.5 var(--body); -webkit-font-smoothing:antialiased; }
  .wrap { max-width:1040px; margin:0 auto; padding:20px 24px 64px; }
  main { max-width:none; }
  .narrow { max-width:520px; }
  a { color:inherit; }

  .eyebrow { margin:0 0 6px; font:600 .8rem/1.2 var(--body); letter-spacing:.16em; text-transform:uppercase; color:var(--cyan-deep); }
  .title { margin:0; font:italic 800 clamp(2rem, 8vw, 2.75rem)/1.02 var(--display); text-transform:uppercase; letter-spacing:.005em; text-wrap:balance; overflow-wrap:anywhere; }
  .lede { margin:10px 0 0; color:var(--muted); }

  label { display:block; margin:0 0 6px; font-weight:600; font-size:.95rem; }
  input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea {
    width:100%; min-width:0; height:3.25rem; padding:0 14px; font:500 1.05rem var(--body); color:var(--ink);
    background:var(--card); border:2px solid var(--line); border-radius:10px; transition:border-color .15s;
  }
  /* iOS gives date and time fields an intrinsic width and ignores the 100% unless the native look is turned off;
     a select never takes the width on its own. Both sit beside text inputs and must line up with them. */
  input[type=date], input[type=time], input[type=datetime-local], input[type=month] { min-width:0; -webkit-appearance:none; appearance:none; }
  select { width:100%; min-width:0; height:3.25rem; padding:0 14px; font:500 1.05rem var(--body); color:var(--ink); background:var(--card);
           border:2px solid var(--line); border-radius:10px; }
  select:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 4px rgba(0,167,225,.18); }
  input:hover, textarea:hover { border-color:var(--rail); }
  input:focus, textarea:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 4px rgba(0,167,225,.18); }

  /* A second tap on a control is a second rack or a second press, never a request to zoom in. This kills the
     double-tap zoom on anything tappable while leaving pinch zoom alone, which people need to read with. */
  button, a, label, summary, select, input[type=radio], input[type=checkbox], [role="button"], [role="option"], [role="tab"] { touch-action:manipulation; }

  /* Signature: slanted black button with the cyan outline */
  .btn {
    display:inline-flex; align-items:center; justify-content:center; height:3.5rem; padding:0 1.75rem;
    background:var(--solid); color:var(--on-solid); border:4px solid var(--cyan); border-radius:10px; text-decoration:none;
    font:italic 800 1.3rem/1 var(--display); text-transform:uppercase; letter-spacing:.02em;
    transform:skewX(-12deg); cursor:pointer; transition:background .15s, transform .08s;
  }
  .btn > span { display:inline-flex; align-items:center; gap:.55em; transform:skewX(12deg); }
  .btn svg { flex:none; }
  .btn:hover { opacity:.9; }
  .btn:active { transform:skewX(-12deg) translateY(1px); }
  .btn:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
  .btn:disabled { opacity:.55; cursor:default; }
  .btn.sm { height:2.6rem; padding:0 1.1rem; border-width:3px; font-size:1rem; white-space:nowrap; }
  .btn em { font-style:inherit; }
  .btn .short { display:none; }

  .plain {
    display:inline-flex; align-items:center; height:2.5rem; padding:0 14px; font:600 .95rem var(--body); color:var(--ink); background:var(--card);
    border:2px solid var(--line); border-radius:8px; cursor:pointer; white-space:nowrap; text-decoration:none;
  }
  .plain:hover { border-color:var(--ink); }
  .plain:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
  .plain.danger { color:var(--error); }
  .plain.danger:hover { border-color:var(--error); }
  .plain.danger-solid { color:var(--on-solid); background:var(--error); border-color:var(--error); }
  .actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

  .section { margin:44px 0 14px; font:italic 800 1.35rem/1 var(--display); text-transform:uppercase; }
  .section small { margin-left:.35em; font-size:1rem; color:var(--rail); }
  .empty { margin:14px 0 0; color:var(--muted); }
  .error { margin:12px 0 0; color:var(--error); font-weight:600; }
  [hidden] { display:none !important; }

  .foot { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:64px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:.85rem; }
  .foot a { color:inherit; text-decoration:none; }
  .foot a:hover { text-decoration:underline; }

  /* iPhone only: a signed-in reader with notifications on has the home-screen app, but this page opened in Safari */
  .app-hint { display:flex; align-items:center; gap:10px; margin:-16px 0 24px; padding:10px 12px; background:var(--cyan-tint); border-radius:12px; font-size:.9rem; line-height:1.35; }
  .app-hint span { flex:1; }
  .app-hint .x { height:2rem; padding:0 8px; border-color:transparent; color:var(--muted); font-size:1.2rem; }

  /* Home-screen app: bottom tabs instead of the top menu, room for the home indicator, pull-to-refresh spinner */
  .joinbar { position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:45; max-width:640px; margin:0 auto; display:flex; align-items:center; gap:10px; padding:10px 8px 10px 14px; border-radius:14px; background:var(--solid); color:var(--on-solid); box-shadow:0 12px 32px rgba(0,0,0,.35); }
  .joinbar[hidden] { display:none; }
  .app-get[hidden], [data-if-phone][hidden] { display:none !important; }
  .claim-from { display:flex; align-items:center; gap:8px; margin:0 0 12px; font-size:.95rem; }
  .claim-app { margin:14px 0 4px; }
  .claim-app .app-get { width:100%; }
  .claim-app .hint { margin:10px 0 0; }
  .claim-or { display:flex; align-items:center; gap:10px; margin:18px 0 4px; color:var(--muted); font-size:.8rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
  .claim-or::before, .claim-or::after { content:""; flex:1; height:1px; background:currentColor; opacity:.35; }
  .w-app { display:flex; align-items:center; gap:12px; margin:0 0 18px; padding:12px 14px; border-radius:12px; background:var(--cyan-tint); color:var(--ink); font-size:.92rem; line-height:1.35; }
  .w-app > span { flex:1; }
  .w-app .plain { flex:none; }
  html.tabs-ui .joinbar { bottom:calc(76px + env(safe-area-inset-bottom)); }
  .joinbar-t { flex:1; min-width:0; font-size:.92rem; line-height:1.3; }
  .joinbar > :first-child:not(.joinbar-t) { flex:none; } /* the inviter's avatar keeps its shape */
  .joinbar-go { flex:none; padding:9px 16px; border-radius:999px; background:var(--cyan); color:#04141C; font-weight:700; text-decoration:none; }
  .joinbar-open { display:block; margin-top:3px; color:inherit; font-size:.85rem; font-weight:600; opacity:.8; }
  .joinbar-x { flex:none; width:32px; height:32px; border:0; background:none; color:inherit; font-size:1.3rem; line-height:1; opacity:.7; cursor:pointer; }
  body:has(.joinbar:not([hidden])) { padding-bottom:84px; }
  .appbar { display:none; }
  .appbar button.atab { background:none; border:0; border-radius:0; box-shadow:none; font:inherit; color:inherit; cursor:pointer; } /* the Score and More tabs are buttons: no button look */
  html.tabs-ui .appbar { position:fixed; left:0; right:0; bottom:0; z-index:40; display:flex; padding:6px 8px calc(6px + env(safe-area-inset-bottom)); background:var(--card); border-top:1px solid var(--line); }
  html.tabs-ui .atab { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 0 2px; color:var(--muted); text-decoration:none; -webkit-tap-highlight-color:transparent; }
  html.tabs-ui .atab svg { width:26px; height:26px; }
  html.tabs-ui .tab-label { font:600 .68rem/1 var(--body); letter-spacing:.02em; }
  html.tabs-ui .atab[aria-current] { color:var(--ink); }
  html.tabs-ui .atab[aria-current] svg { stroke-width:2.6; }
  html.tabs-ui .atab.plus { color:var(--ink); }
  html.tabs-ui .plus-box { display:grid; place-items:center; width:44px; height:30px; margin-top:-2px; background:var(--solid); color:var(--on-solid); border:3px solid var(--cyan); border-radius:8px; transform:skewX(-12deg); font:italic 800 1.5rem/1 var(--display); }
  html.tabs-ui .plus-box span { transform:skewX(12deg) translateY(-1px); }
  html.tabs-ui .nav, html.tabs-ui .me .btn.sm { display:none; }
  /* A tabbed app scrolls one way. Rows that scroll sideways (Who to follow, the bracket) do it inside their own box;
     the page itself never does, whatever some future card tries. */
  html.app, html.app body { overflow-x:hidden; }
  html.tabs-ui .top { margin-bottom:22px; }
  html.tabs-ui body, html.tabs-ui .wrap { padding-bottom:calc(84px + env(safe-area-inset-bottom)); }
  html.app .foot { display:none; }
  .ptr { position:fixed; top:0; left:0; right:0; z-index:50; display:flex; justify-content:center; pointer-events:none; }
  .ptr span { width:30px; height:30px; margin-top:12px; border:3px solid var(--line); border-top-color:var(--cyan-deep); border-radius:50%; background:var(--card);
              opacity:var(--p, 0); transform:translateY(calc(var(--p, 0) * 44px - 44px)) rotate(calc(var(--p, 0) * 300deg)); }
  .ptr.go span { animation:spin .7s linear infinite; }
  @keyframes spin { to { transform:translateY(0) rotate(360deg); } }

  /* Header */
  .top { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px 24px; padding-bottom:14px; margin-bottom:32px; border-bottom:2px solid var(--rule); }
  .brand { font:italic 800 1.55rem/1 var(--display); text-transform:uppercase; text-decoration:none; letter-spacing:.01em; white-space:nowrap; }
  .brand span { color:var(--cyan-deep); }
  .brand::before { content:""; display:inline-block; width:.42em; height:.8em; margin-right:.22em; background:var(--cyan); transform:skewX(-12deg); vertical-align:-.04em; }
  .nav { display:flex; flex-wrap:wrap; gap:8px 18px; min-width:0; }
  .nav::-webkit-scrollbar { display:none; }
  .nav a { flex:none; }
  .nav a { padding:6px 0; font:600 .8rem/1 var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); text-decoration:none; border-bottom:3px solid transparent; }
  .nav a:hover { color:var(--ink); }
  .nav a[aria-current] { color:var(--ink); border-color:var(--cyan); }
  .me { display:flex; align-items:center; gap:14px; }
  .me .av-link { display:block; border-radius:50%; }
  .adm { display:none; place-items:center; width:40px; height:40px; color:var(--ink); border-radius:50%; }
  html.app .adm { display:grid; }
  .adm:hover { background:var(--chalk); }
  .theme { display:grid; place-items:center; width:40px; height:40px; padding:0; color:var(--ink); background:none; border:0; border-radius:50%; cursor:pointer; }
  .theme:hover { background:var(--chalk); }
  .theme:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
  .theme .moon { display:none; } html.dark .theme .moon { display:block; } html.dark .theme .sun { display:none; }
  .bell { position:relative; display:grid; place-items:center; width:40px; height:40px; color:var(--ink); border-radius:50%; }
  .bell:hover { background:var(--chalk); }
  .bell:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
  .bell i { position:absolute; top:2px; right:2px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--error); color:#fff; font:700 .7rem/18px var(--body); font-style:normal; text-align:center; }
  .me .av-link:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
  html.app .top { grid-template-columns:1fr auto; }
  @media (max-width:620px) {
    .top { grid-template-columns:1fr auto; column-gap:10px; }
    .nav { grid-row:2; grid-column:1 / -1; flex-wrap:nowrap; gap:16px; margin:0 -24px; padding:0 24px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
    .nav a { letter-spacing:.06em; }
    .brand { font-size:1.3rem; }
    .me { gap:6px; }
    .me .btn.sm { padding:0 .8rem; font-size:.95rem; margin-right:4px; }
  }
  @media (max-width:480px) {
    .btn .full { display:none; }
    .btn .short { display:inline; }
  }
  @media (max-width:420px) {
    .nav { gap:12px; }
    .nav a { font-size:.8rem; letter-spacing:.04em; }
    .brand { font-size:1.12rem; }
    .me { gap:8px; }
    .me .btn.sm { height:2.4rem; padding:0 .65rem; font-size:.85rem; }
    .me .av { --s:36px !important; width:36px; height:36px; }
  }

  /* Avatars: photo, or initials on a cyan tint */
  .av { flex:none; display:inline-grid; place-items:center; width:var(--s); height:var(--s); border-radius:50%; overflow:hidden;
        background:var(--cyan-tint); color:var(--cyan-deep); font:italic 800 calc(var(--s) * .4)/1 var(--display); text-transform:uppercase; object-fit:cover; }
  .av-ghost { background:var(--solid); color:var(--on-solid); }

  /* Room logos: the photo, or initials on black, as a rounded square */
  .rlogo { flex:none; display:inline-grid; place-items:center; width:var(--s); height:var(--s); border-radius:calc(var(--s) * .22); overflow:hidden;
           background:var(--solid); color:var(--cyan); font:italic 800 calc(var(--s) * .38)/1 var(--display); object-fit:cover; }
  /* King of the Hill: a gold ring and a crown sitting on the picture */
  .av-king { position:relative; flex:none; display:inline-grid; width:var(--s); height:var(--s); }
  .av-king > .av { box-shadow:0 0 0 2px var(--gold); }
  .av-crown { position:absolute; left:50%; top:calc(var(--s) * -.3); width:max(13px, calc(var(--s) * .46)); height:max(13px, calc(var(--s) * .46));
    transform:translateX(-50%) rotate(-10deg); color:var(--gold); filter:drop-shadow(0 1px 1px rgba(0,0,0,.4)); pointer-events:none; }
  .av-crown svg { display:block; width:100%; height:100%; }
  /* People: one look everywhere a name appears. Avatar, name with the rating chip after it, a line underneath. */
  .who { display:flex; align-items:center; gap:12px; min-width:0; text-decoration:none; color:inherit; }
  .who:hover b { text-decoration:underline; }
  .who:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; border-radius:6px; }
  .who-t { min-width:0; }
  nav.ptabs { position:sticky; top:0; z-index:20; display:flex; gap:4px; margin:18px -4px 6px; padding:8px 4px; overflow-x:auto; scrollbar-width:none; background:var(--bg); border-bottom:1px solid var(--line); }
  nav.ptabs::-webkit-scrollbar { display:none; }
  nav.ptabs a { flex:none; padding:9px 14px; border-radius:999px; font:600 .92rem/1 var(--body); color:var(--muted); text-decoration:none; white-space:nowrap; }
  nav.ptabs a small { margin-left:4px; font-size:.78rem; opacity:.8; }
  nav.ptabs a[aria-selected="true"] { background:var(--solid); color:var(--on-solid); }
  nav.ptabs a:focus-visible { outline:3px solid var(--cyan); outline-offset:1px; }
  .tab-panel > :first-child { margin-top:14px; }
  .title .nick, .t-champ-name .nick, .hill-king .nick { color:var(--cyan-deep); white-space:nowrap; }
  .title .nick { color:var(--cyan); }
  .t-champ-name .nick { color:var(--cyan); }
  html.dark .t-champ-name .nick { color:#0079A8; }
  .who-t .nick { font-style:normal; color:var(--cyan-deep); font-weight:600; }
  .who b { display:block; font-weight:600; line-height:1.25; overflow-wrap:anywhere; }
  .who small { display:block; margin-top:1px; color:var(--muted); font-size:.85rem; }
  .who .dupe { font-style:normal; font-weight:600; color:var(--ink-soft); }
  .chip { display:inline-block; vertical-align:2px; margin-left:3px; padding:1px 7px; border-radius:999px; background:var(--solid); color:var(--on-solid);
          font:italic 800 .78rem/1.35 var(--display); letter-spacing:.02em; white-space:nowrap; }
  .chip.prov { background:var(--card); color:var(--ink); border:1.5px solid var(--rail); padding:0 6px; }
  .chip.none { background:var(--chalk); color:var(--muted); font:600 .68rem/1.6 var(--body); letter-spacing:.06em; text-transform:uppercase; }
  /* A list of people: rows on rules, with something on the right (a button, a record, a number) */
  .plist { margin:14px 0 0; padding:0; list-style:none; border-top:2px solid var(--rule); }
  .plist li { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:12px; min-height:3.75rem; padding:8px 4px; border-bottom:1px solid var(--line); }
  .plist li.is-me { background:var(--cyan-tint); }
  .plist .rec { font:italic 800 1.25rem/1 var(--display); white-space:nowrap; }
  .plist .rec.up { color:var(--cyan-deep); } .plist .rec.down { color:var(--error); }
  .plist .num { text-align:right; font:italic 800 1.45rem/1 var(--display); }
  .plist .num small { display:block; margin-top:3px; font:500 .78rem/1 var(--body); color:var(--muted); white-space:nowrap; }
  .plist .plain { height:2.2rem; padding:0 12px; font-size:.85rem; }
  .plist .follow { min-width:5.75rem; }
  .plist .fy { padding:2px 8px; border-radius:999px; background:var(--chalk); font-size:.75rem; font-style:normal; font-weight:600; color:var(--muted); }
  .follow { justify-content:center; min-width:6.5rem; color:var(--on-solid); background:var(--solid); border-color:var(--solid); }
  .follow:hover { opacity:.88; border-color:var(--solid); }
  .follow[aria-pressed="true"] { color:var(--ink); background:var(--card); border-color:var(--line); }
  .follow[aria-pressed="true"]:hover { opacity:1; border-color:var(--rail); }
  .follow:disabled { opacity:.6; }
  /* A ranked list: number, person, value on the right */
  .mini { margin:0; padding:0; list-style:none; border-top:2px solid var(--rule); }
  .mini li { display:grid; grid-template-columns:1.7em minmax(0, 1fr) auto; align-items:center; gap:10px; min-height:3.2rem; padding:4px 2px; border-bottom:1px solid var(--line); }
  .mini .n { color:var(--rail); font:italic 800 1.05rem/1 var(--display); text-align:right; }
  .mini li:nth-child(-n+3) .n { color:var(--ink); }
  .mini .who b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .mini .v { text-align:right; font:italic 800 1.35rem/1 var(--display); }
  .mini .v small { display:block; margin-top:2px; font:500 .72rem/1 var(--body); color:var(--muted); }
  .mini .is-me { background:var(--cyan-tint); }

  /* The first-session card: the one thing to do next, until a score counts */
  .starter { margin:22px 0 0; padding:18px 20px 18px; background:var(--solid); color:var(--on-solid); border-radius:14px; }
  .starter .eyebrow { color:var(--cyan); }
  .starter h2 { margin:0; font:italic 800 clamp(1.5rem, 6vw, 1.9rem)/1.05 var(--display); text-transform:uppercase; text-wrap:balance; }
  .starter p { margin:8px 0 0; color:var(--on-solid-muted); line-height:1.45; }
  .starter p b { color:var(--on-solid); font-weight:600; }
  .starter .actions { margin-top:16px; }
  .starter .btn { background:var(--card); color:var(--ink); margin:0 7px; }
  .starter .btn:focus-visible { outline-color:var(--on-solid); }
  .starter .plain { color:var(--on-solid); background:transparent; border-color:var(--on-solid-muted); }
  .starter .plain:hover { border-color:var(--on-solid); }
  .starter .s-note { margin-top:10px; font-size:.9rem; color:var(--cyan); font-weight:600; min-height:1.2em; }

  .badge {
    flex:none; display:inline-flex; align-items:center; height:1.5rem; padding:0 9px; margin:0;
    font:600 .7rem/1 var(--body); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap;
    color:var(--muted); background:var(--card); border:1.5px solid var(--line); border-radius:999px;
  }
  .up { color:var(--cyan-deep); }
  .down { color:var(--error); }

  /* Match card */
  /* A grid track grows to fit its widest item's min-content unless told otherwise; a card must never be wider
     than the screen, so the track is capped and the cards can shrink. Their contents wrap or truncate instead. */
  .matches { display:grid; grid-template-columns:minmax(0, 1fr); gap:12px; }
  .match, .fcard, .rpost { min-width:0; }
  @media (min-width:900px) { .matches { grid-template-columns:repeat(2, minmax(0, 1fr)); align-items:start; } .matches.one-col { grid-template-columns:minmax(0, 1fr); } }
  .match { padding:14px 16px 12px; border:2px solid var(--line); border-radius:12px; }
  .m-meta { margin:0 0 10px; font:600 .75rem/1.3 var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
  .m-meta b { color:var(--cyan-deep); font-weight:600; }
  .m-score { display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); align-items:center; gap:12px; }
  .m-score.m-solo { grid-template-columns:minmax(0, 1fr); }
  .m-side { display:flex; align-items:center; gap:10px; min-width:0; text-decoration:none; font-weight:600; line-height:1.2; overflow-wrap:anywhere; }
  .m-side:hover .m-name { text-decoration:underline; }
  .m-side.b { flex-direction:row-reverse; text-align:right; }
  .m-who { display:flex; flex-direction:column; align-items:flex-start; gap:3px; min-width:0; }
  .m-side.b .m-who { align-items:flex-end; }
  .m-who .chip { margin:0; }
  .m-three { margin:0; padding:0; list-style:none; display:grid; gap:6px; }
  .m-three li { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .m-three-who { display:flex; align-items:center; gap:10px; min-width:0; color:inherit; text-decoration:none; font-weight:600; overflow-wrap:anywhere; }
  .m-three-who:hover .m-name { text-decoration:underline; }
  .m-three-pts { font:italic 800 1.6rem/1 var(--display); color:var(--muted); font-variant-numeric:tabular-nums; }
  .m-three li.won .m-three-pts { color:var(--ink); }
  .m-three li.won .m-name > :first-child::before { content:''; }
  .m-three-avg { display:block; margin-top:2px; font:500 .8rem/1.2 var(--body); color:var(--muted); }
  .m-three li.won .m-three-pts::after { content:' ✓'; font-size:1rem; color:var(--cyan-deep); }
  .m-avs { display:flex; flex:none; }
  .m-avs .av { box-shadow:0 0 0 2px var(--card); }
  .m-avs .av + .av { margin-left:-4px; }
  .m-team .m-name a { color:inherit; text-decoration:none; }
  .m-team .m-name a:hover { text-decoration:underline; }
  .m-side.m-team:hover .m-name { text-decoration:none; }
  .m-team .m-name i { font-style:normal; color:var(--muted); }
  .m-name .m-dupe { display:block; margin-top:2px; font:500 .78rem/1.2 var(--body); color:var(--muted); }
  .m-racks { display:flex; align-items:baseline; gap:8px; font:italic 800 1.9rem/1 var(--display); }
  .m-racks i { font-style:normal; color:var(--rail); font-size:1.2rem; }
  .m-racks .lose { color:var(--rail); }
  .m-foot { display:flex; justify-content:space-between; align-items:center; gap:8px 12px; margin-top:12px; font-size:.85rem; line-height:1.35; color:var(--muted); }
  .m-foot > span:first-child { min-width:0; }
  .m-foot .actions { flex:none; }
  .m-foot .wit { font-weight:600; color:var(--cyan-deep); }
  .m-foot .confirm { font-weight:600; }
  .m-foot .confirm.on { color:var(--cyan-deep); border-color:var(--cyan-deep); }
  .m-foot .confirm.primary { color:var(--on-solid); background:var(--solid); border-color:var(--solid); }
  .m-foot .plain { height:2.1rem; padding:0 12px; font-size:.85rem; border-radius:999px; }
  .m-kicker { margin:-4px 0 10px; padding-bottom:8px; border-bottom:1px solid var(--line); font-size:.85rem; color:var(--muted); }
  .m-kicker a { font-weight:600; text-decoration:none; color:var(--ink); }
  .m-kicker a:hover { text-decoration:underline; }
  /* Head: what and where on the left, the ⋯ menu pinned top right, badges under the line */
  .m-head { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:start; gap:8px 8px; margin:0 0 12px; }
  .m-head .m-meta { grid-column:1; margin:3px 0 0; }
  .m-head .m-badges { grid-column:1; grid-row:2; }
  .m-head .m-badges:empty { display:none; }
  .m-more { grid-column:2; grid-row:1; display:grid; place-items:center; width:36px; height:32px; margin:-4px -8px 0 0; padding:0; color:var(--muted); background:none; border:0; border-radius:8px; cursor:pointer; }
  .m-more:hover { color:var(--ink); background:var(--chalk); }
  .m-more:active { background:var(--line); }
  .m-more:focus-visible { outline:3px solid var(--cyan); outline-offset:-2px; }
  .m-status { display:none; }
  .one-col .m-status { display:block; }
  .m-ask { color:var(--ink); }
  .badge.is-verified { color:var(--on-solid); background:var(--cyan-deep); border-color:var(--cyan-deep); }
  .badge.is-verified::before { content:"✓"; margin-right:5px; font-size:.95em; }
  .badge.is-disputed { color:var(--error); border-color:var(--error-line); background:var(--error-tint); }
  .badge.is-waiting { color:var(--muted); border-color:var(--line); background:transparent; }
  .badge.is-spot { color:var(--ink); border-color:var(--rail); }
  .m-badges { display:flex; gap:6px; flex-wrap:wrap; }
  .m-spot { color:var(--ink-soft); font-weight:600; }
  .m-detail { color:var(--muted); font-variant-numeric:tabular-nums; }
  .match.not-counted .m-score { opacity:.55; }
  .m-foot .flagged { font-weight:600; color:var(--error); }
  .m-foot .plain.flag { color:var(--muted); }
  .m-foot .plain.flag:hover { color:var(--error); border-color:var(--error); }
  .m-foot .plain.flag[aria-pressed="true"] { color:var(--on-solid); background:var(--error); border-color:var(--error); }
  .m-note { margin:8px 0 0; font-size:.85rem; color:var(--muted); }
  .m-meta a { color:inherit; text-decoration:none; }
  .m-meta a:hover { text-decoration:underline; }
  .m-media { display:grid; gap:4px; margin-top:12px; border-radius:10px; overflow:hidden; background:var(--media); }
  .m-media.n1 { grid-template-columns:1fr; }
  .m-media.n2, .m-media.n3, .m-media.n4 { grid-template-columns:1fr 1fr; }
  .m-media .m-pic, .m-media .m-vid { position:relative; display:block; min-width:0; }
  .m-media.n1 img { display:block; width:100%; height:auto; max-height:520px; object-fit:contain; }
  .m-media.n2 img, .m-media.n3 img, .m-media.n4 img { display:block; width:100%; aspect-ratio:1; object-fit:cover; }
  .m-media.n3 .m-pic:first-child, .m-media.n3 .m-vid:first-child { grid-column:1 / -1; }
  .m-media.n3 .m-pic:first-child img { aspect-ratio:2 / 1; }
  .m-media .m-pic b { position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.5); color:#fff; font:italic 800 1.6rem/1 var(--display); }
  .m-media .m-vid { display:grid; place-items:center; aspect-ratio:16 / 9; background:var(--media); color:#fff; font-size:2rem; }
  .m-media .m-yt b { background:rgba(0,0,0,.35); font-size:2.4rem; }
  .m-media.n1 .m-yt img { aspect-ratio:16 / 9; object-fit:cover; }
  .m-media-yt { display:block; }
  .m-media-yt .yt { margin:0; border-radius:0; }
  .m-media-yt + .m-media { margin-top:4px; }
  .yt { position:relative; aspect-ratio:16 / 9; background:var(--media) center / cover no-repeat; border-radius:10px; overflow:hidden; }
  .yt:not([data-yt-started])::after { content:''; position:absolute; left:50%; top:50%; width:68px; height:48px; margin:-24px 0 0 -34px; border-radius:12px; background:rgba(0,0,0,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 26px no-repeat; pointer-events:none; }
  .yt iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
  /* What a video YouTube won't play inside another site becomes: its picture, and the way to watch it there */
  .yt-out { position:absolute; inset:0; display:grid; place-items:center; color:#fff; text-decoration:none; background:#000 center / cover no-repeat; }
  .yt-out::before { content:""; position:absolute; inset:0; background:rgba(0,0,0,.45); }
  .yt-out span { position:relative; display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:999px; background:#FF0033; font:600 1rem var(--body); }
  .yt-out span::before { content:""; border-style:solid; border-width:7px 0 7px 12px; border-color:transparent transparent transparent #fff; }
  .yt-out small { position:absolute; left:0; right:0; bottom:10px; text-align:center; font-size:.8rem; color:rgba(255,255,255,.85); }
  .live-card { display:flex; flex-direction:column; gap:10px; padding:14px 16px; border:2px solid var(--error); border-radius:12px; }
  .live-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .live-dot { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:999px; background:var(--error); color:#fff; font:700 .72rem/1.4 var(--body); letter-spacing:.1em; text-transform:uppercase; }
  .live-dot::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--card); animation:blink 1.4s infinite; }
  @keyframes blink { 50% { opacity:.3; } }
  .live-head b { font-weight:600; }
  .live-head small { color:var(--muted); font-size:.85rem; }
  .live-head .rm { margin-left:auto; height:1.8rem; padding:0 8px; font-size:.78rem; color:var(--muted); border-color:transparent; }
  /* Reactions: a summary line ("You, Rob and 2 others"), then a borderless action row, like the big social apps */
  .m-react { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:.85rem; color:var(--muted); }
  .m-react:has(> :not([hidden])) { margin-top:12px; }
  .m-props-sum { display:inline-flex; align-items:center; gap:6px; }
  .m-props-sum i { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; background:var(--cyan-deep); font-style:normal; font-size:.72rem; line-height:1; }
  .m-ccount { margin-left:auto; color:inherit; text-decoration:none; }
  .m-ccount:hover { text-decoration:underline; }
  .m-actions { display:flex; margin-top:8px; padding-top:4px; border-top:1px solid var(--line); }
  .m-act { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; height:2.5rem; margin:0; padding:0; font:600 .9rem var(--body); color:var(--muted);
           background:none; border:0; border-radius:8px; cursor:pointer; text-decoration:none; -webkit-tap-highlight-color:transparent; user-select:none; }
  .m-act:hover { background:var(--chalk); color:var(--ink); }
  .m-act:active { background:var(--line); }
  .m-act:focus-visible { outline:3px solid var(--cyan); outline-offset:-3px; }
  .m-act { min-width:0; }
  .m-act span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .m-act svg { flex:none; width:19px; height:19px; }
  /* Five actions across a phone: smaller type and tighter gaps, so Props · Comment · Photo · Share · Rivalry fit */
  @media (max-width:420px) { .m-actions { justify-content:space-between; } .m-act { flex:0 1 auto; font-size:.8rem; gap:4px; padding:0; } .m-act svg { width:17px; height:17px; } .m-act i { font-size:1.05rem; } }
  .m-act i { font-style:normal; font-size:1.15rem; line-height:1; filter:grayscale(1); opacity:.65; }
  .m-act.props[aria-pressed="true"] { color:var(--cyan-deep); }
  .m-act.props[aria-pressed="true"] i { filter:none; opacity:1; }
  .m-act.pop i { animation:pop .5s cubic-bezier(.2, 1.4, .5, 1); }
  .m-act.photo { position:relative; }
  .m-act.photo input[type=file] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
  .m-act.photo:has(input:focus-visible) { outline:3px solid var(--cyan); outline-offset:-3px; }
  .m-act.photo.busy { opacity:.55; pointer-events:none; }
  .m-progress { margin:6px 0 0; color:var(--cyan-deep); font-weight:600; font-size:.85rem; }
  .m-progress.is-error { color:var(--error); }
  @keyframes pop { 0% { transform:scale(1); } 35% { transform:scale(1.55) rotate(-14deg); } 70% { transform:scale(.92); } 100% { transform:scale(1); } }
  .m-comments { margin-top:6px; }
  .m-comments:not(:has(li, form)) { display:none; }
  .m-clist { margin:0; padding:0; list-style:none; display:grid; gap:6px; }
  .m-clist li { display:flex; align-items:flex-start; gap:8px; font-size:.95rem; line-height:1.35; }
  .m-clist li > span { overflow-wrap:anywhere; padding-top:3px; }
  .m-clist a { font-weight:600; text-decoration:none; }
  .m-clist a:hover { text-decoration:underline; }
  .m-cform { position:relative; display:flex; align-items:center; gap:8px; margin-top:8px; }
  /* People to mention, above the box so a phone's keyboard doesn't cover them */
  .mention-box { position:absolute; left:36px; right:0; bottom:calc(100% + 6px); z-index:30; margin:0; padding:4px; list-style:none; background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.18); }
  .mention-box li { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; cursor:pointer; }
  .mention-box li[aria-selected="true"], .mention-box li:hover { background:var(--chalk); }
  .mention-box .mb-name { display:flex; flex-direction:column; min-width:0; font-weight:600; }
  .mention-box small { font-weight:500; color:var(--muted); font-size:.78rem; }
  a.mention { font-weight:600; color:var(--cyan-deep); text-decoration:none; }
  a.mention:hover { text-decoration:underline; }
  .one-col .m-cform[hidden] { display:flex !important; }
  .m-cform input { height:2.5rem !important; padding:0 14px !important; font-size:.95rem !important; border-radius:999px !important; background:var(--chalk) !important; border-color:transparent !important; }
  .m-cform input:focus { background:var(--card) !important; border-color:var(--cyan) !important; }
  .m-cform .plain { display:none; height:2.5rem; border-radius:999px; color:var(--on-solid); background:var(--solid); border-color:var(--ink); }
  .m-cform:has(input:not(:placeholder-shown)) .plain { display:inline-flex; }
  .m-cform .plain:disabled { opacity:.5; }
  .m-cform { flex-wrap:wrap; }
  .m-cform.has-file .plain { display:inline-flex; }
  .m-cpic { flex:none; width:2.5rem; height:2.5rem; display:grid; place-items:center; border-radius:50%; color:var(--muted); cursor:pointer; }
  .m-cpic:hover { color:var(--ink); background:var(--chalk); }
  .m-cpic input { display:none; }
  .m-cpic svg { width:22px; height:22px; }
  .m-cattach { order:5; flex-basis:100%; display:flex; align-items:flex-start; gap:6px; padding-left:36px; }
  .m-cattach[hidden] { display:none; }
  .m-cattach img { max-width:160px; max-height:120px; border-radius:10px; display:block; }
  .m-cvid { padding:8px 12px; border-radius:10px; background:var(--chalk); font-size:.85rem; }
  .m-cunpick { width:28px; height:28px; border-radius:50%; border:0; background:var(--chalk); color:var(--ink); font-size:1.1rem; line-height:1; cursor:pointer; }
  .c-media { display:block; margin-top:6px; max-width:min(100%, 320px); }
  .c-media img, video.c-media { display:block; max-width:100%; max-height:420px; width:auto; border-radius:12px; }
  .m-clist .c-media img, .m-clist video.c-media { max-height:240px; } /* smaller in a card's preview than on the match page */
  .m-ytform { display:flex; gap:8px; margin-top:8px; }
  .m-ytform[hidden] { display:none; }
  .m-ytform input { flex:1; height:2.5rem !important; font-size:.95rem !important; }
  .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .m-foot .err { color:var(--error); font-weight:600; }
  .share-menu { position:absolute; z-index:60; display:flex; flex-direction:column; min-width:190px; padding:6px; background:var(--card); border:2px solid var(--line);
    border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.18); }
  .share-item { display:block; width:100%; height:auto; margin:0; padding:9px 12px; font:600 .92rem var(--body); color:var(--ink); text-align:left; text-decoration:none;
    background:none; border:0; border-radius:8px; cursor:pointer; }
  .share-item:hover, .share-item:focus-visible { background:var(--chalk); outline:none; }
  .share-item:first-child { color:var(--cyan-deep); }
  @media (max-width:520px) {
    .m-side { flex-direction:column; align-items:flex-start; gap:6px; font-size:.95rem; }
    .m-side.b { flex-direction:column; align-items:flex-end; }
    .m-racks { font-size:1.6rem; }
  }

  /* Radio pills (one choice from a few): the score form, the edit form, Appearance */
  .seg { display:flex; flex-wrap:wrap; gap:8px; }
  .seg label { position:relative; display:inline-flex; align-items:center; height:2.75rem; margin:0; padding:0 18px; font-weight:600; font-size:1rem;
               border:2px solid var(--line); border-radius:999px; cursor:pointer; user-select:none; }
  .seg label:hover { border-color:var(--ink); }
  /* The radio inside a chip covers it and is invisible. Scoped to the chip: a plain input in the same row
     (the Other box) has to stay where it is and stay visible. */
  .seg label input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
  .seg label:has(input:checked) { color:var(--on-solid); background:var(--solid); border-color:var(--ink); }
  .seg label:has(input:focus-visible) { outline:3px solid var(--cyan); outline-offset:2px; }
  .seg .other { height:2.75rem; border-radius:999px; color:var(--muted); }

  /* A profile's header (players and rooms): picture with the counts beside it, name, then side-by-side buttons */
  .hero { max-width:520px; }
  .hero-top { display:flex; align-items:center; gap:18px; }
  .hero .hero-top > .av-king { margin:22px 6px 6px; }
  .hero .hero-top > .av { box-shadow:0 0 0 3px var(--bg), 0 0 0 5.5px var(--cyan); margin:6px; }
  .hero-stats { flex:1; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); text-align:center; }
  .hs { display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 2px; border-radius:10px; text-decoration:none; color:inherit; }
  a.hs:active { background:var(--chalk); }
  .hs b { font:italic 800 1.35rem/1.1 var(--display); white-space:nowrap; }
  .hs span { font-size:.85rem; color:var(--muted); }
  .hero-text { min-width:0; margin-top:14px; }
  .hero-text .title { font-size:clamp(1.6rem, 7vw, 2.2rem); }
  .hero-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
  .hero-actions > * { flex:1 1 0; min-width:0; }
  .hero-actions .plain { justify-content:center; height:2.4rem; overflow:hidden; text-overflow:ellipsis; }
  .hero-actions .hero-invite { flex-basis:100%; } /* the longest label: a row of its own, under Follow and Share */
  .hero-links { margin-top:14px; border-top:1px solid var(--line); }
  .hero-links a { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:3rem; padding:4px 2px; font-weight:600; text-decoration:none; border-bottom:1px solid var(--line); }
  .hero-links a:active { background:var(--chalk); }
  .hero-links svg { flex:none; color:var(--muted); }

  /* Staff only: anything the public never sees (room managers' tools, admin tools, your own shortcuts) is violet,
     a neighbour of the brand cyan that no other meaning uses (cyan is action, red is error, gold is the crown).
     A section is a dashed violet box with a lock label on top; a lone control inside public content (a Delete on a
     post, a payment chip on a list) is violet on its own. Violet means "not everyone sees this" and nothing else. */
  .staff { margin-top:18px; padding:12px 14px 14px; background:var(--staff-tint); border:1.5px dashed var(--staff-line); border-radius:12px; }
  .staff > .staff-tag:first-child { margin-top:0; }
  .staff-tag { display:flex; align-items:center; gap:6px; margin:0 0 10px; font:600 .72rem/1.2 var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--staff); }
  .staff-tag svg { flex:none; }
  .title + .staff-tag { margin:10px 0 0; }
  /* The admin's own way in is staff-only too */
  .adm { color:var(--staff) !important; }
  .nav a[href="/admin"] { color:var(--staff); }
  .staff .post-form, .staff .mgr, .staff form { margin-top:0; }
  .staff .post-form { padding:0; border:0; border-radius:0; }
  .staff .t-manage { background:var(--card); border:1px solid var(--staff-line); }
  .staff.notif { background:var(--staff-tint); border:1.5px dashed var(--staff-line); border-radius:12px; }
  .staff .hero-links { margin-top:0; border-top:0; }
  .staff .hero-links a { border-bottom-color:var(--staff-line); }
  .staff .hero-links a:last-child { border-bottom:0; }
  .plain.staff-ctl, .staff-ctl { color:var(--staff) !important; border-color:var(--staff-line) !important; background:var(--staff-tint); }
  .plain.staff-ctl:hover { border-color:var(--staff) !important; }
  /* ---------- Action sheet (hillSheet): up from the bottom on a phone, a small dialog on a computer ---------- */
  .sheet-back { position:fixed; inset:0; z-index:300; display:flex; align-items:flex-end; justify-content:center; background:rgba(0,0,0,.45); animation:sheet-fade .18s ease-out; }
  .sheet-back.out { animation:sheet-fade .16s ease-in reverse forwards; }
  .sheet { width:100%; max-width:520px; max-height:85vh; overflow-y:auto; padding:8px 10px calc(10px + env(safe-area-inset-bottom)); background:var(--card); color:var(--ink);
    border-radius:18px 18px 0 0; box-shadow:0 -8px 30px rgba(0,0,0,.2); animation:sheet-up .26s cubic-bezier(.2, .9, .3, 1); }
  .sheet-back.out .sheet { animation:sheet-up .16s ease-in reverse forwards; }
  .sheet::before { content:""; display:block; width:36px; height:5px; margin:0 auto 6px; border-radius:3px; background:var(--line); }
  .sheet-head { margin:0 4px 6px; padding:4px 12px 12px; text-align:center; border-bottom:1px solid var(--line); }
  .sheet-title { margin:0; font-weight:600; }
  .sheet-text { margin:4px 0 0; font-size:.9rem; line-height:1.4; color:var(--muted); }
  .sheet-list { display:grid; }
  .sheet-item { display:flex; align-items:center; gap:14px; width:100%; min-height:3.4rem; margin:0; padding:10px 14px; font:600 1.02rem/1.25 var(--body); color:var(--ink);
    text-align:left; text-decoration:none; background:none; border:0; border-radius:12px; cursor:pointer; }
  .sheet-item:hover, .sheet-item:focus-visible { background:var(--chalk); outline:none; }
  .sheet-item:active { background:var(--line); }
  .sheet-item svg { flex:none; width:26px; height:26px; color:var(--cyan-deep); }
  .sheet-item small { display:block; margin-top:2px; font-weight:500; font-size:.85rem; color:var(--muted); }
  .sheet-item.danger { color:var(--error); }
  .sheet-cancel { justify-content:center; margin-top:6px; color:var(--muted); }
  .sheet-list + .sheet-cancel { border-top:1px solid var(--line); border-radius:0 0 12px 12px; }
  html.sheet-open, html.sheet-open body { overflow:hidden; }
  @media (min-width:700px) and (pointer:fine) { .sheet-back { align-items:center; } .sheet { max-width:380px; border-radius:16px; } .sheet::before { display:none; } }
  @keyframes sheet-up { from { transform:translateY(100%); } to { transform:none; } }
  /* ---------- Clips ---------- */
  .hill-toast { position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom)); z-index:310; transform:translateX(-50%); max-width:calc(100% - 32px); padding:11px 18px; border-radius:999px; background:var(--ink); color:var(--card); font:600 .92rem var(--body); box-shadow:0 10px 30px rgba(0,0,0,.25); }
  html.app .hill-toast { bottom:calc(88px + env(safe-area-inset-bottom)); }
  /* The editor: a centred card on a computer, a sheet from the bottom on a phone */
  html.clipper-open { overflow:hidden; }
  .clipper { position:fixed; inset:0; z-index:70; display:grid; place-items:center; padding:16px; background:rgba(6,8,10,.66); animation:sheet-fade .18s ease-out; }
  .clipper-card { width:min(640px, 100%); max-height:100%; overflow:auto; overscroll-behavior:contain; background:var(--card); color:var(--ink); border-radius:18px; box-shadow:0 24px 70px rgba(0,0,0,.45); }
  .clipper-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 14px 12px 18px; }
  .clipper-head h2 { margin:0; font:italic 800 1.35rem/1.05 var(--display); text-transform:uppercase; }
  .clipper-sub { margin:3px 0 0; font-size:.88rem; color:var(--muted); }
  .clipper-x { flex:none; width:40px; height:40px; border:0; border-radius:50%; background:var(--chalk); color:var(--ink); font-size:1.5rem; line-height:1; cursor:pointer; }
  .clipper-video { position:relative; aspect-ratio:16 / 9; background:#000; overflow:hidden; }
  .clipper-video iframe, .clipper-video video { position:absolute; inset:0; width:100%; height:100%; border:0; }
  .clipper-tap { position:absolute; inset:0; display:grid; place-items:center; padding:0; background:none; border:0; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .clipper-bigplay { width:68px; height:68px; border-radius:50%; background:rgba(0,0,0,.55); display:grid; place-items:center; transition:opacity .2s, transform .2s; }
  .clipper-bigplay::before { content:""; margin-left:6px; border-style:solid; border-width:13px 0 13px 21px; border-color:transparent transparent transparent #fff; }
  .clipper.is-playing .clipper-bigplay { opacity:0; transform:scale(.8); }
  .clipper-loading { position:absolute; inset:auto 0 12px; text-align:center; color:rgba(255,255,255,.8); font-size:.88rem; pointer-events:none; }
  .clipper-panel { display:grid; gap:14px; padding:16px 18px 20px; }
  .ct-top { display:flex; align-items:center; gap:12px; }
  .ct-playbtn { flex:none; width:40px; height:40px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--solid); color:var(--on-solid); cursor:pointer; }
  .ct-playbtn span { margin-left:3px; border-style:solid; border-width:8px 0 8px 13px; border-color:transparent transparent transparent currentColor; }
  .clipper.is-playing .ct-playbtn span { margin:0; width:12px; height:14px; border:0; border-left:4px solid currentColor; border-right:4px solid currentColor; }
  .ct-range { flex:1; min-width:0; font-weight:600; font-variant-numeric:tabular-nums; }
  .ct-len { flex:none; padding:5px 12px; border-radius:999px; background:var(--cyan-deep); color:#fff; font:italic 800 1.05rem/1 var(--display); font-variant-numeric:tabular-nums; }
  /* The track: the chosen part is the framed stretch; its ends are the grips. Touch-friendly: each grip catches taps
     well outside its drawn edge. */
  /* The whole match, thin, above the track: where the chosen part sits in it, and where the player is */
  .ct-over { position:relative; height:14px; margin:0 12px; border-radius:7px; background:var(--chalk); touch-action:none; cursor:pointer; }
  .ct-over::after { content:""; position:absolute; inset:-12px 0; }
  .ct-over-sel { position:absolute; top:0; bottom:0; border-radius:7px; background:var(--cyan); }
  .ct-over-head { position:absolute; top:-3px; bottom:-3px; width:2px; margin-left:-1px; background:var(--ink); pointer-events:none; }
  .ct-over-labels { display:flex; justify-content:space-between; gap:8px; margin:-8px 12px 0; font:500 .72rem/1 var(--body); color:var(--muted); font-variant-numeric:tabular-nums; }
  .ct-over-mid { text-align:center; }
  .ct-track { position:relative; height:58px; margin:0 12px 22px; border-radius:10px; background:var(--chalk); touch-action:none; user-select:none; -webkit-user-select:none; cursor:pointer; }
  .ct-ticks i { position:absolute; top:0; bottom:0; width:1px; background:var(--line); pointer-events:none; }
  .ct-ticks span { position:absolute; top:calc(100% + 5px); left:0; transform:translateX(-50%); font:500 .72rem/1 var(--body); color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
  .ct-sel { position:absolute; top:0; bottom:0; background:color-mix(in srgb, var(--cyan) 22%, transparent); border-top:3px solid var(--cyan); border-bottom:3px solid var(--cyan); cursor:grab; }
  .clipper.is-dragging .ct-sel { cursor:grabbing; }
  .ct-h { position:absolute; top:-3px; bottom:-3px; width:18px; padding:0; border:0; background:var(--cyan); cursor:ew-resize; touch-action:none; }
  .ct-h::before { content:""; position:absolute; top:50%; left:50%; width:3px; height:20px; transform:translate(-50%, -50%); border-radius:2px; background:#fff; }
  .ct-h::after { content:""; position:absolute; inset:-8px -14px; }
  .ct-h-start { left:-18px; border-radius:8px 0 0 8px; }
  .ct-h-end { right:-18px; border-radius:0 8px 8px 0; }
  .ct-h:focus-visible { outline:3px solid var(--ink); outline-offset:1px; }
  .ct-head { position:absolute; top:-6px; bottom:-6px; width:3px; margin-left:-1px; border-radius:2px; background:var(--ink); pointer-events:none; }
  .ct-nudge { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  .ct-nudge div { display:flex; align-items:center; gap:6px; }
  .ct-nudge span { margin-right:2px; font-size:.85rem; font-weight:600; color:var(--muted); }
  .ct-nudge button { height:2.25rem; min-width:3.1rem; padding:0 10px; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--ink); font:600 .88rem var(--body); cursor:pointer; font-variant-numeric:tabular-nums; }
  .ct-nudge button:disabled { opacity:.35; cursor:default; }
  .clipper-hint { margin:0; font-size:.85rem; color:var(--muted); }
  .clipper-cap { margin:0; }
  .clipper-cap input { width:100%; }
  .clipper-feed { display:flex; align-items:center; gap:10px; font-weight:600; cursor:pointer; }
  .clipper-feed input { width:20px; height:20px; accent-color:var(--cyan-deep); }
  .clipper-err { margin:0; color:var(--error); font-weight:600; }
  .clipper-go { width:100%; }
  .clipper-go:disabled { opacity:.6; cursor:default; }
  .clipper-making { display:grid; justify-items:center; gap:10px; padding:40px 24px 34px; text-align:center; }
  .clipper-making b { font:italic 800 1.3rem/1.1 var(--display); text-transform:uppercase; }
  .cw-status { margin:0; font-weight:600; }
  .cw-bar { width:min(320px, 100%); height:6px; border-radius:999px; background:var(--chalk); overflow:hidden; }
  .cw-bar i { display:block; width:35%; height:100%; border-radius:inherit; background:var(--cyan); animation:cw-slide 1.3s ease-in-out infinite; }
  .clipper.is-processing .cw-bar i { background:var(--cyan-deep); }
  @keyframes cw-slide { from { transform:translateX(-110%); } to { transform:translateX(310%); } }
  .cd-title { margin:0; font:italic 800 1.3rem/1.1 var(--display); text-transform:uppercase; }
  .cd-acts { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
  .cd-acts .btn { flex:1 1 160px; height:3rem; font-size:1.1rem; }
  .cd-acts .plain { height:3rem; }
  @media (max-width:640px) {
    .clipper { place-items:end stretch; padding:0; }
    .clipper-card { width:100%; max-height:96%; border-radius:18px 18px 0 0; padding-bottom:env(safe-area-inset-bottom); animation:sheet-up .26s cubic-bezier(.2, .9, .3, 1); }
    .clipper-card::before { content:""; display:block; width:36px; height:5px; margin:8px auto 0; border-radius:3px; background:var(--line); }
  }
  @media (prefers-reduced-motion: reduce) { .clipper, .clipper-card, .cw-bar i { animation:none; } }
  /* A clip in the feed or on a page */
  .clip-card .cc-head { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; align-items:center; gap:10px; margin:0 0 10px; }
  .clip-card .cc-head .m-more { grid-column:3; grid-row:1; margin:0 -8px 0 0; }
  .cc-who p { margin:0; line-height:1.3; overflow-wrap:anywhere; }
  .cc-who a { color:inherit; text-decoration:none; }
  .cc-who p > a:last-child { font-weight:600; }
  .cc-who a:hover { text-decoration:underline; }
  .cc-who small { display:block; margin-top:2px; font-size:.82rem; color:var(--muted); }
  .cc-caption { margin:0 0 10px; line-height:1.4; overflow-wrap:anywhere; }
  .cc-video { position:relative; aspect-ratio:16 / 9; background:#000; border-radius:10px; overflow:hidden; cursor:pointer; }
  .cc-video video { display:block; width:100%; height:100%; object-fit:cover; }
  /* Above the stream's own score strip (its bottom 8%) */
  .cc-full { position:absolute; right:10px; bottom:calc(8% + 10px); width:36px; height:36px; display:grid; place-items:center; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; cursor:pointer; }
  .cc-full svg { width:18px; height:18px; }
  .cc-video video:fullscreen { object-fit:contain; }
  .cc-sound { position:absolute; right:54px; bottom:calc(8% + 10px); width:36px; height:36px; display:grid; place-items:center; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; cursor:pointer; }
  .cc-video:not(.is-sound) .cc-sound { width:auto; grid-auto-flow:column; gap:6px; padding:0 12px 0 9px; border-radius:999px; }
  .cc-sound-t { font:600 .8rem/1 var(--body); white-space:nowrap; }
  .cc-video.is-sound .cc-sound-t { display:none; }
  .cc-sound svg { width:19px; height:19px; }
  .cc-sound svg + svg, .cc-video.is-sound .cc-sound svg:first-child { display:none; }
  .cc-video.is-sound .cc-sound svg + svg { display:block; }
  .cc-len { position:absolute; left:10px; bottom:calc(8% + 10px); padding:4px 9px; border-radius:999px; background:rgba(0,0,0,.6); color:#fff; font:600 .78rem/1 var(--body); font-variant-numeric:tabular-nums; pointer-events:none; }
  .cc-state { aspect-ratio:16 / 9; display:grid; place-content:center; justify-items:center; gap:6px; padding:16px; text-align:center; border-radius:10px; background:var(--chalk); color:var(--muted); font-size:.9rem; }
  .cc-state b { color:var(--ink); }
  .cc-state.is-failed b { color:var(--error); }
  .cc-spin { width:28px; height:28px; border-radius:50%; border:3px solid var(--line); border-top-color:var(--cyan); animation:spin .9s linear infinite; }
  @keyframes spin { to { transform:rotate(360deg); } }
  html.app .match:not(.stream > .match) .cc-video, html.app .match:not(.stream > .match) .cc-state { margin-left:-16px; margin-right:-16px; border-radius:0; }
  .kc-rm { height:1.6rem; padding:0 6px; font-size:.75rem; color:var(--muted); border-color:transparent; }
  /* Under a streamed match's video: the way to clip it */
  .m-clipbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-top:8px; }
  /* Under a live video: The Hill's own link to share (YouTube's player only offers its own) */
  .share-link { display:inline-flex; align-items:center; gap:8px; }
  .share-link svg { width:18px; height:18px; flex:none; }
  .live-sharebar { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-top:8px; }
  .live-sharebar .hint { margin:0; font-size:.85rem; color:var(--muted); }
  .cc-badge { position:absolute; left:10px; top:10px; display:inline-flex; align-items:center; gap:5px; padding:5px 10px 5px 8px; border-radius:999px; background:var(--cyan); color:#04141C; font:700 .72rem/1 var(--body); letter-spacing:.08em; text-transform:uppercase; pointer-events:none; }
  .cc-badge svg { width:14px; height:14px; }
  .cc-match { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; padding:10px 12px; border-radius:10px; background:var(--chalk); color:var(--ink); text-decoration:none; }
  .cc-match:hover { background:var(--line); }
  .cc-match-t { display:grid; gap:2px; min-width:0; }
  .cc-match-t small { color:var(--muted); font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
  .cc-match-t b { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cc-match-t i { font-style:normal; color:var(--muted); font-size:.82rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cc-match-go { flex:none; color:var(--cyan); font-weight:700; font-size:.9rem; }
  .m-leadbar { display:grid; gap:8px; margin-top:10px; }
  .m-leadbar p { display:flex; align-items:center; gap:8px; margin:0; font-size:.9rem; line-height:1.35; min-width:0; }
  .m-leadbar p > span { overflow-wrap:anywhere; }
  .m-leadbar p a { color:inherit; }
  .m-clipbar .plain.is-primary { border-color:var(--cyan); }
  .m-moreclips { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; }
  .m-cliptile { position:relative; flex:none; width:128px; aspect-ratio:16 / 9; border-radius:8px; overflow:hidden; background:#000; }
  .m-cliptile img { display:block; width:100%; height:100%; object-fit:cover; }
  .m-cliptile span { position:absolute; left:6px; bottom:6px; padding:2px 6px; border-radius:999px; background:rgba(0,0,0,.65); color:#fff; font:600 .7rem/1.2 var(--body); font-variant-numeric:tabular-nums; }
  .spoil { display:contents; }
  .m-racks.is-hidden i { font-style:normal; color:var(--muted); }
  .m-shield { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; margin-top:10px; padding:8px 8px 8px 12px; border-radius:10px; background:var(--chalk); color:var(--muted); font-size:.88rem; }
  .m-shield > span { display:inline-flex; align-items:center; gap:8px; }
  .m-shield svg { width:18px; height:18px; flex:none; }
  .m-shield .plain { height:2.2rem; border-radius:999px; }
  .m-story { margin:10px 0 0; text-align:center; font:italic 800 1.05rem/1.2 var(--display); text-transform:uppercase; letter-spacing:.01em; color:var(--cyan-deep); text-wrap:balance; }
  .m-resume { display:flex; align-items:center; gap:12px; margin-top:8px; }
  .m-resume .plain { display:inline-flex; align-items:center; gap:8px; height:2.4rem; border-radius:999px; border-color:var(--cyan); font-weight:600; }
  .m-resume .plain svg { width:18px; height:18px; }
  .m-resume-bar { flex:1; max-width:160px; height:4px; border-radius:2px; background:var(--line); overflow:hidden; }
  .m-resume-bar i { display:block; height:100%; background:var(--cyan); }
  .m-racks-row { display:flex; align-items:center; gap:6px; margin-top:8px; overflow-x:auto; scrollbar-width:none; padding:2px 0; }
  .m-racks-row::-webkit-scrollbar { display:none; }
  .m-racks-row > span { flex:none; color:var(--muted); font-size:.75rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-right:2px; }
  .m-rack { flex:none; display:inline-flex; align-items:center; gap:7px; height:2.1rem; padding:0 12px 0 4px; border-radius:999px; border:1px solid var(--line); color:var(--ink); font-size:.85rem; font-weight:600; text-decoration:none; }
  .m-rack b { display:grid; place-items:center; width:1.55rem; height:1.55rem; border-radius:50%; background:var(--chalk); font-size:.75rem; }
  .m-rack:hover { border-color:var(--muted); }
  .m-rack.on { border-color:var(--cyan); }
  .m-rack.on b { background:var(--cyan); color:var(--on-solid); }
  .m-clipbar .plain { display:inline-flex; align-items:center; gap:8px; height:2.4rem; padding:0 16px; border-radius:999px; font-weight:600; }
  .m-clipbar .plain svg { width:18px; height:18px; }
  .m-clipbar small { color:var(--muted); font-size:.85rem; }
  .m-clipbar small a { color:inherit; }
  .clip-full { margin-top:14px; }
  /* Back to the match this phone is scoring (RESUME_SCRIPT) */
  .resume { position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:45; display:flex; align-items:center; max-width:32rem; margin:0 auto;
    background:var(--ink); color:var(--card); border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.28); animation:sheet-up .26s cubic-bezier(.2, .9, .3, 1); }
  .resume a { flex:1; min-width:0; display:flex; align-items:center; gap:12px; padding:10px 6px 10px 14px; color:inherit; text-decoration:none; }
  .resume-dot { flex:none; width:10px; height:10px; border-radius:50%; background:#E0243A; box-shadow:0 0 0 4px rgba(224,36,58,.25); }
  .resume-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .resume-t b { font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }
  .resume-t small { font-size:.78rem; opacity:.75; }
  .resume-go { flex:none; padding:7px 14px; border-radius:999px; background:var(--cyan); color:#fff; font-weight:700; font-size:.9rem; }
  .resume button { flex:none; width:40px; height:44px; border:0; background:none; color:inherit; opacity:.6; font-size:1.3rem; cursor:pointer; }
  html.app .resume { bottom:calc(76px + env(safe-area-inset-bottom)); }
  @media (prefers-reduced-motion: reduce) { .resume { animation:none; } }
  @keyframes sheet-fade { from { opacity:0; } to { opacity:1; } }

  /* ---------- Phones ---------- */
  html { -webkit-tap-highlight-color:transparent; }
  .nav-progress { position:fixed; top:env(safe-area-inset-top, 0px); left:0; z-index:1000; width:0; height:3px; border-radius:0 2px 2px 0; background:var(--cyan); box-shadow:0 0 10px var(--cyan); opacity:0; pointer-events:none; transition:width 6s cubic-bezier(.08,.82,.17,1), opacity .2s; }
  html.navigating .nav-progress { width:88%; opacity:1; }
  .is-tapped { opacity:.55; transition:opacity .08s; }
  html.navigating main { opacity:.82; transition:opacity .25s .35s; }
  @media (prefers-reduced-motion: reduce) { .nav-progress { transition:opacity .2s; } html.navigating .nav-progress { width:100%; opacity:.9; } html.navigating main { transition:none; } }
  .plain:active { background:var(--chalk); }
  .follow:active { opacity:.8; }
  .follow[aria-pressed="true"]:active { background:var(--chalk); }
  @media (max-width:620px) {
    .wrap { padding:12px 16px 48px; }
    .nav { margin:0 -16px; padding:0 16px; }
    .section { margin:36px 0 12px; }
  }

  /* ---------- The app (home screen or the store app) ---------- */
  /* A compact bar pinned to the top: the logo, then notifications and you. The theme follows the phone (and lives in
     Edit profile), so it isn't taking a slot here. */
  html.app .wrap { padding-top:0; }
  html.app .top { position:sticky; top:0; z-index:30; min-height:52px; margin:0 -16px 18px; padding:4px 10px 4px 16px; border-bottom:1px solid var(--line);
    background:color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter:saturate(1.8) blur(18px); backdrop-filter:saturate(1.8) blur(18px); }
  html.app .brand { font-size:1.3rem; }
  .top-l { display:flex; align-items:center; min-width:0; }
  .back { display:none; }
  html.app .top.has-back .back { display:grid; place-items:center; width:40px; height:44px; margin:0 2px 0 -10px; color:var(--ink); border-radius:50%; }
  html.app .top.has-back .back:active { background:var(--chalk); }
  html.app .top .theme { display:none; }
  html.app .me { gap:0; }
  html.app .bell, html.app .adm { width:44px; height:44px; }
  html.app .me .av-link { margin-left:6px; }
  html.app .me .av { --s:32px !important; width:32px; height:32px; font-size:.8rem; }
  html.app .bell i { top:4px; right:3px; }
  html.app .title { font-size:2rem; }
  html.app .eyebrow { font-size:.72rem; }
  html.app .lede { font-size:1rem; }
  html.tabs-ui .appbar { padding-top:4px; background:color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter:saturate(1.8) blur(18px); backdrop-filter:saturate(1.8) blur(18px); }
  html.tabs-ui .atab { user-select:none; -webkit-user-select:none; }
  html.tabs-ui .atab:active svg, html.tabs-ui .atab:active .plus-box { transform:scale(.9); }
  html.tabs-ui .atab:active .plus-box { transform:skewX(-12deg) scale(.9); }
  html.app a, html.app button { -webkit-touch-callout:none; }
  /* Rows light up under a finger, the way a native list does */
  html.app .plist li:has(.who:active), html.app .board li:has(.who:active), html.app .mini li:has(.who:active) { background:var(--chalk); }
  /* Match lists run edge to edge with a band between them, instead of boxes inside a margin. Not the feed: its items
     are cards on a tinted ground (FEED_CSS) */
  html.app .matches { gap:0; margin-left:-16px; margin-right:-16px; }
  html.app .match:not(.stream > .match) { border:0; border-radius:0; border-bottom:8px solid var(--band); padding:14px 16px 8px; }
  html.app .match:not(.stream > .match) .m-media { margin-left:-16px; margin-right:-16px; border-radius:0; }
  html.app .m-kicker { margin-top:-2px; }
  @media (prefers-reduced-motion: reduce) { * { transition:none !important; } }
