.results {
  display: none;
  margin-top: 18px;
}
.results.show {
  display: block;
}
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.results-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}
.results-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.total {
  text-align: right;
}
.total strong {
  display: block;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.07em;
}
.total span {
  color: var(--muted);
  font-weight: 700;
}
.resultrows {
  padding: 8px 24px;
}
.resultrow {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.resultrow:last-child {
  border: 0;
}
.resultrow .idx {
  color: var(--muted);
  font: 800 0.78rem ui-monospace, monospace;
}
.resultrow b, .resultrow small {
  display: block;
}
.resultrow small {
  margin-top: 3px;
  color: var(--muted);
}
.resultrow .pts {
  font-weight: 900;
}
.result-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 24px 24px;
}
.leaderboard {
  padding: 28px 0 48px;
}
dialog.leaderboard-dialog {
  width: min(980px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--card-solid);
  box-shadow: 0 30px 100px var(--overlay);
}
dialog.leaderboard-dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(7px);
}
dialog.leaderboard-dialog .leaderboard {
  padding: 0;
}
dialog.leaderboard-dialog .leader-head {
  align-items: center;
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.leader-head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
dialog.leaderboard-dialog .leader-card {
  margin: 22px;
}
.leader-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.leader-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.leader-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  letter-spacing: -0.05em;
}
.leader-date {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
}
.leader-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.leader-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}
.leader-identity strong {
  color: var(--text);
}
.verified-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}
.leader-login {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--yellow);
  font-weight: 850;
  cursor: pointer;
}
dialog.login-dialog, dialog.profile-dialog {
  width: min(440px, calc(100% - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: #11171e;
  box-shadow: 0 30px 100px var(--overlay);
}
dialog.profile-dialog {
  border-color: var(--line-strong);
  border-radius: 4px;
  background: #11171e;
}
dialog.login-dialog::backdrop, dialog.profile-dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(7px);
}
dialog.rules-dialog {
  width: min(820px, calc(100% - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--card-solid);
  box-shadow: 0 30px 100px var(--overlay);
}
dialog.rules-dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(7px);
}
.rules-body {
  display: grid;
  gap: 20px;
  padding: 22px;
}
.rules-intro {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.5;
}
.rules-example {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-void);
}
.rules-audio-example {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 260px;
  overflow: hidden;
  background: var(--bg-void);
}
.rules-example-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 7px;
  border: 1px solid var(--white-line-strong);
  border-radius: 6px;
  background: var(--glass);
  color: var(--text);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: none;
}
#rulesAudioPoster {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  align-self: end;
  object-fit: cover;
  background: #000;
  transform: none;
}
#rulesAudioVideo {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.rules-audio-shade {
  position: absolute;
  right: 0;
  bottom: 58px;
  left: 0;
  top: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, var(--overlay));
}
.rules-audio-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto minmax(45px, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--white-line-strong);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.rules-map-example {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  background: #10151c;
}
.rules-floor-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 7px;
  border: 1px solid var(--white-line-strong);
  border-radius: 6px;
  background: var(--glass);
  color: var(--text);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .08em;
}
@media (max-width: 560px) {
  .rules-example { grid-template-columns: 1fr; }
  .rules-audio-example, .rules-map-example { min-height: 180px; }
}
.login-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.login-dialog .login-head {
  min-height: 66px;
  padding: 8px 12px 8px 20px;
  background: #0b0e12;
}
.login-head h2 {
  margin: 0;
  font-size: 1.3rem;
}
.login-head h2 span {
  color: var(--yellow);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.login-head h2 .login-brand-prefix {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 1.3rem;
}
.login-brand-logo {
  width: 112px;
  height: 42px;
  display: block;
  flex: 0 1 auto;
  object-fit: contain;
  object-position: left center;
}
.login-title-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.profile-dialog .login-head {
  background: #0b0e12;
  border-bottom-color: var(--line-strong);
}
.profile-title-logo {
  width: 150px;
  height: 34px;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.profile-title-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.close-login {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
}
.close-login span {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}
.close-login span::before,
.close-login span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--muted);
  transform-origin: center;
}
.close-login span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.close-login span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.close-login:hover span::before,
.close-login:hover span::after {
  background: var(--text);
}
.close-login:hover {
  background: var(--red);
  color: var(--text);
}
.login-body {
  display: grid;
  gap: 14px;
  padding: 20px 22px 22px;
}
.login-intro {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}
.login-intro h3 {
  margin: 0;
  font-size: 1.35rem;
}
.provider-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}
.provider-button:hover {
  border-color: var(--yellow-border);
  background: var(--surface-3);
  color: var(--yellow);
  transform: translateY(-2px);
}
.provider-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--text);
  color: var(--ink);
  font-weight: 950;
  font-size: 0.75rem;
}
.provider-mark.r6 {
  background: var(--yellow);
}
.provider-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.provider-options .provider-button {
  min-height: 52px;
}
.provider-logo {
  width: 24px;
  height: 24px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.72rem;
}
.login-divider::before, .login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.email-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.email-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  background: var(--bg);
}
.email-form .btn {
  min-height: 46px;
}
.login-message {
  min-height: 18px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}
