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

:root {
  --black: #010309;
  --navy: #030b19;
  --navy-light: #071426;
  --blue-dark: #06245c;
  --blue: #0b4fd8;
  --blue-main: #1264ff;
  --blue-light: #2f7cff;
  --white: #f7f9ff;
  --text: #c7d2e5;
  --gray: #77849a;
  --border: rgba(47, 124, 255, 0.13);
  --glow: 0 0 12px rgba(18, 100, 255, 0.35), 0 0 30px rgba(18, 100, 255, 0.13);
  --glow-strong: 0 0 15px rgba(47, 124, 255, 0.55), 0 0 42px rgba(18, 100, 255, 0.23);
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0%, rgba(18, 100, 255, 0.08), transparent 30%),
    radial-gradient(circle at 85% 35%, rgba(11, 79, 216, 0.05), transparent 30%),
    linear-gradient(180deg, #010309 0%, #030815 50%, #010309 100%);
  overflow-x: hidden;
  animation: pageFadeIn .7s ease both;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 124, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 124, 255, 0.018) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background:
    radial-gradient(
      circle 260px at var(--mouse-x) var(--mouse-y),
      rgba(18, 100, 255, 0.065),
      transparent 65%
    );
}

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

button {
  font-family: "Sora", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(18, 100, 255, .35);
  color: white;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #010309;
}

::-webkit-scrollbar-thumb {
  background: #0b4fd8;
  border-radius: 20px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #0b4fd8, #2f7cff);
  box-shadow: 0 0 14px rgba(47, 124, 255, .7);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(1, 3, 9, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(47, 124, 255, 0.08);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.20);
  transition: background .25s ease, box-shadow .25s ease;
}

