:root {
  --cyan: #38bdf8;
  --cyan-strong: #0ea5e9;
  --cyan-soft: rgba(56, 189, 248, .16);
  --gold: #facc15;
  --green: #22c55e;
  --red: #ef4444;
  --purple: #a855f7;
  --bg: #020611;
  --bg-2: #071120;
  --bg-3: #0b1728;
  --text: #e5eefb;
  --muted: #93a4b8;
  --dim: #526277;
  --line: rgba(56, 189, 248, .18);
  --line-strong: rgba(56, 189, 248, .42);
  --nav-width: 132px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Rajdhani, Arial, sans-serif;
  overflow-x: hidden;
}
body::selection { background: var(--cyan); color: #00101d; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(to bottom, rgba(2,6,17,.96), rgba(2,6,17,.42) 36%, rgba(2,6,17,.94)),
    linear-gradient(to right, rgba(2,6,17,1), rgba(2,6,17,.48), rgba(2,6,17,1)),
    url("../img/bg-landscape.svg") center / cover no-repeat;
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 16% 22%, rgba(125,211,252,.75), transparent),
    radial-gradient(1px 1px at 78% 13%, rgba(125,211,252,.6), transparent),
    radial-gradient(1px 1px at 52% 72%, rgba(125,211,252,.45), transparent);
  animation: stars 4s alternate infinite ease-in-out;
}
.ambient-character {
  position: fixed;
  right: -45px;
  top: 50%;
  z-index: -2;
  width: min(390px, 42vw);
  opacity: .13;
  transform: translateY(-50%);
  filter: saturate(.75) brightness(.8);
  pointer-events: none;
}

.exit-link {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 30;
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: rgba(7, 17, 32, .78);
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.exit-link:hover { color: var(--cyan); border-color: var(--line-strong); }

.side-nav {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 25;
  width: var(--nav-width);
  transform: translateY(-50%);
  padding: 8px 0;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(7, 17, 32, .78);
  backdrop-filter: blur(12px);
}
.side-nav button {
  width: 100%;
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  padding: 0 12px 0 10px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
}
.side-nav button:hover,
.side-nav button.active {
  color: var(--cyan);
  background: rgba(56, 189, 248, .08);
  border-left-color: var(--cyan);
}
.side-nav i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}
.search-toggle { color: var(--muted) !important; }
.nav-search {
  display: none;
  width: calc(100% - 14px);
  margin: 4px 7px 8px;
  border: 1px solid var(--line);
  background: #06101f;
  color: var(--text);
  padding: 7px;
  outline: 0;
}
.search-results {
  display: none;
  width: 260px;
  position: absolute;
  left: calc(100% + 8px);
  top: 6px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 24, .96);
}
.search-result {
  display: block;
  padding: 9px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.search-result:hover { color: var(--cyan); background: rgba(56,189,248,.08); }

main { position: relative; z-index: 1; padding-left: var(--nav-width); }
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 84px 22px;
}
.hero-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(14,165,233,.32), transparent 68%);
}
.hero-stars {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(2,6,17,.45));
}
.hero-content {
  position: relative;
  max-width: 760px;
  animation: fade-up .75s ease both;
}
.logo-wrap { display: inline-block; text-decoration: none; }
.hero-logo {
  width: min(360px, 72vw);
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 38px rgba(56,189,248,.24));
  transition: transform .25s ease, filter .25s ease;
}
.logo-wrap:hover .hero-logo {
  transform: scale(1.035);
  filter: drop-shadow(0 0 58px rgba(56,189,248,.34));
}
.eyebrow,
.section-head p {
  margin: 0 0 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: 12px;
  font-weight: 700;
}
h1 {
  margin: 0 0 14px;
  font-family: Cinzel, serif;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1;
}
.hero-copy {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background: rgba(7,17,32,.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn.primary { background: var(--cyan); color: #00101d; border-color: transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(56,189,248,.18); }
.btn.compact { min-height: 38px; padding: 0 18px; font-size: 12px; }
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 700;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: 8px auto 0;
  background: linear-gradient(var(--cyan), transparent);
}

.server-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7,17,32,.78);
}
.stat {
  min-height: 88px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-right: 1px solid rgba(56,189,248,.11);
}
.stat span {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 800;
}
.stat strong { color: var(--text); font-size: 24px; }
.stat .online { color: var(--green); }

