@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Teko:wght@500;600;700&display=swap");

:root {
  --bg: #0f1115;
  --bg-2: #161a22;
  --bg-3: #202531;
  --ink: #f6f7fb;
  --ink-soft: #c0c5d1;
  --line: rgba(246, 166, 60, 0.28);
  --line-strong: rgba(246, 166, 60, 0.52);
  --neon-cyan: #f6a63c;
  --neon-magenta: #ef4b2e;
  --neon-lime: #f9d45f;
  --neon-orange: #ff7f3f;
  --panel: rgba(20, 24, 32, 0.78);
  --panel-strong: rgba(22, 27, 38, 0.94);
  --radius-lg: 14px;
  --radius-md: 16px;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.45);
  --font-head: "Teko", "Arial Narrow", sans-serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --anim-fast: 220ms;
  --anim-mid: 420ms;
  --anim-slow: 900ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, #3a2b1c 0%, transparent 34%),
    radial-gradient(circle at 86% 100%, #1f2733 0%, transparent 30%),
    linear-gradient(180deg, #12151b 0%, #0e1015 46%, #0a0c10 100%);
  font-family: var(--font-body);
}

body {
  line-height: 1.56;
}

.arena-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 14%, rgba(246, 166, 60, 0.1), transparent 34%),
    radial-gradient(circle at 84% 72%, rgba(239, 75, 46, 0.11), transparent 34%);
  animation: hueOrbit 30s linear infinite;
}

.arena-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.2) 0,
    rgba(255, 255, 255, 0.2) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: normal;
}

body[data-page="home"] {
  overflow-x: hidden;
  overflow-y: auto;
}

.arena-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.34;
  animation: orbDrift 14s ease-in-out infinite;
}

.orb-a {
  width: 34vw;
  height: 34vw;
  left: -8vw;
  top: -8vw;
  background: radial-gradient(circle, var(--neon-cyan), rgba(47, 243, 255, 0));
}

.orb-b {
  width: 30vw;
  height: 30vw;
  right: -6vw;
  top: 10vh;
  background: radial-gradient(circle, var(--neon-magenta), rgba(255, 63, 199, 0));
  animation-delay: -4s;
}

.orb-c {
  width: 28vw;
  height: 28vw;
  right: 28vw;
  bottom: -10vw;
  background: radial-gradient(circle, var(--neon-lime), rgba(155, 255, 71, 0));
  animation-delay: -8s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 100%);
  opacity: 0.5;
}

.bg-scan {
  position: absolute;
  inset: -100% 0 100% 0;
  background: linear-gradient(180deg, transparent 0%, rgba(246, 166, 60, 0.07) 45%, transparent 100%);
  animation: scanMove 11s linear infinite;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: linear-gradient(180deg, rgba(12, 14, 19, 0.96), rgba(12, 14, 19, 0.7));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  animation: topbarPulse 6s ease-in-out infinite;
}

.brand-block {
  display: grid;
  gap: 0.2rem;
}

.brand-eyebrow {
  margin: 0;
  color: var(--ink-soft);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
}

.brand-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 0.9;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.arrow-btn,
.ghost-link,
.ghost-btn,
.cta-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.72rem 1.04rem;
  background: rgba(34, 40, 52, 0.78);
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.8rem;
  transition: transform 140ms ease, border-color 180ms ease, box-shadow 220ms ease, background 220ms ease;
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.arrow-btn::after,
.ghost-link::after,
.ghost-btn::after,
.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: transform var(--anim-slow) ease;
  z-index: -1;
}

.arrow-btn:hover,
.ghost-link:hover,
.ghost-btn:hover,
.cta-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(47, 243, 255, 0.26);
}

.arrow-btn:hover::after,
.ghost-link:hover::after,
.ghost-btn:hover::after,
.cta-btn:hover::after {
  transform: translateX(120%);
}

.arrow-btn {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
}

.cta-btn {
  background: linear-gradient(120deg, rgba(246, 166, 60, 0.4), rgba(239, 75, 46, 0.36));
}

