/* =========================
   RESET + TOKENS
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #07111b;
  --bg-2: #0b1624;
  --panel: rgba(13, 19, 31, 0.84);
  --panel-strong: rgba(8, 12, 22, 0.94);
  --panel-soft: rgba(18, 26, 40, 0.74);

  --text: #f4f0e6;
  --text-soft: rgba(244, 240, 230, 0.72);
  --text-dim: rgba(244, 240, 230, 0.48);

  --gold: #ddb558;
  --gold-2: #f5df9c;
  --gold-3: #fff0c2;

  --blue: #77b7ff;
  --blue-2: #3d82d6;
  --blue-3: #a7cbff;

  --green: #23db72;
  --green-2: #88ffb3;
  --red: #ff6464;
  --red-2: #ff9f9f;
  --amber: #ffd36a;

  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(221, 181, 88, 0.22);
  --line-blue: rgba(119, 183, 255, 0.18);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.20);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.42);

  --glass:
    linear-gradient(180deg, rgba(19, 27, 42, 0.86), rgba(8, 12, 22, 0.96));
  --glass-soft:
    linear-gradient(180deg, rgba(18, 24, 38, 0.76), rgba(8, 12, 22, 0.90));

  --paper: #ead8ae;
  --paper-2: #d8bc86;
  --paper-text: #3c2915;

  --wrap: 1120px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(36, 66, 112, 0.18), transparent 35%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 68%, rgba(0, 0, 0, 0.48), transparent 22%),
    radial-gradient(circle at 92% 64%, rgba(0, 0, 0, 0.46), transparent 22%);
}

img {
  max-width: 100%;
  display: block;
}

a,
button,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: min(calc(100% - 32px), var(--wrap));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* =========================
   TYPO / REUSABLE
========================= */
.gold-title,
.section-title,
.hero h1,
.mode-body h3,
.feature-item h4,
.paper h2,
.dc-title,
.community-chat-title,
.map-card-kicker {
  font-family: 'Cinzel', serif;
}

