/* Capsize: river rafts and river-stone cards. A calm, fixed light palette.
   One accent colour (life-vest orange) marks "your action": your pick, Play, rafts to haul. */
:root {
  color-scheme: light;
  --bg: #eef1ec;
  --card: #fbfcfa;
  --ink: #1d2a30;
  --muted: #5f6d71;
  --soft: rgba(29, 42, 48, .06);
  --deep: #0f4c5c;
  --river: #2a8697;
  --river-2: #3a9aaa;
  --foam: #bfe9ee;
  --wood: #c99461;
  --wood-2: #b8834f;
  --wood-dark: #6b4524;
  --accent: #e2672c;
  --accent-soft: rgba(226, 103, 44, .18);
  --danger: #c7362b;
  --warn: #9a6600;
  --ok: #1e7f5c;
  /* card faces by splashes */
  --lv1: #f7f2e6; --lv1-ink: #1d2a30; --lv1-drop: #3f8fb0;
  --lv2: #d9f0ea; --lv2-ink: #164a3d; --lv2-drop: #1f8a6e;
  --lv3: #fbe3a6; --lv3-ink: #5a3a00; --lv3-drop: #c47f00;
  --lv5: #fbc7b4; --lv5-ink: #6b1d0c; --lv5-drop: #d0452a;
  --lv7: #7a1f3d; --lv7-ink: #fff3e4; --lv7-drop: #ffd35c;
  /* sizes */
  --cw: clamp(40px, min(calc((100vw - 84px) / 6.5), 8.2vh), 70px);
  --ch: calc(var(--cw) * 1.22);
  /* tutorial kit (tutorial.css) */
  --tut-accent: #e2672c;
  --tut-accent-ink: #ffffff;
  --tut-bubble: #fbfcfa;
  --tut-ink: #1d2a30;
  --tut-muted: #5f6d71;
  --tut-dim: rgba(15, 40, 48, .58);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  touch-action: manipulation; overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 4px;
  max-width: 1040px; margin: 0 auto; height: 50px;
  padding: env(safe-area-inset-top) max(6px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left));
}
.back, .icon-btn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink);
  text-decoration: none; font-size: 22px; line-height: 1;
}
.back:hover, .icon-btn:hover { background: var(--soft); }
.icon-btn.small { width: 36px; height: 36px; font-size: 20px; color: var(--muted); }
.title { flex: 1; margin: 0; text-align: center; font-size: 18px; font-weight: 750; letter-spacing: .03em; }
.back:focus-visible, .icon-btn:focus-visible, .mate:focus-visible, .hcard:focus-visible, .raft:focus-visible,
.primary:focus-visible, .secondary:focus-visible, .opt:focus-visible, .menu button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ---------- layout ---------- */
.app {
  max-width: 720px; margin: 0 auto;
  padding: 0 max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr);
}
.side { display: grid; gap: 8px; min-width: 0; }
@media (min-width: 900px) {
  :root { --cw: clamp(56px, min(calc((100vw - 460px) / 6.6), 11vh), 90px); }
  .app {
    max-width: 1040px; gap: 12px 28px; padding-top: 8px; align-items: start;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "river side" "river dock" "tray dock";
  }
  .river { grid-area: river; }
  .tray { grid-area: tray; }
  .side { grid-area: side; }
  .dock { grid-area: dock; }
  .hand { grid-template-columns: repeat(5, 1fr) !important; }
  .hcard { height: 80px; }
}

