:root {
  --color-bg: #0c0a08;
  --color-ink: #fffaf0;
  --color-gold-1: #ffffff;
  --color-gold-2: #ff3b3b;
  --color-gold-3: #e10600;
  --color-gold-4: #8d0000;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

@layer base {
  button:not(:disabled),
  [role="button"]:not(:disabled) {
    cursor: pointer;
  }

  html,
  body {
    height: 100%;
  }

  body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-ink);
  }
}

.gate {
  --g1: var(--color-gold-1);
  --g2: var(--color-gold-2);
  --g3: var(--color-gold-3);
  --g4: var(--color-gold-4);
  --gold: linear-gradient(160deg, #ff5a5a 0%, #e10600 52%, #9d0000 100%);
  --ink: var(--color-ink);
  --mut: rgba(255, 250, 240, 0.72);
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #0c0a08;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(60% 50% at 50% 55%, #1a080c 0%, #0b0708 60%, #050404 100%);
}

.glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.22), transparent 60%);
  animation: glow 9s ease-in-out infinite alternate;
}

@keyframes glow {
  to {
    transform: translate(-46%, -52%) scale(1.15);
    opacity: 0.7;
  }
}

.sil,
.sil.show,
.sil.hide {
  display: none !important;
}

.bg-photo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: min(100vw, 820px);
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  z-index: 0;
  filter: none;
  mix-blend-mode: normal;
  mask: none;
  -webkit-mask: none;
}

.bg-photo.on {
  opacity: 1;
}

.veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(78% 68% at 50% 48%, transparent 36%, rgba(5, 4, 4, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 4, 4, 0.28), transparent 28%, transparent 68%, rgba(5, 4, 4, 0.5));
}

.motes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.mote {
  position: absolute;
  bottom: -8%;
  color: #e11d3a;
  animation: mote linear infinite;
  filter: drop-shadow(0 0 8px rgba(225, 29, 58, 0.4));
}

.mote svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: currentColor;
}

@keyframes mote {
  0% {
    transform: translate3d(0, 10vh, 0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translate3d(var(--drift, 16px), -52vh, 0) rotate(calc(var(--rot, 0deg) + 16deg));
  }
  100% {
    transform: translate3d(calc(var(--drift, 16px) * -0.35), -118vh, 0) rotate(calc(var(--rot, 0deg) + 32deg));
  }
}

.gate main {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(76px, calc(env(safe-area-inset-top) + 60px)) 18px max(78px, calc(env(safe-area-inset-bottom) + 64px));
}

.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.01) 40%,
    rgba(255, 255, 255, 0.015) 70%,
    rgba(255, 255, 255, 0.05)
  );
  -webkit-backdrop-filter: blur(2.5px) saturate(160%) brightness(1.08);
  backdrop-filter: blur(2.5px) saturate(160%) brightness(1.08);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.22),
    inset -1px 0 0 rgba(255, 255, 255, 0.14),
    inset 0 0 22px rgba(255, 255, 255, 0.06),
    0 24px 60px -24px rgba(0, 0, 0, 0.55);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  padding: 10px;
  -webkit-backdrop-filter: blur(9px) saturate(190%) brightness(1.18);
  backdrop-filter: blur(9px) saturate(190%) brightness(1.18);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: radial-gradient(120% 60% at 30% -10%, rgba(255, 255, 255, 0.16), transparent 50%);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 90, 90, 0.4) 18%,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0) 62%,
    rgba(225, 6, 0, 0.55) 85%,
    rgba(255, 255, 255, 0.85)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.gate h1,
