/* Game Hub — components on top of style.css (Nocturne tokens + base elements). Same rules:
   outlined buttons, accent as line/mark/glow only, fading rules, weight-500 headings. RSVP and
   ownership use the positive/danger pair as text and small dots, never fills.
   NB: the CSP blocks inline style="" attributes — dynamic geometry is set from JS (CSSOM). */
:root { --faint: color-mix(in srgb, var(--color-text) 40%, transparent); --rowline: color-mix(in srgb, var(--color-text) 8%, transparent); }
.muted, .text-muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; } .tiny { font-size: 11.5px; } .mono { font-family: var(--font-mono); }
.kicker { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-3); }
.h6 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-6); }
.hidden { display: none !important; }
.rowline + .rowline { background: linear-gradient(to right, transparent, var(--rowline) 48px, var(--rowline) calc(100% - 48px), transparent) no-repeat top / 100% 1px; }
h1.hub-title { font-size: 42px; margin: 0 0 var(--space-2); }
h2 { margin-top: 0; }

button.sm { font-size: 12.5px; padding: 4px 9px; }
button.ghost { border-color: transparent; color: var(--muted); }
button.ghost:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
button.icon { width: 36px; height: 36px; padding: 0; color: var(--color-text); border-color: var(--color-divider); }
button.icon.sm { width: 28px; height: 28px; }
button.on { box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 35%, transparent); }
.btnlink { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--font-heading); font-weight: 500; font-size: 14px;
  color: var(--color-accent); border: 1px solid var(--color-accent); border-radius: var(--radius-md); padding: var(--space-2) calc(var(--space-3) * 1.2); }
.btnlink.secondary { color: var(--color-text); border-color: var(--color-divider); }
.btnlink.sm { font-size: 12.5px; padding: 4px 9px; }
.btnlink:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: .02em; padding: 3px 10px; border-radius: calc(var(--radius-md) * .75); white-space: nowrap; }
.tag.accent { background: var(--color-accent-800); color: var(--color-accent-100); }
.tag.neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }
.tag.outline { border: 1px solid var(--color-accent); color: var(--color-accent); }
.tag.quiet { border: 1px solid var(--color-divider); color: var(--muted); }
.tag.dashed { border: 1px dashed var(--color-neutral-600); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.up { background: var(--color-accent); box-shadow: 0 0 10px var(--color-accent); }
.dot.down { background: var(--color-neutral-700); }
.going { color: var(--color-positive); } .maybe { color: var(--color-accent-300); } .nope { color: var(--color-danger); }
.mark { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- header */
.hub-top { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-8); }
.hub-nav { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-6) 0; }
.brand { font-family: var(--font-heading); font-weight: 500; font-size: 17px; display: flex; align-items: center; gap: 8px; color: var(--color-text); text-decoration: none; }
.brand:hover { color: var(--color-text); }
/* The name gives way first on narrow phones (at 360px the bar ran 10px past the screen). */
.brand { min-width: 0; } .brand-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-nav > :not(.brand) { flex: none; }
@media (max-width: 380px) { .hub-nav { gap: 6px; } }
.brand-mark { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--color-accent); box-shadow: 0 0 10px color-mix(in srgb, var(--color-accent) 45%, transparent); flex: none; }
.links { display: flex; gap: var(--space-2); margin-right: auto; margin-left: var(--space-6); }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 10px; }
.links a:hover { color: var(--color-text); }
.links a.on { color: var(--color-text); box-shadow: inset 0 -1px 0 var(--color-accent); }
.bell { position: relative; }
.pip { position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--color-bg);
  border: 1px solid var(--color-accent); color: var(--color-accent); font-size: 9.5px; line-height: 13px; text-align: center; font-family: var(--font-body); }
.subnav { display: flex; align-items: center; gap: var(--space-2); padding: 0 0 var(--space-6); font-size: 13px; flex-wrap: wrap; }
.subnav .crumb { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); margin-right: var(--space-4); }
.subnav a { color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: var(--radius-md); }
.subnav a.on, .subnav a:hover { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.tabbar { display: none; }
@media (max-width: 760px) {
  .hub-top { padding: 0 16px; }
  .hub-nav { padding: 14px 0; gap: 10px; }
  .links, .hub-nav .newbtn span, .hub-nav .adminbtn span { display: none; }
  .brand { margin-right: auto; font-size: 15px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-around; padding: 8px 0 calc(10px + env(safe-area-inset-bottom));
    background: var(--color-bg); background-image: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent);
    background-size: 100% 1px; background-repeat: no-repeat; }
  .tabbar a { font-size: 10.5px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; }
  .tabbar a.on { color: var(--color-accent); }
  main { padding: 0 16px 90px; }
  h1.hub-title { font-size: 32px; }
}