.nav-container {
  width: min(1380px, 92%);
  height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-logo span,
.footer-logo span {
  color: var(--blue-light);
  text-shadow: 0 0 12px rgba(47, 124, 255, 0.4);
}

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

.nav-links a {
  position: relative;
  color: #cbd5e5;
  font-size: 13px;
  font-weight: 600;
  transition: .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--blue-main);
  box-shadow: 0 0 10px rgba(18, 100, 255, 0.7);
  transition: width .25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.discord-nav {
  padding: 11px 19px;
  border-radius: 9px;
  border: 1px solid rgba(47, 124, 255, 0.24);
  background: rgba(18, 100, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  transition: .25s;
}

.discord-nav:hover {
  background: rgba(18, 100, 255, 0.16);
  border-color: rgba(47, 124, 255, 0.45);
  box-shadow: 0 0 20px rgba(18, 100, 255, 0.16);
  transform: translateY(-2px);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(1, 3, 9, 0.30), rgba(1, 3, 9, 0.70), #010309),
    url("assets/images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(1, 3, 9, 0.16) 35%, rgba(1, 3, 9, 0.78) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 100, 255, 0.07), transparent 18%, transparent 82%, rgba(18, 100, 255, 0.07));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(900px, 92%);
  padding-top: 80px;
  transition: transform .25s ease-out;
}

.hero-logo {
  width: min(340px, 70vw);
  margin: 0 auto 25px;
  border-radius: 50%;
  animation:
    floatingLogo 5s ease-in-out infinite,
    logoBreathing 3.8s ease-in-out infinite;
}

.hero-small {
  margin-bottom: 17px;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(47, 124, 255, 0.4);
}

.hero h1 {
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: .96;
}

.hero h1 span {
  display: block;
  color: var(--blue-light);
  animation: titleGlow 3.5s ease-in-out infinite;
}

.hero-description {
  max-width: 630px;
  margin: 23px auto 0;
  color: #aab6c9;
  font-size: 15px;
  line-height: 1.8;
}

.hero-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: .11;
}

.glow-one {
  left: -160px;
  top: 18%;
  background: #1264ff;
}

.glow-two {
  right: -160px;
  bottom: 12%;
  background: #0b4fd8;
}

.hero-buttons {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 13px;
  flex-wrap: wrap;
}

.btn {
  min-width: 185px;
  padding: 14px 24px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform .25s, background .25s, box-shadow .25s, border-color .25s;
}

.btn::before {
  content: "";
  position: absolute;
  width: 55px;
  height: 180%;
  top: -40%;
  left: -100px;
  z-index: -1;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .65s ease;
}

.btn:hover::before {
  left: calc(100% + 60px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #093b9c, #1264ff);
  border: 1px solid rgba(47, 124, 255, 0.38);
  box-shadow: 0 0 13px rgba(18, 100, 255, 0.20), inset 0 1px 0 rgba(255,255,255,.10);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #0c47b8, #2474ff);
  box-shadow: var(--glow-strong);
}

.btn-secondary {
  color: white;
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(47,124,255,.30);
  background: rgba(18,100,255,.07);
  box-shadow: var(--glow);
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(47,124,255,.16);
  background: rgba(2,7,17,.75);
  color: var(--blue-light);
  animation: arrowMove 2s ease-in-out infinite;
}

.section {
  width: min(1280px, 92%);
  margin: auto;
  padding: 110px 0;
}

.section-heading {
  margin-bottom: 48px;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 17px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-light));
  box-shadow: 0 0 12px rgba(18, 100, 255, .55);
  animation: headingLine 3s ease-in-out infinite;
}

.section-heading > span {
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -2px;
}

.section-heading p {
  margin-top: 10px;
  color: var(--gray);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}

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

.glass-card,
.feature-card,
.server-card,
.rules-shell,
.staff-card {
  background: linear-gradient(145deg, rgba(6,16,32,.90), rgba(2,7,15,.96));
  border: 1px solid rgba(47,124,255,.10);
  box-shadow: 0 20px 45px rgba(0,0,0,.23);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform .18s ease, box-shadow .25s, border-color .25s;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 65px;
  align-items: stretch;
}

.about-text {
  border-radius: 17px;
  padding: 34px;
}

.eyebrow {
  color: var(--blue-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.about-text h3 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 23px;
}

.about-text h3 span {
  color: var(--blue-light);
}

.about-text p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 27px;
  border-radius: 14px;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(47,124,255,.045), transparent 75%);
  transform: translateX(-100%);
  transition: transform .7s ease;
}

.feature-card:hover::before {
  transform: translateX(100%);
}

.feature-card:hover {
  border-color: rgba(47,124,255,.31);
  box-shadow: 0 0 20px rgba(18,100,255,.10);
}

.feature-card > span {
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
}

.feature-card h3 {
  margin: 11px 0 9px;
  font-size: 17px;
}

.feature-card p {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.7;
}

.server-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 28px;
  align-items: center;
}

.server-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: rgba(18,100,255,.16);
  filter: blur(100px);
}

.server-main,
.server-side {
  position: relative;
  z-index: 2;
}

.server-badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(47,124,255,.14);
  background: rgba(18,100,255,.05);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 12px rgba(47,124,255,.8);
  animation: dotPulse 1.9s ease-in-out infinite;
}

.server-main h3 {
  margin: 23px 0 13px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -2px;
}

.server-main p {
  max-width: 650px;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.server-side {
  display: grid;
  gap: 11px;
}

.mini-stat {
  padding: 17px 19px;
  border-radius: 12px;
  border: 1px solid rgba(47,124,255,.07);
  background: rgba(255,255,255,.015);
}

.mini-stat span {
  display: block;
  color: var(--gray);
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.mini-stat strong {
  font-size: 14px;
}

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

.gallery-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid rgba(47,124,255,.08);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  padding: 0;
  background: transparent;
  color: white;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s, filter .5s;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,3,9,.52), transparent 55%);
}

.gallery-overlay {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 17px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: .8;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(47,124,255,.28);
  box-shadow: 0 15px 40px rgba(0,0,0,.25), 0 0 20px rgba(18,100,255,.09);
}