.sub,
.note,
.age .num,
.brand,
.tagline {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.card {
  width: 100%;
  max-width: 410px;
  border-radius: 38px;
  padding: 28px 22px 22px;
  text-align: center;
}

.card > * {
  position: relative;
  z-index: 3;
}

.brand {
  margin: 0;
  font-size: clamp(28px, 7.2vw, 36px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 46%, #ff2a2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 8px 0 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--mut);
}

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.head {
  position: absolute;
  left: 0;
  right: 0;
  top: max(18px, env(safe-area-inset-top));
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.era {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  max-width: 100%;
  margin: 0;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #e10600;
  background: #070707;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: clamp(11px, 3.1vw, 14px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  flex-wrap: wrap;
  justify-content: center;
}

.era b {
  color: #ff1f1f;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e10600;
  box-shadow: 0 0 10px #e10600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.pill b {
  color: #fff;
  font-weight: 700;
}

.gate h1 {
  margin: 18px 0 8px;
  font-size: clamp(30px, 8.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, #fff 30%, #ff4d4d 78%, #e10600);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(225, 6, 0, 0.35));
}

.sub {
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--mut);
  max-width: 310px;
  margin: 0 auto 24px;
}

.ages {
  display: grid;
  gap: 12px;
}

.age {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 74px;
  padding: 0 12px 0 24px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.45s var(--spring),
    box-shadow 0.35s var(--ease);
}

.age .fill {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  background: radial-gradient(140px 90px at var(--mx) var(--my), rgba(255, 255, 255, 0.6), transparent 60%), var(--gold);
}

.age .spec {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(160px 80px at var(--mx) var(--my), rgba(255, 70, 70, 0.28), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.age .sweep {
  position: absolute;
  top: 0;
  left: -50%;
  width: 35%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: sweep 4.5s ease-in-out infinite;
}

.age:nth-child(2) .sweep {
  animation-delay: 0.35s;
}

@keyframes sweep {
  0%,
  62% {
    left: -50%;
  }
  100% {
    left: 130%;
  }
}

.age .num {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.age .num strong {
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.5));
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  background: none;
  color: #fff;
  transition: color 0.3s;
}

.age .num small {
  font-size: 14px;
  font-weight: 600;
  color: var(--mut);
  transition: color 0.3s;
}

.age .go {
  position: relative;
  z-index: 4;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(90, 0, 0, 0.45),
    0 6px 18px -4px rgba(225, 6, 0, 0.7);
  transition:
    transform 0.45s var(--spring),
    background 0.3s;
}

.age .go svg {
  width: 22px;
  height: 22px;
  color: #fff;
  transition: transform 0.45s var(--spring);
}

@media (hover: hover) {
  .age:hover {
    transform: translateY(-2px) scale(1.025);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.35),
      0 18px 44px -12px rgba(225, 6, 0, 0.75),
      0 0 0 6px rgba(225, 6, 0, 0.14);
  }
  .age:hover .fill {
    opacity: 1;
  }
  .age:hover .num strong {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #fff;
  }
  .age:hover .num small {
    color: rgba(255, 255, 255, 0.82);
  }
  .age:hover .go {
    background: #fff;
    transform: scale(1.06);
  }
  .age:hover .go svg {
    color: #e10600;
    transform: translateX(3px);
  }
  .age:not(:hover) .spec {
    opacity: 1;
  }
}

.age:active {
  transform: scale(0.96);
  transition-duration: 0.12s;
}

.age:focus-visible {
  outline: 2px solid var(--g2);
  outline-offset: 4px;
}

.age.picked .fill {
  opacity: 1;
}
.age.picked .num strong {
  background: none;
  color: #fff;
}
.age.picked .num small {
  color: rgba(255, 255, 255, 0.82);
}
.age.picked .go {
  background: #fff;
}
.age.picked .go svg {
  color: #e10600;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ages.busy .age:not(.picked) {
  opacity: 0.4;
  transform: scale(0.98);
  pointer-events: none;
}

.age:first-child {
  animation: breathe 2.8s ease-in-out 1.2s infinite;
}

@keyframes breathe {
  50% {
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.55),
      0 0 0 6px rgba(225, 6, 0, 0.16),
      0 14px 36px -14px rgba(225, 6, 0, 0.7);
  }
}

.ripple {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rp 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rp {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--mut);
  animation: rise 0.8s var(--ease) 0.48s both;
}

.note svg {
  width: 14px;
  height: 14px;
  color: #ff3b3b;
  flex: none;
}

.rise {
  animation: rise 0.8s var(--ease) both;
}
.rise:nth-child(2) {
  animation-delay: 0.08s;
}
.rise:nth-child(3) {
  animation-delay: 0.16s;
}
.rise:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 759px) {
  html, body {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
  }
  .gate {
    overflow: hidden;
    position: fixed;
    inset: 0;
  }
  .gate main {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .card {
    padding: 26px 18px 18px;
  }
  .gate h1 {
    margin-top: 14px;
  }
  .sub {
    margin-bottom: 18px;
  }
  .age {
    height: 66px;
  }
  .age .go {
    width: 46px;
    height: 46px;
  }
  .veil {
    background: linear-gradient(180deg, rgba(5, 4, 4, 0.08), transparent 22%, transparent 48%, rgba(5, 4, 4, 0.45) 100%);
  }
}

@media (max-height: 640px) {
  .card {
    padding: 22px 18px 16px;
  }
  .gate h1 {
    margin-top: 12px;
  }
  .sub {
    margin-bottom: 16px;
  }
  .age {
    height: 64px;
  }
  .age .go {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate *,
  .gate *::before,
  .gate *::after {
    animation: none !important;
    transition: none !important;
  }
  .rise,
  .ages .age,
  .note,
  .card {
    opacity: 1 !important;
    transform: none !important;
  }
}

.admin {
  --bg: #1e0d19;
  --fg: #fedeec;
  --card: #2b1423;
  --muted: #351d2d;
  --muted-fg: #c58aa5;
  --gold: #ff78be;
  --gold-bright: #ffa3cc;
  --line: rgba(244, 110, 180, 0.4);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 16px 64px;
  color: var(--fg);
  background: var(--bg);
  font-family: "Poppins", var(--font-sans);
  color-scheme: dark;
}

.admin-login {
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.admin-wrap {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin h1,
.admin h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--gold-bright);
}

.admin h1 {
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.15;
}

.admin h2 {
  font-size: 28px;
  line-height: 1.2;
}

.admin-kicker {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 14px;
}

.admin-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
}

.admin-section-title svg,
.admin-date > svg,
.admin-ghost svg,
.admin form > button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 24px;
}

.admin-login-card {
  width: min(24rem, 100%);
  border-radius: 16px;
  border-color: rgba(255, 120, 190, 0.3);
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.admin-login-card h1 {
  font-size: 30px;
}

.admin label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--fg);
}

