@font-face {
  font-family: Manrope;
  src: url(/manrope.woff2);
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #0e1f17;
  --gold: #e2c18b;
  --white: #faf9f4;
  --rule: #d7d3c6;
  --muted: #546158;
  --stripes: repeating-linear-gradient(125deg, #936928 0 2px, #efd095 2px 6px);
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: #f1eee6;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
p {
  margin: 0;
}
main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px 32px;
}
header,
.top,
.label,
footer,
.timer,
.legend,
.digits {
  display: flex;
  align-items: center;
}
header {
  gap: 22px;
  margin: 0 2px 22px;
}
header img {
  object-fit: contain;
}
h1 {
  font-size: clamp(18px, 2.7vw, 32px);
  font-weight: 750;
  letter-spacing: -0.05em;
  border-left: 1px solid #c7bdab;
  padding-left: 22px;
}
h2 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
button,
input {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
#exit {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  min-height: 44px;
}
button:hover,
#exit:hover {
  text-decoration: underline;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #a57e36;
  outline-offset: 3px;
}
.sheet {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #cbc5b5;
  box-shadow: 0 16px 34px -24px #17201942;
}
#notice {
  padding: 36px;
}
.hero,
.intro {
  background: radial-gradient(ellipse at top left, #244132, var(--ink) 75%);
  color: var(--white);
  padding: 24px 36px;
}
.top,
.label,
footer {
  justify-content: space-between;
}
.top {
  align-items: stretch;
}
.right {
  display: flex;
  flex-direction: column;
  text-align: right;
  justify-content: space-between;
}
#sync {
  font-size: 14px;
  color: #f3dea8;
}
#sync:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  border-radius: 50%;
}
#sync.live {
  color: var(--white);
}
#sync.live:before {
  background: #b0efba;
  box-shadow: 0 0 9px #95df9b75;
}
#percent {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
  margin: auto 0 5px;
}
#committed {
  font-weight: 550;
}
.digits {
  gap: 0.075em;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}
