:root {
  --bg: #05070c;
  --panel: rgba(9, 12, 19, 0.78);
  --panel-strong: rgba(11, 15, 23, 0.94);
  --panel-soft: rgba(16, 20, 30, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f6fb;
  --text-dim: rgba(226, 233, 245, 0.72);
  --fivem: #ff5768;
  --fivem-deep: #62131d;
  --minecraft: #87ef6e;
  --minecraft-deep: #183f17;
  --gold: #ffbc57;
  --shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
  --radius: 30px;
  --radius-sm: 20px;
  --max-width: min(1320px, calc(100% - 32px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Oxanium", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 87, 104, 0.2), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(135, 239, 110, 0.16), transparent 28%),
    linear-gradient(140deg, #06080d 0%, #080b12 38%, #05070c 100%);
  overflow-x: hidden;
  transition: background 0.35s ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}

body::before {
  top: -10vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(255, 87, 104, 0.36), transparent 65%);
}

body::after {
  right: -18vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(135, 239, 110, 0.28), transparent 65%);
}

body[data-mode="fivem"] {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 87, 104, 0.3), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(135, 239, 110, 0.08), transparent 26%),
    linear-gradient(140deg, #0b0709 0%, #12090d 30%, #080b11 100%);
}

body[data-mode="minecraft"] {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 87, 104, 0.1), transparent 24%),
    radial-gradient(circle at 85% 17%, rgba(135, 239, 110, 0.28), transparent 30%),
    linear-gradient(140deg, #040806 0%, #06100a 34%, #05070c 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.portal-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.02) 50%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: soft-light;
}

.topbar,
main,
.portal-footer {
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--max-width);
  margin: 18px auto 0;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.topbar.scrolled {
  background: rgba(9, 12, 19, 0.82);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-orb {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), transparent 26%),
    linear-gradient(135deg, rgba(135, 239, 110, 0.9), rgba(68, 123, 255, 0.95));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 28px rgba(68, 123, 255, 0.26);
}

