@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f4f1ea;
  --muted: #9a968f;
  --gold: #e0c27a;
  --gold-btn: #d4b06a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 400;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.62) 0%, rgba(5, 6, 10, 0.28) 42%, rgba(5, 6, 10, 0.72) 100%),
    url("/bg.jpg?v=1") center bottom / cover no-repeat;
  background-color: #05060a;
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection {
  background: rgba(224, 194, 122, 0.28);
  color: #fffaf2;
}

.glow {
  position: fixed;
  left: 28%;
  top: 46%;
  z-index: 0;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(36, 92, 190, 0.08), transparent 68%);
  pointer-events: none;
}

.frame {
  position: fixed;
  inset: 14px;
  z-index: 4;
  border: 1px solid rgba(201, 164, 96, 0.55);
  border-radius: 18px;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100% - 4.5rem));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 1.7rem 0 1.35rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #f7f4ee;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.langs {
  display: flex;
  gap: 0.45rem;
}

.langs button {
  margin: 0;
  padding: 0.42rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #12141a;
  color: #d9d4cc;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.langs button.is-on {
  border-color: transparent;
  background: var(--gold-btn);
  color: #1a140c;
}

.langs button:focus-visible,
.brand:focus-visible,
.discord:focus-visible,
.save a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 0 0.2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.78fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

h1 { margin: 0; }

.wordmark {
  display: block;
  width: min(100%, 620px);
  height: auto;
}

.panel {
  padding: 2.1rem 1.5rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(8, 10, 16, 0.78);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.unit { text-align: center; }

.unit b {
  display: block;
  color: #f7f5f1;
  font-size: clamp(2.5rem, 4.4vw, 4.15rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.unit span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.opened {
  margin: 0.4rem 0 0.2rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.opened[hidden] { display: none; }

.when {
  margin: 1.35rem 0 0;
  color: var(--gold);
  font-size: 0.98rem;
  text-align: center;
}

.actions {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0;
}

.discord {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #1a1d27;
  color: #f3f0ea;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: default;
}

.discord svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: #7b83f6;
}

.save {
  margin: 0.85rem 0 0;
  text-align: center;
}

.save a {
  color: #7f7b74;
  font-size: 0.75rem;
  text-decoration: none;
}

.save a:hover { color: var(--gold); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.facts strong {
  color: #bdb8b0;
  font-size: 0.98rem;
  font-weight: 400;
}

.vh,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .page { width: min(1180px, calc(100% - 2.2rem)); }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .wordmark { width: min(100%, 520px); margin: 0 auto; }

  .panel { padding: 1.5rem 1rem 1.2rem; }

  .facts { gap: 0.8rem; }
}

@media (max-width: 640px) {
  .frame { inset: 8px; border-radius: 12px; }

  .facts { grid-template-columns: 1fr; gap: 0.55rem; }

  .unit b { font-size: clamp(1.85rem, 10vw, 2.5rem); }

  .brand { font-size: 1rem; }
}