.profile-form { display: grid; gap: 14px; }
.profile-recruit-picker {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-recruit-picker legend {
  width: 100%;
  margin-bottom: 8px;
  color: var(--text);
  font-size: .8rem;
  font-weight: 850;
  text-align: center;
}
.profile-recruit-preview {
  width: 132px;
  height: 132px;
  object-fit: contain;
}
.profile-recruit-options {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  gap: 6px;
}
.profile-recruit-option {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.profile-recruit-option:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface-3);
}
.profile-recruit-option[aria-pressed="true"] {
  border-color: var(--blue);
  color: var(--text);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.profile-recruit-option img {
  width: 56px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.profile-recruit-option span {
  font-size: .62rem;
  font-weight: 850;
}
.profile-message {
  min-height: 18px;
  margin: -2px 0 0;
  color: #ff9098;
  font-size: .76rem;
}
.profile-form #saveProfileButton {
  margin-top: -3px;
}
dialog.archive-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background: #11171e;
  box-shadow: 0 30px 100px var(--overlay);
}
dialog.archive-dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(7px);
}
.archive-head, .month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.archive-head {
  min-height: 66px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: #0b0e12;
}
.archive-head h2 {
  margin: 0;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.month-nav {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  padding: 14px 18px 10px;
}
.month-nav strong {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
}
.month-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.month-button svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.month-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
}
.month-button:disabled {
  opacity: 0.22;
  cursor: not-allowed;
}
.calendar {
  padding: 0 18px 18px;
}
.weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.weekdays {
  margin-bottom: 5px;
}
.weekdays span {
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.calendar-day {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #151c24;
  color: var(--text);
  cursor: pointer;
}
.calendar-day:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-3);
}
.calendar-day:disabled {
  opacity: 0.3;
  cursor: default;
}
.calendar-day.blank {
  visibility: hidden;
}
.calendar-day.today {
  border-color: var(--line-strong);
}
.calendar-day.selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.calendar-day-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.calendar-complete {
  color: var(--green);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}
