:root {
  --ink: #f5f0dc;
  --muted: #b9b6d7;
  --bg: #08061d;
  --bg-2: #130b35;
  --panel: rgba(18, 12, 48, 0.84);
  --panel-strong: rgba(28, 16, 69, 0.92);
  --indigo: #160f42;
  --purple: #563099;
  --purple-2: #7b4fd6;
  --gold: #e4bd62;
  --gold-soft: #f2d98b;
  --blue: #79caff;
  --blue-soft: #bce8ff;
  --danger: #ff7f9a;
  --line: rgba(228, 189, 98, 0.36);
  --line-blue: rgba(121, 202, 255, 0.34);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  --glow: 0 0 28px rgba(121, 202, 255, 0.18), 0 0 42px rgba(228, 189, 98, 0.12);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 16% 10%, rgba(123, 79, 214, 0.24), transparent 30rem),
    radial-gradient(circle at 84% 12%, rgba(121, 202, 255, 0.16), transparent 27rem),
    radial-gradient(circle at 50% 100%, rgba(228, 189, 98, 0.12), transparent 32rem),
    linear-gradient(180deg, #07051a 0%, #0e082b 45%, #07051a 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(121, 202, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 202, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(228, 189, 98, 0.05) 43%, transparent 44% 100%),
    linear-gradient(245deg, transparent 0 54%, rgba(121, 202, 255, 0.05) 55%, transparent 56% 100%);
  opacity: 0.78;
}