.gallery-item:hover img {
  transform: scale(1.045);
  filter: brightness(1.05);
}

.rules-shell {
  padding: 24px;
  border-radius: 18px;
}

.rules-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  width: fit-content;
  border-radius: 12px;
  border: 1px solid rgba(47,124,255,.09);
  background: rgba(5,14,29,.65);
  backdrop-filter: blur(15px);
}

.rules-tab {
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  color: var(--gray);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .25s ease;
}

.rules-tab:hover {
  color: white;
  background: rgba(18,100,255,.05);
}

.rules-tab.active {
  color: white;
  background: linear-gradient(135deg, #08358c, #1264ff);
  box-shadow: 0 0 17px rgba(18,100,255,.20);
}

.rules-panel {
  display: none;
}

.rules-panel.active {
  display: grid;
  gap: 10px;
  animation: panelOpen .42s ease both;
}

.rule-line {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  align-items: center;
  padding: 18px;
  border-radius: 11px;
  border: 1px solid rgba(47,124,255,.055);
  background: rgba(255,255,255,.012);
  transition: transform .25s, background .25s, border-color .25s, box-shadow .25s;
}

.rule-line:hover {
  transform: translateX(5px);
  background: rgba(18,100,255,.035);
  border-color: rgba(47,124,255,.22);
  box-shadow: -4px 0 18px rgba(18,100,255,.08);
}

.rule-line > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: var(--blue-light);
  background: rgba(18,100,255,.06);
  border: 1px solid rgba(47,124,255,.13);
  font-size: 10px;
  font-weight: 700;
  transition: .25s;
}

.rule-line:hover > span {
  color: white;
  background: rgba(18,100,255,.18);
  box-shadow: 0 0 14px rgba(18,100,255,.18);
}

.rule-line h4 {
  margin-bottom: 5px;
  font-size: 14px;
}

.rule-line p {
  color: var(--gray);
  font-size: 12px;
  line-height: 1.7;
}

.rules-panel.active .rule-line {
  animation: ruleEnter .42s ease both;
}

.rules-panel.active .rule-line:nth-child(1) { animation-delay: .03s; }
.rules-panel.active .rule-line:nth-child(2) { animation-delay: .06s; }
.rules-panel.active .rule-line:nth-child(3) { animation-delay: .09s; }
.rules-panel.active .rule-line:nth-child(4) { animation-delay: .12s; }
.rules-panel.active .rule-line:nth-child(5) { animation-delay: .15s; }
.rules-panel.active .rule-line:nth-child(6) { animation-delay: .18s; }
.rules-panel.active .rule-line:nth-child(7) { animation-delay: .21s; }
.rules-panel.active .rule-line:nth-child(8) { animation-delay: .24s; }

.staff-container {
  display: flex;
  justify-content: center;
}

.staff-card {
  width: 320px;
  border-radius: 17px;
  overflow: hidden;
}

.staff-card:hover {
  border-color: rgba(47,124,255,.30);
  box-shadow: 0 0 25px rgba(18,100,255,.11);
}

.staff-image {
  height: 320px;
  overflow: hidden;
  background: var(--navy);
}

.staff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s;
}

.staff-card:hover .staff-image img {
  transform: scale(1.04);
}

.staff-info {
  padding: 24px;
  text-align: center;
}

.staff-role {
  color: var(--blue-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
}

.staff-info h3 {
  margin-top: 8px;
  font-size: 22px;
  transition: color .25s, text-shadow .25s;
}

.staff-card:hover .staff-info h3 {
  color: var(--blue-light);
  text-shadow: 0 0 12px rgba(18,100,255,.18);
}

.staff-line {
  width: 28px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--blue-main);
  box-shadow: 0 0 10px rgba(18,100,255,.45);
}

.discord-section {
  position: relative;
  padding: 125px 20px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(18,100,255,.10), transparent 38%), #010309;
}

