:root {
  --bg-obsidian: #04060c;
  --bg-panel: rgba(10, 14, 24, 0.78);
  --gold-bright: #f8dfa2;
  --gold-mid: #d4a656;
  --gold-dark: #7a5824;
  --text-main: #f4f6fb;
  --text-muted: #98a4bc;
  --aura-rgb: 56, 189, 248;
  --warp-accent: #38bdf8;
  --warp-rgb: 56, 189, 248;
}

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

html,
body {
  width: 100%;
  height: 100%;
  background: var(--bg-obsidian);
  color: var(--text-main);
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lock to single viewport on desktop */
@media (min-width: 1024px) and (min-height: 680px) {
  html,
  body {
    height: 100dvh;
    overflow: hidden;
  }
}

/* =========================================================
   Background Atmosphere & Canvas
   ========================================================= */
.gw-bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gw-bg-image {
  position: absolute;
  inset: -4%;
  background-image: url('/images/gateway_bg.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0.42;
  filter: saturate(1.1) contrast(1.06);
  animation: gwBgDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes gwBgDrift {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.09) translate3d(-1.5%, -1%, 0);
  }
}

.gw-bg-aura {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(var(--aura-rgb), 0.22) 0%, rgba(var(--aura-rgb), 0.06) 36%, transparent 68%),
    radial-gradient(circle at 50% 10%, rgba(212, 166, 86, 0.14) 0%, transparent 50%);
  transition: background 0.65s ease, opacity 0.5s ease;
}

.gw-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.88) 0%, rgba(4, 6, 12, 0.32) 32%, rgba(4, 6, 12, 0.45) 72%, rgba(4, 6, 12, 0.94) 100%),
    radial-gradient(ellipse at center, transparent 48%, rgba(2, 4, 9, 0.88) 100%);
}

.gw-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 166, 86, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 166, 86, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.7) 25%, transparent 80%);
}

#cosmosCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.gw-arcane-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.52;
}

.gw-arcane-svg {
  width: min(82vh, 760px);
  height: min(82vh, 760px);
  animation: gwSlowSpin 90s linear infinite;
}

@keyframes gwSlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================
   Main Single-Screen Shell
   ========================================================= */
.gw-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1520px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 28px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

@media (min-width: 1024px) and (min-height: 680px) {
  .gw-shell {
    height: 100dvh;
    min-height: 0;
  }
}

/* 화면 높이가 충분한 환경에서 타이틀 영역을 헤더와 서버 리스트 박스의 수직 정중앙에 균등 배치 */
@media (min-width: 1024px) and (min-height: 760px) {
  .gw-shell {
    gap: 8px;
  }
  .gw-hero-header {
    margin-top: auto;
    margin-bottom: auto;
    padding: 10px 12px;
  }
  .gw-stage {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 6px;
  }
  .gw-grid {
    height: clamp(395px, 49vh, 524px);
    max-height: 524px;
  }
}

/* =========================================================
   Top Bar
   ========================================================= */
.gw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.gw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.68);
  border: 1px solid rgba(212, 166, 86, 0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.gw-brand-crest {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 223, 162, 0.16), transparent 70%);
}

.gw-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.gw-brand-eng {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.gw-brand-sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.gw-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gw-port-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #cbd5e1;
}

.gw-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: gwPulseDot 2s ease-in-out infinite;
}

@keyframes gwPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

.gw-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 17, 30, 0.78);
  border: 1px solid rgba(212, 166, 86, 0.34);
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.gw-sound-btn:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(212, 166, 86, 0.28);
  transform: translateY(-1px);
}

.gw-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.gw-eq i {
  display: block;
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  transition: height 0.2s ease;
}

