:root {
  --background: #f6f5ee;
  --text: #19231f;
  --primary: #c9f36a;
  --secondary: #c8d9ff;
  --accent: #ff795e;
  --paper: #fffdf7;
  --muted: #6b746e;
  --line: #19231f21;
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
}
/* Results gain their own sharing strip without stealing drawing space. */
.game-shell {
  --base-height: clamp(470px, calc(100dvh - 255px), 880px);
  --panel-height: 164px;
  --share-height: 0px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  touch-action: manipulation;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 44px;
  padding: 11px 16px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
button:hover {
  background: #f0f0e6;
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.header {
  max-width: 1440px;
  margin: auto;
  padding: 0 32px;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand-logo {
  width: 44px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}
nav {
  margin-left: auto;
}
.games-menu {
  position: relative;
  font-size: 13px;
}
.games-menu summary {
  list-style: none;
  padding: 12px;
  cursor: pointer;
  font-weight: 650;
}
.games-menu summary::-webkit-details-marker {
  display: none;
}
.games-menu summary::after {
  content: "⌄";
  margin-left: 10px;
}
.dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  width: 270px;
  z-index: 10;
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 16px 38px #19231f15;
}
.dropdown a {
  display: block;
  padding: 13px;
  text-decoration: none;
  border-radius: 9px;
}
.dropdown a:hover {
  background: var(--background);
}
.dropdown a[aria-current] {
  background: var(--primary);
}
select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 24px;
  padding: 11px 12px;
  max-width: 150px;
  font-size: 13px;
  min-height: 44px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 25px 32px 0;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3px;
  font-weight: 750;
  color: var(--muted);
  margin: 0 0 8px;
}
.eyebrow a {
  text-decoration: none;
}
.eyebrow a:hover {
  text-decoration: underline;
}
h1 {
  font-size: clamp(27px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin: 0;
  max-width: 800px;
  text-wrap: balance;
}
.title-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 0 3px 10px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 350px;
  margin: 0;
}
.game-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: clamp(470px, calc(100dvh - 255px), 880px);
  min-height: 400px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 55px #19231f06;
}
.toolbar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 600px) minmax(160px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid #19231f1f;
  background: var(--paper);
}
.toolbar::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  min-height: 64px;
  pointer-events: none;
}
.toolbar .best {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.toolbar #fullscreen {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.toolbar button {
  border: 0;
  background: transparent;
  padding: 8px 10px;
}
.toolbar button:hover {
  background: var(--background);
}
.best {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  max-width: 100%;
}
.best > span {
  min-width: 0;
  line-height: 1.3;
}
.best strong {
  font-size: 15px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}