.content-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 86px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 34px;
}
.section-head h2 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(28px, 5vw, 48px);
}
.section-head span { color: var(--cyan); }
.section-head::after {
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.section-divider {
  width: min(980px, calc(100% - 72px));
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.class-shell,
.shop-layout,
.drop-layout {
  border: 1px solid var(--line);
  background: rgba(7,17,32,.72);
  box-shadow: inset 0 0 40px rgba(56,189,248,.03);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  border-bottom: 1px solid var(--line);
}
.tabs button,
.tabs .tab {
  flex: 1 1 150px;
  min-height: 48px;
  border: 0;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}
.tabs button.active,
.tabs .tab.active {
  color: var(--cyan);
  background: rgba(56,189,248,.09);
}
.tabs.vertical {
  display: grid;
  border: 0;
  border-right: 1px solid var(--line);
}
.shop-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
}
.class-body {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 32px;
  padding: 28px;
  align-items: center;
}
.portrait-card {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 20%, rgba(56,189,248,.18), rgba(255,255,255,.02));
  overflow: hidden;
}
.portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.class-info h3 {
  margin: 0;
  color: var(--cyan);
  font-family: Cinzel, serif;
  font-size: 34px;
}
.class-info p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.build-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.build-item,
.mini-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  padding: 12px;
}
.build-item span,
.mini-card span {
  display: block;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
}
.build-item strong { font-size: 21px; color: var(--text); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  border: 1px solid var(--line);
  color: var(--cyan);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-layout .card-grid { padding: 18px; }
.info-card {
  border: 1px solid var(--line);
  background: rgba(7,17,32,.74);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.info-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(56,189,248,.08);
}
.info-card-body { padding: 16px; }
.info-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 23px;
}
.info-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  padding: 4px 8px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.09);
  font-size: 12px;
  font-weight: 700;
}
.maps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.map-card {
  border: 1px solid rgba(14, 165, 233, .42);
  background: rgba(7, 17, 32, .82);
  min-height: 100%;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.map-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .24);
}
.map-card.medium { border-color: rgba(250, 204, 21, .55); }
.map-card.hard { border-color: rgba(239, 68, 68, .5); }
.map-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(56, 189, 248, .08);
}
.map-body { padding: 16px 16px 18px; }
.map-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.map-title-row h3 {
  margin: 0;
  color: var(--cyan);
  font-family: Cinzel, serif;
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}
.difficulty,
.map-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 8px;
  border: 1px solid rgba(34, 197, 94, .55);
  background: rgba(34, 197, 94, .11);
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.map-card.medium .difficulty {
  border-color: rgba(250, 204, 21, .55);
  background: rgba(250, 204, 21, .12);
  color: var(--gold);
}
.map-card.hard .difficulty {
  border-color: rgba(239, 68, 68, .55);
  background: rgba(239, 68, 68, .1);
  color: #fca5a5;
}
.map-badge {
  border-color: rgba(14, 165, 233, .55);
  background: rgba(14, 165, 233, .13);
  color: var(--cyan);
}
.map-body > p {
  margin: 14px 0 16px;
  color: var(--muted);
  line-height: 1.55;
}
.map-notes {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}
.map-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.map-note strong { color: var(--cyan); }
.map-note.warn strong { color: var(--gold); }
.map-note.mini strong { color: #fb7185; }
.map-note.gold strong { color: var(--gold); }
.map-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px;
}
.map-reqs span {
  border: 1px solid rgba(56, 189, 248, .18);
  background: rgba(56, 189, 248, .06);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}
.map-reqs b { color: var(--cyan); }
.drop-title {
  margin: 0 0 8px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 10px;
  font-weight: 900;
}
.drop-table {
  display: grid;
  gap: 0;
}
.drop-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.045);
  color: var(--muted);
}
.drop-table strong {
  color: var(--cyan);
  text-align: right;
  white-space: nowrap;
}
.price { color: var(--gold); font-weight: 800; }
.event-card {
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(56,189,248,.08), transparent 44%),
    rgba(7,17,32,.72);
}
.event-card h3 { margin: 0 0 8px; font-size: 25px; color: var(--cyan); }
.event-card p { margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
.schedule {
  display: grid;
  gap: 7px;
}
.schedule div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 7px;
}
.server-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.server-event-card {
  border: 1px solid var(--line);
  background: rgba(7, 17, 32, .86);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.server-event-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}
.server-event-card:nth-child(n+4) {
  grid-column: span 1;
}
.server-event-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: rgba(56, 189, 248, .08);
  filter: grayscale(.12) contrast(1.04);
}
.server-event-body {
  padding: 18px;
}
.server-event-body h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-family: Cinzel, serif;
  font-size: 21px;
  text-transform: uppercase;
}
.server-event-subtitle {
  margin: 0 0 10px !important;
  color: var(--cyan) !important;
  font-weight: 900;
}
.server-event-body > p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
}
.event-table {
  margin: 14px 0;
}
.event-table-head,
.event-table-row {
  display: grid;
  grid-template-columns: .9fr 1.3fr 1.3fr;
  gap: 12px;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.event-table-head span {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 9px;
  font-weight: 900;
}
.event-table-row strong {
  color: var(--text);
  font-weight: 900;
}
.event-table-row span {
  color: var(--muted);
  text-align: right;
}
.event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}
.event-chips span {
  border: 1px solid rgba(56,189,248,.22);
  background: rgba(56,189,248,.08);
  color: var(--cyan);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}