.gw-sound-btn.is-active .gw-eq i:nth-child(1) {
  animation: gwEq 0.75s ease-in-out infinite alternate;
}
.gw-sound-btn.is-active .gw-eq i:nth-child(2) {
  animation: gwEq 0.55s ease-in-out 0.15s infinite alternate;
}
.gw-sound-btn.is-active .gw-eq i:nth-child(3) {
  animation: gwEq 0.68s ease-in-out 0.3s infinite alternate;
}

@keyframes gwEq {
  from { height: 3px; }
  to { height: 11px; }
}

/* =========================================================
   Hero Header
   ========================================================= */
.gw-hero-header {
  text-align: center;
  flex-shrink: 0;
  padding: 2px 12px 0;
}

.gw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gw-kicker::before,
.gw-kicker::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid));
}

.gw-kicker::after {
  background: linear-gradient(90deg, var(--gold-mid), transparent);
}

.gw-title {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  background: linear-gradient(180deg, #ffffff 0%, #f8dfa2 55%, #c58b35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.85));
}

.gw-notice {
  margin-top: 5px;
  font-size: clamp(13px, 1.1vw, 15px);
  color: #b4c0d8;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.gw-open-strip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.78);
  border: 1px solid rgba(248, 223, 162, 0.3);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.gw-open-date {
  color: var(--gold-bright);
}

.gw-open-sep {
  color: rgba(248, 223, 162, 0.4);
}

.gw-open-times {
  color: #dbeafe;
}

.gw-open-countdown {
  font-family: 'Cinzel', 'Pretendard Variable', monospace;
  color: #38bdf8;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Unified Launcher Download Bar (Ornate Dark-Fantasy Plaque)
   ========================================================= */
@property --dl-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes gwDlRimSpin {
  to { --dl-angle: 360deg; }
}

@keyframes gwDlPulse {
  0%, 100% {
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.82),
      0 0 28px rgba(var(--dl-rgb), 0.36),
      0 0 58px rgba(var(--dl-rgb), 0.14);
  }
  50% {
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.88),
      0 0 42px rgba(var(--dl-rgb), 0.58),
      0 0 84px rgba(var(--dl-rgb), 0.24);
  }
}

@keyframes gwDlSheen {
  0%, 54% { left: -135%; opacity: 0; }
  62% { opacity: 1; }
  100% { left: 165%; opacity: 0; }
}

@keyframes gwDlSpark {
  0% {
    transform: translateY(10px) scale(0.4);
    opacity: 0;
  }
  25% {
    opacity: 0.95;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-48px) scale(1.1);
    opacity: 0;
  }
}

@keyframes gwDlBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.gw-download-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

@media (min-width: 900px) {
  .gw-download-bar::before,
  .gw-download-bar::after {
    content: '';
    width: clamp(46px, 6vw, 110px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(248, 223, 162, 0.65));
    box-shadow: 0 0 10px rgba(245, 208, 122, 0.3);
  }
  .gw-download-bar::after {
    background: linear-gradient(90deg, rgba(248, 223, 162, 0.65), transparent);
  }
}

.gw-download-bar[hidden] {
  display: none !important;
}

.gw-download-btn {
  --dl-accent: #f8dfa2;
  --dl-rgb: 245, 208, 122;
  --dl-text-mid: #f8dfa2;
  --dl-text-bot: #d4a048;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: clamp(320px, 34vw, 490px);
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  gap: 15px;
  isolation: isolate;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  background: #060913;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.82),
    0 0 34px rgba(var(--dl-rgb), 0.45),
    0 0 70px rgba(var(--dl-rgb), 0.18);
  cursor: pointer;
  animation: gwDlPulse 2.8s ease-in-out infinite;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

.gw-download-btn:hover,
.gw-download-btn:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.88),
    0 0 48px rgba(var(--dl-rgb), 0.72),
    0 0 92px rgba(var(--dl-rgb), 0.32);
  outline: none;
}

.gw-download-btn:active {
  transform: translateY(0) scale(0.99);
}