.arena {
  position: relative;
  overflow: hidden;
  min-height: 0;
  margin-inline: 12px;
  background-color: #f5f7ef;
  background-image: radial-gradient(#19231f14 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  isolation: isolate;
}
.result-reaction {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: static;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--secondary);
  color: var(--text);
  font: inherit;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  text-wrap: balance;
}
.game-shell:not([data-state="done"]) .result-reaction {
  visibility: hidden;
}
.result-reaction[data-band="8"],
.result-reaction[data-band="9"],
.result-reaction[data-band="10"] {
  background: var(--primary);
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: crosshair;
}
.readout {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
  user-select: none;
  text-align: center;
}
.readout::before {
  content: "";
  position: absolute;
  inset: -15px;
  background: radial-gradient(ellipse, var(--paper) 30%, #fffdf700 72%);
  z-index: -1;
}
.game-shell[data-state="drawing"] .readout {
  visibility: hidden;
}
.readout > span {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 205px;
}
#score-label {
  letter-spacing: 1.4px;
  font-size: 9px;
  font-weight: 750;
  position: absolute;
  bottom: calc(50% + 42px);
}
#score {
  font-size: clamp(44px, 5vw, 65px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#score.idle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  font-size: 0;
  line-height: 0;
}
.game-shell[data-state="idle"] .readout {
  width: min(400px, calc(100% - 40px));
}
.game-shell[data-state="idle"] #score-label {
  bottom: calc(50% + 22px);
  width: 100%;
  max-width: 100%;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0;
  text-wrap: balance;
}
.arena-brand {
  position: absolute;
  right: 21px;
  bottom: 16px;
  color: #19231f45;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: #19231f35;
  border-style: solid;
  pointer-events: none;
}
.top-left {
  left: 20px;
  top: 20px;
  border-width: 1px 0 0 1px;
}
.bottom-right {
  right: 20px;
  bottom: 20px;
  border-width: 0 1px 1px 0;
  display: none;
}
.game-bottom {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  border-top: 1px solid #19231f1f;
  background: var(--paper);
  min-height: 83px;
}
.primary {
  background: var(--primary);
  border: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.primary:hover {
  background: #bce55d;
}
.game-shell[data-state="invalid"] #score {
  color: #c34c36;
}
.game-shell[data-state="done"] #score {
  color: var(--text);
  font-size: clamp(58px, 6vw, 84px);
  font-weight: 850;
  letter-spacing: -4px;
}
.game-shell[data-state="done"] #score-label {
  bottom: calc(50% + 54px);
}
.game-shell[data-state="done"] #reset {
  background: var(--paper);
  border: 1px solid var(--text);
  border-radius: 999px;
  font-weight: 750;
  padding-inline: 22px;
}
.game-shell[data-state="done"] #reset:hover {
  background: var(--primary);
}
.quick-share {
  display: none;
  min-width: 0;
  max-width: 390px;
  background: var(--primary);
  border: 1px solid var(--text);
  box-shadow: 2px 2px 0 var(--text);
  font-weight: 750;
  line-height: 1.35;
  text-wrap: balance;
}
.game-shell[data-state="done"] .quick-share {
  display: inline-flex;
}
.quick-share:hover {
  background: #bce55d;
}
footer {
  max-width: 1440px;
  margin: auto;
  padding: 23px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}
