:root {
  --bg: #f5f1e8;
  --paper: #fffdf8;
  --paper-soft: #fbf7ef;
  --line: #1a1a1a;
  --line-soft: #cfc7b7;
  --text: #121212;
  --muted: #57534a;
  --board-cell: #fffdf8;
  --board-cell-empty: #f3ede1;
  --number-1: #F97316;
  --number-2: #22C55E;
  --number-3: #EAB308;
  --number-4: #8b5e3c;
  --number-5: #EF4444;
  --number-6: #3B82F6;
  --number-7: #06B6D4;
  --number-8: #A855F7;
  --number-9: #121212;
  --site-max: 1560px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root.theme-dark,
body.theme-dark {
  --bg: #262421;
  --paper: #302e2b;
  --paper-soft: #383531;
  --line: #e6decf;
  --line-soft: #5a544c;
  --text: #f2ecdf;
  --muted: #c9bfae;
  --board-cell: #302c28;
  --board-cell-empty: #25221f;
  --number-6: #60a5fa;
  --number-2: #4ade80;
  --number-3: #facc15;
  --number-4: #c08457;
  --number-5: #f87171;
  --number-1: #fb923c;
  --number-7: #22d3ee;
  --number-8: #c084fc;
  --number-9: #e2e8f0;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

html {
  overflow-x: hidden;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
}

body.summary-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

strong {
  font-weight: 700;
}

p,
ul,
ol {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.hidden {
  display: none !important;
}

.game-shell {
  padding-bottom: var(--space-5);
  background: var(--bg);
}

.site-header,
.site-main,
.legal-page {
  width: min(calc(100% - 1rem), var(--site-max));
  margin-inline: auto;
}

.site-header {
  padding-top: 0.5rem;
}

.header-inner {
  display: grid;
  gap: var(--space-3);
  border-bottom: 2px solid var(--line);
  padding-bottom: var(--space-3);
}

.site-brand {
  display: grid;
  gap: 0.35rem;
}

.site-eyebrow,
.section-kicker,
.metric-label,
.stat-label,
.menu-user-label,
.field-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-title,
.section-title,
.legal-page h1,
.legal-page h2,
.policy-card summary,
.metric-value,
.stat-value,
.menu-user-name {
  font-family: var(--font-display);
}

.site-title {
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.site-description,
.section-subtitle,
.helper-text,
.legal-page p,
.legal-page li,
.policy-body p,
.policy-body li,
.overview-list,
.help-list {
  color: var(--muted);
}

.site-description {
  max-width: 70ch;
  margin-bottom: 0;
}

.site-nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 2.8rem;
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--text);
  color: var(--paper);
  outline: none;
}

.site-main {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-3);
  grid-template-columns: minmax(0, 1fr);
}

.site-main > * {
  min-width: 0;
}

.play-panel,
.surface,
.summary-card,
.legal-page {
  background: var(--paper);
  border: 1.5px solid var(--line);
}

.play-panel,
.surface,
.summary-card {
  padding: var(--space-3);
}

.play-panel {
  grid-area: play;
  display: grid;
  gap: var(--space-3);
  align-self: start;
}

.sidebar-left,
.sidebar-right,
.docs-wrap {
  display: grid;
  gap: var(--space-3);
  align-self: start;
}

.sidebar-left {
  grid-area: left;
}

.sidebar-right {
  grid-area: right;
}

.docs-wrap {
  grid-area: docs;
}

.section-heading {
  display: grid;
  gap: 0.2rem;
}

.section-heading-compact {
  gap: 0.15rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-subtitle {
  margin-bottom: 0;
}

.play-metrics,
.stats-grid,
.summary-detail-stack,
.summary-stats,
.policy-grid {
  display: grid;
  gap: var(--space-2);
}

.play-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-box,
.stat-card,
.info-chip,
.status-strip,
.table-wrap,
.policy-card,
.text-input,
.btn,
.legal-page .footer {
  border: 1.5px solid var(--line);
}

.metric-box,
.stat-card,
.status-strip,
.policy-body {
  background: var(--paper-soft);
}

.metric-box,
.stat-card {
  min-width: 0;
  padding: 0.85rem;
}

.metric-value {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.metric-value-small {
  font-size: clamp(0.92rem, 1.2vw + 0.55rem, 1.14rem);
  line-height: 1.12;
}

.metric-box-wide {
  grid-column: 1 / -1;
}

.move-breakdown-box {
  display: grid;
  gap: 0.35rem;
}

.move-breakdown-box .metric-value {
  font-size: clamp(0.98rem, 1vw + 0.72rem, 1.22rem);
  line-height: 1.16;
}

.move-breakdown-box .helper-text {
  margin: 0;
  overflow-wrap: anywhere;
}

.move-breakdown-box.has-score {
  border-color: var(--success);
}

.move-breakdown-box.is-setup {
  border-color: var(--line-soft);
}

.board-shell {
  width: min(100%, var(--board-size, 100%));
  max-width: 100%;
  margin-inline: auto;
  container-type: inline-size;
}

.number-board {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 2px solid var(--line);
}

.number-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--board-cell);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 6cqi, 2.7rem);
  font-weight: 700;
  line-height: 1;
  transition: background-color 140ms ease, color 140ms ease, transform 120ms ease, outline-color 120ms ease, box-shadow 120ms ease;
  touch-action: manipulation;
  user-select: none;
}