/* ---------------------------------------------------------------- avatars */
.av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 12px; font-weight: 500; color: var(--color-accent-100); background: var(--color-accent-900); box-shadow: 0 0 0 1px var(--color-accent-800); text-decoration: none; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 96px; height: 96px; font-size: 32px; }
.av.n { background: var(--color-neutral-900); color: var(--color-neutral-300); box-shadow: 0 0 0 1px var(--color-neutral-800); }
.av.ring { box-shadow: 0 0 0 1.5px var(--color-accent), 0 0 10px color-mix(in srgb, var(--color-accent) 40%, transparent); }
.stack-av { display: inline-flex; } .stack-av .av { margin-left: -5px; box-shadow: 0 0 0 2px var(--color-surface); } .stack-av .av:first-child { margin-left: 0; }

/* ---------------------------------------------------------------- covers */
.cover { border-radius: var(--radius-sm); flex: none; background: var(--color-neutral-900); box-shadow: 0 0 0 1px var(--color-neutral-800); overflow: hidden; position: relative; }
.cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--color-text) 4%, transparent) 9px 10px); }
.cover img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.c44 { width: 44px; height: 44px; } .cover.c88 { width: 88px; height: 88px; } .cover.cw { width: 64px; height: 30px; }
.cover.hero { width: 100%; height: 200px; border-radius: var(--radius-lg); }

/* ---------------------------------------------------------------- page layouts */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
/* Interest check page: comments sit under the details in the main column, and below the vote
   panels once the grid stacks on a phone. */
.icheck > .iside { grid-row: span 2; }
.icheck > .icmts { grid-column: 1; }
.icmt { display: flex; align-items: flex-start; gap: var(--space-3); padding: 10px 0; }
.icmt .row.between > .small { flex: 1 1 160px; min-width: 0; }
/* Replies sit under their comment, indented to the text column (24px avatar + the row gap). */
.ireplies { margin-left: calc(24px + var(--space-3)); }
.ireplies .icmt { padding: 6px 0; }
.ireplies:empty { display: none; }
.ireply { padding: 6px 0 10px; }
.icmtact { gap: 2px; flex: none; }
.ithread { border-radius: var(--radius-sm); transition: box-shadow .6s; }
.ithread.flash { box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 45%, transparent); }
@media (max-width: 980px) {
  .two { grid-template-columns: 1fr; }
  .icheck > .iside { grid-row: auto; }
  /* Forms (new session, interest check): stacked on a phone, the side panels (invitees, reel
     preview) used to sit *below* the Save button. The field column dissolves into the grid so its
     action row (+ error line) can move to the very end. */
  .form-two { row-gap: var(--space-4); }
  .form-two > .fields { display: contents; }
  .form-two > :not(.fields) { order: 1; margin-top: var(--space-4); }
  .form-two .form-actions { order: 2; } .form-two .form-actions > :last-child { margin-left: auto; } .form-two > .fields > .err { order: 3; }
}
.panel { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-4) var(--space-6); }
.panel.lg { border-radius: var(--radius-lg); padding: var(--space-6) var(--space-8); }

/* home */
.next { position: relative; overflow: hidden; }
.next::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--color-accent); box-shadow: 0 0 12px var(--color-accent); }
.when { font-family: var(--font-heading); font-weight: 500; font-size: 13px; color: var(--color-accent-300); letter-spacing: .02em; }
.ev-row { display: grid; grid-template-columns: 56px 44px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; color: inherit; text-decoration: none; }
.ev-row:hover .ev-title { color: var(--color-accent-300); }
.ev-title { font-family: var(--font-heading); font-weight: 500; font-size: 15px; }
.date { text-align: center; line-height: 1.1; } .date b { display: block; font-weight: 500; font-size: 22px; } .date span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.srv-mini { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-3) 0; }
.addr { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; word-break: break-all; }
.empty { padding: var(--space-8); text-align: center; color: var(--muted); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-divider); }

/* public */
.pub { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; margin-top: 32px; }
@media (max-width: 860px) { .pub { grid-template-columns: 1fr; gap: 32px; } }
.pub-srv { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.pub-srv .name { font-family: var(--font-heading); font-weight: 500; font-size: 16px; margin-right: auto; }
.signin { padding: var(--space-8); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.signin button.block, button.block { width: 100%; padding: 10px; }
/* BGG XML API terms: "Powered by BGG" logo, linked back, text legible. Reversed artwork = for dark grounds. */
.bgg-logo { display: inline-block; margin-top: var(--space-6); } .bgg-logo img { display: block; width: 150px; height: auto; }
.or { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin: var(--space-4) 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--color-divider); }

/* ---------------------------------------------------------------- segmented control / switch / checks */
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.seg button { border: 0; border-radius: 0; color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 13px; padding: 6px 12px; }
.seg button + button { border-left: 1px solid var(--color-divider); }
.seg button.on { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); background: transparent; }
.tgl { position: relative; display: inline-block; width: 34px; height: 19px; flex: none; border-radius: 999px; border: 1.5px solid var(--color-divider); cursor: pointer; background: transparent; padding: 0; }
.tgl::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--color-neutral-600); }
.tgl.on { border-color: var(--color-accent); background: var(--color-accent-900); box-shadow: none; }
.tgl.on::after { left: auto; right: 3px; background: var(--color-accent); }
.chk { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--color-divider); flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: transparent; background: transparent; }
.chk svg { width: 11px; height: 11px; }
.chk.on { border-color: var(--color-accent); color: var(--color-accent); }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-divider); cursor: pointer; }
.opt.on { box-shadow: inset 0 0 0 1px var(--color-accent); }
.opt .chk { margin-top: 2px; }
.note { border-radius: var(--radius-md); padding: 10px 12px; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--color-divider); display: flex; gap: 10px; color: var(--muted); }
.field label { margin-top: 0; }
.fields { display: flex; flex-direction: column; gap: var(--space-4); }
.fields > :empty { display: none; }   /* placeholder slots (dup banner, Steam preview) shouldn't add a double gap */
.frow { display: flex; gap: var(--space-4); align-items: flex-end; }
.frow > .field { flex: 1; }
@media (max-width: 560px) { .frow { flex-wrap: wrap; } }

