:root {
  color-scheme: dark;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  --bg: #100e15;
  --rail: #15111c;
  --surface: #1b1524;
  --line: #352b40;
  --text: #f5eef7;
  --muted: #bcafc6;
  --pink: #f58bbd;
  --lime: #e4f29a;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
h2 { font-size: 1.125rem; line-height: 1.3; }
button, .button { border: 0; border-radius: 7px; padding: 8px 12px; font: inherit; font-size: .875rem; font-weight: 650; color: var(--text); background: #35283f; cursor: pointer; }
button:hover, .button:hover { background: #483450; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: 10px; transform: translateY(-150%); z-index: 4; background: var(--surface); padding: 8px 12px; }
.skip:focus { transform: none; }
.muted { color: var(--muted); }
.shell { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: 100vh; max-width: 1900px; margin: auto; }
.sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; overflow: auto; display: flex; flex-direction: column; padding: 24px 18px 18px; border-right: 1px solid var(--line); background: var(--rail); }
.brand { display: flex; gap: 12px; align-items: center; padding: 2px 6px 24px; font-size: 1rem; line-height: 1; font-weight: 900; letter-spacing: .1em; }
.brand-icon { width: 31px; height: 31px; border-radius: 50%; border: 2px solid var(--pink); position: relative; }
.brand-icon::before, .brand-icon::after { content: ''; position: absolute; background: var(--pink); inset: 12px 3px; transform: rotate(45deg); }
.brand-icon::after { transform: rotate(-45deg); }
.profile-sidebar { text-align: center; padding: 20px 4px; border-block: 1px solid var(--line); }
.profile-avatar { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 10px; border: 2px solid var(--pink); border-radius: 26px; overflow: hidden; background: #432842; color: var(--pink); font-size: 1.35rem; font-weight: 800; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.125rem; font-weight: 750; overflow-wrap: anywhere; }
.profile-pp { color: var(--pink); font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-rank, .sidebar-mode, .topbar-status { color: var(--muted); font-size: .875rem; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 14px 0 0; }
.profile-stats dt { color: var(--muted); font-size: .875rem; }
.profile-stats dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.login { display: inline-block; margin-top: 14px; }
.side-nav { display: grid; gap: 3px; margin-top: 16px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: .925rem; }
.side-nav a:hover, .side-nav a:focus-visible { background: #2e2237; color: var(--text); }
.side-nav a span { color: var(--pink); width: 16px; text-align: center; }
.sidebar-mode { margin-top: auto; padding: 18px 8px 0; }
.mode-dot, #online::before { display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--lime); border-radius: 50%; }
main { min-width: 0; }
.topbar { min-height: 65px; padding: 14px 32px; border-bottom: 1px solid var(--line); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 8px 20px; }
.topbar-title { font-weight: 750; }
.topbar-status { display: flex; flex-wrap: wrap; gap: 7px 18px; align-items: center; }
#online { color: var(--text); }
#online::before { content: ''; }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); padding: 26px 32px 54px; gap: 34px; }
.main-column, .right-column { min-width: 0; }
.main-column { display: grid; align-content: start; gap: 26px; }
.feed-panel { min-width: 0; scroll-margin-top: 18px; }
.feed-head, .section-head { display:flex; justify-content:space-between; align-items:baseline; gap: 8px; flex-wrap:wrap; }
.section-head p { font-size: .875rem; color: var(--muted); }
.tabs { display:flex; flex-wrap:wrap; gap: 6px; margin: 10px 0 12px; }
.tabs button { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.tabs button.active { background: #3e2742; color: var(--pink); border-color: #784867; }
.row { display:flex; align-items:center; justify-content:space-between; gap: 10px; border-top: 1px solid var(--line); padding: 9px 0; }
.row > :first-child { min-width: 0; overflow-wrap: anywhere; }
.row strong { white-space: nowrap; color: var(--pink); font-variant-numeric: tabular-nums; }
.score-row a, .map-link { text-decoration: underline; text-underline-offset: 3px; }
.score-row .muted, .row, .form-status { font-size: .875rem; }
.pinned { padding: 9px 12px 0; margin-bottom: 10px; border-left: 2px solid var(--pink); background: #271b2f; border-radius: 0 7px 7px 0; }
.pinned > strong,.daily-leader { color: var(--pink); }
.pinned .row { margin-top: 5px; }
#live-feed > p, #leaderboard > p, #members > p, #scores > p, #history > p { padding: 10px 0; }
.daily-map-widget { position: relative; isolation: isolate; display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap: 16px; min-height: 145px; padding: 16px 18px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.daily-cover,.daily-map-widget::before { position:absolute; inset:0; width:100%; height:100%; }
.daily-cover { object-fit:cover; z-index:-2; }
.daily-map-widget::before { content:''; z-index:-1; background:linear-gradient(90deg,#18121eed 15%,#18121ea4 74%,#18121e78); }
.daily-content { min-width: 0; max-width: 100%; }
.daily-content h2 { margin-bottom: 5px; }
#daily-card > .map-link,.daily-leader { overflow-wrap: anywhere; }
.daily-map-stats { display:flex; flex-wrap:wrap; gap: 5px; margin-top: 5px; font-size:.875rem; }
.daily-map-stats span { background: #18121ead; border: 1px solid #6a5873; border-radius: 5px; padding: 0 6px; }
.daily-message { white-space:pre-wrap; overflow-wrap:anywhere; margin-top: 6px; }
#daily-card .daily-message { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.daily-actions { display:flex; flex-wrap:wrap; gap: 6px; }
.daily-actions button:first-child { background: var(--pink); color: #24121e; }
.right-column { border-left: 1px solid var(--line); padding-left: 22px; display: grid; align-content: start; gap: 24px; }
.highlights { padding-block: 12px; border-block: 1px solid var(--line); display:grid; gap: 13px; }
.highlights article { display:grid; grid-template-columns: 25px minmax(0,1fr); gap: 8px; }
.highlight-symbol { font-size: 1.25rem; line-height:1; color: var(--lime); }
.highlights h2 { font-size: .975rem; }
.highlights p { color: var(--muted); font-size: .875rem; margin-top: 3px; }
.highlights .row { border: 0; padding: 4px 0 0; }
.members-section h2, .profile-activity h2 { margin-bottom: 8px; }
.profile-activity { display: grid; grid-template-columns:1fr 1fr; gap: 22px; border-top:1px solid var(--line); padding-top: 16px; }
.profile-activity article { min-width: 0; }
#scores, #history, #live-feed { max-height: 440px; overflow:auto; padding-right: 4px; }
form { display:flex; flex-wrap:wrap; align-items:end; gap: 10px; padding: 10px 0; }
label { font-size: .875rem; }
form label { display:grid; gap: 4px; }
input, textarea, select { font: inherit; max-width: 100%; padding: 6px 8px; color: inherit; background: #21182b; border: 1px solid #6f5c80; border-radius: 6px; }
#feed-settings input[type=number] { width: 7rem; }
.mods-hint { max-width: 23rem; font-size: .875rem; }
dialog { width:min(35rem,calc(100% - 32px)); max-height:85vh; padding:18px; color:inherit; background:var(--surface); border:1px solid #6f5c80; border-radius:12px; }
dialog::backdrop { background:#0e0914bf; }
.dialog-head { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom: 12px; }
#daily-form label { width:100%; }
#daily-range { margin: 4px 0 8px; }
@media(max-width:1150px) {
  .shell { grid-template-columns: 185px minmax(0,1fr); }
  .desk { padding-inline: 20px; gap: 19px; grid-template-columns: minmax(0,1fr) minmax(215px,265px); }
  .right-column { padding-left: 14px; }
  .topbar { padding-inline: 20px; }
}
@media(max-width:950px) {
  .desk { grid-template-columns: 1fr; }
  .right-column { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}
@media(max-width:620px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 0 10px; }
  .profile-sidebar { display:flex; align-items:center; justify-content:space-between; gap: 8px; padding: 10px 0; text-align:left; }
  #profile { display:grid; grid-template-columns: 44px 1fr; gap: 0 8px; align-items:center; }
  .profile-avatar { width:44px; height:44px; margin:0; border-radius:14px; grid-row: span 3; }
  .profile-pp{font-size:1rem;} .profile-rank{font-size:.875rem;}
  .profile-stats,.sidebar-mode { display:none; }
  .login { margin:0; }
  .side-nav { display:flex; gap:3px; overflow:auto; margin: 6px 0 0; }
  .side-nav a { flex:none; padding: 5px 7px; }
  .desk,.topbar { padding-inline: 14px; }
  .profile-activity { grid-template-columns: 1fr; }
}

.pp-ranges { margin: 0 0 14px; padding: 8px 12px 12px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
.pp-ranges legend { padding: 0 4px; color: var(--muted); font-size: .875rem; }
.pp-range-inputs { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.pp-range-inputs label { display: flex; align-items: center; gap: 8px; }
.pp-range-inputs input { width: 7rem; }
.pp-track { position: relative; height: 28px; margin-top: 6px; cursor: pointer; }
.pp-track::before { content: ''; pointer-events: none; position: absolute; inset: 12px 8px; border-radius: 5px;
  background: linear-gradient(to right,#483952 var(--pp-low,0%),var(--pink) var(--pp-low,0%),var(--pink) var(--pp-high,100%),#483952 var(--pp-high,100%)); }
.pp-track input { appearance: none; pointer-events: none; position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.pp-track input:focus { z-index: 1; }
.pp-track input::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff2fa; background: var(--pink); cursor: ew-resize; }
.pp-track input::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff2fa; background: var(--pink); cursor: ew-resize; }
.pp-track input:focus-visible { outline: 2px solid #fff2fa; outline-offset: 3px; border-radius: 6px; }

/* Theme: worn black and magenta. Decorative edges share the same box as other themes. */
:root {
  --bg: #0e0b10;
  --rail: #151018;
  --surface: #18111b;
  --line: #392833;
  --text: #f5ecf1;
  --muted: #c1aab8;
  --pink: #ff559b;
  --lime: #8bd6a4;
  --frame-ink: #80415d;
  --avatar-ink: #ff71ab;
  --avatar-ornament: conic-gradient(from 13deg, transparent 0 11%, #ffe1ee 11.5% 12.5%, transparent 13% 29%, #ff71ab 30% 31%, transparent 32% 51%, #ffe1ee 52% 53%, transparent 54% 76%, #ff71ab 77% 78%, transparent 79%);
  --surface-edge: polygon(0 8px, 8px 0, 29% 0, 31% 1px, 40% 0, calc(100% - 12px) 0, 100% 11px, 100% calc(100% - 8px), calc(100% - 6px) 100%, 70% 100%, 68% calc(100% - 1px), 61% 100%, 9px 100%, 0 calc(100% - 9px));
}
body {
  background:
    radial-gradient(ellipse at 98% 0%, #49213638, transparent 35%),
    radial-gradient(ellipse at 0% 85%, #44213935, transparent 42%),
    repeating-linear-gradient(123deg,#ffffff03 0 1px,transparent 1px 5px),
    var(--bg);
}
.shell { grid-template-columns: 196px minmax(0,1fr); }
.sidebar { background: linear-gradient(170deg,#1d131e,#120d15 38%,#140e16); isolation: isolate; overflow: hidden auto; }
.sidebar::after { content: ''; pointer-events: none; position: absolute; z-index: -1; left: -45px; bottom: 76px; width: 280px; height: 110px; transform: rotate(-24deg); opacity: .46; background: repeating-linear-gradient(145deg,transparent 0 10px,#a64c6b24 10px 11px,transparent 11px 20px); }
.brand { color: #ffeef6; letter-spacing: .13em; }
.brand-icon { border-color: var(--pink); transform: rotate(-12deg); }
.profile-avatar { position: relative; isolation: isolate; width: 88px; height: 88px; border-radius: 50%; overflow: visible; border: 1px solid var(--avatar-ink); background: #351e35; box-shadow: 0 0 0 4px #a6476151, 0 0 18px #ff559b25; }
.profile-avatar img { border-radius: inherit; }
.profile-avatar::after { content: ''; pointer-events: none; position: absolute; inset: -11px; border-radius: 50%; z-index: 1; background: var(--avatar-ornament); mask: radial-gradient(transparent 62%,black 63%); transform: rotate(-13deg); }
.topbar { position: relative; isolation: isolate; min-height: 60px; padding-inline: 25px; overflow: hidden; background: #150f17; }
.topbar-title { color: #ffc0d9; }
.desk { grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); gap: 16px; padding: 18px 24px 48px; align-items: start; }
.main-column,.right-column { display: contents; }
.feed-panel { grid-area: 1 / 1; }
.replay-panel { grid-area: 1 / 2; align-self: stretch; }
.daily-map-widget { grid-area: 2 / 1; }
.rank-section { grid-area: 2 / 2; }
.profile-activity { grid-area: 3 / 1; }
.community-details { grid-area: 3 / 2; }
.feed-panel,.replay-panel,.daily-map-widget,.rank-section,.profile-activity,.community-details {
  min-width: 0; border: 1px solid var(--frame-ink); border-radius: 0; clip-path: var(--surface-edge); background-color: var(--surface);
}
.feed-panel,.replay-panel,.rank-section,.profile-activity,.community-details { padding: 14px; }
.feed-panel,.replay-panel { min-height: 320px; }
.feed-panel { border-top-color: #af4a73; }
.feed-head { border-bottom: 1px solid var(--line); padding-bottom: 9px; gap: 5px 12px; }
.feed-head h2::before,.replay-panel h2::before,.daily-content h2::before { content: '✦'; margin-right: 7px; color: var(--pink); }
.feed-tabs { margin: 0; }
.tabs button { padding: 5px 8px; }
.tabs button.active { background: #452034; color:#ffb3d1; border-color:#89516b; }
.pp-ranges,#feed-settings { margin-top: 10px; }
#feed-pinned { margin-top: 8px; }
.pinned { background: #321827; padding: 6px 9px 0; }
.score-table-head,.feed-score-row {
 display: grid; grid-template-columns: minmax(105px,.9fr) minmax(140px,1.9fr) minmax(50px,.55fr) 64px 52px;
 align-items: center; gap: 8px; padding: 7px 4px;
}
.score-table-head { color: var(--muted); font-size: .875rem; border-bottom: 1px solid var(--line); }
.score-table-head > :nth-child(4),.feed-score-row > :nth-child(4),.score-table-head > :last-child,.feed-score-row > :last-child { text-align: right; }
.feed-score-row .map-link,.feed-player { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-mods,.feed-time { font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-pp { color: var(--pink); font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.feed-score-row + .feed-score-row { border-top: 1px solid var(--line); }
@keyframes feed-arrive { from { opacity: 0; transform: translateY(-7px); background-color: color-mix(in srgb, var(--pink) 24%, var(--surface)); } to { opacity: 1; transform: translateY(0); background-color: var(--feed-row-background, transparent); } }
.feed-score-row.feed-enter { animation: feed-arrive .42s ease-out both; }
@media(prefers-reduced-motion: reduce) { .feed-score-row.feed-enter { animation: none; } }
.replay-screen { min-height: 210px; height: calc(100% - 36px); margin-top: 10px; display: grid; place-content: center; justify-items: center; gap: 7px; text-align: center; border: 1px solid #4e3344; background: radial-gradient(circle at center, #402135 0, #241623 42%,#130e16 84%); color: var(--muted); }
.replay-screen span { font-size: 2rem; color: var(--pink); line-height: 1; }
.daily-map-widget { min-height: 182px; }
.profile-activity { gap: 14px; }
.community-details { display: grid; gap: 13px; }
.highlights { padding-top: 0; border-top: 0; }
#leaderboard, #members { max-height: 250px; overflow: auto; }
@media(max-width:1250px) {
  .shell { grid-template-columns: 170px minmax(0,1fr); }
  .desk { padding-inline: 16px; gap: 12px; }
}
@media(max-width:1060px) {
  .desk { grid-template-columns: 1fr; }
  .feed-panel,.replay-panel,.daily-map-widget,.rank-section,.profile-activity,.community-details { grid-area: auto; }
  .replay-panel { min-height: auto; }
  .replay-screen { min-height: 135px; height: auto; }
}
@media(max-width:620px) {
  .shell { grid-template-columns: 1fr; }
  .profile-avatar { width: 44px; height: 44px; }
  .profile-avatar::after { inset: -5px; }
  .score-table-head,.feed-score-row { grid-template-columns: minmax(58px,.8fr) minmax(0,1.55fr) 61px; gap: 6px; }
  .score-table-head > :nth-child(3),.feed-score-row > :nth-child(3),.score-table-head > :last-child,.feed-score-row > :last-child { display: none; }
}


/* The upper and lower rows use independent column tracks. */
.shell { display: block; min-height: 100vh; max-width: 1900px; }
.topbar { min-height: 56px; padding: 8px 18px; }
.topbar .brand { padding: 0; gap: 8px; line-height: 1.1; }
.topbar .brand br { display: none; }
.topbar .brand br::after { content: ' '; }
.board { padding: 12px 16px 22px; display: grid; gap: 12px; }
.upper-board, .lower-board { display: grid; gap: 10px; min-width: 0; }
.upper-board { grid-template-columns: minmax(150px, .7fr) minmax(0, 2.95fr) minmax(0, 1.8fr); align-items: stretch; }
/* Match the upper replay track, including its 150px minimum profile column. */
.lower-board {
  --replay-width: min(calc((100% - 20px) * 1.8 / 5.45), calc((100% - 170px) * 1.8 / 4.75));
  grid-template-columns: minmax(0, 1fr) calc((100% - 20px) * .9 / 4.29) var(--replay-width);
  align-items: stretch;
}
.upper-board > *, .lower-board > * { grid-area: auto; }
.control-strip { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; padding: 4px 10px; border: 1px solid var(--frame-ink); background: var(--surface); }
.control-strip .feed-tabs { margin: 0; }
.control-strip .feed-tabs button { padding-block: 3px; }
.control-strip #pp-ranges { flex: 1 1 280px; margin: 0; padding: 4px 8px; }
.control-strip #pp-track { margin-top: 2px; }
.control-strip #feed-settings { margin: 0; padding: 4px 0; }
.board .profile-sidebar { color: var(--text); background: var(--rail); min-width: 0; padding: 14px 8px; border: 1px solid var(--frame-ink); clip-path: var(--surface-edge); }
.board .profile-avatar { width: 76px; height: 76px; margin: 2px auto 8px; }
.board .profile-stats { margin-top: 8px; }
.board .profile-rank { overflow-wrap: anywhere; }
.board .profile-sidebar .login { margin-top: 8px; }
.board .feed-panel, .board .replay-panel { min-height: 250px; padding: 10px; }
.board .replay-panel { display: flex; flex-direction: column; }
.replay-stage { flex: 1; min-height: 165px; margin-top: 8px; display: grid; place-items: center; container-type: size; }
.board .replay-screen {
  width: min(100%, calc(100cqh * 16 / 9));
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  margin: 0;
}
.board #live-feed { max-height: 240px; }
.board .pinned { padding-top: 4px; font-size: .875rem; }
.board .pinned .row { padding: 5px 0; }
.board .score-table-head, .board .feed-score-row { grid-template-columns: minmax(65px,.9fr) minmax(0,1.8fr) minmax(40px,.5fr) 64px 43px; gap: 6px; }
.board .feed-pp { font-size: .875rem; }
.board .daily-map-widget { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-content: start; gap: 8px 10px; padding: 10px; background: var(--surface); min-height: 0; }
.board .daily-map-widget:has(.daily-top:not([hidden])) { grid-template-rows: auto minmax(0,1fr); }
.board .daily-map-widget::before {
  content: '';
  background: linear-gradient(90deg, #140e18a8, #140e18cf 54%, #140e18ed);
}
.daily-head, .daily-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 5px 9px; flex-wrap: wrap; }
.daily-top { padding-bottom: 5px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.daily-top strong { color: var(--pink); overflow-wrap: anywhere; }
.daily-poster { align-self: stretch; display: grid; grid-template-rows: minmax(100px, 1fr) auto; gap: 6px; min-width: 0; }





.daily-play { text-align: center; color:#240c17; background:var(--pink); }
.daily-play:hover { background:#ff8db9; }
.daily-mini { min-width: 0; }
.daily-mini h3 { margin: 0 0 3px; font-size: .875rem; }
.daily-mini select { width: 100%; padding: 3px 4px; font-size: .875rem; margin: 0 0 3px; }
.daily-mini-list .row { padding: 4px 0; }
.daily-mini-list > p { font-size: .875rem; }
.lower-board .rank-section, .chat-panel { padding: 10px; }
.chat-panel { min-width: 0; display: grid; grid-template-rows: auto 1fr; min-height: 180px; border: 1px solid var(--frame-ink); clip-path: var(--surface-edge); background: var(--surface); }
.chat-placeholder { display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .875rem; }
.extra-sections { border-top: 1px solid var(--line); padding: 5px 4px 0; }
.extra-sections > summary { cursor: pointer; color: var(--muted); font-size: .875rem; }
.extra-sections[open] > summary { margin-bottom: 8px; }
.extra-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
@media(max-width:1050px) {
  .upper-board { grid-template-columns: 145px minmax(0, 1.9fr) minmax(0, 1fr); }
  .lower-board {
    --replay-width: calc((100% - 165px) / 2.9);
    grid-template-columns: minmax(0,1fr) calc((100% - 20px) / 3.7) var(--replay-width);
  }
  .board .score-table-head, .board .feed-score-row { grid-template-columns: minmax(55px,.9fr) minmax(0,1.45fr) 60px; }
  .board .score-table-head > :nth-child(3), .board .feed-score-row > :nth-child(3), .board .score-table-head > :last-child, .board .feed-score-row > :last-child { display: none; }
}
@media(max-width:820px) {
  .upper-board { grid-template-columns: 130px minmax(0,1fr); }
  .control-strip { grid-column: 1 / -1; }
  .board .replay-panel { grid-column: 1 / -1; min-height: auto; }
  .replay-stage { display: block; min-height: 0; container-type: normal; }
  .board .replay-screen { width: 100%; }
  .lower-board { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .board .daily-map-widget { grid-column: 1 / -1; }
}
@media(max-width:520px) {
  .board { padding: 8px; gap: 8px; }
  .upper-board, .lower-board, .extra-grid { grid-template-columns: 1fr; }
  .board .profile-sidebar { padding: 8px 12px; }
  .board .profile-avatar { width: 44px; height: 44px; margin: 0; }
  .board .profile-sidebar .login { margin: 0; }
  .board .feed-panel { min-height: 140px; }
}


.board .profile-sidebar .login { white-space: nowrap; padding-inline: 8px; }
.board .pinned .score-row { padding-block: 4px; }
.board .score-table-head, .board .feed-score-row { padding-block: 6px; }
.board .rank-tabs { margin-block: 6px 8px; }
#daily-results { margin-top: 4px; padding-block: 5px; }

.shell { display: flex; flex-direction: column; min-height: 100dvh; }
.board { flex: 1; grid-template-rows: auto minmax(min-content,1fr); }
.board .profile-sidebar { display: block; min-width: 0; padding: 14px 9px; }
.topbar-status { margin-left: auto; justify-content: flex-end; gap: 6px 12px; }
.topbar-status .login { margin: 0; white-space: nowrap; }
.profile-top { margin-top: 10px; padding-top: 7px; border-top: 1px solid var(--line); text-align: left; }
.profile-top h3 { margin: 0 0 3px; font-size: .875rem; }
.profile-top .row { font-size: .8125rem; gap: 5px; padding: 3px 0; }
.profile-top .row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-top .row:first-of-type { border: 0; }
.profile-top > p { font-size: .875rem; }
#profile-details { margin-top: 6px; padding: 3px 7px; font-size: .8125rem; }
.board .daily-map-widget { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-content: start; gap: 8px 12px; }
.board .daily-map-widget::before { content: ''; background: linear-gradient(90deg, #160f18a8, #160f18e0 57%, #160f18ed); }
.board .daily-cover { object-position: center; }
.daily-head { grid-row: 1; }
.daily-top { grid-row: 2; background: #271322bd; padding: 4px 7px; border-left: 2px solid var(--pink); }
.daily-poster { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
#daily-card .daily-message { display: block; max-height: 5rem; overflow: auto; padding-right: 3px; }
.daily-mini h3 { font-size: .975rem; margin-bottom: 5px; }
.daily-pp-ranges { margin: 0 0 5px; padding: 3px 5px; background: #160f1882; }
.daily-pp-ranges legend { font-size: .8125rem; }
.daily-pp-ranges .pp-range-inputs { gap: 2px 6px; justify-content: space-between; }
.daily-pp-ranges .pp-range-inputs label { gap: 3px; font-size: .8125rem; }
.daily-pp-ranges .pp-range-inputs input { width: 4rem; padding: 2px 3px; }
.daily-pp-ranges .pp-track { margin-top: 2px; }
.daily-mini-list { max-height: 155px; overflow: auto; padding-right: 3px; }
#profile-dialog .profile-activity, #profile-dialog .community-details { border: 0; clip-path: none; padding: 0; margin-top: 12px; }
#profile-dialog > .dialog-head {
  position: sticky; top: -18px; z-index: 1; padding-block: 4px;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center;
}
#profile-dialog > .dialog-head h2 { grid-column: 2; text-align: center; }
#profile-dialog > .dialog-head button { grid-column: 3; justify-self: end; }
@media (min-width: 821px) {
  .board {
    grid-template-rows: minmax(min-content,1fr) minmax(min-content,36dvh);
    padding-bottom: max(22px,5dvh);
  }
  .upper-board { grid-template-rows: auto minmax(min-content,1fr); }
  .upper-board > .profile-sidebar { grid-column: 1; grid-row: 1 / span 2; }
}
@media (max-width: 620px) {
  .board #profile { display: block; }
  .board .profile-avatar { margin-inline: auto; }
  .board .profile-sidebar { text-align: center; }
  .board .profile-stats { display: grid; }
}
@media (max-width: 520px) {
  .board { grid-template-rows: auto auto; }
  .board .daily-map-widget { grid-template-columns: minmax(0,1fr); }
  .board .daily-head, .board .daily-top { grid-row: auto; }
  .topbar-status { margin-left: 0; justify-content: flex-start; }
}


/* Filter options occupy a separate layer so selecting a feed cannot resize the board. */
.control-strip { position: relative; z-index: 2; }
.filter-slot { position: relative; flex: 1 1 0; min-width: 0; align-self: stretch; }
.control-strip #pp-ranges, .control-strip #feed-settings {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%); margin: 0; padding: 0; border: 0;
  display: flex; align-items: center; gap: 7px; flex-wrap: nowrap;
}
.control-strip #pp-ranges legend { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.control-strip .pp-range-inputs { flex: 0 0 auto; gap: 6px; flex-wrap: nowrap; }
.control-strip .pp-range-inputs input, .control-strip #feed-settings input[type=number] { width: 4.5rem; padding: 3px 4px; }
.control-strip #pp-track { margin: 0; flex: 1 1 80px; min-width: 46px; }
.control-strip #feed-settings label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.control-strip #feed-settings button { flex: none; padding: 4px 7px; }
.control-strip #feed-settings .form-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(45px,1fr)); gap: 6px; }
#mod-picker {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--dashboard-border, var(--line));
  border-radius: 8px;
  box-shadow: 0 6px 18px #0007;
}
#mod-picker .dialog-head { align-items: center; margin-bottom: 5px; }
#mod-picker h2 { margin: 0; font-size: 1rem; }
#mod-picker p { margin: 0; font-size: .82rem; }
#mod-options { display: grid; gap: 12px; padding-block: 12px; }
.mod-icon { min-height: 34px; padding: 4px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mod-icon[aria-pressed="true"] { border-color: var(--pink); color: #ffb1d0; background: #52213c; }
.board .daily-map-widget {
  grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr);
  grid-template-rows: minmax(0,1fr);
  align-content: stretch;
  gap: 7px 10px;
}
.board .daily-map-widget:has(.daily-top:not([hidden])) { grid-template-rows: auto minmax(0,1fr); }
.board .daily-map-widget::before {
  content: '';
  background: linear-gradient(90deg, #140e18a8, #140e18cf 54%, #140e18ed);
}
.board .daily-top { grid-row: auto; justify-content: flex-start; margin: -10px -10px 0; padding: 6px 10px; border-left: 0; background: #301829; }
.board .daily-top strong { margin-left: auto; }
.board .daily-head { align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.daily-head button { padding: 4px 7px; }
.daily-poster { justify-content: flex-start; min-width: 0; min-height: 0; }
.daily-poster .daily-play { margin-top: auto; align-self: flex-start; min-width: min(100%, 8rem); }


#daily-note { overflow-wrap: anywhere; max-height: 3.2em; overflow: auto; font-size: .875rem; color: var(--muted); }
.daily-mini { align-self: stretch; min-height: 0; display: flex; flex-direction: column; }
.daily-mini-list { flex: 1; min-height: 0; max-height: none; }
.daily-result { display: grid; grid-template-columns: 19px minmax(0,1fr) 56px 58px 49px; align-items: center; gap: 4px;
  padding: 4px 3px; border-bottom: 1px solid var(--line); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.daily-result span:nth-child(2) { overflow-wrap: anywhere; }
.daily-result > :nth-child(n+3) { text-align: right; white-space: nowrap; }
.daily-result strong, .daily-result.current-player { color: var(--pink); }
.daily-result.current-player { background: #341a2d; }
.daily-table-head { color: var(--muted); }
.daily-filter-head { display: flex; gap: 3px 6px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.daily-filter-head button { padding: 2px 6px; margin-bottom: 4px; }
@media (max-width: 1250px) {
  .daily-result { grid-template-columns: 16px minmax(0,1fr) 47px; }
  .daily-result > :nth-child(n+4) { display: none; }
}
@media (max-width: 1150px) {
  .filter-slot { display: contents; }
  .control-strip #pp-ranges, .control-strip #feed-settings {
    top: calc(100% + 4px); left: auto; right: 0; transform: none; width: min(100%, 462px);
    padding: 7px; border: 1px solid var(--frame-ink); background: var(--surface);
    box-shadow: 0 6px 12px #0009; flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  .board .daily-map-widget, .board .daily-map-widget:has(.daily-top:not([hidden])) {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .daily-mini-list { max-height: 150px; }
}


.board .feed-panel { display: flex; flex-direction: column; }
.board #live-feed { flex: 1; min-height: 0; max-height: none; contain: size; }
@media (max-width: 820px) {
  .board .feed-panel { min-height: 315px; }
}

.daily-poster .daily-summary {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
  border: 1px solid #73506a;
  border-radius: 6px;
  padding: 10px 11px;
  background: #171019e0;
}
.daily-summary .daily-head { gap: 4px; padding-bottom: 5px; }
.daily-summary .daily-head h2 { font-size: 1.15rem; }
.daily-summary #daily-card > .map-link {
  display: block;
  line-height: 1.3;
  font-size: clamp(1rem, 1.12vw, 1.35rem);
  font-weight: 720;
  text-decoration-color: #b7799a;
}
.map-stat-grid {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  grid-template-columns: repeat(auto-fit,minmax(min(100%, 58px),1fr));
  font-variant-numeric: tabular-nums;
}
.map-stat-grid > div { min-width: 0; padding: 3px 4px; background: #3924389e; border-radius: 4px; }
.map-stat-grid dt { color: #dec1d1; font-size: .8125rem; }
.map-stat-grid dd { margin: 0; font-size: 1.05rem; font-weight: 720; white-space: nowrap; }
.map-difficulty { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 5px; }
.map-difficulty > div { background: #261b2b; }
#daily-note { margin-top: auto; }
.daily-mini .daily-filter-head { align-items: baseline; margin-top: -2px; }
.daily-mini .daily-filter-head h3, .daily-mini .daily-filter-head button { margin-bottom: 1px; }
.daily-mini .daily-pp-ranges { margin-top: 0; padding-top: 1px; }
@media (max-width: 1250px) {
  .daily-poster .daily-summary { padding-inline: 7px; }
  .map-stat-grid dd { font-size: 1rem; }
  .map-difficulty { grid-template-columns: repeat(auto-fit,minmax(min(100%, 29px),1fr)); }
}


.daily-highlights { min-width: 0; display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); gap: 8px; }
.daily-highlights article { min-width: 0; overflow: auto; padding: 8px 10px; border: 1px solid var(--frame-ink); clip-path: var(--surface-edge); background: var(--surface); }
.daily-highlights h2 { font-size: .975rem; margin-bottom: 5px; }
.daily-highlights .row { border: 0; padding: 2px 0; }
.daily-highlights p { font-size: .875rem; }
.daily-limit { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.daily-limit select { width: auto; margin: 0; }
.board .daily-map-widget { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto minmax(92px,1fr); }
.board .daily-map-widget:has(.daily-top:not([hidden])) { grid-template-rows: auto auto minmax(92px,1fr); }
.board .daily-summary { flex: initial; padding: 6px 8px; }
.board .daily-poster { gap: 4px; }
.board .daily-pp-ranges .pp-track { height: 22px; }
.board .daily-pp-ranges .pp-track::before { inset-block: 9px; }
.board .daily-pp-ranges { margin-bottom: 3px; }
.board .map-stat-grid { margin-top: 3px; }
.board .map-stat-grid dd { font-size: .925rem; }
.board .daily-summary .daily-head { padding-bottom: 3px; }
.board .daily-summary #daily-card > .map-link { font-size: 1rem; }
.board .daily-result { grid-template-columns: 19px minmax(0,1fr) 54px 53px 45px; }
@media (min-width: 821px) {
  .lower-board {
    --rank-width: calc((100% - 20px) * .9 / 4.29);
    grid-template-columns: repeat(2,minmax(0,1fr)) var(--rank-width) var(--replay-width);
  }
}
@media (min-width: 821px) and (max-width: 1050px) {
  .lower-board { --rank-width: calc((100% - 20px) / 3.7); }
}
@media (max-width: 1250px) {
  .board .daily-result { grid-template-columns: 16px minmax(0,1fr) 47px; }
}
@media (max-width: 820px) {
  .board .daily-map-widget { grid-column: auto; }
}

.board .daily-map-widget {
  grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr);
  grid-template-rows: minmax(0,1fr);
  container-type: inline-size;
}
.board .daily-map-widget:has(.daily-top:not([hidden])) { grid-template-rows: auto minmax(0,1fr); }
.board .daily-map-widget::before { background: linear-gradient(90deg,#140e18ac,#140e18e8 74%); }
.daily-copy { min-height: 0; overflow: auto; }
.daily-copy .daily-head { border: 0; padding: 1px 0 6px; }
.daily-copy #daily-card > .map-link { display: block; font-size: 1.05rem; line-height: 1.3; font-weight: 720; }
.daily-plain-metrics { display: flex; flex-wrap: wrap; column-gap: 9px; row-gap: 3px; margin-block: 9px; font-size: .925rem; font-weight: 650; color: #ffe4ef; }
.daily-plain-metrics span { white-space: nowrap; }
.daily-copy #daily-note { margin: 0; }
.board .daily-poster .daily-play { min-width: min(100%,7rem); }
.daily-mini .daily-filter-head { justify-content: flex-end; }
.daily-mini h3 { margin-top: 5px; }
@container (max-width: 470px) {
  .board .daily-result { grid-template-columns: 16px minmax(0,1fr) 48px; }
  .daily-result > :nth-child(n+4) { display: none; }
}
@container (max-width: 285px) {
  .daily-pp-ranges .pp-range-inputs input { width: 3.2rem; }
}
@media (min-width: 821px) and (max-width: 1050px) {
  .board .daily-map-widget, .board .daily-map-widget:has(.daily-top:not([hidden])) {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto;
  }
}

@media (min-width: 821px) {
  .lower-board { grid-template-columns: minmax(0,1.9fr) minmax(0,1fr) var(--replay-width); }
}
.board .daily-map-widget {
  grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  grid-template-rows: auto minmax(0,1fr);
  gap: 6px 10px;
}
.board .daily-map-widget:has(.daily-top:not([hidden])) { grid-template-rows: auto auto minmax(0,1fr); }
.board .daily-layout-head { padding: 1px 0 4px; }
.board .daily-top { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto auto; column-gap: 10px; align-items: center; }
.board .daily-top strong { margin: 0; white-space: nowrap; }
.daily-top > span:nth-child(2) { overflow-wrap: anywhere; min-width: 0; }
.daily-lead-accuracy, .daily-lead-combo { white-space: nowrap; }
.daily-map-art { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 108px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #251927; }
.daily-map-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#140d18f2,#140d1838); }
.daily-map-art #daily-card .map-link { font-weight: 700; }
.daily-map-art .daily-plain-metrics { margin-block: 4px 0; }
.daily-map-summary { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.daily-map-summary #daily-own-score { color: var(--text); }
.daily-map-summary #daily-note { margin-top: 3px; }
.board .daily-poster .daily-play { align-self: stretch; }
.daily-toolbar { display: flex; align-items: end; gap: 4px 7px; flex-wrap: wrap; padding-bottom: 4px; }
.daily-toolbar .daily-pp-ranges { flex: 1 1 135px; margin: 0; }
.daily-toolbar .daily-limit { margin: 0; }
.daily-toolbar #daily-pp-reset { padding: 4px 6px; }
@media (max-width: 1050px) {
  .board .daily-map-widget, .board .daily-map-widget:has(.daily-top:not([hidden])) { grid-template-columns: 1fr; grid-template-rows: auto; }
}
@media (max-width: 820px) {
  .board .daily-map-widget { grid-column: 1 / -1; }
  .daily-highlights { min-height: 210px; }
}

.board .daily-layout-head { background: #301829; margin-inline: -10px; padding: 3px 10px 4px; gap: 4px 10px; }
.daily-head-actions { min-width: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.daily-range-caption { font-size: .75rem; color: var(--muted); line-height: 1.15; display: flex; justify-content: space-between; gap: 4px; }
.daily-head-buttons { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.daily-head-buttons button { padding: 1px 5px; font-size: .75rem; }
.board .daily-mini { background: #120d16a1; padding-inline: 5px; }

.daily-number-range { display: flex; flex-wrap: wrap; gap: 3px 6px; margin-top: 2px; }
.daily-number-range label { display: flex; align-items: center; gap: 3px; font-size: .75rem; }
.daily-number-range input { width: 4.1rem; padding: 1px 3px; font-size: .8125rem; border-color: #89516b; }

.board .daily-layout-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; }
#daily-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  grid-column: 1 / -1;
  grid-row: 1;
}
#daily-slots button {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 2px 6px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  font-size: .8rem;
}
#daily-slots button[aria-pressed="true"] {
  border-color: var(--pink);
  background: var(--theme-highlight, #4a253a);
}
.daily-slot-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-slot-detail { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.daily-slot-detail:empty { display: none; }
.daily-layout-head h2 { grid-column: 1; grid-row: 2; overflow-wrap: anywhere; }
#daily-heading-map { font-weight: 600; }
.daily-layout-head #daily-admin { grid-column: 2; grid-row: 2; }
.board .daily-layout-head { border-bottom: 0; }
.daily-layout-head .daily-head-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: flex-end;
  justify-self: stretch;
  margin-top: 3px;
  padding: 5px 5px 1px;
  border-top: 1px solid var(--line);
}
.daily-layout-head .daily-number-range input { width: 3.65rem; font-size: .75rem; }
.daily-layout-head .daily-number-range { align-items: center; margin: 0; font-size: .75rem; }
.daily-layout-head #daily-pp-reset { padding: 1px 5px; font-size: .75rem; }

.board .daily-map-widget:has(.daily-top:not([hidden])) { grid-template-rows: auto auto minmax(0,1fr); }
.board .daily-layout-head { grid-row: 1; border-bottom: 1px solid var(--line); }
.daily-leader-bar { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-inline: -10px; padding: 4px 10px; background: #301829; }
.daily-leader-bar:not(:has(.daily-top:not([hidden]))) { display: none; }
.board .daily-leader-bar .daily-top { flex: 1 1 230px; min-width: 0; margin: 0; padding: 0; border: 0; align-items: center; }
.daily-leader-bar .daily-head-actions { margin-left: auto; justify-content: flex-end; gap: 4px; }
.daily-leader-bar #daily-pp-bracket { max-width: 100%; padding: 1px 5px; font-size: .75rem; }
#daily-rank-tabs { display: flex; flex-wrap: nowrap; gap: 3px; margin-bottom: 4px; }
#daily-rank-tabs > button { padding-inline: clamp(2px, .3vw, 5px); font-size: clamp(.63rem, .72vw, .73rem); }
#daily-rank-tabs button { padding: 2px 5px; font-size: .73rem; border: 1px solid var(--line); }
:is(#daily-rank-options, #feed-pp-options) {
  position: fixed; inset: auto; margin: 0; min-width: 126px; padding: 4px;
  overflow-y: auto; overscroll-behavior: contain; color: var(--text); background: var(--surface);
  border: 1px solid var(--dashboard-border, var(--line)); border-radius: 6px; box-shadow: 0 6px 18px #0007;
}
:is(#daily-rank-options, #feed-pp-options) button { display: block; width: 100%; padding: 4px 7px; text-align: left; }
:is(#daily-rank-options, #feed-pp-options) button + button { margin-top: 3px; }
#daily-rank-tabs button { white-space: nowrap; }
#feed-pp-options button[aria-pressed="true"], #daily-rank-tabs button.active-range, #daily-rank-tabs button[aria-pressed="true"] { border-color: var(--pink); background: var(--theme-highlight, #4a253a); }
.daily-leader-bar #daily-pp-reset { padding: 1px 5px; font-size: .75rem; }
@media (max-width: 1050px) {
  .board .daily-map-widget:has(.daily-top:not([hidden])) { grid-template-rows: auto; }
}

.demo-chat { min-height: 0; max-height: min(250px, 28dvh); overflow: auto; margin-top: 8px; padding-right: 4px; }
.demo-chat-line { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 0 7px; padding: 5px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.demo-chat-line time { color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-chat-line strong { color: var(--pink); overflow-wrap: anywhere; }
.demo-chat-line > span { grid-column: 2; overflow-wrap: anywhere; }
.demo-replay { position: relative; align-self: stretch; justify-self: stretch; aspect-ratio: 16 / 9; margin: auto; width: min(100%, calc(100cqh * 16 / 9)); background: radial-gradient(ellipse at 48% 65%,#50203c,#170e1b 65%); border: 1px solid #6e425d; overflow: hidden; }
.demo-replay-caption { position:absolute; inset: 7px 10px auto; display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: .875rem; }
.demo-replay-caption span { color: var(--muted); }
.demo-replay > i { position: absolute; display:grid; place-items:center; width: 14%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #f598c3; font-style: normal; font-size: clamp(.85rem,2vw,1.35rem); }
.demo-replay > i:nth-of-type(1) { left: 19%; top: 54%; }
.demo-replay > i:nth-of-type(2) { left: 41%; top: 33%; }
.demo-replay > i:nth-of-type(3) { left: 65%; top: 51%; }
@media (max-width: 820px) { .demo-replay { width: 100%; } .demo-chat { max-height: 210px; } }


.board .daily-mini-list { overflow-y: auto; }
.daily-mini-list .daily-result { min-height: 28px; }
.daily-highlights article { display: flex; flex-direction: column; justify-content: center; }
.highlight-player { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 7px; }
.highlight-avatar { position: relative; display: grid; place-items: center; overflow: hidden; width: 36px; aspect-ratio: 1; border-radius: 50%; background: #47273e; color: #ffd1e7; font-size: .75rem; font-weight: 750; }
.highlight-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.highlight-identity { min-width: 0; display: grid; gap: 1px; }
.highlight-identity > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.highlight-identity a { font-size: .8125rem; color: var(--muted); }
.highlight-value { color: var(--pink); font-size: clamp(.875rem,1.25vw,1.25rem); white-space: nowrap; font-variant-numeric: tabular-nums; }

.player-trigger { appearance: none; min-width: 0; max-width: 100%; padding: 0; background: none; border: 0; border-radius: 2px; color: inherit; font: inherit; text-align: left; }
.player-trigger:hover, .player-trigger:focus-visible { background: none; color: var(--pink); text-decoration: underline; }
.player-preview { position: fixed; z-index: 20; width: min(335px,calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: auto; padding: 10px; background: #1d1422; border: 1px solid #8a4c6b; border-radius: 8px; box-shadow: 0 8px 26px #000b; }
.preview-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; align-items: center; }
.preview-name { overflow-wrap: anywhere; }
.preview-close { padding: 2px 8px; }
.preview-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; margin: 8px 0; }
.preview-stats > div { background: color-mix(in srgb, var(--theme-highlight, #322036) 74%, transparent); padding: 4px 6px; border-radius: 4px; }
.preview-stats dt, .preview-scores { font-size: .875rem; }
.preview-stats dd { margin: 0; color: var(--pink); }
.preview-scores h3 { margin: 0; font-size: .875rem; }
.preview-scores .row { padding: 4px 0; }
.demo-chat-line .player-trigger { color: var(--pink); font-weight: 700; justify-self: start; }


:root {
 --profile-ember: radial-gradient(ellipse at 42% 0%, #703049 0, transparent 53%), repeating-linear-gradient(128deg,#a84c633d 0 1px,transparent 1px 9px), #23131f;
 --profile-noir: radial-gradient(ellipse at 80% 6%,#474775 0,transparent 52%), repeating-linear-gradient(0deg,#9998db15 0 1px,transparent 1px 5px), #151420;
}
.board .profile-sidebar { position: relative; }
.board .profile-sidebar[data-profile-background=ember], .background-ember { background: var(--profile-ember); }
.board .profile-sidebar[data-profile-background=noir], .background-noir { background: var(--profile-noir); }
.profile-sidebar[data-ring=thorn] .profile-avatar, .ring-thorn { border: 2px solid #ff85ab; box-shadow: 0 0 0 4px #391725,0 0 0 5px #c46b8b; }
.profile-sidebar[data-ring=pulse] .profile-avatar, .ring-pulse { border: 2px dashed #c0aeff; box-shadow: 0 0 0 4px #4e3666,0 0 14px #c39aff5c; }
.profile-sidebar[data-ring=pulse] .profile-avatar::after,
.profile-sidebar[data-ring=thorn] .profile-avatar::after { display: none; }
#profile-edit { position: absolute; z-index: 1; top: 9px; right: 9px; padding: 2px 6px; }
.profile-progress { margin: 8px 0 0; padding: 5px 6px; background: #19111ad4; border-radius: 5px; text-align: left; }
.xp-head { display: flex; justify-content: space-between; gap: 3px; align-items: baseline; font-size: .75rem; }
.xp-head strong { color: #ffacd0; white-space: nowrap; }
.xp-meter { display: block; width: 100%; height: 7px; margin: 4px 0 2px; accent-color: var(--pink); }
.xp-badge { color: #ffd1e7; font-size: .75rem; }
#profile-theme-form fieldset { border: 1px solid var(--line); width: 100%; min-width: 0; }
.profile-theme-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.profile-theme-options label { display: grid; justify-items: center; text-align:center; }
.theme-swatch { display:block; width: min(100%, 55px); height: 42px; border-radius: 5px; background-color: #291d2d; }
.profile-theme-options label:has(input[name=ring]) .theme-swatch { width: 32px; height: 32px; border-radius: 50%; }
.ring-default { border: 1px solid #a34a74; }
.background-default { background: var(--rail); }


#online { padding: 2px 6px; background: none; font-weight: inherit; }
#online:hover { background: #302036; }
.player-details-dialog { width: min(840px,calc(100% - 24px)); max-height: min(82dvh,760px); }
#profile-dialog > .dialog-head { top: -18px; }
.detail-profile-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.detail-profile-line .highlight-avatar { width: 58px; }
.detail-profile-name h3 { margin: 0; overflow-wrap: anywhere; }
.detail-profile-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.detail-stat-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,108px),1fr)); gap: 7px; margin: 10px 0; }
.detail-stat-list > div, .detail-xp { padding: 6px 9px; background: #2b1d30; border-radius: 6px; }
.detail-stat-list dt, .detail-xp span { color: var(--muted); font-size: .875rem; }
.detail-stat-list dd { margin: 0; font-size: 1.05rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.detail-tabs { border-bottom: 1px solid var(--line); padding-bottom: 7px; }
#player-details-content { min-height: 210px; }
#player-details-content h3 { margin: 10px 0 5px; font-size: 1rem; }
.detail-score { border-bottom: 1px solid var(--line); }
.detail-score-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; cursor: pointer; }
.detail-score-line span { overflow-wrap: anywhere; }
.detail-score-line strong { white-space: nowrap; color: var(--pink); }
.detail-score-info { display:flex; flex-wrap:wrap; gap: 4px 12px; color: var(--muted); font-size: .875rem; padding-bottom: 7px; }
.detail-score-info .map-link { color: var(--text); }
.detail-xp span { float: right; }
.detail-xp .xp-meter { margin-block: 5px; }
#player-details-content .row strong { white-space: normal; text-align: right; }

.profile-theme-options { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }
.profile-theme-options label { cursor: pointer; padding: 4px; border: 1px solid transparent; border-radius: 6px; }
.profile-theme-options label:has(input:checked) { border-color: var(--pink); }
.theme-image { display: block; width: 52px; height: 52px; object-fit: contain; }
.theme-image-background { width: 40px; height: 58px; object-fit: cover; border-radius: 4px; }
.board .profile-sidebar[data-profile-background]:not([data-profile-background=default], [data-profile-background=ember], [data-profile-background=noir]) {
  background-size: cover;
  background-position: center;
}
.profile-sidebar[data-ring]:not([data-ring=default], [data-ring=thorn], [data-ring=pulse]) .profile-avatar {
  border-color: transparent;
  box-shadow: none;
}
.profile-sidebar[data-ring]:not([data-ring=default], [data-ring=thorn], [data-ring=pulse]) .profile-avatar::after {
  inset: -16%;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  mask: none;
  transform: none;
}
.profile-sidebar[data-ring=kawaii], .avatar-with-ring[data-avatar-ring=kawaii] { --avatar-ring-art: url("/assets/profile/rings/01_kawaii_ring_400x400.png"); }
.profile-sidebar[data-ring=kawaii] .profile-avatar::after { background-image: var(--avatar-ring-art); }
.profile-sidebar[data-ring=pastel_goth], .avatar-with-ring[data-avatar-ring=pastel_goth] { --avatar-ring-art: url("/assets/profile/rings/02_pastel_goth_ring_400x400.png"); }
.profile-sidebar[data-ring=pastel_goth] .profile-avatar::after { background-image: var(--avatar-ring-art); }
.profile-sidebar[data-ring=victorian], .avatar-with-ring[data-avatar-ring=victorian] { --avatar-ring-art: url("/assets/profile/rings/03_victorian_ring_400x400.png"); }
.profile-sidebar[data-ring=victorian] .profile-avatar::after { background-image: var(--avatar-ring-art); }
.profile-sidebar[data-ring=dark_ritual], .avatar-with-ring[data-avatar-ring=dark_ritual] { --avatar-ring-art: url("/assets/profile/rings/04_dark_ritual_ring_400x400.png"); }
.profile-sidebar[data-ring=dark_ritual] .profile-avatar::after { background-image: var(--avatar-ring-art); }
.profile-sidebar[data-ring=heavy_metal], .avatar-with-ring[data-avatar-ring=heavy_metal] { --avatar-ring-art: url("/assets/profile/rings/05_heavy_metal_ring_400x400.png"); }
.profile-sidebar[data-ring=heavy_metal] .profile-avatar::after { background-image: var(--avatar-ring-art); }
:is(.profile-sidebar, .player-preview, .player-details-dialog)[data-profile-background=kawaii] { --profile-art: url("/assets/profile/backgrounds/01_kawaii_background_712x1904.png"); }
.board .profile-sidebar[data-profile-background=kawaii] { background-image: linear-gradient(#15101945, #151019e8), var(--profile-art); }
:is(.profile-sidebar, .player-preview, .player-details-dialog)[data-profile-background=pastel_goth] { --profile-art: url("/assets/profile/backgrounds/02_pastel_goth_background_712x1904.png"); }
.board .profile-sidebar[data-profile-background=pastel_goth] { background-image: linear-gradient(#15101945, #151019e8), var(--profile-art); }
:is(.profile-sidebar, .player-preview, .player-details-dialog)[data-profile-background=victorian] { --profile-art: url("/assets/profile/backgrounds/03_victorian_background_712x1904.png"); }
.board .profile-sidebar[data-profile-background=victorian] { background-image: linear-gradient(#15101945, #151019e8), var(--profile-art); }
:is(.profile-sidebar, .player-preview, .player-details-dialog)[data-profile-background=dark_ritual] { --profile-art: url("/assets/profile/backgrounds/04_dark_ritual_background_712x1904.png"); }
.board .profile-sidebar[data-profile-background=dark_ritual] { background-image: linear-gradient(#15101945, #151019e8), var(--profile-art); }
:is(.profile-sidebar, .player-preview, .player-details-dialog)[data-profile-background=heavy_metal] { --profile-art: url("/assets/profile/backgrounds/05_heavy_metal_background_712x1904.png"); }
.board .profile-sidebar[data-profile-background=heavy_metal] { background-image: linear-gradient(#15101945, #151019e8), var(--profile-art); }

.chat-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; position: relative; }
#chat-resize { display: none; }
#chat-messages { min-height: 0; overflow-y: auto; margin-block: 6px; }
#chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
#chat-form input { min-width: 0; width: 100%; }
#chat-status { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
#chat-status:empty { display: none; }
#chat-form[hidden], #chat-messages[hidden] { display: none; }
@media (min-width: 821px) {
  .board .replay-panel { min-height: 145px; margin-bottom: var(--chat-extra, 0px); }
  .replay-stage { min-height: 0; }
  .chat-panel { margin-top: calc(-1 * var(--chat-extra, 0px)); }
  #chat-resize {
    display: block; position: absolute; z-index: 1; inset: 1px auto auto 50%;
    transform: translateX(-50%); width: 54px; height: 12px; padding: 0;
    background: transparent; cursor: ns-resize; touch-action: none;
  }
  #chat-resize::after { content: ''; display: block; width: 30px; height: 3px; margin: auto; border-radius: 3px; background: var(--pink); }
}
@media (max-width: 820px) { #chat-messages { max-height: 250px; } }


.chat-panel > h2 { grid-row: 1; }
.chat-panel > :is(#chat-messages, .demo-chat, .chat-placeholder) { grid-area: 2 / 1; }
#chat-form { grid-row: 3; }

#replay-navigation:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; font-size: .85rem; }
#replay-navigation button { padding: 2px 9px; }

#replay-editor { display: grid; gap: 5px; font-size: .85rem; margin-top: 6px; }
#replay-graph { display: block; width: 100%; height: 132px; margin-block: 8px; background: #120e16; cursor: crosshair; }
#replay-editor label { display: grid; grid-template-columns: 55px minmax(0, 1fr); align-items: center; gap: 6px; }
#replay-editor input { width: 100%; accent-color: var(--pink); }
.replay-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.replay-editor-actions output { margin-right: auto; }
.replay-editor-actions button { padding: 3px 7px; }

.replay-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.replay-heading h2 { margin-right: auto; }
.replay-heading button { padding: 3px 7px; font-size: .82rem; }
#replay-queue-dialog { width: min(760px, 94vw); }
#replay-jobs { max-height: 32vh; overflow-y: auto; padding-left: 20px; }
#replay-jobs li { margin-block: 7px; }
#replay-jobs button { margin-inline-start: 5px; }
#replay-review { display: block; width: min(100%, 520px); margin-inline: auto; }
#replay-queue-dialog form label { display: inline-flex; gap: 5px; margin: 4px; align-items: center; }
#replay-queue-dialog form input { width: 7em; }

.review-featured { min-height: 0; overflow: auto; margin-top: 8px; }
.review-featured h3, #reviews-dialog h3 { font-size: .9rem; margin-block: 9px 5px; }
.review-cover { min-height: 88px; position: relative; display: flex; align-items: end; isolation: isolate; overflow: hidden; background: #261826; border: 1px solid var(--line); }
.review-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.review-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, #100a12ee); z-index: -1; }
.review-cover-label { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 5px 10px; padding: 8px; width: 100%; }
.review-cover-label a { color: #ffe2f2; font-size: .85rem; }
.review-profile { display: flex; gap: 7px; align-items: center; margin-top: 7px; font-size: .85rem; }
.review-profile img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.review-top-score { overflow-wrap: anywhere; }
.review-question, .review-comments span { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-question { margin-block: 8px; }
.review-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.review-controls button { padding: 4px 8px; }
.review-controls button[aria-pressed=true] { border-color: var(--pink); color: var(--pink); }
.review-comments, .review-list { list-style: none; padding: 0; margin: 4px 0 8px; }
.review-comments li, .review-list li { padding: 6px 0; border-top: 1px solid var(--line); }
.review-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.review-comments span { display: block; }
.review-advice { font-size: .85rem; }
.review-advice span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#reviews-dialog { width: min(680px, 94vw); }
.review-form { display: grid; gap: 8px; }
.review-form label { display: grid; gap: 4px; }
.review-form :is(input,textarea) { width: 100%; }
.review-form textarea { min-height: 64px; resize: vertical; }
.review-form button { justify-self: start; }

.welcome-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(ellipse at 30% 0%, #3c1736, #120e16 60%); }
.welcome { width: min(940px, 100%); }
.welcome-brand { color: #ff73ac; font-weight: 800; letter-spacing: .14em; }
.welcome h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin-block: 10px; }
.welcome-intro { max-width: 580px; color: var(--muted); font-size: 1.15rem; }
.welcome-login { display: inline-block; margin-block: 14px; padding: 12px 20px; border-radius: 6px; background: #ff5294; color: #190e16; font-weight: 800; text-decoration: none; }
.welcome-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; margin-top: 20px; }
.welcome-cards article { background: #1d1422; border: 1px solid #55334b; padding: 16px; }
.welcome-cards article p { color: var(--muted); }
.review-profile > div, .review-cover-label strong { min-width: 0; overflow-wrap: anywhere; }

.chat-admin-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.chat-admin-actions button { padding: 2px 6px; font-size: .75rem; }

.feed-load-more { display: block; margin: 8px auto; }

.chat-message-heading, .chat-message-tools, .chat-quote { grid-column: 2; min-width: 0; }
.chat-message-tools, .chat-reaction-options { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.chat-message-tools { margin-top: 3px; }
.chat-message-tools button, .chat-reaction-picker summary, .chat-reply-preview button { padding: 2px 6px; font-size: .75rem; }
.chat-message-tools button[aria-pressed=true] { outline: 1px solid var(--pink); }
.chat-reaction-picker summary { cursor: pointer; color: var(--muted); }
.chat-reaction-options { padding: 4px; background: var(--surface); }
.chat-quote { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid var(--pink); margin-block: 3px; padding: 3px 6px; font-size: .8rem; }
.chat-reply-preview { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 8px; border-left: 2px solid var(--pink); }
.chat-reply-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-action > span { font-style: italic; color: var(--muted); }

/* The right panels trade height without resizing either dashboard row. */
@media (min-width: 821px) {
  body:has(.shell > .board) { overflow: hidden; }
  .shell:has(> .board) { height: 100dvh; min-height: 0; overflow: hidden; }
  .shell > .topbar { flex: 0 0 auto; }
  .shell > .board {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) min(36dvh, 46%);
    padding-bottom: 12px;
  }
  .board > .upper-board { min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  .board > .lower-board { min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .board .feed-panel, .board .replay-panel, .board .chat-panel { min-height: 0; }
  .board .replay-heading { flex: 0 0 auto; }
  .board .review-featured { flex: 1 1 0; }
  .board .profile-sidebar, .board .daily-map-widget { min-height: 0; overflow: hidden; }
  .board .daily-highlights { min-height: 0; }
  .board .daily-highlights article { min-height: 0; overflow: auto; }
  .board .chat-panel { overflow: hidden; }
}

.chat-card {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: 5px;
  margin: 0 0 7px; padding: 8px 10px; border: 1px solid #543047;
  border-radius: 8px; background: #211625;
}
.chat-card-own { border-color: #884264; background: #2b192c; }
.chat-card:hover, .chat-card:focus-within { border-color: #b15c87; }
.chat-card > :is(.chat-message-heading, .chat-message-tools, .chat-quote, span) { grid-column: 1; }
.chat-card .chat-message-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.chat-card .chat-message-heading time { margin-left: auto; font-size: .75rem; }
.chat-avatar { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 50%; background: #51304b; color: #ffe2f2; font-size: .7rem; }
.chat-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chat-player-pp { color: #ffa8cf; font-size: .75rem; }
.chat-card > span { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-card .chat-message-tools { display: none; margin: 0; }
.chat-card:hover .chat-message-tools, .chat-card:focus-within .chat-message-tools { display: flex; }
.chat-card .chat-admin-actions { margin: 0; }
.chat-reaction-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.chat-reaction-badges button { padding: 2px 6px; font-size: .75rem; }
.chat-reaction-badges button[aria-pressed=true] { outline: 1px solid var(--pink); }
@media (hover: none) { .chat-card .chat-message-tools { display: flex; } }

.chat-card .chat-message-tools {
  position: absolute; z-index: 2; right: 7px; bottom: 5px;
  padding: 2px; border-radius: 6px; background: #211625;
}
.chat-card .chat-message-tools button, .chat-card .chat-reaction-picker summary {
  display: block; padding: 3px 7px; border: 0; border-radius: 5px;
  background: #3c2a43; color: #fff1fb; font-weight: 600; line-height: 1.3;
}
.chat-card .chat-message-tools button:hover, .chat-card .chat-reaction-picker summary:hover { background: #68435f; }
.chat-card .chat-reaction-options { position: absolute; right: 0; bottom: 100%; width: max-content; max-width: calc(100vw - 48px); border: 1px solid var(--line); border-radius: 6px; }
.chat-card .chat-trash {
  display: none; position: absolute; z-index: 2; top: 5px; right: 7px;
  padding: 2px 6px; font-size: .85rem;
}
.chat-card:hover .chat-trash, .chat-card:focus-within .chat-trash { display: block; }
.chat-card:has(.chat-trash):is(:hover,:focus-within) time { visibility: hidden; }
#chat-moderation-form { display: grid; gap: 8px; }
.chat-moderation-duration { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; }
.chat-moderation-duration input { width: 7em; }
#chat-moderation-form label { display: grid; gap: 4px; }
#chat-moderation-form > button { justify-self: start; }

#review-all { margin-left: auto; }
.board .review-featured {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid #55334b; border-radius: 6px; background: #261826;
  margin-top: 6px; min-height: 92px;
}
.review-preview { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.review-preview > p { padding: 8px; margin: 0; }
.review-cover-actions { position: absolute; z-index: 1; top: 5px; right: 6px; display: flex; gap: 5px; }
.review-preview-footer { width: 100%; min-width: 0; padding: 6px 8px; display: flex; gap: 5px 8px; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.review-preview-caption { min-width: 0; flex: 1 1 130px; }
.review-preview-caption strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.review-preview-caption .player-trigger { color: #ff9ac6; font-size: .82rem; }
.review-preview-footer .review-controls { flex: 0 0 auto; justify-content: flex-end; }
.review-preview-footer a { padding: 4px 8px; border-radius: 5px; background: #36263f; color: #fff1fb; text-decoration: none; font-size: .82rem; }
#reviews-dialog { width: min(820px,94vw); }
.review-comment-form { position: sticky; bottom: -18px; padding-block: 8px; background: var(--surface); }
@media (max-width: 820px) { .board .review-featured { flex: none; height: 145px; } }

#review-player {
  width: min(1280px, calc(100vw - 32px));
  height: min(720px, 86dvh);
  max-height: 86dvh;
  border-color: var(--dashboard-border, var(--line));
}
#review-player[open] { display: flex; flex-direction: column; gap: 10px; }
#review-player::backdrop { background: rgb(0 0 0 / 78%); }
#review-player-title { min-width: 0; overflow-wrap: anywhere; margin-right: auto; }
.review-watch-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 27%, 340px);
  gap: 12px;
}
#review-player-chat {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--rail);
}
#review-player-chat h2 { margin: 0; font-size: 1rem; }
#review-player-chat .replay-chat { flex: 1 1 0; }
#review-player-chat .replay-chat-topic strong { display: none; }
.review-player-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: .82rem; }
.review-player-bar button { padding: 3px 8px; }
.review-player-frame { flex: 1 1 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); background: #120e16; }
.review-player-frame iframe { border: 0; width: 100%; height: 100%; display: block; }
.review-player-example { margin: 0 8px 6px auto; padding: 4px 8px; }
@media (max-width: 820px) {
  .review-watch-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  #review-player .review-player-bar { flex-wrap: wrap; }
  #review-player-title { flex-basis: 100%; }
}

.chat-heading { grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 5px 8px; flex-wrap: wrap; }
.chat-tabs { display: flex; gap: 4px; }
.chat-tabs button { position: relative; padding: 3px 8px; font-size: .82rem; }
.chat-tabs button[aria-pressed=true] { border-color: #9b5075; color: #ffc2de; background: #422638; }
.chat-unread { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: #ff4867; }
.replay-chat { grid-area: 2 / 1; min-height: 0; display: flex; flex-direction: column; margin-block: 6px; }
.replay-chat-topic { flex: 0 0 auto; padding: 5px 0; border-top: 1px solid var(--line); font-size: .85rem; overflow-wrap: anywhere; }
.replay-chat-topic p { color: var(--muted); margin: 3px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#replay-chat-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#replay-chat-form { grid-area: 3 / 1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
#replay-chat-form input { width: 100%; min-width: 0; }
#replay-chat-status { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
#replay-chat-status:empty { display: none; }

.replay-advice-thread, .review-hidden-advice { margin-block: 8px; }
.replay-advice-thread > summary, .review-hidden-advice > summary { cursor: pointer; color: #ffc2de; font-weight: 700; padding-block: 6px; }
.replay-advice-thread .review-comments .chat-card { padding: 8px 10px; }
.replay-advice-thread .review-comments .chat-avatar { display: grid; }

/* Dashboard artwork */
:root:not([data-site-theme=graphite], [data-site-theme=osu]) body:has(.shell > .board) { background: url("/assets/theme/dashboard-background.png") center / cover fixed no-repeat, var(--bg); }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .shell > .topbar { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/header.png") center / cover no-repeat; }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .board .control-strip { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/filters.png") center / cover no-repeat; }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .board .profile-sidebar:is(:not([data-profile-background]),[data-profile-background=default]) { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/profile.png") center / cover no-repeat; }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .board .feed-panel { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/scores.png") center / cover no-repeat; }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .board .replay-panel { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/replay-review.png") center / cover no-repeat; }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .board .daily-map-widget { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/daily-map.png") center / cover no-repeat; }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .daily-highlights article[data-widget-slot="1"] { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/daily-best-score.png") center / cover no-repeat; }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .daily-highlights article[data-widget-slot="2"] { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/daily-most-plays.png") center / cover no-repeat; }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .daily-highlights article[data-widget-slot="3"] { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/daily-pp-gain.png") center / cover no-repeat; }
:root:not([data-site-theme=graphite], [data-site-theme=osu]) .board .chat-panel { background: linear-gradient(180deg, #170e1abc, #120e16e8), url("/assets/theme/chat.png") center / cover no-repeat; }

/* Shared corners for the dashboard panels. */
.shell { --panel-radius: 8px; --panel-border-width: 2.6px; }
.shell > .topbar {
  margin: 8px 16px 0;
  border: var(--panel-border-width) solid var(--dashboard-border,#ba638e);
  border-radius: var(--panel-radius);
  background-clip: padding-box;
}
@media (max-width: 620px) { .shell > .topbar { margin-inline: 8px; } }
.board :is(.profile-sidebar, .control-strip, .feed-panel, .replay-panel, .daily-map-widget, .chat-panel),
.board .daily-highlights > article {
  clip-path: none;
  border-radius: var(--panel-radius);
  background-clip: padding-box;
}

.board :is(.profile-sidebar, .control-strip, .feed-panel, .replay-panel, .daily-map-widget, .chat-panel),
.board .daily-highlights > article {
  position: relative;
  border-width: var(--panel-border-width);
  border-color: var(--dashboard-border,#ba638e);
}

.site-theme-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); font-size: .82rem; }
.site-theme-label select { padding: 4px 7px; }

:root[data-site-theme=graphite] {
  --bg: #111214; --rail: #191b1e; --surface: #1d2023; --line: #3a3e43;
  --text: #f0f1f2; --muted: #bcc1c8; --pink: #e0e5eb; --lime: #d3d9e2;
  --frame-ink: #606670; --dashboard-border: #6b727d;
  --avatar-ink: #b8c0ca; --avatar-ornament: conic-gradient(transparent 25%, #cbd0d9 26% 32%, transparent 33% 75%, #cbd0d9 76% 82%, transparent 83%);
  --theme-bar: #191b1e; --theme-control: #30343a; --theme-hover: #41474e;
  --theme-input: #181a1d; --theme-highlight: #383d44; --theme-chat: #24272b;
  --theme-own: #2d3136; --theme-cover: #23262a; --theme-accent-text: #151718;
  --profile-ember: #282b30; --profile-noir: #191b1e;
}
:root[data-site-theme=osu] {
  --bg: #19121a; --rail: #211823; --surface: #271d2a; --line: #59374d;
  --text: #fff1f8; --muted: #d8b8cb; --pink: #fa8dbb; --lime: #fec4de;
  --frame-ink: #9c5d80; --dashboard-border: #aa6489; --avatar-ink: #faa4cb;
  --theme-bar: #2e2030; --theme-control: #453044; --theme-hover: #5a3b54;
  --theme-input: #211824; --theme-highlight: #573048; --theme-chat: #332536;
  --theme-own: #3d293c; --theme-cover: #382638; --theme-accent-text: #2a1420;
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) body { background: var(--bg); }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .topbar { background: var(--theme-bar); }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(button,.button):not(.player-trigger) { background: var(--theme-control); color: var(--text); }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(button,.button):not(.player-trigger):hover { background: var(--theme-hover); }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(select,input:not([type=range],[type=checkbox],[type=radio]),textarea) {
  background: var(--theme-input); border-color: var(--line); color: var(--text);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(.feed-tabs .active,.chat-tabs button[aria-pressed=true],.daily-leader-bar,.pp-preset.active) {
  background: var(--theme-highlight); color: var(--pink); border-color: var(--frame-ink);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(.chat-card,.review-preview-footer a,.chat-message-tools,.chat-reaction-picker summary) {
  background: var(--theme-chat); border-color: var(--frame-ink); color: var(--text);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(.chat-card-own,.chat-card:hover,.chat-card:focus-within) { background: var(--theme-own); border-color: var(--dashboard-border); }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(.review-featured,.review-cover,.avatar,.chat-avatar) { background: var(--theme-cover); border-color: var(--line); }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(.chat-player-pp,.review-preview-caption .player-trigger,.replay-advice-thread > summary,.review-hidden-advice > summary,.brand) { color: var(--pink); }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .daily-play { background: var(--pink); color: var(--theme-accent-text); }

/* Map of the day surfaces use the active palette. */
:root:is([data-site-theme=graphite], [data-site-theme=osu])
  .board :is(.daily-layout-head, .daily-top, .daily-leader-bar) {
  background: var(--theme-highlight);
  border-color: var(--line);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .board .daily-mini {
  background: var(--theme-input);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .board .daily-map-widget::before {
  background: none;
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .daily-map-art {
  background: var(--theme-cover);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .daily-map-art::before {
  background: linear-gradient(0deg, var(--theme-input), transparent 85%);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .daily-plain-metrics {
  color: var(--text);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .daily-result.current-player {
  background: var(--theme-highlight);
}

.board .replay-panel { isolation: isolate; overflow: hidden; }
#review-panel-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.replay-panel:has(#review-panel-cover:not([hidden]))::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,#100a12b8,transparent 48%,#100a12d9);
}
.board .replay-panel .review-featured { border: 0; border-radius: 0; margin-top: 0; min-height: 0; background: transparent; }
.replay-panel .review-cover-actions { position: static; flex-wrap: wrap; justify-content: flex-end; }
.replay-panel .review-preview-footer { padding: 0; }
.replay-panel .review-preview > p { padding: 0; }
@media (max-width: 820px) { .board .replay-panel .review-featured { height: 95px; } }

.feed-head { align-items: center; }
.feed-day-leaders { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1.1fr) minmax(0,1fr); gap: 5px 8px; }
.feed-day-stat { min-width: 0; padding: 3px 7px; border-left: 1px solid var(--line); font-size: .75rem; }
.feed-day-stat > span { display: block; color: var(--muted); }
.feed-day-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.feed-day-value strong { color: var(--pink); white-space: nowrap; }
.feed-day-map { display: block; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 620px) { .feed-day-leaders { flex-basis: 100%; } }

.feed-day-stat-heading { display: flex; justify-content: space-between; align-items: center; gap: 4px; color: var(--muted); flex-wrap: wrap; }
:is(#best-pp-open, #time-pp-open, #gain-pp-open) { padding: 2px 6px; font-size: .73rem; white-space: nowrap; }
#best-pp-dialog { width: min(1120px, calc(100% - 32px)); border-color: var(--dashboard-border); }
#best-pp-dialog[open] { display: flex; flex-direction: column; }
#best-pp-dialog > .dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  margin-bottom: 4px;
}
#best-pp-title { grid-column: 2; text-align: center; margin: 0; }
#best-pp-dialog > .dialog-head form { justify-self: end; }
.best-pp-subtitle { margin: 0 0 12px; text-align: center; }
@media (max-width: 520px) {
  #best-pp-dialog > .dialog-head { grid-template-columns: 1fr auto; }
  #best-pp-title { grid-column: 1 / -1; grid-row: 2; }
  #best-pp-dialog > .dialog-head form { grid-column: 2; grid-row: 1; }
}
#best-pp-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 8px;
  min-height: 0;
  overflow: auto;
}
.best-pp-column {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--rail);
}
.best-pp-column h3 {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--theme-highlight, color-mix(in srgb, var(--pink) 14%, var(--surface)));
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}
.best-pp-empty { margin: 0; padding: 10px; font-size: .8rem; }
.best-pp-scores { margin: 0; padding: 5px; list-style: none; }
.best-pp-score {
  display: grid;
  grid-template-columns: 1.5rem 2rem minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 5px;
  font-size: .8rem;
}
.best-pp-score + .best-pp-score { margin-top: 3px; }
.best-pp-score:nth-child(-n+3) { background: color-mix(in srgb, var(--pink) 8%, var(--surface)); }
.best-pp-score:nth-child(1) { --place-color: #efca76; }
.best-pp-score:nth-child(2) { --place-color: #c6cfdb; }
.best-pp-score:nth-child(3) { --place-color: #e2a983; }
.best-pp-rank {
  display: grid;
  place-items: center;
  min-height: 1.5rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--place-color, var(--line)) 13%, var(--rail));
  color: var(--place-color, inherit);
  font-weight: 700;
}
.best-pp-score .feed-leader-cover { height: 26px; }
.best-pp-details { min-width: 0; }
.best-pp-row { display: flex; justify-content: space-between; gap: 5px; }
.best-pp-score strong { flex: none; color: var(--pink); font-variant-numeric: tabular-nums; }
.best-pp-player, .best-pp-map { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-pp-map { font-size: .73rem; }

.feed-leader-entry, .feed-pinned-content { display: flex; align-items: center; gap: 7px; }
.feed-leader-details, .feed-leader-entry .feed-day-value { min-width: 0; }
.feed-leader-cover, .feed-leader-avatar { position: relative; overflow: hidden; display: grid; place-items: center; background: var(--rail); color: var(--pink); }
.feed-leader-cover { flex: 0 0 46px; height: 32px; border: 1px solid var(--line); border-radius: 4px; }
.feed-leader-avatar { flex: 0 0 28px; height: 28px; border-radius: 50%; font-weight: 700; }
.feed-leader-cover img, .feed-leader-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed-pinned-content > .row { flex: 1; min-width: 0; }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .board .pinned { background: var(--theme-highlight); }

.feed-day-leaders { grid-template-columns: repeat(3,minmax(0,1fr)); align-self: stretch; }
.feed-day-stat, .board .pinned {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--dashboard-border,#ba638e); border-radius: 7px;
  background: var(--surface);
}
.feed-day-stat { min-height: 78px; padding: 6px 8px; display: flex; flex-direction: column; justify-content: space-between; gap: 5px; }
.board .pinned { padding: 7px 10px; }
.feed-day-stat :is(.feed-leader-cover,.feed-leader-avatar), .board .pinned .feed-leader-cover {
  position: absolute; inset: 0; width: auto; height: auto;
  border: 0; border-radius: 0; background: none; z-index: -2; font-size: 0;
}
.feed-day-stat .feed-leader-avatar img { object-position: center 36%; }
.feed-day-stat:has(img)::before, .board .pinned:has(img)::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,#100c13ed,#100c13a6 65%,#100c136e);
}
.feed-day-stat:has(img) :is(.muted,.feed-day-map,.feed-day-stat-heading,span), .board .pinned:has(img) :is(a,.muted,.player-trigger) { color: #fff1f8; }
.feed-day-stat .feed-leader-entry { display: block; }
.feed-day-stat .feed-day-value { overflow-wrap: anywhere; }
.board .pinned .score-row { border-top: 0; margin-top: 0; }
.board .pinned:has(img) > strong { color: #fff1f8; }
@media (max-width: 480px) { .feed-day-leaders { grid-template-columns: 1fr; } }

#feed-pinned { margin-top: 0; }
.board .pinned {
  display: flex; align-items: center; gap: 5px 10px;
  min-height: 32px; padding: 4px 8px; margin-bottom: 6px; white-space: nowrap;
}
.pinned .feed-pinned-label { flex: 0 0 auto; font-size: .75rem; }
.pinned .map-link { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pinned .player-trigger { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.pinned .feed-pinned-mods { color: var(--muted); font-size: .75rem; }
.pinned .feed-pinned-pp { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 620px) { .pinned .feed-pinned-mods { display: none; } }

.board .feed-head { display: block; padding-bottom: 5px; }
.board .feed-day-leaders { width: 100%; gap: 5px; }
.board .daily-highlights > .feed-day-stat { min-height: 0; justify-content: center; padding: 6px 10px; gap: 4px; line-height: 1.25; }
.board :is(#best-pp-open, #time-pp-open, #gain-pp-open) { padding-block: 1px; }

/* Apply the selected palette to both profile views. */
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(.detail-stat-list > div, .detail-xp) {
  background: var(--theme-highlight);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .profile-progress {
  background: color-mix(in srgb, var(--theme-input) 88%, transparent);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) :is(.xp-head strong,.xp-badge) {
  color: var(--pink);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .player-details-dialog,
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .detail-tabs button.active {
  border-color: var(--dashboard-border);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .detail-tabs button.active {
  background: var(--theme-highlight); color: var(--pink);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .xp-meter {
  appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--line);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .xp-meter::-webkit-progress-bar { background: var(--line); }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .xp-meter::-webkit-progress-value { background: var(--pink); border-radius: 999px; }
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .xp-meter::-moz-progress-bar { background: var(--pink); border-radius: 999px; }

:root:is([data-site-theme=graphite], [data-site-theme=osu]) .player-preview {
  background-color: var(--surface);
  border-color: var(--dashboard-border);
}
:root:is([data-site-theme=graphite], [data-site-theme=osu]) .player-preview .highlight-avatar {
  background: var(--theme-cover);
  color: var(--pink);
}

#reviews-dialog { border-color: var(--dashboard-border,#ba638e); }
#reviews-dialog[open] { display: flex; flex-direction: column; max-height: 85dvh; overflow: hidden; }
#reviews-dialog > .dialog-head { flex: 0 0 auto; align-items: center; }
#reviews-dialog > .dialog-head form { margin-left: auto; }
#reviews-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#reviews-dialog .review-comment-form { bottom: 0; }

.chat-player-name.player-trigger { color: var(--pink); font-weight: 700; justify-self: start; }

:is(.player-preview, .player-details-dialog):is([data-profile-background=kawaii], [data-profile-background=pastel_goth], [data-profile-background=victorian], [data-profile-background=dark_ritual], [data-profile-background=heavy_metal]),
:root:not([data-site-theme=graphite], [data-site-theme=osu]) :is(.player-preview, .player-details-dialog)[data-profile-background=default] {
  background-image: linear-gradient(#100d159c, #100d15ed), var(--profile-art, url("/assets/theme/profile.png"));
  background-size: cover;
  background-position: center 38%;
}
:is(.player-preview, .player-details-dialog)[data-profile-background=ember] { background: var(--profile-ember); }
:is(.player-preview, .player-details-dialog)[data-profile-background=noir] { background: var(--profile-noir); }

.avatar-with-ring:not(img) { overflow: visible; }
.avatar-with-ring img { border-radius: 50%; }
.avatar-with-ring { position: relative; }
.avatar-with-ring:not(img)::after {
  content: ''; pointer-events: none; position: absolute; inset: -12%;
  background: var(--avatar-ring-art) center / contain no-repeat;
}
.avatar-with-ring:not(img)[data-avatar-ring=default]::after {
  inset: -7%; border-radius: 50%; background: var(--avatar-ornament);
  mask: radial-gradient(transparent 62%,black 63%);
}
.avatar-with-ring[data-avatar-ring=thorn] { outline: 1px solid #ff85ab; outline-offset: 1px; }
.avatar-with-ring[data-avatar-ring=pulse] { outline: 1px dashed #c0aeff; outline-offset: 1px; }

.review-profile .chat-avatar { width: 34px; height: 34px; flex-basis: 34px; }
.review-profile .chat-avatar img { width: 100%; height: 100%; }


.board .profile-sidebar[data-profile-background]:not([data-profile-background=default]) .profile-progress {
  background: transparent;
}

.board .feed-score-row { padding-block: 4px; }
.feed-player-cell, .feed-map-cell { display: flex; align-items: center; gap: 7px; min-width: 0; }
.feed-player-cell .chat-avatar { flex: 0 0 27px; width: 27px; height: 27px; }
.feed-map-cell .feed-leader-cover { flex-basis: clamp(48px, 4.5vw, 76px); height: 36px; }
.feed-identity, .feed-map-cell .map-link { min-width: 0; line-height: 1.15; }
.feed-player, .feed-map-title, .feed-secondary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-secondary { margin-top: 2px; color: var(--muted); font-size: .73rem; }
.feed-mods { display: flex; gap: 3px; }
.feed-mod { padding: 1px 3px; border-radius: 3px; background: var(--theme-input, var(--rail)); font-size: .72rem; }
.feed-own-score {
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--pink);
  --feed-row-background: color-mix(in srgb, var(--pink) 9%, transparent);
  background: var(--feed-row-background);
}
@media (max-width: 620px) {
  .feed-map-cell .feed-leader-cover { display: none; }
}

@media (min-width: 821px) {
  .board .profile-sidebar { padding-block: 9px 6px; }
  .board .profile-avatar {
    width: clamp(44px, 8dvh, 68px);
    height: clamp(44px, 8dvh, 68px);
    margin-block: 1px 5px;
  }
  .board #profile { line-height: 1.24; }
  .board .profile-stats { margin-top: 5px; }
  .board .profile-progress { margin-top: 5px; padding-block: 3px; }
  .board .profile-top { margin-top: 5px; padding-top: 4px; }
  .board .profile-top .row { padding-block: 2px; }
  .board #profile-details { margin-top: 4px; }
  .board .daily-poster { gap: 3px; }
  .board .daily-map-art { flex: 1 1 0; min-height: 0; max-height: 108px; }
  .board .daily-map-summary { line-height: 1.2; }
  .board .daily-map-summary #daily-note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-block: 2px 0;
  }
  .board .daily-poster .daily-play { padding-block: 5px; }
}