.admin input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  padding: 12px;
  font: inherit;
}

.admin input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.admin button {
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
}

.admin button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.admin-login button {
  width: 100%;
}

.admin-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  font-weight: 400;
  padding: 8px 16px;
}

.admin-ghost svg {
  width: 16px;
  height: 16px;
}

.admin form > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--gold);
}

.admin-date label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--fg);
}

.admin-date input {
  width: auto;
  margin: 0;
  background: var(--card);
}

.admin-stats,
.admin-split,
.admin-days,
.admin-links {
  display: grid;
  gap: 16px;
}

.admin-stats,
.admin-split,
.admin-card + .admin-card,
.admin form.admin-card {
  margin-top: 24px;
}

.admin > .admin-wrap > .admin-card,
.admin > .admin-wrap > form.admin-card {
  margin-top: 24px;
}

.admin-stats {
  grid-template-columns: repeat(4, 1fr);
}

.admin-stats .admin-card {
  padding: 20px;
}

.admin-stats p,
.admin-muted {
  margin: 0;
  color: var(--muted-fg);
  font-size: 14px;
}

.admin-login-card .admin-muted {
  margin-top: 8px;
}

.admin-stats strong,
.admin-days strong {
  display: block;
  margin-top: 8px;
  color: var(--gold-bright);
  font-size: 30px;
  font-weight: 600;
  font-family: "Poppins", var(--font-sans);
}

.admin-split {
  grid-template-columns: 2fr 1fr;
}