/* ---------------------------------------------------------------- calendar: week */
.cal-tools { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 var(--space-6); flex-wrap: wrap; }
.cal-scroll { overflow-x: auto; }
.cal { position: relative; display: grid; grid-template-columns: 48px repeat(7, minmax(92px, 1fr)); column-gap: 6px; min-width: 760px; }
.dh { padding: 0 8px 10px; line-height: 1.1; cursor: pointer; }
.dh span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }
.dh b { font-weight: 500; font-size: 20px; }
.dh.today span, .dh.today b { color: var(--color-accent); }
.dh.today b { text-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 60%, transparent); }
.cal-body { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: 48px repeat(7, minmax(92px, 1fr)); column-gap: 6px; }
.cal-body > * { position: absolute; left: 0; right: 0; }
.hl { grid-column: 1 / -1; height: 1px; background: linear-gradient(to right, transparent 48px, color-mix(in srgb, var(--color-text) 7%, transparent) 96px, color-mix(in srgb, var(--color-text) 7%, transparent) calc(100% - 48px), transparent); }
.hl span { position: absolute; left: 0; top: -8px; font-size: 10.5px; color: var(--faint); font-family: var(--font-mono); }
.colbg { top: 0; bottom: 0; border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-surface) 45%, transparent); cursor: copy; }
.free { border-radius: 2px; pointer-events: none; }
.free-1 { background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--color-accent) 8%, transparent) 7px 8px); }
.free-2 { background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--color-accent) 12%, transparent) 5px 6px); }
.free-3 { background: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in srgb, var(--color-accent) 16%, transparent) 3px 4px); }
.blk { margin: 2px 3px; padding: 6px 8px 6px 10px; border-radius: var(--radius-sm); background: var(--color-surface); color: inherit; text-decoration: none;
  box-shadow: var(--shadow-sm), inset 2px 0 0 var(--color-accent); overflow: hidden; z-index: 2; }
.blk:hover { box-shadow: var(--shadow-md), inset 2px 0 0 var(--color-accent); }
.blk.ext { box-shadow: var(--shadow-sm), inset 2px 0 0 var(--color-neutral-600); }
.blk.mine { box-shadow: 0 0 0 1px var(--color-accent), inset 2px 0 0 var(--color-accent), 0 0 18px color-mix(in srgb, var(--color-accent) 25%, transparent); }
.blk.past { opacity: .45; }
.bt { font-size: 12.5px; font-weight: 500; line-height: 1.25; }
.bs { font-size: 11px; color: var(--muted); margin-top: 2px; }
.bst { font-size: 10.5px; color: var(--color-accent-300); margin-top: 5px; }
.bst.warn { color: var(--color-danger); }
.now { height: 0; border-top: 1px solid var(--color-accent); box-shadow: 0 0 8px var(--color-accent); z-index: 3; pointer-events: none; }
.now::before { content: ""; position: absolute; left: -4px; top: -4.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.legend { display: flex; gap: var(--space-6); font-size: 11.5px; color: var(--muted); margin-top: var(--space-6); align-items: center; flex-wrap: wrap; }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--color-surface); }
.sw.ours { box-shadow: inset 2px 0 0 var(--color-accent); } .sw.other { box-shadow: inset 2px 0 0 var(--color-neutral-600); }

/* month */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mh { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 6px 4px; }
.mc { min-height: 108px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--color-surface) 45%, transparent); padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: copy; }
.mc.out { opacity: .4; }
.mc .n { font-size: 12px; color: var(--muted); } .mc.today .n { color: var(--color-accent); font-weight: 500; }
.chip { font-size: 11px; padding: 2px 6px; border-radius: 3px; background: var(--color-surface); box-shadow: inset 2px 0 0 var(--color-accent); color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.ext { box-shadow: inset 2px 0 0 var(--color-neutral-600); }
@media (max-width: 760px) { .mc { min-height: 64px; } .chip { font-size: 0; height: 6px; padding: 0; } }

/* agenda */
.ag-day { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px; }
.ag-day.today { color: var(--color-accent); }
.ag { display: block; margin: 0 0 8px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-surface); color: inherit; text-decoration: none;
  box-shadow: var(--shadow-sm), inset 2px 0 0 var(--color-accent); }
