/* Saison Fire: quiet graphite surfaces, one ember spotlight, and system fonts. */
:root {
  color-scheme: dark;
  --bg: #101216;
  --surface: #1b1e23;
  --surface-raised: #252a30;
  --line: #3b4149;
  --muted: #b9bdc3;
  --text: #f7f3ee;
  --orange: #ffae73;
  --gold: #ffd1a8;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, [role="option"]:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
img { display: block; object-fit: cover; }
svg { display: block; width: 100%; height: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.14; }
h2 { font-size: 25px; }
h3 { font-size: 20px; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; font-weight: 760; letter-spacing: .035em; }
.brand-icon { width: 24px; height: 29px; color: var(--orange); }
.site-header nav { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; }
.site-header nav a:hover { background: var(--surface); color: var(--text); }
.nav-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 7px; background: #353c43; border-radius: 99px; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }

.page-intro { position: relative; z-index: 2; padding: 39px 44px 35px; text-align: left; scroll-margin-top: 20px; overflow: visible; border: 1px solid #454044; border-radius: 22px; background-color: #20242a; background-image: radial-gradient(ellipse 65% 110% at 100% 0%, #8a452c94, transparent 78%), linear-gradient(115deg, #262329, #1a2027 80%); }
.page-intro::before { content: ""; position: absolute; top: 0; left: 42px; width: 76px; height: 3px; background: var(--orange); border-radius: 0 0 4px 4px; }
.intro-kicker { color: var(--orange); font-size: clamp(29px, 3.4vw, 40px); font-weight: 750; letter-spacing: -.045em; line-height: 1.05; }
h1 { margin-top: 6px; font-size: clamp(43px, 5.7vw, 66px); letter-spacing: -.055em; }
h1 em { font-style: normal; color: var(--gold); }
.intro-copy { margin-top: 9px; font-size: 16px; color: var(--muted); }
.search-form { position: relative; display: flex; gap: 8px; max-width: 690px; margin: 23px 0 0; padding: 6px; text-align: left; background: #11161c; border: 1px solid #5b6168; border-radius: 14px; }
.search-form:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px #ffae7329; }
.search-field { flex: 1; min-width: 0; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 13px; }
.search-icon { flex: none; width: 20px; height: 20px; color: var(--muted); }
.search-input-wrap input { width: 100%; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 16px; outline: none; }
.search-input-wrap input::placeholder { color: #aab1b8; opacity: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--text); white-space: nowrap; }
.button-primary { color: #2a170c; background: var(--orange); border-color: var(--orange); }
.button-primary:hover { background: #ffb780; border-color: #ffb780; }
.button-outline { background: #292e35; color: var(--text); border-color: #505860; }
.button-outline:hover { background: #343b42; border-color: #71808d; }
.button > span { font-size: 17px; line-height: 1; }
.search-message { margin-top: 14px; color: #ffccad; font-size: 14px; }
.search-message.is-error { color: #ffccad; }
.overview { display: flex; justify-content: flex-start; margin-top: 26px; }
.overview > div { display: flex; flex-direction: column; gap: 1px; padding: 0 27px; min-width: 0; }
.overview > div:first-child { padding-left: 0; }
.overview > div + div { border-left: 1px solid var(--line); }
.overview-number { color: var(--text); font-size: 23px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.overview > div > span:last-child { color: var(--muted); font-size: 13px; }

/* The 64px rows and 6px padding are part of search-window.js's geometry. */
.suggestions, .suggestion-status { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0; background: #20252b; border: 1px solid #535a62; border-radius: 12px; text-align: left; box-shadow: 0 16px 35px #0008; }
.suggestions { padding: 6px; max-height: 396px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; scroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #747d86 transparent; }
.suggestion-status { padding: 18px; color: var(--muted); font-size: 14px; }
.suggestion { display: flex; align-items: center; gap: 12px; height: 64px; min-height: 64px; max-height: 64px; min-width: 0; padding: 9px 10px; border-radius: 8px; color: var(--text); cursor: pointer; }
.suggestion:hover, .suggestion.is-active, .suggestion[aria-selected="true"] { background: #343d46; }
.suggestion img { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #30363d; }
.suggestion > div { min-width: 0; flex: 1; }
.suggestion-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.suggestion-detail { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.suggestion mark { color: #ffd1a8; background: transparent; font-weight: 650; }
.suggestion-arrow { flex: none; margin-left: auto; color: #ffae73; font-size: 17px; }
.suggestion-spacer { pointer-events: none; }

.current-day { padding-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.heading-inline { min-width: 0; }
.heading-inline h2 { font-size: 25px; }
.day-picker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.day-picker select { min-height: 44px; min-width: 110px; max-width: 100%; padding: 9px 12px; border: 1px solid #58616b; border-radius: 10px; color: var(--text); background: var(--surface); font-size: 15px; }
.day-hero { display: grid; grid-template-columns: 1.42fr 1fr; gap: 14px; }
.winner-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px; min-width: 0; min-height: 212px; border: 1px solid #815b4a; border-radius: var(--radius); background-color: #29252a; background-image: radial-gradient(circle at 90% 50%, #a15a326e 0, transparent 43%), linear-gradient(120deg, #322729, #22242b 78%); }
.winner-copy { min-width: 0; flex: 1; }
.eyebrow, .label { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 550; }
.winner-copy > .eyebrow { color: var(--gold); font-size: 14px; }
.winner-copy h3 { margin-top: 8px; font-size: clamp(24px, 2.8vw, 31px); letter-spacing: -.035em; }
.profile-name-link { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; overflow-wrap: anywhere; text-underline-offset: 4px; }
.profile-name-link:hover { color: var(--gold); text-decoration: underline; }
.winner-name { display: inline-flex; align-items: center; min-height: 44px; font: inherit; font-weight: 700; }
.winner-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.tag { display: inline-flex; align-items: center; min-height: 29px; padding: 4px 10px; border: 1px solid #6a6465; border-radius: 99px; color: #e5e0dc; font-size: 12px; white-space: nowrap; }
.tag-orange { background: #54362e; border-color: #996951; color: #ffddbc; }
.profile-avatar-link { display: block; padding: 0; border: 0; background: transparent; border-radius: 50%; color: inherit; }
.winner-visual { position: relative; flex: none; width: 112px; height: 112px; }
.winner-visual::before { content: ""; position: absolute; inset: -11px; border: 1px solid #ffb47caa; border-left-color: transparent; border-radius: 50%; transform: rotate(-28deg); pointer-events: none; }
.winner-avatar { width: 112px; height: 112px; border: 3px solid #ffbd89; border-radius: 50%; background: #30363d; }
.profile-avatar-link:hover img { outline: 2px solid var(--orange); outline-offset: 3px; }
.day-summary { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hunter-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hunter-row > div { min-width: 0; flex: 1; }
.hunter-row .profile-name-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1px; font-size: 16px; }
.avatar { border-radius: 50%; background: #30363d; }
.avatar-small { width: 44px; height: 44px; }
.hunter-mark { display: none; }
.day-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.day-numbers strong { display: block; margin-top: 5px; font-size: 25px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.summary-foot { display: flex; margin-top: 14px; font-size: 13px; color: var(--muted); }

.leaderboard-section { padding-top: 32px; }
#leaderboard-content { position: relative; }
#leaderboard-content.is-refreshing .leaderboard-table-wrap { visibility: hidden; min-height: 90px; }
#leaderboard-content.is-refreshing #leaderboard-message { position: absolute; inset: 0 0 auto; margin: 0; padding: 20px 16px; }
.leaderboard-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.leaderboard-table { table-layout: fixed; width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.leaderboard-table th { padding: 13px 16px; color: var(--muted); background: #252a30; font-size: 13px; font-weight: 600; }
.leaderboard-table td { padding: 8px 16px; border-top: 1px solid var(--line); color: #d9dbe0; font-size: 14px; }
.leaderboard-table th:first-child, .leaderboard-table td:first-child { width: 74px; }
.leaderboard-table th:last-child, .leaderboard-table td:last-child { width: 130px; text-align: right; }
.leaderboard-table tr:hover td { background: #2a3036; }
.leaderboard-person { display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.leaderboard-person:hover { color: var(--gold); }
.leaderboard-person img { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #30363d; }
.leaderboard-person > span { overflow: hidden; min-width: 0; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.rank-number { color: var(--muted); }
.leaderboard-table .rank-medal, .leaderboard-table .is-winner { color: #ffd1a8; }
.time-column { font-size: 13px !important; }
.archive-section { padding-top: 35px; scroll-margin-top: 22px; }
.muted { color: var(--muted); font-size: 14px; }
.day-archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.archive-card { min-width: 0; padding: 13px 17px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.archive-card.is-active { border-color: #ad7855; background: #2b292a; box-shadow: inset 3px 0 0 var(--orange); }
.archive-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0; border: 0; color: var(--text); background: transparent; font-size: 15px; font-weight: 600; text-align: left; }
.archive-card-head:hover { color: var(--gold); }
.archive-card-head > span:last-child { color: #ffae73; font-size: 17px; }
.archive-winner { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 0; margin-top: 10px; border: 0; color: var(--text); background: transparent; text-align: left; }
.archive-winner img { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #30363d; }
.archive-winner > div { min-width: 0; }
.archive-winner strong { display: block; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 600; }
.archive-winner:hover strong { color: var(--gold); }
.archive-winner .label { font-size: 12px; }
.archive-card-foot { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer { display: flex; padding: 25px 0 34px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.notice { margin-top: 20px; padding: 15px 18px; border: 1px solid #90573d; border-radius: 10px; background: #332822; color: #ffccad; font-size: 14px; overflow-wrap: anywhere; }
.loading-card, .empty-state { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 205px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 15px; }
.empty-state { flex-direction: column; text-align: center; }
.empty-state h3 { color: var(--text); }
.empty-state p { max-width: 420px; }
.loading-dot { width: 7px; height: 7px; flex: none; background: var(--orange); border-radius: 50%; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 50; min-height: 44px; padding: 11px 15px; border-radius: 10px; background: var(--orange); color: #2a170c; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.profile-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 0; border: 1px solid #4c535c; border-radius: 20px; background: var(--surface); color: var(--text); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #747d86 transparent; }
.profile-dialog::backdrop { background: #070a0cdd; }
body:has(.profile-dialog[open]) { overflow: hidden; }
.profile-close { position: sticky; display: grid; place-items: center; top: 10px; float: right; z-index: 3; width: 44px; height: 44px; margin: 10px 10px -54px 0; padding: 12px; border: 1px solid #62666d; border-radius: 12px; background: #30363e; color: var(--text); }
.profile-close:hover { background: #3c444d; }
.profile-loading { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 230px; padding: 25px; color: var(--muted); font-size: 14px; }
.profile-dialog > .notice { margin: 68px 22px 22px; }
.profile-header { display: flex; align-items: flex-start; gap: 20px; padding: 29px 72px 27px 28px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 0 0, #57372d88, transparent 58%), linear-gradient(115deg, #28272b, #1b1e23); }
.profile-avatar { width: 72px; height: 72px; flex: none; border: 2px solid #bd8461; border-radius: 50%; background: #30363d; }
.profile-identity { min-width: 0; }
.profile-identity h2 { font-size: 27px; line-height: 1.25; overflow-wrap: anywhere; }
.profile-instagram { display: inline-block; min-height: 44px; padding-block: 5px; color: inherit; text-decoration: underline; text-decoration-color: #bd846177; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.profile-instagram:hover { color: var(--gold); text-decoration-color: currentColor; }
.profile-external { display: inline-block; margin-left: 7px; font-size: .7em; color: var(--orange); vertical-align: .1em; }
.profile-subtitle { margin-top: 6px; color: var(--muted); font-size: 14px; }
.profile-picture-update { margin-top: 16px; }
.profile-picture-update > p:first-child { margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.profile-picture-update .button { gap: 8px; font-size: 13px; padding: 8px 13px; }
.profile-picture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.picture-success { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #8de9ad; font-size: 13px; font-weight: 600; animation: picture-success-in .35s ease-out both; }
.picture-success-icon { position: relative; display: inline-block; width: 28px; height: 28px; flex: none; }
.picture-success-icon::before { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: #4bd58040; animation: picture-success-halo .8s .15s ease-out both; }
.picture-success-icon svg { position: relative; overflow: visible; }
.picture-success-icon circle { fill: #2d5940; stroke: #70e5a0; stroke-width: 1.5; }
.picture-success-icon path { stroke: #b7ffcc; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: picture-success-check .4s .12s ease-out both; }
.profile-picture-update .button[aria-busy="true"]::before { content: ""; width: 12px; height: 12px; border: 2px solid #ffae7344; border-top-color: var(--orange); border-radius: 50%; animation: picture-spin .8s linear infinite; }
.profile-picture-message { max-width: 42ch; margin-top: 9px; color: #d9dbe0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-picture-message.is-error { color: #ffccad; }
@keyframes picture-spin { to { transform: rotate(360deg); } }
@keyframes picture-success-in { from { opacity: 0; transform: translateY(4px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes picture-success-halo { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes picture-success-check { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .profile-picture-update .button[aria-busy="true"]::before,
  .picture-success, .picture-success-icon::before, .picture-success-icon path { animation: none; }
  .picture-success-icon::before { display: none; }
}
.profile-body { padding: 25px 28px 30px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-stat { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 16px 14px; border: 1px solid #444b53; border-radius: 12px; background: #252a30; }
.profile-stat strong { color: var(--gold); font-size: 27px; font-weight: 680; line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-stat strong.value-compact { font-size: clamp(18px, 4.6vw, 24px); white-space: nowrap; }
.profile-stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.profile-more { margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; cursor: pointer; color: var(--text); font-size: 15px; list-style: none; }
.profile-more > summary::-webkit-details-marker { display: none; }
.profile-more > summary::after { content: "+"; color: var(--orange); font-size: 20px; }
.profile-more[open] > summary::after { content: "−"; }
.profile-records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 23px; padding: 8px 0 20px; }
.profile-record { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-variant-numeric: tabular-nums; }
.profile-record strong { color: #d9dbe0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.profile-record span { color: var(--muted); font-size: 13px; }
.profile-note { margin: 18px 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; color: #b9bdc3; font-size: 14px; }
.profile-round { margin-top: 22px; padding: 19px; border: 1px solid #654c42; border-radius: 14px; background: linear-gradient(115deg, #312b2b, #252a30); }
.profile-round-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-round-heading h3 { font-size: 18px; }
.profile-round-stats { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 18px; margin-top: 20px; }
.profile-round-stats > div { min-width: 0; }
.profile-round-stats > div + div { padding-left: 18px; border-left: 1px solid #3b4149; }
.profile-round-stats strong { display: block; margin-top: 6px; color: #f2f3f4; font-size: 19px; line-height: 1.35; letter-spacing: -.025em; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-round-stats .profile-finish strong { color: #ffd1a8; font-size: 25px; }
.metric-note { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.profile-history-section { margin-top: 24px; }
.profile-history-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.history-sort { display: inline-flex; flex: none; align-items: stretch; border: 1px solid #5b646e; border-radius: 10px; background: #252a30; }
.history-sort button { min-width: 72px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 8px 0 0 8px; color: var(--text); background: transparent; font-size: 14px; font-weight: 600; }
.history-sort button:hover { background: #ffffff0b; }
.history-sort .history-sort-direction { min-width: 44px; padding-inline: 12px; border-left: 1px solid #5b646e; border-radius: 0 8px 8px 0; color: var(--orange); font-size: 22px; line-height: 1; }
.profile-history-heading h3 { font-size: 19px; }
.profile-history { display: grid; gap: 8px; }
.history-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-width: 0; }
.history-row { display: grid; grid-template-columns: 70px 1fr 1fr 14px; align-items: center; gap: 12px; min-width: 0; width: 100%; min-height: 58px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #22272d; color: var(--text); text-align: left; font-variant-numeric: tabular-nums; }
.history-row:hover { background: #30363d; border-color: #6f767e; }
.history-row.is-active, .history-row[aria-pressed="true"] { background: #373234; border-color: #b17a56; box-shadow: inset 3px 0 0 var(--orange); }
.history-day { font-size: 14px; }
.history-result { color: #ffd1a8; font-size: 14px; font-weight: 600; }
.history-result.is-winner { color: #ffd1a8; }
.history-moment { color: var(--muted); text-align: right; font-size: 13px; }
.history-chevron { color: #ffae73; font-size: 16px; text-align: right; }
.see-others { min-height: 44px; padding: 10px 14px; border: 1px solid #666b72; border-radius: 10px; background: #2b3036; color: var(--gold); font-size: 13px; font-weight: 600; white-space: nowrap; }
.see-others:hover { background: #3b4148; border-color: #8f989e; }

.neighbors-panel { min-width: 0; }
.neighbors-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.neighbors-heading-row h3 { font-size: 21px; }
.neighbors-day { display: block; margin-top: 4px; color: #b9bdc3; font-size: 13px; }
.neighbors-heading-row .button { padding: 9px 12px; font-size: 13px; }
.neighbors-anchor { margin-bottom: 16px; color: #ffd1a8; font-size: 14px; overflow-wrap: anywhere; }
.neighbors-scroll { height: 420px; min-height: 260px; max-height: 52dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; overflow-anchor: none; scroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #747d86 transparent; border: 1px solid #4a515a; border-radius: 12px; background: #1b1e23; contain: layout style; touch-action: pan-y; }
.neighbors-list { display: grid; align-content: start; min-width: 0; }
.neighbor-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 100px; align-items: center; gap: 12px; min-height: 64px; padding: 9px 13px; border-bottom: 1px solid var(--line); color: #f7f3ee; font-variant-numeric: tabular-nums; }
.neighbor-row:last-child { border-bottom: 0; }
.neighbor-row.is-anchor { background: #303944; box-shadow: inset 3px 0 0 var(--orange); }
.neighbor-rank { color: var(--orange); font-size: 13px; font-weight: 650; white-space: nowrap; }
.neighbor-row.is-anchor .neighbor-rank { color: #ffd1a8; }
.neighbor-person { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.neighbor-person:hover { color: var(--gold); }
.neighbor-person img { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #30363d; }
.neighbor-person span { min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neighbor-time { color: var(--muted); font-size: 13px; text-align: right; line-height: 1.4; }
.neighbor-loader { position: sticky; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; background: #252a30; color: #ffae73; }
#neighbors-before { top: 0; }
#neighbors-after { bottom: 0; }
.neighbor-spinner { display: block; width: 18px; height: 18px; border: 2px solid #3b4149; border-top-color: #ffd1a8; border-radius: 50%; animation: neighbor-spin .85s linear infinite; }
@keyframes neighbor-spin { to { transform: rotate(360deg); } }
.neighbors-error { margin-top: 12px; color: #ffccad; font-size: 14px; }
.neighbors-retry { margin-top: 12px; }

@media (min-width: 960px) {
  .page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    grid-template-rows: auto auto auto;
    gap: 0 32px;
    align-items: center;
    padding-block: 41px;
  }
  .intro-kicker { grid-column: 1; grid-row: 1; }
  .page-intro h1 { grid-column: 1; grid-row: 2; }
  .intro-copy { grid-column: 1; grid-row: 3; }
  .search-form { grid-column: 2; grid-row: 2; width: 100%; margin-top: 0; }
  .search-message { grid-column: 2; grid-row: 1; margin: 0; }
  .overview { grid-column: 2; grid-row: 3; margin-top: 13px; }
}
@media (max-width: 900px) {
  .day-hero { grid-template-columns: 1.2fr 1fr; gap: 12px; }
  .winner-card { padding: 21px; gap: 18px; }
  .winner-visual, .winner-avatar { width: 96px; height: 96px; }
  .winner-copy h3 { font-size: 25px; }
  .day-summary { padding: 20px; }
}
@media (max-width: 720px) {
  .day-hero { grid-template-columns: 1fr; }
  .winner-card { min-height: 180px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 64px; gap: 8px; }
  .site-header nav { gap: 2px; }
  .site-header nav a { padding-inline: 8px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand-icon { width: 22px; height: 26px; }
  .page-intro { padding: 25px 22px 23px; border-radius: 18px; }
  .page-intro::before { left: 22px; width: 55px; }
  .intro-kicker { font-size: clamp(29px, 8vw, 35px); }
  h1 { margin-top: 5px; font-size: clamp(39px, 10vw, 48px); }
  .intro-copy { margin-top: 7px; font-size: 14px; }
  .search-form { gap: 4px; padding: 5px; margin-top: 17px; }
  .search-input-wrap { gap: 8px; padding: 0 7px; }
  .search-form .button { gap: 5px; padding: 10px 12px; font-size: 14px; }
  .search-form .button > span { display: none; }
  .overview { margin-top: 19px; }
  .overview > div { padding: 0 23px; }
  .overview-number { font-size: 21px; }
  .overview > div > span:last-child { font-size: 13px; }
  .suggestions { max-height: 332px; }
  .current-day { padding-top: 27px; }
  .section-heading { gap: 12px; margin-bottom: 15px; }
  .section-heading h2 { font-size: 22px; }
  .day-picker > span { display: none; }
  .day-picker select { min-width: 96px; font-size: 16px; }
  .day-hero { grid-template-columns: 1fr; }
  .winner-card { min-height: 172px; padding: 21px; }
  .winner-copy h3 { font-size: 25px; }
  .winner-visual, .winner-avatar { width: 100px; height: 100px; }
  .winner-tags { margin-top: 14px; }
  .day-summary { padding: 18px 20px; }
  .day-numbers { margin-top: 17px; padding-top: 14px; }
  .day-numbers strong { font-size: 24px; }
  .leaderboard-section { padding-top: 26px; }
  .leaderboard-section .button { font-size: 14px; padding: 9px 11px; }
  .leaderboard-table th, .leaderboard-table td { padding-inline: 10px; }
  .leaderboard-table th:first-child, .leaderboard-table td:first-child { width: 53px; }
  .leaderboard-table th:last-child, .leaderboard-table td:last-child { width: 93px; }
  .leaderboard-person { gap: 8px; }
  .leaderboard-person img { width: 32px; height: 32px; }
  .archive-section { padding-top: 27px; }
  .day-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .archive-card { padding: 10px 12px 13px; }
  .archive-winner { gap: 8px; }
  .archive-winner img { width: 34px; height: 34px; }
  .archive-winner .label { font-size: 12px; }
  .site-footer { margin-top: 30px; }
  .profile-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 16px; }
  .profile-close { top: 8px; margin: 8px 8px -52px 0; }
  .profile-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 18px; }
  .profile-identity { width: 100%; }
  .profile-avatar { width: 60px; height: 60px; }
  .profile-identity h2 { font-size: 22px; }
  .profile-subtitle { font-size: 13px; margin-top: 5px; }
  .profile-body { padding: 18px 17px 22px; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .profile-stat { padding: 14px; }
  .profile-stat strong { font-size: 26px; }
  .profile-stat span { font-size: 13px; }
  .profile-records { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .profile-round { padding: 16px; margin-top: 19px; }
  .profile-round-heading { align-items: flex-start; }
  .profile-round-heading h3 { font-size: 18px; }
  .profile-round-stats { grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 17px; }
  .profile-round-stats > div + div { padding-left: 15px; }
  .profile-round-stats > div:nth-child(3) { grid-column: 1/-1; padding: 13px 0 0; border-left: 0; border-top: 1px solid #3b4149; }
  .profile-round-stats strong { font-size: 19px; }
  .profile-history-section { margin-top: 21px; }
  .profile-history-heading { gap: 10px; }
  .history-entry { gap: 7px; }
  .history-row { grid-template-columns: 1fr auto; gap: 4px 8px; min-height: 74px; padding: 11px; }
  .history-day, .history-result { font-size: 14px; }
  .history-result { text-align: right; }
  .history-moment { grid-column: 1/-1; text-align: left; font-size: 13px; }
  .history-chevron { display: none; }
  .see-others { padding: 9px 11px; font-size: 13px; }
  .neighbors-heading-row { align-items: flex-start; gap: 10px; }
  .neighbors-heading-row h3 { font-size: 20px; }
  .neighbors-heading-row .button { padding: 9px 10px; font-size: 13px; }
  .neighbors-anchor { font-size: 14px; margin-bottom: 13px; }
  .neighbors-scroll { height: 360px; max-height: 49dvh; min-height: 250px; }
  .neighbor-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 12px; }
  .neighbor-person { grid-column: 1/-1; grid-row: 1; }
  .neighbor-rank { grid-column: 1; grid-row: 2; padding-left: 39px; }
  .neighbor-time { grid-column: 2; grid-row: 2; }
  .neighbor-person { gap: 7px; }
  .neighbor-person img { width: 32px; height: 32px; }
}
@media (max-width: 375px) {
  .shell { width: calc(100% - 24px); }
  .site-header nav { gap: 0; }
  .nav-count { margin-left: 5px; }
  h1 { font-size: 39px; }
  .search-icon { display: none; }
  .search-input-wrap { padding-inline: 6px; }
  .search-form .button { padding-inline: 9px; }
  .overview > div { padding-inline: 19px; }
  .winner-card { padding: 16px; gap: 12px; }
  .winner-copy h3 { font-size: 21px; }
  .winner-visual, .winner-avatar { width: 80px; height: 80px; }
  .winner-tags { gap: 5px; }
  .tag { padding-inline: 6px; }
  .leaderboard-table th, .leaderboard-table td { padding-inline: 8px; }
  .leaderboard-table th:first-child, .leaderboard-table td:first-child { width: 45px; }
  .leaderboard-table th:last-child, .leaderboard-table td:last-child { width: 79px; }
  .leaderboard-person { gap: 6px; }
  .day-archive { grid-template-columns: 1fr; }
  .archive-card { padding: 10px 16px 15px; }
  .archive-winner img { width: 40px; height: 40px; }
  .profile-header { padding-left: 14px; gap: 11px; }
  .profile-avatar { width: 52px; height: 52px; }
  .profile-identity h2 { font-size: 20px; }
  .profile-body { padding-inline: 12px; }
  .profile-round { padding: 13px; }
  .profile-round-heading { gap: 7px; }
  .profile-round-heading h3 { font-size: 17px; }
  .history-row { padding-inline: 9px; }
  .history-day, .history-result { font-size: 13px; }
  .see-others { padding-inline: 9px; font-size: 12px; }
  .neighbor-row { padding-inline: 10px; }
  .neighbor-person { gap: 6px; }
  .neighbor-person img { width: 28px; height: 28px; }
  .neighbor-rank { padding-left: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