/* 1. Rotating Conic-Gradient Rim */
.gw-dl-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--dl-angle),
    rgba(var(--dl-rgb), 0.25) 0deg,
    var(--dl-accent) 45deg,
    #ffffff 65deg,
    var(--dl-accent) 85deg,
    rgba(var(--dl-rgb), 0.22) 140deg,
    rgba(var(--dl-rgb), 0.22) 220deg,
    var(--dl-accent) 265deg,
    #ffffff 285deg,
    var(--dl-accent) 305deg,
    rgba(var(--dl-rgb), 0.25) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  animation: gwDlRimSpin 4s linear infinite;
}

/* 2. Brushed Obsidian Plate & Volumetric Core */
.gw-dl-plate {
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 75% 110% at 50% 50%, rgba(var(--dl-rgb), 0.28) 0%, rgba(var(--dl-rgb), 0.08) 52%, transparent 80%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 6px
    ),
    radial-gradient(rgba(var(--dl-rgb), 0.16) 1px, transparent 1px),
    linear-gradient(180deg, #141c30 0%, #090d18 52%, #05070e 100%);
  background-size: auto, auto, 14px 14px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -14px 28px rgba(0, 0, 0, 0.78),
    inset 0 0 32px rgba(var(--dl-rgb), 0.24);
  pointer-events: none;
  z-index: 0;
  transition: box-shadow 0.3s ease;
}

.gw-download-btn:hover .gw-dl-plate {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -12px 26px rgba(0, 0, 0, 0.72),
    inset 0 0 42px rgba(var(--dl-rgb), 0.38);
}

/* 3. Etched Symmetrical Vector Filigree */
.gw-dl-filigree {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  color: var(--dl-accent);
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
  transition: opacity 0.3s ease;
}

.gw-download-btn:hover .gw-dl-filigree {
  opacity: 1;
}

/* 4. Rising Energy Sparks */
.gw-dl-sparks {
  position: absolute;
  inset: 2px;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
  z-index: 2;
}

.gw-dl-sparks i {
  position: absolute;
  bottom: 0;
  left: var(--sx, 50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px var(--dl-accent), 0 0 14px rgba(var(--dl-rgb), 0.9);
  animation: gwDlSpark var(--st, 2.8s) ease-out var(--sd, 0s) infinite;
}

/* 5. Specular Diagonal Sheen */
.gw-dl-sheen {
  position: absolute;
  top: 0;
  left: -135%;
  width: 52%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-24deg);
  animation: gwDlSheen 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* 6. Corner Filigree Brackets */
.gw-dl-corners {
  position: absolute;
  inset: 6px;
  pointer-events: none;
  z-index: 3;
}

.gw-dl-corners i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(var(--dl-rgb), 0.72);
  border-style: solid;
  transition: border-color 0.28s ease, transform 0.28s ease;
}

.gw-dl-corners .c-tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.gw-dl-corners .c-tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.gw-dl-corners .c-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.gw-dl-corners .c-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

.gw-download-btn:hover .gw-dl-corners i {
  border-color: #ffffff;
}

/* 7. Armored Reactor Emblem */
.gw-dl-emblem {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(var(--dl-rgb), 0.34) 0%, rgba(var(--dl-rgb), 0.08) 65%, rgba(4, 6, 12, 0.85) 100%);
  border: 1px solid rgba(var(--dl-rgb), 0.65);
  box-shadow: 0 0 18px rgba(var(--dl-rgb), 0.4), inset 0 0 12px rgba(var(--dl-rgb), 0.25);
  color: var(--dl-accent);
  z-index: 4;
}

.gw-dl-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gw-dl-ring--outer {
  animation: gwSlowSpin 14s linear infinite;
}

.gw-dl-ring--inner {
  animation: gwSlowSpin 9s linear reverse infinite;
}

.gw-download-btn:hover .gw-dl-ring--outer {
  animation-duration: 5s;
}

.gw-download-btn:hover .gw-dl-ring--inner {
  animation-duration: 3.5s;
}