.ag.ext { box-shadow: var(--shadow-sm), inset 2px 0 0 var(--color-neutral-600); }
.ag.mine { box-shadow: 0 0 0 1px var(--color-accent), inset 2px 0 0 var(--color-accent); }
.ag.cancelled { opacity: .5; }

/* ---------------------------------------------------------------- game picker */
.picker-wrap { position: relative; }
.picker-wrap .sicon { position: absolute; left: 10px; top: 10px; color: var(--muted); pointer-events: none; }
.picker-wrap input { padding-left: 34px; }
/* In-flight search (Steam/BGG can take a few seconds): a small ring at the input's right edge. */
.picker-wrap.busy input { padding-right: 34px; }
.picker-wrap.busy::after { content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border: 1.5px solid var(--color-divider); border-top-color: var(--color-accent); border-radius: 50%; animation: pk-spin .8s linear infinite; pointer-events: none; }
@keyframes pk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .picker-wrap.busy::after { animation-duration: 2.4s; } }
.picker { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-md); overflow: hidden; max-height: 420px; overflow-y: auto; }
.pk-sec { padding: 8px 12px 4px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
/* thin indeterminate bar under a picker section that's still fetching (BGG / IGDB) */
.pk-load { position: relative; height: 2px; margin: 2px 12px 8px; overflow: hidden; border-radius: 1px; background: var(--color-divider); }
.pk-load::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; background: var(--color-accent); animation: pk-slide 1.1s ease-in-out infinite; }
@keyframes pk-slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .pk-load::after { animation-duration: 3s; } }
.pk-row { display: flex; align-items: center; gap: var(--space-4); padding: 9px 12px; cursor: pointer; }
.pk-row:hover, .pk-row.hi { background: color-mix(in srgb, var(--color-accent) 8%, transparent); box-shadow: inset 2px 0 0 var(--color-accent); }
.src { font-size: 10px; color: var(--faint); font-family: var(--font-mono); }
.picked { display: flex; align-items: center; gap: var(--space-4); padding: 8px 12px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-accent); }

/* availability strips (new session) */
.srow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.srow .dl { width: 52px; font-size: 11.5px; color: var(--muted); }
.slots { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.sl { height: 18px; border-radius: 2px; background: var(--color-neutral-900); border: 0; padding: 0; cursor: pointer; }
.sl:hover { box-shadow: 0 0 0 1px var(--color-accent-300); background-color: inherit; }
.sl-1 { background: color-mix(in srgb, var(--color-accent) 18%, var(--color-neutral-900)); }
.sl-2 { background: color-mix(in srgb, var(--color-accent) 36%, var(--color-neutral-900)); }
.sl-3 { background: color-mix(in srgb, var(--color-accent) 58%, var(--color-neutral-900)); }
.sl.pick { box-shadow: 0 0 0 1px var(--color-accent-300); }
.exp-list { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.cap-hint { margin: 0 0 10px; }
.inv { display: flex; align-items: center; gap: var(--space-3); padding: 7px 0; cursor: pointer; }

/* ---------------------------------------------------------------- session page */
.banner { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); margin-bottom: var(--space-6);
  box-shadow: 0 0 0 1px var(--color-accent), 0 0 24px color-mix(in srgb, var(--color-accent) 18%, transparent); flex-wrap: wrap; }
.banner.quiet { box-shadow: 0 0 0 1px var(--color-divider); }
/* .grow's flex-basis is 0, so on its own a wrapping row never wraps — it squeezes the text into a
   ~3px column instead (the phone check-in banner, CHANGELOG 2026-10-06). Text claims 240px first;
   below that the buttons drop to their own row and share it. */
.banner > .grow { flex: 1 1 240px; }
/* Home's next-session footer: the status line keeps its words together and wraps as a whole. */
.next-foot > .grow { flex: 1 1 auto; }
@media (max-width: 560px) { .banner > button, .banner > .btnlink { flex: 1 1 auto; justify-content: center; } }
.att { display: flex; align-items: center; gap: var(--space-3); padding: 8px 0; }
.rsvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.rsvp button { color: var(--color-text); border-color: var(--color-divider); }
.rsvp button.sel-going { color: var(--color-positive); border-color: var(--color-positive); }
.rsvp button.sel-maybe { color: var(--color-accent-300); border-color: var(--color-accent-300); }
.rsvp button.sel-no { color: var(--color-danger); border-color: var(--color-danger); }
.timeline { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.tl { display: grid; grid-template-columns: 58px 12px 1fr; gap: 10px; align-items: start; }
.tl i { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--color-neutral-700); }
.tl i.on { background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent); }

