@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root {
  color-scheme: dark;
  --bg: #0b1012;
  --panel: #131c20;
  --line: #2b3a40;
  --muted: #9eafb6;
  --text: #f0f7f8;
  --accent: #72f5e1;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.5 'DM Sans',
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.header,
main,
footer {
  max-width: 1392px;
  margin: auto;
}
.header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  font:
    700 28px 'Space Grotesk',
    sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.8px;
}
.brand-wordmark {
  font-style: italic;
  white-space: nowrap;
  letter-spacing: -1.2px;
}
.brand-wordmark > span {
  color: var(--accent);
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 12px;
}
.footer-brand .brand-logo {
  width: 32px;
  height: 32px;
}
.brand-sub {
  font: 500 12px 'DM Sans';
  letter-spacing: 2px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 8px;
  color: var(--muted);
}
.network {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.network-icon {
  color: var(--accent);
  font-size: 22px;
}
.chain-id {
  color: #839ba6;
}
.header-link {
  font-size: 14px;
}
.header-link span {
  margin-left: 24px;
  color: var(--accent);
}
main {
  padding-top: 56px;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
}
.eyebrow,
.small-label {
  font:
    500 12px 'Space Grotesk',
    sans-serif;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0;
}
.intro .eyebrow {
  color: var(--accent);
  margin-bottom: 17px;
}
h1 {
  font: 500 clamp(42px, 4.6vw, 64px)/1.06 'Space Grotesk';
  letter-spacing: -3px;
  margin: 0;
}
h1 span {
  color: var(--muted);
}
.intro-copy {
  color: var(--muted);
  margin: 0 0 3px;
  line-height: 1.9;
}
.notice {
  background: #14252a;
  border: 1px solid #31505a;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-size: 14px;
  color: #bad2d9;
  margin-bottom: 22px;
  border-radius: 5px;
}
.notice-icon {
  border: 1px solid #8caeb8;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  font: 14px Georgia;
}
.notice-label {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.game-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
}
.clock-card,
.prize-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 27px 30px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.status-pill {
  font-size: 10px;
  letter-spacing: 1.2px;
  border: 1px solid #3e5963;
  border-radius: 30px;
  padding: 6px 10px;
  color: #bcd4dc;
}
.clock-face {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}
.clock-ring {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1;
}
.clock-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 2;
}
.ring-track {
  stroke: #2b4049;
}
.ring-progress {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 867.08;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s linear;
  stroke-linecap: round;
}
.time-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.time {
  font:
    500 82px/1 'Space Grotesk',
    monospace;
  letter-spacing: -5px;
  font-variant-numeric: tabular-nums;
}
.time-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 16px;
}
.clock-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  gap: 12px;
}
.tiny-cross {
  color: var(--accent);
  margin: 0 5px;
}
.round-tag {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}
.prize-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 32px 0 4px;
  font: 500 clamp(36px, 4vw, 58px) 'Space Grotesk';
  letter-spacing: -2px;
}
.eth-mark {
  font-size: 42px;
  color: var(--accent);
  align-self: center;
}
.currency {
  font-size: 20px;
  letter-spacing: 0;
  color: var(--muted);
}
.prize-usd {
  margin: 8px 0 0;
  font-size: 18px;
  color: #c4d4da;
  font-variant-numeric: tabular-nums;
}
.prize-caption {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.6;
}
.accounting {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.accounting > div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 0;
  padding: 9px 0;
  gap: 16px;
  color: var(--muted);
}
.accounting strong {
  font-weight: 400;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.last-buyer {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.avatar {
  width: 40px;
  height: 40px;
  border: 1px solid #3e606b;
  background: #19343b;
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 23px;
}
.last-buyer .small-label {
  font-size: 10px;
  letter-spacing: 1.4px;
}
.buyer-address {
  display: block;
  font-size: 14px;
  margin-top: 3px;
}
.buyer-position {
  margin-left: auto;
  color: #99afb8;
  font: 16px 'Space Grotesk';
}
.buy-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent);
  color: #0b2021;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 4px;
  margin-top: 24px;
  transition: background 0.2s;
}
.buy-button:hover:not(.disabled) {
  background: #a7fff1;
}
.buy-button.disabled {
  background: #2b414a;
  color: #a8c2cb;
  cursor: not-allowed;
}
.buy-note {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin: 10px 0 0;
}
.activity-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 30px;
  margin: 43px 0 52px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