.rail-nav {
  position: fixed;
  z-index: 70;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rail-dot {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(11, 19, 35, 0.88);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.rail-dot:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.rail-dot.active {
  color: #160f08;
  background: linear-gradient(120deg, var(--neon-cyan), #ffc36c);
  border-color: rgba(246, 166, 60, 0.88);
  box-shadow: 0 0 18px rgba(246, 166, 60, 0.42);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.h-scroll {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  scroll-snap-type: none;
  scroll-behavior: smooth;
}

.panel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  padding: clamp(8rem, 12vh, 10rem) clamp(1.4rem, 6vw, 6rem) clamp(2.2rem, 6vh, 4rem);
  display: block;
  overflow: visible;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 8% 7%;
  border: 1px solid rgba(246, 166, 60, 0.28);
  border-radius: 10px;
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  width: 52vw;
  height: 52vw;
  max-width: 680px;
  max-height: 680px;
  left: -14vw;
  top: 12%;
  pointer-events: none;
  border-radius: 12%;
  background: conic-gradient(
    from 0deg,
    rgba(246, 166, 60, 0.14),
    rgba(239, 75, 46, 0.11),
    rgba(249, 212, 95, 0.1),
    rgba(246, 166, 60, 0.14)
  );
  filter: blur(24px);
  opacity: 0.45;
  animation: orbitalSpin 22s linear infinite;
}

.panel-shape {
  position: absolute;
  right: min(6vw, 80px);
  bottom: min(10vh, 70px);
  width: min(28vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 166, 60, 0.26);
  clip-path: polygon(50% 0%, 100% 24%, 82% 100%, 18% 100%, 0% 24%);
  transform: rotate(-12deg);
  opacity: 0.45;
  animation: shapeSpin 14s linear infinite;
  pointer-events: none;
}

.panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
}

.media-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.1rem;
}

.media-grid.one {
  grid-template-columns: 1fr;
}

.media-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-slot {
  position: relative;
  margin: 0;
  border: 1px solid rgba(246, 166, 60, 0.24);
  border-radius: 10px;
  background: rgba(30, 35, 46, 0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(0);
  transition: transform var(--anim-mid) ease, border-color var(--anim-mid) ease, box-shadow var(--anim-mid) ease;
}

.ai-slot::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg, rgba(47, 243, 255, 0.35), rgba(255, 63, 199, 0.26), rgba(155, 255, 71, 0.3));
  transition: opacity var(--anim-mid) ease;
}

.ai-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 42%, rgba(246, 166, 60, 0.08));
  mix-blend-mode: normal;
  animation: shimmerSweep 6.4s ease-in-out infinite;
}

.ai-slot:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 191, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.64), 0 0 24px rgba(47, 243, 255, 0.2);
}

.ai-slot:hover::before {
  opacity: 1;
}

.ai-slot img {
  width: 100%;
  height: clamp(240px, 34vw, 520px);
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 760ms ease, filter 760ms ease;
  filter: saturate(1.03) contrast(1.06) brightness(1.02);
}

.ai-slot:hover img {
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.09) brightness(1.03);
}

.ai-slot figcaption {
  padding: 0.72rem 0.9rem;
  border-top: 1px solid rgba(246, 166, 60, 0.22);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.panel-manifesto .media-grid .ai-slot:nth-child(2) img,
.panel-community .media-grid .ai-slot:nth-child(2) img {
  height: clamp(260px, 28vw, 420px);
  aspect-ratio: 1 / 1;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  font-size: 0.84rem;
  animation: flickerSoft 4.4s ease-in-out infinite;
}

.display-title {
  margin: 0.75rem 0 1.4rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 0.9;
  font-size: clamp(3.1rem, 10vw, 8.5rem);
  text-shadow: 0 0 24px rgba(246, 166, 60, 0.2);
  animation: titleBreathe 5.5s ease-in-out infinite;
}

.lead {
  margin: 0 0 1.2rem;
  max-width: 68ch;
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  color: #e5e8ef;
}

.lead.subtle {
  color: var(--ink-soft);
}

.reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 420ms ease, transform 540ms ease, filter 540ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.panel-content.reveal.visible > * {
  animation: riseIn var(--anim-slow) ease both;
}

.panel-content.reveal.visible > *:nth-child(2) {
  animation-delay: 80ms;
}

.panel-content.reveal.visible > *:nth-child(3) {
  animation-delay: 150ms;
}

.panel-content.reveal.visible > *:nth-child(4) {
  animation-delay: 220ms;
}

.panel-content.reveal.visible > *:nth-child(5) {
  animation-delay: 300ms;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(246, 166, 60, 0.3);
  background: linear-gradient(160deg, rgba(30, 35, 47, 0.94), rgba(20, 24, 34, 0.85));
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform var(--anim-mid) ease, border-color var(--anim-mid) ease, box-shadow var(--anim-mid) ease;
}

.info-card::before,
.metric-card::before {
  content: "";
  position: absolute;
  left: -35%;
  top: -60%;
  width: 70%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(47, 243, 255, 0.16), transparent);
  opacity: 0;
  transition: opacity var(--anim-mid) ease, transform var(--anim-slow) ease;
  pointer-events: none;
}