.calendar-date {
  font-size: 0.86rem;
  font-weight: 900;
}
.challenge-number {
  color: #c7d4df;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}
.calendar-day:disabled .challenge-number {
  color: var(--muted);
}
.calendar-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.8rem;
  letter-spacing: .025em;
  text-align: left;
}
.leader-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.leader-table-head, .leader-row {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1.8fr) repeat(3, minmax(68px, .72fr)) minmax(94px, .9fr) minmax(118px, 1.05fr);
  align-items: center;
  column-gap: 14px;
  padding: 0 18px;
}
.leader-table-head {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.leader-table-head .number, .leader-row .number {
  text-align: right;
}
.leader-table-head .round-column { color: var(--text); }
.leader-row {
  position: relative;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}
.leader-row:last-child { border-bottom: 0; }
.leader-row.me::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--yellow);
}
.leader-rank {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 900;
}
.leader-row.rank-1 .leader-rank,
.leader-row.rank-1 .leader-total { color: var(--yellow); }
.leader-row strong { font-size: 1.12rem; }
.leader-player {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.leader-player strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leader-you {
  flex: 0 0 auto;
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.leader-round-score {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 750;
}
.leader-total {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
}
.leader-average {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}
.emptyboard {
  padding: 40px 10px;
  color: var(--muted);
  text-align: center;
}
dialog.statistics-dialog {
  width: min(1040px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  background:
    linear-gradient(135deg, var(--white-soft) 0 1px, transparent 1px) 0 0 / 18px 18px,
    var(--card-solid);
  box-shadow: 0 30px 100px var(--overlay);
}
dialog.statistics-dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(7px);
}
.statistics-shell {
  min-height: 620px;
  max-height: calc(100dvh - 26px);
  overflow-y: auto;
}
.statistics-head {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-strong);
  background: #0b0e12;
}
.statistics-kicker,
.statistics-section-label {
  margin: 0 0 4px;
  color: var(--yellow);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.statistics-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.statistics-title-row h2 {
  margin: 0;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: .95;
  text-transform: uppercase;
}
.statistics-date {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.statistics-body { padding: 22px; }
.statistics-loading,
.statistics-login-state {
  min-height: 470px;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}
.statistics-login-panel {
  width: min(470px, 100%);
  border-top: 3px solid var(--yellow);
  border-bottom: 1px solid var(--line-strong);
  padding: 34px 28px 30px;
  background: #11171e;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.statistics-login-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 1px solid var(--line-strong);
  color: var(--yellow);
}
.statistics-login-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.statistics-login-panel h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.statistics-login-panel .btn {
  margin-top: 22px;
}
.statistics-profile-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 175px) minmax(190px, 220px);
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  background: #10151b;
}
.statistics-profile-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 24px;
}
.statistics-identity {
  min-width: 0;
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}
.statistics-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}
.statistics-current-streak {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 18px;
  border-left: 1px solid var(--line-strong);
  background: #10151b;
}
.statistics-current-streak span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.statistics-current-streak strong {
  margin-top: 3px;
  font-family: "Oswald", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
}
.statistics-red-pings {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-left: 1px solid var(--line-strong);
  background: #10151b;
}
.statistics-red-pings-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.statistics-red-pings-icon img { width: 34px; height: 34px; object-fit: contain; }
.statistics-red-pings div > span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.statistics-red-pings strong {
  display: block;
  margin-top: 2px;
  font-family: "Oswald", sans-serif;
  font-size: 2.15rem;
  line-height: 1;
}
.statistics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.statistics-panel {
  position: relative;
  border: 1px solid var(--line-strong);
  background: #11171e;
}
.statistics-panel::before {
  position: absolute;
  inset: -1px auto auto -1px;
  width: 42px;
  height: 3px;
  background: var(--yellow);
  content: "";
}
.statistics-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--line);
}
.statistics-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.statistics-panel-head span {
  color: var(--dim);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.daily-rounds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.daily-round {
  position: relative;
  min-width: 0;
  padding: 22px 18px 19px;
  border: 0;
  background: #11171e;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: background .14s ease;
}
.daily-round:hover { background: #161e27; }
.daily-round:focus-visible {
  z-index: 1;
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}
.daily-round-number {
  position: absolute;
  top: 10px;
  left: 12px;
  display: block;
  color: var(--dim);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.daily-round img {
  width: clamp(68px, 8vw, 88px);
  height: clamp(68px, 8vw, 88px);
  display: block;
  object-fit: contain;
}
.daily-round-icon {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.daily-floor-penalty {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  gap: 1px;
  padding: 4px 5px;
  border: 1px solid #f04f5f55;
  color: var(--red);
  background: #f04f5f0e;
  font-size: .52rem;
  font-weight: 950;
  letter-spacing: .055em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.daily-round .daily-floor-penalty strong {
  display: block;
  color: var(--dim);
  font-size: .66rem;
}
.daily-round strong {
  display: block;
  font-size: 1.28rem;
  font-variant-numeric: tabular-nums;
}
.daily-round small { color: var(--muted); font-size: .78rem; }
.daily-round.unplayed img { filter: grayscale(1); opacity: .25; }
.daily-round.perfect strong { color: var(--red); }
.daily-total-value {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: .9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.daily-total-value small { color: var(--dim); font-size: .52em; }
.statistics-histogram { grid-column: 1 / -1; }
.statistics-histogram-title {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.histogram-summary { color: var(--muted); font-weight: 800; }
.statistics-panel-head .histogram-summary {
  font-size: .82rem;
  white-space: nowrap;
}
.statistics-panel-head .histogram-summary strong { color: var(--text); font-size: 1.05rem; }
.histogram-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 1.6vw, 18px);
  padding: 18px 20px 14px;
  background:
    linear-gradient(to top, var(--line) 1px, transparent 1px) 0 0 / 100% 25%;
}
.histogram-band {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 7px;
}
.histogram-count {
  color: var(--text);
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
}
.histogram-bar {
  min-height: 4px;
  border-top: 2px solid #8e99a4;
  background: linear-gradient(to top, #4a535d, #737e89);
}
.histogram-band.empty .histogram-bar {
  border-top-color: #59636d;
  background: #3d4650;
}
.histogram-band.current .histogram-bar,
.histogram-band.current.empty .histogram-bar {
  border-top-color: #ff7b84;
  background: linear-gradient(to top, #a93645, #f04f5f);
}
.histogram-label {
  overflow: visible;
  color: var(--text);
  font-size: .78rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .statistics-body { padding: 14px; }
  .statistics-profile-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-profile-main { grid-column: 1 / -1; padding-right: 12px; border-bottom: 1px solid var(--line-strong); }
  .statistics-current-streak { border-left: 0; }
  .statistics-grid { grid-template-columns: 1fr; }
  .statistics-histogram { grid-column: 1; }
  .histogram-chart { gap: 3px; padding-inline: 10px; }
  .histogram-label { font-size: .65rem; }
}
@media (max-width: 480px) {
  .statistics-head { min-height: 70px; padding: 14px; }
  .statistics-title-row h2 { font-size: 1.85rem; }
  .statistics-date { width: 100%; font-size: .72rem; }
  .statistics-identity { padding: 10px 12px; }
  .statistics-avatar { width: 52px; height: 52px; }
  .statistics-profile-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-profile-main { padding: 10px 12px; }
  .statistics-identity { flex: 1 1 auto; padding: 0; }
  .statistics-current-streak { padding: 12px; }
  .statistics-current-streak strong { font-size: 1.5rem; }
  .statistics-red-pings { padding: 12px; border-left: 1px solid var(--line-strong); }
  .statistics-histogram-head { align-items: flex-start; flex-direction: column; }
  .daily-round { padding-inline: 7px; }
  .daily-round-number { top: 8px; left: 7px; font-size: .56rem; }
  .daily-round img { width: 58px; height: 58px; }
  .daily-round-icon { min-height: 76px; gap: 4px; }
  .daily-floor-penalty { right: 5px; bottom: 5px; padding-inline: 3px; font-size: .46rem; }
  .daily-round strong { font-size: 1.02rem; }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translate(-50%, 25px);
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--toast-bg);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  color: #ffe2e4;
  border-color: #e4566088;
  background: #35141aeF;
  box-shadow: 0 10px 28px #00000066, inset 0 1px 0 #ffffff12;
}
@media (min-width: 901px) {
  body:has(#playView:not([hidden])) {
    overflow: hidden;
  }
  body:has(#playView:not([hidden])) .app {
    height: 100dvh;
    padding-bottom: 0;
    overflow: hidden;
  }
  #playView:not([hidden]),
  #playView:not([hidden]) #game,
  #playView:not([hidden]) .gamegrid {
    height: 100%;
    min-height: 0;
  }
  #playView:not([hidden]) .map-card {
    display: flex;
    flex-direction: column;
  }
  #playView:not([hidden]) .mapbody {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
  }
  #playView:not([hidden]) .mapviewport {
    flex: 1;
    min-height: 0;
  }
  #playView:not([hidden]) .mapbody {
    --map-shell-width: min(
      100%,
      calc(100dvh - var(--topbar-space) - 152px),
      780px
    );
  }
  #playView:not([hidden]) .guess-row {
    min-height: 0;
  }
}
@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .topnav {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    margin-bottom: 0;
    gap: 0;
  }
  .stats {
    gap: 8px;
  }
  .stats > .stat:first-child {
    display: none;
  }
  .gamegrid {
    grid-template-columns: 1fr;
  }
  .map-cardhead {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
  }
  .floor-tabs {
    width: 100%;
    flex-basis: 100%;
    justify-content: flex-start;
  }
  .audio-stage {
    min-height: 0;
  }
  .guess-history {
    flex: 0 0 360px;
  }
}
@media (max-width: 600px) {
  .account-trigger { max-width: 165px; }
  .leader-table-head, .leader-row {
    grid-template-columns: 38px minmax(0, 1fr) 82px;
    column-gap: 10px;
    padding: 0 12px;
  }
  .leader-table-head { min-height: 38px; }
  .leader-row { min-height: 54px; }
  .leader-table-head .round-column, .leader-table-head .average,
  .leader-round-score, .leader-average { display: none; }
  .leader-row.me::before { top: 10px; bottom: 10px; }
  .app {
    padding: var(--topbar-space) 12px 32px;
  }
  .topbar {
    min-height: 48px;
    gap: 7px;
    padding-inline: 0;
  }
  .topnav {
    gap: 0;
    margin-inline-end: 0;
  }
  .nav-icon {
    width: 26px;
    height: 34px;
  }
  .nav-icon svg {
    width: 28px;
    height: 28px;
  }
  .help-glyph {
    font-size: 1.55rem;
  }
  .account-trigger {
    width: auto;
    height: 34px;
    min-height: 34px;
    gap: 5px;
  }
  .account-avatar {
    width: 34px;
    height: 34px;
  }
  .account-label {
    max-width: 52px;
    font-size: .88rem;
  }
  .account-chevron { font-size: .6rem; }
  .mark {
    width: 23px;
    height: 23px;
  }
  .stats > .stat {
    display: none;
  }
  .navbtn {
    min-width: 0;
  }
  .top-score { gap: 2px; }
  .top-score strong { font-size: .79rem; }
  .top-score span { font-size: .61rem; }
  .topbar .nav-replay {
    min-height: 34px;
    padding: 0;
    font-size: 0;
  }
  .guess-history {
    flex-basis: 330px;
  }
  .guess-row {
    grid-template-columns: minmax(0, 1fr) 136px;
    column-gap: 12px;
    padding: 14px;
  }
  .guess-row > div:first-child {
    grid-row: 1;
  }
  .guess-operator {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
  }
  .guess-operator-icon {
    width: 72px;
    height: 72px;
  }
  .guess-operator-stats { gap: 8px; }
  .guess-points {
    font-size: 1.1rem;
  }
  .guess-detail {
    grid-column: 2;
    grid-row: 1;
  }
  .guess-distance {
    font-size: 0.92rem;
  }
  .floor-penalty {
    min-width: 88px;
    min-height: 32px;
    grid-template-columns: auto;
    gap: 0;
    padding: 4px 7px;
  }
  .floor-penalty-label {
    font-size: .56rem;
  }
  .floor-penalty strong {
    font-size: .86rem;
  }
  .mapbody, .audio-wrap {
    padding: 10px;
  }
  .floor-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .floor-tab {
    justify-content: center;
  }
  .buttons {
    width: 100%;
  }
  .results-head {
    align-items: stretch;
    flex-direction: column;
  }
  .leader-head { align-items: flex-start; }
  .total {
    text-align: left;
  }
  .leader-identity {
    align-self: flex-start;
  }
  .calendar {
    padding: 0 10px 14px;
  }
  .month-nav {
    padding: 14px 10px 10px;
  }
  .weekdays, .calendar-grid {
    gap: 4px;
  }
  .calendar-day {
    min-height: 58px;
    padding: 7px 5px;
  }
}
