:root {
  --pink: #ff66aa;
  --pink-dark: #e04b8f;
  --bg: #150f13;
  --panel: #1e1519;
  --surface: #251b20;
  --surface-2: #31242b;
  --line: #3a2c33;
  --text: #f6eef2;
  --muted: #b39aa6;
  --accent: #8be04b;
  --gold: #ffd15c;
  --radius: 12px;
}
* { box-sizing: border-box; }
/* `hidden` must always win over component display rules (modals, buttons). */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
h1 { font-size: 24px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.pink { color: var(--pink); }
.sub { margin: 20px 0 10px; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }

/* --- Layout: top bar + centered content --------------------------------- */
.app { min-height: calc(100vh / var(--zall, 1)); }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
  padding: 0 clamp(16px, 3vw, 40px); height: 60px;
  background: rgba(21, 15, 19, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.logo { color: var(--pink); font-weight: 800; }
.nav { display: flex; gap: 2px; }
.nav-item {
  padding: 8px 14px; border: none; background: transparent; color: var(--muted);
  font: inherit; font-weight: 600; border-radius: 8px; cursor: pointer;
}
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--text); background: var(--surface-2); }
.topbar-spacer { flex: 1; }
.auth { display: flex; align-items: center; gap: 10px; }
.auth .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.auth .n { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth .signout { background: none; border: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; padding: 4px; }
.auth .signout:hover { color: var(--pink); }

.content { max-width: 1500px; margin: 0 auto; padding: 34px clamp(16px, 3vw, 40px) 80px; width: 100%; }
.view { display: none; }
.view.active { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.view-head { margin-bottom: 20px; }
.view-head p { margin: 6px 0 0; max-width: 60ch; }

/* --- Buttons / inputs --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: none; border-radius: 10px;
  font-weight: 700; cursor: pointer; font-size: 15px; }
.btn.big { padding: 12px 20px; font-size: 16px; margin-top: 6px; }
.btn.sm { padding: 6px 10px; font-size: 13.5px; }
.btn.primary { background: var(--pink); color: var(--on-pink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.accent { background: var(--accent); color: #10240a; }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.ghost:hover { background: var(--line); }
input, textarea {
  width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; color: var(--text); font: inherit; resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--pink); }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.row .btn { white-space: nowrap; }


/* --- Room cards / grid -------------------------------------------------- */
.join-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.join-card .row { margin-top: 6px; }
.join-card input { text-transform: uppercase; }

.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.room-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  cursor: pointer; transition: border-color .12s ease, transform .06s ease;
}
.room-card:hover { border-color: var(--pink); }
.room-card:active { transform: translateY(1px); }
.room-card .rc-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-card .rc-owner { display: flex; align-items: center; gap: 7px; margin: 8px 0; color: var(--muted); font-size: 14px; }
.room-card .rc-owner img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.room-card .rc-meta { color: var(--muted); font-size: 13.5px; }
.room-card .rc-actions { display: flex; gap: 8px; margin-top: 12px; }
.room-card .code-pill { font-family: ui-monospace, monospace; }

.code-pill { background: var(--surface-2); border-radius: 6px; padding: 2px 8px; font-family: ui-monospace, monospace; color: var(--pink); }

/* --- Friends ------------------------------------------------------------ */
.add-friend { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 18px; max-width: 460px; }
.friends-list { display: flex; flex-direction: column; gap: 8px; }
.friend-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.friend-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.friend-row .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
@media (max-width: 400px) { #friends-list .friend-row > .muted.small { display: none; } } /* (a small phone: the name, Message and ✕ fit; how many rooms is on their profile) */

/* --- Room detail -------------------------------------------------------- */
.back { background: none; border: none; color: var(--muted); font-weight: 600; cursor: pointer; padding: 0 0 12px; }
.back:hover { color: var(--pink); }
.room-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.room-top h1 { margin-bottom: 6px; }
.room-top-actions { display: flex; gap: 8px; flex: none; }
#room-owner { margin-left: 8px; }

.lb-tabs { display: flex; gap: 6px; margin: 18px 0 10px; }
.lb-tab { padding: 8px 13px; border: none; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-weight: 600; cursor: pointer; }
.lb-tab.active { background: var(--pink); color: var(--on-pink); }

.leaderboard { list-style: none; margin: 0; padding: 0; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 10px; background: var(--surface); margin-bottom: 6px; }
.lb-rank { width: 28px; text-align: center; font-weight: 800; color: var(--muted); font-size: 16px; }
.lb-row:nth-child(1) .lb-rank { color: var(--gold); }
.lb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.lb-name { flex: 1; font-weight: 600; }
.lb-metric { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--pink); }
.lb-sub { color: var(--muted); font-size: 13.5px; }

/* --- Map cards ---------------------------------------------------------- */
.map-list { display: flex; flex-direction: column; gap: 8px; }
.map-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 10px; padding: 8px; }
.map-cover { width: 100px; height: 56px; border-radius: 7px; object-fit: cover; background: var(--surface-2); flex: none; }
.map-meta { flex: 1; min-width: 0; }
.map-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-sub { color: var(--muted); font-size: 13.5px; }
.map-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-x { width: 32px; height: 32px; border: none; border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 15px; }
.icon-x:hover { background: #5a2330; color: #ffd9e2; }

.owner-add { background: var(--panel); border: 1px dashed var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; background: var(--surface-2); border-radius: 999px; font-size: 14px; color: var(--text); }
.chip .x { cursor: pointer; color: var(--muted); margin-left: 4px; }
.chip .x:hover { color: var(--pink); }
.staged { margin: 12px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13.5px; }

.empty { color: var(--muted); padding: 10px 2px; }

/* --- Modal windows ------------------------------------------------------ */
.modal-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; width: min(480px, 100%); max-height: calc(88vh / var(--zall, 1)); overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-x { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal-x:hover { color: var(--pink); }

/* --- Toast -------------------------------------------------------------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; padding: 11px 16px; border-radius: 10px;
  background: var(--surface-2); box-shadow: 0 8px 26px rgba(0,0,0,0.5); font-size: 15px; z-index: 60; }
.toast.error { background: #5a2330; color: #ffd9e2; }


/* --- Live indicator + tab bar ------------------------------------------- */
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.lb-bar .lb-tabs { margin: 0; }
.live-dot { color: #ff5e6b; font-size: 13.5px; font-weight: 700; letter-spacing: .03em; animation: livep 1.6s ease-in-out infinite; }
@keyframes livep { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* --- Leaderboard flourish ---------------------------------------------- */
.lb-right { text-align: right; display: inline-flex; flex-direction: column; align-items: flex-end; }
.lb-metric { font-size: 16px; }
.lb-top1 { background: linear-gradient(90deg, rgba(255,209,92,.14), var(--surface) 60%); }
.lb-top2 { background: linear-gradient(90deg, rgba(217,221,230,.12), var(--surface) 60%); }
.lb-top3 { background: linear-gradient(90deg, rgba(224,149,92,.12), var(--surface) 60%); }
.lb-top1 .lb-rank { color: #ffd15c; }
.lb-top2 .lb-rank { color: #d9dde6; }
.lb-top3 .lb-rank { color: #e0955c; }

/* --- Grades (osu! letters): one look everywhere, as the app shows them too: osu!'s colour, the letter on a tint of it --- */
.rank-badge, .pf-grade, .tp-grade, .wt-grade { --gc: var(--muted); color: var(--gc); background: color-mix(in srgb, var(--gc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 36%, transparent); font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.rank-ss, .rank-s, .pf-grade.g-x, .pf-grade.g-s, .tp-grade.g-x, .tp-grade.g-s, .wt-grade.g-SS, .wt-grade.g-S { --gc: #ffd15c; }
.pf-grade.g-xh, .pf-grade.g-sh, .tp-grade.g-xh, .tp-grade.g-sh, .wt-grade.silver { --gc: #dfe3ea; }
.rank-a, .pf-grade.g-a, .tp-grade.g-a, .wt-grade.g-A { --gc: #88da20; } .rank-b, .pf-grade.g-b, .tp-grade.g-b, .wt-grade.g-B { --gc: #58b8ff; }
.rank-c, .pf-grade.g-c, .tp-grade.g-c, .wt-grade.g-C { --gc: #c57bdb; } .rank-d, .pf-grade.g-d, .tp-grade.g-d, .wt-grade.g-D { --gc: #ff6a6a; }
.rank-badge { flex: none; min-width: 30px; text-align: center; padding: 4px 6px; border-radius: 7px; font-size: 13.5px; }

/* --- Per-map score rows (osu! style) ----------------------------------- */
.score-row { align-items: center; gap: 10px; }
.score-main { flex: 1; min-width: 0; }
.score-line1 { display: flex; align-items: center; gap: 6px; }
.score-line1 .lb-name { font-weight: 700; }
.score-line2 { display: flex; align-items: center; gap: 12px; margin-top: 3px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.score-line2 .acc { color: #ffd15c; font-weight: 700; }
.score-line2 .combo { color: var(--text); }
.hits b { font-weight: 800; }
.hits .h300 { color: #66ccff; }
.hits .h100 { color: #8be04b; }
.hits .h50  { color: #ffc857; }
.hits .hmiss { color: #ff5d6c; }
.score-right { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.score-right .pp { color: var(--pink); font-weight: 900; font-size: 16px; }
.score-right .pp small { font-size: 11.5px; font-weight: 700; opacity: .8; }
.score-right .score-total { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mod { background: var(--surface-2); color: var(--pink); border-radius: 5px; padding: 1px 5px; font-size: 11.5px; font-weight: 800; }

/* --- Rule badges -------------------------------------------------------- */
.room-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: var(--surface-2); color: var(--text); }
.badge.mod-badge { color: var(--pink); }
.badge.onetry { background: #4a2330; color: #ffb3c6; }
.badge.timer { background: #1f3320; color: #9be89b; font-variant-numeric: tabular-nums; }
.badge.timer.locked { background: #5a2330; color: #ffd9e2; }

/* --- Settings modal controls ------------------------------------------- */
/* one of a few: a track with the choices in it, so two groups side by side never read as one */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg-btn { padding: 7px 14px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .15s, color .15s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--pink); color: var(--on-pink); }
.seg-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.mod-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.modchip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-weight: 800; cursor: pointer; font-size: 13.5px; }
.modchip.on { background: var(--pink); color: var(--on-pink); border-color: var(--pink); }
.toggle { display: flex; align-items: center; gap: 10px; margin: 14px 0; cursor: pointer; }
.toggle input { width: auto; }
#timer-minutes-wrap { margin-top: 8px; }
#timer-current { margin-top: 6px; }

/* --- A room's maps in its order (app.js renderMaps): a card each; its owner's handle (reorder.css) and ⤒ ---------------- */
.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.map-row { margin-bottom: 0; } .map-row .map-cover { width: 64px; height: 36px; }
.map-n { width: 22px; flex: none; color: var(--muted); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.maps-tip { margin: 2px 0 8px; }
.set-dl { flex: none; }
.diff-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 14px; border-top: 1px solid rgba(255,255,255,0.03); }
.diff-row:first-child { border-top: none; }
.star { font-weight: 800; font-variant-numeric: tabular-nums; flex: none; min-width: 56px; }
.diff-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diff-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.diff-link { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.diff-link:hover { color: var(--pink); }
.btn.xs { padding: 4px 9px; font-size: 13.5px; }
.icon-x.xs { width: 26px; height: 26px; font-size: 13.5px; }

/* --- Clickable leaderboard rows ---------------------------------------- */
.lb-clickable { cursor: pointer; transition: background .1s ease; }
.lb-clickable:hover { outline: 1px solid var(--line); }
.lb-clickable:hover .lb-name { color: var(--pink); }

/* --- Player scores modal ----------------------------------------------- */
.ps-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ps-head .lb-avatar { width: 46px; height: 46px; }
.ps-sum { font-weight: 800; color: var(--pink); font-size: 16px; }
.ps-list { list-style: none; margin: 0; padding: 0; }
.ps-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; background: var(--surface); margin-bottom: 5px; }
.ps-row.not-played { opacity: 0.55; }
.ps-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-stats { display: flex; align-items: center; gap: 10px; flex: none; font-variant-numeric: tabular-nums; }
.ps-stats .pp { color: var(--pink); font-weight: 800; }
.ps-stats .acc { color: var(--gold); font-weight: 700; }
.ps-stats .score-total { color: var(--muted); font-size: 13.5px; }

/* --- Wider room: leaderboard + maps side by side, both bigger ----------- */
.room-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; margin-top: 8px; }
.room-col { min-width: 0; }
@media (max-width: 900px) { .room-split { grid-template-columns: 1fr; gap: 18px; } }

/* Bigger, more readable leaderboard */
.leaderboard .lb-row { padding: 14px 16px; gap: 14px; }
.leaderboard .lb-rank { width: 34px; font-size: 18px; }
.leaderboard .lb-avatar { width: 46px; height: 46px; }
.leaderboard .lb-name { font-size: 16px; }
.leaderboard .lb-metric { font-size: 20px; }
.leaderboard .lb-sub { font-size: 14px; }

/* Bigger room heading + badges */
.room-top h1 { font-size: 30px; }
.badge { font-size: 14px; padding: 4px 11px; }
.diff-row { padding: 10px 14px; }
.diff-name { font-size: 15px; }
.star { min-width: 62px; font-size: 15px; }

/* Roomier cards on wide screens */
.room-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* --- Inline per-map scores panel (right column) ------------------------- */
.scores-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 12px; }
.scores-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; font-size: 16px; }
.scores-title .st-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scores-actions { display: flex; gap: 6px; flex: none; }
.back.sm { padding: 0 0 8px; }

.diff-row.clickable { cursor: pointer; transition: background .1s ease; }
.diff-row.clickable:hover { background: color-mix(in srgb, var(--pink) 6%, transparent); }
.diff-row.clickable:hover .diff-name { color: var(--pink); }

/* Your own row, highlighted wherever scores appear */
.me-row { background: linear-gradient(90deg, color-mix(in srgb, var(--pink) 16%, transparent), var(--surface) 70%); outline: 1px solid color-mix(in srgb, var(--pink) 50%, transparent); }
.you-tag { background: var(--pink); color: var(--on-pink); border-radius: 999px; padding: 1px 7px; font-size: 11.5px; font-weight: 900; }

/* --- Left = leaderboard / clicked-map scores; wider split -------------- */
.room-split { grid-template-columns: 1.3fr 1fr; }
/* Selected difficulty on the right, while its scores show on the left */
.diff-row.active { background: color-mix(in srgb, var(--pink) 14%, transparent); box-shadow: inset 3px 0 0 var(--pink); }
.diff-row.active .diff-name { color: var(--pink); }

/* --- Bot status (sidebar) ---------------------------------------------- */
.bot-status { font-size: 13.5px; padding: 4px 4px 8px; color: var(--muted); }
.bot-status.on { color: #9be89b; }
.bot-status.off { color: var(--gold); }

/* Danger button (delete room) */
.btn.danger { width: 100%; justify-content: center; background: #5a2330; color: #ffd9e2; }
.btn.danger:hover { background: #6e2a3b; }

/* --- Landing + new-site additions --------------------------------------- */
.hero { text-align: left; padding: clamp(36px, 8vh, 90px) 0 30px; max-width: 880px; }
.hero h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.02em; text-wrap: balance; }
.hero .lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 56ch; text-wrap: pretty; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .btn.big { margin-top: 0; }
.points { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.points li { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.points b { font-size: 16px; color: var(--pink); }
.points span { color: var(--muted); line-height: 1.45; }
.app-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 6px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.bar select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font: inherit; }
.runs-table table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.runs-table th { text-align: left; color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 10px 14px; }
.runs-table td { padding: 12px 14px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.runs-table .r { text-align: right; } .runs-table .strong { font-weight: 800; color: var(--pink); }
.runs-table tr.me td { background: color-mix(in srgb, var(--pink) 12%, transparent); }
@media (prefers-reduced-motion: reduce) { .view.active { animation: none; } }

/* --- room: per-map player count, played tick, collapsible beatmap drawer --- */
.pcount { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pcount.has { color: var(--text); }
.pcount svg { opacity: .8; }
.done-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(139, 224, 75, .18); color: var(--accent); font-size: 13.5px; font-weight: 900; }
#maps-toggle.on { background: var(--pink); color: var(--on-pink); }
.room-split.maps-collapsed { grid-template-columns: 1fr; }
.room-split.maps-collapsed .room-maps { display: none; }

/* --- profile page + replay links --- */
.auth .avatar, .auth .n { cursor: pointer; }
/* your picture at the top right and its menu (your profile, friends, chat, settings); a dot on it while a chat has something new */
.me-wrap { position: relative; display: flex; align-items: center; }
.me-trigger { position: relative; display: flex; align-items: center; gap: 9px; padding: 0 8px 0 0; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.me-trigger:hover .n, .me-trigger[aria-expanded="true"] .n { color: var(--pink); } .me-trigger:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.me-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; } .me-trigger[aria-expanded="true"] .me-chev { transform: rotate(180deg); }
.topbar:has(#nav-chat-badge:not([hidden])) .me-trigger::after { content: ""; position: absolute; left: 24px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--bg); }
.me-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 90; display: flex; flex-direction: column; gap: 2px; min-width: 210px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .7); animation: rise .18s var(--ease-dec); }
.me-menu[hidden] { display: none; }
.me-menu .nav-item, .me-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; }
.me-menu .nav-item:hover, .me-item:hover, .me-menu .nav-item:focus-visible, .me-item:focus-visible { background: var(--surface); outline: none; } .me-menu .nav-item.active { color: var(--pink); }
.me-menu .ic { width: 19px; height: 19px; flex: none; color: var(--muted); } .me-menu .nav-badge { margin-left: auto; } .auth.on .avatar { box-shadow: 0 0 0 2px var(--pink); } .auth.on .n { color: var(--pink); } /* (your own profile open) */
/* your plan, in the top bar by the language: ★ Plus, lit when you have it, grey when you do not; to the Plus page */
.plan-chip { display: inline-flex; align-items: center; flex: none; height: 30px; margin-right: 8px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: color .15s, background-color .15s; }
.plan-chip:hover { color: var(--text); background: color-mix(in srgb, var(--surface-2) 80%, #ffffff); }
.plan-chip.on { background: linear-gradient(120deg, #ffc857, #ff9ac4); color: #2a1220; }
.plan-chip:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (max-width: 560px) { .plan-chip { height: 28px; margin-right: 4px; padding: 0 9px; font-size: 12px; } }
@media (max-width: 480px) { .plan-n { display: none; } .topbar { gap: 6px; } } /* (a phone: the star alone, its name in its title; the search gets the room to say what it finds) */
@media (max-width: 400px) { .topbar .brand-m { display: none !important; } } /* (a small phone: the logo is in the menu, with Home) */
@media (max-width: 560px) { .topbar:has(.search:focus-within) :is(.plan-chip, .nt-btn) { display: none; } } /* (typing a name: the search takes the bar) */
.auth .n:hover { color: var(--pink); }
.replay-dl { margin-top: 4px; font-size: 12.5px; font-weight: 800; color: var(--accent); }
.replay-dl:hover { text-decoration: underline; }
.pf-avatar { width: 104px; height: 104px; border-radius: 22px; object-fit: cover; background: var(--surface-2); border: 3px solid var(--accent); flex: none; }
.pf-id { flex: 1; min-width: 0; }
.pf-id h1 { font-size: 30px; margin-bottom: 4px; }
.pf-stats { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.pf-stats b { color: var(--text); font-size: 17px; }
.pf-stats a:hover { color: var(--pink); }
.pf-edit { max-width: 560px; margin-bottom: 18px; }
.pf-edit input[type=color] { width: 64px; height: 38px; padding: 2px; }
.pf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 10px; padding: 9px 12px; }
.pf-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-num { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.pf-num.strong { color: var(--text); font-weight: 800; }

.code-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 2px 4px 2px 10px; }
.code-mask { font-family: ui-monospace, monospace; letter-spacing: .1em; color: var(--pink); }
.copy-btn { border: 0; background: color-mix(in srgb, var(--pink) 18%, transparent); color: var(--pink); border-radius: 999px; width: 26px; height: 22px; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.copy-btn:hover { background: var(--pink); color: var(--on-pink); }

/* run detail + clickable rows */
.runs-table tr.clickable, .pf-row.clickable-row { cursor: pointer; }
.runs-table tr.clickable:hover td { background: color-mix(in srgb, var(--pink) 8%, transparent); }
.pf-row.clickable-row:hover { outline: 1px solid var(--pink); }
.rn-head { display: flex; align-items: center; gap: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); margin-bottom: 14px; }
.rn-av { width: 84px; height: 84px; }
.rn-id h1 { font-size: 28px; margin: 2px 0 8px; } .rn-id h1 a:hover { color: var(--pink); }
.rn-stats { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); } .rn-stats b { color: var(--text); font-size: 17px; }
.rn-wrap { overflow-x: auto; }
.rn-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.rn-table th { text-align: left; color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 10px 12px; }
.rn-table td { padding: 10px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: middle; }
.rn-table .r { text-align: right; } .rn-table .strong { font-weight: 800; color: var(--pink); } .rn-i { color: var(--muted); width: 30px; }
.rn-map { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.rn-cover { width: 68px; height: 40px; border-radius: 7px; object-fit: cover; background: var(--surface-2); flex: none; display: block; }
.rn-title { font-weight: 700; }

/* --- brand icon + landing page -------------------------------------------- */
.brand { display: flex; align-items: center; gap: 9px; }
.brand-icon { width: 26px; height: 26px; border-radius: 7px; }
.landing { max-width: 1100px; margin: 0 auto; }
.l-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: 24px 0 56px; }
.l-icon { border-radius: 18px; box-shadow: 0 8px 30px color-mix(in srgb, var(--pink) 25%, transparent); margin-bottom: 18px; }
.l-copy h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
.l-copy .lead { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 52ch; margin: 0 0 20px; }
.l-copy .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.l-note { margin: 12px 0 0; }
.m-run, .m-board { background: rgba(34, 26, 31, .92); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.m-run { padding: 14px 16px; width: 78%; align-self: flex-end; }
.m-top { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.m-pill { background: rgba(139, 224, 75, .14); color: #9be89b; border-radius: 99px; padding: 2px 9px; font-size: 12.5px; font-weight: 700; }
.m-time { font-size: 44px; font-weight: 800; color: #fff; text-align: center; letter-spacing: -0.02em; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.m-bar { height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.m-bar i { display: block; height: 100%; width: 56%; background: var(--pink); border-radius: 99px; }
.m-row { display: flex; justify-content: space-between; margin-top: 9px; font-size: 14px; }
.m-row b span { color: var(--muted); font-weight: 600; }
.m-board { padding: 8px; display: flex; flex-direction: column; gap: 6px; width: 92%; }
.m-lz { display: grid; grid-template-columns: 30px 34px 1fr auto 26px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 14px; }
.m-lz.you { background: color-mix(in srgb, var(--pink) 20%, transparent); outline: 1px solid color-mix(in srgb, var(--pink) 50%, transparent); }
.m-lz em { font-style: normal; color: var(--gold); font-weight: 800; }
.m-av { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #5a3f4d, #3a2c33); }
.m-s { font-variant-numeric: tabular-nums; color: var(--muted); }
.m-g { color: var(--accent); font-weight: 800; text-align: center; }
.m-cap { font-size: 12.5px; color: var(--muted); text-align: center; opacity: .7; }
.l-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 8px 0 52px; }
.l-feats article { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.l-feats h3 { margin: 0 0 6px; font-size: 16px; color: var(--pink); }
.l-feats p { margin: 0; line-height: 1.5; color: var(--muted); font-size: 14.5px; }
.l-steps { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 32px); }
.l-steps h2 { margin: 0 0 16px; font-size: 20px; }
.l-steps ol { list-style: none; counter-reset: s; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.l-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding-left: 40px; position: relative; }
.l-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: var(--on-pink); font-weight: 800; display: grid; place-items: center; }
.l-steps li span { color: var(--muted); line-height: 1.45; font-size: 14.5px; }
kbd { background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; font: inherit; font-size: 13.5px; }
@media (max-width: 820px) { .l-hero { grid-template-columns: 1fr; } .m-run, .m-board { width: 100%; } }

/* --- run leaderboard ------------------------------------------------------ */
.lb { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.lb > .lb-row { display: grid; grid-template-columns: 44px 44px 1fr auto; gap: 14px; align-items: center; padding: 10px 16px 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.lb > .lb-row:hover { border-color: color-mix(in srgb, var(--pink) 50%, transparent); transform: translateX(2px); }
.lb > .lb-row.me { outline: 1px solid color-mix(in srgb, var(--pink) 60%, transparent); background: color-mix(in srgb, var(--pink) 10%, transparent); }
.lb > .lb-row .lb-rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color: var(--muted); justify-self: center; }
.lb > .lb-row .lb-av { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.lb > .lb-row .lb-who { display: flex; flex-direction: column; min-width: 0; }
.lb > .lb-row .lb-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.lb > .lb-row .lb-who small { color: var(--muted); font-size: 13.5px; }
.lb > .lb-row .lb-val { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.lb > .lb-row .lb-val i { font-style: normal; font-size: .62em; opacity: .65; margin-left: 1px; }
.lb > .lb-row.rk1 { background: linear-gradient(90deg, rgba(255, 209, 92, .16), var(--panel) 60%); border-color: rgba(255, 209, 92, .55); }
.lb > .lb-row.rk1 .lb-rank { background: #ffd15c; color: #3a2a00; box-shadow: 0 0 14px rgba(255, 209, 92, .55); }
.lb > .lb-row.rk1 .lb-val { color: #ffd15c; }
.lb > .lb-row.rk2 .lb-rank { background: #cfd6e4; color: #1d2430; } .lb-row.rk2 { border-color: rgba(207, 214, 228, .35); }
.lb > .lb-row.rk3 .lb-rank { background: #e0955b; color: #2e1708; } .lb-row.rk3 { border-color: rgba(224, 149, 91, .35); }
@media (max-width: 560px) { .lb > .lb-row { grid-template-columns: 34px 38px 1fr auto; gap: 10px; } .lb > .lb-row .lb-val { font-size: 18px; } }

/* --- profile: ranks, run history, replays --------------------------------- */
.place-badge { display: inline-grid; place-items: center; min-width: 40px; padding: 2px 9px; border-radius: 99px; font-weight: 800; font-size: 13.5px; background: var(--surface-2); color: var(--muted); }
.place-badge.r1 { background: #ffd15c; color: #3a2a00; box-shadow: 0 0 12px rgba(255, 209, 92, .5); }
.place-badge.r2 { background: #cfd6e4; color: #1d2430; } .place-badge.r3 { background: #e0955b; color: #2e1708; }
.pf-row.rec-gold { border: 1px solid rgba(255, 209, 92, .5); background: linear-gradient(90deg, rgba(255, 209, 92, .12), var(--surface) 70%); }
.pf-sub { color: var(--muted); font-size: 13.5px; }
.pf-star { color: var(--gold); font-weight: 700; }
.pf-hid { opacity: .55; }
.pf-acts { display: inline-flex; gap: 6px; }
.btn.xs { padding: 3px 8px; font-size: 12.5px; border-radius: 8px; }
.pf-row .pf-name small { display: block; color: var(--muted); font-weight: 500; font-size: 13.5px; }

/* --- profile rank + share link, clickable friends ------------------------- */
.pf-rank { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.pf-rk { display: inline-flex; align-items: baseline; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-rk small { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.copy-link { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 3px 9px; font: inherit; font-size: 13.5px; cursor: pointer; }
.copy-link:hover { color: var(--text); border-color: var(--pink); }
.friend-row.clickable { cursor: pointer; } .friend-row.clickable:hover { background: var(--surface-2); }

/* --- profile: osu! top 200 plays ------------------------------------------ */
.pf-scroll { max-height: 560px; overflow-y: auto; padding-right: 4px; list-style: none; margin: 8px 0 0; }
.pf-idx { width: 30px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13.5px; text-align: right; flex: none; }
.pf-name a:hover { color: var(--pink); text-decoration: underline; }
.pf-grade { min-width: 28px; height: 22px; display: inline-grid; place-items: center; border-radius: 7px; font-size: 13px; flex: none; } /* (its look: with the grades, by .rank-badge) */

/* --- osu!-profile-style best scores --------------------------------------- */
.tp-head { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 12px 0 10px; }
.tp-n { background: var(--surface-2); border-radius: 99px; padding: 1px 10px; font-size: 13.5px; color: var(--muted); }
.tp-list { display: flex; flex-direction: column; gap: 7px; }
.tp-row { position: relative; display: grid; grid-template-columns: 34px 46px minmax(0, 1fr) auto 76px 92px 96px; gap: 14px; align-items: center; min-height: 54px; padding: 0 0 0 10px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .12s ease, background .12s ease; }
.tp-row:hover { border-color: color-mix(in srgb, var(--pink) 55%, transparent); background: var(--surface-2); }
.tp-grade { width: 40px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; } /* (its look: with the grades, by .rank-badge) */
.tp-map { display: flex; flex-direction: column; min-width: 0; padding: 7px 0; }
.tp-map b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.tp-map b i { font-style: normal; font-weight: 500; font-size: 13.5px; color: var(--muted); }
.tp-map small { font-size: 13.5px; color: var(--muted); } .tp-map small span { font-weight: 600; }
.tp-mods { display: flex; gap: 4px; justify-content: flex-end; }
.mod-hex { min-width: 30px; height: 24px; padding: 0 5px; display: grid; place-items: center; font-size: 11.5px; font-weight: 900; letter-spacing: .02em; color: #1a1014;
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%); background: #a08cff; }
.mod-hex.up { background: #ff7480; } .mod-hex.down { background: #7fd98a; }
.tp-acc, .tp-pp { display: flex; flex-direction: column; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25; }
.tp-acc { color: var(--gold); font-weight: 800; font-size: 15px; }
.tp-pp b { font-size: 15px; } .tp-acc small, .tp-pp small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tp-w { align-self: stretch; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--pink); background: rgba(0, 0, 0, .22);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); padding-left: 14px; font-variant-numeric: tabular-nums; }
.tp-w i { font-style: normal; font-size: .6em; margin-left: 1px; opacity: .75; }
.tp-more { display: block; margin: 12px auto 0; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 7px 22px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.tp-more:hover { color: var(--text); border-color: var(--pink); }
@media (max-width: 760px) {
  .tp-row { grid-template-columns: 30px 40px minmax(0, 1fr) 84px; row-gap: 0; padding-bottom: 0; }
  .tp-mods, .tp-acc { display: none; } .tp-pp { display: none; }
}

/* --- notices + admin ------------------------------------------------------ */
.site-notice { background: rgba(255, 209, 92, .14); color: var(--gold); border-bottom: 1px solid rgba(255, 209, 92, .35); padding: 9px clamp(16px, 3vw, 40px); font-weight: 600; font-size: 14px; text-align: center; }
.ad-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 22px; }
.ad-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ad-card b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; } .ad-card span { color: var(--muted); font-size: 13.5px; }
.ad-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.ad-sec h3 { margin: 0 0 10px; font-size: 16px; }
.ad-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.ad-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 6px 8px; } .ad-table td { padding: 7px 8px; border-top: 1px solid var(--line); }
.ad-table .r { text-align: right; } .ad-scroll { max-height: 340px; overflow: auto; }
.ad-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; min-width: 80px; } .ad-bar i { display: block; height: 100%; background: var(--pink); }
/* the admin panel's osu! API tab: its state, and its column charts (a column a minute or an hour: people's calls at the bottom, background
   work on them, a red cap where osu! said "too many" or failed, the limit dashed) */
.oa-state { font-weight: 800; font-size: 14px; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.oa-state.ok { background: rgba(166, 233, 107, .14); color: var(--accent); } .oa-state.bad { background: #5a2330; color: #ffd9e2; }
.oa-alarm { border-color: #ff5d6c; } .oa-alarm b, .oa-red { color: #ff5d6c; }
.oa-h { margin: 20px 0 8px; font-size: 14.5px; }
.oa-chart { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; }
.oa-y { display: flex; flex-direction: column; justify-content: space-between; height: 130px; font-size: 11.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.oa-plot { position: relative; height: 130px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: var(--gap); align-items: end; border-bottom: 1px solid var(--line); }
.oa-col { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.oa-bar { width: 100%; display: flex; flex-direction: column; gap: 1px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.oa-bar b { display: block; min-height: 1px; } .oa-bar b.oa-pp { background: var(--pink-dark); } .oa-bar b.oa-bg { background: #b9831e; }
.oa-col em { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: #ff5d6c; }
.oa-col.oa-on .oa-bar { filter: brightness(1.3); } .oa-col.oa-on::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .05); pointer-events: none; }
.oa-limit { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--muted); opacity: .75; pointer-events: none; z-index: 1; }
.oa-limit span { position: absolute; right: 0; bottom: 2px; font-size: 11px; color: var(--muted); }
.oa-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.oa-tip { position: absolute; z-index: 2; transform: translate(-50%, -100%); pointer-events: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; color: var(--text); white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.oa-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin: 8px 0 4px; }
.oa-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; } .oa-legend .oa-dash { width: 14px; height: 0; border-top: 1px dashed var(--muted); border-radius: 0; vertical-align: 3px; }
.oa-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 18px; }
.oa-what { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .oa-plot { --gap: 1px !important; } .oa-tip { white-space: normal; width: 220px; } }
.ad-form { display: grid; gap: 10px; max-width: 640px; } .ad-form label { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.ad-form input, .ad-form select, .ad-form textarea { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; }
.ad-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } #ad-skinmb { width: 92px; } /* (the largest skin, in MB) */
.ad-ev { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-evo { display: grid; justify-items: center; gap: 4px; padding: 8px 10px; min-width: 84px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 12.5px; }
.ad-evo input { position: absolute; opacity: 0; pointer-events: none; }
.ad-evo:has(input:checked) { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, transparent); }
.ad-evo img { display: block; overflow: visible; }
.ad-evc { font-size: 28px; line-height: 44px; }

/* --- setup guide (Material 3 motion + shape: emphasized easing, 28dp cards, tonal surfaces) ------------------- */
:root { --ease-emph: cubic-bezier(0.2, 0, 0, 1); --ease-dec: cubic-bezier(0.05, 0.7, 0.1, 1); --sh-xl: 28px; --sc: #221920; --sc-high: #2b2028; }
.sg { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; max-width: 880px; }
.sg-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; background: var(--sc); border: 1px solid var(--line); border-radius: var(--sh-xl); padding: 20px 24px 20px 20px;
  transition: background-color 250ms var(--ease-emph), border-color 250ms var(--ease-emph); }
.sg-step:hover { background: var(--sc-high); border-color: color-mix(in srgb, var(--pink) 40%, transparent); }
html.js .sg-step { opacity: 0; transform: translateY(18px); }
html.js .sg-step.in { opacity: 1; transform: none;
  transition: opacity 400ms var(--ease-dec) var(--d, 0ms), transform 400ms var(--ease-dec) var(--d, 0ms), background-color 250ms var(--ease-emph), border-color 250ms var(--ease-emph); }
.sg-num { width: 56px; height: 56px; border-radius: 18px; background: var(--pink); color: var(--on-pink); font-weight: 800; font-size: 24px; display: grid; place-items: center; }
html.js .sg-step.in .sg-num { animation: sgPop 500ms var(--ease-emph) calc(var(--d, 0ms) + 120ms) both; }
@keyframes sgPop { from { transform: scale(.45) rotate(-14deg); } to { transform: none; } }
.sg-step h3 { margin: 4px 0 6px; font-size: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sg-step p { margin: 0 0 8px; line-height: 1.55; color: var(--muted); max-width: 64ch; }
.sg-step code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: 14px; color: var(--text); }
.sg-chip { background: rgba(255, 209, 92, .16); color: var(--gold); border-radius: 99px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; }
.sg-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.sg-note { font-size: 14px; }
.btn.tonal { background: color-mix(in srgb, var(--pink) 18%, transparent); color: var(--pink); } .btn.tonal:hover { background: color-mix(in srgb, var(--pink) 28%, transparent); }
.sg-help { max-width: 880px; background: var(--sc); border: 1px solid var(--line); border-radius: 20px; padding: 14px 20px; }
.sg-help summary { cursor: pointer; font-weight: 700; } .sg-help ul { margin: 12px 0 2px; padding-left: 18px; color: var(--muted); line-height: 1.6; } .sg-help li b { color: var(--text); }
@media (max-width: 560px) { .sg-step { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px; } .sg-num { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { html.js .sg-step { opacity: 1; transform: none; } html.js .sg-step.in .sg-num { animation: none; } .sg-step { transition: none; } }

/* ====================================================================================================================
   v2 look — warmer and more hand-made: a bit of brown in the blacks, chunky friendly type, pill buttons, doodle icons,
   a sticker and a hand-drawn underline on the home page, springy hovers. Later rules win, so this re-skins every page.
   ==================================================================================================================== */
:root {
  --bg: #16110f; --panel: #1f1917; --surface: #282120; --surface-2: #342b29; --line: #3d3330;
  --text: #f8efe8; --muted: #bcaea6; --pink: #ff6fa9; --pink-dark: #e8548f; --accent: #a6e96b; --gold: #ffc857; --radius: 18px;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1); --ease-dec: cubic-bezier(0.05, 0.7, 0.1, 1);
}
body {
  font-family: var(--font-body); font-size: 16px;
  background: radial-gradient(1100px 560px at 88% -8%, color-mix(in srgb, var(--pink) 11%, transparent), transparent 60%), radial-gradient(900px 520px at -8% 108%, rgba(255, 200, 87, .07), transparent 55%), var(--bg);
  background-attachment: fixed;
}
h1, h2, h3, .brand, .wordmark, .lb-val, .m-time, .pf-rk, .ad-card b, .rc-title { font-family: var(--font-head); letter-spacing: -0.015em; }
h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.sub { text-transform: none; letter-spacing: -0.01em; font-family: var(--font-head); font-size: 19px; color: var(--text); margin: 30px 0 12px; }
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }

/* --- top bar --- */
.topbar { height: 68px; gap: 18px; background: color-mix(in srgb, var(--bg) 80%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.brand-icon { width: 30px; height: 30px; border-radius: 9px; transition: transform .35s var(--ease); }
.brand:hover .brand-icon { transform: rotate(-10deg) scale(1.08); }
.wordmark b { color: var(--pink); }
.nav { gap: 4px; }
.nav-item { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 16px; transition: background-color .2s var(--ease), color .2s; }
.nav-item .ic { width: 19px; height: 19px; transition: transform .3s var(--ease); }
.nav-item:hover .ic { animation: wiggle .5s var(--ease); }
.nav-item.active { background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); }
.auth .avatar { border-radius: 11px; width: 34px; height: 34px; }

/* --- search with suggestions --- */
.search { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; width: min(250px, calc(26vw / var(--zall, 1))); padding: 0 12px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: width .28s var(--ease), border-color .2s, background-color .2s; }
.search:focus-within { width: min(380px, calc(42vw / var(--zall, 1))); border-color: var(--pink); background: var(--surface-2); color: var(--text); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; padding: 0; box-shadow: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-key { font: inherit; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.search:focus-within .search-key { display: none; }
.search-pop { position: absolute; top: calc(100% + 10px); left: 0; right: 0; min-width: 270px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); animation: popIn .2s var(--ease-dec); z-index: 40; }
.sp-item { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; color: var(--text); padding: 8px 10px; border-radius: 14px; cursor: pointer; font: inherit; text-align: left; opacity: 0; animation: spIn .25s var(--ease-dec) calc(var(--i, 0) * 35ms) forwards; }
.sp-item.sel, .sp-item:hover { background: var(--surface-2); }
.sp-item > img { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.sp-item mark { background: color-mix(in srgb, var(--pink) 28%, transparent); color: inherit; border-radius: 3px; }
.sp-empty { padding: 14px 12px; color: var(--muted); } .sp-empty small { display: block; margin-top: 3px; font-size: 13.5px; opacity: .8; }

/* --- buttons and inputs --- */
.btn { border-radius: 999px; padding: 10px 18px; font-family: var(--font-body); transition: transform .16s var(--ease), filter .16s, background-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(1px) scale(.97); }
.btn.primary { box-shadow: 0 6px 20px color-mix(in srgb, var(--pink) 25%, transparent); } .btn.primary:hover { box-shadow: 0 9px 26px color-mix(in srgb, var(--pink) 38%, transparent); }
.btn.big { padding: 13px 24px; font-size: 16px; } .btn .ic { width: 1.15em; height: 1.15em; }
input[type=text], input[type=search], input[type=number], textarea, select { border-radius: 14px; }
.toast { border-radius: 999px; }
.modal { border-radius: 28px; } .modal-scrim { backdrop-filter: blur(4px); }

/* --- views: they rise in, lists stagger --- */
.view.active { animation: viewIn .38s var(--ease-dec); }
.room-grid > *, .friends-list > *, .lb > *, .pf-list > li { animation: rise .45s var(--ease-dec) both; }
.room-grid > :nth-child(2), .friends-list > :nth-child(2), .lb > :nth-child(2) { animation-delay: 45ms; }
.room-grid > :nth-child(3), .friends-list > :nth-child(3), .lb > :nth-child(3) { animation-delay: 90ms; }
.room-grid > :nth-child(4), .friends-list > :nth-child(4), .lb > :nth-child(4) { animation-delay: 135ms; }
.room-grid > :nth-child(5), .friends-list > :nth-child(5), .lb > :nth-child(5) { animation-delay: 180ms; }
.room-grid > :nth-child(n+6), .friends-list > :nth-child(n+6), .lb > :nth-child(n+6) { animation-delay: 220ms; }
.view-head.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.room-card { border-radius: 22px; transition: transform .22s var(--ease), border-color .2s, background-color .2s; }
.room-card:hover { transform: translateY(-4px) rotate(-.25deg); border-color: color-mix(in srgb, var(--pink) 55%, transparent); }

/* --- rooms: the join-by-code card --- */
.join-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 16px 20px; margin: 0 0 8px; max-width: none; }
.join-card > .ic { width: 32px; height: 32px; color: var(--gold); transform: rotate(-12deg); }
.join-copy { display: flex; flex-direction: column; flex: 1; min-width: 160px; } .join-copy b { font-family: var(--font-head); font-size: 17px; }
.join-card .row { display: flex; gap: 8px; } .join-card input { width: 160px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
/* --- rooms: a room's maps replaced by a playlist (the owner's Undo), who adds maps (its settings) --- */
.room-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--pink) 40%, var(--line)); border-radius: 18px; background: var(--panel); }
.adders-more { display: flex; flex-direction: column; gap: 10px; } .rs-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .rs-inline input { width: 84px; text-align: center; }
.trust-list { display: flex; flex-wrap: wrap; gap: 6px; } .trust-list .chip.active { border-color: var(--good, #8be04b); color: var(--good, #8be04b); }
/* --- rooms → playlists (playlists.js): the rooms' cards and bars; a playlist's maps in its order --- */
.pls-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; } .pls-bar input { width: 170px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.pls-make { flex-direction: column; align-items: stretch; } .pls-make-f { display: flex; flex-direction: column; gap: 10px; } .pls-make label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.pls-make textarea { font: inherit; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; resize: vertical; } .pls-make .row { display: flex; gap: 8px; }
.pls-card .rc-title { text-align: left; }
.pls-top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; } .pls-head h2 { margin: 0; } .pls-app { margin: 10px 0; max-width: 70ch; }
.pls-tools, .pls-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; } .pls-share { display: inline-flex; align-items: center; gap: 8px; } .pls-add input { flex: 1; min-width: 200px; max-width: 520px; }
.pls-into { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.pls-into-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); } .pls-into-row > span { flex: 1; min-width: 160px; }
.pls-maps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pls-row { display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) 22px auto; align-items: center; gap: 12px; padding: 8px 12px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.pls-n { color: var(--muted); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; } .pls-cv { width: 64px; height: 36px; border-radius: 8px; background: var(--cover, none) center / cover, var(--surface); }
.pls-t { display: flex; flex-direction: column; min-width: 0; } .pls-t b, .pls-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pls-t small { color: var(--muted); font-size: 12.5px; }
.pls-ok { color: var(--good, #8be04b); font-weight: 900; text-align: center; } .pls-btns { display: flex; gap: 4px; }
.pls-maps.own .pls-row { grid-template-columns: 26px 28px 64px minmax(0, 1fr) 22px auto; gap: 10px; padding-left: 6px; } /* (yours, and a room's for its owner: the handle first, reorder.css) */
@media (max-width: 640px) { .pls-row { grid-template-columns: 22px minmax(0, 1fr) auto; } .pls-maps.own .pls-row { grid-template-columns: 26px 22px minmax(0, 1fr) auto; } .pls-cv, .pls-ok { display: none; } }

/* --- friends --- */
.add-friend { margin: 0 0 8px; }
.friend-row { border-radius: 20px; background: var(--panel); border: 1px solid var(--line); padding: 10px 14px; transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
.friend-row:hover { border-color: color-mix(in srgb, var(--pink) 45%, transparent); transform: translateX(3px); }
.friend-row img { border-radius: 12px; width: 40px; height: 40px; }
.fr-acts { display: inline-flex; gap: 8px; margin-left: auto; }

/* --- profile --- */
.pf-avatar { border-radius: 28px; }
.pf-row { border-radius: 16px; } .pf-list { gap: 8px; }
.place-badge, .sg-chip, .tp-more { font-family: var(--font-body); }

/* --- home --- */
.landing { max-width: 1080px; }
.l-hero { padding: 18px 0 40px; }
.l-sticker { display: inline-block; margin: 0 0 16px; padding: 5px 14px; background: var(--gold); color: #3a2a00; font-weight: 800; font-size: 14px; border-radius: 99px; transform: rotate(-3deg); box-shadow: 0 6px 16px rgba(255, 200, 87, .22); }
.squiggle { color: var(--pink); padding-bottom: .1em; position: relative; }
.squiggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .32em; background: var(--pink); pointer-events: none; /* (the theme's accent, in the hand-drawn shape) */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'><path d='M1 7c6-6 10 6 16 0s10 6 16 0 10 6 16 0 10 6 16 0 10 6 16 0 10 6 16 0' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'><path d='M1 7c6-6 10 6 16 0s10 6 16 0 10 6 16 0 10 6 16 0 10 6 16 0 10 6 16 0' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat; }
.l-copy h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; }
.l-copy > * { animation: rise .6s var(--ease-dec) both; }
.l-copy > :nth-child(2) { animation-delay: 70ms; } .l-copy > :nth-child(3) { animation-delay: 140ms; } .l-copy > :nth-child(4) { animation-delay: 210ms; } .l-copy > :nth-child(5) { animation-delay: 280ms; }
.m-run { animation: floaty 6.5s ease-in-out infinite; } .m-board { animation: floaty 7.5s ease-in-out -2.5s infinite; }
.m-run, .m-board { border-radius: 22px; }
.sg-step { border-radius: 26px; } .sg-num { border-radius: 20px; font-family: var(--font-head); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes wiggle { 0% { transform: rotate(0); } 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg) scale(1.1); } 100% { transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 560px) { .join-card input { width: 120px; } }
@media (prefers-reduced-motion: reduce) { /* (but the pictures of what something does play anyway: the explainers, the carousels and what is in them, the home page's small ones, a season's weather; Settings → Reduce motion stills them too) */
  :not(:is(.l-tour, .lb-duel, .lb-split, .th-fx, .car) *), :not(:is(.l-tour, .lb-duel, .lb-split, .th-fx, .car) *)::before, :not(:is(.l-tour, .lb-duel, .lb-split, .th-fx, .car) *)::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* --- friends, tidier profile -------------------------------------------------------------------------------------- */
#view-runs .lb { max-width: none; }
#view-friends .add-friend { max-width: 640px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
#view-friends .add-friend .row input { flex: 1; min-width: 0; }
#friends-list, #friend-followers, #friend-following { max-width: 760px; }

.pf-avatar { width: 112px; height: 112px; flex: none; object-fit: cover; }
.pf-id h1 { font-size: clamp(28px, 4vw, 38px); }
.pf-row { flex-wrap: wrap; row-gap: 4px; }
.pf-row .pf-name { flex: 1 1 240px; }

/* decoration and controls are not selectable (the preview mock, the top bar, buttons, badges); text you may want to copy still is */
.topbar, .btn, .nav-item, .l-sticker, .sg-num, .sg-chip, .tp-grade, .mod-hex, .lb-rank, .rank-badge, .search-key, .brand, .ic { -webkit-user-select: none; user-select: none; }
.search input, .join-card input, input, textarea { -webkit-user-select: text; user-select: text; }


/* ==== room page, same look as the rest ==== */
.back { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; margin-bottom: 14px; color: var(--muted); font-family: var(--font-body); transition: color .2s, border-color .2s, transform .16s var(--ease); }
.back:hover { color: var(--text); border-color: var(--pink); transform: translateX(-2px); } .back.sm { padding: 5px 13px; margin-bottom: 10px; }
.room-top { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 20px 24px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.room-top h1 { font-size: clamp(26px, 3.2vw, 36px); }
.room-top-actions { flex-wrap: wrap; }
.code-pill { border-radius: 99px; padding: 3px 12px; }
.badge { border-radius: 99px; }
#sync-status { margin: 0 4px 6px; }
.room-split { gap: 22px; }

/* leaderboard of the room + the map's scores */
.lb-bar { margin: 6px 0 12px; }
.lb-tabs { gap: 6px; flex-wrap: wrap; } .lb-tab { border-radius: 999px; padding: 8px 15px; font-family: var(--font-body); transition: background-color .2s, color .2s, transform .16s var(--ease); } .lb-tab:hover { transform: translateY(-1px); }
.leaderboard { display: flex; flex-direction: column; gap: 8px; }
.leaderboard .lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin: 0; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); transition: transform .18s var(--ease), border-color .18s; }
.leaderboard .lb-clickable { cursor: pointer; } .leaderboard .lb-clickable:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--pink) 50%, transparent); }
.leaderboard .lb-rank { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 16px; font-family: var(--font-head); }
.leaderboard .lb-top1 { background: linear-gradient(90deg, rgba(255, 200, 87, .14), var(--panel) 60%); border-color: rgba(255, 200, 87, .5); }
.leaderboard .lb-top1 .lb-rank { background: #ffc857; color: #3a2a00; box-shadow: 0 0 14px rgba(255, 200, 87, .5); }
.leaderboard .lb-top2 .lb-rank { background: #cfd6e4; color: #1d2430; } .leaderboard .lb-top3 .lb-rank { background: #e0955b; color: #2e1708; }
.leaderboard .lb-avatar { width: 44px; height: 44px; border-radius: 14px; }
.leaderboard .lb-name { font-size: 16px; }
.leaderboard .lb-metric { font-family: var(--font-head); font-size: 21px; letter-spacing: -0.01em; }
.leaderboard .me-row { outline: 1px solid color-mix(in srgb, var(--pink) 55%, transparent); background: color-mix(in srgb, var(--pink) 9%, transparent); }
.score-row { gap: 12px; }
.score-row .rank-badge { border-radius: 10px; min-width: 34px; padding: 4px 8px; }
.score-main { flex: 1; min-width: 0; }
.score-right { gap: 1px; } .score-right .pp { font-family: var(--font-head); font-size: 20px; } .score-right .score-total { font-size: 14px; }
.replay-dl { display: inline-block; background: rgba(166, 233, 107, .14); border-radius: 99px; padding: 2px 10px; }
.replay-dl:hover { text-decoration: none; background: rgba(166, 233, 107, .26); }
.scores-head { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 12px 16px; }

/* beatmaps */
.maps-head .sub { margin-top: 4px; }
.owner-add { border-radius: 22px; background: var(--panel); border-style: dashed; padding: 14px; }
.map-list { gap: 10px; }
.map-card, .set-card { border-radius: 24px; }
.diff-row.clickable:hover { background: color-mix(in srgb, var(--pink) 8%, transparent); }
.diff-row.active { background: color-mix(in srgb, var(--pink) 16%, transparent); box-shadow: inset 4px 0 0 var(--pink); }

/* readability: base text 16px; small text is never below ~12px */
body { font-size: 16px; }
.small { font-size: 13.5px; }

/* room-code box: sized to the code (OSU-XXXXXX), text centred so it fills the box edge to edge */
.join-card input { width: 148px; padding: 10px 12px; text-align: center; letter-spacing: .06em; font-size: 15px; }
.join-card input::placeholder { letter-spacing: .06em; }
@media (max-width: 560px) { .join-card input { width: 140px; } }


/* ==== room chat, per-map rules ==== */
.chat-panel { margin-top: 22px; }
.chat-log { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 12px; height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.chat-log:empty::before { content: 'No messages yet. Say hi!'; color: var(--muted); margin: auto; }
.cl { animation: rise .3s var(--ease-dec) both; }
.cl.chat { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.cl.chat > img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; background: var(--surface-2); }
.cl.chat b { font-size: 14.5px; } .cl time { color: var(--muted); font-size: 12px; margin-left: 8px; }
.cl.chat p { margin: 2px 0 0; line-height: 1.45; overflow-wrap: anywhere; user-select: text; }
.cl.ev { display: flex; align-items: center; gap: 10px; background: rgba(255, 200, 87, .1); border: 1px solid rgba(255, 200, 87, .25); border-radius: 16px; padding: 7px 12px; font-size: 14px; }
.cl.ev time { margin-left: auto; } .cl.ev i { font-style: normal; font-weight: 700; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; } .chat-form input { flex: 1; min-width: 0; border-radius: 999px; padding: 11px 18px; }
.forced-badge { background: color-mix(in srgb, var(--pink) 18%, transparent); color: var(--pink); border-radius: 99px; padding: 2px 9px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.att-badge { background: var(--surface-2); color: var(--text); border-radius: 99px; padding: 2px 9px; font-size: 12.5px; font-weight: 700; } .att-badge.out { background: rgba(255, 94, 107, .2); color: #ff8a94; }
.badge.att-room { color: var(--gold); }
.mods-btn { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 2px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.mods-btn:hover { color: var(--pink); border-color: var(--pink); }
#forced-modal .modchip { min-width: 60px; }


/* ==== room settings window ==== */
.rs-modal { max-width: 520px; width: calc(94vw / var(--zall, 1)); max-height: calc(92vh / var(--zall, 1)); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.rs-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rs-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .rs-title b { font-family: var(--font-head); font-size: 16px; }
.rs-note { margin: 0; line-height: 1.5; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 84px; text-align: center; font-size: 20px; font-family: var(--font-head); border-radius: 14px; padding: 8px; }
.step-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 22px; cursor: pointer; transition: transform .16s var(--ease), border-color .2s; }
.step-btn:hover { border-color: var(--pink); transform: scale(1.06); } .step-btn:active { transform: scale(.94); }
.rs-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; } .rs-switch input { position: absolute; opacity: 0; }
.rs-switch .sw { width: 46px; height: 28px; border-radius: 99px; background: var(--surface-2); position: relative; flex: none; transition: background-color .2s var(--ease); }
.rs-switch .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .22s var(--ease); }
.rs-switch input:checked + .sw { background: var(--pink); } .rs-switch input:checked + .sw::after { transform: translateX(18px); background: #2a0a1a; }
.rs-switch input:focus-visible + .sw { outline: 2px solid var(--pink); outline-offset: 2px; }
.rs-switch span:last-child { display: flex; flex-direction: column; } .rs-switch small { font-size: 13px; }
.timer-box { display: flex; flex-direction: column; gap: 10px; }
.dur-row { display: flex; gap: 8px; } .dur-row input { flex: 1; min-width: 0; } .dur-row select { width: 130px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; } .quick button { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: color .2s, border-color .2s; }
.quick button:hover { color: var(--pink); border-color: var(--pink); }
#timer-date { color-scheme: dark; width: 100%; }
.timer-preview { background: rgba(255, 200, 87, .12); border: 1px solid rgba(255, 200, 87, .3); color: var(--gold); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.rs-modal select, .rs-modal input[type=number], .rs-modal input[type=datetime-local] { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; color-scheme: dark; }
.rs-modal select:focus, .rs-modal input:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent; }

.rc-rules { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }


/* ==== settings page, language button, big text / calm mode ==== */
.icon-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; transition: color .2s, border-color .2s, transform .16s var(--ease); }
.icon-btn:hover { color: var(--text); border-color: var(--pink); transform: translateY(-1px); } .icon-btn .ic { width: 20px; height: 20px; }
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
html:lang(pl) .chat-log:empty::before { content: 'Brak wiadomości. Przywitaj się!'; }
@media (max-width: 760px) { .lang-btn { display: none; } }
.rs-switch { position: relative; } .rs-switch input { left: 0; top: 0; width: 46px; height: 28px; margin: 0; }


/* country flags */
.flag { height: .8em; width: auto; border-radius: 3px; vertical-align: -.06em; margin-right: .45em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); display: inline-block; }
.flag.lg { height: .62em; margin-right: .35em; vertical-align: .02em; }
.fn, .lb-name, .lb-who b, .sp-item span { display: inline-flex; align-items: center; } .fn { display: flex; } .lb-name { flex: 1; }
.pf-rk .flag { align-self: center; margin-right: .3em; }


/* top-5 lists */
.maps-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-more.sm { margin: 0; padding: 5px 14px; font-size: 13px; }

/* flags: normal size everywhere, smaller only in the search suggestions */
.flag { height: .8em; margin-right: .45em; border-radius: 3px; vertical-align: -.06em; }
.flag.lg { height: .62em; margin-right: .35em; vertical-align: .02em; }
.sp-item > img { width: 32px; height: 32px; } /* the avatar, not the flag */
.sp-item .flag { width: auto; height: .6em; margin-right: .4em; }


/* live status under the profile name */
.pf-pres { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); width: fit-content; max-width: 100%; font-size: 14px; }
.pf-dot { width: 10px; height: 10px; border-radius: 50%; background: #5dd68a; box-shadow: 0 0 0 0 rgba(93,214,138,.6); }
.pf-pres.play .pf-dot { background: var(--pink, var(--pink)); animation: pfPulse 1.8s infinite; }
.pf-pres.dnd .pf-dot { background: #ff5d6c; } .pf-pres.brb .pf-dot { background: #ffc857; } .pf-pres.off .pf-dot { background: #6b5b63; } .pf-pres.off .pf-pw { color: var(--muted); } /* (offline: Last seen, in grey as the friends lists show it) */
.pf-pw { font-weight: 700; } .pf-pm { opacity: .85; overflow: hidden; text-overflow: ellipsis; } .pf-pm small { opacity: .7; }
.pf-pl { display: inline-flex; gap: 6px; flex-wrap: wrap; } .pf-pl b { background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px 10px; font-variant-numeric: tabular-nums; font-size: 13px; }
@keyframes pfPulse { 70% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--pink) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pink) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .pf-pres.play .pf-dot { animation: none; } }

/* website chat: floating box, bottom right */
.wc { position: fixed; right: 18px; bottom: 18px; z-index: 80; font-size: 14px; }
.wc[hidden] { display: none; }
.wc-pill { display: flex; align-items: center; gap: 8px; background: var(--pink); color: var(--on-pink); border: 0; border-radius: 999px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.45); transition: transform .2s var(--ease), opacity .2s; }
.wc-pill:hover { transform: translateY(-2px); }
.wc-total { background: #1a0d14; color: var(--pink); border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 800; padding: 1px 8px; }
.wc.open .wc-pill { opacity: 0; pointer-events: none; transform: scale(.9); position: absolute; right: 0; bottom: 0; }
.wc-panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw / var(--zall, 1) - 36px)); height: min(480px, calc(100vh / var(--zall, 1) - 100px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.6); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transform-origin: bottom right; transition: opacity .2s var(--ease), transform .28s var(--ease), visibility 0s linear .28s, width .25s var(--ease); }
.wc.open .wc-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wc.wide .wc-panel { width: min(720px, calc(100vw / var(--zall, 1) - 36px)); }
.wc-bar { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); }
.wc-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; } .wc-tabs::-webkit-scrollbar { display: none; }
.wc-tab { display: flex; align-items: center; gap: 5px; flex: none; max-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 5px 4px 11px; cursor: pointer; transition: border-color .15s, background .15s; }
.wc-tab.on { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 12%, transparent); } .wc-tab > span { color: var(--pink); font-weight: 800; } .wc-tab b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-tab i { background: var(--pink); color: var(--on-pink); border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; padding: 0 6px; }
.wc-tab button { background: none; border: 0; color: var(--muted); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; } .wc-tab button:hover { background: rgba(255,255,255,.1); color: var(--text); }
.wc-add, .wc-wide, .wc-min { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 15px; } .wc-add:hover, .wc-wide:hover, .wc-min:hover { color: var(--pink); border-color: var(--pink); }
.wc-menu { position: absolute; right: 10px; top: 52px; width: 250px; max-height: 280px; overflow-y: auto; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 44px rgba(0,0,0,.55); z-index: 5; }
.wc-menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px; padding: 8px 12px; color: var(--text); font: inherit; cursor: pointer; } .wc-menu button:hover { background: var(--surface); }
.wc-mh { color: var(--muted); font-size: 12px; padding: 6px 12px 2px; }
.wc-st { width: 9px; height: 9px; border-radius: 50%; background: #5dd68a; flex: none; } .wc-st.play { background: var(--pink); } .wc-st.dnd { background: #ff5d6c; } .wc-st.brb { background: #ffc857; } .wc-st.off { background: #5b5252; }
.wc-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.wc-l b { font-weight: 700; } .wc-l time { color: var(--muted); font-size: 11.5px; margin-left: 8px; } .wc-l p { margin: 2px 0 0; overflow-wrap: anywhere; } .wc-l.mine b { color: var(--pink); } .wc-l.ev { color: var(--gold); }
.wc-empty { margin: auto; color: var(--muted); text-align: center; }
.wc-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); } .wc-form[hidden] { display: none; } .wc-form input { flex: 1; min-width: 0; border-radius: 999px; padding: 10px 16px; }
@media (prefers-reduced-motion: reduce) { .wc-panel, .wc-pill { transition: opacity .01s; transform: none !important; } }

/* speedrun page: category chips + podium + rows with the gap to #1 */
#runs-cat { display: none; }
.rc-groups, #runs-chips { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.rc-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rc-label { color: var(--muted); font-size: 13.5px; min-width: 170px; }
.rc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.rc-chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pink) 55%, transparent); }
.rc-chip.on { background: var(--pink); border-color: var(--pink); color: var(--on-pink); }
@media (max-width: 700px) { .rc-label { min-width: 0; width: 100%; } }
.rb-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 18px 0 14px; } .rb-head b { font-family: var(--font-head); font-size: 24px; }
.podium { display: grid; gap: 12px; max-width: 920px; margin: 0 auto 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.podium.n1 { grid-template-columns: minmax(0, 360px); justify-content: center; } .podium.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; cursor: pointer; transition: transform .25s var(--ease), border-color .2s; }
.pod:hover { transform: translateY(-4px); }
.pod1 { padding-top: 34px; padding-bottom: 24px; border-color: rgba(255, 200, 87, .6); background: linear-gradient(170deg, rgba(255, 200, 87, .12), var(--panel) 65%); }
.pod2 { border-color: rgba(205, 215, 230, .45); background: linear-gradient(170deg, rgba(205, 215, 230, .08), var(--panel) 65%); }
.pod3 { border-color: rgba(214, 140, 90, .5); background: linear-gradient(170deg, rgba(214, 140, 90, .1), var(--panel) 65%); }
.pod.me { box-shadow: 0 0 0 2px var(--pink); }
.pod-medal { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a0d14; background: #c8d0dc; }
.pod1 .pod-medal { background: var(--gold); width: 36px; height: 36px; top: -18px; font-size: 18px; } .pod3 .pod-medal { background: #d9915b; }
.pod-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; } .pod1 .pod-av { width: 84px; height: 84px; }
.pod-who { display: flex; flex-direction: column; min-width: 0; max-width: 100%; } .pod-who b { font-family: var(--font-head); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pod-who small { color: var(--muted); }
.pod-val { font-family: var(--font-head); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; } .pod1 .pod-val { font-size: 34px; color: var(--gold); } .pod-val i { font-size: .55em; font-style: normal; opacity: .7; }
.pod-gap { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .podium { grid-template-columns: 1fr; } }
.rb-rest { max-width: 920px; margin: 0 auto; }
.rb-gap { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; margin-right: 6px; }

/* friends: the avatar rule must not stretch the little country flag */
.friend-row > img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.friend-row .fn .flag, .friend-row .flag { width: auto; height: .8em; border-radius: 3px; object-fit: contain; margin-right: .45em; vertical-align: -.06em; background: none; }

/* larger-text slider: drawn by us, clean track + fill + round thumb (global input styles reset first) */
.stg-range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; outline: none; cursor: pointer; accent-color: unset; }
.stg-range input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--pink) calc(11px + (100% - 22px) * var(--p, 0)), #3d3330 calc(11px + (100% - 22px) * var(--p, 0))); }
.stg-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: #fff3f8; border: 0; box-shadow: 0 0 0 4px var(--pink), 0 3px 10px rgba(0,0,0,.5); transition: transform .15s var(--ease); }
.stg-range input[type=range]:hover::-webkit-slider-thumb, .stg-range input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.1); }
.stg-range input[type=range]::-moz-range-track { height: 8px; border-radius: 999px; background: #3d3330; }
.stg-range input[type=range]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--pink); }
.stg-range input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff3f8; border: 0; box-shadow: 0 0 0 4px var(--pink); }
.rs-range output { min-width: 3.2em; }
/* podium: room above the cards for the medals */
.rb-head { margin-bottom: 34px; }
.podium { padding-top: 6px; }

/* premium: badge, plan card, admin gift box, room history */
.pf-prem { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: linear-gradient(120deg, #ffc857, #ff9ac4); color: #2a1220; font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: 0; } .pf-prem.sm { padding: 0 8px; font-size: 12px; margin-left: 6px; }
.pf-admin { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0; border: 1px dashed rgba(255, 200, 87, .5) !important; }
.pf-admin-h { display: flex; flex-direction: column; } .pf-admin-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-lock { background: rgba(255, 200, 87, .08); border: 1px solid rgba(255, 200, 87, .3); border-radius: 16px; padding: 10px 14px; margin: 0 0 10px; font-size: 14px; }
.badge.closed { background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid var(--line); }
#hist-head { margin-top: 30px; } #myhistory .room-card { opacity: .8; }
#close-room { margin-right: 8px; }

/* phones: room actions wrap instead of pushing the page sideways */
.room-top-actions { flex-wrap: wrap; }
@media (max-width: 560px) { .room-top { flex-wrap: wrap; } .room-top-actions { width: 100%; } .room-top-actions .btn { flex: 1 1 auto; } }

.tp-n { font-size: 13px; font-weight: 800; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* room cards: title centred over the card */
.room-card .rc-title { text-align: center; }

/* notifications */
.nt-btn { position: relative; }
.nt-btn i { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--pink); color: var(--on-pink); font: 700 10px/16px var(--font, inherit); font-style: normal; text-align: center; }
.nt-pop { position: fixed; top: 74px; right: 16px; z-index: 90; width: min(380px, calc(100vw / var(--zall, 1) - 32px)); max-height: calc(70vh / var(--zall, 1)); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.nt-pop[hidden] { display: none; }
.nt-head { position: sticky; top: 0; z-index: 1; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel); } /* (stays while the list scrolls) */
.nt-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.nt-row.new { background: color-mix(in srgb, var(--pink) 7%, transparent); }
.nt-row img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.nt-row p { margin: 0; line-height: 1.4; }
.nt-row time { color: var(--muted); font-size: 12px; }
.nt-acts { display: flex; gap: 6px; margin-top: 6px; } .nt-acts:empty { display: none; }
.nt-empty { padding: 18px 14px; color: var(--muted); margin: 0; font-size: 13.5px; }

/* chat cards (shared scores, maps and replays in groups and between friends) */
.wc-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.wc-card .wc-ct { color: var(--muted); font-size: 12px; margin-left: 6px; }
.wc-card .wc-cm { margin: 4px 0 2px; font-weight: 600; }
.wc-card .wc-cs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.wc-card .wc-rk { font-weight: 800; color: var(--gold); } .wc-card .wc-md { color: var(--gold); }
.wc-card a { color: var(--pink); font-size: 12.5px; }
.wc-share { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 0; } .wc-share[hidden] { display: none; }

/* rooms page tabs */
.rm-tabs { display: flex; gap: 4px; margin: 18px 0 12px; border-bottom: 1px solid var(--line); }
.rm-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 12px; cursor: pointer; margin-bottom: -1px; }
.rm-tab.active { color: var(--text); border-bottom-color: var(--pink); }
.rm-tab[hidden] { display: none; }
.rm-tab i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 4px; }
.rm-panel[hidden] { display: none; }

/* nav badge */
.nav-item { position: relative; }
.nav-badge { margin-left: 4px; background: var(--pink); color: var(--on-pink); border-radius: 999px; font: 800 10.5px/16px inherit; font-style: normal; padding: 0 6px; }
.nav-badge[hidden] { display: none; }
#chat-full { margin-left: 8px; vertical-align: middle; }

/* ================= Chat page (Discord-style) ================= */
#view-chat.active { max-width: none; }
.ch { display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; height: calc(100vh / var(--zall, 1) - 120px); min-height: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ch-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--surface); position: relative; }
.ch-lh { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.ch-lh b { font-size: 16px; }
.ch-convs { overflow-y: auto; padding: 0 8px 12px; flex: 1; }
.ch-grp { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 12px 8px 4px; }
.ch-conv { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.ch-conv:hover { background: rgba(255,255,255,.04); color: var(--text); }
.ch-conv.on { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--text); }
.ch-cn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ch-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--panel); color: var(--pink); font-weight: 800; }
.ch-ic.big { width: 36px; height: 36px; font-size: 17px; }
.ch-av { position: relative; flex: none; width: 30px; height: 30px; }
.ch-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.ch-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); background: #6b5b63; }
.ch-menu .ch-dot { position: static; display: inline-block; margin-right: 8px; vertical-align: middle; }
.ch-dot.on { background: #43b581; } .ch-dot.play { background: var(--pink); } .ch-dot.dnd { background: #f04747; }
.ch-un { background: var(--pink); color: var(--on-pink); border-radius: 999px; font: 800 11px/17px inherit; font-style: normal; padding: 0 6px; }
.ch-x { border: 0; background: none; color: var(--muted); cursor: pointer; opacity: 0; font-size: 15px; } .ch-conv:hover .ch-x { opacity: 1; }
.ch-menu { position: absolute; top: 52px; left: 10px; right: 10px; z-index: 5; max-height: calc(60vh / var(--zall, 1)); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.ch-menu[hidden] { display: none; }
.ch-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 7px 10px; color: var(--text); font: inherit; cursor: pointer; } .ch-menu button:hover { background: var(--surface); }
.ch-mh { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 2px; }
.ch-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ch-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 61px; }
.ch-head:empty { display: none; }
.ch-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ch-ht b { font-size: 16px; } .ch-ht small { color: var(--muted); }
.ch-back { display: none; border: 0; background: none; color: var(--text); font-size: 20px; cursor: pointer; }
.ch-log { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.ch-log > :first-child { margin-top: auto; }
.ch-log > .af:first-child { margin-top: 0; } /* (Activity: from the top, the whole width) */
.hub-act { margin: -18px 0 30px; } html:not(.signed-in) .hub-act { display: none; }
.ch-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 6px 4px; border-radius: 6px; }
.ch-msg:hover { background: rgba(255,255,255,.025); }
.ch-msg.cont { padding-top: 0; } .ch-msg.cont > * { grid-column: 2; }
.ch-mav { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); cursor: pointer; }
.ch-mt b { cursor: pointer; } .ch-mt b.me { color: var(--pink); } .ch-mt time { color: var(--muted); font-size: 12px; margin-left: 8px; }
.ch-msg p { margin: 2px 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.ch-ev { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; padding: 6px 4px 6px 56px; }
.ch-ev time { margin-left: auto; font-size: 12px; }
.ch-card { margin-top: 4px; max-width: 460px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 8px 12px; }
/* a score or a map as one compact card: its cover as a thumbnail, its title on one line, its numbers, what it is; the whole card is its link */
.ch-emb { display: flex; align-items: center; gap: 12px; padding: 8px; color: var(--text); text-decoration: none; transition: border-color .15s, background-color .15s; }
a.ch-emb:hover { border-color: color-mix(in srgb, var(--pink) 45%, transparent); background: var(--surface-2); } a.ch-emb:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.ch-emb .ch-cov, .ch-rpl .ch-cov { position: static; flex: none; width: 92px; height: 56px; border-radius: 8px; object-fit: cover; opacity: 1; background: var(--surface-2); }
.ch-eb { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ch-emb .ch-cm, .ch-rpl .ch-cm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; margin: 0; }
.ch-emb .ch-cs { font-size: 13px; gap: 2px 10px; } .ch-emb .ch-ct { font-size: 11.5px; }
.ch p:empty { display: none; } /* (a message that is only its card) */
/* a replay as the same compact card, its buttons under its title */
.ch-rpl { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 8px; }
.ch-rpl:not(:has(> .ch-cov)) { grid-template-columns: minmax(0, 1fr); } .ch-rpl > .ch-cov { grid-row: 1 / span 3; align-self: stretch; height: auto; min-height: 56px; } .ch-rpl > :not(.ch-cov) { grid-column: -2; }
.ch-ct { color: var(--muted); font-size: 12px; } .ch-cm { font-weight: 700; }
.ch-cs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ch-rk, .ch-md { color: var(--gold); font-weight: 700; }
.ch-card a { color: var(--pink); font-size: 13px; }
.ch-share { display: flex; gap: 6px; padding: 0 16px 8px; } .ch-share[hidden] { display: none; }
.ch-form { display: flex; gap: 8px; padding: 0 16px 16px; } .ch-form[hidden] { display: none; }
.ch-form input { flex: 1; min-width: 0; }
.ch-empty { color: var(--muted); padding: 12px; font-size: 13.5px; } .ch-empty.big { margin: auto; text-align: center; }
.ch-side { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 14px; }
.ch-side[hidden] { display: block; visibility: hidden; }
@media (min-width: 1201px) { .ch-side:empty { display: none; } .ch:has(> .ch-side:empty) { grid-template-columns: 260px minmax(0, 1fr); } } /* no chat open: no empty column */
.ch-side h4 { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 8px; }
.ch-mem { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; cursor: pointer; }
.ch-mem:hover { background: rgba(255,255,255,.04); }
.ch-mem div { min-width: 0; display: flex; flex-direction: column; } .ch-mem small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-rank { width: 26px; text-align: right; color: var(--muted); font-size: 12px; font-weight: 700; }
.ch-host { font-style: normal; font-size: 10.5px; color: var(--gold); }
.ch-inv { display: block; width: 100%; text-align: left; margin-bottom: 4px; }
.ch-prof { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-top: 10px; }
/* a friend's DM: who they are beside it, as their profile shows them (their banner, picture, name, what they do, osu! rank and pp) */
.ch-pcard { margin: -14px -14px 0; }
.ch-pban { height: 104px; background: var(--ban, none) center / cover no-repeat, linear-gradient(135deg, color-mix(in srgb, var(--pink) 42%, var(--surface-2)), var(--surface-2)); } /* (the colours under it while it loads, or when it cannot) */
.ch-pmain { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 16px 18px; }
.ch-pav { position: relative; width: 84px; height: 84px; margin-top: -42px; border-radius: 50%; border: 5px solid var(--surface); background: var(--surface); }
.ch-pav img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.ch-pav .ch-dot { right: 1px; bottom: 1px; width: 18px; height: 18px; border-width: 4px; }
.ch-pname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 800; line-height: 1.25; }
.ch-pst { color: var(--muted); font-size: 13px; }
.ch-pstats { display: flex; gap: 6px; width: 100%; margin: 6px 0 2px; } .ch-pstats span { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--panel); }
.ch-pstats b { font-size: 14.5px; font-variant-numeric: tabular-nums; } .ch-pstats small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11.5px; }
.ch-psince { margin: 2px 0 6px; font-size: 13px; } .ch-psince small { color: var(--muted); font-size: 12px; }
.ch-prof img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.ch-prof b { font-size: 17px; } .ch-prof small { color: var(--muted); }
@media (max-width: 1100px) { .ch { grid-template-columns: 230px minmax(0, 1fr); } .ch-side { display: none; } }
@media (max-width: 720px) {
  .ch { grid-template-columns: 1fr; height: calc(100vh / var(--zall, 1) - 140px); }
  .ch-main { display: none; } .ch.show-conv .ch-main { display: flex; } .ch.show-conv .ch-list { display: none; }
  .ch-back { display: block; }
}

/* chat: friends list, friend picker, map cards, leaderboard panel */
.ch-cn { display: flex; flex-direction: column; line-height: 1.2; }
.ch-cs2 { font-weight: 500; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-conv.off { opacity: .55; } .ch-conv.off:hover, .ch-conv.off.on { opacity: 1; }
.ch-hint { color: var(--muted); font-size: 12.5px; align-self: center; margin-left: 4px; }
.ch-search { width: 100%; margin: 2px 0 6px; }
.ch-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; padding: 2px 2px 6px; }
.ch-menu .ch-fchip { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; text-align: center; font-size: 12px; }
.ch-fchip .ch-av { width: 40px; height: 40px; }
.ch-fchip span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-menu [hidden] { display: none !important; }
.ch-msg p a { color: var(--pink); overflow-wrap: anywhere; }
.ch-mapc { position: relative; overflow: hidden; }
.ch-cov { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; pointer-events: none; }
.ch-mapc > :not(.ch-cov) { position: relative; }
.ch-side { width: auto; }
.ch { grid-template-columns: 260px minmax(0, 1fr) 320px; }
.ch-lb { display: grid; grid-template-columns: 30px 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px; align-items: center; padding: 9px 10px; margin-bottom: 6px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.ch-lb:hover { border-color: color-mix(in srgb, var(--pink) 50%, transparent); }
.ch-lb.r1 { border-color: rgba(255, 209, 92, .55); background: linear-gradient(90deg, rgba(255, 209, 92, .12), var(--panel) 70%); }
.ch-lb.r2 { border-color: rgba(200, 210, 230, .45); background: linear-gradient(90deg, rgba(200, 210, 230, .10), var(--panel) 70%); }
.ch-lb.r3 { border-color: rgba(230, 150, 90, .45); background: linear-gradient(90deg, rgba(230, 150, 90, .10), var(--panel) 70%); }
.ch-lbr { grid-row: 1 / 3; text-align: center; font-weight: 800; color: var(--muted); font-size: 15px; }
.ch-lb .ch-av { grid-row: 1 / 3; width: 36px; height: 36px; }
.ch-lbm { display: flex; flex-direction: column; min-width: 0; } .ch-lbm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-lbs { font-variant-numeric: tabular-nums; color: var(--pink); font-weight: 700; font-size: 13.5px; }
.ch-dmb { grid-row: 1; border: 0; background: var(--surface); border-radius: 8px; padding: 4px 7px; cursor: pointer; }
.ch-dmb:hover { background: color-mix(in srgb, var(--pink) 20%, transparent); }
.ch-lbx { grid-column: 3 / 5; display: flex; flex-wrap: wrap; gap: 4px; }
.ch-lbx span { font-size: 11.5px; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.ch-lbx b { color: var(--text); font-weight: 700; }
.ch-invp { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.ch-invp:hover { border-color: var(--pink); } .ch-invp i { margin-left: auto; font-style: normal; color: var(--pink); font-weight: 800; }
@media (max-width: 1200px) { .ch { grid-template-columns: 240px minmax(0, 1fr); } .ch-side { display: none; } }
@media (max-width: 720px) { .ch { grid-template-columns: 1fr; } }
.ch-lbm { grid-column: 3; grid-row: 1; } .ch-dmb { grid-column: 4; grid-row: 1; }
.ch-sys { margin: 6px 0 6px 52px; padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px dashed var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.ch-sys b { color: var(--text); } .ch-sys code { color: var(--pink); background: var(--panel); padding: 0 5px; border-radius: 4px; margin-right: 4px; }

/* Chat page: fills the screen, no page scroll, no visible scrollbars */
.content:has(#view-chat.active) { max-width: none; padding-top: 14px; padding-bottom: 14px; }
html:has(#view-chat.active), body:has(#view-chat.active) { overflow: hidden; }
#view-chat .ch { height: calc(100dvh / var(--zall, 1) - 100px); }
.ch-log, .ch-convs, .ch-side { scrollbar-width: none; }
.ch-log::-webkit-scrollbar, .ch-convs::-webkit-scrollbar, .ch-side::-webkit-scrollbar { display: none; }

/* Room chat: its own column on the left, so the leaderboard never gets pushed around */
.room-split:has(#chat-panel:not([hidden])) { grid-template-columns: minmax(260px, 340px) 1.3fr 1fr; }
.room-split.maps-collapsed:has(#chat-panel:not([hidden])) { grid-template-columns: minmax(260px, 340px) 1fr; }
.room-chat { margin-top: 0; position: sticky; top: 84px; display: flex; flex-direction: column; min-width: 0; }
.room-chat .sub { margin-top: 0; }
.room-chat .chat-log { height: calc(100vh / var(--zall, 1) - 230px); min-height: 320px; scrollbar-width: none; scroll-behavior: auto; }
.room-chat .chat-log::-webkit-scrollbar { display: none; }
.room-chat .chat-log .ch-card { max-width: 100%; }
@media (max-width: 1200px) { .room-split:has(#chat-panel:not([hidden])) { grid-template-columns: 1fr 1fr; } .room-chat { grid-column: 1 / -1; order: 3; position: static; } .room-chat .chat-log { height: 360px; } }
@media (max-width: 900px) { .room-split:has(#chat-panel:not([hidden])) { grid-template-columns: 1fr; } }

/* ===== Landing showcase: the overlays sliding by over a fake playfield ===== */
.ls-slide { flex: 0 0 100%; height: 100%; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ls-slide .m-run { width: 70%; align-self: flex-end; } .ls-slide .m-board { width: 88%; }
.m-party, .m-chat { background: rgba(34, 26, 31, .92); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.m-party { width: 78%; display: flex; flex-direction: column; gap: 7px; }
.mp-r { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 13.5px; }
.mp-r.you { background: color-mix(in srgb, var(--pink) 18%, transparent); }
.mp-r .m-av { width: 30px; height: 30px; } .mp-r small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.mp-r i { display: block; height: 4px; margin-top: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--pink) var(--p), var(--surface-2) var(--p)); }
.mp-r .m-s { font-variant-numeric: tabular-nums; }
.m-chat { width: 86%; align-self: flex-end; display: flex; flex-direction: column; gap: 10px; }
.mc-l { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 13.5px; } .mc-l .m-av { width: 30px; height: 30px; }
.mc-l p { margin: 2px 0 0; } .mc-l.ev { display: block; color: var(--muted); padding-left: 40px; }
.mc-card { margin-top: 6px; border-left: 3px solid var(--pink); background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.mc-card small { color: var(--muted); font-size: 11.5px; } .mc-card span { font-size: 12.5px; color: var(--muted); } .mc-card em { font-style: normal; color: var(--gold); font-weight: 800; }
/* the chat as it is now: a group's name on top, a score as one compact card (its cover beside it), reactions, a replay to watch together, someone typing */
.m-chat .mc-card { flex-direction: row; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); border-left-width: 1px; border-radius: 12px; }
.mc-cov { flex: none; width: 54px; height: 36px; border-radius: 7px; background: linear-gradient(135deg, #ff9ec7, #7f5af0); } .mc-cov.b { background: linear-gradient(135deg, #66ccff, #2b3a8f); }
.mc-cb { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .mc-cb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.mc-top { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; } .mc-top span { color: var(--muted); font-size: 11.5px; }
.mc-gi { width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--pink) 30%, transparent); }
.mc-rx { display: flex; gap: 4px; margin-top: 5px; } .mc-rx i { padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 11px; font-style: normal; }
.mc-btns { display: flex; gap: 5px; margin-top: 3px; } .mc-btns i { padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--text); } .mc-btns i.on { background: var(--pink); border-color: var(--pink); color: var(--on-pink, #1a0d14); }
.m-av.you { background: linear-gradient(135deg, var(--pink), #7f5af0); }
.mc-typing { display: flex; align-items: center; gap: 3px; padding-left: 40px; color: var(--muted); font-size: 11.5px; } .mc-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: mcType 1.2s infinite; } .mc-typing i:nth-child(2) { animation-delay: .15s; } .mc-typing i:nth-child(3) { animation-delay: .3s; } .mc-typing span { margin-left: 5px; }
@keyframes mcType { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 820px) { .ls-slide .m-run, .ls-slide .m-board, .m-party, .m-chat { width: 100%; } }
.dl-phone { display: inline-block; max-width: 44ch; padding: 10px 14px; border-radius: 16px; background: rgba(255, 209, 92, .1); border: 1px solid rgba(255, 209, 92, .35); color: var(--gold); font-weight: 600; font-size: 14px; line-height: 1.4; }
/* phones */
@media (max-width: 700px) {
  #view-chat .ch { height: calc(100dvh / var(--zall, 1) - 150px); min-height: 0; }
  .search-key { display: none; }
  .ls-slide { padding: 14px; }
  .lb-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
.topbar .btn { white-space: nowrap; }

/* Size to the screen: the layout was tuned on 2K (2560 wide); smaller screens get the same look, scaled down.
   Viewport-height sizes divide by --z so full-height pages still fill the window. */
/* the page's zoom (--zall): smaller on mid-size screens (--z) times Settings → Larger text (--tz, settings.js), held back on narrow screens where
   more cannot fit (--tzmax). Whatever is as tall or as wide as the window divides by it, or the zoom would make it bigger than the window. */
:root { --z: 1; --tzmax: 1.5; --zall: calc(var(--z) * min(var(--tz, 1), var(--tzmax))); }
@media (max-width: 2299px) { :root { --z: .9; } }
@media (max-width: 2099px) { :root { --z: .85; } }
@media (max-width: 1799px) { :root { --z: .8; } }
@media (max-width: 1299px) { :root { --z: .9; } }
@media (max-width: 900px) { :root { --z: 1; --tzmax: 1.3; } }
@media (max-width: 600px) { :root { --tzmax: 1.15; } }
html { zoom: var(--zall); }
.ch-dot.brb { background: #ffc857; }

.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fb-item.done { opacity: .55; }
.fb-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-act { margin-left: auto; display: flex; gap: 6px; }
.fb-msg { margin: 8px 0 4px; white-space: pre-wrap; word-break: break-word; }
.fb-kind { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: #31242b; color: #ffd0e3; }
.fb-kind.bug { background: #4a1f2a; color: #ff8fa6; }
.fb-kind.idea { background: #1f3a2a; color: #8be04b; }
/* a reported skin's pictures (Admin → Moderation), on a checkerboard so see-through parts show */
.sk-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.sk-pics[hidden] { display: none; }
.sk-pics figure { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; margin: 0; padding: 6px; border-radius: 10px; background: repeating-conic-gradient(#221b1e 0 25%, #2c2427 0 50%) 0 0 / 12px 12px; }
.sk-pics img { max-width: 100%; max-height: 80px; object-fit: contain; }
.sk-pics figcaption { max-width: 100%; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; text-align: center; }

.ch-lb { position: relative; grid-template-columns: 30px 36px minmax(0, 1fr); padding-right: 46px; }
.ch-lb .ch-dmb { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: color-mix(in srgb, var(--pink) 12%, transparent); font-size: 14px; line-height: 1; display: grid; place-items: center; transition: transform .15s, background .15s; }
.ch-lb .ch-dmb:hover { background: color-mix(in srgb, var(--pink) 30%, transparent); transform: scale(1.1); }
.ch-lb .ch-lbx { grid-column: 3 / -1; }

.ch-ic .ic { width: 18px; height: 18px; } .ch-ic.big .ic { width: 20px; height: 20px; }
.ch-mh + button .ic, .ch-menu .ic, [data-add="party"] .ic { width: 15px; height: 15px; vertical-align: -3px; }
.ch-lb .ch-dmb { color: var(--pink); } .ch-lb .ch-dmb .ic { width: 16px; height: 16px; }

.ch-lb .ch-dmb { top: 50%; right: 10px; width: 32px; height: 32px; margin-top: -16px; color: var(--pink); background: color-mix(in srgb, var(--pink) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pink) 35%, transparent); box-sizing: border-box; display: grid; place-items: center; padding: 0; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.ch-lb .ch-dmb .ic { width: 16px; height: 16px; vertical-align: 0; }
.ch-lb .ch-dmb:hover { background: var(--pink); color: var(--on-pink); border-color: var(--pink); transform: scale(1.06); }
.ch-lb { padding-right: 54px; }

.ad-pre { max-height: 320px; overflow: auto; margin: 12px 0 0; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }
#ad-detail h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } #ad-detail h4 { margin: 14px 0 6px; font-size: 14px; }

.mg-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .mg-head > div { flex: 1; min-width: 200px; } .mg-head .avatar { width: 56px; height: 56px; border-radius: 50%; } .mg-head h3 { margin: 0 0 4px; }
.mg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 14px 0; } .mg-stats > div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; } .mg-stats b { font-size: 18px; } .mg-stats span { color: var(--muted); font-size: 12.5px; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; } .mg-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; } .mg-card.wide { grid-column: 1 / -1; } .mg-card h4 { margin: 0 0 8px !important; }
.mg-perms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; margin: 10px 0; } .mg-perm { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.ad-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.ad-tabs button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; } .ad-tabs button:hover { color: var(--text); } .ad-tabs button.on { background: var(--pink); color: var(--on-pink); }
.tab-off { display: none !important; }
.ad-drawer { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; } .ad-drawer[hidden] { display: none; }
.ad-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; } .ad-drawer.open .ad-back { opacity: 1; }
.ad-panel { position: relative; width: min(760px, 100%); height: 100%; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); padding: 22px; transform: translateX(40px); opacity: 0; transition: transform .22s cubic-bezier(.2, 0, 0, 1), opacity .2s; box-shadow: -20px 0 50px rgba(0, 0, 0, .4); } .ad-drawer.open .ad-panel { transform: none; opacity: 1; }
body.ad-lock { overflow: hidden; }
.ad-panel .mg-card { background: var(--panel); }
.mg-dur { display: grid; gap: 8px; margin-bottom: 12px; } .mg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 99px; cursor: pointer; } .chip:hover { border-color: var(--pink); color: var(--pink); }
.mg-num { width: 84px !important; } .mg-unit { width: auto !important; } .mg-why { flex: 1; min-width: 180px; }
.mg-acts { margin-top: 4px; }
.mg-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 12px 0; }
label.mg-perm { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--text); cursor: pointer; line-height: 1.25; }
label.mg-perm input { width: 18px !important; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--pink); }
label.mg-perm:has(input:checked) { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 10%, transparent); }
.ad-sec { transition: opacity .15s; }
@media (max-width: 700px) { .ad-panel { padding: 16px; } .ad-tabs { width: 100%; } .ad-tabs button { flex: 1; padding: 8px 10px; } }

.nav-badge.inl { position: static; display: inline-grid; margin-left: 6px; vertical-align: 1px; }

.rc-bar { margin: 6px 0 10px; } .rc-bar input[type=search] { flex: 1; min-width: 200px; }
.rc-log { max-height: 440px; overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px; scroll-behavior: smooth; }
.rc-day { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 6px; } .rc-day::before, .rc-day::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--line); vertical-align: middle; margin: 0 8px; }
.rc-msg { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; } .rc-msg:hover { background: var(--surface); }
.rc-msg img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.rc-body { min-width: 0; flex: 1; } .rc-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .rc-meta b { color: var(--text); font-size: 14px; }
.rc-room { color: var(--pink); } .rc-text { margin-top: 2px; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; } .rc-text mark { background: rgba(255, 209, 92, .35); color: inherit; border-radius: 3px; padding: 0 2px; }
.rc-del { margin-left: auto; opacity: 0; border: 0; background: none; color: #ff7a8a; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; } .rc-msg:hover .rc-del { opacity: 1; }

/* in Polish: the page shown once i18n.js has translated it (no English first); 3 s at most, should it not come */
html.i18n-wait body { visibility: hidden; animation: i18n-show 0s 3s forwards; }
@keyframes i18n-show { to { visibility: visible; } }
html[data-boot] .view.active { display: none !important; animation: none !important; }
html[data-boot="rooms"] #view-rooms, html[data-boot="runs"] #view-runs, html[data-boot="friends"] #view-friends, html[data-boot="chat"] #view-chat, html[data-boot="party"] #view-party, html[data-boot="settings"] #view-settings, html[data-boot="admin"] #view-admin, html[data-boot="profile"] #view-profile, html[data-boot="room"] #view-room, html[data-boot="legal"] #view-legal { display: block !important; animation: none !important; }
html.nofx .view.active { animation: none !important; }
html[data-boot] .nav-item.active { background: none; color: var(--muted); }
html[data-boot="rooms"] .nav-item[data-view="rooms"], html[data-boot="runs"] .nav-item[data-view="runs"], html[data-boot="friends"] .nav-item[data-view="friends"], html[data-boot="chat"] .nav-item[data-view="chat"], html[data-boot="party"] .nav-item[data-view="party"], html[data-boot="settings"] .nav-item[data-view="settings"], html[data-boot="admin"] .nav-item[data-view="admin"] { background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); }
html[data-boot] .nav-item { transition: none; }


/* Tournaments */
.tn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; } .tn-head p { max-width: 640px; }
.tn-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; } .tn-bar input[type=search] { min-width: 220px; }
.tn-code { display: flex; gap: 6px; margin-left: auto; } .tn-code input { width: 120px; }
.tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 14px; }
.tn-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; transition: transform .2s var(--ease-emph), border-color .2s; }
.tn-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pink) 50%, transparent); } .tn-card b { font-size: 16px; } .tn-card-top { display: flex; gap: 8px; align-items: center; }
.tn-st { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.tn-st-registration, .tn-st-qualifiers { background: rgba(255, 209, 92, .15); color: #ffd15c; } .tn-st-live { background: rgba(155, 232, 155, .15); color: #9be89b; } .tn-st-ready, .tn-st-seeding { background: rgba(102, 204, 255, .15); color: #66ccff; }
.tn-priv { padding: 2px 9px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); }
.tn-title { margin: 12px 0 6px; } .tn-title h1 { margin: 0 0 4px; } .tn-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tn-desc { max-width: 70ch; line-height: 1.55; } .tn-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
.tn-facts > div { padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); } .tn-facts small { display: block; color: var(--muted); font-size: 12px; } .tn-facts b { font-size: 15px; }
.tn-dates { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; } .tn-dates li { display: flex; gap: 12px; } .tn-dates span { width: 150px; color: var(--muted); }
.tn-box { margin: 14px 0; padding: 16px 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); } .tn-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; } .tn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.tn-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; } .tn-form > b, .tn-form .wide { grid-column: 1 / -1; } .tn-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.tn-form label.chk { flex-direction: row; align-items: center; } .tn-form textarea { font: inherit; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; resize: vertical; }
.tn-table { overflow-x: auto; } .tn-table table { width: 100%; border-collapse: collapse; } .tn-table th, .tn-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } .tn-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.tn-table tr.tn-in td:first-child { color: var(--pink); font-weight: 800; }
.tn-map { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); } .tn-map > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .tn-slot { min-width: 46px; color: var(--pink); }
.tn-bracket { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 14px; } .tn-round { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 210px; } .tn-round h3 { font-size: 13px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.tn-match { padding: 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; } .tn-match.st-live { border-color: var(--pink); }
.tn-side { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; border-radius: 9px; background: var(--surface); } .tn-side.win { background: color-mix(in srgb, var(--pink) 20%, transparent); font-weight: 700; } .tn-side i { color: var(--muted); font-style: normal; font-size: 12px; margin-right: 6px; }
.tn-tabs .chip, .tn-bar .chip { transition: background-color .2s, color .2s, border-color .2s; } .tn-tabs .chip:hover, .tn-bar .chip:hover { border-color: color-mix(in srgb, var(--pink) 50%, transparent); }
.tn-tabs .chip.active, .tn-bar .chip.active { background: color-mix(in srgb, var(--pink) 16%, transparent); border-color: var(--pink); color: var(--pink); }
.tn-form select, .tn-bar select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font: inherit; }
.tn-match[data-match] { cursor: pointer; transition: border-color .2s, transform .15s; } .tn-match[data-match]:hover { border-color: color-mix(in srgb, var(--pink) 55%, transparent); transform: translateY(-1px); }
.tn-mh { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 18px; } .tn-mp { display: flex; align-items: center; gap: 12px; font-weight: 700; } .tn-mp b { font-size: 28px; color: var(--pink); }
.tn-status { margin: 8px 0; } .tn-sched { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.tn-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.tn-pm { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); } .tn-pm > b { color: var(--pink); }
.tn-pm.st-banned { opacity: .45; text-decoration: line-through; } .tn-pm.st-playing { border-color: var(--pink); } .tn-pm.st-played { border-color: rgba(155, 232, 155, .4); }
.tn-form label.chk { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; font-size: 14px; color: var(--text); } .tn-form label.chk input { width: 20px; height: 20px; flex: none; accent-color: var(--pink); }
/* Relax runs: plays whose pp the desktop app worked out (osu! keeps none for Relax) */
.run-app { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gold, #ffc857); border: 1px solid rgba(255, 200, 87, .45); border-radius: 6px; padding: 1px 5px; vertical-align: 2px; }
.rn-app { color: var(--gold, #ffc857); }
/* run boards: rank, avatar, player, gap to #1, time — five cells (the gap used to push the time onto a second line) */
.lb.rb-rest > .lb-row { grid-template-columns: 44px 44px 1fr auto auto; }
.lb.rb-rest .rb-gap { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
@media (max-width: 560px) { .lb.rb-rest > .lb-row { grid-template-columns: 34px 38px 1fr auto; } .lb.rb-rest .rb-gap { display: none; } }
/* ranked leaderboard */
.rk-stats { display: flex; gap: 18px; color: var(--muted); margin: -4px 0 14px; font-size: 14px; } .rk-stats b { color: var(--text); }
.lb.rk-web > .lb-row { grid-template-columns: 44px 44px 1fr auto 70px; }
.lb.rk-web > .lb-row.rk1 .lb-rank { background: #ffd15c; color: #3a2a00; } .lb.rk-web > .lb-row.rk2 .lb-rank { background: #cfd6e4; color: #1d2430; } .lb.rk-web > .lb-row.rk3 .lb-rank { background: #e0955b; color: #2e1708; }
.lb.rk-web .lb-val { text-align: right; }
.rk-tier { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--tc, var(--muted)); }
.rk-tier i { width: 12px; height: 12px; transform: rotate(45deg); border-radius: 3px; background: var(--tc, var(--muted)); box-shadow: 0 0 10px var(--tc, transparent); }
.rk-t-unranked { --tc: #8a7c84; } .rk-t-iron { --tc: #9a9a9a; } .rk-t-bronze { --tc: #d08a52; } .rk-t-silver { --tc: #cfd6e0; } .rk-t-gold { --tc: #ffc857; }
.rk-t-platinum { --tc: #6fe0d0; } .rk-t-diamond { --tc: #7fb2ff; } .rk-t-master { --tc: #c48bff; } .rk-t-grandmaster { --tc: var(--pink); }
@media (max-width: 560px) { .lb.rk-web > .lb-row { grid-template-columns: 34px 38px 1fr 56px; } .lb.rk-web .rk-tier { display: none; } }
#view-ranked #rk-list { max-width: 900px; }

/* ---- Watch: live matches and replays ---- */
.wt-sec { margin-top: 26px; }
.wt-sh { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; } .wt-sh h2 { margin: 0; font-family: var(--font-head); font-size: 22px; }
.wt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wt-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 72%, transparent), color-mix(in srgb, var(--bg) 95%, transparent)), var(--cover, none) center / cover, var(--panel); transition: transform .2s var(--ease-emph, ease), border-color .2s; }
.wt-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pink) 50%, transparent); }
.wt-card.k-tournament { border-color: rgba(255, 200, 87, .35); } .wt-card.k-ranked { border-color: rgba(127, 178, 255, .3); }
.wt-run { font-size: 12.5px; color: #ffd36e; margin-top: 2px; } .wt-runbox { border-color: rgba(255, 211, 110, .4) !important; }
.wt-card.k-friend { border-color: rgba(139, 224, 75, .35); } .wt-av { width: 26px; height: 26px; border-radius: 50%; vertical-align: -6px; margin-right: 4px; }
.wt-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.wt-kind { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wt-live { font-size: 12px; font-weight: 800; color: #ff5d6c; letter-spacing: .04em; animation: wtBlink 1.6s ease-in-out infinite; }
@keyframes wtBlink { 50% { opacity: .45; } }
.wt-vs { margin: 0; font-family: var(--font-head); font-size: 20px; line-height: 1.2; } .wt-vs i { font-style: normal; color: var(--pink); font-size: .75em; margin: 0 4px; }
.wt-map { color: var(--muted); font-size: 13.5px; } .wt-map b { color: var(--text); font-weight: 600; }
.wt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.wt-res { font-family: var(--font-head); font-weight: 800; font-variant-numeric: tabular-nums; }
.wt-player { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 18px; margin-top: 8px; animation: wtIn .35s var(--ease-dec, ease) both; }
.wt-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.wt-head .wt-vs { font-size: 26px; margin: 2px 0; }
.wt-acts { display: flex; gap: 8px; }
.wt-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.wt-stage canvas { width: 100%; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, #1d1519, #0d0a0f); border-radius: 18px; border: 1px solid var(--line); display: block; }
.wt-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.wt-chips .chip { cursor: pointer; border: 1px solid var(--line); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.wt-chips .chip.on { background: var(--pink); color: var(--on-pink); border-color: var(--pink); }
.wt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--pink)); display: inline-block; }
.wt-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 38px; }
.wt-bar input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--pink); }
.wt-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 92px; text-align: right; }
.wt-bar select { padding: 6px 8px; border-radius: 10px; }
.wt-over { color: var(--muted); }
.wt-side { display: flex; flex-direction: column; gap: 10px; }
.wt-pl { border: 1px solid var(--line); border-left: 4px solid var(--c, var(--pink)); border-radius: 16px; padding: 10px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.wt-pn { display: flex; align-items: center; gap: 8px; } .wt-pn b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-st { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wt-big { font-family: var(--font-head); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wt-hits { display: flex; gap: 10px; font-variant-numeric: tabular-nums; font-size: 14px; }
.wt-hits .h3 { color: #66ccff; } .wt-hits .h1 { color: #8be04b; } .wt-hits .h5 { color: #ffc857; } .wt-hits .hx { color: #ff5d6c; }
.wt-result { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 200, 87, .16), var(--surface)); border: 1px solid rgba(255, 200, 87, .4); }
.wt-result b { font-family: var(--font-head); font-size: 18px; } .wt-result small { color: var(--muted); }
@media (max-width: 900px) { .wt-body { grid-template-columns: 1fr; } .wt-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@keyframes wtIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wt-player { scroll-margin-top: 80px; }
/* tournament match: what is being played, the referee panel, the log */
.tn-now { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin: 8px 0; }
.tn-ref { border: 1px solid rgba(255, 200, 87, .4); background: linear-gradient(135deg, rgba(255, 200, 87, .08), transparent 60%); border-radius: 16px; padding: 12px 14px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.tn-ref > b { color: var(--gold); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.tn-ref input[type="number"] { width: 110px; }
.tn-settle input[type="number"] { width: 130px; }
.tn-log { margin: 8px 0; font-size: 14px; } .tn-log summary { cursor: pointer; color: var(--muted); } .tn-log > div { padding: 3px 0; border-bottom: 1px solid var(--line); }
.tn-check { display: flex; align-items: center; gap: 8px; }
/* home: what is new, live matches, the ranked top, clickable feature cards */
.l-live-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; } .l-live-h h2 { margin: 0; font-size: 22px; }
.l-more { color: var(--pink); font-weight: 700; text-decoration: none; font-size: 14px; } .l-more:hover { text-decoration: underline; }

/* ---- watching full screen ---- */
.wt-stage:fullscreen { background: #000; position: relative; padding: 0; }
.wt-stage:fullscreen canvas { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.wt-stage:fullscreen > :not(canvas) { position: absolute; left: 0; right: 0; z-index: 2; margin: 0; padding: 10px 18px; transition: opacity .35s ease; }
.wt-stage:fullscreen .wt-chips { top: 0; padding-bottom: 26px; background: linear-gradient(rgba(0, 0, 0, .85), transparent); }
.wt-stage:fullscreen .wt-bar { bottom: 0; padding-top: 26px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.wt-stage:fullscreen .sound-ctl { top: 46px; left: auto; right: 0; }
.wt-stage:fullscreen .skin-pick { display: none; }
.wt-stage:fullscreen:not(.wt-awake) > :not(canvas) { opacity: 0; pointer-events: none; }
.wt-stage:fullscreen:not(.wt-awake) { cursor: none; }

/* ==== Watch page: stream cards, the full-window player, the chat column (same look as the app) ==== */

/* ==== Watch: live now (stream cards), your stream, watching settings ==== */
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lv-count { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 99px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.lv-count:empty { display: none; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px 14px; }
/* a stream card: the thumbnail (the map's cover) and below it who and what */
.lv { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; animation: lvIn .3s var(--ease-dec) both; }
.lv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #241b1f var(--cover, none) center / cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.lv-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 35%, transparent 60%, rgba(0, 0, 0, .55)); }
.lv:hover .lv-thumb, .lv:focus-visible .lv-thumb { transform: translate(3px, -3px); box-shadow: -6px 6px 0 var(--pink); }
.lv:focus-visible { outline: none; } .lv:focus-visible .lv-name b { text-decoration: underline; }
.lv.on .lv-thumb { box-shadow: -6px 6px 0 var(--pink), 0 0 0 2px var(--pink) inset; }
.lv-badge { position: absolute; z-index: 1; top: 8px; left: 8px; height: 20px; line-height: 20px; padding: 0 7px; border-radius: 5px; background: #e5194b; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lv-badge.idle { background: rgba(10, 8, 9, .78); color: #e8dce2; letter-spacing: .01em; text-transform: none; font-weight: 700; }
.lv-kind { position: absolute; z-index: 1; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(10, 8, 9, .78); color: #fff; font-size: 11.5px; font-weight: 700; max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-kind .i { width: 13px; height: 13px; }
.lv-viewers { position: absolute; z-index: 1; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; background: rgba(10, 8, 9, .78); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-viewers .i { width: 13px; height: 13px; }
.lv-mods { position: absolute; z-index: 1; right: 8px; bottom: 8px; height: 20px; line-height: 20px; padding: 0 7px; border-radius: 5px; background: var(--gold); color: #1b1408; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.lv-meta { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.lv-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface); }
.lv-faces { display: flex; flex: none; } .lv-faces img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 2px var(--bg); }
.lv-faces img + img { margin-left: -9px; }
.lv-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.lv-name { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 13px; }
.lv-name b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lv-vs { color: var(--muted); font-weight: 500; }
.lv-tag { flex: none; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); }
.lv-tag.fr { background: rgba(124, 196, 255, .14); color: #8fd0ff; }
.lv-title { overflow: hidden; color: var(--text); font-size: 14.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } /* (what is played: the stream's title, as Twitch's) */
.lv-map { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; } /* (a stream with a title of its own: the map played, under it) */
.lv-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } /* (its game, mods, what it does: as Twitch's tags) */
.lv-tags i { padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: #d8cbc3; font-size: 11.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.lv-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #e5194b; } /* (live: its viewers, as Twitch's) */
.lv-stat { position: absolute; z-index: 1; right: 8px; bottom: 8px; height: 20px; padding: 0 7px; border-radius: 5px; background: rgba(10, 8, 9, .78); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; font-variant-numeric: tabular-nums; }
.lv-av.live { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #e5194b; }
.lv-live { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s var(--ease); } .lv-live.on { opacity: 1; } /* (its own live picture: watch-live.js) */
/* the top of Watch (watch-live.js): the channel most worth watching, live and muted, beside who and what; the friends on, in a strip */
.wl-hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.wl-screen { position: relative; display: block; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: #0d0a0f; cursor: pointer; }
.wl-cover { position: absolute; inset: 0; background: var(--cover, none) center / cover; filter: brightness(.55); }
.wl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s var(--ease); } .wl-canvas.on { opacity: 1; }
.wl-screen .lv-badge { top: 12px; left: 12px; } .wl-screen .lv-viewers { left: 12px; bottom: 12px; } .wl-screen .lv-viewers:empty { display: none; }
.wl-screen:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.wl-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px 22px; }
.wl-chan { display: flex; align-items: center; gap: 12px; min-width: 0; } .wl-chan .lv-av { width: 46px; height: 46px; }
.wl-chan > span:last-child { display: flex; flex-direction: column; min-width: 0; } .wl-chan b { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; } .wl-chan small { color: var(--muted); font-size: 12.5px; }
.wl-title { margin: 0; font-family: var(--font-head); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
.wl-map { margin: -4px 0 0; overflow: hidden; color: var(--muted); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; } .wl-map:empty { display: none; }
.wl-stats { color: var(--gold); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: pre; } .wl-stats:empty { display: none; }
.wl-go { align-self: flex-start; margin-top: 4px; }
.wl-chan small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.wl-seen { display: inline-flex; align-items: center; gap: 5px; color: #ff7a93; font-weight: 700; font-variant-numeric: tabular-nums; }
.wl-more { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); } .wl-more:empty { display: none; }
.wl-more > small { color: var(--muted); font-size: 12px; font-weight: 700; }
.wl-alt { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 10px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .15s; }
.wl-alt:hover { background: var(--surface-2); } .wl-alt:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.wl-alt img { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); object-fit: cover; }
.wl-alt span { display: flex; flex-direction: column; min-width: 0; } .wl-alt b, .wl-alt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wl-alt b { font-size: 13.5px; } .wl-alt small { color: var(--muted); font-size: 12px; }
.wl-alt > i { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.wl-follow { margin: 0 0 16px; } .wl-follow h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.wl-strip { display: flex; gap: 12px; padding: 6px 2px 4px; overflow-x: auto; scrollbar-width: none; } .wl-strip::-webkit-scrollbar { display: none; }
.wl-f { display: flex; flex: none; flex-direction: column; align-items: center; gap: 3px; width: 78px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.wl-ring { position: relative; width: 56px; height: 56px; margin-bottom: 4px; padding: 2px; border-radius: 50%; box-shadow: 0 0 0 2px var(--line); transition: box-shadow .2s; }
.wl-f.live .wl-ring { box-shadow: 0 0 0 2px #e5194b; } .wl-f:hover .wl-ring, .wl-f:focus-visible .wl-ring { box-shadow: 0 0 0 2px var(--pink); } .wl-f:focus-visible { outline: none; }
.wl-ring img { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); object-fit: cover; }
.wl-ring i { position: absolute; left: 50%; bottom: -7px; padding: 0 5px; border-radius: 4px; background: #e5194b; color: #fff; font-size: 9.5px; font-style: normal; font-weight: 800; letter-spacing: .04em; line-height: 15px; text-transform: uppercase; transform: translateX(-50%); }
.wl-f b { max-width: 100%; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; } .wl-f small { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 820px) { .wl-hero { grid-template-columns: 1fr; } .wl-info { padding: 14px 16px 16px; } .wl-go { align-self: stretch; } }
@media (prefers-reduced-motion: reduce) { .lv-live, .wl-canvas, .wl-ring { transition: none; } }
.lv-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }
.lv-empty .i { width: 30px; height: 30px; color: var(--pink); margin-bottom: 6px; } .lv-empty b { color: var(--text); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .lv, .lv-thumb { animation: none; transition: none; } .lv:hover .lv-thumb { transform: none; } }
/* watching settings: one setting a row */
.ws-card h3 { margin: 0 0 6px; }
.ws-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ws-row:first-child { border-top: 0; }
.ws-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ws-l b { font-size: 14px; } .ws-l span { color: var(--muted); font-size: 13px; }
.ws-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* volume: on / off and two short sliders */
.vol { display: inline-flex; align-items: center; gap: 10px; }
.vol-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer; transition: background-color .15s; }
.vol-btn:hover { background: rgba(255, 255, 255, .12); }
.vol-sl { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.vol input[type=range] { -webkit-appearance: none; appearance: none; width: 84px; height: 4px; padding: 0; border: 0; border-radius: 99px; background: linear-gradient(90deg, var(--pink) var(--v, 50%), rgba(255, 255, 255, .18) var(--v, 50%)); cursor: pointer; }
.vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.vol.off .vol-sl { opacity: .45; }
/* ==== the player: what is watched fills the window; the bars and the chat sit over it ==== */
body.th-open { overflow: hidden; }
.th.sp-view { position: fixed; inset: 0; z-index: 80; margin: 0; display: block; background: #050405; color: #fff; --chatw: 0px; overflow: hidden; animation: thIn .26s var(--ease-dec); }
.th.chat-on, .th.view-on { --chatw: 340px; }
@keyframes thIn { from { opacity: 0; } }
.th-stage { position: absolute; top: 0; bottom: 0; left: 0; right: var(--chatw); transition: right .3s var(--ease); }
.th .th-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; display: block; }
/* the picture and its bars (and a live game's chat) in one box; a replay's own page, as a video site has it: the box on top (sticky on a phone),
   its About and comments under it, what to watch next beside them (under them when narrow); full screen: the box alone */
.th-box { position: absolute; inset: 0; }
.th.th-page { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.th.th-page .th-box { position: relative; inset: auto; width: 100%; height: 100%; min-height: 220px; background: #050405; } /* (as tall as the window: the page under it is scrolled to) */
.th.th-page:not(.awake) { cursor: auto; } .th.th-page:not(.awake) .th-box { cursor: none; }
.th.th-page .th-turn { display: none !important; } /* (the picture is on top: no need to turn the phone) */
.th-below { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 28px; align-items: start; max-width: 1480px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 32px) 64px; color: var(--text); }
.th.th-page .th-about { position: static; z-index: auto; width: auto; max-height: none; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 1; pointer-events: auto; transition: none; }
.th.th-page .th-about .th-view-head { display: none; }
.th.th-page .ab-body { overflow: visible; margin: 0; padding: 0; gap: 18px; }
.th.th-page .ab-title { font-size: clamp(19px, 1.9vw, 24px); }
.th-recs { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .th-recs:empty { display: none; } .th-recs h3 { margin: 0; font-size: 16px; }
@media (max-width: 1000px) { /* (narrow: the box is small and stays in sight; what it says is under it, so it shows the picture, Watch and the controls alone) */
  .th-below { grid-template-columns: minmax(0, 1fr); } .th.th-page .th-box { position: sticky; top: 0; z-index: 5; max-height: calc(56vh / var(--zall, 1)); overflow: hidden; }
  .th.th-page .th-pv-title, .th.th-page .th-pv-who, .th.th-page .th-pv-line, .th.th-page .th-pv-soc, .th.th-page .th-pv-acts [data-ab="info"], .th.th-page .th-stats, .th.th-page .th-who { display: none; }
  .th.th-page .th-top { padding: 10px 12px 28px; } .th.th-page .th-bottom { padding: 28px 12px 8px; gap: 4px; } .th.th-page .th-ctl-l .vol { display: none; } }
.th-top, .th-bottom { position: absolute; left: 0; right: var(--chatw); z-index: 2; padding: 16px 20px; transition: opacity .2s var(--ease), transform .2s var(--ease), right .3s var(--ease); }
.th-top { top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 54px; background: linear-gradient(rgba(5, 4, 5, .95), rgba(5, 4, 5, .8) 55%, transparent); }
.th-bottom { bottom: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 56px; background: linear-gradient(transparent, rgba(5, 4, 5, .82) 38%, rgba(5, 4, 5, .96)); }
.th:not(.awake) .th-top, .th:not(.awake) .th-bottom { opacity: 0; pointer-events: none; }
.th:not(.awake) .th-top { transform: translateY(-8px); } .th:not(.awake) .th-bottom { transform: translateY(8px); } /* (they slip away to their edge) */
.th:not(.awake) { cursor: none; }
.th-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.th-back { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .15s; }
.th-back:hover { background: rgba(255, 255, 255, .18); }
.th-av { width: 42px; height: 42px; border-radius: 50%; flex: none; object-fit: cover; }
.th-who { display: flex; flex-direction: column; min-width: 0; }
.th-kind { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); } .th-kind i { font-style: normal; }
.th-name { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-sub { font-size: 13px; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(60vw / var(--zall, 1)); }
.th-mods { color: var(--gold); } .th-sr .star { min-width: 0; font-size: inherit; } /* (the map's star rating in the top bar: without the mods → with them) */
.th-act { display: flex; align-items: center; gap: 12px; flex: none; }
.th-live { height: 22px; line-height: 22px; padding: 0 8px; border-radius: 5px; background: #e5194b; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.th-viewers { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-variant-numeric: tabular-nums; } .th-viewers .i { width: 16px; height: 16px; } .th-viewers:empty { display: none; }
.th-net { color: rgba(255, 255, 255, .6); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.th-net.slow { color: var(--gold); } /* (behind for a while: the connection is slow right now) */
@media (max-width: 640px) { .th-net:not(.slow) { display: none; } } /* (a phone: the player's name has the room; a slow connection still says so) */
.th-ib { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; color: rgba(255, 255, 255, .88); cursor: pointer; transition: background-color .15s, color .15s; }
.th-ib:hover:not(:disabled) { background: rgba(255, 255, 255, .12); color: #fff; }
.th-ib.on { color: var(--pink); } .th-ib:disabled { opacity: .35; cursor: default; }
.th-ib .i { width: 21px; height: 21px; } .th-ib.big .i { width: 24px; height: 24px; }
.th-ib:focus-visible, .th-back:focus-visible, .th .chip:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.th-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.th-ctl-l, .th-ctl-r { display: flex; align-items: center; gap: 4px; }
.th .vol { margin-left: 6px; } .th .vol-btn { background: none; } .th .vol-btn:hover { background: rgba(255, 255, 255, .12); }
.th .vol-sl { color: rgba(255, 255, 255, .62); }
.th-speed { height: 34px; padding: 0 8px; background: rgba(255, 255, 255, .08); border: 0; color: #fff; border-radius: 8px; font-size: 13px; color-scheme: dark; } .th-speed option { background: #1d1619; color: #fff; } /* (its list: on the see-through colour it opened white, the speeds white on white) */
/* who to follow */
.th .th-chips { margin: 0; gap: 6px; } .th .th-chips:empty { display: none; }
.th .th-chips .chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 9px; border: 0; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .86); font-size: 13px; transform: none; }
.th .th-chips .chip:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.th .th-chips .chip.on { background: #fff; color: #120d0f; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #fff); flex: none; }
.chip-n { font-variant-numeric: tabular-nums; font-weight: 600; opacity: .7; }
/* match details (the duel's clocks, each player's numbers) */
.th-stats:empty { display: none; }
.th .sp-timers { margin: 0; gap: 6px 10px; }
.th .sp-rules { color: rgba(255, 255, 255, .7); }
.th .sp-pl { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; }
.th .sp-run { background: rgba(0, 0, 0, .5); border-color: rgba(255, 211, 110, .35); }
/* a replay's timeline */
.th-time { display: flex; align-items: center; gap: 12px; }
.th-time input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 5px; padding: 0; border: 0; border-radius: 99px; background: linear-gradient(90deg, var(--pink) calc(7px + (100% - 14px) * var(--p, 0)), rgba(255, 255, 255, .25) 0); accent-color: var(--pink); cursor: pointer; } /* (played: pink, up to the knob's middle) */
.th-time input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 25%, transparent); }
.th-time-n { font-size: 12.5px; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the chat column */
.th-chat { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 340px; display: flex; flex-direction: column; background: #151012; border-left: 1px solid rgba(255, 255, 255, .07); transition: transform .3s var(--ease); }
.th:not(.chat-on) .th-chat, .th.view-on .th-chat { transform: translateX(100%); pointer-events: none; }
.th-chat .sc { flex: 1; border: 0; border-radius: 0; }
.th-chat .sc-log { min-height: 0; }
/* View (view.js, the app's own panel): what the picture shows, beside it, changed as it plays (the chat steps aside meanwhile) */
.th-view { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 340px; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; overflow-y: auto; background: #151012; border-left: 1px solid rgba(255, 255, 255, .07); color: var(--text);
  transform: translateX(100%); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.th.view-on .th-view { transform: none; opacity: 1; pointer-events: auto; }
.th-view-head { display: flex; align-items: center; justify-content: space-between; } .th-view-head h3 { margin: 0; font-size: 16px; }
.th-view .vx-skin .skin-pick { flex-wrap: wrap !important; margin: 0 !important; }
.th-view .vx-skin .btn { flex: none; padding: 5px 11px; font-size: 12.5px; }
/* the skin choice (skins.js): the skin now, an .osk of your own, the default */
.skin-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.skin-pick-now { flex: 1 1 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.skin-pick .btn[hidden] { display: none; }
/* your skins and the ones everyone shares (skins.js library): a little picture of each, two to a row */
.sk-lib { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.sk-lib.off { opacity: .45; pointer-events: none; }
.sk-lib-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 13.5px; } .sk-lib-h small { color: var(--muted); font-size: 12px; }
.sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sk-grid .sk-none { grid-column: 1 / -1; margin: 0; }
.sk-tile { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 6px 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, opacity .15s; }
.sk-tile:hover { border-color: color-mix(in srgb, var(--pink) 50%, transparent); } .sk-tile.on { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink) inset; } .sk-tile.busy { opacity: .6; pointer-events: none; }
.sk-tile:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.sk-pic { width: 100%; height: auto; aspect-ratio: 192 / 112; border-radius: 8px; background: repeating-conic-gradient(#221b1e 0 25%, #2c2427 0 50%) 0 0 / 12px 12px; }
.sk-name, .sk-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sk-name { font-size: 12.5px; font-weight: 700; } .sk-tag { color: var(--muted); font-size: 11.5px; }
.sk-x, .sk-add, .sk-have, .sk-flag { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(14, 10, 12, .82); color: var(--text); font: inherit; font-size: 15px; font-weight: 800; line-height: 1; cursor: pointer; }
.sk-add { background: var(--pink); color: var(--on-pink); } .sk-have { color: var(--pink); cursor: default; } .sk-flag { right: auto; left: 10px; font-size: 12px; }
.sk-x, .sk-flag { opacity: 0; transition: opacity .15s; } .sk-tile:hover .sk-x, .sk-tile:hover .sk-flag, .sk-x:focus-visible, .sk-flag:focus-visible { opacity: 1; }
.sk-find { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); } .sk-find:focus-within { border-color: var(--pink); }
.sk-find input[type=search] { flex: 1; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); font: inherit; font-size: 13px; outline: none; box-shadow: none; }
.sk-more { align-self: center; } .sk-msg { margin: 0; }
/* View's skin list (library({ compact })): one skin a row, its little picture at the left, its name and who has it beside it, its buttons at the right */
.sk-lib.compact .sk-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.sk-lib.compact .sk-tile { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 4px 62px 4px 4px; border-radius: 10px; }
.sk-lib.compact .sk-pic { grid-row: span 2; width: 64px; border-radius: 7px; } .sk-lib.compact .sk-name { align-self: end; } .sk-lib.compact .sk-tag { align-self: start; }
.sk-lib.compact :is(.sk-x, .sk-add, .sk-have, .sk-flag) { top: 50%; right: 8px; width: 22px; height: 22px; font-size: 14px; transform: translateY(-50%); } .sk-lib.compact .sk-flag { left: auto; right: 34px; }
@media (hover: none) { .sk-x, .sk-flag { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sk-tile, .sk-x, .sk-flag { transition: none; } }
.th-view-note { margin: auto 0 0; padding-top: 10px; font-size: 12px; color: var(--muted); }
.vx-pane { display: flex; flex-direction: column; gap: 10px; } .vx-pane[hidden] { display: none; }
.vx-range { display: grid; grid-template-columns: 112px minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: 13.5px; }
.vx-range output { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.vx-range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; padding: 0; border: 0; border-radius: 99px; background: linear-gradient(90deg, var(--pink) var(--v, 50%), rgba(255, 255, 255, .18) var(--v, 50%)); cursor: pointer; }
.vx-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.vx-range input[type=range]:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
.vx-range.off { opacity: .45; }
/* View's tabs (icons), the parts to show as tiles, osu!lazer's screen scaling; on a phone a sheet from the bottom */
.vx-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.vx-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 8px 4px 7px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.vx-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-tab .i, .vx-tile .i { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vx-tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.vx-tab.on { color: var(--text); background: color-mix(in srgb, var(--pink) 16%, transparent); } .vx-tab.on .i { color: var(--pink); }
.vx-tab:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.th-view-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px 2px; } /* (the part that scrolls: the tabs and the foot stay) */
.vx-hint { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.vx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vx-tile { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 46px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s, color .15s; }
.vx-tile span { min-width: 0; overflow-wrap: anywhere; }
.vx-tile input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vx-tile:hover { border-color: color-mix(in srgb, var(--pink) 50%, transparent); color: var(--text); }
.vx-tile:has(input:checked) { border-color: color-mix(in srgb, var(--pink) 70%, transparent); background: color-mix(in srgb, var(--pink) 13%, transparent); color: var(--text); } .vx-tile:has(input:checked) .i { color: var(--pink); }
.vx-tile:has(input:focus-visible) { outline: 2px solid var(--pink); outline-offset: 2px; }
.vx-group { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.vx-gh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 13.5px; }
.vx-scales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .06); }
.vx-scales.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } /* (the resolution, the frame rate) */
.vx-scales button { min-width: 0; padding: 8px 4px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.vx-scales button:hover { color: var(--text); } .vx-scales button.on { background: var(--pink); color: var(--on-pink); }
.vx-scales button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.vx-scale { display: flex; flex-direction: column; gap: 12px; } .vx-scale[hidden] { display: none; }
.vx-link { padding: 0; border: 0; background: none; color: var(--pink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.vx-link:hover { text-decoration: underline; } .vx-link:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
/* the look of the player watched (skins.js): whose it is, the way back to yours; their View shown as it is meanwhile */
.vx-lent { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--pink) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--pink) 10%, transparent); }
.vx-lent[hidden] { display: none; }
.vx-lent p { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.35; } .vx-lent p b { overflow-wrap: anywhere; } .vx-lent p span { color: var(--muted); font-size: 12px; }
.vx-lent .btn { flex: none; padding: 5px 11px; font-size: 12.5px; }
.vx-tile:has(input:disabled), .vx-range:has(input:disabled), .vx-scales button:disabled, .th-view .vx-def:disabled, .th-view .vx-link:disabled, .th-view .skin-pick :disabled { opacity: .45; pointer-events: none; }
.th-view .vx-range { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "l d o" "r r r"; row-gap: 8px; column-gap: 6px; }
.th-view .vx-range > .vx-def { grid-area: d; }
/* a slider back to its value at first (shown once it is moved) */
.vx-def { display: grid; place-items: center; width: 22px; height: 22px; margin: -4px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color .15s, background-color .15s; }
.vx-def[hidden] { display: none; }
.vx-def .i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vx-def:hover { color: var(--text); background: rgba(255, 255, 255, .08); } .vx-def:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.th-view .vx-range > span { grid-area: l; } .th-view .vx-range > output { grid-area: o; } .th-view .vx-range > input { grid-area: r; height: 6px; }
.th-view-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.th-view-foot .th-view-note { margin: 0; padding: 0; }
@media (max-width: 640px) { /* a phone: View as a sheet from the bottom, bigger to touch */
  .th-view { top: auto; left: 0; right: 0; width: auto !important; max-height: 64vh; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 18px 18px 0 0; transform: translateY(100%); box-shadow: 0 -20px 40px rgba(0, 0, 0, .5); }
  .vx-tile { min-height: 50px; } .th-view .vx-range > input::-webkit-slider-thumb { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .vx-tab, .vx-tile, .vx-scales button { transition: none; } }
@media (max-width: 900px) { .th.chat-on, .th.view-on { --chatw: 0px; } .th-chat, .th-view { width: min(340px, calc(88vw / var(--zall, 1))); box-shadow: -20px 0 40px rgba(0, 0, 0, .5); } }
/* a phone held upright, watching live with the chat: as Twitch's app, the picture on top (the playfield's own shape: as wide as the phone)
   and the chat under it, both at once */
@media (orientation: portrait) and (max-width: 640px) {
  .th.chat-on:not(.view-on) { --pic: calc(min(75vw, 52vh) / var(--zall, 1)); }
  .th.chat-on:not(.view-on) .th-stage { bottom: auto; height: var(--pic); }
  .th.chat-on:not(.view-on) .th-bottom { bottom: calc(100% - var(--pic)); padding-top: 22px; }
  .th.chat-on:not(.view-on) .th-top { padding-bottom: 22px; }
  .th.chat-on:not(.view-on) .th-chat { top: var(--pic); left: 0; width: auto; border-top: 1px solid rgba(255, 255, 255, .08); border-left: 0; box-shadow: none; }
}
/* a phone: the volume sliders go (its own keys set it) so every button fits, the bars thinner on a short screen; upright, a word to turn it
   sideways (where the page cannot turn it itself: watch.js), with the bars; two taps on a side: 10 s that way, marked a moment */
@media (max-width: 640px) { .th .vol-sl { display: none; } .th-ctl .th-ib { width: 34px; height: 34px; } .th-ctl-l, .th-ctl-r { gap: 2px; } }
@media (max-height: 500px) { .th-top { padding: 8px 14px 28px; } .th-bottom { gap: 6px; padding: 28px 14px 8px; } }
.th-turn { display: none; }
@media (orientation: portrait) and (pointer: coarse) and (max-width: 640px) {
  .th-rp .th-turn { position: absolute; top: 84px; left: 50%; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); pointer-events: none; transition: opacity .2s var(--ease); }
  .th-rp:not(.awake) .th-turn { opacity: 0; }
  .th-turn .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}
.th-skip { position: absolute; top: 50%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 18px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; animation: thSkip .7s ease-out both; }
.th-skip.l { left: 12%; } .th-skip.r { right: 12%; }
.th-skip .i { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes thSkip { from { opacity: 0; transform: translateY(-50%) scale(.85); } 30% { opacity: 1; transform: translateY(-50%) scale(1); } to { opacity: 0; transform: translateY(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .th-skip { animation: none; transform: translateY(-50%); } .th-turn { transition: none; } }
/* chat lines over the picture while the chat is hidden */
.th-ticker { position: absolute; left: 20px; bottom: 150px; z-index: 2; display: flex; flex-direction: column; gap: 6px; max-width: min(440px, 44%); pointer-events: none; }
.th-tick { background: rgba(0, 0, 0, .68); border-radius: 8px; padding: 6px 10px; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; animation: thTick 6.5s var(--ease) forwards; }
.th-tick b { margin-right: 4px; }
@keyframes thTick { 0% { opacity: 0; transform: translateY(6px); } 5% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .th-ticker .th-tick { animation: none !important; } } /* (motion reduced: a line stays as it is until it goes, rather than fading out at once, unseen) */
html.calm .th-ticker .th-tick { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .th.sp-view, .th-tick { animation: none; } .th-stage, .th-top, .th-bottom, .th-chat, .th-view { transition: none; } }
/* replays: one row a match, the map's cover as its thumbnail */
.rp-list { display: flex; flex-direction: column; gap: 4px; }
.rp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .15s; }
.rp-row:hover, .rp-row:focus-visible { background: var(--surface); outline: none; }
.rp-thumb { position: relative; display: grid; place-items: center; flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #241b1f var(--cover, none) center / cover; color: #fff; }
.rp-thumb::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); transition: background-color .15s; }
.rp-thumb .i { position: relative; width: 20px; height: 20px; opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s var(--ease); }
.rp-row:hover .rp-thumb .i, .rp-row:focus-visible .rp-thumb .i { opacity: 1; transform: none; }
.rp-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rp-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-text span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-res { flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); padding-right: 6px; }
@keyframes lvIn { from { opacity: 0; transform: translateY(6px); } }
/* the watch page's panels */
.wt-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; margin-bottom: 16px; }
.wt-panel .wt-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wt-panel .wt-sh h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
/* the player's cards for each player (when watching everybody) and a match's result */
.th-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.th-pc { display: flex; flex-direction: column; gap: 2px; min-width: 170px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .08); }
.th-pc-h { display: flex; align-items: center; gap: 7px; font-size: 13px; } .th-pc-h span { margin-left: auto; color: rgba(255, 255, 255, .6); font-size: 12px; }
.th-pc-sc { font-family: var(--font-head); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.th-pc-n { font-size: 12px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.th-pc-n .h1 { color: #8be04b; } .th-pc-n .h5 { color: #ffc857; } .th-pc-n .hx { color: #ff5d6c; }
/* a saved replay file's own result (the game's) */
.th-pc.wt-file { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.wt-grade, .th-res b.wt-grade { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.36em; padding: 0 .24em; border-radius: .32em; font-size: 15px; } /* (its look: with the grades, by .rank-badge) */
.th-res { align-items: flex-start; gap: 6px; } .th-res b { font-size: 14px; }
.th .btn.primary { align-self: flex-start; }
/* the watch list's tabs: Friends · Matches · Everyone · Replays, underlined like a stream site's */
.wt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.wt-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: color .15s; }
.wt-tab:hover { color: var(--text); }
.wt-tab.on { color: var(--text); }
.wt-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--pink); transform: scaleX(0); transition: transform .22s var(--ease); }
.wt-tab.on::after { transform: scaleX(1); }
.wt-tab:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; border-radius: 8px; }
.wt-tab .lv-count { font-size: 11.5px; padding: 1px 7px; }
.wt-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.wt-tools:empty { display: none; }
.wt-search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.wt-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.wt-search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border-radius: 10px; }
.wt-more { display: flex; justify-content: center; margin-top: 18px; }
.sp-sub { font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 18px 0 10px; }
.sp-sub:first-child { margin-top: 0; }
#wt-tools .seg-btn { padding: 7px 12px; font-size: 13px; }

/* ==== The frame: a sidebar with every section (on phones a menu that slides in), a slim top bar (search, notifications, you), the page ==== */
:root { --side-w: 244px; --top-h: 64px; }
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; }
.side { position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; height: calc(100vh / var(--zall, 1)); padding: 16px 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 72%, transparent); overflow-y: auto; }
/* (its scrollbar: the slim one below, shown while the pointer is over it) */
.side .brand { padding: 6px 10px 14px; font-size: 19px; }
.side .nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { margin: 18px 12px 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.side .nav-item { display: flex; width: 100%; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: 15px; font-weight: 600; text-align: left; color: var(--muted); }
.side .nav-item .ic { width: 20px; height: 20px; }
.side .nav-item:hover { background: var(--surface); color: var(--text); }
.side .nav-item:hover .ic { animation: none; }
.side .nav-item.active { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); }
.side .nav-item:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.side .nav-badge { margin-left: auto; }
.nav-end { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px; height: var(--top-h); padding: 0 clamp(16px, 3vw, 40px); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
/* a phone: the bars that stay on top while scrolling nearly solid instead of blurring what passes under them (blurred again every frame of a scroll: what made scrolling stutter on a phone) */
@media (max-width: 760px) { .topbar, html .stg-nav { backdrop-filter: none; background: color-mix(in srgb, var(--bg) 96%, transparent); } }
.topbar .search, .topbar .search:focus-within { flex: 0 1 420px; width: auto; }
.auth { padding: 3px; border-radius: 999px; }
.menu-btn, .brand-m { display: none !important; }
.content { max-width: none; padding: 30px clamp(16px, 3vw, 40px) 80px; } /* (the whole width beside the menu: grids take more columns, long text keeps its own measure) */
.nt-pop { top: calc(var(--top-h) + 8px); }
.side-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); animation: scrimIn .2s ease-out; }
@keyframes scrimIn { from { opacity: 0; } }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(290px, calc(84vw / var(--zall, 1))); height: calc(100dvh / var(--zall, 1)); background: var(--bg); box-shadow: 24px 0 60px rgba(0, 0, 0, .5); transform: translateX(-105%); transition: transform .26s var(--ease); }
  .app.side-open .side { transform: none; }
  .menu-btn { display: inline-grid !important; }
  .brand-m { display: flex !important; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .search, .topbar .search:focus-within { flex: 1 1 auto; min-width: 0; }
  .topbar-spacer { display: none; } /* (the search takes the room: it shared it with this) */
  .auth .n { display: none; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } .side-scrim { animation: none; } }

/* ==== Settings: the parts on the left (a row of chips on phones); each part is a card of rows: what it is, then its control ==== */
.stg { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.stg-nav { position: sticky; top: calc(var(--top-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.stg-nav a { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; transition: background-color .15s, color .15s; }
.stg-nav a:hover { background: var(--surface); color: var(--text); }
.stg-nav a.on { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); }
.stg-nav a:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.stg-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.stg-sec { scroll-margin-top: calc(var(--top-h) + 24px); }
.stg-head { margin-bottom: 12px; }
.stg-head h2 { margin: 0; font-size: 22px; }
.stg-head p { margin: 4px 0 0; font-size: 14.5px; max-width: 65ch; }
.stg-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.stg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; }
.stg-row + .stg-row { border-top: 1px solid var(--line); }
label.stg-row { cursor: pointer; }
.stg-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stg-l b { font-size: 15.5px; font-weight: 700; }
.stg-l small { color: var(--muted); font-size: 13.5px; line-height: 1.45; max-width: 60ch; }
.stg-c { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex: none; max-width: 100%; }
.stg-row.stack { flex-direction: column; align-items: stretch; }
.stg-row.stack .stg-c { justify-content: flex-start; }
.stg-me .stg-l { flex-direction: row; align-items: center; gap: 14px; }
.stg-me img { width: 48px; height: 48px; flex: none; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.stg-me .stg-l span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stg-me .stg-l b { font-family: var(--font-head); font-size: 19px; }
.stg-row.danger .stg-l b { color: #ff9aa8; }
/* The settings, wider (settings.js): their parts in two columns on a wide screen (each part whole: it never splits), an icon for each part in
   the list and by its title (in the theme's accent: a mask), a row lit under the pointer. */
.stg-nav a[data-stg="account"], .stg-sec[data-part="account"] { --stg-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2021c0-4.4%203.6-7%208-7s8%202.6%208%207%22/%3E%3C/svg%3E"); }
.stg-nav a[data-stg="privacy"], .stg-sec[data-part="privacy"] { --stg-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l8%203v6c0%205-3.5%208-8%209-4.5-1-8-4-8-9V6z%22/%3E%3Cpath%20d%3D%22M9%2012l2%202%204-4%22/%3E%3C/svg%3E"); }
.stg-nav a[data-stg="watching"], .stg-sec[data-part="watching"] { --stg-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s3.6-7%2010-7%2010%207%2010%207-3.6%207-10%207S2%2012%202%2012z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22/%3E%3C/svg%3E"); }
.stg-nav a[data-stg="notifications"], .stg-sec[data-part="notifications"] { --stg-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2016V11a6%206%200%200%201%2012%200v5l2%202H4z%22/%3E%3Cpath%20d%3D%22M10%2021h4%22/%3E%3C/svg%3E"); }
.stg-nav a[data-stg="appearance"], .stg-sec[data-part="appearance"] { --stg-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203a9%209%200%201%200%200%2018c1.1%200%202-.9%202-2%200-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.3%200-1.1.9-2%202-2h2.4A4.6%204.6%200%200%200%2021%209.8C21%206%2017%203%2012%203z%22/%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%2211%22%20r%3D%221%22/%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%227%22%20r%3D%221%22/%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%227%22%20r%3D%221%22/%3E%3C/svg%3E"); }
.stg-nav a[data-stg="plan"], .stg-sec[data-part="plan"] { --stg-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l2.8%205.7%206.2.9-4.5%204.4%201%206.2L12%2017.3%206.5%2020.2l1-6.2L3%209.6l6.2-.9z%22/%3E%3C/svg%3E"); }
.stg-nav a[data-stg="data"], .stg-sec[data-part="data"] { --stg-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12M7%2010l5%205%205-5%22/%3E%3Cpath%20d%3D%22M4%2017v3h16v-3%22/%3E%3C/svg%3E"); }
.stg-nav a { display: flex; align-items: center; gap: 10px; position: relative; }
.stg-nav a::before { content: ''; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--stg-ico) center / contain no-repeat; mask: var(--stg-ico) center / contain no-repeat; opacity: .85; }
.stg-nav a.on::after { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--pink); }
.stg-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
.stg-head::before { content: ''; grid-row: 1 / span 2; align-self: start; width: 24px; height: 24px; margin-top: 3px; background: var(--pink); -webkit-mask: var(--stg-ico) center / contain no-repeat; mask: var(--stg-ico) center / contain no-repeat; }
.stg-head h2, .stg-head p { grid-column: 2; }
.stg-card { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.stg-row { transition: background-color .15s; } .stg-row:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.stg-row:first-child { border-radius: 18px 18px 0 0; } .stg-row:last-child { border-radius: 0 0 18px 18px; } .stg-row:only-child { border-radius: 18px; }
@media (min-width: 1250px) {
  .stg-main { display: block; columns: 2; column-gap: 28px; }
  .stg-main > .stg-sec { break-inside: avoid; margin-bottom: 36px; }
  .stg-main > .stg-sec[hidden] { display: none; }
}
/* Slim scrollbars in the theme's accent: the page's, the sidebar's (only while the pointer is over it) and the notifications'. Firefox: its own thin one. */
html::-webkit-scrollbar, .side::-webkit-scrollbar, .nt-pop::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--bg); } .side::-webkit-scrollbar-track, .nt-pop::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
html::-webkit-scrollbar-thumb, .side::-webkit-scrollbar-thumb, .nt-pop::-webkit-scrollbar-thumb { border-radius: 999px; border: 3px solid transparent; background: color-mix(in srgb, var(--pink) 38%, transparent) padding-box; }
html::-webkit-scrollbar-thumb:hover, .side::-webkit-scrollbar-thumb:hover, .nt-pop::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--pink) 70%, transparent) padding-box; }
.side:not(:hover)::-webkit-scrollbar-thumb { background: transparent; }
@supports not selector(::-webkit-scrollbar) { html, .side, .nt-pop { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--pink) 45%, transparent) transparent; } }
/* osu!bridge Plus (plus.js): Free and Plus side by side, the Plus column lit */
a.pf-prem { text-decoration: none; }
.plus-you { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 600; } .plus-you .pf-prem { margin-left: 0; }
.plus-card { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.plus-cmp { width: 100%; border-collapse: collapse; }
.plus-cmp th, .plus-cmp td { padding: 14px 18px; text-align: center; vertical-align: middle; }
.plus-cmp thead th { font-size: 14px; font-weight: 800; color: var(--muted); } .plus-cmp thead .pf-prem { margin-left: 0; }
.plus-cmp tbody tr + tr > * { border-top: 1px solid var(--line); }
.plus-cmp tbody th { display: flex; flex-direction: column; gap: 3px; text-align: left; font-weight: 400; }
.plus-cmp tbody th b { font-size: 15.5px; font-weight: 700; } .plus-cmp tbody th small { color: var(--muted); font-size: 13.5px; line-height: 1.45; max-width: 52ch; }
.plus-cmp td { width: 22%; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus-cmp .plus-col { background: color-mix(in srgb, var(--pink) 7%, transparent); color: var(--text); }
.plus-y { color: var(--accent); font-size: 18px; } .plus-n { color: var(--muted); }
/* the Plus page's pictures: your profile with Plus (your name and picture), then a little picture of each thing Plus adds */
.pp { position: relative; overflow: hidden; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.pp-banner { position: relative; height: 120px; overflow: hidden; background: linear-gradient(120deg, var(--pink), #8a5cff 55%, #66ccff); }
.pp-banner i { position: absolute; width: 60px; height: 60px; border: 4px solid rgba(255, 255, 255, .9); border-radius: 50%; box-shadow: 0 0 0 8px rgba(255, 255, 255, .14); }
.pp-banner .c1 { left: 12%; top: 24px; } .pp-banner .c2 { left: 47%; top: 46px; width: 46px; height: 46px; } .pp-banner .c3 { left: 79%; top: 16px; width: 54px; height: 54px; }
.pp-main { position: relative; display: flex; align-items: flex-end; gap: 14px; margin-top: -34px; padding: 0 22px; }
.pp-av { flex: none; width: 76px; height: 76px; border-radius: 20px; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 4px var(--panel); }
.pp-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; padding-bottom: 6px; } .pp-who .pf-prem { margin-left: 0; }
.pp-name, .pv-name { font-family: var(--font-head); background: linear-gradient(90deg, #66ccff, var(--pink) 55%, #ffc857); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.pp-name { font-size: 26px; } .pv-name { font-size: 28px; }
.pp-parts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; padding: 16px 22px 20px; }
.pp-me, .pp-sec { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pp-me > span { color: var(--muted); font-size: 14px; } .pp-me em { font-style: normal; font-weight: 700; } .pp-me .c-blue { color: #66ccff; } .pp-me .c-pink { color: var(--pink); }
.pp-rpl { display: flex; gap: 6px; } .pp-rpl i { flex: 1; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #3b2a33, #2a2026); }
.plus-f { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); transition: border-color .2s, transform .22s var(--ease); }
.plus-f:hover { border-color: color-mix(in srgb, var(--pink) 45%, transparent); }
.plus-f h3 { margin: 6px 0 0; font-size: 16.5px; } .plus-f p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.plus-prev { display: grid; place-items: center; height: 108px; overflow: hidden; border-radius: 14px; background: var(--surface); }
.pv-prof { position: relative; width: 150px; height: 84px; overflow: hidden; border-radius: 10px; background: linear-gradient(color-mix(in srgb, var(--bg) 50%, transparent), color-mix(in srgb, var(--bg) 78%, transparent)), linear-gradient(45deg, #2b3a5c, #5c2b4a); }
.pv-prof .b { position: absolute; inset: 0 0 auto; height: 34px; background: linear-gradient(120deg, var(--pink), #8a5cff 60%, #66ccff); }
.pv-prof .a { position: absolute; left: 10px; top: 22px; width: 26px; height: 26px; border-radius: 8px; background: #ffc857; box-shadow: 0 0 0 2px var(--surface); }
.pv-prof .l1, .pv-prof .l2 { position: absolute; left: 10px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); } .pv-prof .l1 { top: 56px; width: 90px; } .pv-prof .l2 { top: 68px; width: 64px; }
.pv-me { display: flex; flex-direction: column; gap: 6px; width: 160px; } .pv-me b { font-size: 14px; } .pv-me i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
.pv-me .pink { background: color-mix(in srgb, var(--pink) 75%, transparent); } .pv-me .w70 { width: 70%; } .pv-me .w90 { width: 90%; } .pv-me .w50 { width: 50%; }
.pv-lay { display: flex; flex-direction: column; gap: 4px; width: 170px; } .pv-lay i { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 11.5px; font-style: normal; } .pv-lay .off { opacity: .35; text-decoration: line-through; }
.pv-room { display: flex; flex-direction: column; gap: 12px; width: 180px; } .pv-room > span { display: grid; grid-template-columns: minmax(0, 1fr) 52px; align-items: center; gap: 8px; }
.pv-room i { position: relative; height: 10px; overflow: hidden; border-radius: 5px; background: var(--surface-2); }
.pv-room i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 5px; background: var(--muted); } .pv-room .on i::after { background: linear-gradient(90deg, #ffc857, #ff9ac4); }
.pv-room small, .pv-hz small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.pv-hz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; padding: 0 10px; } .pv-hz > span { display: flex; flex-direction: column; align-items: center; gap: 2px; } .pv-hz svg { width: 100%; height: auto; }
.pv-hz .pc-true { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 7; stroke-linecap: round; } .pv-hz .pc-got { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; } .pv-hz circle { fill: var(--muted); }
.pv-hz .on .pc-got { stroke: #ff9ac4; } .pv-hz .on circle { fill: #ffc857; }
.pv-br { width: 156px; height: 84px; } .pv-br path { fill: none; stroke: var(--muted); stroke-width: 1.6; } .pv-br rect { fill: var(--surface-2); } .pv-br .win { fill: #ffc857; }
.pv-pats { display: flex; gap: 8px; } .pv-pats i { width: 58px; height: 74px; padding: 0; border-radius: 12px; }
.pv-rooms { display: grid; grid-template-columns: repeat(5, 22px); gap: 6px; } .pv-rooms i { height: 22px; border-radius: 6px; background: linear-gradient(135deg, #ffc857, #ff9ac4); } .pv-rooms .free { background: var(--muted); }
@media (max-width: 640px) { .pp-parts { grid-template-columns: minmax(0, 1fr); } }
/* the Plus page's explainer (plus.js plusTour): the home page replay explainer's stage and steps; each scene drawn at 600×375, scaled to the stage */
.pt-wrap { margin: 0 0 26px; }
.pt-tour[data-scene="profile"] .pt-s-profile, .pt-tour[data-scene="seasons"] .pt-s-seasons, .pt-tour[data-scene="more"] .pt-s-more { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.pt-fit { position: absolute; left: 0; top: 0; width: 600px; height: 375px; transform: scale(var(--k, 1)); transform-origin: 0 0; }
.pt-tour[data-paused] * { animation-play-state: paused !important; }
/* 1: your profile: the background behind it, then each part pointed out (a dashed ring, a note) as it changes */
.pt-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(circle at 18% 26%, rgba(255, 111, 169, .55), transparent 42%), radial-gradient(circle at 84% 74%, rgba(102, 204, 255, .45), transparent 44%), radial-gradient(circle at 62% 10%, rgba(255, 200, 87, .32), transparent 30%), linear-gradient(135deg, #2b1640, #0f1d36); }
.pt-s-profile.b0 .pt-bg { opacity: 1; }
.pt-tour .pp { position: absolute; left: 66px; top: 30px; width: 468px; margin: 0; outline: 2px dashed transparent; outline-offset: 4px; transition: background-color .5s, border-color .5s, outline-color .3s; }
.pt-tour .pp-parts { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 14px 20px 18px; }
.pt-tour .pp-banner { height: 104px; background: var(--surface-2); transition: box-shadow .3s; }
.pt-tour .pp-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, var(--pink), #8a5cff 55%, #66ccff); opacity: 0; transition: opacity .7s var(--ease); }
.pt-tour .pp-banner i { opacity: 0; transition: opacity .7s var(--ease) .2s; }
.pt-s-profile.b0 .pp-banner::before, .pt-s-profile.b0 .pp-banner i { opacity: 1; }
.pt-s-profile.b0 .pp-banner i { animation: pt-gif 2.6s ease-in-out infinite alternate; } .pt-s-profile.b0 .pp-banner .c2 { animation-delay: -.9s; } .pt-s-profile.b0 .pp-banner .c3 { animation-delay: -1.7s; }
@keyframes pt-gif { to { transform: translate(14px, -10px) scale(1.12); } }
.pt-tour .pp-name { color: #f8efe8; background-image: none; transition: color .4s; }
.pt-s-profile.b1 .pp-name { color: transparent; background-image: linear-gradient(90deg, #66ccff, var(--pink), #ffc857, #66ccff); background-size: 300% 100%; animation: pt-flow 3s linear infinite; }
@keyframes pt-flow { to { background-position: 300% 0; } }
.pt-tour .pp-me > * { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pt-s-profile.b3 .pp-me > * { opacity: 1; transform: none; } .pt-s-profile.b3 .pp-me > span { transition-delay: .35s; }
.pt-s-profile[data-beat="0"] .pp-banner { box-shadow: inset 0 0 0 2px #ffc857; }
.pt-s-profile[data-beat="1"] .pp-name { outline: 2px dashed #ffc857; outline-offset: 4px; border-radius: 4px; }
.pt-s-profile[data-beat="2"] .pp { outline-color: #ffc857; }
.pt-s-profile[data-beat="3"] .pp-me { outline: 2px dashed #ffc857; outline-offset: 3px; }
.pt-call { position: absolute; z-index: 2; padding: 6px 12px; border-radius: 999px; background: #ffc857; color: #2a1a00; font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.pt-call::after { content: ''; position: absolute; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
.pt-call.down::after { left: 26px; bottom: -4px; } .pt-call.up::after { left: 26px; top: -4px; } .pt-call.left::after { left: -4px; top: calc(50% - 5px); } .pt-call.right::after { right: -4px; top: calc(50% - 5px); }
.pt-s-profile[data-beat="0"] .c0, .pt-s-profile[data-beat="1"] .c1, .pt-s-profile[data-beat="2"] .c2, .pt-s-profile[data-beat="3"] .c3 { opacity: 1; transform: none; }
.pt-call.c0 { right: 96px; top: 2px; } .pt-call.c1 { left: 316px; top: 150px; } .pt-call.c2 { left: 8px; top: 244px; } .pt-call.c3 { left: 96px; top: 330px; }
/* 2: the seasons: a small osu!bridge wearing each (themes.css .th-scope), its weather over it (theme.js), the season's name on top */
.pt-site { position: absolute; left: 36px; top: 42px; width: 528px; height: 312px; isolation: isolate; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 36px minmax(0, 1fr); overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); color: var(--text); background: radial-gradient(70% 60% at 100% 0, color-mix(in srgb, var(--pink) 14%, transparent), transparent 70%), var(--bg); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.pt-site i, .pt-site b { display: block; }
.pts-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); }
.pts-logo { width: 20px; height: 20px; border-radius: 6px; background: var(--pink); } .pts-search { width: 36%; height: 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); } .pts-me { margin-left: auto; width: 56px; height: 18px; border-radius: 999px; background: var(--surface-2); }
.pts-side { display: flex; flex-direction: column; gap: 9px; padding: 14px 10px; border-right: 1px solid var(--line); }
.pts-side i { height: 10px; border-radius: 5px; background: var(--surface-2); } .pts-side i.on { background: color-mix(in srgb, var(--pink) 34%, transparent); } .pts-side i:nth-child(3) { width: 70%; } .pts-side i:nth-child(5) { width: 80%; }
.pts-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 16px 0; }
.pts-h { width: 52%; height: 14px; border-radius: 7px; background: var(--text); opacity: .9; } .pts-p { width: 74%; height: 8px; border-radius: 4px; background: var(--muted); opacity: .55; }
.pts-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; } .pts-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; }
.pts-card { display: flex; flex-direction: column; gap: 7px; height: 74px; padding: 11px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); }
.pts-card i { width: 24px; height: 24px; border-radius: 8px; background: color-mix(in srgb, var(--pink) 26%, transparent); } .pts-card b { width: 74%; height: 7px; border-radius: 4px; background: var(--text); opacity: .7; } .pts-card b.s { width: 48%; background: var(--muted); opacity: .5; }
.pt-tag { position: absolute; left: 50%; top: 4px; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 14px; border-radius: 999px; background: rgba(18, 12, 15, .88); border: 1px solid rgba(255, 255, 255, .14); color: #f8efe8; font-size: 14px; white-space: nowrap; }
.pt-tag .pf-prem { margin-left: 0; }
/* 3: more room, more on top: each part lit in turn, doing what it says */
.ptm { position: absolute; inset: 22px 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ptm-cell { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: #f8efe8; opacity: .45;
  transition: opacity .4s var(--ease), border-color .4s, background-color .4s, transform .4s var(--ease); }
.ptm-cell > b { font-size: 15px; }
.pt-s-more.b0 .c0, .pt-s-more.b1 .c1, .pt-s-more.b2 .c2, .pt-s-more.b3 .c3 { opacity: 1; }
.pt-s-more[data-beat="0"] .c0, .pt-s-more[data-beat="1"] .c1, .pt-s-more[data-beat="2"] .c2, .pt-s-more[data-beat="3"] .c3 { border-color: rgba(255, 111, 169, .7); background: rgba(255, 111, 169, .1); transform: scale(1.03); }
.pt-s-more .pv-room .on i::after { width: 6%; transition: width 1.4s var(--ease) .2s; } .pt-s-more.b0 .pv-room .on i::after { width: 100%; }
.pt-s-more .pv-hz .pc-got { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.5s var(--ease); } .pt-s-more.b1 .pv-hz .pc-got { stroke-dashoffset: 0; }
.pt-s-more .pv-hz circle { opacity: 0; transition: opacity .3s .9s; } .pt-s-more.b1 .pv-hz circle { opacity: 1; }
.pt-s-more .pv-rooms i { position: relative; } .pt-s-more .pv-rooms i:not(.free) { background: var(--surface-2); }
.pt-s-more .pv-rooms i:not(.free)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, #ffc857, #ff9ac4); opacity: 0; transition: opacity .25s calc(var(--n) * 90ms); }
.pt-s-more.b2 .pv-rooms i::after { opacity: 1; }
.pt-s-more .pv-br path { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.3s var(--ease); } .pt-s-more.b3 .pv-br path { stroke-dashoffset: 0; }
.pt-s-more .pv-br .win { fill: var(--surface-2); transition: fill .3s 1.1s; } .pt-s-more.b3 .pv-br .win { fill: #ffc857; }
/* the seasons' card: the four, each with its mark (themes.css) */
.pv-seasons { display: grid; grid-template-columns: repeat(4, 42px); gap: 8px; } .pv-seasons i { height: 68px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .12); background: var(--t-fx, linear-gradient(transparent, transparent)), var(--sb); }
.pv-seasons [data-season="spring"] { --sb: linear-gradient(#213027, #0c130f); } .pv-seasons [data-season="summer"] { --sb: linear-gradient(#ffa24a, #2c253b 62%); } .pv-seasons [data-season="autumn"] { --sb: linear-gradient(#5a2a1c, #150b0b); } .pv-seasons [data-season="winter"] { --sb: linear-gradient(#1e2c3f, #09101a); }
.plus-h { margin: 28px 0 10px; font-size: 18px; }
.plus-both { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; margin: 0 0 18px; padding-left: 20px; color: var(--muted); line-height: 1.5; }
@media (max-width: 560px) { .plus-cmp th, .plus-cmp td { padding: 12px 10px; } .plus-cmp td { white-space: normal; } }
.stg-c .btn.danger { width: auto; }
.stg-wide .skin-pick { margin: 0 !important; }
#set-skin, #set-sound { min-width: 0; } #set-sound .vol { flex-wrap: wrap; } /* (a long skin name ends in "…", the sliders go under each other: not wider than a phone) */
/* a switch */
.tgl { position: relative; display: inline-flex; flex: none; }
.tgl input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.tgl i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background-color .2s var(--ease), border-color .2s; }
.tgl i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .22s var(--ease), background-color .2s; }
.tgl input:checked + i { background: var(--pink); border-color: var(--pink); }
.tgl input:checked + i::after { transform: translateX(18px); background: #2a0a1a; }
.tgl input:focus-visible + i { outline: 2px solid var(--pink); outline-offset: 2px; }
/* one of a few */
.seg2 { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg2 button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 10px; cursor: pointer; transition: background-color .15s, color .15s; }
.seg2 button:hover { color: var(--text); }
.seg2 button.on { background: var(--pink); color: var(--on-pink); }
.seg2 button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.st-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #5dd68a; }
.st-dot.st-dnd { background: #ff5d6c; } .st-dot.st-brb { background: #ffc857; } .st-dot.st-invisible { background: #8b8b93; }
.seg2 button.on .st-dot { box-shadow: 0 0 0 2px rgba(42, 10, 26, .4); }
/* text size, plan */
.stg-range { display: flex; align-items: center; gap: 12px; width: 260px; max-width: 100%; }
.stg-range output { min-width: 40px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.stg-chip { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; }
.stg-chip.on { background: rgba(255, 200, 87, .14); border-color: rgba(255, 200, 87, .45); color: var(--gold); }
.stg-use { display: flex; align-items: center; gap: 12px; width: 300px; max-width: 100%; }
.stg-use i { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.stg-use i b { display: block; height: 100%; border-radius: 999px; background: var(--pink); }
.stg-use em { min-width: 92px; font-style: normal; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
@media (max-width: 900px) {
  .stg { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .stg-nav { top: var(--top-h); z-index: 5; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .stg-nav::-webkit-scrollbar { display: none; }
  .stg-nav a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; }
  .stg-sec { scroll-margin-top: calc(var(--top-h) + 70px); }
}
@media (max-width: 600px) {
  .stg-row { flex-direction: column; align-items: stretch; padding: 14px 16px; }
  .stg-c { justify-content: flex-start; }
  label.stg-row { flex-direction: row; align-items: center; }
  .stg-use, .stg-range { width: 100%; }
}
/* room page: the number of maps on the Beatmaps button */
.btn-n { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.btn-n:empty { display: none; }
#maps-toggle.on .btn-n { background: rgba(42, 10, 26, .22); color: inherit; }

/* ==== Empty pages, room cards with their map's cover, your own home page, the feature tiles, page headers, phones ==== */
/* a page with nothing in it yet: what is missing and what to do about it (the Watch lists' empty state matches) */
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 20px 34px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 22px; background: rgba(255, 255, 255, .015); animation: rise .45s var(--ease-dec) both; }
.empty-state > .ic, .lv-empty .i { width: 26px; height: 26px; padding: 13px; box-sizing: content-box; margin-bottom: 6px; border-radius: 18px; color: var(--pink); background: color-mix(in srgb, var(--pink) 12%, transparent); }
.empty-state > b, .lv-empty b { color: var(--text); font-family: var(--font-head); font-size: 18px; letter-spacing: -0.01em; }
.empty-state > p { margin: 0; max-width: 46ch; font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.es-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
#view-runs .empty-state, #view-ranked .empty-state { max-width: 920px; }

/* room cards: the cover of the room's first map on top (no cover: hit circles), then who and what */
.room-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--panel); }
.room-card.is-active { border-color: color-mix(in srgb, var(--pink) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pink) 30%, transparent); }
.rc-cover { position: relative; flex: none; height: 96px; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--bg) 72%, transparent)), var(--cover) center / cover, #2a2024; }
.rc-cover.plain { background: radial-gradient(circle at 26% 46%, color-mix(in srgb, var(--pink) 34%, transparent) 0 15px, transparent 16px), radial-gradient(circle at 26% 46%, transparent 0 21px, color-mix(in srgb, var(--pink) 50%, transparent) 22px 24px, transparent 25px),
  radial-gradient(circle at 64% 60%, rgba(102, 204, 255, .24) 0 11px, transparent 12px), radial-gradient(circle at 64% 60%, transparent 0 16px, rgba(102, 204, 255, .4) 17px 18.5px, transparent 19.5px), linear-gradient(140deg, #2c1e28, #17111a 75%); }
.rc-maps { position: absolute; right: 10px; bottom: 10px; padding: 2px 9px; border-radius: 99px; background: rgba(10, 8, 9, .74); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding: 12px 16px 14px; }
.room-card .rc-title { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-family: var(--font-head); font-size: 18px; font-weight: 700; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-card .rc-title:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.room-card .rc-owner { flex-wrap: wrap; gap: 6px; margin: 0; font-size: 13.5px; }
.room-card .rc-owner img { width: 20px; height: 20px; border-radius: 7px; }
.rc-sep { opacity: .55; }
.room-card .rc-rules { margin: 0; }
.room-card .rc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.room-card .rc-actions .code-chip { margin-right: auto; }
.room-card .rc-actions .btn .ic { width: 15px; height: 15px; }

/* your home page when signed in: you, your rooms, your friends (instead of the introduction) */
html:not(.signed-in) .hub, html.signed-in .l-copy, html.signed-in .l-go, html:not(.signed-in) .l-me { display: none; } /* (signed in: how it works beside the carousel, under the hub) */
.hub { margin: 4px 0 44px; animation: rise .5s var(--ease-dec) both; }
.hub-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.hub-av { width: 64px; height: 64px; flex: none; border-radius: 20px; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--pink) 55%, transparent); }
.hub-id { flex: 1; min-width: 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hub-id h1 { font-size: clamp(26px, 3vw, 36px); text-wrap: balance; }
.hub-st { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s; }
.hub-st:hover { border-color: var(--pink); } .hub-st:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.hub-st-v { color: var(--muted); font-weight: 500; } .hub-st-v::before { content: '·'; margin-right: 8px; }
.hub-st .ic { width: 15px; height: 15px; color: var(--muted); }
.hub-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.hub .l-live-h h2 { display: flex; align-items: center; gap: 8px; }
html.signed-in .landing { max-width: none; } /* (yours: the whole width, as the Replays page) */
.hub-replays.is-empty { display: block; }
.hub-friends { display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.hub-friends.is-empty { padding: 0; background: none; border: 0; }
.hf { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 16px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s, opacity .15s; }
.hf:hover, .hf:focus-visible { background: var(--surface); outline: none; }
.hf-av { position: relative; flex: none; width: 40px; height: 40px; }
.hf-av img { display: block; width: 100%; height: 100%; border-radius: 13px; object-fit: cover; background: var(--surface-2); }
.hf-av i { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--panel); background: #6b5b63; transition: border-color .15s; }
.hf:hover .hf-av i, .hf:focus-visible .hf-av i { border-color: var(--surface); }
.hf.on .hf-av i { background: #5dd68a; } .hf.play .hf-av i { background: var(--pink); } .hf.dnd .hf-av i { background: #ff5d6c; } .hf.brb .hf-av i { background: #ffc857; }
.hf-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hf-t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-t small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf.play small { color: var(--pink); }
.hf.off { opacity: .6; } .hf.off:hover, .hf.off:focus-visible { opacity: 1; }
@media (max-width: 1000px) {
  .hub-grid { grid-template-columns: minmax(0, 1fr); }
  /* one part under the other: a line between each (replays, friends, the quick links, the activity) */
  .hub-grid { gap: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .hub-grid > section + section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
  .hub { margin-bottom: 22px; } .hub-go { margin-top: 20px; }
  .hub-act { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--line); }
}
/* a phone's home: each part a row to swipe across (as the quick links), its heading on one line, the welcome smaller */
.l-live-h h2, .l-live-h .l-more { white-space: nowrap; }
@media (max-width: 560px) {
  .hub-head { gap: 12px; margin-bottom: 18px; } .hub-av { width: 50px; height: 50px; border-radius: 16px; } .hub-id h1 { font-size: 23px; } .hub .dl-phone { display: none; }
  .hub-replays:not(.is-empty) { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: -16px; padding: 0 16px 2px; scroll-padding-inline: 16px; }
  .hub-replays::-webkit-scrollbar, .hub-friends::-webkit-scrollbar { display: none; } .hub-replays .rpl-card { flex: 0 0 80%; scroll-snap-align: start; }
  .hub-friends:not(.is-empty) { flex-direction: row; gap: 4px; padding: 8px; overflow-x: auto; scrollbar-width: none; }
  .hf { flex: 0 0 76px; min-width: 0; flex-direction: column; gap: 6px; padding: 6px 4px; text-align: center; } .hf-av { width: 52px; height: 52px; } .hf-av img { border-radius: 50%; }
  .hf-t { align-items: center; width: 100%; } .hf-t b { max-width: 100%; font-size: 12.5px; } .hf-t small { display: none; }
}

/* the home page's feature tiles: the two big ones show what they are about, the four small ones sit under them */
/* Ranked: a card match in small (a card from your hand is played and turned over, both play its map, their HP drops, your rating goes up) */
.lb-duel { position: relative; align-self: center; width: 236px; height: 120px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 18%, #2a1d26, #110c10 80%); color: #f8efe8; }
.ld-hp { position: absolute; top: 12px; width: 92px; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ld-hp.me { left: 12px; } .ld-hp.them { right: 12px; }
.ld-hp i { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: linear-gradient(90deg, #8be04b, #c8f06b); }
.ld-hp.them i { left: auto; right: 0; transform-origin: 100% 50%; background: linear-gradient(270deg, #ff6f8f, #ff9a6b); }
.ld-vs { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); font-size: 10px; font-weight: 900; color: rgba(255, 255, 255, .45); }
.ld-dmg, .ld-elo { position: absolute; top: 26px; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; opacity: 0; }
.ld-dmg { right: 16px; color: #ff9aa9; } .ld-elo { left: 16px; color: #a6e96b; }
.ld-hand { position: absolute; left: 50%; bottom: -10px; width: 0; height: 0; }
.ld-hand i { --face: linear-gradient(135deg, #43263a, #6b3a58); position: absolute; left: -16px; bottom: 0; width: 32px; height: 44px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .22); transform-origin: 50% 140%;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 12, 16, .85)), var(--face); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.ld-hand i:nth-child(1) { --face: linear-gradient(135deg, #2d4a63, #3d6b8a); transform: rotate(-22deg) translateY(-6px); }
.ld-hand i:nth-child(2) { --face: linear-gradient(135deg, #4b3a20, #8a6a2d); transform: rotate(-8deg) translateY(-10px); }
.ld-hand i:nth-child(4) { --face: linear-gradient(135deg, #24473a, #2f7a5c); transform: rotate(22deg) translateY(-6px); }
.ld-hand i.go { z-index: 1; transform: translate(0, -10px) rotate(8deg); }
.ld-hand i.go::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid #ff6fa9; background: linear-gradient(135deg, #ff6fa9, #ffb3cf); box-shadow: 0 0 22px rgba(255, 111, 169, .6); opacity: 0; }
.ld-hand i.go::after { content: '6.4★'; position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 8px; font-weight: 900; color: #1a0d14; opacity: 0; }
@keyframes ld-play { /* (from the hand, turned over to its map, then at their HP bar: moved and faded only, so the picture card is the GPU's alone) */
  0%, 18% { transform: translate(0, -10px) rotate(8deg); opacity: 1; }
  34% { transform: translate(0, -44px) rotate(0) scale(1.2); opacity: 1; }
  36% { transform: translate(0, -44px) rotate(0) scale(1.2) rotateY(90deg); opacity: 1; }
  36.1%, 52% { transform: translate(0, -44px) rotate(0) scale(1.2); opacity: 1; }
  58% { transform: translate(50px, -112px) rotate(20deg) scale(.45); opacity: .9; }
  61% { transform: translate(56px, -118px) rotate(24deg) scale(.3); opacity: 0; }
  62%, 88% { transform: translate(0, 30px) rotate(8deg); opacity: 0; }
  100% { transform: translate(0, -10px) rotate(8deg); opacity: 1; }
}
@keyframes ld-turn { 0%, 36% { opacity: 0; } 36.1%, 61% { opacity: 1; } 62%, 100% { opacity: 0; } } /* (its face, turned up) */
@keyframes ld-face { 0%, 37% { opacity: 0; } 39%, 52% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes ld-hit { 0%, 58% { transform: none; } 64%, 92% { transform: scaleX(.58); } 100% { transform: none; } }
@keyframes ld-pop { 0%, 58% { opacity: 0; transform: translateY(6px); } 63% { opacity: 1; transform: none; } 80% { opacity: 1; transform: translateY(-4px); } 90%, 100% { opacity: 0; transform: translateY(-8px); } }
/* Watch: a live match side by side (its two players do not play the same moment, so each has their own picture, a little apart) */
.lb-split { position: relative; align-self: center; width: 236px; height: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 30px 7px 7px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #110c10; color: #f8efe8; }
.lb-split .lv-badge { top: 7px; left: 7px; }
.ls-eye { position: absolute; top: 9px; right: 10px; font-size: 11px; font-weight: 800; color: #bcaea6; font-variant-numeric: tabular-nums; }
.ls-eye::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 50%; background: #e5194b; box-shadow: 0 0 8px #e5194b; }
.ls-pf { --o: 0s; --note: color-mix(in srgb, var(--pink) 85%, transparent); position: relative; overflow: hidden; border-radius: 9px; background: radial-gradient(circle at 50% 30%, #2a1d26, #140e12 80%); }
.ls-pf.b { --o: -1.1s; --note: rgba(102, 204, 255, .8); }
.ls-pf small { position: absolute; left: 6px; bottom: 4px; font-size: 9.5px; font-weight: 800; opacity: .85; }
.ls-pf .h1 { --d: 0s; left: 24%; top: 62%; } .ls-pf .h2 { --d: .8s; left: 54%; top: 32%; } .ls-pf .h3 { --d: 1.6s; left: 80%; top: 64%; }
.ls-pf i { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; background: var(--note); }
.ls-pf i::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); opacity: 0; }
.ls-pf em { position: absolute; margin: -19px 0 0 -9px; font-style: normal; font-size: 10px; font-weight: 900; color: #66ccff; opacity: 0; } .ls-pf em.ok { color: #a6e96b; }
.ls-pf b { position: absolute; inset: 0; transform: translate(54%, 32%); }
.ls-pf b::after { content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #ffe7a3; box-shadow: 0 0 0 2px rgba(255, 200, 87, .3), 0 0 10px #ffc857; }
@keyframes ls-note { 0%, 4% { opacity: 0; transform: scale(.85); } 9%, 30% { opacity: 1; transform: none; } 37%, 100% { opacity: 0; transform: scale(1.45); } }
@keyframes ls-ring { 0%, 4% { opacity: 0; transform: scale(2.8); } 9% { opacity: .9; } 30% { opacity: .9; transform: scale(1); } 31%, 100% { opacity: 0; transform: scale(1); } }
@keyframes ls-300 { 0%, 29% { opacity: 0; transform: translateY(2px) scale(.8); } 33% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; transform: translateY(-7px); } }
@keyframes ls-cur { 0%, 6% { transform: translate(24%, 62%); } 33.3%, 39% { transform: translate(54%, 32%); } 66.7%, 72% { transform: translate(80%, 64%); } 100% { transform: translate(24%, 62%); } }
/* (both play whatever the system says, being what their tiles are about: the reduced-motion rule leaves them be; Settings → Reduce motion stills them) */
.ld-hand i.go { animation: ld-play 5s var(--ease) infinite; }
.ld-hand i.go::before { animation: ld-turn 5s linear infinite; } .ld-hand i.go::after { animation: ld-face 5s linear infinite; }
.ld-hp.them i { animation: ld-hit 5s var(--ease) infinite; }
.ld-dmg { animation: ld-pop 5s var(--ease) infinite; }
.ld-elo { animation: ld-pop 5s var(--ease) .5s infinite; }
.ls-pf i { animation: ls-note 2.4s linear calc(var(--o) + var(--d)) infinite; }
.ls-pf i::after { animation: ls-ring 2.4s linear calc(var(--o) + var(--d)) infinite; }
.ls-pf em { animation: ls-300 2.4s var(--ease) calc(var(--o) + var(--d)) infinite; }
.ls-pf b { animation: ls-cur 2.4s cubic-bezier(.45, 0, .25, 1) calc(var(--o) - 1.68s) infinite; }

/* page headers: a page's own button sits level with its title */
.view-head.row-head, .tn-head { align-items: flex-start; }
.view-head.row-head > .btn, .tn-head-acts { margin-top: 3px; }
/* tournaments: search, the stage filter (the same kind of control as every other filter) and a code */
.tn-bar input[type=search] { flex: 1 1 220px; width: auto; max-width: 340px; }
.tn-bar .seg { flex: none; }
/* a profile's buttons are one size; the admin's premium box is a proper box */
.pf-acts .btn { justify-content: center; }
.pf-admin { padding: 12px 16px; border-radius: 18px; background: rgba(255, 200, 87, .05); }

/* phones */
@media (max-width: 700px) {
  .tn-bar input[type=search] { max-width: none; flex-basis: 100%; }
  .tn-bar .seg { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tn-bar .seg::-webkit-scrollbar { display: none; }
  .tn-bar .seg-btn { flex: none; white-space: nowrap; }
  .tn-code { width: 100%; margin-left: 0; } .tn-code input { flex: 1; width: auto; min-width: 0; }
}
@media (max-width: 560px) {
  .lb-bar { flex-wrap: nowrap; gap: 8px; }
  .lb-tabs { flex: 1; min-width: 0; flex-wrap: nowrap; gap: 4px; } .lb-tab { flex: none; padding: 7px 9px; font-size: 13px; }
  .live-dot { flex: none; width: 9px; height: 9px; overflow: hidden; border-radius: 50%; background: #ff5e6b; color: transparent; font-size: 0; } /* just the dot: the room updates by itself */
  .leaderboard .lb-row { gap: 10px; padding: 10px 12px; }
  .leaderboard .lb-avatar { width: 38px; height: 38px; border-radius: 12px; }
  .leaderboard .lb-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .leaderboard .lb-sub { display: none; }
  .hub-acts { width: 100%; } .hub-acts .btn { flex: 1 1 auto; justify-content: center; }
}

/* ================= Replays (replays.js): your replays, their room, and the player's extras for them (watch.js) ================= */
.rpl-room { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: min(320px, 100%); }
.rpl-meter { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rpl-meter i { flex: 1; height: 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.rpl-meter b { display: block; height: 100%; background: var(--pink); border-radius: inherit; transition: width .3s var(--ease); }
.rpl-meter.over b { background: #ff7a7a; } .rpl-meter.over span { color: #ff9a9a; font-weight: 700; }
.rpl-warn { margin: 0; max-width: 46ch; font-size: 13px; color: #ffb3b3; text-align: right; text-wrap: pretty; }
#rpl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; } #rpl-tools:empty { display: none; }
.rpl-staronly { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); }
.rpl-staronly .i { width: 15px; height: 15px; } .rpl-staronly.active .i { fill: currentColor; }
.rpl { display: flex; align-items: center; gap: 6px; border-radius: 12px; transition: background-color .15s; }
.rpl:hover, .rpl:focus-within { background: var(--surface); }
.rpl .rp-row { flex: 1; min-width: 0; } .rpl .rp-row:hover, .rpl .rp-row:focus-visible { background: none; }
.rpl-kind { position: absolute; left: 4px; bottom: 4px; z-index: 1; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .02em; background: rgba(0, 0, 0, .7); color: #fff; }
.rpl-kind.k-ranked { color: var(--gold); } .rpl-kind.k-run { color: #8fd8ff; } .rpl-kind.k-clip { color: var(--pink); }
/* your replay's buttons, the same on every card: who may watch it (left), the star of a match replay, ⋮ (always last: a file's star place stays empty) */
.rpl-acts { display: grid; grid-template-columns: auto minmax(0, 1fr) 34px 34px; align-items: center; column-gap: 2px; padding-right: 8px; flex: none; }
.rpl-acts .rpl-vis { grid-column: 1; } .rpl-acts [data-rpl-star] { grid-column: 3; } .rpl-acts [data-rpl-menu] { grid-column: 4; }
.rpl-ib { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.rpl-ib .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rpl-ib:hover, .rpl-ib:focus-visible, .rpl-ib[aria-expanded="true"] { background: var(--panel); color: var(--text); outline: none; }
.rpl-ib.on { color: var(--gold); } .rpl-ib.on .i { fill: currentColor; }
.rpl-vis { display: inline-flex; align-items: center; gap: 6px; height: 32px; max-width: 100%; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s; }
.rpl-vis:hover, .rpl-vis[aria-expanded="true"] { background: var(--surface-2); border-color: rgba(255, 255, 255, .2); }
.rpl-vis:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.rpl-vis .i { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rpl-vis .i:last-child { width: 14px; height: 14px; color: var(--muted); transition: transform .15s var(--ease); } .rpl-vis[aria-expanded="true"] .i:last-child { transform: rotate(180deg); }
/* its menu: over everything, by its button (replays.js places it) */
.rpl-menu { position: fixed; z-index: 100; width: max-content; min-width: 200px; max-width: min(300px, calc(100vw / var(--zall, 1) - 16px)); padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); animation: popIn .16s var(--ease-dec); }
.rpl-mi { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.rpl-mi img.ab-mi-av { flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; } /* (a friend to send a replay to: watch-about.js) */
.rpl-mi:hover, .rpl-mi:focus-visible { background: var(--surface-2); outline: none; }
.rpl-mi .i { flex: none; width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.rpl-mi span { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.rpl-mi b { font-weight: 700; } .rpl-mi small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.rpl-mi[aria-checked="true"] .i { color: var(--pink); }
.rpl-mi.danger, .rpl-mi.danger .i { color: #ff8a8a; }
/* a replay not everyone may watch, on someone's channel or a friend's: marked on its picture */
.rpl-vis-chip { position: absolute; right: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 5px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.rpl-vis-chip .i { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .rpl-menu { animation: none; } .rpl-vis .i:last-child { transition: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .rpl { flex-wrap: wrap; } .rpl-acts { width: 100%; justify-content: flex-end; padding: 0 8px 8px; } .rpl-room { align-items: stretch; } .rpl-warn { text-align: left; }
  .rpl-filters { flex-wrap: nowrap; max-width: 100%; } #rpl-kind { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; } /* (the kinds in one row that slides) */
  #rpl-kind::-webkit-scrollbar { display: none; } #rpl-kind .seg-btn { flex: none; }
  .rpl-right { width: 100%; margin-left: 0; } .rpl-q { flex: 1 1 100%; min-width: 0; }
}
/* the Replays page, as a video site has it: no box around it, the tabs and a bar to find and order them over a grid of cards; your room in a
   card with the upload (with yours) */
#view-replays > .wt-panel { background: none; border: 0; border-radius: 0; padding: 0; }
.rpl-roomcard { display: flex; flex-direction: column; gap: 10px; width: min(380px, 100%); padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.rpl-roomhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .rpl-roomhead b { font-family: var(--font-head); font-size: 15px; }
.rpl-roomhead .btn { display: inline-flex; align-items: center; gap: 6px; } .rpl-roomhead .btn .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rpl-roomcard .rpl-meter { font-size: 14px; font-weight: 700; color: var(--text); } .rpl-roomcard .rpl-meter i { height: 10px; }
.rpl-roomnote { color: var(--muted); font-size: 12px; }
.rpl-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .rpl-filters:empty { display: none; }
.rpl-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.rpl-q { min-width: 270px; } .rpl-q .i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rpl-shot .rpl-grade { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 16px; background-color: rgba(0, 0, 0, .6); } /* (a file's grade: the chip every grade has) */
.rpl-sort { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background-color: var(--surface); color: var(--text); font: inherit; font-size: 14px; color-scheme: dark; cursor: pointer; }
.rpl-views .seg-btn { display: grid; place-items: center; padding: 6px 9px; } .rpl-views .i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 30px 18px; }
.rpl.rpl-card { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; min-width: 0; background: none; } /* (a long word or line cannot widen it, nor the page: not wrapped as a list's row is on a phone) */
.rpl-shot { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #241b1f; color: #fff; cursor: pointer; }
.rpl-img { position: absolute; inset: 0; background: var(--cover, none) center / cover; transition: transform .35s var(--ease); }
.rpl-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55)); transition: background-color .15s; }
.rpl-shot:hover .rpl-img, .rpl-shot:focus-visible .rpl-img { transform: scale(1.05); } .rpl-shot:hover::after { background-color: rgba(0, 0, 0, .2); }
/* a speedrun's picture (replays.js runShot): its maps' covers cut side by side on a slant (each slice's slant meets the next one's), and the
   app's speedrun timer over them as it stood at the end (its look: the player's timer, .rl-timer) */
.rpl-runs { position: absolute; inset: 0; overflow: hidden; background: #120d10; transition: transform .35s var(--ease); --sl: 26px; }
.rpl-runs i { position: absolute; top: 0; bottom: 0; left: calc(var(--k) * (100% - var(--sl)) / var(--n)); width: calc((100% - var(--sl)) / var(--n) + var(--sl)); background: #241b1f var(--cover, none) center / cover;
  clip-path: polygon(calc(var(--sl) + 2px) 0, 100% 0, calc(100% - var(--sl)) 100%, 2px 100%); }
.rpl-runs i:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%); } .rpl-runs i:last-child { clip-path: polygon(calc(var(--sl) + 2px) 0, 100% 0, 100% 100%, 2px 100%); }
.rpl-runs i:only-child { clip-path: none; }
.rpl-shot:hover .rpl-runs, .rpl-shot:focus-visible .rpl-runs { transform: scale(1.05); } .rp-thumb .rpl-runs { --sl: 10px; } .th-pv-bg .rpl-runs { --sl: 7vw; }
.rpl-rt { position: absolute; top: 50%; left: 50%; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 44%; padding: 6px 14px 7px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(21, 15, 19, .9); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); color: var(--text); transform: translate(-50%, -50%); transition: opacity .15s; pointer-events: none; }
.rpl-rt-h { font-size: 11px; font-weight: 700; white-space: nowrap; }
.rpl-rt-t { font-size: clamp(18px, 1.9vw, 26px); font-weight: 800; line-height: 1.15; color: #9be89b; font-variant-numeric: tabular-nums; }
.rpl-rt-pp { color: var(--muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; } .rpl-rt-pp b { color: var(--gold); }
.rpl-shot:hover .rpl-rt, .rpl-shot:focus-visible .rpl-rt { opacity: 0; } /* (the play button in its place) */
.rpl-shot:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.rpl-shot > .i { position: relative; z-index: 1; width: 34px; height: 34px; opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s var(--ease); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.rpl-shot:hover > .i, .rpl-shot:focus-visible > .i { opacity: 1; transform: none; }
.rpl-shot .rpl-kind { left: 8px; bottom: 8px; z-index: 2; }
.rpl-len { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, .7); font-size: 11px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
/* what a replay's picture says: a speedrun's place on its leaderboard now (top left); a replay file's info row (bottom left: its map's status, its
   pp or score, its place on its map, or what its uploader chose); 1st, 2nd and 3rd in gold, silver and bronze */
.rpl-place { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rpl-place.p1 { background: #ffd15c; color: #1a1206; } .rpl-place.p2 { background: #dfe3ea; color: #15171b; } .rpl-place.p3 { background: #e0a26b; color: #1b1009; }
.rp-thumb .rpl-place { left: 4px; top: 4px; padding: 1px 5px; font-size: 10.5px; }
.rpl-info { position: absolute; left: 8px; right: 64px; bottom: 8px; z-index: 2; display: flex; flex-wrap: wrap-reverse; align-items: flex-end; gap: 4px; pointer-events: none; }
.rpl-info > i, .rpl-info > .rpl-place { position: static; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rpl-info > .rpl-place.p1 { background: #ffd15c; color: #1a1206; } .rpl-info > .rpl-place.p2 { background: #dfe3ea; color: #15171b; } .rpl-info > .rpl-place.p3 { background: #e0a26b; color: #1b1009; }
.rpl-shot .rpl-info .rpl-kind { position: static; }
.rpl-st.st-ranked, .rpl-st.st-approved { color: #b3ff66; } .rpl-st.st-qualified { color: #66ccff; } .rpl-st.st-loved { color: var(--pink); } .rpl-st.st-pending, .rpl-st.st-wip { color: #ffd966; } .rpl-st.st-graveyard { color: #b8b0b4; }
/* a card's words: whose it is (their picture beside them, their name under the title: to their channel), what it was, how many watched it
   and when; more cards coming as the page scrolls down */
.rpl-meta { display: flex; flex: 1; gap: 12px; min-width: 0; }
.rpl-av { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.rpl-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rpl-body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px; }
.rpl-title { margin-bottom: 2px; font-size: 15px; font-weight: 700; line-height: 1.35; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rpl-chan { align-self: flex-start; max-width: 100%; overflow: hidden; color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.rpl-chan:hover { color: var(--text); } .rpl-chan:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
.rpl-by a { color: inherit; font-weight: 700; text-decoration: none; } .rpl-by a:hover { color: var(--text); text-decoration: underline; } /* (someone else's play: who put it up) */
.rpl-about, .rpl-seen { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpl-next { display: grid; place-items: center; padding: 26px 0 10px; }
.rpl-spin { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--pink); border-radius: 50%; animation: rpl-spin .8s linear infinite; }
@keyframes rpl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rpl-spin { animation-duration: 2.4s; } }
.rpl-card .rpl-acts { margin-top: auto; padding: 6px 0 0; } /* (at the card's foot: in line with the cards beside it) */
#view-replays.rpl-dropping .wt-panel { outline: 2px dashed var(--pink); outline-offset: 6px; background: color-mix(in srgb, var(--pink) 5%, transparent); }
@media (prefers-reduced-motion: reduce) { .rpl-img, .rpl-runs, .rpl-shot > .i { transition: none; } }

/* the player's board on the left (who leads; a speedrun's clock and maps), the moment between rounds, and the timeline's ticks */
.th-board { position: absolute; left: 16px; top: 50%; z-index: 1; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; width: min(240px, 26%); pointer-events: none; }
.th-board:empty { display: none; }
.tb-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .55); }
.tb-h b { font-family: var(--font-head); font-size: 22px; font-variant-numeric: tabular-nums; } .tb-h span { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.tb-r { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 6px 10px; border-radius: 9px; background: rgba(0, 0, 0, .45); font-size: 13px; }
.tb-r i { font-style: normal; color: rgba(255, 255, 255, .55); font-weight: 800; font-variant-numeric: tabular-nums; }
.tb-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c, #fff); font-weight: 700; }
/* a streamed speedrun's board (cursor-view.js runBoard): its clock coloured as it stands, its name, its maps, the record and the player's best */
.tb-run.running span, .tb-run.armed span { color: var(--gold); } .tb-run.verified span { color: #8be04b; } .tb-run.failed span { color: #ff8a94; }
.tb-rname i { color: var(--gold); } .tb-rname b { color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 700; }
.tb-lb { background: rgba(0, 0, 0, .3); } .tb-lb i { color: var(--gold); } .tb-lb.mine i { color: var(--pink); }
/* a speedrun on a Watch card (watch-live.js runBadge): its name, clock and pp on the picture, top right */
.lv-run { position: absolute; z-index: 1; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 70px); height: 20px; padding: 0 7px; border-radius: 5px; background: rgba(10, 8, 9, .78); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; white-space: nowrap; overflow: hidden; } /* (as the picture's other badges) */
.lv-run b { color: var(--gold); font-variant-numeric: tabular-nums; } .lv-run.verified b { color: #8be04b; }
.tb-r b { font-variant-numeric: tabular-nums; } .tb-r small { grid-column: 2 / 4; color: rgba(255, 255, 255, .6); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tb-r.on { background: rgba(255, 255, 255, .14); } .tb-r.past { opacity: .55; } .th-board .tb-r.on span { color: #fff; }
.tb-hp { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .55); }
.tb-hpr span { display: block; font-size: 12px; color: rgba(255, 255, 255, .75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-hpr i { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.tb-hpr b { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
.tb-hpr.t1 b { background: var(--pink); } .tb-hpr.t2 b { background: #66ccff; }
.th-moment { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 28px; border-radius: 18px; background: rgba(10, 8, 12, .78); text-align: center; pointer-events: none; animation: tmIn .3s var(--ease-dec, ease) both; }
.th-moment b { font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 30px); } .th-moment span { font-size: 15px; color: rgba(255, 255, 255, .85); } .th-moment span i { font-style: normal; color: rgba(255, 255, 255, .5); }
.th-moment small { color: rgba(255, 255, 255, .6); }
/* a speedrun replay made of its plays' replay files: its timer and maps beside the picture, its moments over it: reel.css (the same in the app) */
@keyframes tmIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); } }
.th-tick.th-mark { background: color-mix(in srgb, var(--pink) 22%, transparent); border: 1px solid color-mix(in srgb, var(--pink) 35%, transparent); animation-duration: 4s; }
.th-run { font-family: var(--font-body, inherit); font-size: .7em; font-weight: 600; color: var(--gold); margin-left: 6px; }
.wt-track { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.wt-track input[type=range] { flex: 1; }
.wt-ticks { position: absolute; left: 7px; right: 7px; top: 50%; height: 0; pointer-events: none; }
.wt-ticks i { position: absolute; top: -6px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: rgba(255, 255, 255, .55); }
/* a clip being cut (watch.js), as the app has it: its part on the timeline between two handles, and its bar over the timeline */
.wt-lane { position: absolute; left: 7px; right: 7px; top: 50%; height: 0; pointer-events: none; } /* (where the knob's middle runs) */
.wt-clip { position: absolute; top: -10px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--pink) 20%, transparent); box-shadow: inset 0 0 0 2px var(--pink); }
.wt-hd { position: absolute; top: -4px; bottom: -4px; width: 12px; padding: 0; border: 0; border-radius: 5px; background: var(--pink); box-shadow: 0 0 0 2px #050405; cursor: ew-resize; pointer-events: auto; touch-action: none; }
.wt-hd[data-hd="a"] { left: -6px; } .wt-hd[data-hd="b"] { right: -6px; }
.wt-hd::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 10px; margin: -5px 0 0 -1px; border-radius: 1px; background: rgba(26, 13, 20, .55); }
.wt-hd:hover { filter: brightness(1.1); } .wt-hd:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.th-clip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--pink) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pink) 30%, transparent); }
.th-clip-t { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; padding-left: 4px; font-size: 13.5px; font-variant-numeric: tabular-nums; } .th-clip-t .i { width: 18px; height: 18px; color: var(--pink); }
#wt-clipname { width: 190px; height: 38px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: rgba(0, 0, 0, .35); color: #fff; font: inherit; font-size: 13.5px; }
#wt-clipname::placeholder { color: rgba(255, 255, 255, .55); } #wt-clipname:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.th-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .15s, filter .15s; }
.th-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .18); } .th-btn:disabled { opacity: .6; cursor: default; }
.th-btn.main { background: var(--pink); color: var(--on-pink); } .th-btn.main:hover:not(:disabled) { background: var(--pink); filter: brightness(1.08); }
.th-btn .i { width: 18px; height: 18px; } .th-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (max-width: 760px) { #wt-clipname { flex: 1 1 100%; width: auto; } }
@media (prefers-reduced-motion: reduce) { .th-moment { animation: none; } .tb-hpr b, .rpl-meter b { transition: none; } }

/* where to watch: asked once (watch.js), then remembered */
/* a replay file carried over any page (watch.js): dropped anywhere, it plays at once (over the player too; under a question) */
.osr-drop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; background: rgba(12, 8, 10, .74); pointer-events: none; animation: fade .15s ease; }
.osr-drop[hidden] { display: none; }
.osr-drop-c { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 52px; border: 2px dashed color-mix(in srgb, var(--pink) 75%, transparent); border-radius: 26px; background: color-mix(in srgb, var(--pink) 8%, transparent); text-align: center; }
.osr-drop-c .i { width: 46px; height: 46px; color: var(--pink); }
.osr-drop-c b { font-size: 22px; } .osr-drop-c span { color: var(--muted); }
/* a speedrun's replay, from the leaderboard and the run's page */
.rb-watch { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 8px; padding: 0 0 0 2px; border: 0; border-radius: 50%; background: var(--pink); color: var(--on-pink); font-size: 10px; line-height: 1; vertical-align: middle; cursor: pointer; transition: transform .15s var(--ease), filter .15s; }
.rb-watch:hover, .rb-watch:focus-visible { transform: scale(1.12); filter: brightness(1.1); outline: none; }
.rn-head .rn-watch { margin-left: auto; align-self: center; }
/* a player's channel (profile.js): a banner with who they are, then tabs (overview, replays, speedruns, top plays) */
.chn-head { position: relative; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--panel); }
.chn-banner { position: relative; height: clamp(110px, 15vw, 200px); background: var(--cover, none) center 30% / cover, linear-gradient(120deg, color-mix(in srgb, var(--accent) 45%, #1a1216), color-mix(in srgb, var(--accent) 10%, var(--panel))); }
.chn-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .1), color-mix(in srgb, var(--panel) 92%, transparent)); }
.chn-main { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 22px; align-items: start; padding: 0 26px 16px; }
.chn-avatar { width: 128px; height: 128px; margin-top: -56px; border-radius: 28px; box-shadow: 0 0 0 5px var(--panel); }
.chn-who { padding-top: 14px; }
.chn-who h1 { margin: 0 0 6px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; overflow-wrap: anywhere; }
/* the links a player pins under their name (profiles.js): Discord, YouTube, Twitch, each its own color */
.pf-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.pf-link.discord, .pe-link.discord { --brand: #7983f5; } .pf-link.youtube, .pe-link.youtube { --brand: #ff4d4d; } .pf-link.twitch, .pe-link.twitch { --brand: #a970ff; }
.pf-link .ic, .pe-link .ic { color: var(--brand); }
.chn-who .pf-hint { margin: 6px 0 8px; }
.chn-counts { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
/* osu!bridge Plus on a profile (profile.js): its picture behind the whole page (dimmed), its own banner, the name in two colors, About */
body.pf-bg-on { background: linear-gradient(rgba(16, 11, 13, .6), rgba(16, 11, 13, .82)) fixed, var(--pf-bg) center / cover no-repeat fixed, var(--bg); }
.chn-banner.own { height: clamp(130px, 18vw, 240px); background: var(--cover) center / cover no-repeat, var(--panel); }
.chn-banner.own::after { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--panel) 88%, transparent)); }
.pf-uname.grad { background: var(--ng); -webkit-background-clip: text; background-clip: text; color: transparent; } /* (a name's colors and font: name-style.js) */
.pf-uname.nfont { font-family: var(--nf); font-size: calc(var(--nfs, 1) * 1em); } .pf-uname.grad.nfont { padding: .04em .14em; margin: -.04em -.14em; } /* (room for a script font's swashes in its colors) */
.pf-me-page { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.pf-box .pf-me-page { background: rgba(255, 255, 255, .03); }
.bb { line-height: 1.6; overflow-wrap: anywhere; }
.bb .bb-hd { margin: 10px 0 4px; font-size: 19px; } .bb .bb-c { text-align: center; } .bb a { color: var(--pink); }
.bb .bb-q, .bb .bb-box { margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.bb .bb-q { padding: 10px 14px; } .bb .bb-box summary { padding: 9px 14px; cursor: pointer; font-weight: 700; } .bb .bb-box > div { padding: 0 14px 10px; }
.bb .bb-list { margin: 6px 0; padding-left: 22px; }
.bb .bb-img { max-width: 100%; max-height: 480px; border-radius: 10px; vertical-align: middle; }
/* a Plus profile from its banner down: one dark, see-through box over its background, its pattern the player's */
.pf-box { border: 1px solid rgba(255, 255, 255, .07); background-color: rgba(14, 10, 12, .74); }
.pf-box.pat-stripes { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 10px, transparent 10px 22px); }
.pf-box.pat-tiles { background-image: repeating-conic-gradient(rgba(255, 255, 255, .045) 0 25%, transparent 0 50%); background-size: 34px 34px; }
.pf-box.pat-dots { background-image: radial-gradient(rgba(255, 255, 255, .1) 1.4px, transparent 1.7px); background-size: 18px 18px; }
.pf-box.pat-grid { background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 26px 26px; }
.pf-box.pat-waves { background-image: radial-gradient(circle at 50% 100%, transparent 10px, rgba(255, 255, 255, .05) 11px 12.5px, transparent 13.5px); background-size: 28px 14px; }
.chn.pf-box { border-radius: 24px; }
.chn.pf-box .chn-head { margin: 0; border: 0; border-radius: 23px 23px 0 0; background: none; }
.chn.pf-box .chn-banner::after { background: linear-gradient(transparent 50%, rgba(14, 10, 12, .74)); }
.chn.pf-box .chn-avatar { box-shadow: 0 0 0 5px rgba(14, 10, 12, .9); }
.chn.pf-box .chn-foot { border-bottom: 1px solid var(--line); }
.chn.pf-box > .pe, .chn.pf-box > .pf-admin { margin: 18px 20px 0; }
.chn.pf-box > .chn-box { padding: 18px 20px 4px; }
/* editing a profile: a wide panel, each part a card (Plus's marked); the Overview dragged by handles, an eye on each */
.pe { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--bg) 86%, transparent); }
.pe-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.pe-top h3 { margin: 0; font-size: 20px; } .pe-top small { color: var(--muted); font-size: 13.5px; } .pe-acts { display: flex; gap: 8px; }
.pe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "links lays" "names names" "pics pats" "about about"; gap: 14px; }
.pe-grid.free { grid-template-areas: "links locked"; }
.pe-links { grid-area: links; } .pe-names { grid-area: names; } .pe-pics { grid-area: pics; } .pe-lays { grid-area: lays; } .pe-pats { grid-area: pats; } .pe-about { grid-area: about; } .pe-locked { grid-area: locked; }
.pe-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pe-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; } .pe-h b { font-size: 15.5px; } .pe-h .pf-prem { margin-left: 0; } .pe-h small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.pe textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.pe input[type=checkbox] { width: auto; }
.pe input[type=color] { flex: none; width: 46px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: none; cursor: pointer; }
/* your name's look: big on a plate of its own; its colors (stops), the picker of the one picked, its direction, gradients ready-made, its font */
.pe-nprev { display: grid; place-items: center; min-height: 96px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.pe-nprev .pf-uname { max-width: 100%; font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; text-align: center; }
.pe-nprev .pf-uname.nfont { font-family: var(--nf); font-size: calc(var(--nfs, 1) * 34px); }
.pe-stops { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.pe-stop { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 2px solid rgba(255, 255, 255, .18); border-radius: 50%; background: var(--c); color: var(--muted); font: 700 18px/1 var(--font-body); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.pe-stop[aria-checked="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--pink); }
.pe-stop.add, .pe-stop.del { border-style: dashed; background: none; } .pe-stop.add:hover, .pe-stop.del:hover { border-color: var(--muted); color: var(--text); }
.pe-stop:focus-visible, .pe-swc:focus-visible, .pe-sv:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.pe-pick { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.pe-sv { position: relative; min-height: 132px; border-radius: 12px; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(var(--hue, 330) 100% 50%)); cursor: crosshair; touch-action: none; }
.pe-sv i { position: absolute; left: calc(var(--x, 1) * 100%); top: calc(var(--y, 0) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .45); pointer-events: none; }
.pe-pick-r { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; }
.pe-hue { width: 100%; height: 14px; margin: 4px 0; padding: 0; border: 0; border-radius: 99px; background: linear-gradient(to right, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); -webkit-appearance: none; appearance: none; cursor: pointer; }
.pe-hue::-webkit-slider-thumb { width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; background: hsl(var(--hue, 330) 100% 50%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4); -webkit-appearance: none; appearance: none; }
.pe-hue::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: hsl(var(--hue, 330) 100% 50%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.pe-hue:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.pe-hex { display: flex; align-items: center; gap: 8px; } .pe-hex-c { flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: var(--c); }
.pe-hex input { flex: 1; min-width: 0; padding: 7px 10px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.pe-sw { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pe-swc { aspect-ratio: 1; padding: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: var(--c); cursor: pointer; } .pe-swc:hover { border-color: #fff; }
.pe-ang { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; } .pe-ang output { min-width: 4ch; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; } .pe-ang input:disabled { opacity: .4; cursor: default; }
.pe-nsub { margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pe-nbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 22px; } .pe-ncol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pe-presets, .pe-fonts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pe-pats .pe-pat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* (beside the pictures: 3 by 2) */
@media (max-width: 900px) { .pe-nbody { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .pe-presets, .pe-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pe-preset-v { height: 24px; border-radius: 8px; }
.pe-font-v { overflow: hidden; padding: 0 2px; color: var(--text); line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.pe-names.off :is(.pe-stops, .pe-pick, .pe-ang) { opacity: .5; } /* (not in your colors: what they would be, dimmed; picking one puts them on) */
@media (max-width: 700px) { .pe-pick { grid-template-columns: minmax(0, 1fr); } }
.pe-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pe-link { display: grid; grid-template-columns: 20px 66px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pe-link .ic { width: 20px; height: 20px; }
.pe-switch { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.pe-pic { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px; border: 1px dashed transparent; border-radius: 14px; transition: border-color .15s, background-color .15s; }
.pe-pic.over { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 8%, transparent); }
.pe-pic-v { display: grid; place-items: center; height: 76px; border: 1px solid var(--line); border-radius: 12px; background: var(--img) center / cover no-repeat, var(--surface-2); }
.pe-pic.none .pe-pic-v { background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 6px, var(--surface-2) 6px, var(--surface-2) 12px); }
.pe-pic-v small { padding: 4px; color: var(--muted); font-size: 11.5px; text-align: center; }
.pe-pic-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .pe-pic-t small { color: var(--muted); font-size: 12.5px; } .pe-pic-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pe-lay { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pe-lay li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: box-shadow .15s, border-color .15s; }
.pe-lay li.dragging { position: relative; z-index: 1; border-color: color-mix(in srgb, var(--pink) 60%, transparent); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.pe-lay-n { font-weight: 600; } .pe-lay li.off .pe-lay-n { color: var(--muted); text-decoration: line-through; }
.pe-drag, .pe-eye { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--muted); }
.pe-drag { cursor: grab; touch-action: none; } .pe-lay li.dragging .pe-drag { cursor: grabbing; } .pe-eye { cursor: pointer; }
.pe-drag:hover, .pe-eye:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.pe-drag:focus-visible, .pe-eye:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.pe-drag .i, .pe-eye .i { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .pe-drag .i circle { fill: currentColor; stroke: none; }
.pe-lay li:not(.off) .pe-eye { color: var(--pink); }
.pe-pat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pe-pat { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; border: 1px solid var(--line); border-radius: 14px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s; }
.pe-pat .pf-box { height: 52px; border-radius: 10px; } .pe-pat:hover { color: var(--text); }
.pe-pat[aria-checked="true"] { border-color: var(--pink); color: var(--text); } .pe-pat:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.pe-about-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bb-t { padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s; }
.bb-t:hover { border-color: color-mix(in srgb, var(--pink) 55%, transparent); } .bb-t:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
#pf-me { min-height: 240px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }
.pf-me-prev { min-height: 240px; max-height: 520px; overflow-y: auto; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.pe-locked p { margin: 0; color: var(--muted); line-height: 1.5; } .pe-locked .btn { align-self: flex-start; }
@media (max-width: 860px) {
  .pe-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "links" "names" "pics" "lays" "pats" "about"; } .pe-grid.free { grid-template-areas: "links" "locked"; }
  .pe-about-2 { grid-template-columns: minmax(0, 1fr); } .chn.pf-box > .chn-box { padding: 14px 14px 2px; } .chn.pf-box > .pe, .chn.pf-box > .pf-admin { margin: 14px 14px 0; }
}
@media (prefers-reduced-motion: reduce) { .pe-lay li, .pe-pic, .pe-pat { transition: none; } }
.chn-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 18px; }
/* a profile's buttons (profile.js friendButtons): an icon each, in one row; Friends' people in the online green; Report a small flag, red when pointed at */
.chn-acts .pf-fb { gap: 7px; } .chn-acts .pf-fr .ic { color: #5dd68a; }
.chn-acts .pf-report { align-self: stretch; aspect-ratio: 1; justify-content: center; padding: 0; color: var(--muted); } .chn-acts .pf-report:hover, .chn-acts .pf-report:focus-visible { color: #ff8a94; background: color-mix(in srgb, #ff5d6c 14%, var(--surface-2)); }
.chn-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 12px 26px 14px; border-top: 1px solid var(--line); }
.chn-foot .pf-rank { margin: 0; }
.chn-foot .pf-stats { align-items: center; }
.chn-tabs { margin: 0 0 18px; }
.chn-sec { margin: 0 0 28px; }
.chn-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.chn-sh .sub { margin: 0; }
.chn-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
@media (max-width: 720px) {
  .chn-main { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 0 16px 14px; }
  .chn-acts { justify-content: center; padding-top: 12px; }
  .chn-foot { justify-content: center; padding: 12px 16px; }
  .chn-foot .pf-rank, .chn-foot .pf-stats { justify-content: center; }
  .chn-who .pf-links { justify-content: center; }
}
/* a player's profile (profile.js): them live, a band over its tabs while they play; Replays' order and Manage beside it */
.cn-live { margin-bottom: 22px; }
.cn-live-in { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid rgba(229, 25, 75, .45); border-radius: 14px; background: linear-gradient(90deg, rgba(229, 25, 75, .14), transparent 60%), var(--panel); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cn-live-in:hover { border-color: #e5194b; } .cn-live-in:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; } .cn-live-in .lv-badge { position: static; }
.cn-live-t { display: flex; flex: 1; flex-direction: column; min-width: 0; } .cn-live-t span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cn-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
/* a replay's page (watch-about.js): the preview over the picture before it plays, and About beside it (where View and the chat go) */
.th.about-on { --chatw: 340px; }
.th-about { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 340px; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; background: #151012; border-left: 1px solid rgba(255, 255, 255, .07); color: var(--text);
  transform: translateX(100%); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.th.about-on .th-about { transform: none; opacity: 1; pointer-events: auto; }
.ab-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; margin: 0 -6px; padding: 0 6px 4px; }
.ab-title { font-family: var(--font-head); font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.ab-map { color: var(--text); } a.ab-map:hover { color: var(--pink); } .ab-stars { color: var(--gold); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ab-stars .i { width: 1em; height: 1em; margin-right: 1px; vertical-align: -.12em; stroke-width: 2.6; } .ab-stars.up .i { color: #ff7a7a; } .ab-stars.down .i { color: #8fd8ff; } /* (the play's mods: harder, easier) */
.ab-people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .ab-people .btn { margin-left: auto; }
.ab-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); font-size: 13.5px; }
.ab-who img { flex: none; width: 26px; height: 26px; border-radius: 8px; object-fit: cover; background: var(--surface-2); } .ab-who.big img { width: 34px; height: 34px; border-radius: 10px; }
.ab-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ab-who:hover b { color: var(--pink); }
.ab-by { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; } .ab-by .ab-who { font-size: 12.5px; } .ab-by .ab-who img { width: 20px; height: 20px; border-radius: 6px; } /* (someone else's play: who put it up) */
.ab-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ab-act .i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-act b { font-variant-numeric: tabular-nums; } .ab-act:hover { border-color: color-mix(in srgb, var(--pink) 55%, transparent); } .ab-act.ro { cursor: default; } .ab-act.ro:hover { border-color: var(--line); }
.ab-act.on { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); } .ab-act.on .i { fill: currentColor; }
.ab-act:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.ab-desc { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 13.5px; line-height: 1.5; } .ab-desc p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; } .ab-desc .vx-link { margin-top: 6px; }
.ab-desc-edit textarea, .ab-say textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; resize: vertical; }
.ab-row { display: flex; gap: 8px; margin-top: 8px; }
.ab-sec h4 { margin: 0 0 10px; font-family: var(--font-head); font-size: 14.5px; }
.ab-score { display: flex; align-items: center; gap: 12px; } .ab-score .wt-grade { font-size: 26px; }
.ab-big { display: flex; flex-direction: column; } .ab-big b { font-family: var(--font-head); font-size: 22px; font-variant-numeric: tabular-nums; } .ab-big span { color: var(--muted); font-size: 13px; }
.ab-hits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.ab-hits span { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; background: rgba(255, 255, 255, .04); } .ab-hits b { font-size: 15px; font-variant-numeric: tabular-nums; } .ab-hits small { font-size: 11px; font-weight: 700; opacity: .8; }
.ab-hits .h3 { color: #66ccff; } .ab-hits .h1 { color: #8be04b; } .ab-hits .h5 { color: #ffc857; } .ab-hits .hx { color: #ff5d6c; }
.ab-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13px; } .ab-dl dt { color: var(--muted); } .ab-dl dd { margin: 0; overflow-wrap: anywhere; }
.ab-dl .up { color: #9be08b; font-weight: 700; } .ab-dl .down { color: #ff9aa8; font-weight: 700; } /* (the rank and pp then: what the play gained, as the app's stats colour a change) */
/* the comments, as YouTube's (watch-about.js): each with its replies, likes, the creator's heart and name marked, one pinned on top; times in them link to that moment */
.ab-say { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; } .ab-say.reply { margin: 10px 0 0; }
.ab-say-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; } .ab-say-row .ab-at { margin-right: auto; font-variant-numeric: tabular-nums; }
.ab-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .ab-sec-h h4 { margin: 0; }
.ab-sort { display: inline-flex; gap: 2px; padding: 2px; border-radius: 99px; background: var(--surface); }
.ab-sort button { height: 26px; padding: 0 10px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; } .ab-sort button.on { background: var(--surface-2); color: var(--text); }
.ab-sort button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.ab-comments, .ab-replies { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; } .ab-replies { gap: 10px; margin-top: 8px; }
.ab-c { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; } .ab-c.reply { grid-template-columns: 26px minmax(0, 1fr); }
.ab-pin { display: flex; grid-column: 1 / -1; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--muted); font-size: 12px; } .ab-pin .i { width: 14px; height: 14px; }
.ab-c-av img { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); object-fit: cover; } .ab-c.reply .ab-c-av img { width: 26px; height: 26px; }
.ab-c-main { min-width: 0; }
.ab-c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.ab-c-name { color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; } .ab-c-name:hover { color: var(--pink); }
.ab-c-name.creator { padding: 1px 8px; border-radius: 99px; background: var(--surface-2); } /* (the replay's own player: their name marked, as YouTube does) */
.ab-c-badge { padding: 0 6px; border-radius: 5px; background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); font-size: 10.5px; font-style: normal; font-weight: 800; line-height: 17px; }
.ab-c-body { margin: 3px 0 2px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ab-ts { padding: 0; border: 0; background: none; color: #6cb6ff; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; } .ab-ts:hover { text-decoration: underline; }
.ab-ts:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; border-radius: 3px; }
.ab-c-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: -8px; }
.ab-c-like, .ab-c-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.ab-c-like:hover, .ab-c-btn:hover { background: rgba(255, 255, 255, .06); color: var(--text); } .ab-c-like:focus-visible, .ab-c-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.ab-c-like .i, .ab-c-btn .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-c-like b { font-variant-numeric: tabular-nums; } .ab-c-like.on { color: var(--pink); } .ab-c-like.on .i { fill: currentColor; fill-opacity: .25; }
.ab-c-btn.on { color: #ff4d7a; }
.ab-c-heart { position: relative; display: inline-flex; flex: none; width: 22px; height: 22px; margin: 0 6px 0 4px; } .ab-c-heart img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ab-c-heart .i { position: absolute; right: -6px; bottom: -4px; width: 13px; height: 13px; color: #ff3d6e; stroke: none; filter: drop-shadow(0 0 1px #151012); }
.ab-more { display: inline-flex; align-items: center; height: 28px; margin: 2px 0 0 -8px; padding: 0 10px; border: 0; border-radius: 99px; background: none; color: #6cb6ff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; } .ab-more:hover { background: rgba(108, 182, 255, .12); }
@media (prefers-reduced-motion: reduce) { .ab-c-like, .ab-c-btn { transition: none; } }
.ab-when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ab-del { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; } .ab-del:hover { color: #ff7a7a; background: rgba(255, 255, 255, .06); }
.ab-del .i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.th-preview { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; transition: opacity .25s var(--ease), visibility .25s; }
.th-preview.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.th-pv-bg { position: absolute; inset: 0; background: var(--cover, none) center / cover, #0d0a0f; filter: blur(2px) brightness(.42); } /* (the map's whole background, as the player draws it: no bigger) */
.th-pv { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(620px, 100%); text-align: center; }
.th-pv-title { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; } .th-pv-title .ab-map { color: #fff; } .th-pv-title .ab-stars { font-size: .55em; }
.th-pv-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; } .th-pv-who .ab-who { color: #fff; }
.th-pv-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: rgba(255, 255, 255, .85); font-size: 14.5px; } .th-pv-line .wt-grade { font-size: 20px; }
.th-pv-soc { display: flex; gap: 16px; color: rgba(255, 255, 255, .72); font-size: 13.5px; font-variant-numeric: tabular-nums; } .th-pv-soc span { display: inline-flex; align-items: center; gap: 5px; }
.th-pv-soc .i, .th-pv-acts .i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.th-pv-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; } .th-pv-acts .btn { display: inline-flex; align-items: center; gap: 8px; }
.th-pv-go { padding: 12px 26px; font-size: 16px; } .th-pv-go .i { fill: currentColor; stroke: none; }
/* what to watch next, at the end of a replay (watch-next.js): the Replays page's cards over its picture, dimmed as the preview has it; the
   player's bars stay over it */
.th-next { position: absolute; inset: 0; z-index: 2; animation: thIn .3s var(--ease-dec); }
.th-next .th-pv-bg { filter: blur(10px) brightness(.24); } /* (darker than the preview's: cards to read over it) */
.th-nx { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 88px clamp(16px, 4vw, 56px) 150px; }
.th-nx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1400px; margin: 0 auto 18px; }
.th-nx-head h3 { margin: 0; font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 28px); }
.th-nx-acts { display: flex; align-items: center; gap: 8px; } .th-nx-acts .btn { display: inline-flex; align-items: center; gap: 7px; }
.th-nx-acts .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.th-nx .rpl-grid { max-width: 1400px; margin: 0 auto; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 24px 16px; }
/* Autoplay (the player's settings): the first one counted down on its picture */
.th-nx-auto { color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; } .th-nx-auto b { color: var(--text); font-variant-numeric: tabular-nums; }
.nx-up .rpl-shot { box-shadow: 0 0 0 3px var(--pink); }
.nx-up .rpl-shot::before { content: ""; position: absolute; left: 0; bottom: 0; z-index: 3; width: 100%; height: 4px; background: var(--pink); transform-origin: left; animation: nxUp var(--nx-s, 8s) linear both; }
@keyframes nxUp { from { transform: scaleX(0); } }
/* a replay's settings (the gear, watch.js): Autoplay, Loop, its speed, the ways to View and the keys; and the keys themselves (?) */
.th-set { position: absolute; right: calc(var(--chatw, 0px) + 16px); bottom: 78px; z-index: 5; display: flex; flex-direction: column; gap: 2px; width: min(330px, calc(100% - 32px)); padding: 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  background: rgba(21, 15, 19, .97); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: var(--text); animation: setIn .16s var(--ease-dec, ease) both; }
@keyframes setIn { from { opacity: 0; transform: translateY(6px); } }
.th-set-h { display: flex; align-items: center; justify-content: space-between; padding: 0 0 4px 10px; } .th-set-h b { font-family: var(--font-head); font-size: 15px; }
.th-set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.th-set-row:hover { background: rgba(255, 255, 255, .06); } .th-set-row:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.th-set-row > span { display: flex; flex-direction: column; min-width: 0; } .th-set-row small { color: var(--muted); font-size: 12px; }
.th-set-row.col { flex-direction: column; align-items: stretch; gap: 8px; cursor: default; } .th-set-row.col:hover { background: none; }
.th-set-row.link { justify-content: flex-start; } .th-set-row.link > span { flex: 1; } .th-set-row.link .i { width: 18px; height: 18px; color: var(--muted); }
.th-set-speeds { display: flex; flex-wrap: wrap; gap: 4px; }
.th-set-speeds button { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.th-set-speeds button.on { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); } .th-set-speeds button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.th-set kbd, .th-keys kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border: 1px solid rgba(255, 255, 255, .16); border-bottom-width: 2px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #fff; font: 700 12px var(--font-body, inherit); }
.th-keys { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 5, .62); animation: fade .15s ease; }
.th-keys-in { width: min(520px, 100%); max-height: 100%; overflow-y: auto; padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(21, 15, 19, .97); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: var(--text); }
.th-keys dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 8px 6px 0; } .th-keys dt { display: flex; align-items: center; gap: 4px; } .th-keys dt span { color: var(--muted); }
.th-keys dd { align-self: center; margin: 0; color: #d8cbc3; font-size: 13.5px; }
@media (max-width: 640px) { .th-speed { display: none; } .th-set { left: 0; right: 0; bottom: 0; width: auto; padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; } } /* (a phone: the speed in the gear's sheet) */
@media (prefers-reduced-motion: reduce) { .th-set, .th-keys { animation: none; } .nx-up .rpl-shot::before { animation-timing-function: steps(var(--nx-n, 20), end); } } /* (the countdown's bar: a step a second) */
@media (prefers-reduced-motion: reduce) { .th-next { animation: none; } }
@media (max-width: 900px) { .th.about-on { --chatw: 0px; } .th-about { width: min(340px, calc(88vw / var(--zall, 1))); box-shadow: -20px 0 40px rgba(0, 0, 0, .5); } }
@media (max-width: 640px) { .th-about, .th-view { top: auto; left: 0; right: 0; width: auto; max-height: 70vh; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 40px rgba(0, 0, 0, .5); transform: translateY(100%); } } /* (a phone held upright: About and View come up from the bottom, the picture above them) */
@media (prefers-reduced-motion: reduce) { .th-about, .th-preview, .ab-act { transition: none; } }
.ab-mapcard { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); isolation: isolate; }
.ab-mapcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21, 16, 18, .94), rgba(21, 16, 18, .7)), var(--cover, none) center / cover; }
.ab-mapcard > b { color: var(--text); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; } .ab-mapcard span b { color: var(--text); }
.ab-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* the Watch page, seamless: its filters as chips (Everyone first), the cards on the page itself, big, each its own picture (watch-live.js) */
.wt-head { align-items: center; gap: 14px 18px; flex-wrap: wrap; } .wt-head h1 { margin: 0; } .wt-gear { margin-left: auto; padding: 9px 11px; }
.wt-tabs.wt-filters { gap: 8px; margin: 0 0 18px; padding: 2px; border-bottom: 0; flex-wrap: wrap; overflow: visible; } .wt-head .wt-filters { margin: 0; }
.wt-filters .wt-tab { padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; transition: background-color .2s, color .2s; }
.wt-filters .wt-tab:hover { background: var(--line); } .wt-filters .wt-tab.on { background: var(--pink); color: var(--on-pink); } .wt-filters .wt-tab::after { display: none; }
.wt-filters .wt-tab.on .lv-count { background: rgba(0, 0, 0, .2); color: inherit; }
.wt-flat { margin-bottom: 16px; }
.lv-grid.big { grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(300px, 26vw, 560px)), 1fr)); gap: 28px 18px; }
.lv-grid.big .lv-title { font-size: 16px; }

/* the Speedrun page as the app has it (hub.css): the goals in a list, the one picked beside it; its tiles */
.rs-pick { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.rs-goals { display: flex; flex-direction: column; gap: 0; padding: 4px 0; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; } /* (rows, a line between them, as the leaderboard's) */
.rs-gh, .rs-goal { display: grid; grid-template-columns: minmax(0, 1fr) 84px 40px; align-items: center; gap: 8px; }
.rs-gh { padding: 12px 16px 6px; } .rs-gh:first-child { padding-top: 6px; } .rs-gh b { font-size: 12.5px; font-weight: 700; color: var(--muted); } .rs-gh small { font-size: 11px; font-weight: 600; color: var(--muted); text-align: right; }
.rs-goal { width: 100%; padding: 9px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s; }
.rs-goal:hover { background: var(--surface); } .rs-goal.on { background: color-mix(in srgb, var(--pink) 14%, transparent); } .rs-goal.on .rs-gname { color: var(--pink); }
.rs-goal:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.rs-gname { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; } .rs-gname small { color: var(--muted); font-size: 11px; font-weight: 600; }
.rs-grec { color: var(--muted); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .rs-gme { color: var(--gold); font-size: 12.5px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.rs-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.rs-dhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; } .rs-dhead .rs-variant { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 0; }
.rs-dname { margin: 0; font-family: var(--font-head); font-size: 32px; line-height: 1.05; letter-spacing: -.02em; color: var(--text); } .rs-ddesc { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.st-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.st-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.st-l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.st-v { font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-s { margin-top: -2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the goal's numbers (its record, your best, a typical run, how many race it): rows, as the leaderboard's */
.rs-facts { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.rs-fact { display: grid; grid-template-columns: minmax(110px, 160px) minmax(84px, auto) minmax(0, 1fr); align-items: baseline; gap: 4px 16px; padding: 10px 16px; font-variant-numeric: tabular-nums; }
.rs-fact + .rs-fact { border-top: 1px solid var(--line); }
.rs-fl { color: var(--muted); font-size: 13.5px; font-weight: 600; } .rs-fv { font-size: 16px; font-weight: 800; } .rs-fs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.rs-fact[data-run] { cursor: pointer; } .rs-fact[data-run]:hover { background: color-mix(in srgb, var(--pink) 8%, transparent); } .rs-fact[data-run]:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
@media (max-width: 560px) { .rs-fact { grid-template-columns: minmax(0, 1fr) auto; } .rs-fs { grid-column: 1 / -1; white-space: normal; } }
/* a phone: the goals, then one opened on its own; back, or the one before or after */
.rs-mnav { display: none; }
@media (max-width: 640px) {
  .rs-pick.rs-open #runs-chips, .rs-pick:not(.rs-open) .rs-detail { display: none; }
  .rs-mnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 -2px; }
  .rs-mnav .btn { display: inline-flex; align-items: center; gap: 4px; padding-left: 8px; } .rs-mnav svg { width: 18px; height: 18px; }
  .rs-mstep { display: flex; gap: 6px; }
  .rs-arrow { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
  .rs-arrow:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
}
.rs-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; } .rs-hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.runs-bar { margin: 0; }
@media (max-width: 1050px) { /* (narrow: the goals in columns above it) */
  .rs-pick { grid-template-columns: minmax(0, 1fr); } .rs-dhead .rs-variant { align-items: flex-start; }
  .rs-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 6px; } .rs-gh { grid-column: 1 / -1; } .rs-gh small { display: none; } .rs-goal { grid-template-columns: minmax(0, 1fr) auto auto; } }
/* the admin panel: ranked rules (a grid of numbers, a tier star range each) */
.rr-body { display: flex; flex-direction: column; gap: 12px; } .rr-body h4 { margin: 4px 0 0; font-size: 14px; }
.rr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.rr-f { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; } .rr-f input[type=number] { width: 100%; }
.rr-sw { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; color: var(--text); font-size: 13.5px; } .rr-sw input { width: auto; }
.rr-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 14px; }
.rr-t { display: grid; grid-template-columns: 96px 1fr auto 1fr; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; } .rr-t input { min-width: 0; }
/* tournaments in card mode: the match's HP, damage multipliers and hands as the app's ranked arena (osu-tracker-app/ui/hub.css .rk-*) */
.tn-cm { display: flex; flex-direction: column; gap: 12px; } .tn-cm > .tn-status { margin: 0; } .tn-cm > .tn-acts { margin-top: 0; }
.rk-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.rk-vs { font-family: var(--font-head); font-weight: 800; color: var(--muted); }
.rk-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .rk-side.them { align-items: flex-end; text-align: right; }
.rk-sn { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .rk-side.them .rk-sn { justify-content: flex-end; }
.rk-hp { position: relative; align-self: stretch; height: 26px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.rk-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #8be04b, #c8f06b); transition: width .8s var(--ease); }
.rk-side.them .rk-hp i { inset: 0 0 0 auto; background: linear-gradient(270deg, #ff6f8f, #ff9a6b); }
.rk-hp span { position: relative; z-index: 1; display: block; padding: 3px 10px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .5); }
.rk-side.them .rk-hp span { text-align: right; }
.rk-mult { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.rk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rk-cardmap { position: relative; display: flex; flex-direction: column; gap: 3px; justify-content: flex-end; min-height: 128px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(21, 15, 19, .15), rgba(21, 15, 19, .92) 70%), var(--cover) center / cover, var(--surface); transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; }
.rk-cardmap b { font-size: 13.5px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rk-cardmap small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-cm-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; }
.rk-cm-st, .rk-cm-len { font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 8px; background: rgba(21, 15, 19, .8); }
.rk-cm-st { color: var(--gold); }
.rk-cardmap.can { cursor: pointer; } .rk-cardmap.can:hover, .rk-cardmap.can:focus-visible { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 10px 26px color-mix(in srgb, var(--pink) 25%, transparent); outline: none; }
.rk-cm-pick { position: absolute; right: 8px; bottom: 8px; font-size: 11.5px; font-weight: 800; color: var(--on-pink); background: var(--pink); border-radius: 8px; padding: 2px 8px; opacity: 0; transition: opacity .15s; }
.rk-cardmap.can:hover .rk-cm-pick, .rk-cardmap.can:focus-visible .rk-cm-pick { opacity: 1; }
.rk-cardmap.out { opacity: .5; border-color: #ff5d6c; filter: grayscale(.6); } .rk-cardmap.out .rk-cm-pick { opacity: 1; background: #ff5d6c; }
.rk-hand-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.rk-their { display: inline-flex; align-items: center; gap: 8px; } .rk-backs { display: inline-flex; }
.rk-back { width: 18px; height: 26px; margin-left: -6px; border: 1px solid var(--line); border-radius: 4px; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 3px, var(--panel) 3px, var(--panel) 6px); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.rk-back:first-child { margin-left: 0; }
.rk-deal { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-rounds { display: flex; flex-direction: column; gap: 4px; }
.rk-rd { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; background: var(--surface); font-size: 13.5px; }
.rk-rd b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rk-rd i { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; } .rk-rd.w i { color: var(--accent); } .rk-rd.l i { color: #ff8a9a; }
@media (max-width: 760px) { .rk-sides { grid-template-columns: 1fr; gap: 10px; } .rk-vs { display: none; } .rk-side.them { align-items: flex-start; text-align: left; } .rk-side.them .rk-sn { justify-content: flex-start; } .rk-side.them .rk-hp span { text-align: left; } .rk-side.them .rk-hp i { inset: 0 auto 0 0; background: linear-gradient(90deg, #ff6f8f, #ff9a6b); } .rk-cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } .rk-cardmap { min-height: 104px; } }
@media (prefers-reduced-motion: reduce) { .rk-cardmap.can:hover, .rk-cardmap.can:focus-visible { transform: none; } }
/* the manager: a card match's rules or a best-of's, as chosen */
.tn-form[data-match="cards"] .tn-ob, .tn-form[data-match="bestof"] .tn-oc { display: none; }
/* the pool editor: a section for the qualifiers, for every round and for each round (a star range, Fill), its maps (mods, round, remove), add by link */
.tn-pe-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .tn-pe-h .btn { margin-left: auto; } .tn-pe-h .btn:disabled { opacity: .5; cursor: default; }
.tn-pe-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tn-pe-sec header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.tn-pe-name { display: flex; align-items: baseline; gap: 10px; } .tn-pe-name b { font-size: 15px; }
.tn-pe-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tn-pe-range, .tn-pe-fill { display: inline-flex; align-items: center; gap: 6px; } .tn-pe-range { color: var(--gold); font-weight: 800; }
.tn-pe-range input { width: 76px; } .tn-pe-fill input { width: 64px; }
.tn-pe-hint { margin: 6px 0 0; }
.tn-pe-map { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.tn-pe-t { display: flex; flex-direction: column; min-width: 0; } .tn-pe-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-pe-ctl { display: flex; align-items: center; gap: 6px; } .tn-pe-mods { width: 92px; padding: 7px 10px; }
.tn-pe select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; font: inherit; max-width: 160px; }
.tn-pe-empty { padding: 8px 4px; margin: 0; }
.tn-pe-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; } .tn-pe-add input { padding: 8px 11px; }
.tn-pe-add input[name="beatmap_id"] { flex: 1 1 220px; width: auto; } .tn-pe-add input[name="mods"] { width: 130px; } .tn-pe-add input[name="slot"] { width: 110px; }
.tn-pe-add label.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); } .tn-pe-add label.chk input { width: 18px; height: 18px; padding: 0; accent-color: var(--pink); }
@media (max-width: 640px) { .tn-pe-map { grid-template-columns: 44px minmax(0, 1fr); } .tn-pe-ctl { grid-column: 1 / -1; } .tn-pe-mods { width: 78px; padding: 7px 8px; } .tn-pe-ctl select { flex: 1; min-width: 0; max-width: none; } .tn-pe-tools { width: 100%; } .tn-pe-h .btn { margin-left: 0; } }
/* the Watch page between a card match's plays (live: watch.js drawTable): whose turn it is (the hands face down), the card played, the
   ready check (the timer starts once both have the map on), the countdown; over the picture */
.th-table { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 4% 6%; text-align: center; color: var(--text);
  background: radial-gradient(120% 90% at 50% 50%, rgba(14, 9, 12, .55), rgba(14, 9, 12, .9)); }
.th-table[hidden] { display: none; }
.th-table .tt-k { color: var(--pink); font-weight: 800; font-size: 14px; }
.th-table > b { font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 34px); line-height: 1.15; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.th-table .tt-hp { width: min(620px, 100%); margin-top: 6px; text-align: left; }
.th-table .rk-backs.big { margin: 6px 0; } .th-table .rk-backs.big .rk-back { width: 34px; height: 48px; margin-left: -12px; border-radius: 6px; animation: tt-sway 2.4s ease-in-out infinite; }
.th-table .rk-backs.big .rk-back:first-child { margin-left: 0; }
.th-table .rk-backs.big .rk-back:nth-child(2) { animation-delay: .15s; } .th-table .rk-backs.big .rk-back:nth-child(3) { animation-delay: .3s; } .th-table .rk-backs.big .rk-back:nth-child(4) { animation-delay: .45s; } .th-table .rk-backs.big .rk-back:nth-child(5) { animation-delay: .6s; }
@keyframes tt-sway { 50% { transform: translateY(-7px) rotate(-2deg); } }
.th-table .tt-clock { font-size: 22px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.th-table .tt-card { width: min(260px, 70%); min-height: 176px; text-align: left; animation: tt-flip .7s var(--ease-dec) both; border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 18px 50px color-mix(in srgb, var(--pink) 30%, transparent); }
@keyframes tt-flip { from { transform: perspective(900px) rotateY(-95deg) scale(.85); opacity: 0; } }
.th-table .tt-rdy { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.th-table .tt-rdy span { padding: 6px 13px; border-radius: 999px; background: rgba(37, 27, 32, .9); border: 1px solid var(--line); font-size: 14px; }
.th-table .tt-rdy span.ok { border-color: rgba(166, 233, 107, .65); color: var(--accent); }
.th-table .tt-note { color: var(--muted); }
.th-table .tt-cd { font-family: var(--font-head); font-size: clamp(56px, 9vw, 120px); line-height: 1; color: var(--pink); }
/* the home page's replay explainer (home-tour.js): a picture of the site at work (always dark, as the game is), its three steps beside it */
.l-tour-wrap { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 26px 32px; align-items: center; margin: 4px 0 30px; }
.l-tour { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #2a1823, #0d0a0c 70%); border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(0, 0, 0, .35); color: #f8efe8; isolation: isolate; }
.tt-stage { position: absolute; inset: 0; }
.tt-scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.l-tour[data-scene="drop"] .tt-drop, .l-tour[data-scene="fetch"] .tt-fetch, .l-tour[data-scene="play"] .tt-play { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
/* 1: the file onto the page */
.tt-win { width: 74%; border-radius: 16px; overflow: hidden; background: #1a1216; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.tt-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #241920; } .tt-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.tt-bar span { margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 12px; color: #bcaea6; }
.tt-zone { margin: 18px; height: clamp(110px, 18vw, 190px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed rgba(255, 111, 169, .45); border-radius: 16px; color: #bcaea6; }
.tt-zone .ic { width: 34px; height: 34px; color: #ff6fa9; } .tt-zone b { font-size: clamp(13px, 1.3vw, 16px); }
.l-tour[data-scene="drop"] .tt-zone { animation: tt-glow 2.8s var(--ease) both; }
@keyframes tt-glow { 0%, 55% { background: transparent; border-color: rgba(255, 111, 169, .45); } 72% { background: rgba(255, 111, 169, .16); border-color: #ff6fa9; } 100% { background: rgba(255, 111, 169, .08); border-color: #ff6fa9; } }
.tt-file { position: absolute; left: 50%; top: 52%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #2b1d25; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); max-width: 64%; transform: translate(-50%, -50%); }
.tt-fi { flex: none; display: grid; place-items: center; width: 38px; height: 46px; border-radius: 7px; background: #ff6fa9; color: #2a0a1a; font-weight: 900; font-size: 12px; }
.tt-fn { font-size: clamp(11px, 1.05vw, 14px); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-cur { position: absolute; left: 50%; top: 52%; width: 26px; height: 26px; fill: #fff; stroke: #1a0d14; stroke-width: 1.5; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.l-tour[data-scene="drop"] .tt-file { animation: tt-fly 2.8s cubic-bezier(.22, .9, .3, 1) both; }
.l-tour[data-scene="drop"] .tt-cur { animation: tt-fly-cur 2.8s cubic-bezier(.22, .9, .3, 1) both; }
@keyframes tt-fly { 0% { transform: translate(-150%, 120%) rotate(-10deg); opacity: 0; } 12% { opacity: 1; } 62% { transform: translate(-50%, -50%) rotate(0); } 70% { transform: translate(-50%, -50%) scale(.94); } 82%, 100% { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
@keyframes tt-fly-cur { 0% { transform: translate(-90%, 240%); opacity: 0; } 12% { opacity: 1; } 62% { transform: translate(40%, 30%); } 100% { transform: translate(40%, 30%); opacity: 1; } }
/* 2: what the server gets, and the clock */
.tt-fetch { align-content: center; gap: 14px; padding: 6%; }
.tt-clock { justify-self: center; font-family: var(--font-head); font-size: clamp(28px, 4.2vw, 54px); font-weight: 800; font-variant-numeric: tabular-nums; color: #ff6fa9; letter-spacing: -.02em; }
.tt-clock.done { animation: tt-tick .5s var(--ease-dec); } @keyframes tt-tick { 40% { transform: scale(1.08); } }
.tt-rows { list-style: none; margin: 0; padding: 0; width: min(560px, 100%); display: flex; flex-direction: column; gap: 8px; }
.tt-rows li { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 13px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07);
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s; font-size: clamp(12px, 1.1vw, 15px); }
.tt-rows li.in { opacity: 1; transform: none; } .tt-rows li.ok { border-color: rgba(166, 233, 107, .35); }
.tt-rows li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #ff6fa9; animation: tt-spin .8s linear infinite; }
.tt-rows li.ok i { border: 0; background: #a6e96b; animation: none; display: grid; place-items: center; } .tt-rows li.ok i::after { content: "\2713"; font-style: normal; font-size: 12px; font-weight: 900; color: #10230a; }
@keyframes tt-spin { to { transform: rotate(1turn); } }
.tt-rows li span { font-weight: 700; white-space: nowrap; } .tt-rows li small { color: #bcaea6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tt-rows li b { color: #a6e96b; font-variant-numeric: tabular-nums; }
/* 3: the replay, its look changing */
.tt-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tt-view { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); width: min(30%, 230px); display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 14px; background: rgba(18, 12, 15, .72); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: clamp(11px, .95vw, 13.5px); }
.tt-view > b { font-family: var(--font-head); font-size: 1.15em; }
.tt-vr { display: flex; flex-direction: column; gap: 1px; padding: 5px 9px; border-radius: 10px; border: 1px solid transparent; color: #bcaea6; transition: background-color .3s var(--ease), border-color .3s, color .3s; }
.tt-vr i { font-style: normal; font-weight: 800; color: #f8efe8; min-height: 1.2em; text-wrap: pretty; }
.tt-vr.on { background: rgba(255, 111, 169, .16); border-color: rgba(255, 111, 169, .7); color: #ff9cc5; }
.tt-note { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); max-width: 80%; padding: 6px 14px; border-radius: 999px; background: rgba(18, 12, 15, .38); border: 1px solid rgba(255, 111, 169, .35); color: rgba(255, 156, 197, .9); font-weight: 700; font-size: clamp(11px, 1vw, 14px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); pointer-events: none; } /* (mostly see-through, at the bottom: it never covers the picture's middle) */
.tt-note:empty { display: none; } /* (only while there is no replay to show) */
/* the clip, cut while it plays (home-tour.js clipScene: data-clip 1 the timeline, 2 its start marked, 3 its end, 4 Clip pressed, 5 its link) */
.tt-tl { position: absolute; left: 50%; bottom: 5%; transform: translate(-50%, 12px); width: min(78%, 640px); display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(18, 12, 15, .78); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); font-size: clamp(10px, .9vw, 12.5px); color: #d9c7d0; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s, transform .3s var(--ease, ease); pointer-events: none; }
.l-tour:not([data-clip="0"]) .tt-tl { opacity: 1; transform: translate(-50%, 0); }
.tt-view { transition: opacity .35s; } .l-tour:not([data-clip="0"]) .tt-view { opacity: 0; } /* (its looks shown: out of the clip's way) */
.tt-tl-bar { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.tt-tl-p { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.tt-tl-r { position: absolute; top: -3px; bottom: -3px; border-radius: 4px; background: rgba(255, 111, 169, .45); box-shadow: 0 0 0 1px #ff6fa9; opacity: 0; }
.tt-tl-a, .tt-tl-b { position: absolute; top: -7px; width: 3px; height: 20px; margin-left: -1.5px; border-radius: 2px; background: #ff6fa9; opacity: 0; transition: opacity .2s; }
.l-tour[data-clip="2"] .tt-tl-a, .l-tour[data-clip="3"] .tt-tl-a, .l-tour[data-clip="4"] .tt-tl-a, .l-tour[data-clip="5"] .tt-tl-a, .l-tour[data-clip="2"] .tt-tl-r, .l-tour[data-clip="3"] .tt-tl-r, .l-tour[data-clip="4"] .tt-tl-r, .l-tour[data-clip="5"] .tt-tl-r,
.l-tour[data-clip="3"] .tt-tl-b, .l-tour[data-clip="4"] .tt-tl-b, .l-tour[data-clip="5"] .tt-tl-b { opacity: 1; }
.tt-cut { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 111, 169, .5); color: #ff9ac4; font-weight: 800; transition: background .2s, color .2s, transform .2s; }
.tt-cut svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.l-tour[data-clip="4"] .tt-cut, .l-tour[data-clip="5"] .tt-cut { background: #ff6fa9; color: #2a0a1a; transform: scale(.94); }
.tt-toast { position: absolute; left: 50%; bottom: calc(5% + 54px); transform: translate(-50%, 8px); padding: 7px 14px; border-radius: 999px; background: rgba(18, 12, 15, .86); border: 1px solid rgba(139, 224, 75, .5); color: #c8f59f; font-weight: 700; font-size: clamp(10.5px, .95vw, 13px); white-space: nowrap; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.l-tour[data-clip="5"] .tt-toast { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 520px) { .tt-tl { left: 8px; right: 50px; width: auto; transform: translateY(12px); gap: 6px; padding: 6px 8px; } .l-tour:not([data-clip="0"]) .tt-tl { transform: none; } .tt-tl-t0, .tt-tl-t1 { display: none; } .tt-toast { white-space: normal; text-align: center; width: 86%; } } /* (clear of the pause button) */
@keyframes tt-pop { from { transform: translateY(10px) scale(.9); opacity: 0; } }
.tt-pause { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; opacity: .75; transition: opacity .2s; }
.tt-pause:hover, .tt-pause:focus-visible, .tt-pause.off { opacity: 1; } .tt-pause:focus-visible { outline: 2px solid #ff6fa9; outline-offset: 2px; } .tt-pause svg { width: 16px; height: 16px; fill: currentColor; }
/* the steps beside it: the one on the picture now lit */
.l-tour-steps { list-style: none; counter-reset: tt; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.l-tour-steps li { counter-increment: tt; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid transparent; transition: background-color .35s var(--ease), border-color .35s; }
.l-tour-steps li::before { content: counter(tt); grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 800; transition: background-color .35s, color .35s; }
.l-tour-steps li b { font-size: 16.5px; } .l-tour-steps li span { color: var(--muted); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.l-tour-steps li.on { background: color-mix(in srgb, var(--pink) 9%, transparent); border-color: color-mix(in srgb, var(--pink) 40%, transparent); }
.l-tour-steps li.on::before { background: var(--pink); color: var(--on-pink); }
@media (max-width: 520px) { .tt-view { left: 6px; max-width: 46%; font-size: 10.5px !important; border-radius: 10px; } .tt-vr { padding: 3px 7px; border-radius: 8px; } .tt-note { bottom: 5%; font-size: 11px; padding: 4px 10px; } } /* (a phone: the picture is small, so is what is said over it) */
@media (max-width: 900px) { .l-tour-wrap { grid-template-columns: minmax(0, 1fr); } .tt-view { left: 10px; width: auto; max-width: 58%; padding: 4px; font-size: 12px; } .tt-view > b, .tt-vr:not(.on) { display: none; } .tt-view:not(:has(.tt-vr.on)) { display: none; } } /* (a phone: only what just changed) */
.l-tour.still .tt-file, .l-tour.still .tt-cur, .l-tour.still .tt-zone { animation: none !important; } .l-tour.still .tt-file { transform: translate(-50%, -50%) scale(.94); }
/* a replay file loading, over the picture (watch.js loadBoard): what is done for it, each part with how long it took, a clock of it all; then a chip */
.th-load { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 6%; background: rgba(12, 8, 11, .8); color: #f8efe8; transition: opacity .35s var(--ease); }
.th-load .tt-rows { width: min(560px, 86vw); }
.th-load.chip { inset: auto 0 56px 0; margin: 0 auto; width: fit-content; display: block; padding: 8px 15px; border-radius: 999px; background: rgba(12, 8, 11, .86); border: 1px solid rgba(166, 233, 107, .45); animation: tt-pop .4s var(--ease-dec); }
.th-load.chip b { color: #a6e96b; font-variant-numeric: tabular-nums; font-size: 14px; }
.th-load.gone { opacity: 0; }
/* the replay's own mods, over its picture in the explainer (osu!lazer's Classic named) */

/* the page out of focus (app.js: html.away, another window or tab in front): what moves by itself waits; a replay or a player watched
   (.th) goes on */
html.away body *:not(.th, .th *), html.away body *:not(.th, .th *)::before, html.away body *:not(.th, .th *)::after { animation-play-state: paused !important; }

/* a carousel (carousel.js): the card in front big in the middle, its neighbours smaller, dimmer and turned a little at its sides, fading
   out at the edges, going round; back and forth by its arrows, dots, a drag or the arrow keys; its dot fills while the card is in front */
.car { --cw: min(440px, 78cqw); --step: calc(var(--cw) * .7); container-type: inline-size; position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.car-stage { --drag: 0; position: relative; width: 100%; height: var(--ch, calc(var(--cw) * .625 + 104px)); overflow: hidden; perspective: 1400px; touch-action: pan-y; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.car-stage:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; border-radius: 24px; }
.car-card { position: absolute; top: 0; left: 50%; width: var(--cw); margin-left: calc(var(--cw) / -2); z-index: calc(10 - var(--a, 0));
  transform: translateX(calc((var(--d, 0) + var(--drag)) * var(--step))) translateZ(calc(var(--a, 0) * -110px)) rotateY(calc((var(--d, 0) + var(--drag)) * -7deg));
  opacity: calc(1 - var(--a, 0) * .2); filter: saturate(calc(1 - var(--a, 0) * .2)) brightness(calc(1 - var(--a, 0) * .14));
  transition: transform .64s cubic-bezier(.22, 1, .36, 1), opacity .45s ease, filter .45s ease, border-color .2s; cursor: pointer; }
.car-card.on { cursor: auto; }
.car-card:not(.on) * { pointer-events: none; } /* (a neighbour: a click brings it to the front) */
.car-card:not(.on):hover { filter: saturate(.95) brightness(.95); }
.car-card.far { opacity: 0; pointer-events: none; }
.car-card.jump, .car.dragging .car-card { transition: none; }
.car.dragging .car-stage { cursor: grabbing; }
.car-nav { position: absolute; top: calc(var(--ch, calc(var(--cw) * .625 + 104px)) / 2 - 22px); z-index: 20; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease), border-color .2s, color .2s; }
.car-nav.prev { left: 4px; } .car-nav.next { right: 4px; }
.car-nav:hover { border-color: var(--pink); color: var(--pink); transform: scale(1.07); }
.car-nav:active { transform: scale(.95); }
.car-nav:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.car-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-dots { display: flex; gap: 6px; }
.car-dots button { position: relative; width: 9px; height: 9px; padding: 0; overflow: hidden; border: 0; border-radius: 99px; background: var(--surface-2); cursor: pointer; transition: width .4s cubic-bezier(.22, 1, .36, 1), background-color .3s; }
.car-dots button:hover { background: color-mix(in srgb, var(--pink) 35%, var(--surface-2)); }
.car-dots button.on { width: 34px; background: color-mix(in srgb, var(--pink) 26%, var(--surface-2)); }
.car-dots button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.car-dots i { position: absolute; inset: 0; border-radius: inherit; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.car-dots .on i { animation: car-fill var(--dwell, 5.2s) linear forwards; }
@keyframes car-fill { to { transform: scaleX(1); } }
.car:hover .car-dots .on i, .car:has(:focus-visible) .car-dots .on i, .car.idle .car-dots .on i { animation-play-state: paused; } /* (it waits while you look at it) */
html.calm .car-dots .on i { animation: none; transform: scaleX(1); }
html.calm .car-card { transition-duration: .01ms; }
@media (max-width: 640px) { .car { --cw: 84cqw; --step: calc(var(--cw) * .9); } .car-nav { width: 38px; height: 38px; top: calc(var(--ch, calc(var(--cw) * .625 + 104px)) / 2 - 19px); } }

/* the home page for a visitor, all of it in one screen: what osu!bridge is, beside the best of it in a carousel; how to set it up in a
   dialog (setup.js) */
html:not(.signed-in) .landing { max-width: 1260px; min-height: calc(100dvh / var(--zall, 1) - 190px); display: flex; flex-direction: column; justify-content: center; }
.l-hero.l-one { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 44px); padding: clamp(8px, 4vh, 48px) 0 clamp(8px, 3vh, 28px); }
.l-car { --cw: min(580px, 76cqw); --step: calc(var(--cw) * .58); }
.hub-go.l-go { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 12px; }
.l-one .l-copy .lead { margin-bottom: 22px; }
.l-car .car-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 26px 60px rgba(0, 0, 0, .42); }
.l-car .car-card.on { border-color: color-mix(in srgb, var(--pink) 38%, var(--line)); }
.car-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; user-select: none;
  background: radial-gradient(circle at 22% 30%, color-mix(in srgb, var(--pink) 22%, transparent) 0 9%, transparent 9.5%), radial-gradient(circle at 22% 30%, transparent 0 12%, color-mix(in srgb, var(--pink) 35%, transparent) 12.4%, transparent 13%),
    radial-gradient(circle at 68% 72%, rgba(102, 204, 255, .18) 0 7%, transparent 7.5%), radial-gradient(circle at 68% 72%, transparent 0 10%, rgba(102, 204, 255, .3) 10.4%, transparent 11%),
    linear-gradient(140deg, #2a1d26, #15101a 60%, #1d1422); }
.car-art > .ls-slide { position: absolute; inset: 0; height: auto; padding: 18px; }
.car-art > .l-tour { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.car-art .l-mini { align-items: center; } .car-art .l-mini > span { transform: scale(1.62); }
.car-art .m-party, .car-art .m-chat { width: 88%; } .car-art .m-run { width: 66%; } .car-art .m-board { width: 84%; }
.car-txt { display: grid; gap: 3px; padding: 13px 18px 15px; }
.car-txt b { font-family: var(--font-head); font-size: 18px; } .car-txt span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.l-pick { position: absolute; right: 14px; bottom: 14px; padding: 5px 12px; border: 1px dashed color-mix(in srgb, var(--pink) 55%, transparent); border-radius: 99px; background: none; color: var(--pink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.car-txt:has(.l-pick) { position: relative; padding-right: 150px; }
.l-pick:hover { background: color-mix(in srgb, var(--pink) 11%, transparent); }
.l-how { padding: 0; border: 0; background: none; color: var(--pink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.l-livechip { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 7px 14px 7px 12px; border: 1px solid rgba(229, 25, 75, .45); border-radius: 99px; background: rgba(229, 25, 75, .1); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .2s; }
.l-livechip[hidden] { display: none; }
.l-livechip:hover { border-color: #e5194b; } .l-livechip b { color: var(--pink); }
.l-setup-dlg { width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 64px); padding: 22px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.l-setup-dlg::backdrop { background: rgba(8, 5, 7, .62); }
.l-setup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.l-setup-head h2 { margin: 0; font-family: var(--font-head); font-size: 24px; }
/* signed in: how it works beside the carousel, under your replays and friends */
html.signed-in .l-hero.l-one { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 0 12px; border-top: 1px solid var(--line); } /* (how it works in one row, the carousel under it) */
.l-me h2 { margin: 0 0 18px; font-size: 24px; letter-spacing: -0.01em; }
.l-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: l-step; }
.l-works li { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
@media (max-width: 760px) { .l-works { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: -16px; padding: 0 16px; scroll-padding-inline: 16px; } .l-works::-webkit-scrollbar { display: none; } .l-works li { flex: 0 0 82%; scroll-snap-align: start; } } /* (a phone: one to swipe at a time) */
.l-works li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; counter-increment: l-step; }
.l-works li::before { content: counter(l-step); grid-row: 1 / span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); font-weight: 800; }
.l-works b { font-size: 15px; } .l-works span { color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 46ch; }
@media (max-width: 900px) { .l-hero.l-one { grid-template-columns: minmax(0, 1fr); min-height: 0; } }
@media (max-width: 640px) { .car-art .l-mini > span { transform: scale(1.2); } .car-txt:has(.l-pick) { padding-right: 18px; } .l-pick { position: static; justify-self: start; margin-top: 6px; } }

/* your home page: a row to jump in, under your replays and friends */
.hub-go { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.hub-go button { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 11px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .22s var(--ease); }
.hub-go .ic { grid-row: span 2; width: 22px; height: 22px; padding: 8px; box-sizing: content-box; border-radius: 12px; color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, transparent); }
.hub-go b { font-size: 15px; } .hub-go small { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 12.5px; line-height: 1.35; } /* (all of it, on two lines at most) */
.hub-go button:hover { border-color: color-mix(in srgb, var(--pink) 45%, transparent); transform: translateY(-2px); }
.hub-go button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
/* narrower: still one row, as on a wide screen, swiped across (to its edges) */
@media (max-width: 1100px) {
  .hub-go, .hub-go.l-go { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: calc(-1 * clamp(16px, 3vw, 40px)); padding: 3px clamp(16px, 3vw, 40px) 4px; scroll-padding-inline: clamp(16px, 3vw, 40px); }
  .hub-go::-webkit-scrollbar { display: none; } .hub-go button { flex: 0 0 clamp(200px, 40%, 260px); scroll-snap-align: start; }
}
@media (max-width: 560px) { .hub-go button { flex-basis: 66%; } }

/* the Plus page's features, in a carousel */
.plus-car { --cw: min(340px, 80cqw); --step: calc(var(--cw) * .76); --ch: 340px; margin: 6px 0 12px; }
.plus-car .plus-f { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.plus-car .plus-f.on { border-color: color-mix(in srgb, var(--pink) 40%, var(--line)); }
.plus-car .plus-prev { height: 150px; }

/* the chat's extras (chat.js): what a line can do on hover (react, reply, edit, take back), its reactions, the line it answers, a replay
   sent as a card, who is typing, the reply being written, your replays to send, a new group, a group's name, its code and Leave */
.ch-msg { position: relative; }
.ch-acts { position: absolute; top: -14px; right: 10px; z-index: 2; display: none; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.ch-msg:hover > .ch-acts, .ch-msg:hover > div > .ch-acts, .ch-acts:focus-within, .ch-acts:has(.ch-rpick) { display: flex; }
.ch-acts > button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.ch-acts > button:hover { background: var(--surface-2); color: var(--text); }
.ch-acts > button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.ch-acts .ic { width: 16px; height: 16px; }
.ch-rpick { position: absolute; right: 0; bottom: calc(100% + 6px); display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 10px 28px rgba(0, 0, 0, .4); }
.ch-rpick button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; font-size: 19px; cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
.ch-rpick button:hover { background: var(--surface-2); transform: scale(1.15); }
.ch-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ch-rx { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s; }
.ch-rx b { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ch-rx:hover { border-color: var(--pink); }
.ch-rx.on { border-color: color-mix(in srgb, var(--pink) 60%, transparent); background: color-mix(in srgb, var(--pink) 12%, var(--surface)); } .ch-rx.on b { color: var(--pink); }
.ch-q { display: flex; align-items: center; gap: 6px; max-width: 100%; margin: 0 0 3px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; text-align: left; white-space: nowrap; cursor: pointer; }
.ch-q span { overflow: hidden; text-overflow: ellipsis; } .ch-q b { color: var(--text); } .ch-q i { font-style: italic; } .ch-q .ic { flex: none; width: 14px; height: 14px; }
.ch-q:hover { color: var(--text); }
.ch-msg.ch-hl { background: color-mix(in srgb, var(--pink) 11%, transparent); }
.ch-del { color: var(--muted); font-style: italic; }
.ch-ed { color: var(--muted); font-size: 11.5px; }
mark.ch-at { padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--pink) 22%, transparent); color: var(--text); }
.ch-edit { display: flex; gap: 6px; margin-top: 4px; } .ch-edit input { flex: 1; min-width: 0; }
.ch-rpl { position: relative; overflow: hidden; } .ch-rpl > :not(.ch-cov) { position: relative; }
.ch-rpl .btn { margin-top: 6px; }
.ch-typing { display: flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 20px; color: var(--muted); font-size: 12.5px; opacity: 0; transition: opacity .2s; }
.ch-typing.on { opacity: 1; } .ch-typing b { color: var(--text); }
.ch-dots { display: inline-flex; gap: 3px; }
.ch-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: ch-dot 1.2s ease-in-out infinite; }
.ch-dots i:nth-child(2) { animation-delay: .15s; } .ch-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.ch-reply { display: flex; align-items: center; gap: 8px; margin: 0 16px 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 13px; }
.ch-reply[hidden] { display: none; }
.ch-reply > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ch-reply b { color: var(--text); } .ch-reply .ic { flex: none; width: 15px; height: 15px; }
.ch-reply .ch-x, .ch-mem .ch-x { opacity: 1; }
.ch-mem .ch-x { margin-left: auto; font-size: 18px; } .ch-mem .ch-x:hover { color: #ff7480; }
.ch-att { flex: none; display: grid; place-items: center; width: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.ch-att:hover { border-color: var(--pink); color: var(--pink); } .ch-att:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; } .ch-att .ic { width: 18px; height: 18px; }
.ch-pick { max-height: 300px; margin: 0 16px 8px; padding: 6px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 12px 34px rgba(0, 0, 0, .4); }
.ch-pick[hidden] { display: none; }
.ch-pick button { display: flex; flex-direction: column; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ch-pick button:hover { background: var(--surface-2); } .ch-pick small { color: var(--muted); font-size: 12px; } .ch-pick .ch-hint { display: block; margin: 6px 10px 2px; }
.ch-menu .ch-mrow { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 2px; } .ch-menu .ch-mrow button { display: inline-flex; align-items: center; gap: 6px; width: auto; }
.ch-menu .ch-join, .ch-menu .ch-newg { display: flex; gap: 6px; padding: 6px; } .ch-menu .ch-join[hidden] { display: none; }
.ch-menu .ch-join input { flex: 1; min-width: 0; } .ch-menu .ch-join button { width: auto; }
.ch-menu .ch-newg { flex-direction: column; } .ch-menu .ch-newg > input { width: 100%; }
.ch-menu .ch-fchip.on { background: color-mix(in srgb, var(--pink) 16%, transparent); outline: 1px solid var(--pink); }
.ch-gname { display: flex; gap: 6px; margin-bottom: 12px; } .ch-gname input { flex: 1; min-width: 0; }
.ch-gfoot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; } .ch-leave { color: #ff7480; }
@media (hover: none) { .ch-acts { position: static; display: flex; width: max-content; margin: 4px 0 0 auto; box-shadow: none; } .ch-msg.cont > .ch-acts { grid-column: 2; } }

/* a profile (profile.js): its pinned replay, big; who follows them and whom they follow, a click on the counts away (a dialog) */
.pf-feat { grid-template-columns: minmax(0, 520px); }
.pf-fl { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.pf-fl:hover { text-decoration-color: currentColor; } .pf-fl:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
.pf-fdlg { width: min(520px, calc(100vw - 32px)); } .pf-fdlg .friends-list { max-height: 60vh; overflow-y: auto; } .pf-fdlg .friend-row { width: 100%; font: inherit; color: inherit; text-align: left; }

/* Activity, first in Chat (chat.js): what those you follow did, who of them plays live first */
.ch-actc .ch-ic { color: var(--pink); }
.ch-un.live { width: auto; padding: 0 7px; background: #e5194b; color: #fff; }

/* watching a replay together (together.js, chat.js): its Watch together button, and the bar over the chat (lead: Stop; follow: Leave; Join) */
.ch-rbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .ch-rbtns .btn { margin-top: 0; }
.ch-tog { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 16px 0; padding: 8px 12px; border: 1px solid rgba(229, 25, 75, .45); border-radius: 12px; background: rgba(229, 25, 75, .08); font-size: 13.5px; }
.ch-tog[hidden] { display: none; } .ch-togw { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; } .ch-tog .btn { margin-left: auto; }

/* Watch → Everyone (watch.js): how it is sorted (a select), only who plays now, and each player's osu! rank on their card */
.wt-sel { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.wt-sel select { padding: 7px 30px 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23a99a94' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 8px center / 16px no-repeat; color: var(--text); font: inherit; font-weight: 600; appearance: none; cursor: pointer; }
.wt-sel select:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.wt-live1 { border: 1px solid var(--line); }
.lv-rank { flex: none; margin-left: 6px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- the legal pages (legal.js): Terms, Privacy, Copyright, Contact; and the footer under every page ---- */
.lg-page { max-width: 820px; }
.lg-text { line-height: 1.65; overflow-wrap: anywhere; }
.lg-text h1 { margin: 6px 0 4px; font-size: clamp(26px, 3vw, 34px); text-wrap: balance; }
.lg-text h2 { margin: 30px 0 8px; font-size: 18.5px; text-wrap: balance; }
.lg-text p, .lg-text li { max-width: 72ch; color: var(--text); }
.lg-text ul { padding-left: 22px; } .lg-text li + li { margin-top: 6px; }
.lg-text a { color: var(--pink); } .lg-text code { padding: 1px 6px; border-radius: 6px; background: var(--surface); font-size: .92em; }
.lg-lead { font-size: 16px; }
.lg-who { display: grid; gap: 8px; margin: 10px 0 0; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.lg-who > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; } .lg-who dt { color: var(--muted); } .lg-who dd { margin: 0; }
.lg-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.lg-form { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 8px; padding: 20px; }
.lg-form input, .lg-form select, .lg-form textarea { width: 100%; box-sizing: border-box; }
.lg-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.lg-sworn { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; font-size: 14px; color: var(--muted); } .lg-sworn input { width: auto; margin-top: 4px; }
.lg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* (a field only a bot fills in) */
.lg-send { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin: 48px 0 8px; padding: 18px 0 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot p { margin: 0; max-width: 70ch; } .site-foot a { color: var(--text); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; } .site-foot nav a { text-decoration: none; } .site-foot nav a:hover { color: var(--pink); }
/* What's new (whats-new.js, the app's too): every update a line in its series (its number, what it brought), opened in a window; buttons for what touched one thing, a picture big on a click */
.wn { max-width: 880px; }
.wn-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.wn-f { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.wn-f:hover { color: var(--text); border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); } .wn-f.on { color: var(--text); border-color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, var(--panel)); }
.wn-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wn-list { display: grid; gap: 6px; }
.wn-series { margin: 16px 0 2px; font-size: 13px; font-weight: 800; color: var(--muted); } .wn-series:first-child { margin-top: 0; }
.wn-v { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.wn-v[hidden] { display: none; }
.wn-v:hover { border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); background: color-mix(in srgb, var(--pink) 6%, var(--panel)); } .wn-v:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.wn-ver { flex: none; min-width: 64px; font-family: var(--font-head); font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; } .wn-v.latest .wn-ver { color: var(--pink); }
.wn-what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.wn-new { flex: none; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); font-size: 12px; font-weight: 800; }
.wn-go { flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s, border-color .15s; }
.wn-v:hover .wn-go { border-color: var(--pink); transform: translateX(2px) rotate(-45deg); }
.wn-win { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.wn-win[open] { display: flex; flex-direction: column; animation: wn-up .22s cubic-bezier(.2, 0, 0, 1); } .wn-win::backdrop { background: rgba(8, 5, 7, .72); }
.wn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.wn-hl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-width: 0; } .wn-head h2 { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.wn-date { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wn-acts { display: flex; flex: none; gap: 6px; }
.wn-step, .wn-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .15s, opacity .15s; }
.wn-step:hover:not(:disabled), .wn-x:hover { border-color: var(--pink); } .wn-step:disabled { opacity: .35; cursor: default; } .wn-step:focus-visible, .wn-x:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.wn-body { min-height: 0; padding: 4px 24px 22px; overflow: auto; overscroll-behavior: contain; }
.wn-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; margin: 16px 0 4px; } .wn-pics figure { margin: 0; }
.wn-pic { display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: zoom-in; transition: border-color .15s; } .wn-pic:hover { border-color: var(--pink); }
.wn-pic img { display: block; width: 100%; height: 100%; object-fit: contain; } .wn-pics figcaption { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.wn-notes h4 { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; font-size: 14px; } .wn-notes h4 .wn-ic { color: var(--pink); }
.wn-notes ul { margin: 0; padding-left: 22px; } .wn-notes li { margin: 6px 0; line-height: 1.55; max-width: 75ch; } .wn-notes p { margin: 8px 0; max-width: 75ch; } .wn-notes code { font-size: .92em; }
.wn-lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: none; cursor: zoom-out; }
.wn-lb[open] { display: grid; place-items: center; animation: wn-in .18s ease-out; } .wn-lb::backdrop { background: rgba(0, 0, 0, .86); }
.wn-lb img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
@keyframes wn-up { from { opacity: 0; transform: translateY(10px) scale(.985); } } @keyframes wn-in { from { opacity: 0; } }
@media (max-width: 640px) { .wn-v { gap: 10px; padding: 10px 12px; } .wn-what { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .wn-win { width: calc(100vw - 16px); max-height: calc(100vh - 16px); } .wn-head { padding: 12px 12px 12px 16px; } .wn-body { padding: 2px 16px 18px; } }
html:has(#view-chat.active) .site-foot { display: none; } /* (the chat fills the screen) */
@media (max-width: 560px) { .lg-two { grid-template-columns: minmax(0, 1fr); } .lg-who > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .lg-form { padding: 16px; } }
.fb-kind.rq-data, .fb-kind.rq-copyright { background: #4a1f2a; color: #ff8fa6; } .fb-kind.rq-email { background: #1f2f44; color: #8cc8ff; }
.lg-key { padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.lg-form select { padding: 10px 34px 10px 12px; border: 1px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23a99a94' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; color: var(--text); font: inherit; appearance: none; cursor: pointer; } /* (as the site's other fields, with the sort menus' arrow) */
.lg-form select:focus { outline: none; border-color: var(--pink); }
#ad-legal > h3:not(:first-child) { margin-top: 26px; }
/* the admin's Content tab (admin.js): publishing switches, reports, new uploads as cards with what to do */
.ct-switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ct-switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.ct-switch input { width: auto; } .ct-switch span { flex: 1; } .ct-switch b { font-size: 12px; color: #8be04b; } .ct-switch.off { border-color: #6b2a35; background: color-mix(in srgb, #ff5d6c 8%, transparent); } .ct-switch.off b { color: #ff8fa6; }
.ct-tools { margin-bottom: 10px; } .ct-tools select { width: auto; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ct-item { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; } .ct-item.ok, .ct-item.removed { opacity: .6; }
.ct-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-pics { display: flex; gap: 6px; } .ct-pics a { flex: 1; min-width: 0; } .ct-pics img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface); }
.ct-skin { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--surface); }
.ct-title { overflow-wrap: anywhere; } .ct-text { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9em; overflow: auto; font-size: 13.5px; }
.ct-acts { margin-top: auto; } .ct-why { margin: 4px 0 8px; padding-left: 18px; font-size: 13.5px; } .ct-rep .ct-pics img { max-width: 360px; }
.ct-rep .btn.danger, .ct-item .btn.danger { width: auto; } /* (beside the other buttons, not a full-width bar) */
/* ---- the map studio (map-studio.js): the whole screen; found maps on the left, the pool by round on the right; drag between them ---- */
html.ms-open { overflow: hidden; }
.ms { position: fixed; inset: 0; z-index: 58; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
html.ms-open .toast { z-index: 59; } /* (its messages over it) */
.ms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(14px, 2vw, 24px); border-bottom: 1px solid var(--line); }
.ms-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ms-head b { font-size: 18px; }
.ms-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(380px, 1.15fr); }
.ms-find, .ms-pool { min-height: 0; display: flex; flex-direction: column; }
.ms-find { border-right: 1px solid var(--line); }
.ms-to { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.ms-pool-list { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 16px; }
.ms-sec header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ms-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ms-zone { min-height: 54px; padding: 6px; border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background-color .15s; }
.ms-dragging .ms-zone { border-color: color-mix(in srgb, var(--pink) 35%, var(--line)); } .ms-zone.over { border-color: var(--pink); border-style: solid; background: color-mix(in srgb, var(--pink) 8%, transparent); }
.ms-gh { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 0 2px; } .ms-gh b { color: var(--text); } .ms-gh .ok { color: #8be04b; }
.ms-drop { margin: auto; color: var(--muted); font-size: 12.5px; }
.ms-m { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: grab; } .ms-m.dragging { opacity: .4; }
.ms-mt { min-width: 0; display: flex; flex-direction: column; font-size: 13px; } .ms-mt span, .ms-mt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ms-mt small { color: var(--muted); font-size: 11.5px; }
.ms-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 16px; cursor: pointer; } .ms-x:hover { color: #ff8fa6; background: var(--surface); }
.ms-note { margin: 0; }
@media (max-width: 860px) { .ms-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); } .ms-find { border-right: 0; border-bottom: 1px solid var(--line); } }
/* the host's rounds (tournaments.js): each round's best of or HP and its star range; the type picked when a tournament is made */
.tn-rounds { display: flex; flex-direction: column; gap: 6px; }
.tn-rd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 0; border-top: 1px solid var(--line); } .tn-rd > b { min-width: 130px; }
.tn-rhp { width: 150px; }
.tn-rounds-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.tn-rounds-view > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tn-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; } .tn-kinds legend { margin-bottom: 6px; color: var(--muted); font-size: 13.5px; }
.tn-kind { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; } .tn-kind:has(input:checked) { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 8%, transparent); } .tn-kind input { width: auto; align-self: flex-start; }
.tn-form[data-kind="ranked"] .tn-opub { display: none; }
.ms-touch { display: none; }
@media (max-width: 860px) { .ms-wide { display: none; } .ms-touch { display: inline; } .ms-body { grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); } }
/* the rounds: how many ranked maps a star range has, free mod, the qualifiers' maps; a pool map's mods as buttons; finding a player to invite */
.tn-rcount { font-size: 12.5px; font-weight: 700; color: #8be04b; } .tn-rcount.few { color: #ffc857; }
.tn-rounds label.chk { display: flex; flex-direction: row; align-items: center; gap: 8px; } .tn-rounds label.chk input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--pink); }
.tn-rfree { font-size: 13px; } .tn-rounds > .chk { font-size: 13.5px; }
.tn-qmaps { flex-basis: 100%; margin: 4px 0 0; padding-left: 18px; font-size: 13px; } .tn-qmaps b { font-variant-numeric: tabular-nums; }
/* how the qualifier maps are chosen, how many, when they are drawn; when everyone sees the pool (the editor's Rounds) */
.tn-qn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .tn-qn input { width: 64px; }
.tn-qmod { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 11.5px; font-weight: 800; text-align: center; }
.tn-rq > .muted.small:last-child { flex-basis: 100%; margin: 0; }
.tn-pshow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; } .tn-pshow .wt-sel { display: inline-flex; align-items: center; gap: 8px; }
.tn-modc { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.tn-modc button { padding: 4px 9px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; } .tn-modc button + button { border-left: 1px solid var(--line); }
.tn-modc button.on { background: color-mix(in srgb, var(--pink) 22%, transparent); color: var(--text); } .tn-modc button:hover { color: var(--text); }
.tn-who { position: relative; }
.tn-sug { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 4px; padding: 4px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.tn-sugi { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; } .tn-sugi img { width: 24px; height: 24px; border-radius: 50%; }
.tn-sugi.on, .tn-sugi:hover { background: var(--surface); } .tn-sugn { padding: 6px 8px; }
/* the bracket, live: a match being played glows, each side's HP in a card match */
.tn-match.on-air { border-color: var(--pink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pink) 18%, transparent); } .tn-onair { color: var(--pink); }
.tn-side { flex-wrap: wrap; } .tn-hp { flex-basis: 100%; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; } .tn-hp i { display: block; height: 100%; background: linear-gradient(90deg, #8be04b, #c8f06b); transition: width .6s ease; }
@media (prefers-reduced-motion: reduce) { .tn-hp i { transition: none; } }
/* admin: the ranked pool searched by words and stars, any map switched off or on, more found on the mirror */
.rp-filter { flex-wrap: wrap; } .rp-filter input[type=search] { flex: 1 1 220px; } .rp-filter input[type=number] { width: 92px; }
.rp-stars { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; } .rp-stars .chip b { margin-left: 4px; }
.ad-table tr.rp-off td:not(:last-child) { opacity: .5; } .rr-how { margin: 0; line-height: 1.55; }
/* the bracket drawn as on paper: each round's matches centred between the two that feed them, joined by lines (tournaments.js bracketLines),
   the way each winner went in pink, and the champion in gold at the end */
.tn-bracket { position: relative; z-index: 0; gap: 44px; } .tn-round { justify-content: flex-start; gap: 10px; }
.tn-rm { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; } .tn-rm .tn-match small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-lines { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; }
.tn-ln { fill: none; stroke: color-mix(in srgb, var(--text) 24%, transparent); stroke-width: 2; stroke-linejoin: round; } .tn-ln.won { stroke: color-mix(in srgb, var(--pink) 75%, transparent); }
.tn-round.tn-champ { min-width: 150px; } .tn-crown { padding: 11px 14px; border-radius: 12px; border: 2px dashed color-mix(in srgb, #ffc857 50%, transparent); text-align: center; color: var(--muted); font-weight: 800; }
.tn-crown.won { border: 2px solid #ffc857; background: #ffc857; color: #2a1d05; box-shadow: 0 0 22px color-mix(in srgb, #ffc857 35%, transparent); }
/* double elimination: the winners bracket over the losers bracket, the grand final and the champion to the right of both */
.tn-bracket.double { display: grid; grid-template-columns: max-content max-content; column-gap: 44px; row-gap: 20px; align-items: center; }
.tn-bsec { grid-column: 1; display: flex; flex-direction: column; gap: 8px; } .tn-bsec h4 { margin: 0; font-size: 14px; font-weight: 800; }
.tn-bw { grid-row: 1; } .tn-bl { grid-row: 2; padding-top: 16px; border-top: 1px dashed var(--line); }
.tn-brow { display: flex; gap: 44px; } .tn-bgf { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 44px; align-items: center; }
/* ---- tournaments, each in its own look (tournaments.js lookOf): a map's cover as its banner, an accent of the site's colours (--tn-ac),
   a little bracket as its art when it has no banner; the list's cards, the page's top, the overview, the editor and the setup ---- */
.tn-br { width: 132px; height: auto; } .tn-br path { stroke: color-mix(in srgb, var(--tn-ac, var(--pink)) 55%, var(--muted)); } .tn-br .win { fill: var(--tn-ac, var(--pink)); }
.tn-card { padding: 0; gap: 0; overflow: hidden; animation: tn-up .45s var(--ease) both; }
.tn-card:hover { border-color: color-mix(in srgb, var(--tn-ac, var(--pink)) 60%, transparent); }
.tn-card-art { position: relative; display: grid; place-items: center; height: 112px; background: var(--tn-cover, none) center 35% / cover, radial-gradient(120% 130% at 80% 0%, color-mix(in srgb, var(--tn-ac) 38%, transparent), transparent 65%), linear-gradient(135deg, color-mix(in srgb, var(--tn-ac) 18%, var(--panel)), var(--panel)); }
.tn-card-art.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, color-mix(in srgb, var(--panel) 85%, transparent)); }
.tn-card-art .tn-br { width: 110px; opacity: .9; transition: transform .35s var(--ease); } .tn-card:hover .tn-card-art .tn-br { transform: scale(1.06); }
.tn-card-top { position: absolute; z-index: 1; top: 10px; left: 12px; display: flex; gap: 6px; } .tn-card-top .tn-st, .tn-card-top .tn-priv { backdrop-filter: blur(6px); background-color: color-mix(in srgb, var(--panel) 70%, transparent); }
.tn-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 15px; } .tn-card-body > b { font-size: 16.5px; line-height: 1.25; }
.tn-fill { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; } .tn-fill i { display: block; height: 100%; border-radius: 3px; background: var(--tn-ac, var(--pink)); }
.tn-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 12.5px; font-weight: 600; } .tn-card-foot > span { white-space: nowrap; } .tn-card-prize { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--gold); } .tn-card-prize .ic, .tn-prize .ic { width: 16px; height: 16px; flex: none; }
.tn-grid .tn-card:nth-child(2) { animation-delay: 40ms; } .tn-grid .tn-card:nth-child(3) { animation-delay: 80ms; } .tn-grid .tn-card:nth-child(4) { animation-delay: 120ms; } .tn-grid .tn-card:nth-child(n+5) { animation-delay: 160ms; }
@keyframes tn-up { from { opacity: 0; transform: translateY(8px); } }
/* the top of a tournament's page, as a profile's: the banner fading into the panel, the name over it */
.tn-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 20px; margin: 12px 0 4px; padding: clamp(104px, 13vw, 168px) clamp(16px, 2.4vw, 28px) 22px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--panel); }
.tn-hero-art { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: flex-end; align-items: flex-start; padding: 22px clamp(18px, 3vw, 34px);
  background: var(--tn-cover, none) center 30% / cover, radial-gradient(110% 140% at 88% 0%, color-mix(in srgb, var(--tn-ac) 40%, transparent), transparent 62%), linear-gradient(120deg, color-mix(in srgb, var(--tn-ac) 16%, var(--panel)), var(--panel)); }
.tn-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .08), color-mix(in srgb, var(--panel) 72%, transparent) 58%, var(--panel)); }
.tn-hero-art > .tn-br { position: relative; z-index: 1; width: clamp(120px, 15vw, 186px); }
.tn-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tn-next { padding: 3px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--tn-ac) 20%, rgba(0, 0, 0, .35)); }
.tn-next.live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #9be89b; vertical-align: 1px; animation: tn-pulse 1.6s ease-out infinite; }
@keyframes tn-pulse { from { box-shadow: 0 0 0 0 rgba(155, 232, 155, .55); } to { box-shadow: 0 0 0 8px rgba(155, 232, 155, 0); } }
.tn-name { margin: 8px 0 4px; font-family: var(--font-head); font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.tn-hero-sub { margin: 0; color: var(--muted); } .tn-hero-sub b { color: var(--text); }
.tn-prize { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 700; color: var(--gold); }
.tn-hero-cta { display: flex; gap: 8px; align-items: center; } .tn-youin { padding: 9px 16px; border-radius: 99px; font-weight: 800; color: #9be89b; background: color-mix(in srgb, #9be89b 15%, transparent); }
.tn-hero.mini { margin: 0 0 16px; padding: 64px 18px 16px; border-radius: 18px; } .tn-hero.mini .tn-name { font-size: 26px; } .tn-hero.mini .tn-hero-art { padding: 14px 18px; } .tn-hero.mini .tn-br { width: 104px; }
@media (max-width: 640px) { .tn-hero { grid-template-columns: 1fr; } .tn-hero-cta .btn { flex: 1; justify-content: center; } }
#tn-body .tn-tabs .chip.active { background: color-mix(in srgb, var(--tn-ac, var(--pink)) 16%, transparent); border-color: var(--tn-ac, var(--pink)); color: var(--text); }
/* the overview: about, its steps and its rules; beside them signing up, the prize, its links, its players and staff */
.tn-ov { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.tn-ov-main > section + section { margin-top: 22px; } .tn-ov-main h2.sub { margin: 0 0 12px; }
.tn-ov-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; } .tn-side-box { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.tn-side-box input { width: 100%; } .tn-joinbox .btn, .tn-in .btn { justify-content: center; } .tn-in { border-color: color-mix(in srgb, #9be89b 40%, var(--line)); }
@media (max-width: 920px) { .tn-ov { grid-template-columns: 1fr; } .tn-ov-side { position: static; } .tn-ov-side > .tn-joinbox, .tn-ov-side > .tn-in { order: -1; } }
.tn-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.tn-tl li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 28px 14px 0 0; }
.tn-tl li::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--line); }
.tn-tl li::after { content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.tn-tl li.now::before { background: linear-gradient(90deg, var(--tn-ac, var(--pink)), var(--line)); } .tn-tl li.done::before { background: var(--tn-ac, var(--pink)); }
.tn-tl li.done::after { border-color: var(--tn-ac, var(--pink)); background: var(--tn-ac, var(--pink)); } .tn-tl li.now::after { border-color: var(--tn-ac, var(--pink)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tn-ac, var(--pink)) 22%, transparent); }
.tn-tl li.now b { color: var(--tn-ac, var(--pink)); }
@media (max-width: 560px) { .tn-tl { grid-template-columns: 1fr; gap: 14px; } .tn-tl li { padding: 0 0 0 30px; } .tn-tl li::before { top: 18px; bottom: -14px; left: 8px; right: auto; width: 2px; height: auto; } .tn-tl li:last-child::before { display: none; } }
.tn-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 26px; margin: 0; }
.tn-dl > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .tn-dl dt { color: var(--muted); font-size: 13px; } .tn-dl dd { margin: 0; font-weight: 600; }
.tn-prizebox { flex-direction: row; align-items: center; gap: 12px; border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); } .tn-prizebox .ic { width: 28px; height: 28px; flex: none; color: var(--gold); } .tn-prizebox small { display: block; }
.tn-links { flex-direction: row; flex-wrap: wrap; } .tn-links .btn { flex: 1; justify-content: center; } .tn-links .ic { width: 18px; height: 18px; }
.tn-faces { display: flex; flex-wrap: wrap; align-items: center; padding-left: 6px; } .tn-faces img { width: 32px; height: 32px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--panel); object-fit: cover; }
.tn-more { margin-left: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tn-staff { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .tn-staff li { display: flex; align-items: center; gap: 10px; } .tn-staff img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; } .tn-staff small { margin-left: auto; }
/* the editor: its parts listed to jump to; what comes next and what is left; the look; the settings in groups and a bar to save them */
.tn-ed { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 22px; align-items: start; }
.tn-ednav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.tn-ednav button { padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .2s, color .2s; }
.tn-ednav button:hover { color: var(--text); background: var(--surface); } .tn-ednav button.on { color: var(--text); background: color-mix(in srgb, var(--tn-ac, var(--pink)) 16%, transparent); }
.tn-edmain { display: flex; flex-direction: column; gap: 14px; min-width: 0; } .tn-edmain .tn-box { margin: 0; } .tn-edmain [id^="ed-"] { scroll-margin-top: 84px; }
@media (max-width: 900px) { .tn-ed { grid-template-columns: 1fr; gap: 10px; } .tn-ednav { top: 60px; z-index: 6; flex-direction: row; overflow-x: auto; padding: 8px 0; background: var(--bg); scrollbar-width: none; } .tn-ednav button { white-space: nowrap; } .tn-edmain [id^="ed-"] { scroll-margin-top: 124px; } }
.tn-box-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.tn-nb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; } .tn-nb-head small { display: block; } .tn-nb-head b { font-size: 18px; } .tn-nb-head .tn-acts { margin: 0; }
.tn-prog { height: 8px; margin: 16px 0 6px; border-radius: 4px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; } .tn-prog i { display: block; height: 100%; border-radius: 4px; background: var(--tn-ac, var(--pink)); transition: width .6s var(--ease); }
.tn-ck { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; } .tn-ck li { display: flex; align-items: center; gap: 10px; min-height: 34px; } .tn-ck li .btn { margin-left: auto; }
.tn-ckm { display: grid; place-items: center; flex: none; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); font-size: 12px; font-weight: 900; }
.tn-ck li.ok .tn-ckm { border-color: #8be04b; background: #8be04b; color: #142008; } .tn-ck li.ok > span:nth-child(2) { color: var(--muted); }
.tn-lbl { display: block; margin-bottom: 7px; font-size: 13px; color: var(--muted); }
.tn-look-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 16px; } .tn-look-grid .tn-banpick { grid-column: 1 / -1; } .tn-look-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.tn-sw { display: flex; flex-wrap: wrap; gap: 9px; } .tn-sw button { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 3px solid var(--panel); background: var(--sw); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.tn-sw button:hover { transform: scale(1.1); } .tn-sw button.on { box-shadow: 0 0 0 2px var(--text); }
.tn-banrow { display: flex; gap: 8px; } .tn-banrow input, .tn-banpick > input { flex: 1; width: 100%; }
.tn-banres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; } .tn-banres:empty { display: none; } .tn-banres > p { grid-column: 1 / -1; margin: 4px 0; }
.tn-ban { position: relative; aspect-ratio: 20 / 7; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--tn-cover, none) center / cover, var(--surface); cursor: pointer; transition: border-color .15s, transform .15s var(--ease); }
.tn-ban span { position: absolute; inset: auto 0 0; padding: 10px 7px 4px; font-size: 11px; font-weight: 600; color: #fff; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.tn-ban:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tn-ac, var(--pink)) 60%, transparent); } .tn-ban.on { border-color: var(--tn-ac, var(--pink)); }
.tn-setform .tn-fs { grid-column: 1 / -1; min-width: 0; margin: 6px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.tn-fs legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--text); }
.tn-fs-g { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; } .tn-form label.tn-check { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; color: var(--text); } .tn-form label.tn-check input { width: 20px; height: 20px; flex: none; accent-color: var(--pink); }
.tn-savebar { display: none; position: sticky; bottom: 14px; z-index: 6; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.tn-savebar span { margin-right: auto; font-weight: 700; color: var(--text); } .tn-setform.dirty .tn-savebar { display: flex; animation: tn-up .3s var(--ease); }
.tn-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .tn-share code { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; overflow-wrap: anywhere; }
.tn-announce { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--muted); font: 13px/1.55 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.tn-danger { border-color: color-mix(in srgb, #ff5d6c 32%, var(--line)); } .tn-danger .btn { color: #ff8a95; }
/* hosting one, step by step, its preview beside it */
.tn-wiz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 10px; }
.tn-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; padding: 0; counter-reset: st; } .tn-steps li { counter-increment: st; }
.tn-steps button { display: flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tn-steps button::before { content: counter(st); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-size: 12px; }
.tn-steps button.on { color: var(--text); border-color: var(--pink); } .tn-steps button.on::before { background: var(--pink); color: #2a0f1c; } .tn-steps button.done::before { content: "\2713"; color: #8be04b; background: color-mix(in srgb, #8be04b 18%, transparent); }
.tn-step { display: contents; } .tn-step[hidden] { display: none; } .tn-step > p { margin: 0; }
.tn-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.tn-wiz-nav { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); } .tn-wiz-nav .btn[hidden] { display: none; }
.tn-wiz-pv { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; } .tn-wiz-pv .tn-grid { grid-template-columns: 1fr; margin: 0; } .tn-wiz-pv .tn-card { pointer-events: none; animation: none; } .tn-wiz-pv .tn-hero { margin: 0; }
.tn-form[data-kind="ranked"] .tn-wbo, .tn-form[data-kind="ranked_pool"] .tn-wbo, .tn-form:not([data-quals="1"]) .tn-wq { display: none; }
@media (max-width: 980px) { .tn-wiz { grid-template-columns: 1fr; } .tn-wiz-pv { position: static; } }
/* the bracket studio and the banner browser: the map studio's whole-screen frame (.ms); the bracket with each round's settings over it,
   its players dragged to swap seeds, the seeds and a match on the side; the banners as big covers to click */
.bs { z-index: 57; }
.ms-head > .bs-acts { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.bs-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.bs-canvas { min-width: 0; min-height: 0; overflow: auto; padding: 16px clamp(14px, 2vw, 24px) 30px; } .bs-canvas .tn-bracket { overflow: visible; } .bs .tn-round { min-width: 232px; }
.bs-note { max-width: 80ch; margin: 0 0 14px; }
.bs-side { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 14px; border-left: 1px solid var(--line); } .bs-side #tn-match:empty { display: none; }
.bs-rh { box-sizing: border-box; height: 112px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 12.5px; }
.bs-rh-x { justify-content: center; border-color: transparent; background: none; }
.bs-rh select, .bs-rh input { padding: 5px 8px; font-size: 12.5px; } .bs-rh .tn-pe-range input { width: 62px; } .bs-f { display: flex; align-items: center; gap: 6px; } .bs-f input { width: 112px; }
.bs-rh label.chk { display: flex; align-items: center; gap: 6px; color: var(--text); } .bs-rh label.chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--tn-ac, var(--pink)); }
.bs-rh-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.tn-bl .bs-rh-x, .tn-bgf .bs-rh-x { height: 34px; }
.bs-maps { align-self: flex-start; padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .15s; }
.bs-maps:hover { border-color: var(--tn-ac, var(--pink)); } .bs-maps.none { color: #ffc857; border-color: color-mix(in srgb, #ffc857 45%, var(--line)); }
.tn-ent[draggable="true"], .bs-seed[draggable="true"] { cursor: grab; } .tn-ent { border-radius: 6px; }
.tn-ent.over, .bs-seed.over { outline: 2px dashed var(--tn-ac, var(--pink)); outline-offset: 3px; } .tn-ent.dragging, .bs-seed.dragging { opacity: .4; }
.bs-dragging .tn-ent:not(.dragging) { background: color-mix(in srgb, var(--tn-ac, var(--pink)) 10%, transparent); }
.bs-seedl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bs-seed { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); } .bs-seed b { width: 26px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tn-bsbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; } .tn-bsbox p { max-width: 64ch; margin: 4px 0 0; }
.tn-bs-open { display: flex; justify-content: flex-end; margin-bottom: 8px; }
/* the bracket page's panels (added in the studio): a grid six columns wide, each panel a third, half or all of it */
.tn-panels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 14px 0; } .tn-panels:empty { display: none; } .tn-panels .tn-box { margin: 0; }
.tn-pn { grid-column: span 3; min-width: 0; } .tn-pn.third { grid-column: span 2; } .tn-pn.full { grid-column: 1 / -1; } .tn-pn .tn-box-h { margin-bottom: 10px; }
.tn-pn .tn-pool { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 0; } .tn-pn .tn-rounds-view { margin-bottom: 8px; }
.tn-pn.pn-picture { padding: 8px; } .tn-pn.pn-picture .tn-box-h { margin: 6px 8px 10px; } .tn-pn-pic { display: block; width: 100%; height: auto; border-radius: 16px; }
.tn-sch { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 2px 12px; align-items: baseline; padding: 8px 10px; border-radius: 12px; } .tn-sch + .tn-sch { border-top: 1px solid var(--line); }
.tn-sch > small { grid-column: 2; } .tn-sch-t { font-size: 13px; font-variant-numeric: tabular-nums; } .tn-sch[data-match] { cursor: pointer; transition: background-color .15s; } .tn-sch[data-match]:hover { background: var(--surface); }
@media (max-width: 760px) { .tn-pn, .tn-pn.third { grid-column: 1 / -1; } }
/* the studio: the bar that adds them, a panel picked to change it (its insides only shown), its tools, its editor on the side */
.bs-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.bs .tn-pn { position: relative; cursor: pointer; } .bs .tn-pn > :not(.bs-pn-tools) { pointer-events: none; } .bs .tn-pn.sel { outline: 2px solid var(--tn-ac, var(--pink)); outline-offset: 2px; }
.bs-pn-tools { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--panel); opacity: 0; transition: opacity .15s; }
.bs .tn-pn:hover .bs-pn-tools, .bs .tn-pn:focus-within .bs-pn-tools, .bs .tn-pn.sel .bs-pn-tools { opacity: 1; } .bs-pn-tools .btn { min-width: 30px; padding: 3px 8px; }
.bs-ped:empty { display: none; } .bs-pe { margin: 0; } .bs-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-seg .chip.active { background: color-mix(in srgb, var(--tn-ac, var(--pink)) 16%, transparent); border-color: var(--tn-ac, var(--pink)); color: var(--text); }
.bs-pe-pic { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .bs-pe-pic img { width: 100%; max-height: 160px; object-fit: contain; border-radius: 10px; background: var(--surface); }
@media (hover: none) { .bs-pn-tools { opacity: 1; } }
@media (max-width: 900px) { .bs-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; } .bs-side { max-height: 42vh; border-left: 0; border-top: 1px solid var(--line); } .bs-head-sub { display: none; } }
/* Sync stats (S, watch.js drawStats): a small panel in the picture's corner, over it, not in the way of clicks */
.th-stats { position: absolute; top: 12px; left: 12px; z-index: 5; max-width: min(460px, calc(100% - 24px)); padding: 9px 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(21, 15, 19, .86); color: var(--text); font-size: 12px; line-height: 1.35; font-variant-numeric: tabular-nums; pointer-events: none; }
.th-stats b { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .02em; }
.th-stats dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 0; } .th-stats dt { color: var(--muted); } .th-stats dd { margin: 0; color: #e9ddd5; }

/* ---- Find maps (map-finder.js): one window for every place that takes maps — rooms, playlists, the map studio, banners, the ranked pool ---- */
.mf { width: min(1040px, calc((100vw - 32px) / var(--zall, 1))); height: min(820px, calc((100vh - 48px) / var(--zall, 1))); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); overflow: hidden; }
.mf[open] { display: flex; flex-direction: column; animation: mf-up .22s cubic-bezier(.2, 0, 0, 1); } .mf::backdrop { background: rgba(8, 5, 7, .72); }
@keyframes mf-up { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.mf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.mf-head h2 { margin: 0; font-family: var(--font-head); font-size: 20px; text-wrap: balance; } .mf-hint { margin: 4px 0 0; max-width: 70ch; }
.mf-x { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; } .mf-x:hover { background: var(--surface); color: var(--text); } .mf-x .i { width: 20px; height: 20px; }
.mf-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 20px; }
.mf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mf-q { max-width: none; flex: 1 1 200px; }
.mf-status .seg-btn { padding: 6px 11px; font-size: 13px; }
.mf-range { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.mf-range b { color: var(--text); margin-right: 2px; } .mf-stars b { color: var(--gold); }
.mf-range input { width: 66px; height: 34px; padding: 0 8px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.mf-ftog { display: inline-flex; align-items: center; gap: 6px; } .mf-ftog .i { width: 15px; height: 15px; } .mf-ftog[aria-expanded="true"] { background: var(--surface-2); }
.mf-fn { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: var(--on-pink); font-style: normal; font-size: 11px; font-weight: 800; } .mf-fn[hidden] { display: none; }
.mf-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: 100%; padding: 8px 10px; border-radius: 12px; background: var(--surface); } .mf-more[hidden] { display: none; }
.mf-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; scrollbar-width: thin; }
.mf-r { display: grid; grid-template-columns: auto 72px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 6px 10px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; transition: background-color .12s, border-color .12s; }
.mf-r:hover, .mf-r:focus-visible { background: var(--surface); outline: none; } .mf-r:focus-visible { border-color: var(--pink); }
.mf-r.on { background: color-mix(in srgb, var(--pink) 14%, transparent); border-color: color-mix(in srgb, var(--pink) 45%, transparent); }
.mf-r.had { cursor: default; opacity: .55; }
.mf-ck { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 7px; color: transparent; } .mf-ck .i { width: 14px; height: 14px; }
.mf-r.on .mf-ck { background: var(--pink); border-color: var(--pink); color: var(--on-pink); } .mf-r.had .mf-ck { border-style: dashed; }
.mf-cv { width: 72px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.mf-rt { display: flex; flex-direction: column; min-width: 0; } .mf-rt b, .mf-rt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mf-rt small { color: var(--muted); }
.mf-rn { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; } .mf-rn .star { min-width: 0; font-size: 14px; } .mf-rn small { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mf-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 76px; }
.mf-tags i { padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-style: normal; font-size: 11px; font-weight: 700; }
.mf-tags .mf-had { background: color-mix(in srgb, #5bd38a 22%, transparent); color: #8ff0b4; }
.mf-plus { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; } .mf-plus:hover { border-color: var(--pink); color: var(--pink); }
.mf-msg { margin: 10px 4px; } .mf-err { color: #ff9a9a; } .mf-next { align-self: center; margin: 8px 0; }
.mf-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.mf-picked { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; } .mf-picked > b { margin-right: 4px; white-space: nowrap; }
.mf-chip { display: inline-flex; align-items: center; gap: 2px; flex: none; max-width: 240px; padding: 3px 4px 3px 10px; cursor: default; } .mf-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-unpick { padding: 0 5px; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; } .mf-unpick:hover { color: var(--pink); }
.mf-acts { display: flex; align-items: center; gap: 8px; flex: none; }
/* covers (a banner): a tile for each set */
.mf-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: max-content; gap: 10px; align-content: start; } /* (rows as tall as their tiles: else the rows of many share the list's height, a sliver each, the tiles over each other) */
.mf-tile { position: relative; aspect-ratio: 16 / 7; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2) var(--mf-cover) center / cover; color: #fff; text-align: left; cursor: pointer; }
.mf-tile span { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); } .mf-tile b, .mf-tile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mf-tile small { opacity: .8; }
.mf-tile:hover, .mf-tile:focus-visible { border-color: var(--pink); outline: none; } .mf-covers .mf-msg, .mf-covers .mf-next { grid-column: 1 / -1; }
/* in a page's own place (the map studio's left side) */
.mf-panel { display: flex; flex-direction: column; min-height: 0; } .mf-panel .mf-list { flex: 1; } .mf-panel .mf-r { grid-template-columns: 56px minmax(0, 1fr) auto auto auto; } .mf-panel .mf-cv { width: 56px; height: 34px; }
@media (max-width: 640px) {
  .mf { width: calc(100vw / var(--zall, 1)); height: calc(100dvh / var(--zall, 1)); max-width: none; max-height: none; border-radius: 0; }
  .mf-head, .mf-body, .mf-foot { padding-left: 12px; padding-right: 12px; }
  .mf-r { grid-template-columns: auto 52px minmax(0, 1fr) auto; gap: 10px; } .mf-cv { width: 52px; height: 32px; } .mf-tags, .mf-rn small { display: none; }
  .mf-foot { flex-wrap: wrap; } .mf-acts { width: 100%; justify-content: flex-end; }
}