.info-card:hover,
.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 191, 255, 0.45);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.56), 0 0 20px rgba(47, 243, 255, 0.14);
}

.info-card:hover::before,
.metric-card:hover::before {
  opacity: 1;
  transform: rotate(18deg) translateX(26%);
}

.info-card h2,
.info-card h3,
.metric-card h2,
.metric-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 0.95;
  font-size: clamp(1.7rem, 2.3vw, 2.4rem);
}

.info-card p,
.metric-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.cta-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.table-shell {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: auto;
  border: 1px solid rgba(157, 191, 255, 0.3);
  background: rgba(8, 14, 27, 0.78);
  box-shadow: var(--shadow);
}

.server-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
}

.server-table th,
.server-table td {
  padding: 0.92rem 1rem;
  border-bottom: 1px solid rgba(157, 191, 255, 0.16);
  text-align: left;
}

.server-table tbody tr {
  transition: background var(--anim-fast) ease, transform var(--anim-fast) ease;
}

.server-table tbody tr:hover {
  background: rgba(47, 243, 255, 0.09);
}

.server-table th {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  font-weight: 700;
}

.status-pill.online {
  color: #081007;
  background: linear-gradient(120deg, #69ff6f, #9bff47);
}

.status-pill.offline {
  color: #19080f;
  background: linear-gradient(120deg, #ff7db6, #ff3fc7);
}

.inline-servers {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.inline-server-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(157, 191, 255, 0.24);
  background: rgba(12, 20, 36, 0.84);
  padding: 0.72rem;
  transition: transform var(--anim-mid) ease, border-color var(--anim-mid) ease;
}

.inline-server-card:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 191, 255, 0.46);
}

.inline-server-card h4 {
  margin: 0 0 0.3rem;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  font-family: var(--font-head);
}

