:root {
  --bg: #071326;
  --bg-2: #0b2344;
  --ink: #edf7ff;
  --muted: #9fbad3;
  --blue: #2f8df7;
  --blue-bright: #60c4ff;
  --blue-deep: #114d91;
  --paper: #e8f1ea;
  --card: rgba(98, 179, 255, 0.08);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  --border: 1px solid rgba(125, 202, 255, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 72% -8%, rgba(96, 196, 255, 0.19), transparent 62%),
    radial-gradient(800px 520px at 8% 112%, rgba(47, 141, 247, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.45;
}

button {
  font: inherit;
}

.page {
  width: 100%;
  max-width: 78rem;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0.95rem 1.25rem 1rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.9rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, #ffffff, var(--blue-bright) 44%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 34px rgba(96, 196, 255, 0.2);
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}

.top-nav a:hover {
  color: var(--blue-bright);
  background: rgba(96, 196, 255, 0.1);
}

.top-nav-sep {
  color: var(--muted);
  opacity: 0.45;
  user-select: none;
}

.hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  text-align: center;
}

.bill-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(760px, 92vw);
}

.bill-wrap::before {
  content: "";
  position: absolute;
  inset: 9% 4%;
  border-radius: 1.6rem;
  background: rgba(96, 196, 255, 0.2);
  filter: blur(34px);
}

.bill-img {
  position: relative;
  width: min(720px, 92vw);
  height: auto;
  border-radius: 0.35rem;
  filter:
    drop-shadow(0 24px 34px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 18px rgba(96, 196, 255, 0.2));
}

.tagline {
  margin: 0;
  max-width: 42rem;
  font-family: "Bungee", cursive;
  font-size: clamp(1.05rem, 2.3vw, 1.55rem);
  letter-spacing: 0.02em;
}

.flavor {
  max-width: 39rem;
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-style: italic;
  line-height: 1.38;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0.52rem 0.95rem;
  color: var(--ink);
  background: rgba(96, 196, 255, 0.09);
  border: 1px dashed rgba(125, 202, 255, 0.44);
  border-radius: 999px;
  cursor: pointer;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.ca-pill::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.62;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='13' height='13' rx='2'/><path d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='13' height='13' rx='2'/><path d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/></svg>") center / contain no-repeat;
}

.ca-pill:hover {
  border-color: var(--blue-bright);
  background: rgba(96, 196, 255, 0.16);
}

.ca-pill:active {
  transform: translateY(1px);
}

#ca-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-toast {
  min-height: 1rem;
  margin-top: -0.15rem;
  color: var(--blue-bright);
  font-size: 0.74rem;
  font-weight: 700;
}

.data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 0.9rem;
  min-height: 0;
}

.card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem;
  border: var(--border);
  border-radius: 0.95rem;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
}

.stats {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  text-align: center;
}

.stats-section {
  width: 100%;
  padding: 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stats-section + .stats-section {
  border-top: 1px dashed rgba(125, 202, 255, 0.22);
}

.stats-section-title,
.card-title {
  margin: 0;
  color: var(--ink);
  font-family: "Bungee", cursive;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.stats-section-title {
  opacity: 0.84;
}

.stats-big {
  margin: 0;
  font-family: "Bungee", cursive;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.05;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.stats-big--paid {
  background-image: linear-gradient(135deg, #ffffff, var(--blue-bright), var(--blue));
}

.stats-big--claimed {
  background-image: linear-gradient(135deg, var(--blue-bright), #ccecff);
}

.stats-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stats-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.timer-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.timer-value {
  color: var(--blue-bright);
  font-family: "Bungee", cursive;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.card-title {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-title-sub {
  color: var(--muted);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.74rem;
  font-style: italic;
  letter-spacing: 0;
  opacity: 0.9;
  text-transform: none;
}

.top-table-wrap {
  min-height: 0;
  overflow: auto;
  border-radius: 0.65rem;
}

.top-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.top-table th,
.top-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(125, 202, 255, 0.14);
  text-align: left;
  white-space: nowrap;
}

.top-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: rgba(7, 19, 38, 0.9);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-table .rank {
  width: 2.5rem;
  color: var(--blue-bright);
}

.top-table .amt,
.top-table .cnt {
  text-align: right;
}

.top-table a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.top-table a:hover {
  color: var(--blue-bright);
}

.top-table .empty td,
.empty td {
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

footer {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0.82;
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .page {
    min-height: 100vh;
    display: block;
  }

  .topbar,
  .hero,
  .data,
  footer {
    margin-bottom: 0.9rem;
  }

  .data {
    grid-template-columns: 1fr;
  }

  .bill-img {
    width: min(620px, 94vw);
  }
}

@media (max-width: 520px) {
  .page {
    padding: 0.8rem;
  }

  .topbar {
    justify-content: center;
    text-align: center;
  }

  .bill-img {
    width: 100%;
  }
}