.number-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.number-tile[data-value="1"] .number-token { color: var(--number-1); }
.number-tile[data-value="2"] .number-token { color: var(--number-2); }
.number-tile[data-value="3"] .number-token { color: var(--number-3); }
.number-tile[data-value="4"] .number-token { color: var(--number-4); }
.number-tile[data-value="5"] .number-token { color: var(--number-5); }
.number-tile[data-value="6"] .number-token { color: var(--number-6); }
.number-tile[data-value="7"] .number-token { color: var(--number-7); }
.number-tile[data-value="8"] .number-token { color: var(--number-8); }
.number-tile[data-value="9"] .number-token { color: var(--number-9); }
.number-tile[data-value="9"] .number-token {
  text-shadow: none;
}

:root.theme-dark .number-tile[data-value="9"] .number-token,
body.theme-dark .number-tile[data-value="9"] .number-token {
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.48);
}

.number-tile:hover:not(.is-empty),
.number-tile:focus-visible:not(.is-empty) {
  background: #e8e2d5;
  transform: translateY(-1px);
  outline: none;
}

.number-tile:active:not(.is-empty) {
  background: var(--text);
  color: var(--paper);
  transform: translateY(0);
}

.number-tile.is-selected {
  background: var(--text);
  color: var(--paper);
}

.number-tile.is-selected .number-token {
  background: transparent;
  color: inherit;
  transform: none;
}

.number-tile.just-cleared {
  box-shadow: inset 0 0 0 2px var(--line);
}

.number-tile.block-right {
  border-right-color: var(--line-soft);
  border-right-width: 1px;
}

.number-tile.block-bottom {
  border-bottom-color: var(--line-soft);
  border-bottom-width: 1px;
}

.number-tile.is-last-col {
  border-right-width: 0;
}

.number-tile.is-last-row {
  border-bottom-width: 0;
}

.number-tile.is-empty {
  color: transparent;
  cursor: default;
  background: var(--board-cell-empty);
}

.status-strip,
.info-chip {
  padding: 0.75rem 0.9rem;
  min-height: 2.85rem;
}

.status-strip.success {
  background: var(--text);
  color: var(--paper);
}

.status-strip.error {
  border: 1.5px solid var(--line);
}

.info-chip {
  display: inline-flex;
  align-items: center;
  background: var(--paper-soft);
}

.action-row,
.button-row,
.footer-links,
.chip-row,
.account-signin-stack,
.menu-account-actions,
.summary-button-stack {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.account-signin-stack {
  flex-direction: column;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  background: var(--paper);
  color: var(--text);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 140ms ease, color 140ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--text);
  color: var(--paper);
  outline: none;
}

.btn-primary {
  background: var(--text);
  color: var(--paper);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--paper);
  color: var(--text);
}

.btn-secondary {
  background: var(--paper);
}

.table-wrap {
  overflow: auto;
  background: var(--paper-soft);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}

