:root {
  color-scheme: dark;
  --bg: #07100c;
  --bg-strong: #020403;
  --text: #f3ffe9;
  --muted: #bfd0b6;
  --panel: rgba(7, 16, 12, 0.68);
  --panel-strong: rgba(4, 10, 7, 0.86);
  --line: rgba(218, 179, 77, 0.28);
  --green: #3fd26f;
  --green-deep: #167a3b;
  --gold: #f0c85a;
  --gold-strong: #d99b22;
  --shadow: rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf7e9;
  --bg-strong: #fbfff6;
  --text: #142017;
  --muted: #435342;
  --panel: rgba(251, 255, 246, 0.78);
  --panel-strong: rgba(255, 255, 250, 0.94);
  --line: rgba(37, 99, 50, 0.2);
  --green: #157a38;
  --green-deep: #0f5f2b;
  --gold: #b5821d;
  --gold-strong: #966715;
  --shadow: rgba(23, 45, 27, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
a {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 3;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(118px, 16vw, 188px);
  padding: 6px;
  border: 1px solid rgba(218, 179, 77, 0.16);
  border-radius: 8px;
  background: rgba(4, 10, 7, 0.42);
  box-shadow: 0 14px 36px var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease;
}

:root[data-theme="light"] .brand-logo {
  background: rgba(255, 255, 250, 0.58);
}

.brand-logo:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.brand-logo:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 72%, white);
  outline-offset: 4px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px) 104px;
  place-items: center;
  background-image:
    linear-gradient(90deg, rgba(2, 4, 3, 0.72), rgba(2, 4, 3, 0.3) 48%, rgba(2, 4, 3, 0.78)),
    linear-gradient(180deg, rgba(2, 4, 3, 0.28), rgba(2, 4, 3, 0.82)),
    url("assets/wildstone-hero.png");
  background-position: center;
  background-size: cover;
}

:root[data-theme="light"] .hero {
  background-image:
    linear-gradient(90deg, rgba(237, 247, 233, 0.68), rgba(237, 247, 233, 0.24) 45%, rgba(237, 247, 233, 0.78)),
    linear-gradient(180deg, rgba(237, 247, 233, 0.18), rgba(237, 247, 233, 0.86)),
    url("assets/wildstone-hero.png");
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 40%, rgba(63, 210, 111, 0.16), transparent 35%),
    linear-gradient(180deg, transparent 64%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  width: min(960px, 100%);
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  background: var(--panel);
  box-shadow: 0 12px 32px var(--shadow);
  font-size: clamp(0.78rem, 2.2vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3rem, 12vw, 8.25rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.48);
}

.subtitle {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.24rem);
  line-height: 1.6;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 12px;
  width: min(720px, 100%);
  margin: 36px auto 0;
}

.time-card {
  display: grid;
  min-height: 126px;
  padding: 18px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  background: var(--panel-strong);
  box-shadow: 0 18px 48px var(--shadow);
  backdrop-filter: blur(16px);
}

.time-card span {
  color: var(--gold);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.3rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
}

.time-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.launch-label {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 50px;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 72%, white);
  outline-offset: 4px;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #07100c;
  background: linear-gradient(135deg, var(--gold), #ffe28a);
  box-shadow: 0 14px 34px rgba(240, 200, 90, 0.22);
  font-weight: 800;
}

.button--secondary {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel-strong);
  font-weight: 800;
}

.button__icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  color: var(--green);
  fill: currentColor;
  flex: 0 0 auto;
}

.server-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin: 30px auto 0;
}

.server-meta div {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.server-meta dt {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.server-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 700;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100vw - 36px);
  min-height: 38px;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: 0 12px 34px var(--shadow);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.site-footer {
  position: fixed;
  left: 18px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: min(700px, calc(100vw - 220px));
  gap: 6px 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.site-footer__logo {
  width: 42px;
  height: auto;
  opacity: 0.48;
  filter: saturate(0.82);
}

.site-footer a {
  color: var(--gold);
  text-decoration-color: color-mix(in srgb, var(--gold) 58%, transparent);
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--text);
}

.theme-toggle__track {
  display: inline-flex;
  width: 34px;
  height: 20px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(63, 210, 111, 0.22);
}

.theme-toggle__thumb {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 180ms ease;
}

:root[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(14px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  z-index: 4;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: 0 16px 36px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .hero {
    align-items: start;
    padding-top: 42px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-card {
    min-height: 104px;
  }

  .server-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-header {
    top: 12px;
    left: 12px;
  }

  .brand-logo {
    width: 112px;
    padding: 5px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .theme-toggle {
    right: 12px;
    bottom: 12px;
  }

  .site-footer {
    position: relative;
    left: auto;
    bottom: auto;
    justify-content: center;
    max-width: none;
    padding: 0 72px 16px 12px;
    margin-top: -76px;
    text-align: center;
  }

  .site-footer__logo {
    width: 34px;
  }
}