a {
  color: var(--blue-soft);
  text-decoration: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

::selection {
  color: #08061d;
  background: var(--gold);
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 0.9rem;
  color: #09051b;
  background: var(--gold);
  border-radius: 0;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  padding: 0.95rem 0;
  background:
    linear-gradient(180deg, rgba(24, 14, 60, 0.86), rgba(11, 7, 31, 0.74)),
    linear-gradient(90deg, transparent, rgba(228, 189, 98, 0.16), transparent);
  border-bottom: 1px solid rgba(228, 189, 98, 0.28);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--gold-soft);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #0b061c;
  background:
    linear-gradient(135deg, var(--gold-soft), var(--gold) 52%, #9d6f28),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.7), transparent 34%);
  border: 1px solid rgba(255, 244, 194, 0.75);
  box-shadow: 0 0 0 4px rgba(228, 189, 98, 0.08), 0 0 24px rgba(228, 189, 98, 0.28);
  clip-path: polygon(50% 0, 92% 28%, 82% 100%, 18% 100%, 8% 28%);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy small {
  color: var(--blue-soft);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.navbar-toggler {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(121, 202, 255, 0.24);
}

.navbar-toggler-icon {
  filter: invert(1) sepia(0.35) saturate(3);
}

.nav-menu {
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  margin: 0 0.08rem;
  padding: 0.65rem 0.9rem !important;
  color: rgba(245, 240, 220, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-link::before,
.nav-link::after {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link::before {
  top: 0.3rem;
  transform: translateY(4px);
}

.nav-link::after {
  bottom: 0.3rem;
  transform: translateY(-4px);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--gold-soft);
}

.nav-link:hover::before,
.nav-link:hover::after,
.nav-link:focus::before,
.nav-link:focus::after,
.nav-link.active::before,
.nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu {
  padding: 0.55rem;
  background:
    linear-gradient(180deg, rgba(29, 16, 75, 0.96), rgba(8, 6, 29, 0.96));
  border: 1px solid rgba(228, 189, 98, 0.3);
  border-radius: 0;
  box-shadow: var(--shadow), var(--glow);
}

.dropdown-item {
  color: rgba(245, 240, 220, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  color: #0b061c;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.main-content {
  padding-top: 84px;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 5, 26, 0.92) 0%, rgba(10, 6, 31, 0.68) 42%, rgba(9, 6, 27, 0.54) 100%),
    linear-gradient(180deg, rgba(7, 5, 26, 0.42), rgba(7, 5, 26, 0.88)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  z-index: -1;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(8, 6, 29, 0.95));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 7rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.38rem 0.75rem;
  color: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(121, 202, 255, 0.08);
  border: 1px solid rgba(121, 202, 255, 0.28);
  box-shadow: inset 0 0 20px rgba(121, 202, 255, 0.08);
}

h1,
h2,
h3,
h4,
.display-title {
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 870px;
  margin-bottom: 1.1rem;
  font-size: clamp(3rem, 8vw, 6.6rem);
  text-shadow: 0 0 34px rgba(121, 202, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero .lead {
  max-width: 690px;
  color: #dad7ef;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.72;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn-rune {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.82rem 1.16rem;
  color: #120b2f;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, #a66f23);
  border: 1px solid rgba(255, 244, 194, 0.82);
  border-radius: 0;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 26px rgba(228, 189, 98, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.btn-rune::before,
.btn-ghost-rune::before {
  position: absolute;
  inset: 4px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(11, 7, 31, 0.28);
}

.btn-rune:hover,
.btn-rune:focus {
  color: #09051b;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35), 0 0 34px rgba(228, 189, 98, 0.32);
}

.btn-ghost-rune {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.82rem 1.16rem;
  color: var(--blue-soft);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(18, 12, 48, 0.72);
  border: 1px solid rgba(121, 202, 255, 0.34);
  border-radius: 0;
  box-shadow: inset 0 0 22px rgba(121, 202, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.btn-ghost-rune::before {
  border-color: rgba(228, 189, 98, 0.18);
}

.btn-ghost-rune:hover,
.btn-ghost-rune:focus {
  color: var(--gold-soft);
  border-color: rgba(228, 189, 98, 0.5);
  transform: translateY(-2px);
  box-shadow: inset 0 0 26px rgba(228, 189, 98, 0.08), 0 18px 38px rgba(0, 0, 0, 0.32);
}

.hud-orbit {
  position: relative;
  min-height: 465px;
  padding: 1rem;
}

.hud-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(86%, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(228, 189, 98, 0.42);
  background:
    radial-gradient(circle at 50% 45%, rgba(121, 202, 255, 0.18), transparent 22%),
    radial-gradient(circle, rgba(86, 48, 153, 0.55), rgba(13, 8, 39, 0.82) 56%, rgba(5, 4, 19, 0.72));
  clip-path: polygon(50% 0, 92% 14%, 100% 50%, 92% 86%, 50% 100%, 8% 86%, 0 50%, 8% 14%);
  box-shadow: var(--shadow), inset 0 0 58px rgba(121, 202, 255, 0.13), 0 0 44px rgba(228, 189, 98, 0.12);
  animation: slowBreath 5.6s ease-in-out infinite;
}

.hud-core::before {
  position: absolute;
  inset: 20px;
  content: "";
  border: 1px solid rgba(121, 202, 255, 0.36);
  clip-path: inherit;
}

.hud-core::after {
  position: absolute;
  inset: 48px;
  content: "";
  background: conic-gradient(from 0deg, rgba(228, 189, 98, 0.12), transparent, rgba(121, 202, 255, 0.14), transparent, rgba(228, 189, 98, 0.12));
  border-radius: 50%;
  animation: rotateRing 16s linear infinite;
}

.hud-chip {
  position: absolute;
  min-width: 165px;
  padding: 0.78rem 0.85rem;
  background: rgba(10, 7, 31, 0.78);
  border: 1px solid rgba(121, 202, 255, 0.35);
  box-shadow: inset 0 0 22px rgba(121, 202, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.34);
}

.hud-chip span {
  display: block;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hud-chip strong {
  display: block;
  margin-top: 0.25rem;
}

.hud-chip:nth-child(2) {
  top: 4%;
  left: 2%;
}

.hud-chip:nth-child(3) {
  top: 20%;
  right: 0;
}

.hud-chip:nth-child(4) {
  bottom: 17%;
  left: 0;
}

.hud-chip:nth-child(5) {
  right: 4%;
  bottom: 4%;
}

.section-pad {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
  max-width: 790px;
  margin-bottom: 2.1rem;
}

.section-head.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.game-panel,
.module-card,
.log-card,
.legal-panel,
.mission-panel,
.transmission-panel {
  position: relative;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(135deg, rgba(29, 16, 75, 0.92), rgba(10, 7, 31, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(121, 202, 255, 0.08), var(--glow);
}

.game-panel::before,
.module-card::before,
.log-card::before,
.legal-panel::before,
.mission-panel::before,
.transmission-panel::before {
  position: absolute;
  inset: 8px;
  z-index: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(121, 202, 255, 0.18);
}

.game-panel > *,
.module-card > *,
.log-card > *,
.legal-panel > *,
.mission-panel > *,
.transmission-panel > * {
  position: relative;
  z-index: 1;
}

.corner-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.corner-lines::before,
.corner-lines::after {
  position: absolute;
  width: 34px;
  height: 34px;
  content: "";
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}

.corner-lines::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.corner-lines::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.module-card {
  height: 100%;
  min-height: 250px;
  padding: 1.45rem;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.module-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, transparent 0 38%, rgba(121, 202, 255, 0.1), transparent 53%);
  opacity: 0;
  transform: translateX(-35%);
  transition: opacity 220ms ease, transform 520ms ease;
}

.module-card:hover,
.module-card:focus-within {
  border-color: rgba(228, 189, 98, 0.68);
  box-shadow: var(--shadow), 0 0 36px rgba(228, 189, 98, 0.16), inset 0 0 26px rgba(121, 202, 255, 0.08);
  transform: translateY(-6px);
}

.module-card:hover::after,
.module-card:focus-within::after {
  opacity: 1;
  transform: translateX(35%);
}

.module-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--gold-soft);
  background: radial-gradient(circle at 50% 35%, rgba(228, 189, 98, 0.22), rgba(121, 202, 255, 0.08));
  border: 1px solid rgba(228, 189, 98, 0.38);
  box-shadow: inset 0 0 22px rgba(228, 189, 98, 0.12);
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
}

.ui-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  color: var(--blue-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.module-card h3,
.log-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.module-card p,
.log-card p,
.game-panel p,
.mission-panel p {
  color: var(--muted);
  line-height: 1.68;
}

.image-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(228, 189, 98, 0.34);
  box-shadow: var(--shadow), var(--glow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.image-panel::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(8, 6, 29, 0.82)), linear-gradient(90deg, rgba(8, 6, 29, 0.38), transparent);
}

.image-panel .image-caption {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  padding: 0.95rem;
  background: rgba(8, 6, 29, 0.72);
  border: 1px solid rgba(121, 202, 255, 0.28);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.stat-box {
  padding: 1rem;
  background: rgba(121, 202, 255, 0.06);
  border: 1px solid rgba(121, 202, 255, 0.22);
}

.stat-box strong {
  display: block;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1;
}

.stat-box span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.stage-board {
  padding: 1.35rem;
}

.stage-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.38fr) 1fr minmax(54px, auto);
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(121, 202, 255, 0.14);
}

.stage-row:last-child {
  border-bottom: 0;
}

.stage-name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
}

.stage-index {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #0b061c;
  font-size: 0.8rem;
  font-weight: 900;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 28%, 86% 100%, 14% 100%, 0 28%);
}

.progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  background: rgba(7, 5, 26, 0.78);
  border: 1px solid rgba(121, 202, 255, 0.24);
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  box-shadow: 0 0 22px rgba(121, 202, 255, 0.5);
  transition: width 1.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stage-status {
  color: var(--blue-soft);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.log-card {
  height: 100%;
  overflow: hidden;
}

.log-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-bottom: 1px solid rgba(228, 189, 98, 0.28);
}

.log-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.log-card:hover .log-media img {
  transform: scale(1.06);
}

.log-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, rgba(8, 6, 29, 0.1), rgba(8, 6, 29, 0.76));
}

.log-body {
  padding: 1.35rem;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.badge-rune {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.55rem;
  color: var(--blue-soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(121, 202, 255, 0.07);
  border: 1px solid rgba(121, 202, 255, 0.24);
}

.badge-rune.gold {
  color: var(--gold-soft);
  background: rgba(228, 189, 98, 0.08);
  border-color: rgba(228, 189, 98, 0.28);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  color: var(--gold-soft);
  font-weight: 900;
}

.mission-panel {
  padding: clamp(1.6rem, 4vw, 3.2rem);
  overflow: hidden;
}

.mission-panel::after {
  position: absolute;
  top: -35%;
  right: -12%;
  width: 34rem;
  height: 34rem;
  content: "";
  background: radial-gradient(circle, rgba(121, 202, 255, 0.14), transparent 62%);
  opacity: 0.8;
}

.mission-panel h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4.6vw, 4rem);
}

.page-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 10rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 5, 26, 0.94), rgba(11, 7, 31, 0.68)),
    linear-gradient(180deg, rgba(7, 5, 26, 0.15), rgba(7, 5, 26, 0.88)),
    var(--page-image, var(--hero-image)) center / cover no-repeat;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0 0 0.9rem;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #d9d6f0;
  font-size: 1.08rem;
  line-height: 1.72;
}

.advantage-grid .module-card {
  min-height: 310px;
}

.module-list {
  display: grid;
  gap: 0.68rem;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
  list-style: none;
}

.module-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.module-list i {
  margin-top: 0.22rem;
  color: var(--gold-soft);
}

.report-layout {
  display: grid;
  gap: 2rem;
}

.report-entry {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) 1fr;
  overflow: hidden;
}

.report-entry .log-media {
  height: 100%;
  min-height: 330px;
  border-right: 1px solid rgba(228, 189, 98, 0.28);
  border-bottom: 0;
}

.report-entry .log-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3vw, 2.4rem);
}