.gold-title {
  background: linear-gradient(
    180deg,
    var(--gold-3) 0%,
    #fff1bb 16%,
    #ffe487 34%,
    #ffd759 52%,
    #f0bc2d 72%,
    #c78b00 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.26);
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section-title {
  margin: 0 0 30px;
  text-align: center;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  color: var(--gold-2);
  text-shadow:
    0 3px 0 rgba(54, 29, 0, 0.88),
    0 0 20px rgba(221, 181, 88, 0.12);
}

.section-title::before,
.section-title::after {
  content: "";
  display: inline-block;
  width: 110px;
  height: 2px;
  vertical-align: middle;
  margin: 0 16px;
  background: linear-gradient(90deg, transparent, rgba(221, 181, 88, 0.85), transparent);
}

.content-section,
.paper-section {
  position: relative;
  z-index: 1;
}

.content-section {
  padding: 38px 0;
}

.content-section::before,
.paper-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, calc(100% - 32px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
  pointer-events: none;
}

.content-section .wrap,
.paper-section .wrap {
  position: relative;
}

.content-section .wrap::before,
.paper-section .wrap::before {
  content: "";
  position: absolute;
  inset: -10px 0 auto 0;
  height: 120px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(120, 160, 255, 0.04), transparent 60%);
}

/* =========================
   TOPBAR
========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-gold);
  background: rgba(7, 12, 22, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 20px rgba(0, 0, 0, 0.14);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.menu a {
  position: relative;
  color: var(--gold-2);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.92;
  transition: transform 0.22s ease, opacity 0.22s ease, color 0.22s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: transform 0.24s ease;
}

.menu a:hover {
  opacity: 1;
  color: #fff3c8;
  transform: translateY(-1px);
}

.menu a:hover::after {
  transform: scaleX(1);
}

.discord-btn {
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.discord-btn:hover {
  background: #4752c4 !important;
  filter: brightness(1.06);
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 36px 0 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/assets/Background.png') center center / cover no-repeat;
  transform: scale(1.08);
  will-change: transform;
  animation: bgSlowZoom 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(94, 121, 201, 0.10) 0%, rgba(22, 28, 46, 0.18) 44%, rgba(6, 9, 18, 0.66) 100%),
    linear-gradient(180deg, rgba(5, 8, 18, 0.62), rgba(8, 10, 22, 0.18) 24%, rgba(5, 8, 18, 0.58) 100%);
}

.hero-fog {
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.56;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(180, 210, 255, 0.12), transparent 42%),
    radial-gradient(ellipse at 80% 90%, rgba(180, 150, 255, 0.10), transparent 38%),
    linear-gradient(to top, rgba(180, 190, 220, 0.09), transparent 60%);
  filter: blur(20px);
  animation: fogFloat 11s ease-in-out infinite alternate;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.34) 100%);
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  filter:
    drop-shadow(0 0 6px rgba(140, 180, 255, 0.35))
    drop-shadow(0 0 14px rgba(180, 120, 255, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1.6s ease forwards;
}

.hero-logo {
  width: min(780px, 92%);
  margin: 12px auto 18px;
  transform-origin: center;
  will-change: transform, filter;
  animation:
    logoFloat 5.5s ease-in-out infinite,
    logoGlow 4s ease-in-out infinite;
  filter:
    drop-shadow(0 0 25px rgba(120, 160, 255, 0.35))
    drop-shadow(0 0 60px rgba(160, 100, 255, 0.25));
}

.hero h1 {
  margin: 0 0 18px;
  display: inline-block;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  background: linear-gradient(
    180deg,
    #fffdf2 0%,
    #fff7d1 18%,
    #ffed9f 36%,
    #ffdb63 58%,
    #f9c93b 78%,
    #e4a91f 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 0 rgba(90, 55, 0, 0.45),
    0 8px 16px rgba(0, 0, 0, 0.58);
}

/* =========================
   IP ROW
========================= */
.ip-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ip-box {
  min-width: 470px;
  padding: 16px 24px;
  border-radius: 16px 0 0 16px;
  background:
    linear-gradient(180deg, rgba(18, 23, 35, 0.96), rgba(7, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff8df;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 800;
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.copy-btn {
  position: relative;
  overflow: hidden;
  min-width: 140px;
  padding: 0 24px;
  border: none;
  border-radius: 0 14px 14px 0;
  cursor: pointer;
  background: linear-gradient(180deg, #262d38, #141922);
  color: #f3e6b4;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.copy-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.copy-label {
  position: relative;
  z-index: 2;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-fill {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 0%;
  height: 100%;
  background: linear-gradient(180deg, #b9dd42, #98c52c);
  transition: width 0.8s ease;
}

.copy-btn.loading .copy-fill {
  width: 100%;
}

/* =========================
   LIVE STATUS
========================= */
#servers {
  width: 100%;
  max-width: 700px;
  margin: 14px auto 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f172a, #070c18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.server-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(80, 120, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.server-row-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.server-name {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-row-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.server-status {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: currentColor;
}

.server-row.online {
  color: #7dffb0;
}

.server-row.online .server-dot {
  box-shadow:
    0 0 8px rgba(34, 209, 99, 0.95),
    0 0 16px rgba(34, 209, 99, 0.45);
}

.server-row.offline {
  color: #ff9b9b;
}

.server-row.offline .server-dot {
  box-shadow:
    0 0 8px rgba(239, 68, 68, 0.90),
    0 0 16px rgba(239, 68, 68, 0.35);
}

.server-row-right {
  justify-self: end;
}

.server-ping {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a2435, #0f1726);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 234, 208, 0.92);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.server-ping.ping-good {
  color: #7dffb0;
  background: linear-gradient(180deg, rgba(20, 255, 140, 0.10), rgba(20, 255, 140, 0.04));
  border-color: rgba(20, 255, 140, 0.22);
}

.server-ping.ping-mid {
  color: #ffd36e;
  background: linear-gradient(180deg, rgba(255, 211, 110, 0.10), rgba(255, 211, 110, 0.04));
  border-color: rgba(255, 211, 110, 0.22);
}

.server-ping.ping-bad {
  color: #ff9f7d;
  background: linear-gradient(180deg, rgba(255, 120, 80, 0.10), rgba(255, 120, 80, 0.04));
  border-color: rgba(255, 120, 80, 0.22);
}

/* =========================
   MAP CARD
========================= */
.map-card {
  position: relative;
  overflow: hidden;
  width: min(760px, 100%);
  margin: 4px auto 26px;
  padding: 10px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    radial-gradient(circle at top right, rgba(110, 160, 255, 0.10), transparent 34%);
}

.map-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 14px;
  flex-wrap: wrap;
}

.map-card-kicker {
  color: #f3e1a8;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-card-badge {
  padding: 7px 12px;
  border-radius: 999px;
  color: #d9e8ff;
  background: rgba(45, 120, 255, 0.14);
  border: 1px solid rgba(120, 170, 255, 0.24);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.map-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 320px;
  display: block;
  border: none;
  border-radius: 18px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* =========================
   BUTTONS
========================= */
.join-btn {
  position: relative;
  isolation: isolate;
  z-index: 1;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 360px;
  min-height: 78px;
  padding: 0 36px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #2a9df4, #0a5ea6);
  color: #fff;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.join-btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -75%;
  z-index: 0;
  width: 45%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  pointer-events: none;
  animation: buttonShine 4.2s linear infinite;
}

.join-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(90, 140, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.join-btn:active {
  transform: translateY(1px);
}

/* =========================
   PAPER
========================= */
.paper-section {
  margin-top: -16px;
}

.paper {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding: 38px 40px;
  color: var(--paper-text);
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 2px solid #b88e46;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 14%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 26%);
}

.paper h2 {
  position: relative;
  margin: 0 0 28px;
  text-align: center;
}

.paper-title-line {
  width: 180px;
  height: 2px;
  margin: 14px auto 24px;
  background: linear-gradient(90deg, transparent, #d9b552, transparent);
}

.paper p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  line-height: 1.65;
  font-weight: 600;
}

/* =========================
   MODE CARDS
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--glass-soft);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    radial-gradient(circle at top center, rgba(120, 170, 255, 0.08), transparent 38%);
}

.mode-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(230, 192, 95, 0.32);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.40),
    0 0 24px rgba(92, 140, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mode-image {
  position: relative;
  z-index: 1;
  aspect-ratio: 1.22 / 1;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease, filter 0.45s ease;
  transform: scale(1);
}

.mode-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 8, 15, 0.72), rgba(5, 8, 15, 0.08) 42%, rgba(0, 0, 0, 0.10)),
    radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.18) 100%);
}

.mode-card:hover .mode-image {
  transform: scale(1.08);
  filter: brightness(1.06) saturate(1.08);
}

.mode-1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.2)), url('/assets/card-quest.png');
}

.mode-2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.2)), url('/assets/card-dungeon.png');
}

.mode-3 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.2)), url('/assets/card-pvp.png');
}

.mode-body {
  position: relative;
  z-index: 1;
  padding: 22px 20px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(60, 37, 23, 0.72), rgba(17, 27, 41, 0.92) 80%);
}

.mode-body h3 {
  margin: 0 0 8px;
  font-size: 1.85rem;
  line-height: 1.1;
}

.mode-body p {
  margin: 0;
  color: #f4e3bf;
  opacity: 0.92;
  font-size: 1rem;
}

/* =========================
   FEATURES
========================= */
.feature-section {
  padding-top: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 28px 18px 24px;
  border-radius: 22px;
  background: var(--glass-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
    radial-gradient(circle at top center, rgba(110, 160, 255, 0.08), transparent 35%);
}

.feature-item:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 192, 95, 0.28);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(100, 150, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-item img {
  position: relative;
  z-index: 1;
  width: 132px;
  height: auto;
  margin: 0 auto 16px;
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 14px rgba(120, 160, 255, 0.08));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.feature-item:hover img {
  transform: translateY(-4px) scale(1.03);
  filter:
    drop-shadow(0 14px 20px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 20px rgba(140, 180, 255, 0.12));
}

.feature-item h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f2d37a;
  font-size: 1.55rem;
  line-height: 1.2;
}

/* =========================
   GALLERY
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: grid;
  place-items: end start;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.34s ease,
    box-shadow 0.34s ease,
    border-color 0.34s ease;
}

.gallery-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(7, 10, 18, 0.84), rgba(7, 10, 18, 0.20) 45%, rgba(0, 0, 0, 0.08)),
    radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.18) 100%);
}

.gallery-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%);
}

.gallery-shot:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(230, 192, 95, 0.32);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.40),
    0 0 24px rgba(90, 140, 255, 0.06);
}

.gallery-shot span {
  position: relative;
  z-index: 2;
  margin: 0 0 18px 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f1d481;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  backdrop-filter: blur(6px);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 0 8px rgba(212, 175, 55, 0.16);
}

.shot-1 { background-image: url('/assets/shot-1.png'); }
.shot-2 { background-image: url('/assets/shot-2.png'); }
.shot-3 { background-image: url('/assets/shot-3.png'); }
.shot-4 { background-image: url('/assets/shot-4.png'); }

/* =========================
   FAQ
========================= */
.faq-list {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(221, 181, 88, 0.20);
  background: linear-gradient(180deg, rgba(12, 18, 29, 0.88), rgba(7, 11, 20, 0.94));
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  color: #f4dfad;
  font-family: 'Cinzel', serif;
  font-size: 1.16rem;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "▾";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.22s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: rgba(240, 232, 214, 0.88);
  line-height: 1.7;
}

/* =========================
   JOIN SECTION
========================= */
.join-section {
  padding: 28px 0 70px;
}

.join-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.join-ip {
  min-width: 420px;
  padding: 16px 22px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(180deg, #7dbd28, #4f8d18);
  color: #faffef;
  border: 2px solid #6ca322;
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.join-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2f7ad9, #19498f);
  color: #f7fbff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

/* =========================
   COMMUNITY / DISCORD
========================= */
.community-section .wrap {
  max-width: 1180px;
}

.community-intro {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.community-lead {
  margin: 0;
  color: rgba(246, 240, 219, 0.82);
  font-size: 1.06rem;
  line-height: 1.75;
}

.discord-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto 26px;
  padding: 20px 24px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid rgba(120, 170, 255, 0.18);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(90, 140, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.discord-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(120, 160, 255, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%);
}

.dc-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dc-icon,
.dc-icon-placeholder {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(180deg, rgba(34, 38, 52, 0.95), rgba(16, 18, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dc-small {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 2px;
}

.dc-title {
  color: #f4dfad;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.dc-meta {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.dc-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #22d163;
  box-shadow:
    0 0 6px rgba(34, 209, 99, 0.9),
    0 0 12px rgba(34, 209, 99, 0.5);
}

.dc-actions {
  position: relative;
  z-index: 1;
  display: flex;
}

.dc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.dc-join {
  color: #fff;
  background: linear-gradient(180deg, #5865f2, #3c45a5);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(88, 101, 242, 0.2);
}

.dc-join:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.community-chat-shell {
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 22, 34, 0.94), rgba(7, 10, 18, 0.98));
  border: 1px solid rgba(120, 170, 255, 0.16);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(90, 140, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.community-chat-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    radial-gradient(circle at top right, rgba(120, 160, 255, 0.08), transparent 34%);
}

.community-chat-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.community-chat-kicker {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.community-chat-title {
  color: #f4dfad;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.community-chat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #dbe5ff;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(120, 140, 255, 0.22);
  font-weight: 700;
  transition: transform 0.22s ease, filter 0.22s ease, background 0.22s ease;
}

.community-chat-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  background: rgba(88, 101, 242, 0.22);
}

.community-chat-note {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  color: rgba(246, 240, 219, 0.70);
  font-size: 0.95rem;
  line-height: 1.6;
}

.discord-chat {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 430px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #111827;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.discord-chat widgetbot {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes bgSlowZoom {
  0% {
    transform: scale(1.08) translateY(0);
  }
  100% {
    transform: scale(1.14) translateY(-8px);
  }
}

@keyframes logoFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.012); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes logoGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 20px rgba(110, 160, 255, 0.20))
      drop-shadow(0 0 55px rgba(130, 90, 255, 0.14));
  }
  50% {
    filter:
      drop-shadow(0 0 28px rgba(120, 180, 255, 0.28))
      drop-shadow(0 0 70px rgba(155, 110, 255, 0.20));
  }
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonShine {
  0% {
    left: -75%;
  }
  100% {
    left: 130%;
  }
}

@keyframes fogFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-8px) scale(1.03);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu {
    display: none;
  }

  .nav {
    justify-content: flex-end;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .hero-logo {
    width: min(520px, 92%);
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .ip-row {
    flex-direction: column;
    gap: 10px;
  }

  .ip-box {
    min-width: 0;
    width: 100%;
    border-radius: 12px;
  }

  .copy-btn {
    min-height: 52px;
    border-radius: 12px;
  }

  #servers {
    max-width: 100%;
    gap: 8px;
    margin: 12px auto 20px;
  }

  .server-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 14px;
  }

  .server-row-left,
  .server-row-center,
  .server-row-right {
    justify-self: center;
  }

  .server-name {
    white-space: normal;
  }

  .map-card {
    padding: 8px;
    border-radius: 18px;
  }

  .map-card-top {
    padding: 4px 4px 10px;
  }

  .map-frame {
    height: 240px;
    border-radius: 14px;
  }

  .join-btn {
    min-width: 0;
    width: 100%;
    min-height: 60px;
    font-size: 1.2rem;
  }

  .paper {
    padding: 24px 18px;
  }

  .paper p {
    font-size: 1rem;
  }

  .section-title::before,
  .section-title::after {
    display: none;
  }

  .card-grid,
  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .mode-body h3 {
    font-size: 1.55rem;
  }

  .feature-item {
    padding: 24px 16px 22px;
  }

  .feature-item img {
    width: 104px;
  }

  .feature-item h4 {
    font-size: 1.3rem;
  }

  .gallery-shot span {
    margin: 0 0 14px 14px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .join-ip {
    min-width: 0;
    width: 100%;
    font-size: 1.35rem;
  }

  .discord-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .dc-left,
  .dc-actions {
    justify-content: center;
  }

  .community-chat-shell {
    padding: 14px;
    border-radius: 22px;
  }

  .community-chat-title {
    font-size: 1.08rem;
  }

  .discord-chat {
    height: 360px;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .hero::before {
    background: url('/assets/tale-world-bg-mobile.webp') center top / cover no-repeat;
  }
}

@media (max-width: 600px) {
  .discord-card {
    flex-direction: column;
    text-align: center;
  }

  .dc-left {
    justify-content: center;
  }
}