.counter {
  font-size: clamp(50px, 6.6vw, 78px);
  margin-top: 12px;
}
.tile {
  display: block;
  position: relative;
  perspective: 4em;
  width: 0.81em;
  height: 1.16em;
  background: #101812;
  border-radius: 0.085em;
  box-shadow:
    0 0 0 0.02em #070f0a,
    0 0.05em 0.08em #0005;
}
.face {
  display: block;
  position: absolute;
  width: 100%;
  height: 50%;
  text-align: center;
  overflow: hidden;
  backface-visibility: hidden;
}
.up {
  top: 0;
  background: linear-gradient(#46584c, #2b3b31);
  border-radius: 0.08em 0.08em 0 0;
  transform-origin: bottom;
  line-height: 1.15em;
  box-shadow: inset 0 1px #ffffff38;
}
.down {
  bottom: 0;
  background: linear-gradient(#34453b, #203028);
  border-radius: 0 0 0.08em 0.08em;
  transform-origin: top;
  line-height: 0;
}
.tile:after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: max(1px, 0.02em);
  background: #101c15c9;
  z-index: 4;
}
.counter .tile:before {
  content: "";
  position: absolute;
  top: 43%;
  left: -0.014em;
  height: 14%;
  width: 0.042em;
  border-radius: 2px;
  background: #bfaa7d;
  box-shadow: 0.8em 0 #bfaa7d;
  z-index: 5;
}
.bar {
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  height: 8px;
  background: #e6e5dc;
  box-shadow: inset 0 0 0 1px #10271938;
}
.bar i {
  display: block;
  background: currentColor;
  transition: width 0.65s ease;
}
.bar i + i,
.legend span:nth-child(2):before {
  background: var(--stripes);
}
.hero .bar {
  margin: 22px 0 12px;
  height: 13px;
  background: #ffffff13;
  box-shadow: inset 0 0 0 1px #ffffff45;
}
.legend {
  gap: 24px;
  font-size: 15px;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border-radius: 2px;
  background: currentColor;
}
.legend span:nth-child(3):before {
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}
#checked {
  margin-left: auto;
  font-size: 13px;
  color: #cbd4cd;
}
.body {
  padding: 22px 36px 0;
}
.label span,
.headings,
.progress > span,
.metrics,
.name small,
details p,
#note,
footer p,
form p {
  color: var(--muted);
  font-size: 14px;
}
.row {
  display: grid;
  grid-template-columns: 24% 37% 15% 12% 12%;
  align-items: center;
  text-align: right;
  list-style: none;
}
.row > :nth-child(-n + 2) {
  text-align: left;
}
.headings {
  padding: 14px 0 8px;
  font-weight: 600;
}
details,
.metrics {
  border-top: 1px solid var(--rule);
}
summary {
  padding: 13px 0;
}
summary::-webkit-details-marker {
  display: none;
}
summary:hover .name {
  color: #795927;
}
.name {
  padding-left: 20px;
  position: relative;
}
.chevron {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
[open] .chevron {
  transform: rotate(135deg);
}
.name small {
  display: block;
  color: #795927;
  font-size: 12px;
  font-weight: 650;
}
.progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.progress .bar {
  grid-column: 1/-1;
  color: var(--ink);
}
.amount {
  font-size: 18px;
}
strong.amount {
  font-size: 22px;
}
details p {
  padding: 0 0 14px 20px;
  line-height: 1.65;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 17px 0;
}
.metrics b {
  display: block;
  font-size: 22px;
  color: var(--ink);
}
#change {
  font-size: 14px;
  margin: 0 0 16px;
  border-left: 3px solid #ae833e;
  padding-left: 10px;
}
footer {
  background: #e9e6db;
  border-top: 1px solid var(--rule);
  padding: 15px 36px;
}
.timer {
  gap: 14px;
  font-size: 14px;
  font-weight: 650;
}
.clock {
  font-size: 23px;
  gap: 3px;
}
.colon {
  color: #795927;
  font-weight: 600;
}
#note {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}
.gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 6vh auto;
}
.intro,
form {
  padding: clamp(28px, 5vw, 58px);
}
.intro h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.05em;
}
.intro p {
  margin-top: 10px;
  line-height: 1.55;
}
.intro .timer {
  align-items: flex-start;
  flex-direction: column;
  margin-top: 42px;
  color: var(--gold);
}
.intro .colon {
  color: var(--gold);
}
.intro .clock {
  font-size: clamp(32px, 4vw, 50px);
}
.intro p:last-child {
  font-size: 14px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
label {
  font-weight: 700;
}
input,
#join {
  padding: 14px;
  border-radius: 9px;
  border: 1px solid #a5ab9f;
  width: 100%;
}
#join {
  background: var(--ink);
  color: white;
  font-weight: 700;
}
form p {
  line-height: 1.6;
}
form strong {
  font-size: 14px;
}
#error {
  color: #93342b;
}
#error:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  main {
    padding: 14px 10px 26px;
  }
  header {
    gap: 10px;
    margin: 0 4px 13px;
  }
  header img {
    width: 82px;
    height: auto;
  }
  h1 {
    padding-left: 10px;
    line-height: 1.16;
  }
  #exit {
    font-size: 12px;
    line-height: 1.2;
  }
  .sheet {
    border-radius: 15px;
  }
  .hero,
  .body,
  footer {
    padding: 17px;
  }
  .body {
    padding-bottom: 0;
  }
  h2 {
    font-size: 16px;
  }
  .legend,
  #sync,
  .label span,
  .headings,
  .progress,
  .progress > span,
  .timer,
  .metrics,
  footer p {
    font-size: 12px;
  }
  #committed {
    font-size: 13px;
  }
  #sync {
    max-width: 150px;
    align-self: end;
  }
  .counter {
    font-size: clamp(41px, 12vw, 66px);
  }
  .hero .bar {
    margin-top: 17px;
  }
  .legend {
    gap: 9px 17px;
    flex-wrap: wrap;
  }
  .legend span:before {
    margin-right: 5px;
  }
  #checked {
    width: 100%;
    font-size: 12px;
  }
  .row {
    grid-template-columns: minmax(0, 1fr) 18% 14% 14%;
    row-gap: 7px;
  }
  .headings > :nth-child(2) {
    display: none;
  }
  .progress {
    grid-column: 1/-1;
    grid-row: 2;
    grid-template-columns: 42px 1fr auto;
  }
  .progress .bar {
    grid-column: 2;
    grid-row: 1;
    height: 6px;
  }
  .name {
    font-size: 15px;
    padding-left: 14px;
  }
  .name small {
    font-size: 11px;
  }
  .amount {
    font-size: 16px;
  }
  strong.amount {
    font-size: 19px;
  }
  summary {
    padding: 10px 0;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px 14px;
  }
  .metrics b {
    font-size: 18px;
  }
  footer {
    gap: 9px;
    flex-wrap: wrap;
    padding-block: 13px;
  }
  .clock {
    font-size: 20px;
  }
  #note {
    padding: 0 14px;
  }
  .gate {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .intro,
  form {
    padding: 24px;
  }
  .intro .timer {
    margin-top: 24px;
  }
}
@media (max-width: 360px) {
  .hero,
  .body,
  footer {
    padding-inline: 12px;
  }
  .right {
    max-width: 125px;
  }
  #percent {
    font-size: 27px;
  }
  #committed {
    font-size: 12px;
  }
  .label span {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
