:root {
  --bg: #07111f;
  --bg-soft: #101d31;
  --panel: rgba(8, 16, 29, 0.88);
  --panel-strong: rgba(12, 24, 40, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #c1cbe0;
  --muted-strong: #d7e0ef;
  --blue: #43b5ff;
  --cyan: #87f3ff;
  --orange: #ff8a3d;
  --gold: #ffd166;
  --green: #63f5b0;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(67, 181, 255, 0.2), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 138, 61, 0.18), transparent 24%),
    linear-gradient(180deg, #08111e 0%, #07111f 45%, #050b15 100%);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.28;
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite;
}

.ambient-one {
  top: 80px;
  right: -120px;
  background: rgba(67, 181, 255, 0.22);
}

.ambient-two {
  bottom: 120px;
  left: -120px;
  background: rgba(255, 138, 61, 0.18);
  animation-delay: -5s;
}

.hero {
  padding: 24px 0 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Oxanium", sans-serif;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(67, 181, 255, 0.18), rgba(255, 138, 61, 0.18));
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--cyan);
  box-shadow: var(--shadow);
}

.brand-name {
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), #2d78ff);
  color: #04111f;
  box-shadow: 0 16px 32px rgba(67, 181, 255, 0.35);
}

.secondary-button {
  border: 1px solid rgba(135, 243, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.rank-card:hover,
.info-card:hover,
.stat-card:hover,
.update-card:hover,
.boss-card:hover {
  transform: translateY(-4px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  padding: 28px 0 20px;
}

.hero-copy,
.hero-panel,
.info-card,
.rank-card,
.boss-card,
.update-card,
.updates-intro {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
  border-radius: 28px;
  padding: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Oxanium", sans-serif;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.7rem);
  line-height: 1;
  text-transform: uppercase;
  max-width: none;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero-text,
.panel-note,
.section-subtitle,
.info-card p,
.boss-card p,
.update-card p,
.updates-intro p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 26px;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.live-strip {
  margin-top: 28px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(135, 243, 255, 0.14);
  color: #d8ecf9;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

.panel-head,
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-head {
  margin-bottom: 20px;
}

.panel-label,
.boss-label,
.update-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.panel-state {
  font-size: 1rem;
  color: var(--text);
}

.stats-grid,
.info-grid,
.updates-grid,
.updates-header-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.stat-value-small {
  font-size: 1.08rem;
  line-height: 1.35;
  word-break: break-word;
}

.panel-note {
  margin: 18px 0 0;
  font-size: 0.95rem;
}

.section {
  padding: 48px 0 8px;
}

.section-heading h2 {
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-subtitle {
  max-width: 62ch;
  margin: 4px 0 0;
  font-size: 1rem;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.info-card {
  border-radius: 24px;
  padding: 24px;
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.ranks-layout {
  margin-top: 24px;
}

.server-guide-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.guide-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.guide-panel h3 {
  margin-top: 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.guide-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.guide-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.guide-item:hover {
  transform: translateY(-4px);
}

.guide-item strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Oxanium", sans-serif;
  color: var(--text);
  font-size: 1.02rem;
}

.guide-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ranks-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rank-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-egg {
  border-color: rgba(240, 220, 176, 0.34);
  background:
    radial-gradient(circle at top left, rgba(255, 241, 210, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(214, 184, 130, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(36, 29, 22, 0.96), rgba(11, 16, 26, 0.92));
}

.rank-wood {
  border-color: rgba(113, 201, 116, 0.32);
  background:
    radial-gradient(circle at top left, rgba(140, 217, 140, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(97, 182, 98, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(20, 36, 22, 0.96), rgba(8, 17, 28, 0.92));
}

.rank-stone {
  border-color: rgba(150, 160, 172, 0.34);
  background:
    radial-gradient(circle at top left, rgba(144, 154, 166, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(124, 132, 146, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(26, 31, 40, 0.97), rgba(10, 16, 27, 0.92));
}

.rank-iron {
  border-color: rgba(192, 201, 210, 0.34);
  background:
    radial-gradient(circle at top left, rgba(198, 206, 214, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(186, 195, 204, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(24, 30, 40, 0.97), rgba(9, 17, 30, 0.92));
}

.rank-bronze {
  border-color: rgba(195, 125, 82, 0.3);
  background:
    radial-gradient(circle at bottom right, rgba(201, 124, 66, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(34, 23, 23, 0.95), rgba(12, 15, 24, 0.92));
}

.rank-silver {
  border-color: rgba(212, 222, 236, 0.38);
  background:
    radial-gradient(circle at top left, rgba(219, 228, 239, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(194, 208, 226, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(22, 29, 43, 0.97), rgba(8, 16, 29, 0.92));
}

.rank-gold {
  border-color: rgba(255, 209, 102, 0.3);
  background:
    radial-gradient(circle at bottom right, rgba(255, 190, 72, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(34, 25, 16, 0.95), rgba(12, 15, 23, 0.92));
}

.rank-platinum {
  border-color: rgba(131, 238, 214, 0.28);
  background:
    radial-gradient(circle at bottom right, rgba(104, 222, 199, 0.2), transparent 35%),
    linear-gradient(180deg, rgba(13, 29, 31, 0.95), rgba(8, 17, 28, 0.92));
}

.rank-diamond {
  border-color: rgba(94, 181, 255, 0.34);
  background:
    radial-gradient(circle at bottom right, rgba(86, 174, 255, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(18, 39, 70, 0.96), rgba(9, 19, 34, 0.92));
}

.rank-titan {
  border-color: rgba(255, 134, 85, 0.28);
  background:
    radial-gradient(circle at bottom right, rgba(255, 120, 77, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(31, 22, 24, 0.95), rgba(9, 16, 28, 0.92));
}

.rank-mythic {
  border-color: rgba(255, 167, 69, 0.34);
  background:
    radial-gradient(circle at bottom right, rgba(255, 145, 72, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(70, 40, 22, 0.94), rgba(20, 14, 20, 0.92));
}

.rank-special {
  border-color: rgba(214, 214, 222, 0.3);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(172, 172, 190, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(44, 43, 58, 0.96), rgba(14, 16, 27, 0.94));
}

.rank-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 181, 255, 0.28), transparent 70%);
}

.rank-level {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.rank-card h3 {
  font-size: 1.35rem;
}

.rank-icon {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.4rem;
}

.rank-egg h3,
.rank-egg .rank-icon {
  color: #f3dbc0;
}

.rank-egg .rank-level {
  color: #ffe6bf;
}

.rank-wood h3,
.rank-wood .rank-icon {
  color: #83d86d;
}

.rank-wood .rank-level {
  color: #9bef87;
}

.rank-stone h3,
.rank-stone .rank-icon {
  color: #aab6c5;
}

.rank-stone .rank-level {
  color: #c4d0dc;
}

.rank-iron h3,
.rank-iron .rank-icon {
  color: #58b9ff;
}

.rank-iron .rank-level {
  color: #7cd0ff;
}

.rank-bronze h3,
.rank-bronze .rank-icon {
  color: #c67d52;
}

.rank-bronze .rank-level {
  color: #de976d;
}

.rank-silver h3,
.rank-silver .rank-icon {
  color: #cfd7e2;
}

.rank-silver .rank-level {
  color: #e4eaf2;
}

.rank-gold h3,
.rank-gold .rank-icon {
  color: #f5c653;
}

.rank-gold .rank-level {
  color: #ffd76e;
}

.rank-platinum h3,
.rank-platinum .rank-icon {
  color: #ffd85d;
}

.rank-platinum .rank-level {
  color: #ffe482;
}

.rank-diamond h3,
.rank-diamond .rank-icon {
  color: #58b9ff;
}

.rank-diamond .rank-level {
  color: #7cd0ff;
}

.rank-titan h3,
.rank-titan .rank-icon {
  color: #9e8777;
}

.rank-titan .rank-level {
  color: #c3a892;
}

.rank-mythic h3,
.rank-mythic .rank-icon {
  color: #f3d7a0;
}

.rank-mythic .rank-level {
  color: #ffd37b;
}

.rank-special h3,
.rank-special .rank-icon {
  color: #f1f3f7;
}

.rank-special .rank-level {
  color: #d5dae4;
}

.featured {
  border-color: rgba(135, 243, 255, 0.28);
  background: linear-gradient(180deg, rgba(20, 38, 67, 0.95), rgba(7, 17, 31, 0.9));
}

.mythic {
  border-color: rgba(255, 209, 102, 0.3);
  background: linear-gradient(180deg, rgba(68, 36, 19, 0.92), rgba(17, 12, 16, 0.92));
}

.updates-header-grid {
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: 20px;
}

.updates-intro {
  border-radius: 24px;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(15, 26, 44, 0.96), rgba(8, 16, 29, 0.92));
}

.updates-intro strong {
  color: var(--text);
}

.updates-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.update-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
  border-radius: 24px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.update-card.priority {
  border-color: rgba(135, 243, 255, 0.28);
  background: linear-gradient(180deg, rgba(15, 27, 47, 0.98), rgba(8, 16, 29, 0.92));
}

.update-card h3 {
  max-width: 24ch;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 12px 0 14px;
}

.update-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 72ch;
  flex: none;
}

.update-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #d3deef;
  font-size: 0.98rem;
}

.update-link {
  color: var(--cyan);
  font-weight: 800;
  white-space: nowrap;
}

.loading-card {
  grid-column: 1 / -1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.8;
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .info-grid,
  .server-guide-layout {
    grid-template-columns: 1fr;
  }

  .ranks-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy,
  .hero-panel,
  .info-card,
  .guide-panel,
  .update-card,
  .rank-card,
  .updates-intro {
    padding: 22px;
  }

  .stats-grid,
  .ranks-list,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .update-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ghost-button,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .update-card h3 {
    max-width: none;
    font-size: 1.35rem;
  }

  h1 {
    max-width: 10ch;
    line-height: 0.96;
  }

  .update-card p,
  .section-subtitle,
  .hero-text {
    font-size: 0.98rem;
  }
}
