/* WizzBoom "coming soon" page. Plain CSS, no build step. */

@font-face {
  font-family: "Lilita One";
  src: url("fonts/lilita-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo-2-latin-600-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* Lilita One and Baloo 2 have no Cyrillic, so Russian text uses the game's Russian font. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #0b1020;
  --ink: #fff7e9;
  --soft: #c3cce2;
  --muted: #8f9bbb;
  --gold: #ffc861;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ru: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="ru"] { --display: var(--ru); --body: var(--ru); }
[lang="ru"]:not(html) { font-family: var(--ru); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
h1, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr;
  color: var(--ink);
  font: 600 1.0625rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  /* Warm glow on the left, cool glow on the right, like the two halves of the title. */
  background:
    radial-gradient(45% 40% at 32% 42%, rgb(255 138 40 / 0.16), transparent 70%),
    radial-gradient(45% 40% at 68% 44%, rgb(56 160 255 / 0.18), transparent 70%),
    radial-gradient(130% 90% at 50% 0%, #19234a 0%, var(--page) 62%);
  background-color: var(--page);
}

main {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0;
  padding: 56px 16px 32px;
  text-align: center;
}

.logo img {
  width: min(88vw, 720px);
  filter: drop-shadow(0 18px 36px rgb(0 0 0 / 0.5));
}

.soon {
  margin-top: clamp(22px, 4.5vw, 40px);
  color: var(--gold);
  font: 400 clamp(2.5rem, 8vw, 4.75rem)/1 var(--display);
  letter-spacing: 0.01em;
  text-shadow: 0 4px 0 #9a5414, 0 12px 32px rgb(255 170 60 / 0.28);
}

.where {
  margin-top: clamp(10px, 2vw, 16px);
  color: var(--soft);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
}
.where strong { color: var(--ink); font-weight: 700; }

html[lang="ru"] .soon { letter-spacing: 0; }

/* Language dropdown, top right. Works without script; lang.js only closes it on an outside click or Escape. */
.lang {
  position: absolute;
  z-index: 5;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  font: 700 0.85rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.lang details { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: rgb(11 16 32 / 0.6);
  color: var(--soft);
  letter-spacing: 0.06em;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang details[open] summary { color: var(--ink); border-color: rgb(255 255 255 / 0.28); }
.lang svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang .chev { transition: transform 0.15s ease; }
.lang details[open] .chev { transform: rotate(180deg); }
.lang ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 12px;
  background: #151d36;
  box-shadow: 0 14px 32px rgb(0 0 0 / 0.45);
}
.lang ul a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--soft);
  font-family: inherit;
  font-size: 0.95rem;
  text-decoration: none;
}
.lang ul a:hover { background: rgb(255 255 255 / 0.08); color: var(--ink); }
.lang ul a[aria-current="page"] { color: var(--gold); }
.lang ul a[aria-current="page"]::after { content: "✓"; }

:focus-visible { outline: 3px solid #fff2be; outline-offset: 3px; border-radius: 6px; }

/* The 404 page. */
.lost { margin-top: 28px; color: var(--soft); font-size: clamp(1.1rem, 2.6vw, 1.4rem); }
.home-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.home {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #1d1322;
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .logo img { animation: float 4s ease-in-out infinite alternate; }
  @keyframes float { to { transform: translateY(-8px); } }
}