.gw-dl-icon {
  position: relative;
  width: 20px;
  height: 20px;
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(var(--dl-rgb), 0.85));
}

.gw-download-btn:hover .gw-dl-icon {
  animation: gwDlBob 0.85s ease-in-out infinite;
}

/* 8. Stacked Lustrous Metallic Typography */
.gw-dl-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.gw-dl-label {
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.15;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, var(--dl-text-mid) 58%, var(--dl-text-bot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95));
}

.gw-dl-sub {
  font-family: 'Cinzel', 'Pretendard Variable', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--dl-accent);
  margin-top: 3px;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(var(--dl-rgb), 0.7);
}

.gw-dl-sub::before {
  content: '✦ ';
  opacity: 0.85;
}

.gw-dl-sub::after {
  content: ' ✦';
  opacity: 0.85;
}

/* 9. Right Action Chevron Badge */
.gw-dl-arrow {
  position: relative;
  z-index: 4;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(var(--dl-rgb), 0.16);
  border: 1px solid rgba(var(--dl-rgb), 0.55);
  color: var(--dl-accent);
  box-shadow: inset 0 0 10px rgba(var(--dl-rgb), 0.18);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.gw-dl-arrow svg {
  width: 17px;
  height: 17px;
}

.gw-download-btn:hover .gw-dl-arrow {
  transform: translateX(3px);
  background: var(--dl-accent);
  border-color: #ffffff;
  color: #060913;
  box-shadow: 0 0 18px rgba(var(--dl-rgb), 0.75);
}

/* 5 Theme Presets */
.gw-dl--gold {
  --dl-accent: #f8dfa2;
  --dl-rgb: 245, 208, 122;
  --dl-text-mid: #f8dfa2;
  --dl-text-bot: #d4a048;
}

.gw-dl--cyan {
  --dl-accent: #38bdf8;
  --dl-rgb: 56, 189, 248;
  --dl-text-mid: #bae6fd;
  --dl-text-bot: #38bdf8;
}

.gw-dl--emerald {
  --dl-accent: #4ade80;
  --dl-rgb: 34, 197, 94;
  --dl-text-mid: #bbf7d0;
  --dl-text-bot: #4ade80;
}

.gw-dl--purple {
  --dl-accent: #c084fc;
  --dl-rgb: 168, 85, 247;
  --dl-text-mid: #e9d5ff;
  --dl-text-bot: #c084fc;
}

.gw-dl--crimson {
  --dl-accent: #fb7185;
  --dl-rgb: 244, 63, 94;
  --dl-text-mid: #fecdd3;
  --dl-text-bot: #fb7185;
}

/* =========================================================
   4-Server Monolith Stage
   ========================================================= */
.gw-stage {
  position: relative;
  overflow: visible;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.gw-merge-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%) scale(0.4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 223, 162, 0.42) 0%, rgba(56, 189, 248, 0.22) 34%, transparent 70%);
  filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.gw-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 590px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  perspective: 1600px;
}

.realm-slot {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}