/* ---------------------------------------------------------------- notifications popover */
.npanel { position: absolute; right: 0; top: calc(100% + 8px); width: 400px; max-width: calc(100vw - 24px); z-index: 50; border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.nph { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.nlist { max-height: 460px; overflow-y: auto; }
.nt { display: flex; gap: 12px; padding: 12px 16px; position: relative; cursor: pointer; color: inherit; }
.nt:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.nt.un::after { content: ""; position: absolute; right: 16px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent); }
.ni { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--color-accent-300); box-shadow: inset 0 0 0 1px var(--color-divider); }
.nbody { font-size: 13px; padding-right: 14px; }
@media (max-width: 760px) { .npanel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }

/* ---------------------------------------------------------------- people + profile */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-3); }
.pcard { display: flex; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; }
.pcard:hover { box-shadow: var(--shadow-md); }
.pf { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .pf { grid-template-columns: 1fr; } }
.sect + .sect { margin-top: var(--space-8); }
.agrid { display: grid; grid-template-columns: 36px repeat(24, 1fr); gap: 2px; align-items: center; user-select: none; touch-action: none; }
.agrid i { height: 22px; border-radius: 3px; background: var(--color-neutral-900); display: block; }
.agrid.edit i { cursor: crosshair; }
.agrid i.g1 { background: color-mix(in srgb, var(--color-accent) 55%, var(--color-neutral-900)); }
.agrid i.g2 { background: repeating-linear-gradient(135deg, var(--color-neutral-900) 0 3px, color-mix(in srgb, var(--color-accent) 40%, var(--color-neutral-900)) 3px 5px); }
.agrid .hh { font-size: 9.5px; color: var(--faint); font-family: var(--font-mono); }
.agrid .dd { font-size: 11px; color: var(--muted); }
.pr { display: grid; grid-template-columns: minmax(0, 1fr) 56px 56px 56px; align-items: center; padding: 8px 0; justify-items: center; }
.pr > :first-child { justify-self: start; }
.acct { display: flex; align-items: center; gap: var(--space-4); padding: 10px 0; flex-wrap: wrap; }
.fav { display: flex; gap: 8px; flex-wrap: wrap; }
.fav .tag button { border: 0; padding: 0 0 0 4px; color: var(--faint); font-size: 13px; line-height: 1; background: none; }

/* ---------------------------------------------------------------- modal + toast */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(8, 9, 16, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 420px; max-width: 100%; background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-8); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--color-surface); box-shadow: var(--shadow-md);
  border-radius: var(--radius-md); padding: 10px 16px; font-size: 13.5px; }
.toast.bad { color: var(--color-danger); }
@media (max-width: 760px) { .toast { bottom: 84px; } }

/* ---------------------------------------------------------------- utilities used by hub.js */
.hub-h3 { font-size: 20px; margin: var(--space-6) 0 var(--space-3); }
.m0 { margin: 0 !important; } .mt6 { margin-top: 6px; } .mt12 { margin-top: 12px; } .mt18 { margin-top: 18px; } .mb4 { margin-bottom: 4px; } .mb8 { margin-bottom: 8px; }
.pt14 { padding-top: 14px; } .pad { padding: 12px 16px; }
.gap2 { gap: 6px; } .gap6 { gap: var(--space-6); } .wrap { flex-wrap: wrap; } .end { align-items: flex-end; }
.w120 { flex: 0 0 120px !important; } .w52 { width: 52px; } .w84 { width: 84px; } .wauto { width: auto; }
.ta-r { text-align: right; } .b500 { font-weight: 500; } .accent { color: var(--color-accent); } .accent3 { color: var(--color-accent-300); } .big { font-size: 18px; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .prewrap { white-space: pre-wrap; }
.dim { opacity: .5; } a.plain { color: inherit; text-decoration: none; } a.plain:hover { color: var(--color-accent-300); }
.lead { max-width: 440px; margin-top: var(--space-3); }
.narrow { max-width: 520px; margin: 24px auto 0; }
.card-title { font-family: var(--font-heading); font-weight: 500; font-size: 16px; line-height: 1.25; }
.avwrap { position: relative; width: 96px; }
.avbtn { position: absolute; right: -6px; bottom: -2px; width: 30px; height: 30px; margin: 0; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-bg); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-divider); cursor: pointer; }
.avbtn:hover { color: var(--color-accent); }
.sw.g1 { background: color-mix(in srgb, var(--color-accent) 55%, var(--color-neutral-900)); }
.sw.g2 { background: repeating-linear-gradient(135deg, var(--color-neutral-900) 0 3px, color-mix(in srgb, var(--color-accent) 40%, var(--color-neutral-900)) 3px 5px); }
.row .sw { margin: 0 2px 0 8px; }
input[readonly] { color: var(--muted); }
.btnlink.block { display: flex; justify-content: center; width: 100%; padding: 10px; }