.report-entry h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.transmission-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-label {
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-control,
.form-select {
  min-height: 50px;
  color: var(--ink);
  background-color: rgba(8, 6, 29, 0.72);
  border: 1px solid rgba(121, 202, 255, 0.26);
  border-radius: 0;
  box-shadow: inset 0 0 18px rgba(121, 202, 255, 0.05);
}

.form-control:focus,
.form-select:focus {
  color: var(--ink);
  background-color: rgba(11, 7, 31, 0.9);
  border-color: rgba(228, 189, 98, 0.72);
  box-shadow: 0 0 0 0.2rem rgba(228, 189, 98, 0.16), inset 0 0 22px rgba(121, 202, 255, 0.08);
}

.form-control::placeholder {
  color: rgba(185, 182, 215, 0.62);
}

.form-select option {
  color: #120b2f;
}

.success-message {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  color: var(--blue-soft);
  background: rgba(121, 202, 255, 0.08);
  border: 1px solid rgba(121, 202, 255, 0.34);
}

.success-message.is-visible {
  display: block;
}

.contact-block {
  height: 100%;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.contact-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.85rem;
  align-items: start;
}

.contact-list i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold-soft);
  background: rgba(228, 189, 98, 0.08);
  border: 1px solid rgba(228, 189, 98, 0.28);
}