footer a {
  text-decoration: none;
  font-weight: 750;
  color: var(--text);
}
.game-shell:fullscreen,
.game-shell.expanded {
  width: 100%;
  height: 100dvh;
  max-height: none;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--paper);
}
.game-shell.expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.expanded .toolbar,
:fullscreen .toolbar {
  padding-top: 12px;
}
body.focus-mode {
  overflow: hidden;
}
@media (min-width: 1700px) {
  .header,
  main,
  footer {
    max-width: 1600px;
  }
  .game-shell {
    height: calc(100dvh - 270px);
  }
}
@media (max-width: 700px) {
  .header {
    height: 65px;
    padding: 0 18px;
    gap: 10px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-logo {
    width: 38px;
    height: 30px;
  }
  .games-menu summary {
    padding: 10px 5px;
    font-size: 12px;
  }
  select {
    max-width: 108px;
    padding: 10px;
    font-size: 12px;
  }
  main {
    padding: 19px 14px 0;
  }
  .heading {
    display: block;
    margin-bottom: 16px;
    padding: 0 4px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 7px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
    line-height: 1.1;
  }
  .subtitle {
    max-width: none;
    font-size: 12px;
    margin-top: 9px;
    line-height: 1.5;
  }
  .title-dot {
    width: 8px;
    height: 8px;
  }
  .game-shell {
    border-radius: 19px;
    height: clamp(430px, calc(100svh - 230px), 700px);
    min-height: 400px;
  }
  .toolbar {
    padding: 8px 10px;
    gap: 8px;
  }
  .toolbar button {
    font-size: 11px;
    padding: 8px;
  }
  .best {
    gap: 6px;
    font-size: 11px;
  }
  .best strong {
    font-size: 13px;
  }
  .readout {
    width: 165px;
    height: 115px;
  }
  .readout > span {
    max-width: 160px;
    font-size: 9px;
  }
  #score {
    font-size: 45px;
    letter-spacing: -2px;
  }
  .game-shell[data-state="done"] #score {
    font-size: 60px;
    letter-spacing: -3px;
  }
  .game-shell[data-state="done"] #score-label {
    bottom: calc(50% + 43px);
  }
  #score-label {
    font-size: 8px;
    letter-spacing: 0.8px;
    bottom: calc(50% + 33px);
  }
  .game-bottom {
    padding: 13px 12px;
    gap: 10px;
    min-height: 92px;
    align-items: center;
  }
  .primary {
    padding: 10px 12px;
    font-size: 11px;
    gap: 5px;
  }
  .game-shell[data-state="done"] #reset {
    padding-inline: 12px;
  }
  .quick-share {
    flex: 1;
    max-width: 280px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .primary svg {
    width: 15px;
  }
  .arena-brand {
    right: 14px;
    bottom: 11px;
  }
  .top-left {
    left: 13px;
    top: 13px;
  }
  footer {
    padding: 18px;
    font-size: 10px;
    line-height: 1.5;
  }
  .game-shell:fullscreen,
  .game-shell.expanded {
    height: 100dvh;
  }
}
@media (max-width: 900px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 4px;
  }
  .toolbar #fullscreen {
    grid-column: 2;
  }
  .toolbar::before,
  .result-reaction {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .toolbar::before {
    min-height: 80px;
  }
  .result-reaction {
    padding: 8px 12px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .game-shell.expanded .game-bottom,
  :fullscreen .game-bottom {
    min-height: 55px;
    padding: 6px 16px;
  }
  .game-shell.expanded .toolbar,
  :fullscreen .toolbar {
    padding: 4px 16px;
  }
  .game-shell.expanded .toolbar::before,
  :fullscreen .toolbar::before {
    min-height: 44px;
  }
  .game-shell.expanded .result-reaction,
  :fullscreen .result-reaction {
    font-size: 12px;
    padding: 4px 10px;
  }
  .game-shell.expanded #score-label,
  :fullscreen #score-label {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
}
.square-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin: 22px 0 32px;
}
.leaderboard {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 34px #19231f06;
}
.leaderboard-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.leaderboard-heading h2,
.square-stats h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.8px;
}
.leaderboard-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.square-stats {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 34px #19231f06;
}
.square-stats-list {
  display: grid;
  flex: 1;
  align-content: center;
  gap: 10px;
  margin: 14px 0 0;
}
.square-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--background);
}
.square-stat dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.square-stat dd {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 850;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score-distribution {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 18px 22px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 34px #19231f06;
}
.square-guide {
  width: 100%;
  margin: 22px 0 36px;
}
.square-guide-card {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 34px #19231f06;
}
.square-guide-intro {
  max-width: 900px;
}
.square-guide-intro h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -.8px;
}
.square-guide-intro p {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.square-guide-howto h3,
.square-guide-faq h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.square-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}
.square-guide-steps li {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--background);
  color: var(--text);
  font-size: 12px;
  font-weight: 570;
  line-height: 1.55;
  counter-increment: guide-step;
}
.square-guide-steps li::before {
  display: block;
  margin-bottom: 7px;
  color: #6b8c31;
  content: counter(guide-step, decimal-leading-zero);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}