.gw-topbar {
  animation: gwFadeDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.gw-hero-header {
  animation: gwFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.06s backwards;
}

.gw-footer {
  animation: gwFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.32s backwards;
}

@keyframes gwFadeDown {
  0% { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes gwFadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Spotlight Focus Dimming */
.gw-grid.has-focus .realm-card:not(.is-hovered) {
  opacity: 0.52;
  filter: saturate(0.72) brightness(0.8);
  transform: scale(0.976);
}

/* =========================================================
   Realm Monolith Card
   ========================================================= */
.realm-card {
  --card-accent: #38bdf8;
  --card-secondary: #ef4444;
  --card-rgb: 56, 189, 248;
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;

  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  outline: none;
  transform-style: preserve-3d;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease,
    filter 0.38s ease;
}

.realm-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #080b14;
  border: 1px solid rgba(var(--card-rgb), 0.42);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.78),
    0 0 24px rgba(var(--card-rgb), 0.14),
    inset 0 0 0 1px rgba(248, 223, 162, 0.14);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition:
    transform 0.18s ease-out,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.realm-card:hover .realm-card-inner,
.realm-card:focus-visible .realm-card-inner {
  border-color: rgba(var(--card-rgb), 0.92);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.85),
    0 0 42px rgba(var(--card-rgb), 0.36),
    inset 0 0 24px rgba(var(--card-rgb), 0.16);
}

.realm-card:hover,
.realm-card:focus-visible {
  transform: translateY(-10px) scale(1.028);
  z-index: 4;
}

.realm-card:active {
  transform: translateY(-4px) scale(0.995);
}

/* Full-Bleed Artwork Layer */
.realm-art-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.realm-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.03);
  filter: brightness(0.95) contrast(1.06);
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.realm-card:hover .realm-art,
.realm-card:focus-visible .realm-art {
  transform: scale(1.1);
  filter: brightness(1.02) contrast(1.1);
}

.realm-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(5, 8, 16, 0.78) 0%,
      rgba(5, 8, 16, 0.12) 32%,
      rgba(5, 8, 16, 0.25) 54%,
      rgba(5, 8, 16, 0.94) 84%,
      rgba(4, 6, 12, 0.99) 100%);
}

/* Dynamic Specular / Holographic Sheen */
.realm-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(var(--card-rgb), 0.28),
    rgba(255, 255, 255, 0.08) 28%,
    transparent 65%
  );
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

.realm-card:hover .realm-sheen {
  opacity: 1;
}

/* Top & Bottom Animated Rim Beam */
.realm-rim-beam {
  position: absolute;
  top: 0;
  left: -100%;
  width: 75%;
  height: 2px;
  z-index: 4;
  background: linear-gradient(90deg, transparent, var(--card-accent), #ffffff, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.realm-card:hover .realm-rim-beam {
  opacity: 1;
  animation: gwRimSweep 1.35s ease-in-out infinite;
}

@keyframes gwRimSweep {
  0% { left: -80%; }
  100% { left: 120%; }
}

/* Ornate Lineage Corner Filigree */
.realm-corners {
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
}

.realm-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(248, 223, 162, 0.48);
  border-style: solid;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.realm-corner--tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.realm-corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.realm-corner--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.realm-corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

.realm-card:hover .realm-corner {
  border-color: var(--card-accent);
}

/* Floating Hero Signature Crest SVG (Hidden by default, reveals on hover) */
.realm-emblem-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 186px;
  height: 186px;
  transform: translate(-50%, -58%) scale(0.85);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease;
}

.realm-card:hover .realm-emblem-orbit,
.realm-card:focus-visible .realm-emblem-orbit,
.realm-card.is-hovered .realm-emblem-orbit {
  opacity: 0.75;
  visibility: visible;
  transform: translate(-50%, -58%) scale(1.08);
}

.realm-emblem-svg {
  width: 100%;
  height: 100%;
  animation: gwSlowSpin 24s linear infinite;
}

.realm-card:hover .realm-emblem-svg {
  animation-duration: 9s;
}

/* Card Header Row */
.realm-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0;
}

.realm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(6, 10, 18, 0.78);
  border: 1px solid rgba(248, 223, 162, 0.32);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  backdrop-filter: blur(6px);
}

.realm-key-hint {
  opacity: 0.65;
  font-family: 'Pretendard Variable', sans-serif;
}

.realm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.78);
  border: 1px solid rgba(var(--card-rgb), 0.38);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #e2e8f0;
  backdrop-filter: blur(6px);
}

.realm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 10px var(--card-accent);
  animation: gwPulseDot 1.8s ease-in-out infinite;
}

/* Card Bottom Content */
.realm-bottom {
  position: relative;
  z-index: 4;
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.realm-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Cinzel', 'Pretendard Variable', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--card-accent);
  text-shadow: 0 2px 12px rgba(var(--card-rgb), 0.55);
}