.event-note {
  margin: 0 0 14px !important;
  color: var(--muted);
}
.server-event-times {
  border: 1px solid var(--line);
  background: rgba(56,189,248,.045);
  padding: 12px;
}
.server-event-times > span {
  display: block;
  margin-bottom: 9px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  font-weight: 900;
}
.server-event-times div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.server-event-times b {
  border: 1px solid rgba(255,255,255,.1);
  padding: 5px 9px;
  color: var(--text);
  font-size: 12px;
}
.invasion-showcase {
  display: grid;
  gap: 28px;
}
.invasion-panel {
  border: 1px solid var(--line);
  background: rgba(7, 17, 32, .86);
  overflow: hidden;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .18);
}
.invasion-banner {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: rgba(56, 189, 248, .08);
}
.invasion-body {
  padding: 20px;
}
.invasion-body h3 {
  margin: 0 0 6px;
  font-family: Cinzel, serif;
  font-size: 24px;
  color: var(--text);
  text-transform: uppercase;
}
.invasion-subtitle {
  margin: 0 0 10px !important;
  color: var(--cyan) !important;
  font-weight: 800;
}
.invasion-body > p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.city-boss {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 4px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.018);
  color: var(--muted);
  padding: 11px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.city-boss:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(56,189,248,.08);
}
.city-boss span {
  color: var(--cyan);
  font-weight: 900;
}
.city-boss strong {
  color: var(--text);
  font-size: 14px;
}
.city-boss small {
  color: var(--muted);
  font-size: 12px;
}
.city-boss b {
  color: var(--green);
  text-transform: uppercase;
  font-size: 11px;
}
.city-boss em {
  color: var(--dim);
  font-size: 11px;
  font-style: normal;
}
.city-boss.medium b { color: var(--gold); }
.city-boss.hard b { color: #fb7185; }
.city-boss.extreme b { color: #f87171; }
.city-boss.medium:hover { border-color: rgba(250, 204, 21, .78); }
.city-boss.hard:hover,
.city-boss.extreme:hover { border-color: rgba(239, 68, 68, .78); }
.reward-strip {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(56,189,248,.22);
  background: rgba(56,189,248,.08);
  color: var(--cyan);
  font-weight: 800;
}
.invasion-times {
  border: 1px solid var(--line);
  background: rgba(56,189,248,.045);
  padding: 13px;
}
.invasion-times span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 10px;
  font-weight: 900;
}
.invasion-times div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.invasion-times b {
  border: 1px solid rgba(255,255,255,.1);
  padding: 5px 10px;
  color: var(--text);
  font-size: 12px;
}
.drop-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.drop-item {
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.drop-item img { width: 74px; height: 74px; margin-bottom: 10px; }
.drop-item strong { display: block; font-size: 20px; }
.drop-item span { color: var(--muted); }
.quest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.quest-card,
.guide-system-card {
  border: 1px solid var(--line);
  background: rgba(7, 17, 32, .86);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.quest-card:hover,
.guide-system-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}
.quest-image,
.guide-system-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.quest-body,
.guide-system-body {
  padding: 18px;
}
.quest-status {
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid rgba(34,197,94,.42);
  color: var(--green);
  background: rgba(34,197,94,.08);
  padding: 5px 9px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}
.quest-body h3,
.guide-system-body h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-family: Cinzel, serif;
  text-transform: uppercase;
  font-size: 19px;
}
.quest-npc {
  color: var(--cyan) !important;
  font-weight: 800;
}
.quest-body p,
.guide-system-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}
.quest-objective {
  border: 1px solid rgba(56,189,248,.18);
  background: rgba(56,189,248,.06);
  color: var(--muted);
  padding: 10px 12px;
  margin: 12px 0;
}
.quest-objective strong { color: var(--cyan); }
.quest-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 16px;
}
.quest-rewards span {
  border: 1px solid rgba(56,189,248,.24);
  background: rgba(56,189,248,.08);
  color: var(--cyan);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}
.quest-meta {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 14px;
}
.quest-meta strong {
  display: block;
  color: var(--text);
}
.quest-meta span {
  color: var(--dim);
}
.rewards-panel {
  display: grid;
  gap: 16px;
}
.drop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.drop-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(7,17,32,.82);
  color: var(--muted);
  padding: 0 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  font-weight: 900;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.drop-tabs button.active,