/* home: expandable server rows (who's online) */
.srv-btn { width: 100%; border: 0; border-radius: var(--radius-sm); background: none; padding: var(--space-3) 0; color: inherit; font: inherit; font-weight: 400; text-align: left; cursor: pointer; }
.srv-btn:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.srv-btn .caret { color: var(--faint); transition: transform .15s; display: inline-flex; }
.srvx.open .caret { transform: rotate(90deg); color: var(--color-accent); }
.ta-l { text-align: left; }
.who { padding: 0 0 var(--space-4) 24px; }
.who-list { display: flex; flex-direction: column; gap: 6px; }
.srv-btn.srv-mini { grid-template-columns: 8px minmax(0, 1fr) auto 16px; }

/* servers page: a list of equal full-width cards */
.srvlist { display: flex; flex-direction: column; gap: var(--space-3); }
.srvcard { display: grid; grid-template-columns: 8px minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: var(--space-8); align-items: center;
  min-height: 104px; padding: var(--space-6) var(--space-8); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.srvcard.up { box-shadow: var(--shadow-sm), inset 2px 0 0 var(--color-accent); }
.sc-main, .sc-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
@media (max-width: 860px) {
  .srvcard { grid-template-columns: 8px minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-6); }
  .srvcard .dot { margin-top: 6px; }
  .sc-col, .sc-act { grid-column: 2; }
  .sc-act { flex-direction: row; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- admin (/admin) in the hub language
   Same header, section heads and spacing rhythm as the hub; servers are one list of long cards. */
main.adm .adm-head { margin: var(--space-8) 0 var(--space-4); }
main.adm #servers.adm-head { margin-top: 0; }
main.adm .adm-head h2 { font-size: 32px; margin: 0 0 var(--space-1); }
main.adm .adm-head p { margin: 0; max-width: 760px; }
main.adm .adm-head + .card, main.adm .adm-head + .srv-grid, main.adm .adm-head + .adm-two { margin-top: 0; }
main.adm .adm-head:not(#servers) { margin-top: var(--space-8); padding-top: var(--space-8);
  background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent) no-repeat top / 100% 1px; }
main.adm .adm-h3 { font-size: 17px; margin: 0 0 var(--space-2); }
main.adm .card { padding: var(--space-6) var(--space-8); margin: 0 0 var(--space-3); }
main.adm .adm-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-3); align-items: start; }
main.adm .adm-two > .card { margin: 0; }
main.adm .adm-two + .card { margin-top: var(--space-3); }
@media (max-width: 900px) { main.adm .adm-two { grid-template-columns: 1fr; } }
/* servers: single column of long cards */
main.adm .srv-grid { grid-template-columns: 1fr; gap: var(--space-3); }
main.adm .srv-row { padding: var(--space-4) var(--space-8); }
main.adm .srv-row .card-head { justify-content: flex-start; gap: var(--space-4); }
main.adm .srv-row .card-title { font-size: 17px; }
main.adm .srv-row .actions { margin-top: var(--space-3); padding-left: calc(8px + var(--space-4)); }
main.adm .srv-row .terminal, main.adm .srv-row .wlbox { margin-top: var(--space-4); }
main.adm .srv-row:has(.dot.up) { box-shadow: var(--shadow-sm), inset 2px 0 0 var(--color-accent); }
/* invite role picker */
main.adm .grid { grid-template-columns: minmax(0, 1fr) 160px; gap: var(--space-2) var(--space-4); margin: var(--space-4) 0; font-size: 14px; }
main.adm .field { margin-top: var(--space-2); }
main.adm .actions { margin-top: var(--space-4); }
/* tables */
main.adm table td, main.adm table th { padding: var(--space-3) var(--space-2); }
main.adm table.audit td { font-size: 13px; padding: var(--space-2); }
main.adm .utable td:first-child .muted { font-size: 12px; }
/* backups spacing */
main.adm .bk-topstatus { margin-bottom: var(--space-6); }
main.adm .bk-defsched { margin-bottom: var(--space-6); }
main.adm .bk-acc-head { padding: var(--space-3) var(--space-4); }

