:root {
  color-scheme: dark;
  --plum:#1a1028;
  --cream:#fff6e7;
  --gold:#ffcf48;
  --muted:#c6b7d6;
  --mint:#8ce0b3;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(
      ellipse at 68% 24%,
      #4a2c6155,
      transparent 44%),
    radial-gradient(
      ellipse at 5% 88%,
      #294f4940,
      transparent 48%),
    var(--plum);
  font:
    16px/1.5 "Avenir Next",
    "Trebuchet MS",
    system-ui,
    sans-serif;
  min-width: 280px;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 5px;
}
button:disabled {
  opacity: .5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
button {
  border: 0;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.06;
}
h1 {
  font-size: clamp(52px, 6.5vw, 88px);
  margin: 22px 0;
}
h1 em {
  color: var(--gold);
  font-style: normal;
}
h2 {
  font-size: 40px;
}
p {
  color: var(--muted);
}
.jungle {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  height: 1400px;
  z-index: -1;
}
.leaf {
  position: absolute;
  width: 250px;
  height: 90px;
  border-radius: 100% 0 100% 0;
  background:
    linear-gradient(
      30deg,
      #497b6330,
      #233f3300);
  border-top: 1px solid #98c39e12;
  transform: rotate(-30deg);
}
.leaf-a {
  left: -110px;
  top: 290px;
}
.leaf-b {
  right: -85px;
  top: 100px;
  transform: rotate(35deg);
  width: 300px;
}
.leaf-c {
  right: -100px;
  top: 1000px;
  transform: rotate(-120deg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  background: #ad77c314;
}
.orb-a {
  width: 380px;
  height: 380px;
  right: -140px;
  top: 280px;
}
.orb-b {
  width: 240px;
  height: 240px;
  left: -120px;
  top: 800px;
}
.header,
main,
footer {
  width: min(1160px, calc(100% - 64px));
  margin: auto;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 0;
  border-bottom: 1px solid #fff6e710;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  display: block;
  max-width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
}
.header-actions > a {
  color: #decee9;
}
.quiet-button {
  background: #fff6e709;
  border: 1px solid #fff6e71c;
  padding: 10px 15px;
  border-radius: 99px;
  font-size: 13px;
  min-height: 44px;
}
.quiet-button[aria-pressed=true] {
  color: var(--gold);
}
.challenge {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  align-items: center;
  gap: 70px;
  padding: 58px 0 72px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--muted);
  line-height: 1.7;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px #8ce0b360;
}
.intro-copy > p {
  font-size: 18px;
  line-height: 1.7;
}
.mini-rules {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.mini-rules span {
  font-size: 11px;
  padding: 6px 10px;
  background: #fff6e706;
  border: 1px solid #fff6e719;
  border-radius: 99px;
  color: #dfd1eb;
}
.desktop-note {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #ba96d2;
  transform: rotate(-4deg);
  margin: 38px 0 0 24px;
}
.drawn-arrow {
  font-size: 43px;
  transform: rotate(-65deg);
  color: var(--gold);
}
.play-stage {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 23px 28px 18px;
  border: 1px solid #c4a0df38;
  border-radius: 32px;
  background:
    radial-gradient(
      ellipse at 50% 40%,
      #7f507946,
      transparent 58%),
    linear-gradient(
      155deg,
      #352141,
      #21162e 75%);
  box-shadow: 0 24px 80px #08051150, inset 0 1px 0 #ffffff0d;
  transition: border-color .2s;
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .1em;
  color: #cbb4dd;
}
.stage-label {
  font-weight: 900;
  color: var(--gold);
}
.device-best {
  display: flex;
  align-items: center;
  gap: 7px;
}
.device-best b {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--cream);
}
.score-area {
  text-align: center;
  margin-top: 23px;
  position: relative;
  z-index: 3;
  pointer-events: none;
}
#score-kicker {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--gold);
  font-weight: 800;
}
#score {
  display: block;
  font-weight: 900;
  font-size: 72px;
  line-height: 1.15;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 15px #0003;
}
#pace {
  font-size: 12px;
  color: #ceb8dc;
  min-height: 18px;
}
.coin-field {
  position: relative;
  height: 295px;
  display: grid;
  place-items: center;
  isolation: isolate;
  touch-action: pan-y;
}
.coin {
  position: relative;
  z-index: 3;
  padding: 0;
  background: none;
  width: min(260px, 83%);
  aspect-ratio: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transform: perspective(800px) rotateY(-9deg) rotateX(7deg);
  filter: drop-shadow(8px 14px 12px #11082060);
}
.coin img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.coin:active {
  transform: perspective(800px) scale(.96) rotateY(2deg);
}
.coin-shadow {
  position: absolute;
  bottom: 8px;
  width: 140px;
  height: 18px;
  border-radius: 50%;
  background: #10091c70;
  filter: blur(8px);
  z-index: -1;
}
.coin-halo {
  position: absolute;
  width: 220px;
  height: 220px;
  background: #f9b83819;
  filter: blur(23px);
  border-radius: 50%;
}
.orbit {
  position: absolute;
  width: 285px;
  height: 110px;
  border: 1px solid #ebc3fa16;
  border-radius: 50%;
  transform: rotate(-30deg);
  z-index: -1;
}
.orbit-two {
  transform: rotate(30deg);
  width: 290px;
  height: 150px;
}
.small-star {
  position: absolute;
  color: #ffdf855c;
  font-size: 27px;
}
.star-a {
  left: 6%;
  top: 22%;
}
.star-b {
  right: 3%;
  bottom: 20%;
  font-size: 36px;
}
#particles {
  position: absolute;
  left: -28px;
  top: -85px;
  width: calc(100% + 56px);
  height: calc(100% + 160px);
  pointer-events: none;
  z-index: 4;
}
.countdown {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 84px;
  font-weight: 900;
  text-shadow: 0 5px 20px #23132c;
  background: #25133365;
  border-radius: 50%;
  pointer-events: none;
}
.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
}
#time-caption {
  font-size: 9px;
  letter-spacing: .13em;
  color: #cbb4dd;
  font-weight: 800;
}
#time {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
#time span {
  font-size: 13px;
  color: #aa96bd;
  margin-left: 3px;
}
.time-track {
  height: 5px;
  background: #fff6e712;
  border-radius: 9px;
  overflow: hidden;
  margin: 11px 0 20px;
}
#time-fill {
  height: 100%;
  background:
    linear-gradient(
      90deg,
      #f3aa48,
      #ffe080);
  border-radius: 9px;
  transform-origin: left;
}
.primary-button {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(
      120deg,
      #ffe07b,
      #ffca38);
  box-shadow: 0 4px 0 #b97a1e, 0 8px 20px #ffbd3515;
  color: #36203c;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 900;
  min-height: 50px;
}
.primary-button:hover {
  filter: brightness(1.05);
}
.primary-button:active {
  translate: 0 2px;
  box-shadow: 0 2px 0 #b97a1e;
}
.tap-help {
  text-align: center;
  font-size: 11px;
  margin-top: 13px;
  color: #baa3cc;
}
.game-status {
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
  min-height: 0;
}
.game-status:empty {
  display: none;
}
.play-stage[data-state=playing] {
  border-color: #ffd56870;
}
.play-stage[data-state=playing] .coin {
  filter: drop-shadow(5px 12px 13px #e4a13120);
}
.play-stage[data-state=playing] .primary-button {
  display: none;
}
.play-stage[data-state=countdown] .primary-button {
  display: none;
}
.play-stage[data-state=over] .coin-field {
  height: 190px;
}
.play-stage[data-state=over] .coin {
  width: 170px;
}
.play-stage[data-state=over] .orbit {
  width: 210px;
}
.play-stage[data-state=over] .timer-row,
.play-stage[data-state=over] .time-track,
.play-stage[data-state=over] .tap-help {
  display: none;
}
.play-stage[data-state=over] .primary-button {
  margin-top: 8px;
}
.play-stage[data-state=over] .score-area {
  margin-top: 14px;
}
.play-stage[data-state=over] #score {
  font-size: 82px;
}
.play-stage[data-state=over] #coin {
  cursor: default;
}
.result {
  margin-top: 18px;
}
.result-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  text-align: center;
}
.result-stats span {
  font-size: 10px;
  color: #cbb4dd;
}
.result-stats b {
  display: block;
  color: var(--cream);
  font-size: 23px;
}
.result #verification {
  font-size: 11px;
  text-align: center;
  margin: 12px 0;
  color: var(--mint);
}
#publish-form {
  border-top: 1px solid #fff6e713;
  padding-top: 16px;
}
#publish-form label {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.name-row {
  display: flex;
  gap: 8px;
}
.name-row input {
  width: 0;
  min-width: 0;
  flex: 1;
  border: 1px solid #bea6d449;
  background: #170f25;
  color: var(--cream);
  padding: 10px;
  border-radius: 10px;
  font-size: 16px;
}
.small-button {
  background: #ae8acc25;
  border: 1px solid #c2a0db44;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  min-height: 44px;
}
#publish-form small {
  display: block;
  color: #b5a2c5;
  font-size: 10px;
  margin: 7px 0;
}
#listed-status {
  font-size: 13px;
  color: var(--mint);
  text-align: center;
  padding: 10px;
}
.result-app {
  border-top: 1px solid #fff6e715;
  margin-top: 18px;
  padding-top: 17px;
  text-align: center;
}
.result-app strong {
  font-size: 18px;
  letter-spacing: -.02em;
}
.result-app p {
  font-size: 12px;
  margin: 5px 0 13px;
}
.store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.store-link {
  border: 1px solid #fff6e723;
  border-radius: 12px;
  padding: 10px 17px;
  background: #160f20a8;
  font-size: 14px;
  font-weight: 700;
  min-width: 128px;
}
.store-link small {
  display: block;
  color: #a996ba;
  font-size: 10px;
  font-weight: 400;
}
.result-app .store-links {
  justify-content: center;
}
.result-app .store-link {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.text-button {
  background: none;
  border: 0;
  font-size: 12px;
  color: #d7c5e4;
  padding: 10px 0;
  min-height: 40px;
}
#share {
  display: block;
  margin: auto;
  color: var(--gold);
}
.leaderboard {
  padding: 42px 0 65px;
  border-top: 1px solid #fff6e711;
  scroll-margin-top: 25px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading h2 {
  margin-top: 12px;
}
.board-label {
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
  color: var(--gold);
}
.board-label span {
  font-size: 22px;
  margin-left: 8px;
}
.board-content {
  background:
    linear-gradient(
      135deg,
      #37244266,
      #22172d88);
  border: 1px solid #b192ca25;
  border-radius: 20px;
  overflow: hidden;
}
.empty-board {
  padding: 34px;
  text-align: center;
  font-size: 14px;
}
.empty-board strong {
  display: block;
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 6px;
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.board-table th {
  font-size: 9px;
  font-weight: 500;
  color: #b5a2c6;
  letter-spacing: .12em;
  padding: 14px 24px;
  border-bottom: 1px solid #fff6e710;
}
.board-table td {
  padding: 13px 24px;
  border-bottom: 1px solid #fff6e709;
}
.board-table tbody tr:last-child td {
  border-bottom: 0;
}
.board-table th:last-child,
.board-table td:last-child {
  text-align: right;
}
.board-table td:first-child {
  width: 75px;
  color: #bba2ce;
  font-weight: 800;
}
.board-table tr:first-child td:first-child {
  color: var(--gold);
}
.board-table td:last-child {
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.board-table .player-name {
  overflow-wrap: anywhere;
}
.board-note {
  font-size: 10px;
  text-align: center;
  margin-top: 13px;
  color: #a38bad;
}
.app-promo {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 34px;
  border: 1px solid #b398ca26;
  border-radius: 24px;
  background:
    radial-gradient(
      ellipse at 0% 20%,
      #84634721,
      transparent 65%),
    #23182e;
  margin-bottom: 50px;
}
.app-promo > img {
  flex-shrink: 0;
}
.app-promo h2 {
  font-size: 39px;
  margin: 9px 0 13px;
}
.app-promo p {
  font-size: 12px;
  line-height: 1.8;
}
.app-promo > .store-links {
  margin-left: auto;
  flex-direction: column;
  flex-shrink: 0;
}
footer {
  border-top: 1px solid #fff6e713;
  padding: 24px 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: #a88fbb;
}
footer > div {
  display: flex;
  gap: 23px;
  align-items: center;
}
footer .text-button {
  font-size: 11px;
}
dialog {
  width: min(500px, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid #bea6d455;
  border-radius: 24px;
  background: #281b35;
  color: var(--cream);
  padding: 30px;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #140b20bb;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 29px;
  max-width: 85%;
  margin: 10px 0 20px;
}
dialog p {
  font-size: 13px;
  margin: 12px 0;
  line-height: 1.7;
}
dialog .close {
  position: absolute;
  right: 12px;
  top: 12px;
}
dialog #reset {
  display: block;
  color: #ffb0b0;
}
dialog #privacy-status {
  color: var(--mint);
}
.noscript {
  text-align: center;
  padding: 24px;
  color: var(--gold);
}
@media (max-width: 950px) {
  .challenge {
    gap: 30px;
    grid-template-columns: 1fr minmax(0, 410px);
  }
  h1 {
    font-size: 60px;
  }
  .intro-copy > p {
    font-size: 15px;
  }
  .mini-rules {
    gap: 6px;
  }
  .app-promo {
    gap: 20px;
  }
  .app-promo > img {
    width: 95px;
    height: auto;
  }
  .app-promo h2 {
    font-size: 32px;
  }
}
@media (max-width: 740px) {
  .header,
  main,
  footer {
    width: min(490px, calc(100% - 36px));
  }
  .header {
    padding: 18px 0;
    gap: 8px;
  }
  .brand {
    gap: 5px;
  }
  .brand > img:first-child {
    width: 34px;
    height: 29px;
  }
  .brand .wordmark {
    width: 146px;
    height: auto;
  }
  .header-actions {
    gap: 10px;
  }
  .header-actions > a {
    display: none;
  }
  .quiet-button {
    padding: 9px 11px;
  }
  .quiet-button span {
    display: none;
  }
  .challenge {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 0 42px;
  }
  .intro-copy {
    text-align: center;
  }
  h1 {
    font-size: 54px;
    margin: 12px 0 14px;
    line-height: 1.02;
  }
  .intro-copy .eyebrow {
    font-size: 8px;
  }
  .intro-copy > p {
    font-size: 13px;
    line-height: 1.65;
  }
  .mini-rules {
    display: none;
  }
  .desktop-note {
    display: none;
  }
  .play-stage {
    padding: 20px 23px 16px;
    border-radius: 27px;
  }
  .coin-field {
    height: 267px;
  }
  .coin {
    width: 238px;
    max-width: 86%;
  }
  .coin-field .orbit {
    max-width: 97%;
  }
  .score-area {
    margin-top: 17px;
  }
  #score {
    font-size: 66px;
  }
  #particles {
    left: -23px;
    width: calc(100% + 46px);
  }
  .section-heading {
    align-items: start;
    gap: 15px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .board-label {
    font-size: 8px;
    margin-top: 5px;
  }
  .board-label span {
    display: none;
  }
  .leaderboard {
    padding: 27px 0 35px;
  }
  .board-table td,
  .board-table th {
    padding-left: 18px;
    padding-right: 18px;
  }
  .app-promo {
    flex-wrap: wrap;
    padding: 25px;
    gap: 18px;
  }
  .app-promo > img {
    width: 76px;
  }
  .app-promo > div:not(.store-links) {
    flex: 1;
    min-width: 150px;
  }
  .app-promo .eyebrow {
    font-size: 8px;
  }
  .app-promo h2 {
    font-size: 31px;
  }
  .app-promo > .store-links {
    width: 100%;
    margin-left: 0;
    flex-direction: row;
  }
  .app-promo .store-link {
    flex: 1;
    min-width: 0;
    font-size: 13px;
  }
  .app-promo p br {
    display: none;
  }
  footer {
    align-items: start;
    flex-direction: column;
    gap: 5px;
    padding-top: 17px;
  }
  footer > div {
    gap: 22px;
  }
  .board-note {
    font-size: 9px;
  }
}
@media (max-width: 360px) {
  h1 {
    font-size: 47px;
  }
  .play-stage {
    padding: 17px 18px;
  }
  .coin-field {
    height: 237px;
  }
  .coin {
    width: 213px;
  }
  .stage-top {
    font-size: 9px;
  }
  .name-row {
    flex-direction: column;
  }
  .name-row input {
    width: 100%;
  }
  .result-app .store-links {
    gap: 6px;
  }
  .result-app .store-link {
    padding: 9px;
    font-size: 12px;
  }
  .app-promo {
    padding: 21px;
  }
  .app-promo > img {
    width: 62px;
  }
  .section-heading h2 {
    font-size: 26px;
  }
  .board-label {
    white-space: normal;
    text-align: right;
  }
  .header .wordmark {
    width: 137px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .coin {
    transform: none !important;
  }
}