.drop-tabs button:hover {
  color: var(--gold);
  border-color: rgba(250,204,21,.48);
  background: rgba(250,204,21,.09);
}
.drop-feature {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  border: 1px solid var(--line);
  background: rgba(7,17,32,.86);
}
.drop-feature img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-right: 1px solid var(--line);
}
.drop-feature > div {
  display: grid;
  align-content: center;
  padding: 30px;
}
.drop-feature h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 28px;
}
.drop-feature p {
  color: var(--muted);
  line-height: 1.6;
}
.drop-source {
  color: var(--cyan) !important;
  font-weight: 800;
}
.drop-columns,
.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.drop-box,
.rates-grid div {
  border: 1px solid var(--line);
  background: rgba(7,17,32,.78);
  padding: 14px;
}
.drop-box span,
.rates-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10px;
  font-weight: 900;
}
.drop-box strong {
  color: var(--text);
  line-height: 1.5;
}
.rates-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rates-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.rates-grid strong {
  color: var(--cyan);
  white-space: nowrap;
}
.guide-systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.guide-system-card:last-child {
  grid-column: span 1;
}
.guide-blocks {
  display: grid;
  gap: 10px;
}
.guide-block {
  border: 1px solid rgba(56,189,248,.18);
  background: rgba(56,189,248,.055);
  padding: 12px;
}
.guide-block strong {
  display: block;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.guide-block span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}
.guide-block b {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold);
  font-size: 12px;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  background: rgba(7,17,32,.86);
  color: var(--cyan);
  padding: 10px 14px;
  cursor: pointer;
}
.to-top.visible { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(1, 5, 12, .82);
  backdrop-filter: blur(8px);
}
.modal.open { display: grid; }
.modal-panel {
  width: min(660px, 100%);
  max-height: 84vh;
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: #06101f;
  padding: 0;
  box-shadow: 0 24px 90px rgba(0,0,0,.45);
  animation: modal-in .22s ease both;
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  border: 1px solid var(--line);
  background: rgba(6, 16, 31, .88);
  color: var(--muted);
  margin: 12px;
  padding: 7px 12px;
  cursor: pointer;
}
.modal-panel h3 {
  margin: 0;
  padding: 24px 24px 0;
  color: var(--cyan);
  font-family: Cinzel, serif;
}
#modalContent { padding: 18px 24px 24px; }
.boss-modal {
  margin: -18px -24px -24px;
}
.boss-modal img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.boss-detail { padding: 18px; }
.boss-location {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
}
.boss-difficulty {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid rgba(34,197,94,.55);
  background: rgba(34,197,94,.09);
  color: var(--green);
  padding: 7px 12px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}
.boss-modal.medium .boss-difficulty { border-color: rgba(250,204,21,.55); color: var(--gold); background: rgba(250,204,21,.1); }
.boss-modal.hard .boss-difficulty,
.boss-modal.extreme .boss-difficulty { border-color: rgba(239,68,68,.55); color: #fca5a5; background: rgba(239,68,68,.1); }
.boss-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.boss-stats div,
.boss-drop {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(250,204,21,.035);
  padding: 12px;
}
.boss-stats .wide { grid-column: 1 / -1; }
.boss-stats span,
.boss-drop span {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 900;
}
.boss-stats strong,
.boss-drop strong {
  color: var(--text);
  font-size: 18px;
}
.boss-drop {
  margin-top: 10px;
  border-color: rgba(250,204,21,.26);
}
.boss-drop strong { color: var(--gold); }
.boss-source {
  margin: 14px 0 0;
  color: var(--dim);
  text-align: center;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes stars {
  from { opacity: .35; }
  to { opacity: 1; }
}

@media (max-width: 980px) {
  main { padding-left: 0; }
  .side-nav { display: none; }
  .server-bar { grid-template-columns: repeat(2, 1fr); width: calc(100% - 32px); }
  .class-body,
  .shop-layout { grid-template-columns: 1fr; }
  .tabs.vertical { border-right: 0; border-bottom: 1px solid var(--line); }
  .card-grid,
  .card-grid.wide,
  .maps-grid,
  .event-grid,
  .server-events-grid,
  .quest-grid,
  .guide-systems-grid,
  .drop-layout { grid-template-columns: 1fr; }
  .drop-feature { grid-template-columns: 1fr; }
  .drop-feature img { border-right: 0; border-bottom: 1px solid var(--line); }
  .drop-columns,
  .rates-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invasion-banner { aspect-ratio: 16 / 9; }
  .content-section { width: calc(100% - 28px); padding: 62px 0; }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .hero { padding-inline: 14px; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .server-bar { grid-template-columns: 1fr; }
  .class-body { padding: 16px; }
  .ambient-character { display: none; }
  .city-grid,
  .boss-stats { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
}