h2 {
  font: 500 20px 'Space Grotesk';
  letter-spacing: -0.5px;
  margin: 0;
}
.section-heading .small-label {
  font-size: 10px;
  letter-spacing: 1.2px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
}
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
}
td:last-child,
th:last-child {
  text-align: right;
}
.empty {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 20px 8px;
}
.empty-symbol {
  color: #91b0bc;
  font: 30px 'Space Grotesk';
  margin-bottom: 3px;
}
.empty strong {
  font-size: 14px;
  font-weight: 500;
}
.empty > span:last-child {
  font-size: 12px;
  color: var(--muted);
  max-width: 300px;
}
.panel-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding-top: 14px;
  gap: 12px;
}
.panel-footer > span:last-child {
  font-size: 9px;
  letter-spacing: 0.6px;
}
.winners-panel {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.winner-empty {
  border-top: 1px solid var(--line);
  min-height: 226px;
}
.winner-row {
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  font-size: 14px;
}
.winner-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.6;
}
.winner-row > .positive { text-align: right; max-width: 185px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.payout-progress { grid-column: 1 / -1; list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.payout-progress li { border-top: 3px solid var(--line); padding-top: 8px; font-size: 11px; color: var(--muted); }
.payout-progress li.complete { border-color: var(--accent); color: var(--accent); }
.payout-progress li.current { border-color: #8fc4cd; color: var(--text); }
.new-buy { animation: new-buy-highlight 2.5s ease-out; }
@keyframes new-buy-highlight { from { background: #72f5e126; } to { background: transparent; } }
.time.finished { font-size: 36px; line-height: 1.15; letter-spacing: -1px; max-width: 230px; text-align: center; color: var(--accent); }
@media (max-width: 480px) {
  .winner-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .winner-row > .positive { text-align: left; max-width: none; }
  .card-top { flex-wrap: wrap; gap: 8px; }
  .accounting > div { font-size: 12px; }
  .accounting strong { white-space: nowrap; }
}
.positive {
  color: var(--accent);
}
.excluded {
  color: #dfb281;
}
.rules {
  border-top: 1px solid var(--line);
  padding: 35px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 30px;
}
.rules-title .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 13px;
}
.rules-title h2 {
  font-size: 27px;
  line-height: 1.2;
}
.rule-number {
  font: 11px 'Space Grotesk';
  letter-spacing: 1px;
  color: var(--accent);
}
h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 14px 0 7px;
}
.rule p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.transparency {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
}
summary::-webkit-details-marker {
  display: none;
}
.transparency > div {
  max-width: 850px;
  padding-bottom: 20px;
}
.transparency p {
  line-height: 1.8;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 35px;
  color: var(--muted);
  font-size: 11px;
}
footer .brand {
  font-size: 16px;
  color: var(--text);
}
footer > a:last-child {
  font-size: 10px;
  letter-spacing: 1px;
}
@media (min-width: 1600px) {
  .header,
  main,
  footer {
    max-width: 1250px;
  }
}
@media (max-width: 1480px) {
  .header,
  main,
  footer {
    margin-left: 5%;
    margin-right: 5%;
  }
}
@media (max-width: 900px) {
  .network {
    display: none;
  }
  .intro {
    gap: 24px;
  }
  .intro-copy {
    font-size: 14px;
  }
  .clock-card,
  .prize-card {
    padding: 23px 20px;
  }
  .clock-ring {
    width: 290px;
  }
  .time {
    font-size: 72px;
  }
  .clock-bottom {
    font-size: 11px;
  }
  .rules {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .winners-panel {
    border-left: 0;
    padding-left: 0;
  }
  .winner-empty {
    min-height: 150px;
  }
  .prize-total {
    font-size: 40px;
  }
}
@media (max-width: 620px) {
  .header {
    height: 80px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-sub {
    display: none;
  }
  .header-link {
    font-size: 12px;
  }
  .header-link span {
    margin-left: 6px;
  }
  main {
    padding-top: 32px;
  }
  .intro {
    display: block;
    margin-bottom: 25px;
  }
  .intro .eyebrow {
    font-size: 10px;
  }
  h1 {
    font-size: 48px;
    letter-spacing: -2.5px;
  }
  .intro-copy {
    margin-top: 20px;
    font-size: 14px;
  }
  .notice {
    font-size: 12px;
    padding: 12px;
  }
  .notice-label {
    display: none;
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
  .clock-card,
  .prize-card {
    padding: 23px;
  }
  .clock-ring {
    width: 280px;
  }
  .clock-bottom {
    font-size: 12px;
  }
  .prize-total {
    font-size: 49px;
  }
  .rules {
    grid-template-columns: 1fr;
  }
  .rules-title h2 br {
    display: none;
  }
  .activity-grid {
    margin-top: 32px;
    margin-bottom: 35px;
    gap: 30px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer > span {
    display: none;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .time {
    font-size: 76px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