.admin-bars {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-countries,
.admin-days {
  margin-top: 20px;
}

.admin-bar-label,
.admin-countries li,
.admin-days button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.admin-track {
  margin-top: 8px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.admin-track div {
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.admin-countries {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.admin-countries li {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.admin-countries li + li {
  margin-top: 12px;
}

.admin-days {
  grid-template-columns: repeat(3, 1fr);
}

.admin-days button {
  margin: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 400;
}

.admin-days button:hover,
.admin-days button.on {
  border-color: var(--gold);
}

.admin-days strong {
  font-size: 16px;
  margin: 0;
}

.admin-links {
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}

.admin-links label {
  margin-top: 0;
}

.admin-span {
  grid-column: 1 / -1;
}

.admin-error {
  color: #fca5a5;
  margin: 16px 0 0;
  font-size: 14px;
}

.admin-ok {
  color: var(--gold);
  margin: 16px 0 0;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .admin-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .admin {
    padding: 24px 16px 48px;
  }
  .admin-stats,
  .admin-days,
  .admin-links {
    grid-template-columns: 1fr;
  }
  .admin-date,
  .admin-date label {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-date input {
    width: 100%;
  }
}
.admin {
  --bg: #1e0d19;
  --fg: #fedeec;
  --card: #2b1423;
  --muted: #351d2d;
  --muted-fg: #c58aa5;
  --gold: #ff78be;
  --gold-bright: #ffa3cc;
  --line: rgba(244, 110, 180, 0.4);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 16px 64px;
  color: var(--fg);
  background: var(--bg);
  font-family: "Poppins", var(--font-sans);
  color-scheme: dark;
}

.admin-login {
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.admin-wrap {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin h1,
.admin h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--gold-bright);
}

.admin h1 {
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.15;
}

.admin h2 {
  font-size: 28px;
  line-height: 1.2;
}

.admin-kicker {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 14px;
}

.admin-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
}

.admin-section-title svg,
.admin-date > svg,
.admin-ghost svg,
.admin form > button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 24px;
}

.admin-login-card {
  width: min(24rem, 100%);
  border-radius: 16px;
  border-color: rgba(255, 120, 190, 0.3);
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.admin-login-card h1 {
  font-size: 30px;
}

.admin label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--fg);
}

.admin input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  padding: 12px;
  font: inherit;
}

.admin input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.admin button {
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
}

.admin button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.admin-login button {
  width: 100%;
}

.admin-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  font-weight: 400;
  padding: 8px 16px;
}

.admin-ghost svg {
  width: 16px;
  height: 16px;
}

.admin form > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--gold);
}

.admin-date label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--fg);
}

.admin-date input {
  width: auto;
  margin: 0;
  background: var(--card);
}

.admin-stats,
.admin-split,
.admin-days,
.admin-links {
  display: grid;
  gap: 16px;
}

.admin-stats,
.admin-split,
.admin-card + .admin-card,
.admin form.admin-card {
  margin-top: 24px;
}

.admin > .admin-wrap > .admin-card,
.admin > .admin-wrap > form.admin-card {
  margin-top: 24px;
}

.admin-stats {
  grid-template-columns: repeat(4, 1fr);
}

.admin-stats .admin-card {
  padding: 20px;
}

.admin-stats p,
.admin-muted {
  margin: 0;
  color: var(--muted-fg);
  font-size: 14px;
}

.admin-login-card .admin-muted {
  margin-top: 8px;
}

.admin-stats strong,
.admin-days strong {
  display: block;
  margin-top: 8px;
  color: var(--gold-bright);
  font-size: 30px;
  font-weight: 600;
  font-family: "Poppins", var(--font-sans);
}

.admin-split {
  grid-template-columns: 2fr 1fr;
}

.admin-bars {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-countries,
.admin-days {
  margin-top: 20px;
}

.admin-bar-label,
.admin-countries li,
.admin-days button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.admin-track {
  margin-top: 8px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.admin-track div {
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.admin-countries {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.admin-countries li {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.admin-countries li + li {
  margin-top: 12px;
}

.admin-days {
  grid-template-columns: repeat(3, 1fr);
}

.admin-days button {
  margin: 0;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 400;
}

.admin-days button:hover,
.admin-days button.on {
  border-color: var(--gold);
}

.admin-days strong {
  font-size: 16px;
  margin: 0;
}

.admin-links {
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}

.admin-links label {
  margin-top: 0;
}

.admin-span {
  grid-column: 1 / -1;
}

.admin-error {
  color: #fca5a5;
  margin: 16px 0 0;
  font-size: 14px;
}

.admin-ok {
  color: var(--gold);
  margin: 16px 0 0;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .admin-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .admin {
    padding: 24px 16px 48px;
  }
  .admin-stats,
  .admin-days,
  .admin-links {
    grid-template-columns: 1fr;
  }
  .admin-date,
  .admin-date label {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-date input {
    width: 100%;
  }
}
