:root {
  --bg: #000000;
  --pee: #ffe100;
  --pee-soft: #fff27a;
  --ink: #080808;
  --card: rgba(255, 225, 0, 0.08);
  --stroke: rgba(255, 225, 0, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--pee);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.25;
  overflow: hidden;
}

a {
  color: inherit;
}

.page {
  width: min(980px, calc(100% - 28px));
  height: 100dvh;
  margin: 0 auto;
  padding: clamp(12px, 2.5vh, 22px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.brand {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.25rem, 8vh, 4.8rem);
  line-height: 0.85;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-shadow: 0 0 28px rgba(255, 225, 0, 0.35);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: clamp(0.72rem, 1.6vh, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top-nav a {
  padding: 7px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--pee);
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.stat-label {
  display: block;
  margin: 0;
  font-size: clamp(0.62rem, 1.4vh, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pee-soft);
}

.stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(9px, 2vh, 16px);
  text-align: center;
}

.pee-img {
  width: min(33vh, 260px);
  height: auto;
  display: block;
}

.ca-wrap {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(100%, 680px);
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 9px;
  padding: 10px 16px;
  border: 1px dashed var(--pee);
  border-radius: 999px;
  background: #000000;
  color: var(--pee);
  cursor: pointer;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.78rem, 1.7vh, 0.92rem);
}

.ca-pill:hover,
.ca-pill:focus-visible {
  background: var(--pee);
  color: var(--ink);
  outline: none;
}

.ca-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ca-pill-addr {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-toast {
  min-height: 1em;
  font-size: 0.74rem;
  font-weight: 900;
}

.one-liner {
  margin: 0;
  color: var(--pee-soft);
  font-size: clamp(0.82rem, 1.8vh, 0.95rem);
  font-weight: 700;
}

.stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-card,
.cycle-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--card);
  padding: clamp(10px, 2vh, 14px);
  min-width: 0;
}

.stat-card strong,
.cycle-card strong {
  display: block;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.55rem, 4.5vh, 3rem);
  line-height: 0.92;
}

.stat-card small,
.cycle-card small {
  color: var(--pee-soft);
  font-weight: 800;
}

.cycle-card {
  width: min(100%, 360px);
  padding: clamp(12px, 2.2vh, 16px);
}

.cycle-card strong,
#timer-value {
  font-size: clamp(2.8rem, 10vh, 6.5rem);
  letter-spacing: 0.03em;
}

.updated {
  color: rgba(255, 242, 122, 0.72);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.62rem, 1.35vh, 0.72rem);
}

footer {
  max-width: 900px;
  margin: auto auto 0;
  padding-top: 10px;
  color: rgba(255, 242, 122, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 860px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    justify-content: center;
    text-align: center;
  }

  .top-nav {
    justify-content: center;
  }
}

@media (max-height: 620px) {
  .brand {
    font-size: 2.4rem;
  }

  .pee-img {
    width: min(25vh, 200px);
  }

  .stat-card small,
  .updated {
    display: none;
  }
}
