.nav {
  display: flex; align-items: center; gap: 24px;
  max-width: 1160px; margin: 0 auto; padding: 18px 24px;
}
.nav-links { display: flex; gap: 20px; margin-right: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.account { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.who { display: flex; align-items: center; gap: 8px; font-weight: 550; font-size: 14px; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px;
  max-width: 1160px; margin: 0 auto; padding: 28px 24px 32px;
}
.hero h1 { font: 500 clamp(38px, 5.6vw, 66px)/1.04 var(--display); letter-spacing: -.012em; margin: 14px 0 18px; text-wrap: balance; }
.lede { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; min-height: 42px; }
.hero-actions .button { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.hero-art { display: block; width: 100%; height: auto; max-height: 400px; overflow: visible; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1112px; margin: 0 auto;
  background: var(--night); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat { display: grid; gap: 2px; padding: 16px 20px; border-left: 1px solid var(--line-soft); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 24px; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.stat-name { font-family: var(--display); font-weight: 600; }

.content { max-width: 1160px; margin: 0 auto; padding: 40px 24px 64px; display: grid; gap: 48px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.notice { margin: 0; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cheese); border-radius: var(--radius-small); }
.notice[data-kind="error"] { border-left-color: var(--loss); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
h2 { font: 500 26px/1.2 var(--display); margin: 0; }
.section-note { font-size: 13px; }
.empty { margin: 0; padding: 22px; text-align: center; color: var(--muted); background: var(--night); border: 1px dashed var(--line); border-radius: var(--radius); }
.footnote { margin: 10px 2px 0; font-size: 13px; color: var(--faint); }

.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live[data-state="live"] i { background: var(--win); box-shadow: 0 0 0 0 rgba(134, 220, 171, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(134, 220, 171, 0); } }

.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.model-col { width: 26%; }
.elo-col { width: 78px; }
th { text-align: left; font-size: 12px; font-weight: 550; color: var(--muted); padding: 11px 14px; background: var(--night); border-bottom: 1px solid var(--line); }
th abbr { text-decoration: none; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
.num { text-align: right; white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
th.num { font-family: var(--body); }
.rank-col { width: 58px; }
.rank { color: var(--muted); font-size: 14px; }
tr.top1 .rank { color: var(--cheese); font-weight: 700; }
tr.you { background: rgba(147, 214, 246, .08); }
tr.you td:first-child { box-shadow: inset 3px 0 0 var(--mouse); }

td.rating { font-weight: 650; font-size: 15px; }
td.model { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
th.wdl, td.wdl { width: 44px; text-align: center; padding-left: 4px; padding-right: 4px; }
td.wdl { font-weight: 650; font-size: 14px; }
.win { color: var(--win); } .draw { color: var(--muted); } .loss { color: var(--loss); }
th.win, th.draw, th.loss { font-weight: 650; }
th abbr { text-decoration: none; cursor: help; }
#my-model { font-size: 15px; overflow-wrap: anywhere; }
tr.changed td.rating .rating-value { animation: changed 1.4s ease-out; }
@keyframes changed { from { color: var(--cheese); } to { color: inherit; } }

.player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; flex: 1; }
.tags { display: flex; gap: 6px; flex: none; }
.player a { color: inherit; text-decoration: none; }
.player a:hover { text-decoration: underline; text-underline-offset: 2px; }
.player-name { font-weight: 550; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; background: var(--line); }
.monogram { display: inline-flex; align-items: center; justify-content: center; font: 650 12px/1 var(--body); color: #0a0d1b; text-transform: uppercase; }
.avatar-timothy { background: #bfe3fb; }
.tag { font-size: 11px; font-weight: 650; line-height: 1.5; padding: 0 7px; border-radius: 999px; white-space: nowrap; }
.tag-house { color: #241803; background: var(--cheese); }
.tag-you { color: #06202e; background: var(--mouse); }
.tag-team { color: #2a0a1f; background: #f4a6cf; }

.match-list, .my-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.match-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.match-list li:last-child, .my-list li:last-child { border-bottom: 0; }
.side { color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.side.a { text-align: right; }
.side.won { color: var(--text); font-weight: 600; }
.score { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }

.my-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.result { font-weight: 650; font-size: 13px; }
.result.won { color: var(--win); } .result.lost { color: var(--loss); } .result.draw { color: var(--muted); }
.vs { min-width: 0; overflow-wrap: anywhere; }
.watch { display: flex; gap: 6px; }
.watch a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.watch a:hover { background: var(--panel-raised); }
.watch .as-cat { color: var(--cat); } .watch .as-mouse { color: var(--mouse); }
/* Collapsed: three rows, then a fourth that fades out into the page. */
.my-list.collapsed li:nth-child(n+5) { display: none; }
.my-list.collapsed {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), rgba(0, 0, 0, .12) calc(100% - 4px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), rgba(0, 0, 0, .12) calc(100% - 4px), transparent);
}
.my-list.collapsed li:nth-child(4) { pointer-events: none; }
.show-all { display: flex; align-items: center; gap: 6px; margin: 6px auto 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: 550 13px/1.2 var(--body); cursor: pointer; }
.show-all:hover { background: var(--panel-raised); }
.show-all svg { width: 14px; height: 14px; transition: transform .2s; }
.show-all[aria-expanded="true"] svg { transform: rotate(180deg); }
.my-list time { min-width: 72px; text-align: right; color: var(--faint); font-size: 13px; white-space: nowrap; }

.you-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }
.you-card { padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.you-card h3 { font: 500 20px/1.25 var(--display); margin: 0 0 14px; }
.standing-rank { margin: 0 0 14px; font-size: 15px; }
.standing-rank strong { font: 600 40px/1 var(--display); color: var(--cheese); margin: 0 4px; }
.standing-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.standing-stats dt { font-size: 12px; color: var(--muted); }
.standing-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; }
.standing-note { margin: 12px 0 0; font-size: 13px; }
.standing-empty { margin: 0 0 6px; font: 500 20px/1.3 var(--display); }
#standing-off .muted { margin: 0; font-size: 14px; }
.sub-list { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.sub-list:empty { display: none; }
.sub-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: 14px; }
.sub-list .changelog { overflow-wrap: anywhere; }
.sub-list .sub-meta { grid-column: 2; font-size: 12px; color: var(--faint); }
.sub-list .sub-note { grid-column: 2; font-size: 13px; color: var(--loss); }
.chip { align-self: start; font-size: 11px; font-weight: 650; line-height: 1.6; padding: 0 8px; border-radius: 999px; white-space: nowrap; }
.chip.pending { color: #241803; background: var(--cheese); }
.chip.live { color: #06251a; background: var(--win); }
.chip.approved, .chip.withdrawn { color: var(--muted); background: var(--panel-raised); }
.chip.rejected { color: #2a0b0b; background: var(--loss); }

.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-pick { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 14px; border: 1px dashed var(--line); border-radius: var(--radius-small); background: var(--night); cursor: pointer; min-width: 0; }
.file-pick:hover { border-color: var(--faint); }
.file-pick:focus-within { outline: 2px solid var(--cheese); outline-offset: 2px; }
.file-pick-button { flex: none; padding: 6px 12px; border-radius: 6px; background: var(--panel-raised); font-size: 14px; font-weight: 550; }
.file-pick-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 550; }
.field input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--night); color: var(--text); font: 15px var(--body); }
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: 2px solid var(--cheese); outline-offset: 1px; border-color: transparent; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.submit-row .muted { font-size: 13px; }
.submit-message { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-small); font-size: 14px; background: rgba(134, 220, 171, .1); color: var(--win); }
.submit-message[data-kind="error"] { background: rgba(240, 141, 141, .1); color: var(--loss); }
.submit-help { margin: 14px 0 0; font-size: 13px; }
.submit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin: 0 0 14px; }
.submit-head h3 { margin: 0; }
.chip.countdown { align-self: center; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--cheese); background: rgba(246, 196, 83, .12); }
.chip.countdown.soon { color: #241803; background: var(--cheese); }
.chip.countdown.closed { color: var(--muted); background: var(--panel-raised); }
.submit-deadline { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.submit-deadline[data-kind="closed"] { padding: 10px 12px; border-radius: var(--radius-small); font-size: 14px; color: var(--text); background: var(--night); border-left: 3px solid var(--cheese); }
.submit.closed .file-pick, .submit.closed .field, .submit.closed .submit-row { opacity: .45; }
.submit-help a, .callout a:not(.button) { color: var(--cheese); }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 28px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 14px; }

.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-card { position: relative; padding: 22px; background: var(--night); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.how-card h3 { font: 500 20px/1.25 var(--display); margin: 10px 0 12px; padding-right: 92px; }
.how-art { position: absolute; top: 14px; right: 16px; width: 64px; height: 64px; object-fit: contain; }
.how-art-wide { width: 88px; right: 10px; } /* the mouse is side-on, carrying its cheese */
.how-card p { margin: 0; color: var(--muted); font-size: 14px; }
.how-tag { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.how-cat { color: var(--cat); } .how-mouse { color: var(--mouse); } .how-round { color: var(--cheese); }
.moments-title { font: 500 20px/1.25 var(--display); margin: 34px 0 14px; }
.moments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.moment { margin: 0; overflow: hidden; background: var(--night); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.moment canvas { display: block; width: 100%; aspect-ratio: 8 / 5; }
.moment figcaption { padding: 14px 16px 18px; }
.moment strong { display: block; margin: 6px 0; font: 500 18px/1.25 var(--display); }
.moment p { margin: 0; color: var(--muted); font-size: 14px; }

.prose { max-width: 760px; margin: 0 auto; padding: 24px 24px 72px; }
.prose h1 { font: 500 clamp(32px, 5vw, 44px)/1.1 var(--display); margin: 8px 0 20px; }
.prose h2 { margin: 40px 0 10px; }
.prose h3 { font: 600 16px/1.3 var(--body); margin: 26px 0 8px; }
.prose p, .prose li { color: #d9d7d6; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose code { font: 13px var(--mono); padding: 1px 5px; background: var(--panel-raised); border-radius: 4px; color: var(--text); overflow-wrap: anywhere; }
.prose pre { margin: 0 0 16px; padding: 14px 16px; overflow-x: auto; background: var(--night); border: 1px solid var(--line-soft); border-radius: var(--radius-small); }
.prose pre code { padding: 0; background: none; font-size: 13px; line-height: 1.55; overflow-wrap: normal; }
.prose-table { margin: 0 0 16px; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-small); }
.prose td { font-size: 14px; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; max-width: 1160px; margin: 0 auto; padding: 22px 24px 36px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; }

@media (max-width: 1100px) {
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .columns, .how-grid, .you-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { margin: 0 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .moments { grid-template-columns: minmax(0, 1fr); }
  .nav { flex-wrap: wrap; gap: 10px 16px; padding: 14px 16px; }
  .nav-links { order: 3; width: 100%; }
  .account { margin-left: auto; }
  .hero { padding: 8px 16px 0; }
  .stats { margin: 0 16px; }
  .stat { padding: 12px 14px; }
  .stat-value { font-size: 20px; }
  .content { padding: 32px 16px 48px; gap: 40px; }
  .hide-small { display: none; }
  th, td { padding: 10px 8px; }
  th.wdl, td.wdl { width: 34px; padding-left: 2px; padding-right: 2px; }
  .elo-col { width: 60px; }
  .rank-col { width: 42px; }
  .my-list li { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 10px; }
  .my-list .watch { grid-column: 2; }
  .my-list time { display: none; }
  .footer { padding: 20px 16px 32px; }
}

/* your details, asked once before the first upload */
.profile-dialog { width: min(480px, calc(100vw - 32px)); padding: 22px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.profile-dialog::backdrop { background: rgba(5, 7, 15, .72); }
.profile-dialog h3 { font: 500 20px/1.25 var(--display); margin: 0 0 8px; }
.profile-dialog p.muted { margin: 0 0 16px; font-size: 14px; }
.profile-names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .profile-names { grid-template-columns: 1fr; } }

/* final standings, once the challenge has closed */
.medal { font-size: 16px; line-height: 1; }

/* the hero's cat and mouse answer a click */
.hero-art .pokeable { cursor: pointer; }
.hero-art .pop { font: 700 22px/1 var(--mono); fill: var(--cheese); }
.hero-art.painted .pop { font-size: 64px; }
/* the painting covers the whole header, under the nav; the title sits on the plain wall on the left */
.nav { position: relative; z-index: 2; }
.hero-scene { position: relative; margin-top: -74px; min-height: min(56.25vw, 720px); display: flex; align-items: center; }
.hero-scene .hero-art.painted { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; z-index: 0; }
.hero-scene .hero { position: relative; z-index: 1; width: 100%; grid-template-columns: minmax(0, 520px); padding-top: 96px; padding-bottom: 64px; pointer-events: none; }
.hero-scene .hero-copy { pointer-events: auto; }
.hero-scene .lede { color: #c9cde0; }
@media (max-width: 900px) {
  .hero-scene { display: block; margin-top: 0; min-height: 0; }
  .hero-scene .hero { padding-top: 12px; padding-bottom: 8px; }
  .hero-scene .hero-art.painted { position: static; height: auto; aspect-ratio: 4 / 3; max-width: 640px; margin: 0 auto; }
}

/* 404 */
.notfound { min-height: calc(100vh - 160px); display: grid; place-content: center; justify-items: center; gap: 10px; padding: 40px 16px; text-align: center; }
.notfound-art { width: min(320px, 80vw); height: auto; }
.notfound-eyes { animation: peek 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes peek { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
.notfound-code { margin: 0; font: 600 14px/1 var(--mono); letter-spacing: .2em; color: var(--cheese); }
.notfound h1 { font: 500 clamp(30px, 5vw, 44px)/1.1 var(--display); margin: 0; }
.notfound p.muted { margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) { .notfound-eyes { animation: none; } }

/* your matches page */
.page-title { font: 500 clamp(30px, 4.4vw, 44px)/1.1 var(--display); margin: 0; }
.history .stats { margin: 0; }
.history-stats .stat-value { font-size: 22px; }
.chart-card { position: relative; padding: 14px 10px 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis { font: 11px var(--body); fill: var(--faint); }
.chart .version { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .version-label { font: 600 11px var(--mono); fill: var(--muted); }
.chart .elo-line { fill: none; stroke: var(--cheese); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .elo-end { fill: var(--cheese); stroke: var(--panel); stroke-width: 2; }
.chart .elo-dot { fill: var(--cheese); stroke: var(--panel); stroke-width: 2; pointer-events: none; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; pointer-events: none; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); display: grid; gap: 1px; padding: 6px 10px; font-size: 12px; white-space: nowrap; color: var(--muted); background: var(--night); border: 1px solid var(--line); border-radius: var(--radius-small); pointer-events: none; }
.chart-tip strong { color: var(--text); font: 650 13px var(--mono); }

.history-table { table-layout: auto; }
.history-table td { font-size: 14px; }
.h-when { white-space: nowrap; color: var(--muted); }
.h-version { margin-left: 8px; font: 600 11px var(--mono); color: var(--faint); }
.h-opponent { display: flex; align-items: center; gap: 8px; min-width: 0; }
.h-opponent .player-name { max-width: 220px; }
.h-result { white-space: nowrap; }
.h-result .score { color: var(--muted); margin-left: 4px; }
td.h-elo { font-weight: 650; }
.h-elo-after { margin-left: 8px; font-weight: 400; color: var(--faint); }
.legs { display: grid; gap: 2px; }
.leg { display: flex; align-items: baseline; gap: 10px; font-size: 13px; white-space: nowrap; }
.leg-role { width: 44px; font-weight: 650; }
.leg.as-cat .leg-role { color: var(--cat); } .leg.as-mouse .leg-role { color: var(--mouse); }
.leg a, .link-button { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px; }
.leg a:hover, .link-button:hover { text-decoration-color: currentColor; }
.link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.link-button:disabled { opacity: .5; cursor: progress; }
.mine-all { display: block; margin-top: 10px; text-align: right; font-size: 14px; color: var(--cheese); }

@media (max-width: 720px) {
  .history-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-stats .stat:nth-child(odd) { border-left: 0; }
  .history-stats .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .history-table .h-when { display: none; }
  .h-opponent .player-name { max-width: 110px; }
  .h-opponent .tag { display: none; }
  .h-elo-after { display: none; }
}

/* ------------------------------------------------------------------ one visual language
   Every card, table and panel shares the painted header's brush-stroke grain and a faint warm
   moonlight along its top edge, so the page reads as one painting, not a painting plus a UI kit. */
.stats, .table-wrap, .match-list, .my-list, .you-card, .how-card, .moment, .setup, .chart-card,
.notice, .profile-dialog, .empty, .callout, .prose-table {
  background-image: linear-gradient(180deg, rgba(246, 196, 83, .045), rgba(246, 196, 83, 0) 140px), url('/art/grain.png');
  background-size: auto, 256px 256px;
  background-blend-mode: normal, soft-light;
  box-shadow: inset 0 1px 0 rgba(248, 217, 138, .07);
}

/* ------------------------------------------------------------------ first steps */
.setup { margin: 0 0 16px; padding: 20px 22px; background-color: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.setup h3 { font: 500 20px/1.25 var(--display); margin: 0 0 14px; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.setup-steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-content: start; padding: 14px; background: var(--night); border: 1px solid var(--line-soft); border-radius: var(--radius-small); transition: border-color .2s, opacity .2s; }
.setup-steps li.next { border-color: rgba(246, 196, 83, .55); box-shadow: 0 0 0 3px rgba(246, 196, 83, .08); }
.setup-steps li.done { opacity: .62; }
.step-mark { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 650 13px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); }
.step-mark::before { content: counter(step); }
.setup-steps li.next .step-mark { color: #241803; background: var(--cheese); border-color: var(--cheese); }
.setup-steps li.done .step-mark { color: #06251a; background: var(--win); border-color: var(--win); }
.setup-steps li.done .step-mark::before { content: '✓'; }
.step-text strong { display: block; font-weight: 650; margin: 3px 0 4px; }
.step-text .muted { display: block; font-size: 13px; line-height: 1.45; }
.setup-steps .button { grid-column: 2; justify-self: start; }
.setup-steps li.next .button { background: var(--cheese); border-color: var(--cheese); color: #241803; }
.setup-steps li.next .button:hover { background: #ffd471; border-color: #ffd471; }
.setup-steps li.done .button { background: transparent; color: var(--muted); border-color: var(--line-soft); }

/* ------------------------------------------------------------------ waiting for a round */
.wait { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.wait-text { margin: 0; font-size: 14px; }
.wait-bar { margin-top: 8px; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.wait-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cheese); transition: width .4s ease-out; }

/* ------------------------------------------------------------------ signed in: the same painting, with your standing on the wall */
body.signed-in .hero-scene .hero { grid-template-columns: minmax(0, 620px); }
body.signed-in .hero h1 { font-size: clamp(36px, 4.4vw, 56px); margin: 8px 0 20px; }
body.signed-in .lede { display: none; }
.hero-status { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.hs-item { display: grid; gap: 2px; min-width: 118px; padding: 10px 14px; background: rgba(10, 13, 27, .62); border: 1px solid var(--line); border-radius: var(--radius-small); backdrop-filter: blur(4px); }
.hs-label { font-size: 12px; color: var(--muted); }
.hs-value { font: 600 20px/1.25 var(--mono); white-space: nowrap; }
.hs-of { font: 400 13px var(--body); color: var(--muted); }
.hs-change { font-size: 14px; }
.hs-lead { font-size: 17px; color: #c9cde0; }
