:root {
  --aw-bg: #080312;
  --aw-panel: #140826;
  --aw-card: #1b0d33;
  --aw-edge: #7d5cff;
  --aw-text: #f3ecff;
  --aw-soft: #c6b8ff;
  --aw-glow: #33f6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--aw-text);
  background:
    radial-gradient(circle at 20% 12%, #2a1660 0, transparent 34%),
    radial-gradient(circle at 86% 3%, #0d6c82 0, transparent 22%),
    linear-gradient(180deg, #05020b 0%, #120822 45%, #090413 100%);
  min-height: 100vh;
}

.aurora-wrap {
  width: min(1400px, 96vw);
  margin: 0 auto;
}

.aw-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(5, 2, 11, 0.78);
  border-bottom: 1px solid rgba(125, 92, 255, 0.35);
}

.aw-header .aurora-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brandmark img {
  width: 220px;
  max-width: 72vw;
  display: block;
}

.menu-halo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.menu-toggle-aw {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(51, 246, 255, 0.5);
  background: #1a0d34;
  color: #ecfcff;
  display: none;
  place-items: center;
  font-size: 1.3rem;
}

.aw-nav {
  display: flex;
  gap: 0.75rem;
}

.aw-nav a {
  text-decoration: none;
  color: var(--aw-soft);
  border: 1px solid rgba(125, 92, 255, 0.35);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.aw-nav a:hover,
.aw-nav a[aria-current="page"] {
  color: #07020f;
  background: linear-gradient(110deg, #9de4ff, #ad93ff);
  border-color: transparent;
}

.hero-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  padding: 2.3rem 0 1.2rem;
}

.hero-copy,
.stat-capsule {
  background: rgba(16, 8, 30, 0.75);
  border: 1px solid rgba(125, 92, 255, 0.4);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: 0 0 30px rgba(44, 175, 255, 0.12);
}

h1,
h2,
h3 {
  font-family: "Orbitron", sans-serif;
  margin-top: 0;
}

.notice-rack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.notice-rack article {
  border: 1px solid rgba(51, 246, 255, 0.42);
  border-radius: 14px;
  background: rgba(8, 24, 34, 0.35);
  padding: 0.9rem;
}

.portal-shell {
  margin: 1.3rem 0;
  background: rgba(8, 6, 18, 0.72);
  border-radius: 20px;
  border: 1px solid rgba(157, 228, 255, 0.35);
  overflow: hidden;
}

.portal-shell iframe {
  width: 100%;
  height: min(78vh, 720px);
  border: 0;
  display: block;
  background: #000;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.feed-grid section {
  background: var(--aw-card);
  border: 1px solid rgba(125, 92, 255, 0.35);
  border-radius: 16px;
  padding: 1rem;
}

.aw-footer {
  border-top: 1px solid rgba(125, 92, 255, 0.3);
  background: rgba(5, 3, 13, 0.9);
  margin-top: 2rem;
}

.aw-footer .aurora-wrap {
  padding: 1rem 0 1.4rem;
}

.res-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.res-links a {
  color: #a3d9ff;
}

.age-curtain {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.83);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 1rem;
}

.age-curtain[hidden] {
  display: none;
}

.age-panel {
  width: min(520px, 96vw);
  background: #130826;
  border: 1px solid rgba(125, 92, 255, 0.65);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 0 42px rgba(125, 92, 255, 0.35);
}

.age-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.age-actions button {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.accept-age {
  background: linear-gradient(120deg, #33f6ff, #8d78ff);
}

.reject-age {
  background: #30184d;
  color: #ffebff;
}

@media (max-width: 960px) {
  .hero-band {
    grid-template-columns: 1fr;
  }

  .feed-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notice-rack {
    grid-template-columns: 1fr;
  }

  .menu-toggle-aw {
    display: grid;
  }

  .aw-nav {
    position: absolute;
    top: 74px;
    right: 2vw;
    width: min(280px, 92vw);
    background: #140826;
    border: 1px solid rgba(51, 246, 255, 0.38);
    border-radius: 14px;
    padding: 0.6rem;
    display: none;
    flex-direction: column;
  }

  .aw-nav.open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
}