.square-guide-faq {
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.square-guide-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 9px;
}
.square-guide-faq-list details {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--background);
}
.square-guide-faq-list summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.45;
  list-style: none;
}
.square-guide-faq-list summary::-webkit-details-marker { display: none; }
.square-guide-faq-list summary::after {
  flex: 0 0 auto;
  color: var(--muted);
  content: "+";
  font-size: 18px;
  font-weight: 500;
}
.square-guide-faq-list details[open] summary::after { content: "−"; }
.square-guide-faq-list details p {
  margin: 0;
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.square-guide-faq-list summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.score-distribution-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}
.score-distribution-heading h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.15;
  letter-spacing: -.65px;
}
.score-distribution-heading p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}
.score-distribution-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--primary) transparent;
  scrollbar-width: thin;
}
.score-distribution-chart {
  display: block;
  width: 100%;
  min-width: 1060px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.distribution-gridline {
  stroke: #19231f1c;
  stroke-width: 1;
}
.distribution-tick,
.distribution-range {
  fill: var(--muted);
  font-size: 12px;
}
.distribution-axis-title {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.distribution-value {
  fill: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.distribution-bar {
  fill: var(--primary);
}
.distribution-bar-perfect {
  fill: var(--accent);
}
.leaderboard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.leaderboard-entry {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdf7;
}
.leaderboard-entry:first-child {
  border-color: #19231f2b;
  background: linear-gradient(100deg, #c9f36a66, #fffdf7 55%);
}
.leaderboard-rank {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 0;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--secondary);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.leaderboard-rank[data-medal]::before,
.leaderboard-rank[data-medal]::after {
  position: absolute;
  z-index: -1;
  top: 21px;
  width: 8px;
  height: 13px;
  background: var(--medal-ribbon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
  content: "";
}
.leaderboard-rank[data-medal]::before {
  left: 4px;
}
.leaderboard-rank[data-medal]::after {
  right: 4px;
}
.leaderboard-rank[data-medal="1"] {
  --medal-ribbon: #d5a528;
  color: #49340b;
  border: 1px solid #b9891e;
  background: radial-gradient(circle at 35% 28%, #fff0a8, #e5bd4c 66%, #bd871d);
  box-shadow: inset 0 0 0 2px #fff4c780, 0 2px 4px #9b721b30;
}
.leaderboard-rank[data-medal="2"] {
  --medal-ribbon: #aeb8c0;
  color: #34404a;
  border: 1px solid #9da8b0;
  background: radial-gradient(circle at 35% 28%, #fff, #d3dbe0 66%, #aab5bc);
  box-shadow: inset 0 0 0 2px #fff9, 0 2px 4px #69778230;
}
.leaderboard-rank[data-medal="3"] {
  --medal-ribbon: #a65e37;
  color: #4b2818;
  border: 1px solid #9d5934;
  background: radial-gradient(circle at 35% 28%, #f8d1ad, #c8875d 66%, #99552f);
  box-shadow: inset 0 0 0 2px #ffe7d180, 0 2px 4px #77402430;
}
.leaderboard-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leaderboard-entry strong {
  padding: 5px 8px;
  border-radius: 8px;
  background: #c8d9ff80;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.leaderboard-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed #19231f38;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}
.leaderboard-confetti {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.leaderboard-confetti-piece {
  position: absolute;
  top: -18px;
  left: var(--confetti-x);
  width: 9px;
  height: 15px;
  border-radius: 2px;
  background: var(--confetti-color);
  animation: leaderboard-confetti-fall 1.9s cubic-bezier(.2,.65,.4,1) var(--confetti-delay) both;
}
@keyframes leaderboard-confetti-fall {
  to {
    transform: translate3d(var(--confetti-drift), 110dvh, 0) rotate(var(--confetti-spin));
  }
}
@media (max-width: 700px) {
  .square-insights {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0 28px;
  }
  .leaderboard {
    width: 100%;
    padding: 16px 13px;
    border-radius: 16px;
  }
  .square-stats {
    padding: 16px 13px;
    border-radius: 16px;
  }
  .score-distribution {
    grid-column: 1;
    padding: 15px 13px 12px;
    border-radius: 16px;
  }
  .score-distribution-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 11px;
  }
  .score-distribution-heading p {
    max-width: none;
    font-size: 12px;
    text-align: left;
  }
  .score-distribution-chart {
    min-width: 1060px;
  }
  .leaderboard-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 11px;
  }
  .leaderboard-heading > p {
    text-align: left;
    font-size: 12px;
  }
  .square-stats-list {
    gap: 7px;
    margin-top: 11px;
  }
  .square-stat {
    padding: 9px 10px;
  }
  .leaderboard-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 5px;
  }
  .leaderboard-entry {
    min-height: 41px;
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .leaderboard-confetti-piece {
    animation: none;
  }
}