.table-wrap th,
.table-wrap td {
  padding: 0.68rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
  border-bottom: 1.5px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-wrap tbody tr.highlight {
  background: #ede7da;
}

.rank-col,
.points-col,
.moves-col {
  white-space: nowrap;
  text-align: right !important;
}

.overview-list,
.help-list,
.policy-body ul,
.legal-page ul {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.docs-section {
  display: grid;
  gap: var(--space-3);
}

.how-signin-block,
.menu-account-block {
  display: grid;
  gap: var(--space-2);
}

.inline-field {
  display: grid;
  gap: var(--space-2);
}

.text-input {
  min-height: 3rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border-radius: 0;
  color: var(--text);
}

.text-input:focus {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.policy-grid {
  align-items: start;
}

.policy-card {
  background: var(--paper);
}

.policy-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  font-size: 1.15rem;
  line-height: 1.1;
}

.policy-card summary::-webkit-details-marker {
  display: none;
}

.policy-card summary::after {
  content: '+';
  font-family: var(--font-ui);
  font-size: 1.35rem;
  line-height: 1;
}

.policy-card[open] summary {
  border-bottom: 1.5px solid var(--line);
}

.policy-card[open] summary::after {
  content: '−';
}

.policy-body {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.policy-body h3 {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--paper-soft);
}

.footer-links a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.legal-topbar {
  display: flex;
  justify-content: flex-start;
}

.legal-topbar .btn {
  min-height: 2.6rem;
}

.board-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.board-actions .btn {
  min-width: 0;
  flex: 0 0 auto;
  padding-inline: 0.5rem;
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  white-space: nowrap;
}

:root.theme-dark .table-wrap tbody tr.highlight,
body.theme-dark .table-wrap tbody tr.highlight {
  background: #3d3832;
}


.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(245, 241, 232, 0.88);
}

.auth-overlay.hidden {
  display: none;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--paper);
  border: 1.5px solid var(--line);
}

.auth-card-narrow {
  width: min(560px, 100%);
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1.5px solid var(--line);
}

.auth-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.auth-close-button:hover,
.auth-close-button:focus-visible {
  background: var(--text);
  color: var(--paper);
  outline: none;
}

.auth-signin-panel,
.auth-guide-card {
  display: grid;
  gap: var(--space-2);
}

.auth-guide-card {
  padding: 1rem;
  background: var(--paper-soft);
  border: 1.5px solid var(--line);
}

.quick-guide-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.15rem;
}

.auth-action-row {
  justify-content: flex-start;
}

.auth-signup-form .button-row {
  align-items: center;
}

:root.theme-dark .auth-overlay,
body.theme-dark .auth-overlay {
  background: rgba(38, 36, 33, 0.9);
}

:root.theme-dark .summary-overlay,
body.theme-dark .summary-overlay {
  background: rgba(26, 24, 22, 0.86);
}

:root.theme-dark .text-input,
body.theme-dark .text-input {
  background: #262320;
  color: var(--text);
}

.summary-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(245, 241, 232, 0.84);
}

.summary-overlay.hidden {
  display: none;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
}

.summary-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}

.summary-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1.5px solid var(--line);
  margin-bottom: var(--space-3);
}

.menu-user-chip {
  display: grid;
  gap: 0.1rem;
  justify-items: end;
}

.summary-body {
  display: grid;
  gap: var(--space-3);
}

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.5rem;
}

.toast {
  max-width: min(90vw, 26rem);
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  transform: translateY(0.35rem);
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: var(--text);
  color: var(--paper);
}

.legal-page {
  display: grid;
  gap: 1rem;
  padding: 1rem 1rem 3rem;
  margin-top: 0.75rem;
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.02;
}

.legal-page h2 {
  margin: 1rem 0 0.15rem;
  font-size: 1.4rem;
  line-height: 1.08;
}

.legal-page .footer {
  margin-top: 1rem;
}

@media (max-width: 899px) {
  .site-main {
    grid-template-areas:
      "play"
      "right"
      "left"
      "docs";
  }

  .site-nav {
    flex-wrap: wrap;
    overflow: visible;
  }

  .play-panel,
  .surface,
  .summary-card {
    padding: 0.8rem;
  }

  .play-metrics {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 0.9rem;
  }

  .auth-signup-form .button-row,
  .auth-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .board-actions {
    gap: 0.55rem;
  }

  .board-actions .btn {
    font-size: clamp(0.82rem, 3vw, 0.96rem);
    min-height: 2.7rem;
    padding-inline: 0.35rem;
  }
}

@media (orientation: landscape) and (max-width: 899px) {
  :root {
    --board-size: min(100%, max(24rem, calc(100dvh - 5.5rem)));
  }

  .site-header,
  .site-main,
  .legal-page {
    width: min(calc(100% - 0.5rem), var(--site-max));
  }

  .site-main {
    gap: 0.75rem;
    grid-template-columns: minmax(0, 2.6fr) minmax(220px, 1fr);
    grid-template-areas:
      "play right"
      "play left"
      "play docs";
    align-items: start;
  }

  .play-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "board"
      "metrics"
      "status"
      "actions";
    gap: 0.75rem;
    align-content: start;
  }

  .play-panel > .section-heading {
    grid-area: heading;
  }

  .play-panel .section-subtitle {
    display: none;
  }

  .play-metrics {
    grid-area: metrics;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: start;
  }

  .board-shell {
    grid-area: board;
    width: min(100%, var(--board-size, 100%));
    margin-inline: auto;
  }

  .status-strip {
    grid-area: status;
  }

  .board-actions {
    grid-area: actions;
  }

  .play-panel .section-title {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  }

  .metric-box,
  .stat-card {
    padding: 0.62rem;
  }

  .metric-label,
  .stat-label {
    font-size: 0.7rem;
  }

  .metric-value {
    font-size: clamp(0.98rem, 1.6vw, 1.2rem);
  }

  .metric-value-small {
    font-size: clamp(0.8rem, 1vw + 0.3rem, 0.95rem);
    line-height: 1.08;
  }
}