.brand-orb::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-mark {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-sub {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.nav-links .nav-admin {
  color: #101215;
  background: linear-gradient(135deg, #a6ff8f, #63d85f);
  box-shadow: 0 18px 38px rgba(99, 216, 95, 0.26);
}

.nav-links .nav-admin:hover,
.nav-links .nav-admin:focus-visible {
  color: #0b0f0b;
  background: linear-gradient(135deg, #b8ff9a, #79eb72);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

main {
  padding-bottom: 40px;
}

.portal-hero,
.world-strip,
.bridge-grid,
.portal-footer {
  width: var(--max-width);
}

.portal-hero {
  margin: 26px auto 0;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%),
    linear-gradient(135deg, rgba(255, 87, 104, 0.09), rgba(135, 239, 110, 0.08)),
    rgba(8, 11, 18, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portal-hero::before,
.portal-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(24px);
}

.portal-hero::before {
  top: -90px;
  left: -90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 87, 104, 0.32), transparent 68%);
}

.portal-hero::after {
  right: -80px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(135, 239, 110, 0.24), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.signal-label,
.panel-label,
.bridge-tag,
.card-tag,
.card-state,
.admin-route__eyebrow {
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.hero-copy h1 {
  margin: 0;
  max-width: 10.6ch;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 700px;
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.9;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-2px);
}

.hero-button--primary {
  color: #11150d;
  background: linear-gradient(135deg, #aefb8e 0%, #6dd76d 100%);
  box-shadow: 0 18px 38px rgba(109, 215, 109, 0.28);
}

.hero-button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-button--ghost:hover,
.hero-button--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.quick-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.quick-chip {
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.quick-chip strong,
.signal-mini strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.quick-chip span,
.signal-mini small,
.signal-card p {
  display: block;
  margin-top: 8px;
  color: var(--text-dim);
  line-height: 1.6;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 44%),
    rgba(10, 14, 22, 0.84);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 87, 104, 0.24), transparent 34%),
    linear-gradient(315deg, rgba(135, 239, 110, 0.18), transparent 34%);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.signal-card,
.signal-mini,
.admin-route,
.game-card,
.world-panel,
.bridge-card {
  position: relative;
  overflow: hidden;
}

.signal-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 188, 87, 0.24), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 50%),
    rgba(255, 255, 255, 0.03);
}

.signal-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.45rem;
  font-weight: 700;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.signal-mini {
  min-height: 118px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.signal-mini span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signal-mini strong {
  margin-top: 10px;
  font-size: 1.1rem;
}

.admin-route {
  display: block;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(135, 239, 110, 0.24);
  background:
    radial-gradient(circle at 80% 24%, rgba(135, 239, 110, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(135, 239, 110, 0.12), rgba(68, 123, 255, 0.08)),
    rgba(7, 11, 17, 0.94);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.admin-route:hover,
.admin-route:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(135, 239, 110, 0.38);
  box-shadow: 0 22px 40px rgba(50, 125, 43, 0.22);
}

.admin-route strong {
  display: block;
  margin-top: 10px;
  font-size: 1.9rem;
  line-height: 1;
}

.admin-route small {
  display: block;
  margin-top: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.game-card {
  --accent: var(--fivem);
  --accent-deep: var(--fivem-deep);
  --spot-x: 50%;
  --spot-y: 50%;
  display: grid;
  gap: 18px;
  min-height: 460px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(10, 13, 20, 0.92);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.game-card.minecraft {
  --accent: var(--minecraft);
  --accent-deep: var(--minecraft-deep);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
}

.game-card:hover::before,
.game-card:focus-visible::before {
  opacity: 1;
}

.card-art,
.card-top,
.game-card h2,
.game-card p,
.card-points,
.card-link {
  position: relative;
  z-index: 1;
}

.card-art {
  height: 210px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.04);
}

.card-art-city {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 87, 104, 0.45), transparent 20%),
    linear-gradient(180deg, rgba(255, 87, 104, 0.12), rgba(10, 13, 20, 0.95)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px;
}

.card-art-city::before,
.card-art-city::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.card-art-city::before {
  height: 76%;
  background:
    linear-gradient(
      90deg,
      transparent 0 4%,
      rgba(16, 19, 31, 0.95) 4% 10%,
      transparent 10% 14%,
      rgba(21, 24, 36, 0.95) 14% 25%,
      transparent 25% 29%,
      rgba(15, 18, 28, 0.96) 29% 39%,
      transparent 39% 44%,
      rgba(25, 28, 39, 0.96) 44% 54%,
      transparent 54% 60%,
      rgba(15, 17, 26, 0.98) 60% 69%,
      transparent 69% 74%,
      rgba(21, 23, 34, 0.98) 74% 84%,
      transparent 84% 90%,
      rgba(13, 15, 23, 0.98) 90% 100%
    );
}

.card-art-city::after {
  height: 36%;
  background:
    linear-gradient(180deg, rgba(255, 87, 104, 0.25), transparent 48%),
    linear-gradient(
      90deg,
      transparent 0 10%,
      rgba(255, 214, 218, 0.58) 10% 11%,
      transparent 11% 19%,
      rgba(255, 214, 218, 0.58) 19% 20%,
      transparent 20% 28%,
      rgba(255, 214, 218, 0.58) 28% 29%,
      transparent 29% 37%,
      rgba(255, 214, 218, 0.58) 37% 38%,
      transparent 38% 100%
    );
  mix-blend-mode: screen;
}

.card-art-voxel {
  background:
    linear-gradient(180deg, #bfd8ff 0%, #8bb2ff 32%, #73b74a 32%, #31572d 64%, #102213 100%);
}

.card-art-voxel::before,
.card-art-voxel::after {
  content: "";
  position: absolute;
}

.card-art-voxel::before {
  left: -4%;
  right: -4%;
  bottom: 18px;
  height: 94px;
  background:
    linear-gradient(
      90deg,
      #5b8134 0 16%,
      #426329 16% 18%,
      #68953c 18% 34%,
      #3a5821 34% 36%,
      #739d44 36% 53%,
      #395721 53% 55%,
      #4f7331 55% 73%,
      #2e491c 73% 75%,
      #7da94c 75% 100%
    );
  box-shadow:
    0 -22px 0 0 #78b34f,
    56px -48px 0 0 #557b2f,
    134px -30px 0 0 #7ab650,
    232px -64px 0 0 #4a6929,
    328px -40px 0 0 #89c35b;
}

.card-art-voxel::after {
  right: 30px;
  bottom: 88px;
  width: 180px;
  height: 76px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.42) 0 25%,
      transparent 25% 35%,
      rgba(255, 255, 255, 0.42) 35% 60%,
      transparent 60% 100%
    );
  opacity: 0.3;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-tag,
.card-state {
  font-size: 0.88rem;
}

.card-tag {
  color: rgba(255, 255, 255, 0.68);
}

.card-state {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.game-card h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.game-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.8;
}

.card-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-points li {
  position: relative;
  padding-left: 18px;
  color: rgba(245, 247, 251, 0.86);
  line-height: 1.6;
}

.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: color-mix(in srgb, var(--accent) 82%, white 18%);
  font-weight: 700;
}

.card-link::after {
  content: ">";
  transform: translateY(-1px);
}

.world-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px auto 0;
}

.world-panel,
.bridge-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(9, 12, 19, 0.8);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.16);
}

.panel-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
}

.world-panel h3,
.bridge-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.world-panel p,
.bridge-card p {
  margin: 14px 0 0;
  color: var(--text-dim);
  line-height: 1.8;
}

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px auto 0;
}

.bridge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: #0d1015;
  background: linear-gradient(135deg, #ffd076, #ffb34a);
  font-weight: 700;
}

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px auto 40px;
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 19, 0.7);
}

.footer-title {
  display: block;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.portal-footer p {
  margin: 8px 0 0;
  color: var(--text-dim);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.footer-actions a:hover,
.footer-actions a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 1120px) {
  .hero-grid,
  .portal-cards,
  .world-strip,
  .bridge-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .quick-ribbon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .topbar {
    padding: 16px 18px;
    border-radius: 24px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 12, 19, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
  }

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

  .nav-links a {
    width: 100%;
  }
}

@media (max-width: 720px) {
  :root {
    --max-width: min(100% - 20px, 1320px);
  }

  .topbar {
    margin-top: 12px;
  }

  .portal-hero {
    margin-top: 18px;
    padding: 22px;
    border-radius: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .hero-button,
  .footer-actions a {
    width: 100%;
  }

  .cta-row,
  .footer-actions {
    flex-direction: column;
  }

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

  .game-card {
    min-height: auto;
  }

  .game-card h2 {
    font-size: 2.2rem;
  }
}