.realm-version-pill {
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(var(--card-rgb), 0.16);
  border: 1px solid rgba(var(--card-rgb), 0.42);
  color: #f8fafc;
  white-space: nowrap;
}

.realm-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.realm-name {
  font-size: clamp(28px, 2.35vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

.realm-eng-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(248, 223, 162, 0.78);
}

.realm-tagline {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
  font-weight: 500;
}

.realm-updates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.realm-update-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(var(--card-rgb), 0.14);
  border: 1px solid rgba(var(--card-rgb), 0.34);
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.2;
}

.realm-update-chip::before {
  content: '✦';
  font-size: 9px;
  color: var(--card-accent);
}

.realm-schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(6, 9, 17, 0.82);
  border: 1px solid rgba(248, 223, 162, 0.2);
}

.realm-sched-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.realm-sched-item span {
  font-size: 9.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.realm-sched-item strong {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* Kinetic CTA Button */
.realm-cta {
  position: relative;
  margin-top: 6px;
  padding: 13px 16px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(16, 22, 36, 0.92), rgba(10, 14, 24, 0.95));
  border: 1px solid rgba(var(--card-rgb), 0.42);
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

.realm-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-22deg);
  transition: left 0.65s ease;
}

.realm-card:hover .realm-cta {
  background: linear-gradient(135deg, rgba(var(--card-rgb), 0.34), rgba(15, 23, 42, 0.92));
  border-color: var(--card-accent);
  box-shadow: 0 0 24px rgba(var(--card-rgb), 0.38);
  color: #ffffff;
}

.realm-card:hover .realm-cta::before {
  left: 150%;
}

.realm-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.realm-cta-domain {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--card-accent);
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.realm-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(var(--card-rgb), 0.2);
  color: var(--card-accent);
  font-size: 14px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.realm-card:hover .realm-cta-arrow {
  transform: translateX(4px);
  background: var(--card-accent);
  color: #04060c;
}

/* =========================================================
   Pre-Open Coming Soon Overlay & Lock States
   ========================================================= */
.realm-card.is-locked {
  cursor: default;
}

.realm-card.is-locked .realm-card-inner {
  border-color: rgba(var(--card-rgb), 0.32);
}

.realm-card.is-locked:hover {
  transform: translateY(-4px) scale(1.01);
}

