/* =========================================================
   IglaOTS — Landing page
   Recreated pixel-for-pixel from Figma (node 314:3947, "1920x1080")
   ========================================================= */

@font-face {
  font-family: "Dirty Crown";
  src: url("../fonts/DirtyCrown.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Fonts */
  --font-display: "Dirty Crown", "Pirata One", "Papyrus", fantasy;
  --font-serif: "Inria Serif", Georgia, serif;
  --font-ui: "El Messiri", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --c-black: #000000;
  --c-text-muted: #aa8149;
  --c-text-gold: #ffd498;
  --c-online-header: #ffc32c;
  --c-online-green: #27ff88;
  --c-online-yellow: #ffd900;
  --c-button-text: #ffc043;
  --c-tagline: #ffeec8;
  --c-pvp-text: #fed6d6;
  --c-tag-red-text: #ffd4d4;
  --c-tag-green-text: #ffffff;
  --c-tag-green-glow: #d4ffe6;
  --c-countdown: #ffab36;

  --gold-1: #ffda1b;
  --gold-2: #d59b04;
  --gold-3: #be7700;

  /* Reference (1920 canvas) layout numbers, used for fluid scaling */
  --content-max: 1218px;
  --footer-max: 1031px;
  --nav-max: 1134px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--c-black);
}

body {
  margin: 0;
  color: var(--c-text-gold);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gradient-text {
  background-image: linear-gradient(to bottom, var(--gold-1) 0%, var(--gold-2) 49.519%, var(--gold-3) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5.5px rgba(0, 0, 0, 0.9));
}

/* =========================================================
   Background decor
   ========================================================= */

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../images/bg-texture.png") center top / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

/* =========================================================
   Header / Nav — Figma node 314:3958
   Logo 96 overlaps a 60px bar; online left, socials right.
   ========================================================= */

.site-header {
  position: relative;
  z-index: 20;
  padding: 15px 24px 0;
}

.nav-wrap {
  position: relative;
  max-width: var(--nav-max);
  margin: 0 auto;
}

.nav-pill {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px; /* (96 - 60) / 2 — center bar on logo */
  height: 60px;
  bottom: auto;
  border-radius: 8px;
  overflow: hidden;
  background: url("../images/nav-bar-bg.png") center / 100% 100% no-repeat;
  opacity: 0.9;
  border: none;
  outline: none;
  box-shadow: none;
  pointer-events: none;
}

.nav-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 96px;
  padding: 0 8px;
}

