:root {
  --astro-bg: #0f1222;
  --astro-card: #181d35;
  --astro-line: #2f3b6f;
  --astro-cyan: #7af4ff;
  --astro-lime: #9effc2;
  --astro-text: #eef3ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Fira Sans', sans-serif;
  color: var(--astro-text);
  background:
    linear-gradient(90deg, rgba(47, 59, 111, 0.25) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 59, 111, 0.25) 1px, transparent 1px),
    var(--astro-bg);
  background-size: 32px 32px, 32px 32px, auto;
}
body.astro-locked { overflow: hidden; }
.astro-header {
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(122, 244, 255, 0.35);
  background: rgba(15, 18, 34, 0.9);
  position: sticky;
  top: 0;
  z-index: 70;
}
.astro-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--astro-text);
}
.astro-brand img { width: 48px; height: 38px; }
.astro-brand span {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.9rem);
  font-weight: 700;
}
.astro-toggle {
  justify-self: end;
  border: 1px solid var(--astro-cyan);
  background: transparent;
  color: var(--astro-cyan);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-weight: 700;
}
.astro-nav {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
}
.astro-nav.active { display: flex; }
.astro-nav a {
  text-decoration: none;
  color: #d9e8ff;
  border-radius: 10px;
  border: 1px solid rgba(122, 244, 255, 0.22);
  padding: 0.45rem 0.72rem;
}
.astro-nav a:hover,
.astro-nav a:focus-visible { border-color: var(--astro-lime); }
.astro-home {
  width: min(1380px, 100% - 1.5rem);
  margin: 1rem auto 2rem;
  display: grid;
  gap: 0.95rem;
}
.astro-hero,
.astro-notices,
.astro-gameblock,
.astro-cards article,
.astro-doc {
  background: linear-gradient(155deg, rgba(24, 29, 53, 0.95), rgba(17, 22, 42, 0.95));
  border: 1px solid rgba(122, 244, 255, 0.2);
  border-radius: 14px;
  padding: 1rem;
}
.astro-hero h1,
.astro-doc h1 {
  margin-top: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 5.4vw, 2.95rem);
}
.astro-notices h2,
.astro-gameblock h2,
.astro-cards h2 {
  margin-top: 0;
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
}
.astro-notices div {
  display: grid;
  gap: 0.45rem;
}
.astro-notices span {
  border-left: 4px solid var(--astro-cyan);
  padding-left: 0.55rem;
}
.astro-gameblock iframe,
.astro-screen iframe {
  width: 100%;
  min-height: 470px;
  border: 0;
  border-radius: 10px;
  background: #000;
}
.astro-cards { display: grid; gap: 0.85rem; }
.astro-doc {
  width: min(1140px, 100% - 1.5rem);
  margin: 1rem auto 2rem;
  line-height: 1.75;
}
.astro-screen iframe { min-height: 72vh; }
.astro-footer {
  margin: 0 0.8rem 0.8rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(122, 244, 255, 0.3);
  color: #d9e8ff;
}
.astro-footer div {
  margin-top: 0.58rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.astro-footer a { color: var(--astro-cyan); text-decoration: none; }
.astro-age {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.9);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 95;
}
.astro-age[hidden] { display: none; }
.astro-age-card {
  width: min(430px, 100%);
  background: var(--astro-card);
  border-radius: 14px;
  border: 1px solid rgba(122, 244, 255, 0.35);
  padding: 1rem;
}
.astro-age-card h2 {
  margin-top: 0;
  font-family: 'Sora', sans-serif;
}
.astro-age-card div {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.astro-age-card button {
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
#astro-yes { background: var(--astro-cyan); color: #022028; }
#astro-no { background: #31406f; color: #eef3ff; }
@media (min-width: 940px) {
  .astro-toggle { display: none; }
  .astro-nav {
    grid-column: auto;
    display: flex;
    flex-direction: row;
    justify-self: end;
  }
  .astro-header {
    grid-template-columns: auto 1fr;
    padding-inline: 1.25rem;
  }
  .astro-home {
    grid-template-columns: 1.08fr 0.92fr;
    grid-template-areas:
      'hero notices'
      'game game'
      'cards cards';
  }
  .astro-hero { grid-area: hero; }
  .astro-notices { grid-area: notices; }
  .astro-gameblock { grid-area: game; }
  .astro-cards {
    grid-area: cards;
    grid-template-columns: 1fr 1fr;
  }
}