@media (min-width: 700px) {
  .stats-grid,
  .summary-stats,
  .summary-detail-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1279px) {
  :root {
    --board-size: min(100%, calc(100dvh - 10rem));
  }

  .site-main {
    grid-template-columns: minmax(360px, clamp(360px, calc(100dvh - 11rem), 48vw)) minmax(0, 1fr);
    grid-template-areas:
      "play right"
      "play left"
      "docs docs";
    align-items: start;
  }

  .play-panel {
    gap: 0.9rem;
    align-content: start;
  }

  .play-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  :root {
    --board-size: min(100%, calc(100dvh - 11rem));
  }

  .site-main {
    grid-template-columns: minmax(270px, 330px) minmax(420px, clamp(420px, calc(100dvh - 11rem), 46vw)) minmax(320px, 1fr);
    grid-template-areas:
      "left play right"
      "docs docs docs";
    align-items: start;
  }

  .play-panel {
    gap: 1rem;
    align-content: start;
  }

  .play-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


:root.theme-dark .number-tile:hover:not(.is-empty),
:root.theme-dark .number-tile:focus-visible:not(.is-empty),
body.theme-dark .number-tile:hover:not(.is-empty),
body.theme-dark .number-tile:focus-visible:not(.is-empty) {
  background: #464039;
}

:root.theme-dark .number-tile:hover:not(.is-empty):not(.has-token),
:root.theme-dark .number-tile:focus-visible:not(.is-empty):not(.has-token),
body.theme-dark .number-tile:hover:not(.is-empty):not(.has-token),
body.theme-dark .number-tile:focus-visible:not(.is-empty):not(.has-token) {
  background: #464039;
}

.board-actions .btn,
.board-actions .btn-primary,
.board-actions .btn-secondary,
.board-actions .btn[aria-pressed="true"],
.board-actions .btn[aria-pressed="false"],
#toggleThemeButton.is-active {
  background: var(--paper);
  color: var(--text);
  transition: none;
  -webkit-tap-highlight-color: transparent;
}

.board-actions .btn:hover,
.board-actions .btn:focus,
.board-actions .btn:focus-visible,
.board-actions .btn:active,
.board-actions .btn-primary:hover,
.board-actions .btn-primary:focus,
.board-actions .btn-primary:focus-visible,
.board-actions .btn-primary:active,
.board-actions .btn-secondary:hover,
.board-actions .btn-secondary:focus,
.board-actions .btn-secondary:focus-visible,
.board-actions .btn-secondary:active,
.board-actions .btn[aria-pressed="true"]:hover,
.board-actions .btn[aria-pressed="true"]:focus,
.board-actions .btn[aria-pressed="true"]:focus-visible,
.board-actions .btn[aria-pressed="true"]:active,
.board-actions .btn[aria-pressed="false"]:hover,
.board-actions .btn[aria-pressed="false"]:focus,
.board-actions .btn[aria-pressed="false"]:focus-visible,
.board-actions .btn[aria-pressed="false"]:active,
#toggleThemeButton.is-active:hover,
#toggleThemeButton.is-active:focus,
#toggleThemeButton.is-active:focus-visible,
#toggleThemeButton.is-active:active {
  background: var(--paper);
  color: var(--text);
  outline: none;
  box-shadow: none;
}


/* v2.1.8 summary/auth/leaderboard sizing fixes */

.surface,
.sidebar-left,
.sidebar-right,
.docs-wrap,
.leaderboard-section,
.leaderboard-section > *,
.chip-row,
.table-wrap,
.info-chip,
#medalsYourCard {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.leaderboard-section .chip-row {
  width: 100%;
}

.leaderboard-section .info-chip {
  display: flex;
  width: 100%;
}

@media (max-width: 899px) {
  .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .table-wrap table {
    min-width: 100%;
    width: 100%;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 0.6rem 0.5rem;
    font-size: 0.92rem;
  }

  .table-wrap thead th {
    font-size: 0.72rem;
  }
}