.realm-card.is-locked .realm-cta {
  background: rgba(14, 18, 28, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  color: #94a3b8;
}

.realm-card.is-locked .realm-cta-arrow {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.realm-card.is-locked:hover .realm-cta {
  background: rgba(20, 26, 42, 0.95);
  border-color: rgba(var(--card-rgb), 0.5);
  box-shadow: none;
  color: #cbd5e1;
}

.realm-card.is-locked:hover .realm-cta-arrow {
  transform: none;
  background: rgba(var(--card-rgb), 0.2);
  color: var(--card-accent);
}

.realm-card.is-shaking {
  animation: gwCardShake 0.45s ease;
}

@keyframes gwCardShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

/* =========================================================
   Artwork Contrast: Pre-Open (Darker Background) vs Opened (Bright & Clean)
   ========================================================= */
/* 공개/오픈 전 서버: 카드 박스는 유지하되 배경 일러스트를 어둡게 처리 */
.realm-card.is-locked .realm-art {
  filter: brightness(0.38) contrast(1.12) saturate(0.55);
}

.realm-card.is-locked:hover .realm-art,
.realm-card.is-locked:focus-visible .realm-art {
  filter: brightness(0.48) contrast(1.14) saturate(0.7);
}

.realm-card.is-locked .realm-vignette {
  background:
    linear-gradient(180deg,
      rgba(3, 5, 12, 0.85) 0%,
      rgba(3, 5, 12, 0.45) 35%,
      rgba(3, 5, 12, 0.65) 65%,
      rgba(2, 4, 10, 0.98) 100%);
}

/* 정식 오픈된 서버: 어두운 효과 전혀 없이 본래의 화려하고 선명한 풀컬러 배경 노출 */
.realm-card:not(.is-locked) .realm-art {
  filter: brightness(1.05) contrast(1.08) saturate(1.15);
}

.realm-card:not(.is-locked):hover .realm-art,
.realm-card:not(.is-locked):focus-visible .realm-art {
  filter: brightness(1.14) contrast(1.12) saturate(1.2);
}

.realm-card:not(.is-locked) .realm-vignette {
  background:
    linear-gradient(180deg,
      rgba(5, 8, 16, 0.48) 0%,
      rgba(5, 8, 16, 0.0) 30%,
      rgba(5, 8, 16, 0.15) 55%,
      rgba(5, 8, 16, 0.88) 85%,
      rgba(4, 6, 12, 0.98) 100%);
}

.realm-card:not(.is-locked) .realm-card-inner {
  border-color: rgba(var(--card-rgb), 0.7);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.82),
    0 0 32px rgba(var(--card-rgb), 0.28),
    inset 0 0 20px rgba(var(--card-rgb), 0.12);
}

/* =========================================================
   Sub Box Attached Under Realm Card (Coming Soon & Timer)
   ========================================================= */
.realm-sub-dock {
  flex-shrink: 0;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.92);
  border: 1px solid rgba(var(--card-rgb), 0.45);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.65),
    0 0 16px rgba(var(--card-rgb), 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease,
    background 0.3s ease;
}

.realm-slot:hover .realm-sub-dock,
.realm-sub-dock:hover,
.realm-sub-dock:focus-visible {
  border-color: var(--card-accent);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.8),
    0 0 24px rgba(var(--card-rgb), 0.38);
  transform: translateY(-2px);
  background: rgba(14, 20, 36, 0.96);
}

.dock-kicker {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #94a3b8;
  white-space: nowrap;
}

.dock-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  margin: 0 1px;
}

.dock-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* D- Day Badge Chip - High Visual Separation from Time */
.dock-dday {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Cinzel', 'Pretendard Variable', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  background: rgba(var(--card-rgb), 0.22);
  border: 1px solid var(--card-accent);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(var(--card-rgb), 0.42), inset 0 0 5px rgba(var(--card-rgb), 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* D-DAY (Today's Opening Server) Glowing Electric Pulse Chip */
.dock-dday.dock-dday--today {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.32), rgba(14, 165, 233, 0.48));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6), inset 0 0 8px rgba(56, 189, 248, 0.3);
  animation: dockDdayPulse 1.8s infinite ease-in-out;
}

@keyframes dockDdayPulse {
  0%, 100% {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
  }
  50% {
    border-color: #bae6fd;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.9);
  }
}

/* Digital Clock Numbers with Clean Monospace Separation */
.dock-time {
  font-family: 'Cinzel', 'Pretendard Variable', monospace;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.dock-time.dock-time--live {
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #86efac;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.realm-sub-dock.is-live {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(34, 197, 94, 0.28);
}

.realm-sub-dock.is-live .dock-kicker {
  color: #22c55e;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.realm-sub-dock.is-live .dock-timer {
  color: #86efac;
}

/* Elegant Notification Toast */
.gw-toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.94);
  border: 1px solid rgba(248, 223, 162, 0.55);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(245, 158, 11, 0.28);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.gw-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.gw-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

/* =========================================================
   Footer Strip
   ========================================================= */
.gw-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 2px;
}

.gw-footer-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 166, 86, 0.35), transparent);
}

.gw-footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', 'Pretendard Variable', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(203, 213, 225, 0.65);
  white-space: nowrap;
}

.gw-footer-sep {
  color: var(--gold-mid);
  font-size: 9px;
}