.contact-list strong {
  display: block;
}

.contact-list span,
.contact-list a {
  color: var(--muted);
}

.map-radar {
  position: relative;
  min-height: 300px;
  margin-top: 1.4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(121, 202, 255, 0.18), transparent 12%),
    repeating-radial-gradient(circle at 50% 50%, rgba(121, 202, 255, 0.12) 0 1px, transparent 1px 42px),
    linear-gradient(135deg, rgba(13, 8, 39, 0.9), rgba(30, 16, 72, 0.92));
  border: 1px solid rgba(121, 202, 255, 0.25);
}

.map-radar::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(121, 202, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 202, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
}

.map-radar::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(228, 189, 98, 0.8), transparent);
  transform-origin: left center;
  animation: radarSweep 6s linear infinite;
}

.radar-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--gold-soft);
  background: rgba(8, 6, 29, 0.76);
  border: 1px solid rgba(228, 189, 98, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(228, 189, 98, 0.22);
  transform: translate(-50%, -50%);
}

.legal-panel {
  padding: clamp(1.35rem, 3vw, 2.3rem);
}

.legal-panel h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  line-height: 1.72;
}

.legal-panel ul {
  padding-left: 1.2rem;
}

.legal-note {
  padding: 1rem;
  color: var(--gold-soft);
  background: rgba(228, 189, 98, 0.08);
  border: 1px solid rgba(228, 189, 98, 0.24);
}