.brand {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: block;
  width: 96px;
  height: 96px;
  margin-left: 27px;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

.nav-status {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  height: 60px; /* match pill — keeps online + icons vertically centered */
  padding: 0 20px 0 8px;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.online-status__dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.online-status__dot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.online-status__glow {
  mix-blend-mode: screen;
}

.online-status__text {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--c-online-header);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social-icons img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  max-width: calc(var(--content-max) + 48px);
  margin: 27px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero__header {
  position: relative;
  width: 100%;
  max-width: 572px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.hero__axe {
  position: absolute;
  top: -32px;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}

.hero__axe--left {
  left: -14px;
}

.hero__axe--right {
  right: -14px;
  transform: scaleX(-1);
}

.hero__tagline {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--c-tagline);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero__title {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 96px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* =========================================================
   Server cards
   ========================================================= */

.servers {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 1.5vw, 24px);
  flex-wrap: nowrap; /* keep 3 cards in one row on laptop */
}

.server-card {
  position: relative;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 390px;
  height: 534px; /* 14px badge overhang + 520px frame */
  transform: translateY(0) scale(1);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.server-card:hover {
  transform: translateY(-2px) scale(1.008);
  z-index: 4;
}

.server-card:hover .server-card__bg img {
  transform: scale(1.015);
}

/* Temporary SOON lock — no Lowrate details in HTML */
.server-card--soon {
  cursor: default;
  user-select: none;
}

.server-card--soon:hover {
  transform: none;
  z-index: 1;
}

.server-card--soon:hover .server-card__bg img {
  transform: none;
}

.server-card--soon .server-card__bg img {
  filter: blur(10px) brightness(0.35);
}

.server-card--soon .server-card__bg::before,
.server-card--soon .server-card__bg::after {
  opacity: 0;
}

.server-card__soon {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  cursor: default;
}

.server-card__soon-text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(72px, 7.5vw, 110px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.server-card__bg img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes card-gold-shimmer {
  0% { background-position: -80% 0, 0 0; }
  100% { background-position: 180% 0, 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .server-card,
  .server-card__bg img,
  .server-card__bg::before {
    transition: none;
    animation: none;
  }
  .server-card:hover {
    transform: none;
  }
  .server-card:hover .server-card__bg::before {
    opacity: 0.4;
  }
  .server-card:hover .server-card__bg img {
    transform: none;
  }
}

.server-card__frame {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 520px;
  border-radius: 4px;
}

.server-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0a08;
  /* Exact inner window from card-border-1.svg — inline clipPath in index.html */
  clip-path: url(#card-bg-clip);
  -webkit-clip-path: url(#card-bg-clip);
}

/* Gold grain + shimmer — clipped to bg; faded out before divider so the line stays unchanged */
.server-card__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      115deg,
      transparent 35%,
      rgba(255, 214, 120, 0.14) 48%,
      rgba(255, 196, 70, 0.22) 52%,
      transparent 65%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.65 0 0 0 0 0.2 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220% 100%, 140px 140px;
  background-position: -80% 0, 0 0;
  background-repeat: no-repeat, repeat;
  mix-blend-mode: soft-light;
  transition: opacity 0.35s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 70%);
}

.server-card:hover .server-card__bg::before {
  opacity: 1;
  animation: card-gold-shimmer 1.7s ease-in-out infinite;
}

.server-card__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Dark vignette so text stays readable (matches Figma card treatment) */
.server-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(90% 70% at 50% 18%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
}

/* Per-card color tint */
.server-card__bg--season img {
  object-position: center 35%;
}

.server-card__bg--offseason img {
  object-position: center 40%;
}

.server-card__bg--lowrate img {
  filter: saturate(1.2) brightness(0.88) hue-rotate(-8deg);
}
.server-card__bg--lowrate::after {
  background:
    radial-gradient(90% 70% at 50% 18%, rgba(30, 50, 10, 0.2) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(180deg, rgba(16, 28, 8, 0.3) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.92) 100%);
}

/* Soft outer glow under the sharp gold frame (not a second hard border) */
.server-card__border {
  position: absolute;
  pointer-events: none;
  display: block;
}

.server-card__border--1 {
  inset: -1.5px;
  width: calc(100% + 3px);
  height: calc(100% + 3px);
  z-index: 2;
}

/* Soft duplicate border disabled — looked like a second blurred frame */
.server-card__border--2 {
  display: none;
}

.server-card__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 3;
}

.server-card__corner--tl { top: -1px; left: -1px; }
.server-card__corner--tr { top: -1px; right: -1px; transform: scaleX(-1); }
.server-card__corner--br { bottom: -1px; right: -1px; transform: scale(-1); }
.server-card__corner--bl { bottom: -1px; left: -1px; transform: scaleY(-1); }

/* Content layer — absolute slots (percentages scale with frame height) */
.server-card__body {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 520px;
  z-index: 4;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none; /* let clicks pass except on interactive children */
  container-type: inline-size;
  container-name: server-card;
}

.server-card__body > * {
  pointer-events: auto;
}

.server-card__name {
  position: absolute;
  left: 0;
  right: 0;
  top: 38.2%; /* slightly below Figma 176px so caps clear the status pill */
  margin: 0;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  overflow: visible;
  z-index: 2;
}

.server-card__divider {
  position: absolute;
  left: 0;
  right: 0;
  top: 72%; /* 347/482 */
  width: 100%;
  height: 8px;
  margin: 0;
  display: block;
  z-index: 8;
  pointer-events: none;
}

.server-card__divider img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Tag badge (top of card) — lowered by half height (~13.5px) to sit on the gold rail */
.tag-badge {
  position: absolute;
  top: 14.5px; /* was 1px; + half of 27px height */
  left: 50%;
  transform: translateX(-50%);
  width: 149px;
  height: 27px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-badge__bg,
.tag-badge__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tag-badge__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  text-shadow: 0 0 6px currentColor;
}

.tag-badge--red .tag-badge__label { color: var(--c-tag-red-text); }
.tag-badge--green .tag-badge__label { color: var(--c-tag-green-text); text-shadow: 0 0 6px var(--c-tag-green-glow); }

/* Online / Opening soon — Figma component 285:1095
   Sit clearly ABOVE the server name (name top ≈ 36.5%).
   Previous Figma center (50% - 79.5px ≈ 33.5%) put the pill bottom
   on top of Dirty Crown glyphs — raise it so they no longer collide. */
.online-pill {
  position: absolute;
  left: 50%;
  top: 24.5%; /* ~118px on 482 — bottom ≈ 133, name at 176 → ~40px gap */
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 31px;
  padding: 0 14px;
  border-radius: 19px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  z-index: 5;
}

.online-pill__dot {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
}

.online-pill__dot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Glow SVG viewBox 21.4×21.4 — keep blur padding, don't squash into 10×10 */
.online-pill__dot-glow {
  inset: -5.7px;
  width: 21.4px;
  height: 21.4px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.online-pill--green {
  color: var(--c-online-green);
  background: rgba(115, 255, 72, 0.16);
  box-shadow: inset 2px 0 4.7px 0 rgba(135, 255, 161, 0.5);
}

.online-pill--yellow {
  color: var(--c-online-yellow);
  background: rgba(255, 226, 60, 0.16);
  box-shadow: inset 2px 0 4.7px 0 rgba(255, 226, 60, 0.5);
}

/* Countdown (Lowrate) — Figma top: 50px ≈ 10.37% */
.countdown {
  position: absolute;
  left: 50%;
  top: 10.37%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  white-space: nowrap;
  z-index: 3;
}

.countdown__star {
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  filter: drop-shadow(0 0 4px rgba(255, 221, 90, 0.9));
}

/* Retro PvP — Figma component 244:1239 (224×33 face) */
.pvp-badge {
  position: absolute;
  left: 50%;
  top: calc(50% + 16.6%);
  transform: translate(-50%, -50%);
  width: 224px;
  height: 33px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 3;
}

/* Solid diamond fill — viewBox 224×33 */
.pvp-badge__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/*
  Border + glow union — viewBox 273.861×82.5 includes filter blur padding.
  Visible diamond is 224×33 inset by ~24.93 / 24.75 — keep that ratio so
  the ring aligns with the fill (do NOT stretch union to inset:0).
*/
.pvp-badge__union {
  position: absolute;
  left: -11.129%;   /* -24.9303 / 224 */
  top: -75%;        /* -24.75 / 33 */
  width: 122.259%;  /* 273.861 / 224 */
  height: 250%;     /* 82.5 / 33 */
  z-index: 1;
  pointer-events: none;
}

.pvp-badge__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--c-pvp-text);
  text-shadow: 0 0 8px rgba(254, 214, 214, 0.55);
  white-space: nowrap;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* Cavebot note (Lowrate) — Figma 323:2395, top ≈ 440/482
   Icon = diamond frame asset + "!" text layer on top */
.cavebot-note {
  position: absolute;
  left: 50%;
  top: 91.3%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(3px, 1.6cqi, 6px);
  margin: 0;
  width: auto;
  max-width: calc(100% - 24px);
  z-index: 3;
  white-space: nowrap;
  box-sizing: border-box;
}

.cavebot-note__icon {
  position: relative;
  flex-shrink: 0;
  width: clamp(11px, 4.1cqi, 16px);
  height: clamp(12px, 4.4cqi, 17px);
  margin-top: 0;
}

.cavebot-note__icon-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.cavebot-note__bang {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(7px, 2.6cqi, 10px);
  line-height: 1;
  color: #ffe4b0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.cavebot-note__text {
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(6.5px, 2.35cqi, 9px);
  line-height: 1.3;
  color: var(--c-text-gold);
  text-align: left;
  white-space: nowrap;
}

.cavebot-note__text b {
  font-weight: 900;
  color: var(--c-text-gold);
}

/* =========================================================
   RPG buttons (Play Now / Visit Our Wiki)
   ========================================================= */

.rpg-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  isolation: isolate;
  transition: transform 0.15s ease;
}

.rpg-button:hover {
  transform: translateY(-1px);
}

.rpg-button:active {
  transform: translateY(0);
}

/* Play Now — full composite PNG (default + hover), ~308×92 incl. glow */
.rpg-button--play {
  width: 308px;
  height: 92px;
  min-width: 0;
  max-width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Inside server cards — Figma top: calc(50% + 157px) ≈ +32.57% */
.server-card__body .rpg-button--play {
  position: absolute;
  left: 50%;
  top: calc(50% + 32.57%);
  transform: translate(-50%, -50%);
  z-index: 4;
}

.server-card__body .rpg-button--play:hover,
.server-card__body .rpg-button--play:active {
  transform: translate(-50%, -50%);
}

.rpg-button--play .rpg-button__full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.rpg-button--play .rpg-button__full--default {
  opacity: 1;
}

.rpg-button--play .rpg-button__full--hover {
  opacity: 0;
}

.rpg-button--play:hover .rpg-button__full--default {
  opacity: 0;
}

.rpg-button--play:hover .rpg-button__full--hover {
  opacity: 1;
}

.rpg-button__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.rpg-button__fill {
  position: absolute;
  left: 1.07%;
  top: 5.88%;
  width: 97.86%;
  height: 88.24%;
  object-fit: fill;
  display: block;
  transition: opacity 0.2s ease;
}

.rpg-button__fill--default {
  opacity: 1;
}

.rpg-button__fill--hover {
  opacity: 0;
}

.rpg-button__glow {
  position: absolute;
  left: 1.07%;
  top: 5.88%;
  width: 97.86%;
  height: 88.24%;
  object-fit: fill;
  opacity: 0.6;
  display: block;
  pointer-events: none;
}

.rpg-button__border {
  position: absolute;
  left: -1.07%;
  top: 0;
  width: 102.5%;
  height: 100%;
  object-fit: fill;
  display: block;
  transform: scaleX(-1) rotate(180deg);
}

.rpg-button__graphic {
  position: absolute;
  top: 17.65%;
  width: 23.93%;
  height: 64.71%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.rpg-button__graphic--left {
  left: 5%;
}

.rpg-button__graphic--right {
  right: 5%;
  transform: scaleY(-1) rotate(180deg);
}

.rpg-button__corner {
  position: absolute;
  top: -2.94%;
  width: 45%;
  height: 105.88%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

.rpg-button__corner--left {
  left: -1.79%;
}

.rpg-button__corner--right {
  right: -1.43%;
  transform: scaleX(-1);
}

.rpg-button__label-glow {
  position: absolute;
  z-index: 3;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: var(--c-button-text);
  white-space: nowrap;
  filter: blur(2px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.85;
}

.rpg-button__label {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: var(--c-button-text);
  white-space: nowrap;
  text-shadow: none;
}

/* Visit Our Wiki — full composite PNG (default + hover), 1024×168 */
.rpg-button--wiki {
  width: 560px;
  max-width: 100%;
  height: 92px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.rpg-button--wiki .rpg-button__full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.rpg-button--wiki .rpg-button__full--default {
  opacity: 1;
}

.rpg-button--wiki .rpg-button__full--hover {
  opacity: 0;
}

.rpg-button--wiki:hover .rpg-button__full--default {
  opacity: 0;
}

.rpg-button--wiki:hover .rpg-button__full--hover {
  opacity: 1;
}

/* =========================================================
   CTA banner ("Want to know more about our server?")
   ========================================================= */

.cta-banner {
  position: relative;
  margin-top: 55px;
  padding: 36px 24px;
  /* Native Figma SVG size 1920×172 — keeps gold rails sharp */
  aspect-ratio: 1920 / 172;
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
  box-sizing: border-box;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: #080807;
  z-index: 0;
}

.cta-banner__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
  opacity: 1;
}

/* Image already has black left + art right — no extra veil */
.cta-banner__bg::after {
  content: none;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 795px;
  text-align: center;
}

.cta-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  max-width: calc(var(--footer-max) + 48px);
  margin: 45px auto 40px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.site-footer__divider {
  width: 100%;
  height: 8px;
  display: block;
}

.site-footer__copy {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-text-muted);
  text-align: center;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* 1600px */
@media (max-width: 1600px) {
  .hero__title { font-size: 84px; }
  .cta-banner__title { font-size: 42px; }
}

/* 1440px */
@media (max-width: 1440px) {
  .hero { max-width: 980px; gap: 32px; }
  .hero__title { font-size: 74px; }
  .servers { gap: 16px; }
  .server-card { max-width: 324px; height: 446px; }
  .server-card__frame { height: 432px; }
  .server-card__body { top: 14px; height: 432px; }
  .server-card__name { font-size: 84px; }
  .countdown { font-size: 30px; }
  .rpg-button--wiki { height: 79px; width: 480px; }
  .cta-banner__title { font-size: 38px; }
  .cavebot-note__text { font-size: 7.5px; }
  .cavebot-note__icon { width: 14px; height: 15px; }
  .cavebot-note__bang { font-size: 9px; }
  .cavebot-note { gap: 4px; max-width: calc(100% - 22px); }
}

/* 1280px */
@media (max-width: 1280px) {
  .nav-content { gap: 16px; }
  .nav-status { gap: 16px; }
  .hero { max-width: 900px; }
  .hero__axe { width: 130px; height: 130px; }
  .hero__title { font-size: 64px; }
  .servers { gap: 12px; }
  .server-card { max-width: 280px; height: 388px; }
  .server-card__frame { height: 374px; }
  .server-card__body { top: 14px; height: 374px; }
  .server-card__name { font-size: 72px; }
  .server-card--lowrate .rpg-button--play { width: 242px; height: 72px; }
  .online-pill { font-size: 14px; height: 28px; padding: 0 12px; gap: 8px; }
  .pvp-badge { width: 180px; height: 27px; }
  .pvp-badge__label { font-size: 19px; }
  .rpg-button--play { width: 264px; height: 79px; }
  .rpg-button--wiki { height: 69px; width: 420px; }
  .countdown { font-size: 24px; }
  .cta-banner__title { font-size: 32px; }
  .cavebot-note__text { font-size: 6.5px; }
  .cavebot-note__icon { width: 12px; height: 13px; }
  .cavebot-note__bang { font-size: 8px; }
  .cavebot-note { gap: 3px; max-width: calc(100% - 18px); }
}

/* 1024px — stack cards on tablet/small screens */
@media (max-width: 1024px) {
  .site-header { padding: 12px 16px 0; }
  .brand { margin-left: 16px; width: 76px; height: 76px; }
  .nav-content { min-height: 76px; }
  .nav-pill { top: 8px; height: 60px; }
  .nav-status { height: 60px; }
  .online-status__text { font-size: 16px; }
  .social-icons { gap: 8px; }
  .hero { max-width: 700px; padding: 0 16px; gap: 24px; margin-top: 20px; }
  .hero__axe { display: none; }
  .hero__title { font-size: 56px; }
  .hero__tagline { font-size: 17px; }
  .servers { gap: 24px; flex-wrap: wrap; }
  .server-card { width: 100%; max-width: 390px; flex: 0 1 390px; height: 534px; }
  .server-card__frame { height: 520px; }
  .server-card__body { top: 14px; height: 520px; }
  .server-card__name { font-size: 96px; }
  .cta-banner { margin-top: 36px; padding: 28px 16px; }
  .cta-banner__title { font-size: 30px; }
  .site-footer { margin: 32px auto 28px; }
}

/* 768px */
@media (max-width: 768px) {
  .nav-content { flex-wrap: wrap; justify-content: center; row-gap: 10px; padding: 10px 8px; min-height: 0; }
  .nav-pill { top: 0; height: auto; bottom: 0; }
  .nav-status { height: auto; flex-basis: 100%; flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .brand { margin-left: 0; }
  .hero { max-width: 500px; }
  .hero__title { font-size: 46px; }
  .hero__tagline { font-size: 16px; }
  .server-card { max-width: 346px; height: 475px; }
  .server-card__frame { height: 461px; }
  .server-card__body { height: 461px; }
  .server-card__name { font-size: 84px; }
  .countdown { font-size: 28px; }
  .cta-banner__title { font-size: 24px; }
  .rpg-button--wiki { max-width: min(360px, 100%); width: 100%; height: 59px; }
}

/* 480px */
@media (max-width: 480px) {
  .nav-status { row-gap: 6px; }
  .social-icons { flex-basis: 100%; justify-content: center; }
  .online-status__text { font-size: 13px; }
  .social-icons img { transform: scale(0.85); }
  .hero { max-width: 100%; gap: 20px; }
  .hero__title { font-size: 36px; letter-spacing: 0; }
  .hero__tagline { font-size: 14px; padding: 0 8px; }
  .server-card { max-width: 302px; height: 418px; }
  .server-card__frame { height: 404px; }
  .server-card__body { height: 404px; }
  .server-card__name { font-size: 72px; }
  .server-card--lowrate .rpg-button--play { width: 220px; height: 66px; }
  .rpg-button--play { width: 242px; height: 72px; }
  .rpg-button--wiki { height: 52px; }
  .countdown { font-size: 19px; }
  .cavebot-note { max-width: calc(100% - 28px); }
  .cavebot-note__text { font-size: 8px; }
  .cavebot-note__icon { width: 14px; height: 15px; }
  .cavebot-note__bang { font-size: 9px; }
  .cta-banner__title { font-size: 19px; }
  .site-footer__copy { font-size: 11px; }
}

/* 390px */
@media (max-width: 390px) {
  .brand { width: 64px; height: 64px; }
  .nav-content { min-height: 64px; }
  .nav-pill { top: 2px; height: 60px; }
  .online-status__text { font-size: 12px; }
  .social-icons { gap: 6px; }
  .hero__title { font-size: 30px; }
  .server-card { max-width: 270px; height: 375px; }
  .server-card__frame { height: 361px; }
  .server-card__body { height: 361px; }
  .server-card__name { font-size: 60px; }
  .countdown { font-size: 22px; }
  .tag-badge { width: 130px; height: 24px; }
  .tag-badge__label { font-size: 14px; }
  .cta-banner__title { font-size: 17px; }
}