.srv-btn .addr { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.sc-col > .tag { align-self: flex-start; }

/* privacy page */
main.legal { max-width: 760px; }
main.legal ul { padding-left: 20px; margin: 0; } main.legal li { margin: 6px 0; }
main.legal p { margin: 0 0 var(--space-4); }

/* ---------------------------------------------------------------- servers: management bar */
.srvcard .sc-manage, .srvcard .sc-panel { grid-column: 1 / -1; }
.sc-manage { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding-top: var(--space-4); margin-top: calc(var(--space-2) * -1);
  background: linear-gradient(to right, transparent, var(--rowline) 48px, var(--rowline) calc(100% - 48px), transparent) no-repeat top / 100% 1px; }
.sc-manage button.on { color: var(--color-accent); border-color: var(--color-accent); }
.sc-manage .lc { display: inline-flex; gap: var(--space-2); margin-left: var(--space-3); }
.sc-panel:empty { display: none; }
.sc-panel .terminal, .sc-panel .wlbox { margin-top: 0; }
@media (max-width: 860px) { .srvcard .sc-manage, .srvcard .sc-panel { grid-column: 1 / -1; } .sc-manage .lc { margin-left: 0; } }

/* ---------------------------------------------------------------- admin: tools, chips, people list */
.acc-tools { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin: 0 0 var(--space-4); }
.acc-tools .picker-wrap { min-width: 220px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-f { border: 1px solid var(--color-divider); color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
.chip-f .n { color: var(--faint); margin-left: 2px; }
.chip-f.on { color: var(--color-accent); border-color: var(--color-accent); background: transparent; }
.plist { display: flex; flex-direction: column; border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.prow { display: grid; grid-template-columns: 32px minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 1fr) 110px 16px; gap: var(--space-4); align-items: center;
  width: 100%; padding: var(--space-3) var(--space-6); border: 0; border-radius: 0; background: none; color: inherit; font: inherit; font-weight: 400; text-align: left; cursor: pointer; }
.prow + .prow { background: linear-gradient(to right, transparent, var(--rowline) 48px, var(--rowline) calc(100% - 48px), transparent) no-repeat top / 100% 1px; }
button.prow:hover { background-color: color-mix(in srgb, var(--color-text) 4%, transparent); }
.prow.static { cursor: default; grid-template-columns: 32px minmax(0, 1.3fr) minmax(0, 1.5fr) 0 0 auto; }
.prow.off { opacity: .55; }
.p-id { display: flex; flex-direction: column; min-width: 0; } .p-id > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-name { font-weight: 500; font-size: 14.5px; }
.p-roles { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.p-go { color: var(--faint); display: inline-flex; }
.rpill { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.r-member { box-shadow: inset 0 0 0 1px var(--color-divider); color: var(--muted); }
.r-moderator { background: var(--color-neutral-800); color: var(--color-neutral-100); }
.r-admin { box-shadow: inset 0 0 0 1px var(--color-accent); color: var(--color-accent); }
.r-sysadmin { background: var(--color-accent-800); color: var(--color-accent-100); }
.rchip { font-size: 11px; color: var(--muted); padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--color-divider); white-space: nowrap; }
.adm-sub { margin: var(--space-8) 0 var(--space-3); }
@media (max-width: 860px) {
  .prow { grid-template-columns: 32px minmax(0, 1fr) 16px; row-gap: 4px; }
  .prow .p-roles, .prow .p-meta { grid-column: 2; } .prow .p-seen { display: none; } .prow .p-go { grid-row: 1; grid-column: 3; }
  .prow.static { grid-template-columns: 32px minmax(0, 1fr) auto; }
}

/* drawer */
.drawer-bg { position: fixed; inset: 0; z-index: 80; background: rgba(8, 9, 16, 0); transition: background .18s; }
.drawer-bg.in { background: rgba(8, 9, 16, .55); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100vw; overflow-y: auto; padding: var(--space-8);
  background: var(--color-surface); box-shadow: var(--shadow-lg); transform: translateX(24px); opacity: 0; transition: transform .18s, opacity .18s; }
.drawer-bg.in .drawer { transform: none; opacity: 1; }
.dclose { position: absolute; top: 14px; right: 14px; }
.dhead { display: flex; gap: var(--space-6); align-items: center; padding-right: 40px; }
.dhead .av.lg { width: 64px; height: 64px; font-size: 22px; }
.dsec { margin-top: var(--space-8); }
.dsec > .h6, .dsec > summary { margin-bottom: var(--space-3); }
details.dsec > summary { cursor: pointer; list-style: none; } details.dsec > summary::before { content: '▸ '; color: var(--faint); }
details.dsec[open] > summary::before { content: '▾ '; }
.rseg { display: inline-flex; border: 1px solid var(--color-divider); border-radius: var(--radius-md); overflow: hidden; flex-wrap: wrap; }
.rseg button { border: 0; border-radius: 0; color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 13px; padding: 6px 12px; }
.rseg button + button { border-left: 1px solid var(--color-divider); }
.rseg button.on { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); background: transparent; }
.rseg.sm button { font-size: 12px; padding: 4px 9px; }
.srvroles { display: flex; flex-direction: column; }
.srr { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; gap: var(--space-3); align-items: center; padding: 6px 0; }
.srr + .srr { background: linear-gradient(to right, transparent, var(--rowline) 48px, var(--rowline) calc(100% - 48px), transparent) no-repeat top / 100% 1px; }
.eff { text-align: right; }
.caprow { display: grid; grid-template-columns: 110px repeat(4, auto); gap: 6px; align-items: center; padding: 4px 0; justify-content: start; }
.cap { font-size: 11px; color: var(--faint); padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-text) 8%, transparent); display: inline-flex; align-items: center; gap: 3px; }
.cap svg { width: 10px; height: 10px; }
.cap.on { color: var(--color-positive); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-positive) 45%, transparent); }
.acctrow { display: flex; justify-content: space-between; gap: var(--space-4); padding: 6px 0; }
.linkbox { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: var(--radius-md); background: var(--color-bg); box-shadow: var(--shadow-sm); }
.linkbox code { flex: 1; font-size: 12px; overflow-x: auto; white-space: nowrap; background: none; padding: 0; }
@media (max-width: 560px) { .srr { grid-template-columns: 1fr; } .eff { text-align: left; } .caprow { grid-template-columns: 1fr repeat(2, auto); } }