.discord-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(47,124,255,.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 5s ease-in-out infinite;
}

.ring-one {
  width: 430px;
  height: 430px;
}

.ring-two {
  width: 650px;
  height: 650px;
  animation-delay: 1.2s;
}

.discord-content {
  position: relative;
  z-index: 2;
}

.discord-content > span {
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
}

.discord-content h2 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: .96;
}

.discord-content h2 strong {
  display: block;
  color: var(--blue-light);
  text-shadow: var(--glow);
}

.discord-content p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 32px;
}

.discord-big {
  display: inline-block;
  min-width: 260px;
}

footer {
  padding: 42px 20px;
  text-align: center;
  background: #010207;
  border-top: 1px solid rgba(255,255,255,.04);
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 13px;
}

footer p {
  color: #66748b;
  font-size: 12px;
  margin-top: 5px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
  padding: 30px;
}

.image-viewer.active {
  display: flex;
}

.image-viewer img {
  max-width: 86vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(47,124,255,.17);
  box-shadow: 0 0 30px rgba(18,100,255,.13);
  animation: viewerOpen .28s ease both;
}

.viewer-close {
  position: absolute;
  top: 20px;
  right: 30px;
  border: none;
  background: transparent;
  color: white;
  font-size: 42px;
  cursor: pointer;
}

.viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(47,124,255,.18);
  background: rgba(5,14,29,.8);
  color: white;
  font-size: 30px;
  cursor: pointer;
  transition: .25s;
}

.viewer-arrow:hover {
  border-color: rgba(47,124,255,.45);
  box-shadow: var(--glow);
}

.viewer-left {
  left: 28px;
}

.viewer-right {
  right: 28px;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatingLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes logoBreathing {
  0%, 100% {
    filter:
      drop-shadow(0 0 8px rgba(18,100,255,.16))
      drop-shadow(0 0 22px rgba(18,100,255,.08));
  }
  50% {
    filter:
      drop-shadow(0 0 16px rgba(47,124,255,.32))
      drop-shadow(0 0 40px rgba(18,100,255,.16));
  }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(47,124,255,.45), 0 0 20px rgba(18,100,255,.18);
  }
  50% {
    text-shadow: 0 0 12px rgba(47,124,255,.70), 0 0 32px rgba(18,100,255,.28);
  }
}

@keyframes arrowMove {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

@keyframes headingLine {
  0%, 100% { width: 42px; opacity: .65; }
  50% { width: 68px; opacity: 1; }
}

@keyframes panelOpen {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ruleEnter {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes dotPulse {
  0%, 100% { opacity: .55; box-shadow: 0 0 8px rgba(47,124,255,.45); }
  50% { opacity: 1; box-shadow: 0 0 18px rgba(47,124,255,.9); }
}

@keyframes ringPulse {
  0%, 100% { opacity: .3; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: .8; transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes viewerOpen {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-container {
    height: 70px;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero-logo {
    width: min(300px, 75vw);
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .about-grid,
  .server-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .section {
    padding: 80px 0;
  }

  .server-card {
    padding: 28px 22px;
  }

  .viewer-left {
    left: 12px;
  }

  .viewer-right {
    right: 12px;
  }
}

@media (max-width: 700px) {
  body::after {
    display: none;
  }

  .rules-tabs {
    width: 100%;
  }

  .rules-tab {
    flex: 1;
    padding: 12px 8px;
  }

  .rules-shell {
    padding: 14px;
  }

  .rule-line {
    grid-template-columns: 40px 1fr;
    padding: 14px;
  }

  .viewer-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  .nav-logo {
    font-size: 19px;
  }

  .discord-nav {
    padding: 9px 12px;
    font-size: 10px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 290px;
  }

  .gallery-item {
    height: 230px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .staff-card {
    width: min(320px, 100%);
  }

  .staff-image {
    height: 300px;
  }
}

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