.gw-footer-admin {
  color: rgba(203, 213, 225, 0.7);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 166, 86, 0.25);
  background: rgba(10, 14, 24, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gw-footer-admin:hover,
.gw-footer-admin:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(245, 208, 122, 0.24);
  outline: none;
}

/* =========================================================
   Portal Warp Redirect Overlay
   ========================================================= */
.gw-warp-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 11, 0.92);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gw-warp-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.gw-warp-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(var(--warp-rgb), 0.45) 0%, rgba(var(--warp-rgb), 0.1) 40%, transparent 72%);
  transform: scale(0.35);
  opacity: 0;
}

.gw-warp-overlay.is-active .gw-warp-flash {
  animation: gwWarpFlash 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gwWarpFlash {
  0% { transform: scale(0.25); opacity: 0; }
  45% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1.45); opacity: 0.72; }
}

.gw-warp-rings {
  position: absolute;
  width: 340px;
  height: 340px;
  display: grid;
  place-items: center;
}

.gw-warp-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--warp-accent);
  box-shadow: 0 0 28px rgba(var(--warp-rgb), 0.45);
}

.gw-warp-ring--1 {
  width: 100%;
  height: 100%;
  border-style: dashed;
  animation: gwSlowSpin 6s linear infinite;
}

.gw-warp-ring--2 {
  width: 78%;
  height: 78%;
  border-color: rgba(248, 223, 162, 0.7);
  animation: gwSlowSpin 4s linear reverse infinite;
}

.gw-warp-ring--3 {
  width: 56%;
  height: 56%;
  border-width: 2px;
  opacity: 0.75;
}

.gw-warp-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px;
  max-width: 420px;
}

.gw-warp-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--warp-rgb), 0.55);
  background: rgba(var(--warp-rgb), 0.14);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--warp-accent);
  margin-bottom: 12px;
}

.gw-warp-title {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(var(--warp-rgb), 0.65);
}

.gw-warp-status {
  margin-top: 8px;
  font-size: 14px;
  color: #cbd5e1;
}

.gw-warp-bar {
  width: 220px;
  height: 3px;
  margin: 18px auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.gw-warp-bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--warp-accent), #ffffff);
  box-shadow: 0 0 12px var(--warp-accent);
}

.gw-warp-overlay.is-active .gw-warp-bar-fill {
  animation: gwBarFill 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes gwBarFill {
  from { width: 0%; }
  to { width: 100%; }
}

.gw-warp-url {
  font-size: 11px;
  color: rgba(203, 213, 225, 0.55);
  letter-spacing: 0.04em;
  word-break: break-all;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1180px) {
  .gw-shell {
    padding: 16px 20px;
  }
  .gw-grid {
    gap: 14px;
  }
  .realm-name {
    font-size: 28px;
  }
}

@media (max-width: 1023px) {
  .gw-shell {
    height: auto;
    padding: 16px 18px 28px;
    gap: 18px;
  }
  .gw-grid {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .realm-card {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .gw-port-pill {
    display: none;
  }
  .gw-download-btn {
    min-width: min(100%, 340px);
    padding: 10px 14px;
    gap: 11px;
  }
  .gw-dl-emblem {
    width: 36px;
    height: 36px;
  }
  .gw-dl-icon {
    width: 17px;
    height: 17px;
  }
  .gw-dl-label {
    font-size: 15.5px;
  }
  .gw-dl-sub {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }
  .gw-dl-arrow {
    width: 30px;
    height: 30px;
  }
  .gw-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .realm-card {
    min-height: 300px;
  }
  .gw-footer-meta {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gw-bg-image,
  .gw-arcane-svg,
  .realm-emblem-svg,
  .gw-live-dot,
  .realm-status-dot,
  .gw-download-btn,
  .gw-dl-rim,
  .gw-dl-sheen,
  .gw-dl-ring,
  .gw-dl-sparks i,
  .gw-dl-icon {
    animation: none !important;
  }
}