/* audit timeline */
.timeline-a { border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); padding: 0 var(--space-6) var(--space-3); }
.timeline-a .ag-day { padding: var(--space-6) 0 var(--space-2); }
.aitem { display: grid; grid-template-columns: 44px 28px minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: 8px 0; }
.atime { padding-top: 5px; font-family: var(--font-mono); }
.aitem code { font-family: var(--font-mono); font-size: 12px; padding: 1px 5px; border-radius: 4px; background: var(--color-bg); }
.adet summary { cursor: pointer; list-style: none; margin-top: 2px; } .adet summary::-webkit-details-marker { display: none; }
.adet pre { margin: 6px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--color-bg); white-space: pre-wrap; word-break: break-all; }
.ni.c-signin { color: var(--color-neutral-300); } .ni.c-servers { color: var(--color-accent); } .ni.c-sessions { color: var(--color-accent-300); }
.ni.c-access { color: var(--color-accent-400); } .ni.c-backups { color: var(--color-positive); }
main.adm > .adm-head:first-child { margin-top: 0; padding-top: 0; background: none; }
.drawer { width: 580px; } .srr { grid-template-columns: minmax(0, 1fr) auto 128px; }

/* navigation progress bar (shell.js busy()) */
#navbar-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100; background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent); opacity: 0; transition: opacity .2s; }
#navbar-progress.on { opacity: 1; width: 85%; transition: width 4s cubic-bezier(.1,.7,.1,1), opacity .1s; }

/* ---------------------------------------------------------------- interest checks (HUB.md §10d) */
.mb12 { margin-bottom: var(--space-3); }
.stack-sm { display: flex; flex-direction: column; gap: var(--space-2); }
.ilist { display: flex; flex-direction: column; gap: var(--space-3); }
.icard { display: flex; gap: var(--space-6); padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.icard:hover { box-shadow: var(--shadow-md); }
.icov { flex: none; align-self: flex-start; display: block; }
.cover.iw { display: block; width: 184px; height: 86px; }                 /* Steam header art is 460×215 */
.av.xs { width: 20px; height: 20px; font-size: 9px; }
.avs { display: inline-flex; } .avs .av + .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--color-surface); }
.price { font-family: var(--font-heading); font-weight: 500; }
.price.sale { color: var(--color-positive); }
s.was { color: var(--faint); }
/* Vote: outlined like RSVP — the selected state is a coloured line + text, never a fill. */
.vote { display: inline-flex; gap: var(--space-2); }
.vote button { color: var(--color-text); border-color: var(--color-divider); }
.vote button.sel-going { color: var(--color-positive); border-color: var(--color-positive); }
.vote button.sel-no { color: var(--color-danger); border-color: var(--color-danger); }
/* Video summary. Instagram / YouTube Shorts (.reel): fixed portrait box (Instagram's frame can't tell
   us its height without their embed.js). YouTube videos (.vid): 16:9 at full column width. */
.reel, .vid { width: 100%; border-radius: var(--radius-md); overflow: hidden; background: var(--color-neutral-900); box-shadow: 0 0 0 1px var(--color-neutral-800); }
.reel { max-width: 400px; height: 640px; }
.vid { aspect-ratio: 16 / 9; }
.reel iframe, .vid iframe { width: 100%; height: 100%; border: 0; display: block; }
.reelbox { margin-top: var(--space-2); display: flex; flex-direction: column; gap: 6px; }
#iprev .reel { height: 560px; }
.idet { display: flex; gap: var(--space-4); align-items: flex-start; }
.idet .cover.iw { width: 150px; height: 70px; }
@media (max-width: 760px) {
  .icard { flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
  .icov { align-self: stretch; }
  .idet { flex-direction: column; } .idet .cover.iw { width: 100%; height: auto; }
  .cover.iw { width: 100%; height: auto; aspect-ratio: 460 / 215; }
  .icard .icov:has(.cover:empty) { display: none; }      /* no art (custom game / broken URL): skip the 160px hatched tile */
  .reel { max-width: none; height: 600px; }
}

/* A navigation that's still loading after 120 ms (shell.js busy()): dim the old page so the tap
   visibly registered. No transition on the way back, so the new page lands at full strength. */
#app.stale { opacity: .6; transition: opacity .15s; }
/* No double-tap-to-zoom wait on taps (pinch zoom still works). */
a, button, [data-rsvp], [data-link], label, summary { touch-action: manipulation; }
/* press(): the tapped action button while its request is in flight */
button.pressing { border-color: var(--color-accent); color: var(--color-accent); opacity: 1; }
button.pressing:disabled { opacity: 1; }