.inline-server-card p {
  margin: 0.14rem 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.community-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.stack-form {
  display: grid;
  gap: 0.52rem;
}

.stack-form label {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(246, 166, 60, 0.28);
  background: rgba(18, 22, 30, 0.9);
  color: var(--ink);
  padding: 0.74rem 0.84rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.stack-form textarea {
  min-height: 120px;
  resize: vertical;
}

.community-feed {
  display: grid;
  gap: 0.65rem;
  max-height: 58vh;
  overflow: auto;
}

.community-post {
  border-radius: 10px;
  border: 1px solid rgba(246, 166, 60, 0.24);
  background: rgba(18, 22, 30, 0.9);
  padding: 0.82rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.post-text {
  margin: 0;
  white-space: pre-wrap;
}

.post-actions {
  margin-top: 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.post-actions button {
  border: 1px solid rgba(157, 191, 255, 0.32);
  border-radius: 999px;
  background: rgba(14, 24, 43, 0.9);
  color: var(--ink);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  transition: transform var(--anim-fast) ease, border-color var(--anim-fast) ease, box-shadow var(--anim-fast) ease;
}

.post-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(157, 191, 255, 0.54);
  box-shadow: 0 0 14px rgba(47, 243, 255, 0.22);
}

.muted-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.live-notice {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 90;
  border-radius: 999px;
  border: 1px solid rgba(157, 191, 255, 0.48);
  background: rgba(7, 11, 19, 0.96);
  color: #dffeff;
  padding: 0.46rem 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.live-notice.show {
  opacity: 1;
}

.panel-manifesto .panel-shape {
  border-color: rgba(47, 243, 255, 0.46);
}

.panel-arena .panel-shape {
  border-color: rgba(255, 63, 199, 0.42);
}

.panel-xonotic .panel-shape {
  border-color: rgba(47, 243, 255, 0.46);
}

.panel-alien .panel-shape {
  border-color: rgba(255, 138, 61, 0.48);
}

.panel-openclonk .panel-shape {
  border-color: rgba(155, 255, 71, 0.46);
}

.panel-servers .panel-shape {
  border-color: rgba(157, 191, 255, 0.4);
}

.panel-community .panel-shape {
  border-color: rgba(255, 63, 199, 0.38);
}

.panel-status .panel-shape {
  border-color: rgba(47, 243, 255, 0.42);
}

.panel-call .panel-shape {
  border-color: rgba(255, 138, 61, 0.44);
}

.stack-page {
  background: radial-gradient(circle at 20% 0%, #1a2450 0%, var(--bg) 55%, #05070f 100%);
  overflow-x: hidden;
}

.sub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(14, 17, 24, 0.94);
}

.sub-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.9;
}

.stack-main {
  padding: 1.6rem;
  display: grid;
  gap: 1.2rem;
}

.stack-main > * {
  animation: riseIn 800ms ease both;
}

.stack-main > *:nth-child(2) {
  animation-delay: 90ms;
}

.stack-main > *:nth-child(3) {
  animation-delay: 160ms;
}

.ordered-list {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.hidden {
  display: none;
}

.admin-dashboard {
  display: grid;
  gap: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.56rem;
  max-height: 52vh;
  overflow: auto;
}

.admin-item {
  border-radius: 10px;
  border: 1px solid rgba(246, 166, 60, 0.24);
  background: rgba(18, 22, 30, 0.9);
  padding: 0.82rem;
}

.admin-item h4,
.admin-item p {
  margin: 0;
}

.admin-item .meta {
  margin-top: 0.22rem;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.admin-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-actions button {
  border-radius: 999px;
  border: 1px solid rgba(157, 191, 255, 0.28);
  background: rgba(12, 20, 36, 0.9);
  color: var(--ink);
  padding: 0.32rem 0.56rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes orbDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-30px, 18px, 0);
  }
}

@keyframes hueOrbit {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes scanMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(200%);
  }
}

@keyframes shapeSpin {
  0% {
    transform: rotate(-12deg) scale(1);
  }
  50% {
    transform: rotate(0deg) scale(1.08);
  }
  100% {
    transform: rotate(348deg) scale(1);
  }
}

@keyframes orbitalSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes topbarPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(47, 243, 255, 0);
  }
  50% {
    box-shadow: 0 0 22px rgba(47, 243, 255, 0.18);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes shimmerSweep {
  0%,
  100% {
    transform: translateX(-8%);
    opacity: 0.45;
  }
  50% {
    transform: translateX(8%);
    opacity: 0.8;
  }
}

@keyframes titleBreathe {
  0%,
  100% {
    letter-spacing: 0.08em;
    text-shadow: 0 0 24px rgba(47, 243, 255, 0.22);
  }
  50% {
    letter-spacing: 0.1em;
    text-shadow: 0 0 34px rgba(47, 243, 255, 0.34), 0 0 8px rgba(255, 63, 199, 0.2);
  }
}

@keyframes flickerSoft {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .media-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.three,
  .card-grid.four,
  .card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rail-nav {
    right: 0.5rem;
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    padding-right: 3.6rem;
  }

  .brand-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .rail-nav {
    right: 0.35rem;
    top: 5.4rem;
    transform: none;
  }

  .panel {
    padding-top: 7.4rem;
  }
}

@media (max-width: 760px) {
  .media-grid.two,
  .media-grid.three {
    grid-template-columns: 1fr;
  }

  .top-actions {
    gap: 0.38rem;
  }

  .ghost-link,
  .ghost-btn,
  .cta-btn,
  .arrow-btn {
    font-size: 0.72rem;
  }

  .rail-nav {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0.7rem;
    transform: translateX(-50%);
    flex-direction: row;
    border: 1px solid rgba(157, 191, 255, 0.35);
    border-radius: 999px;
    padding: 0.2rem;
    background: rgba(8, 14, 27, 0.92);
  }

  .rail-dot {
    width: 1.86rem;
    height: 1.86rem;
    font-size: 0.62rem;
  }

  .display-title {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .card-grid.three,
  .card-grid.four,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .panel-shape {
    opacity: 0.24;
  }

  .sub-header h1 {
    font-size: clamp(1.35rem, 6.4vw, 2rem);
  }

  .stack-main {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