/* ---------- crew chips ---------- */
.crew { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.mate {
  --c: #666;
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px 0 5px; border: 0; border-radius: 22px; background: transparent;
  transition: background .2s, box-shadow .2s;
}
.mate:hover { background: var(--soft); }
.mate .av {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-size: 13px; font-weight: 800;
}
.mate .nm { display: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.crew.named .mate .nm { display: inline; }
.mate .sc { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mate.you { background: var(--card); box-shadow: 0 1px 3px rgba(29, 42, 48, .1); }
.mate.active { background: var(--card); box-shadow: 0 0 0 2px var(--c), 0 2px 8px rgba(29, 42, 48, .12); }
/* who has picked: a tiny card back on the avatar */
.pick { position: absolute; right: -4px; bottom: -3px; width: 10px; height: 13px; border-radius: 2px; }
.mate.thinking .pick { border: 1.5px dashed var(--muted); background: var(--bg); animation: think 1.1s ease-in-out infinite; }
.mate.ready .pick { background: repeating-linear-gradient(135deg, var(--river) 0 2px, var(--river-2) 2px 4px); box-shadow: 0 0 0 1.5px var(--bg); }
.mate.yourturn .av { box-shadow: 0 0 0 3px var(--accent-soft); }
@keyframes think { 50% { opacity: .3; } }

/* ---------- status line ---------- */
.status { display: flex; align-items: center; gap: 9px; min-height: 26px; padding: 0 2px; font-size: 16px; font-weight: 650; }
.status .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status.mine .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status.wait .hint { color: var(--muted); }
.status.warn .hint { color: var(--warn); }
.status.bad .hint { color: var(--danger); }
.hint { flex: 1; min-width: 0; }
.turn-info { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.who { font-weight: 800; }

/* ---------- river & rafts ---------- */
.river {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 8px 6px; border-radius: 16px;
  background: linear-gradient(180deg, var(--river-2), var(--river));
}
.raft {
  position: relative; width: 100%;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 6px 4px 4px; border: 0; border-radius: 11px; text-align: left;
  background: repeating-linear-gradient(90deg, var(--wood) 0 18px, var(--wood-2) 18px 19px);
  box-shadow: 0 2px 0 var(--wood-dark), 0 4px 8px rgba(0, 30, 40, .18);
  transition: transform .25s, box-shadow .25s, filter .25s;
  animation: bob 6s ease-in-out infinite;
}
.raft:nth-child(2) { animation-delay: -1.5s; }
.raft:nth-child(3) { animation-delay: -3s; }
.raft:nth-child(4) { animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(1px); } }
.raft:disabled { color: inherit; opacity: 1; }
.raft-tag {
  flex: none; width: 32px; align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 8px; background: rgba(60, 36, 16, .55); color: #fff4df;
}
.raft-name { font-weight: 800; font-size: 14px; line-height: 1; }
.badge { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; }
.badge .drop { background: var(--foam); width: 7px; height: 7px; }
.deck { flex: 1; display: flex; gap: 4px; min-width: 0; }
.slot { position: relative; flex: none; width: var(--cw); height: var(--ch); border-radius: 7px; background: rgba(70, 40, 15, .14); }
.slot.filled { background: none; }
.slot.sixth { background: rgba(199, 54, 43, .16); }
.raft.len5 .slot.sixth { background: rgba(199, 54, 43, .36); box-shadow: inset 0 0 0 1.5px rgba(199, 54, 43, .7); }
.slot.ghost { background: none; opacity: .6; }
.slot.arriving .cf { opacity: 0; }
.slot.ghost .cf { outline: 2px dashed var(--ink); outline-offset: -2px; }
.slot.fresh .cf { animation: land .45s ease-out; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
@keyframes land { from { transform: translateY(-8px) scale(1.08); } to { transform: none; } }
.owner-tab {
  position: absolute; right: -3px; bottom: -3px; z-index: 1;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  font-size: 9px; font-weight: 800; line-height: 15px; text-align: center; color: #fff;
  box-shadow: 0 0 0 1.5px #fff;
}
.raft.target { box-shadow: 0 2px 0 var(--wood-dark), 0 0 0 3px #fff, 0 0 14px 3px rgba(255, 255, 255, .55); }
.raft.target.danger { box-shadow: 0 2px 0 var(--wood-dark), 0 0 0 3px var(--danger), 0 0 14px 3px rgba(199, 54, 43, .5); }
.raft.toolow { filter: saturate(.75) brightness(.96); }
.raft.next { box-shadow: 0 2px 0 var(--wood-dark), 0 0 0 2px var(--foam); }
.river.choosing .raft { cursor: pointer; animation: none; }
.raft.pickable { box-shadow: 0 2px 0 var(--wood-dark), 0 0 0 3px var(--accent); }
.raft.pickable:hover, .raft.pickable:focus-visible { transform: translateY(-2px); }
.haul-label {
  position: absolute; right: 8px; top: -9px;
  padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.haul-label .drop { background: #fff; }
.raft.tipping { animation: tip .9s ease-in-out; }
@keyframes tip {
  0% { transform: none; }
  25% { transform: rotate(-4deg) translateY(-2px); }
  55% { transform: rotate(7deg) translateY(4px); filter: brightness(.8); }
  80% { transform: rotate(-2deg); }
  100% { transform: none; }
}

/* ---------- card faces ---------- */
.cf {
  width: 100%; height: 100%; border-radius: 7px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 4px 2px 3px;
  background: var(--lv1); color: var(--lv1-ink);
  border: 1px solid rgba(29, 42, 48, .35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  font-variant-numeric: tabular-nums;
}
.cf .num { font-weight: 800; font-size: calc(var(--cw) * .42); line-height: 1; letter-spacing: -.02em; }
.drops { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px 2px; max-width: 30px; min-height: 7px; }
.drop {
  display: block; width: 6px; height: 6px; flex: none;
  border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  background: var(--lv1-drop);
}
.cf.lv2 { background: var(--lv2); color: var(--lv2-ink); }
.cf.lv2 .drop { background: var(--lv2-drop); }
.cf.lv3 { background: var(--lv3); color: var(--lv3-ink); }
.cf.lv3 .drop { background: var(--lv3-drop); }
.cf.lv5 { background: var(--lv5); color: var(--lv5-ink); }
.cf.lv5 .drops { max-width: 22px; }
.cf.lv5 .drop { background: var(--lv5-drop); }
.cf.lv7 { background: var(--lv7); color: var(--lv7-ink); border-color: #3d0a1c; }
.cf.lv7 .drops { max-width: 30px; }
.cf.lv7 .drop { background: var(--lv7-drop); }

/* ---------- tray (revealed cards) ---------- */
.tray {
  min-height: calc(var(--ch) * .7 + 18px);
  display: flex; align-items: flex-start; justify-content: center; gap: 5px; padding: 2px 0;
}
@media (max-height: 700px) { .tray.idle { min-height: 0; } }
.tcard {
  --c: #666;
  flex: 0 1 calc(var(--cw) * .8); min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: opacity .25s, transform .25s;
}
.tcard .cf { height: calc(var(--ch) * .7); box-shadow: 0 0 0 2px var(--c), 0 2px 3px rgba(0, 0, 0, .2); }
.tcard .cf .num { font-size: calc(var(--cw) * .34); }
.tcard .owner { font-size: 11px; font-weight: 800; color: var(--c); }
.tcard.next { transform: translateY(-3px); }
.tcard.gone { opacity: .15; }
.tray.flip .tcard .cf { animation: flip .45s ease-out both; }
.tray.flip .tcard:nth-child(2) .cf { animation-delay: .04s; }
.tray.flip .tcard:nth-child(3) .cf { animation-delay: .08s; }
.tray.flip .tcard:nth-child(4) .cf { animation-delay: .12s; }
.tray.flip .tcard:nth-child(5) .cf { animation-delay: .16s; }
.tray.flip .tcard:nth-child(n+6) .cf { animation-delay: .2s; }
@keyframes flip { from { transform: rotateY(90deg); filter: brightness(.6); } to { transform: none; } }

/* ---------- your hand ---------- */
.dock { display: grid; gap: 8px; }
.hand { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; min-height: 52px; }
@media (min-width: 640px) { .hand { grid-template-columns: repeat(10, 1fr); } }
.hcard {
  position: relative; padding: 0; border: 0; background: none;
  height: max(52px, calc(var(--ch) * .95)); min-width: 0;
  transition: transform .15s;
}
.hcard .cf { border-radius: 9px; }
.hcard .cf .num { font-size: clamp(20px, calc(var(--cw) * .5), 30px); }
.hcard .drop { width: 7px; height: 7px; }
.hand.active .hcard:hover .cf { transform: translateY(-2px); }
.hcard.sel { transform: translateY(-4px); }
.hcard.sel .cf { box-shadow: 0 0 0 3px var(--accent), 0 6px 12px rgba(0, 0, 0, .22); }
.hcard.locked { transform: translateY(-3px); }
.hcard.locked .cf { box-shadow: 0 0 0 3px var(--river), 0 4px 8px rgba(0, 0, 0, .18); }
.hcard:disabled { opacity: 1; }
.hand:not(.active) .hcard:not(.locked) .cf { opacity: .6; }
.stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg);
  padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--river); color: #fff;
}
.hand-empty { grid-column: 1 / -1; align-self: center; text-align: center; font-size: 13px; color: var(--muted); }
.play-row { display: flex; justify-content: center; min-height: 48px; visibility: hidden; }
.play-row.show { visibility: visible; animation: barin .18s ease-out; }
@keyframes barin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.primary, .secondary {
  min-height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 0;
}
.primary { background: var(--accent); color: #fff; }
.primary:active:not(:disabled) { transform: translateY(1px); }
.primary:disabled { background: #d9dcd6; color: #7d8784; }
.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(29, 42, 48, .18); }
.secondary:hover { background: var(--soft); }
.play-btn { min-width: 180px; box-shadow: 0 4px 14px rgba(226, 103, 44, .3); }

/* ---------- effects layer ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.fly {
  position: fixed; z-index: 41;
  transition-property: transform, opacity; transition-timing-function: cubic-bezier(.3, .7, .3, 1);
  will-change: transform;
}
.fly .cf { box-shadow: 0 8px 16px rgba(0, 0, 0, .3); }
.fly.tumble { transition-timing-function: cubic-bezier(.5, 0, .8, .6); }
.splash { position: fixed; width: 0; height: 0; z-index: 42; }
.splash i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px;
  border-radius: 0 50% 50% 50%; background: var(--foam); border: 1px solid #fff;
  animation: spray 1s ease-out forwards;
}
.splash i:nth-child(1) { --dx: -46px; --dy: -34px; }
.splash i:nth-child(2) { --dx: -20px; --dy: -52px; }
.splash i:nth-child(3) { --dx: 12px; --dy: -56px; }
.splash i:nth-child(4) { --dx: 40px; --dy: -38px; }
.splash i:nth-child(5) { --dx: 58px; --dy: -8px; }
.splash i:nth-child(6) { --dx: -60px; --dy: -6px; }
@keyframes spray {
  0% { transform: translate(0, 0) rotate(45deg) scale(.6); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 40px)) rotate(45deg) scale(1.1); opacity: 0; }
}
.float-num {
  position: fixed; z-index: 43; transform: translate(-50%, -20%);
  font-weight: 900; font-size: 20px; color: var(--danger);
  text-shadow: 0 1px 0 #fff, 0 0 6px #fff;
  animation: rise 1.3s ease-out forwards;
}
@keyframes rise { to { transform: translate(-50%, -140%); opacity: 0; } }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 14px; background: rgba(12, 40, 48, .42); overflow-y: auto;
}
.panel {
  position: relative; width: 100%; max-width: 440px;
  max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow-y: auto;
  padding: 18px; border-radius: 20px; background: var(--card);
  box-shadow: 0 12px 40px rgba(10, 30, 36, .28);
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel h2 { margin: 0 0 10px; font-size: 20px; }
.panel-head { display: flex; align-items: center; gap: 8px; margin: -6px -6px 8px 0; }
.panel-head h2 { flex: 1; margin: 0; }
.panel h3 { margin: 16px 0 4px; font-size: 15px; }
.panel p, .panel li { font-size: 14px; }
.panel ul, .panel ol { padding-left: 20px; margin: 4px 0; }
.panel li { margin: 3px 0; }
.lede { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.field { margin: 14px 0; }
.field-label { font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.step { width: 46px; height: 46px; border-radius: 12px; font-size: 22px; font-weight: 700; line-height: 1; background: var(--soft); border: 0; }
.step:disabled { opacity: .35; }
.step-value { flex: 1; text-align: center; }
.step-value b { font-size: 22px; }
.step-value small { color: var(--muted); font-size: 13px; }
.choice { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); }
.opt { flex: 1; min-height: 44px; padding: 0 6px; border-radius: 10px; border: 0; background: transparent; font-weight: 650; }
.opt.on { background: var(--accent); color: #fff; }
.panel-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.panel-buttons > * { flex: 1 1 auto; }
.panel-scroll { max-width: 580px; }
.splash-key { list-style: none; padding: 0 !important; }
.splash-key li { display: flex; align-items: center; gap: 10px; }
.key-card { flex: none; width: 40px; height: 50px; --cw: 40px; }
.key-card .cf .num { font-size: 17px; }

/* menu */
.menu-overlay { background: rgba(12, 40, 48, .12); align-items: flex-start; justify-content: flex-end; padding: 50px 10px 0; }
.menu {
  min-width: 210px; background: var(--card); border-radius: 16px; padding: 6px;
  box-shadow: 0 10px 30px rgba(10, 30, 36, .22); animation: pop .15s ease-out; display: grid;
}
.menu button { min-height: 48px; padding: 0 14px; border: 0; background: transparent; text-align: left; border-radius: 10px; font-size: 15px; font-weight: 550; }
.menu button:hover { background: var(--soft); }
@media (min-width: 1060px) { .menu-overlay { padding-right: calc((100vw - 1040px) / 2 + 8px); } }

/* scoreboard + log */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; -webkit-overflow-scrolling: touch; }
.score-table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.score-table th, .score-table td { padding: 6px; text-align: center; border-bottom: 1px solid rgba(29, 42, 48, .08); white-space: nowrap; }
.score-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.score-table .pcol { text-align: left; position: sticky; left: 0; background: var(--card); }
.score-table .tcol { font-weight: 800; font-size: 15px; }
.score-table .now { color: var(--river); font-style: italic; }
.score-table td.zero { color: var(--ok); font-weight: 700; }
.score-table td.big { color: var(--danger); font-weight: 700; }
.score-table tr.you td { background: #fdf1ea; }
.score-table tr.lead .tcol { color: var(--ok); }
.score-table .rk { display: inline-block; min-width: 26px; font-size: 11px; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.status .dot { margin-right: 0; }
.sub-title { margin: 18px 0 6px !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.log { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 4px; max-height: 30vh; overflow-y: auto; }
.log li { font-size: 13px !important; margin: 0 !important; color: var(--ink); }

/* final ranking */
.rank-list { list-style: none; padding: 0 !important; margin: 8px 0 !important; }
.rank-list li { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; margin: 2px 0; }
.rank-list li .rk { min-width: 34px; font-weight: 800; color: var(--muted); font-size: 13px; }
.rank-list li .nm { font-size: 15px; }
.rank-list li b { margin-left: auto; font-size: 17px; }
.rank-list li.win { background: #e6f4ed; }
.rank-list li.win .rk { color: var(--ok); }
.rank-list li.you { box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- online (a table with friends: tables.js) ---------- */
/* a short notice (connection lost, the table was updated, someone left) floats just under the status line,
   over the rafts' top edge, so the board never moves */
.status { position: relative; }
.status .net-note { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); z-index: 6; width: max-content; max-width: min(88vw, 360px);
  padding: 4px 12px; border-radius: 12px; background: var(--ink); color: var(--card); font-size: 12.5px; font-weight: 700; line-height: 1.3; text-align: center;
  white-space: normal; box-shadow: 0 4px 14px rgba(29, 42, 48, .3); pointer-events: none; animation: pop .25s ease-out; }
/* people's names can be long: a chip keeps its name to one short line */
body.is-online .mate .nm { max-width: 92px; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
/* a friend whose page stopped checking in */
.mate.away .nm { font-style: italic; opacity: .7; }
.mate.away .av { opacity: .55; }
/* one divider above the online rows */
.menu #menu-online, .menu #menu-leave { border-top: 1px solid rgba(29, 42, 48, .1); border-radius: 0 0 10px 10px; }
.panel .link { display: block; margin: 12px auto 0; padding: 8px 12px; border: 0; background: transparent; color: var(--muted); font-weight: 650; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