.site-footer {
  position: relative;
  padding: 3.4rem 0 1.8rem;
  background:
    linear-gradient(180deg, rgba(8, 6, 29, 0), rgba(8, 6, 29, 0.95) 16%),
    linear-gradient(135deg, rgba(29, 16, 75, 0.8), rgba(8, 6, 29, 0.96));
  border-top: 1px solid rgba(228, 189, 98, 0.26);
}

.footer-panel {
  padding: 1.4rem;
}

.footer-title {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.footer-links a,
.footer-copy {
  color: var(--muted);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-row a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--blue-soft);
  background: rgba(121, 202, 255, 0.06);
  border: 1px solid rgba(121, 202, 255, 0.24);
}

.social-row a:hover,
.social-row a:focus {
  color: var(--gold-soft);
  border-color: rgba(228, 189, 98, 0.46);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(121, 202, 255, 0.16);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse-soft {
  animation: softPulse 2.8s ease-in-out infinite;
}

@keyframes slowBreath {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.025);
  }
}

@keyframes rotateRing {
  to {
    transform: rotate(360deg);
  }
}

@keyframes radarSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(121, 202, 255, 0.08), 0 0 24px rgba(121, 202, 255, 0.1);
  }
  50% {
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(121, 202, 255, 0.12), 0 0 36px rgba(228, 189, 98, 0.18);
  }
}

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

  .hud-orbit {
    max-width: 600px;
    min-height: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 991.98px) {
  .topbar .navbar-collapse {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(8, 6, 29, 0.82);
    border: 1px solid rgba(121, 202, 255, 0.2);
  }

  .main-content {
    padding-top: 76px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 5rem;
  }

  .report-entry {
    grid-template-columns: 1fr;
  }

  .report-entry .log-media {
    min-height: 270px;
    border-right: 0;
    border-bottom: 1px solid rgba(228, 189, 98, 0.28);
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: clamp(2.6rem, 16vw, 4.5rem);
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-rune,
  .btn-ghost-rune {
    width: 100%;
  }

  .hud-orbit {
    min-height: 470px;
    padding: 0;
  }

  .hud-core {
    width: min(78vw, 330px);
  }

  .hud-chip {
    min-width: min(44vw, 172px);
    padding: 0.7rem;
    font-size: 0.85rem;
  }

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

  .stage-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .stage-status {
    text-align: left;
  }

  .page-hero {
    min-height: 390px;
    padding-top: 8rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .brand-copy small {
    display: none;
  }

  .navbar-brand {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .module-card,
  .log-body,
  .stage-board,
  .footer-panel {
    padding: 1rem;
  }

  .module-card::before,
  .log-card::before,
  .game-panel::before,
  .legal-panel::before,
  .mission-panel::before,
  .transmission-panel::before {
    inset: 6px;
  }

  .contact-list li {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .progress-fill {
    width: var(--target-width, 100%);
  }
}
