*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #07090f;
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(28, 56, 121, 0.18) 0%, transparent 80%),
    radial-gradient(circle at 50% 50%, rgba(14, 18, 30, 0.5) 0%, #06080d 100%);
  color: #a4a2a2;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: #d8d0cc;
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: #ffdda9;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #ffdda9;
  outline-offset: 3px;
}

.wrap {
  width: 1200px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

/* ==========================================================================
   Custom Authentic Mu Online SVGs
   ========================================================================== */

.mu-svg-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
}

.gem-bless-icon {
  filter: drop-shadow(0 0 10px rgba(56, 182, 255, 0.7));
}

.gem-chaos-icon {
  filter: drop-shadow(0 0 10px rgba(255, 60, 0, 0.7));
}

.weapon-sword-icon {
  filter: drop-shadow(0 0 8px rgba(100, 180, 255, 0.5));
}

.armor-shield-icon {
  filter: drop-shadow(0 0 8px rgba(212, 163, 75, 0.5));
}

.wing-storm-icon {
  filter: drop-shadow(0 0 10px rgba(255, 221, 169, 0.6));
}

.sparkle-icon {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 6px #ffdda9);
}

.class-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.class-crest-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212, 163, 75, 0.5));
}

.class-tab-btn .class-crest-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.class-tab-btn.is-active .class-crest-icon,
.class-tab-btn:hover .class-crest-icon {
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px #ffdda9);
}

.equip-svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Typography & Section Headers
   ========================================================================== */

.section-header {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 680px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 10px;
  color: #fff;
  font-family: Philosopher, Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 16px rgba(212, 163, 75, 0.3);
}

.section-subtitle {
  margin: 0;
  color: #8c909e;
  font-size: 15px;
}

h2 {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 20px;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(212, 163, 75, 0.3);
}

h2 span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

h2 span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #ffdda9 0%, #d4a34b 50%, #8a6218 100%);
  transform: rotate(45deg);
  box-shadow: 0 0 8px #ff9000, 0 0 16px rgba(255, 144, 0, 0.4);
}

h2::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 16px;
  background: linear-gradient(90deg, rgba(212, 163, 75, 0.4) 0%, rgba(212, 163, 75, 0) 100%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Buttons (Classic Webzen Stone & Gold)
   ========================================================================== */

.btn-sm,
.btn-play,
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4a34b;
  border-radius: 2px;
  color: #fff !important;
  text-align: center;
  text-transform: uppercase;
  font-family: Philosopher, Georgia, serif;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-sm {
  height: 38px;
  padding: 0 20px;
  font-size: 12px;
  background: linear-gradient(180deg, #2b3b5c 0%, #151e33 60%, #0d1424 100%);
  border-color: #536b9c;
}

.btn-sm:hover {
  background: linear-gradient(180deg, #374c77 0%, #1c2944 60%, #111a2e 100%);
  border-color: #ffdda9;
  color: #ffdda9 !important;
  box-shadow:
    0 0 12px rgba(43, 80, 170, 0.5),
    0 0 0 1px #ffdda9,
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-play {
  height: 56px;
  padding: 0 32px;
  font-size: 17px;
  background: linear-gradient(180deg, #1c4587 0%, #122b56 50%, #091730 100%);
  border: 1px solid #d4a34b;
  box-shadow:
    0 0 24px rgba(28, 69, 135, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 0 12px rgba(42, 87, 255, 0.4);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(100, 160, 255, 0.6);
}

.btn-play::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 221, 169, 0.3);
  pointer-events: none;
}

.btn-play:hover {
  background: linear-gradient(180deg, #2456a6 0%, #17376e 50%, #0c2042 100%);
  border-color: #ffe6bd;
  box-shadow:
    0 0 32px rgba(42, 100, 255, 0.8),
    0 10px 24px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 0 16px rgba(70, 120, 255, 0.6);
  transform: translateY(-2px);
}

.btn-gold {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  background: linear-gradient(180deg, #d4a34b 0%, #9e6f24 50%, #613f0a 100%);
  border-color: #ffe6bd;
  color: #12141c !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #ffd782 0%, #c48e35 50%, #7a500e 100%);
  box-shadow: 0 0 20px rgba(255, 200, 80, 0.6);
  transform: translateY(-2px);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 4000;
  padding: 8px 14px;
  background: #ffdda9;
  color: #0a0d16;
  font: 600 13px/1.2 "Open Sans", sans-serif;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

/* ==========================================================================
   Header & Top Navigation
   ========================================================================== */

.top-panel {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(6, 8, 13, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1c2233;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.top-panel-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 20px);
  height: 64px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  font-family: Philosopher, Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffdda9;
  text-shadow: 0 0 10px rgba(212, 163, 75, 0.4);
  white-space: nowrap;
}

.menu {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  gap: clamp(0px, 0.25vw, 4px);
}

.menu a {
  position: relative;
  padding: 8px clamp(7px, 0.7vw, 12px);
  font-family: Philosopher, Georgia, serif;
  font-size: clamp(11px, 0.76vw, 13px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c5c8d4;
  border-radius: 2px;
  white-space: nowrap;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffdda9;
  transition: all 0.25s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 6px #ffdda9;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: #ffdda9;
}

.menu a:hover::after,
.menu a[aria-current="page"]::after {
  width: 60%;
}

.lang {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #0d101a;
  border: 1px solid #1c2233;
  border-radius: 2px;
}

.top-panel-inner > .btn-sm {
  flex: 0 0 auto;
}

.lang a {
  color: #727582;
  font: 700 12px/1 Philosopher, sans-serif;
  letter-spacing: 1px;
}

.lang span {
  color: #2a3144;
  font-size: 10px;
}

.lang a.is-active,
.lang a:hover {
  color: #ffdda9;
}

.nav-toggle {
  display: none;
  border: 1px solid #2a3144;
  background: #121624;
  color: #d8d0cc;
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

/* ==========================================================================
   Hero & Fast Register Layout
   ========================================================================== */

.hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #06080d;
  padding-bottom: 36px;
}

.hero-ambient {
  position: absolute;
  inset: -15%;
  z-index: 0;
  background: url("/portal/assets/hero-c.jpg") center / cover no-repeat;
  filter: blur(40px) saturate(1.5) brightness(0.45);
  opacity: 0.8;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 90% at 50% 35%, transparent 30%, rgba(6, 8, 13, 0.6) 70%, #07090f 100%),
    linear-gradient(180deg, transparent 70%, #07090f 100%);
}

.smoke {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: min(30vw, 450px);
  pointer-events: none;
  background: url("/portal/assets/prime-smoke.png") center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.25;
  filter: blur(3px);
}

.smoke-l {
  left: 0;
  transform: scaleX(-1);
  mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
}

.smoke-r {
  right: 0;
  mask-image: linear-gradient(270deg, #000 0%, #000 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 35%, transparent 100%);
}

.sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.spark {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.55;
}

.s1 {
  left: 4%;
  top: 15%;
  width: 90px;
  height: 90px;
  background-image: url("/portal/assets/raven-spark-1.png");
  animation: drift 9s ease-in-out infinite;
}

.s2 {
  right: 6%;
  top: 25%;
  width: 80px;
  height: 80px;
  background-image: url("/portal/assets/raven-spark-2.png");
  animation: drift 11s ease-in-out infinite reverse;
}

.s3 {
  left: 9%;
  bottom: 20%;
  width: 70px;
  height: 70px;
  background-image: url("/portal/assets/raven-spark-3.png");
  animation: drift 8s ease-in-out infinite 1s;
}

.s4 {
  right: 8%;
  bottom: 15%;
  width: 100px;
  height: 100px;
  background-image: url("/portal/assets/raven-spark-4.png");
  animation: drift 12s ease-in-out infinite 0.5s;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.35; }
  50% { transform: translate3d(0, -16px, 0); opacity: 0.75; }
}

.hero-banner-image {
  position: relative;
  z-index: 3;
  width: 100%;
  height: clamp(280px, 36vh, 480px);
  margin: 0;
}

.hero-banner-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-split-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
  margin-top: -40px;
}

.hero-info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: linear-gradient(180deg, rgba(16, 20, 32, 0.95) 0%, rgba(9, 11, 18, 0.98) 100%);
  border: 1px solid #2a3144;
  border-top: 2px solid #d4a34b;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 221, 169, 0.2);
}

.hero-heading-group h1 {
  margin: 0 0 8px;
  color: #fff;
  font-family: Philosopher, Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-lead-text {
  margin: 0 0 20px;
  color: #c5c8d4;
  font-size: 16px;
  line-height: 1.6;
}

.hero-highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-hl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(8, 10, 16, 0.7);
  border: 1px solid #1a2030;
  border-radius: 3px;
  color: #ffdda9;
  font-size: 13px;
  font-weight: 600;
}

.hero-actions-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid #1a2030;
}

/* ==========================================================================
   Fast Register Card (Hero Right)
   ========================================================================== */

.fast-register-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: linear-gradient(180deg, #141826 0%, #0c0f18 100%);
  border: 1px solid #2a3144;
  border-top: 2px solid #536b9c;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fast-register-header {
  margin-bottom: 18px;
  text-align: center;
}

.fast-register-title {
  margin: 0 0 4px;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.fast-register-sub {
  margin: 0;
  color: #8c909e;
  font-size: 13px;
}

.fast-form {
  display: grid;
  gap: 12px;
}

.fast-field {
  display: grid;
  gap: 4px;
}

.fast-field label {
  color: #c5c8d4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fast-field input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #22293d;
  border-radius: 2px;
  background: #080a10;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.fast-field input:focus {
  border-color: #d4a34b;
  box-shadow: 0 0 10px rgba(212, 163, 75, 0.3);
}

.fast-status-msg {
  min-height: 1.3em;
  margin: 0;
  color: #ffdda9;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.fast-footer-links {
  margin-top: 14px;
  text-align: center;
  color: #727582;
  font-size: 12px;
}

.fast-footer-links a {
  color: #ffdda9;
  text-decoration: underline;
}

.register-success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  text-align: center;
}

.success-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.success-title {
  margin: 0 0 8px;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.success-user {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
}

.success-desc {
  margin: 0 0 20px;
  color: #8c909e;
  font-size: 13px;
}

.btn-success-play {
  width: 100%;
}

/* ==========================================================================
   Server Rates Bar
   ========================================================================== */

.server-rates-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 0;
}

.rate-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: linear-gradient(180deg, #121624 0%, #0a0d16 100%);
  border: 1px solid #1e2436;
  border-radius: 3px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rate-label {
  color: #727582;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.rate-value {
  margin-top: 4px;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ==========================================================================
   Class Explorer Section (Character Hub with 3D Preview)
   ========================================================================== */

.classes-section {
  padding: 56px 0 36px;
}

.classes-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.class-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #141826 0%, #0a0d16 100%);
  border: 1px solid #202638;
  border-radius: 4px;
  color: #8c909e;
  font: 700 12px/1 Philosopher, Georgia, serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.class-crest-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(10, 13, 20, 0.8);
  border: 1px solid #1c2233;
  border-radius: 4px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
  transition: all 0.25s ease;
}

.class-crest-icon {
  width: 24px;
  height: 24px;
  transition: all 0.25s ease;
}

.class-crest-wrap-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(10, 13, 20, 0.9);
  border: 1px solid #2a3144;
  border-radius: 6px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.class-crest-wrap-large .class-crest-icon {
  width: 36px;
  height: 36px;
}

/* Individual Class Crest Ambient Shadows & Glows */
.dk-crest {
  filter: drop-shadow(0 0 6px rgba(255, 42, 0, 0.6));
}

.dw-crest {
  filter: drop-shadow(0 0 6px rgba(0, 166, 251, 0.6));
}

.elf-crest {
  filter: drop-shadow(0 0 6px rgba(46, 196, 182, 0.6));
}

.mg-crest {
  filter: drop-shadow(0 0 6px rgba(217, 0, 255, 0.6));
}

.dl-crest {
  filter: drop-shadow(0 0 6px rgba(255, 183, 3, 0.7));
}

.sum-crest {
  filter: drop-shadow(0 0 6px rgba(255, 0, 128, 0.6));
}

.rf-crest {
  filter: drop-shadow(0 0 6px rgba(255, 84, 0, 0.7));
}

.class-tab-btn.is-active,
.class-tab-btn:hover {
  background: linear-gradient(180deg, #222a3d 0%, #101420 100%);
  border-color: #d4a34b;
  color: #ffdda9;
  box-shadow: 0 0 16px rgba(212, 163, 75, 0.3), inset 0 1px 0 rgba(255, 221, 169, 0.2);
  transform: translateY(-2px);
}

.class-tab-btn.is-active .class-crest-wrap,
.class-tab-btn:hover .class-crest-wrap {
  border-color: #d4a34b;
  box-shadow: 0 0 10px rgba(212, 163, 75, 0.4), inset 0 0 6px rgba(212, 163, 75, 0.2);
}

.class-tab-btn.is-active .class-crest-icon,
.class-tab-btn:hover .class-crest-icon {
  transform: scale(1.1);
}

.class-showcase-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  padding: 32px;
  background: linear-gradient(180deg, #10131d 0%, #080a10 100%);
  border: 1px solid #1c2233;
  border-top: 2px solid #d4a34b;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.class-3d-stage-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, #151a29 0%, #080a10 85%);
  border: 1px solid #20283d;
  border-top: 2px solid #d4a34b;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.class-3d-viewer-canvas {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.canvas-drag-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: rgba(6, 8, 13, 0.85);
  border: 1px solid #1c2233;
  border-radius: 12px;
  color: #8c909e;
  font-size: 11px;
  pointer-events: none;
}

.tier-selector-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.tier-label-title {
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tier-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tier-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  background: #0d101a;
  border: 1px solid #1a2030;
  border-radius: 2px;
  color: #7d8294;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-btn .tier-num {
  font-family: Philosopher, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.tier-btn .tier-name {
  font-size: 11px;
}

.tier-btn.is-active,
.tier-btn:hover {
  background: #1c2438;
  border-color: #ffdda9;
  color: #ffdda9;
  box-shadow: 0 0 10px rgba(212, 163, 75, 0.2);
}

/* ==========================================================================
   MU Online Authentic Paperdoll / Mini Inventory
   ========================================================================== */

.mu-paperdoll-panel {
  padding: 16px;
  background: linear-gradient(180deg, #101422 0%, #080a10 100%);
  border: 1px solid #1e2638;
  border-radius: 4px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
}

.tier-glow-3 {
  border-color: #d4a34b;
  box-shadow: 0 0 24px rgba(212, 163, 75, 0.25), inset 0 0 16px rgba(212, 163, 75, 0.08);
}

.tier-glow-2 {
  border-color: #38b6ff;
  box-shadow: 0 0 20px rgba(56, 182, 255, 0.2), inset 0 0 12px rgba(56, 182, 255, 0.06);
}

.tier-glow-1 {
  border-color: #2a3348;
}

.paperdoll-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1c2233;
}

.paperdoll-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paperdoll-gem .mu-svg-icon {
  width: 18px;
  height: 18px;
}

.paperdoll-title {
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.paperdoll-tip-hint {
  color: #6c7284;
  font-size: 11px;
  font-style: italic;
}

.mu-doll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mu-doll-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 64px;
  background: #090c14;
  border: 1px solid #1f273b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
  padding: 4px;
  overflow: hidden;
}

.slot-silhouette-wrap svg {
  width: 26px;
  height: 26px;
  opacity: 0.35;
  transition: all 0.2s ease;
}

.mu-doll-slot.is-occupied {
  border-color: #3d4a6b;
  background: radial-gradient(circle at 50% 50%, #151b2a 0%, #080a10 100%);
}

.tier-glow-3 .mu-doll-slot.is-occupied {
  border-color: #d4a34b;
  box-shadow: inset 0 0 12px rgba(212, 163, 75, 0.35), 0 0 8px rgba(212, 163, 75, 0.25);
}

.tier-glow-2 .mu-doll-slot.is-occupied {
  border-color: #38b6ff;
  box-shadow: inset 0 0 12px rgba(56, 182, 255, 0.3), 0 0 6px rgba(56, 182, 255, 0.2);
}

.mu-doll-slot:hover {
  transform: translateY(-2px);
  border-color: #ffdda9;
  box-shadow: 0 0 14px rgba(255, 221, 169, 0.45), inset 0 0 10px rgba(255, 221, 169, 0.25);
}

.slot-item-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
}

.slot-item-img {
  max-width: 44px;
  max-height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
  transition: transform 0.2s ease;
}

.mu-doll-slot:hover .slot-item-img {
  transform: scale(1.12);
}

.slot-lvl-tag {
  position: absolute;
  top: 2px;
  right: 4px;
  font-family: Philosopher, monospace;
  font-size: 10px;
  font-weight: 700;
  color: #ffdda9;
  text-shadow: 0 0 4px #d4a34b, 0 1px 2px #000;
}

.slot-hover-label {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 8.5px;
  color: #636b80;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.mu-doll-slot:hover .slot-hover-label {
  color: #ffdda9;
}

.slot-ring2 {
  grid-column: 3;
}

.paperdoll-flavor-text {
  margin: 0;
  color: #8c909e;
  font-size: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   MU Online Authentic Floating Item Tooltip
   ========================================================================== */

.mu-floating-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  transform: translate3d(0, 0, 0);
}

.mu-floating-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.mu-item-tooltip-box {
  width: 260px;
  padding: 14px 16px;
  background: rgba(8, 10, 16, 0.97);
  border: 1px solid #536b9c;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(83, 107, 156, 0.45);
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  backdrop-filter: blur(10px);
}

.mu-tip-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-bottom: 8px;
  background: radial-gradient(circle at 50% 50%, rgba(212, 163, 75, 0.15) 0%, transparent 70%);
  border-radius: 4px;
}

.mu-tip-item-img {
  max-height: 48px;
  max-width: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 221, 169, 0.6));
}

.mu-tip-header {
  font-family: Philosopher, Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-align: center;
}

.mu-tip-name-exc {
  color: #1aff80;
  text-shadow: 0 0 8px rgba(26, 255, 128, 0.6);
}

.mu-tip-name-normal {
  color: #ffffff;
}

.mu-tip-type {
  color: #8c909e;
  font-size: 11px;
  text-align: center;
  margin-bottom: 6px;
}

.mu-tip-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #2a354d 50%, transparent 100%);
  margin: 6px 0;
}

.mu-tip-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mu-tip-stat-row {
  color: #c5c8d4;
  font-size: 11.5px;
}

.mu-tip-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mu-tip-opt-row {
  font-size: 11.5px;
}

.mu-tip-opt-blue {
  color: #80b3ff;
  text-shadow: 0 0 4px rgba(128, 179, 255, 0.4);
}

.mu-tip-opt-luck {
  color: #80b3ff;
  font-weight: 600;
}

.mu-tip-opt-exc {
  color: #1aff80;
  text-shadow: 0 0 4px rgba(26, 255, 128, 0.4);
}

.mu-tip-harmony {
  color: #ffcc1a;
  font-size: 11.5px;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(255, 204, 26, 0.4);
}

.class-info-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.class-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.class-role-badge {
  color: #d4a34b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.class-hero-name {
  margin: 2px 0 0;
  color: #fff;
  font-family: Philosopher, Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.class-difficulty-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.diff-title {
  color: #727582;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.diff-stars {
  color: #ff9000;
  font-size: 16px;
  letter-spacing: 2px;
}

.class-summary-text {
  margin: 0;
  color: #c5c8d4;
  font-size: 14px;
  line-height: 1.6;
}

.class-stats-grid {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #080a10;
  border: 1px solid #161b28;
  border-radius: 3px;
}

.stat-bar-row {
  display: grid;
  gap: 4px;
}

.stat-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.stat-bar-header span {
  color: #8c909e;
}

.stat-bar-header strong {
  color: #ffdda9;
  font-family: Philosopher, sans-serif;
}

.stat-track {
  height: 6px;
  background: #141824;
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-atk {
  background: linear-gradient(90deg, #e63946 0%, #ff9f1c 100%);
  box-shadow: 0 0 8px rgba(255, 159, 28, 0.5);
}

.stat-def {
  background: linear-gradient(90deg, #1d3557 0%, #457b9d 100%);
  box-shadow: 0 0 8px rgba(69, 123, 157, 0.5);
}

.stat-spd {
  background: linear-gradient(90deg, #2a9d8f 0%, #22c55e 100%);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.stat-sup {
  background: linear-gradient(90deg, #7209b7 0%, #b5179e 100%);
  box-shadow: 0 0 8px rgba(181, 23, 158, 0.5);
}

.stat-rng {
  background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

.class-skills-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skills-box-title {
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  padding: 4px 10px;
  background: #141826;
  border: 1px solid #20283d;
  border-radius: 2px;
  color: #c5c8d4;
  font-size: 12px;
  font-weight: 600;
}

.class-pvp-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(28, 56, 121, 0.15);
  border-left: 3px solid #d4a34b;
  color: #d8d0cc;
  font-size: 13px;
  line-height: 1.45;
}

.pvp-badge-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffdda9;
}

/* ==========================================================================
   Hall of Fame (Ranking 3D Showcase)
   ========================================================================== */

.ranking-showcase-section {
  padding: 48px 0;
}

.ranking-showcase-card {
  padding: 32px;
  background: linear-gradient(180deg, #10131d 0%, #080a10 100%);
  border: 1px solid #1c2233;
  border-top: 2px solid #d4a34b;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.ranking-showcase-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ==========================================================================
   Main Grid (Twin Panels: News & Ranking)
   ========================================================================== */

.twin {
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding: 10px 0 28px;
}

.news-panel,
.rank-panel {
  display: flex;
  flex-direction: column;
  width: calc(50% - 14px);
  min-height: 0;
  padding: 24px 28px 24px;
  background: linear-gradient(180deg, #10131d 0%, #090b12 100%);
  border: 1px solid #1c2233;
  border-top: 2px solid #3b4866;
  border-radius: 3px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.news-panel h2 {
  margin-bottom: 16px;
}

.news-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(14, 17, 26, 0.6);
  border: 1px solid #181d2c;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.news-link:hover {
  background: #141826;
  border-color: #d4a34b;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.news-title {
  color: #e8e8ef;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-link:hover .news-title {
  color: #ffdda9;
}

.news-link time {
  color: #696c7a;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   Ranking 3D Podium & Table
   ========================================================================== */

.rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rank-head h2 {
  margin-bottom: 0;
}

.rank-head h2::after {
  display: none;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 0;
}

.rank-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid #22293d;
  border-radius: 2px;
  background: linear-gradient(180deg, #161b29 0%, #0d101a 100%);
  color: #7d8294;
  font: 700 13px/1 Philosopher, Georgia, serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rank-tab-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.rank-tab.is-active,
.rank-tab:hover {
  border-color: #d4a34b;
  color: #ffdda9;
  background: linear-gradient(180deg, #222a3d 0%, #121624 100%);
  box-shadow: 0 0 12px rgba(212, 163, 75, 0.2), inset 0 1px 0 rgba(255, 221, 169, 0.2);
}

.rank-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rank-podium {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.rank-podium-viewer {
  display: block;
  width: 100%;
  height: 520px;
  border: 1px solid #1c2233;
  border-radius: 3px;
  background: #080a10;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}

.podium-labels {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 100px;
  padding: 12px 10px 14px;
  background: linear-gradient(180deg, #141826 0%, #0b0d14 100%);
  border: 1px solid #202638;
  border-radius: 3px;
  color: #ffdda9;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.podium-step:hover {
  border-color: #ffdda9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 163, 75, 0.2);
}

.podium-step--first {
  min-height: 124px;
  background: linear-gradient(180deg, #1c2338 0%, #0e121c 100%);
  border: 1px solid #d4a34b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 163, 75, 0.25);
}

.rank-medal {
  width: 36px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.podium-step--first .rank-medal {
  width: 46px;
  height: 54px;
}

.podium-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.podium-name {
  color: #fff;
  font: 700 14px/1.2 Philosopher, Georgia, serif;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.podium-meta {
  color: #8c909e;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-word;
}

/* ==========================================================================
   Guilds Ranking Table
   ========================================================================== */

.rank-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid #1c2233;
  border-radius: 3px;
  overflow: hidden;
}

.rank-table td {
  padding: 12px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-table .rank-col {
  width: 54px;
  text-align: center;
  font-weight: 700;
}

.rank-table .name-col {
  font-weight: 600;
  color: #fff;
}

.rank-table .score-col {
  width: 80px;
  text-align: right;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-weight: 700;
  font-size: 15px;
}

.rank-table thead tr {
  background: #141826;
  border-bottom: 1px solid #202638;
}

.rank-table thead td {
  color: #8c909e;
  font-family: Philosopher, Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px;
}

.rank-table tbody tr {
  background: #0d101a;
  border-bottom: 1px solid #141826;
  transition: all 0.2s ease;
}

.rank-table tbody tr:nth-child(even) {
  background: #090c14;
}

.rank-table tbody tr:hover {
  background: #171d2e;
  color: #fff;
}

/* ==========================================================================
   How to Play (Sem Download) Steps & Lower Sections
   ========================================================================== */

.how-to-play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0 36px;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: linear-gradient(180deg, #10131d 0%, #090b12 100%);
  border: 1px solid #1c2233;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffdda9 0%, #d4a34b 100%);
  border-radius: 2px;
  color: #0b0d14;
  font: 700 16px/1 Philosopher, sans-serif;
  box-shadow: 0 0 12px rgba(212, 163, 75, 0.4);
}

.step-title {
  margin: 0 0 6px;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.step-desc {
  margin: 0;
  color: #8c909e;
  font-size: 13px;
  line-height: 1.45;
}

.lower {
  padding: 28px 0;
  color: #8c909e;
}

.lower-card {
  padding: 24px 28px;
  background: linear-gradient(180deg, #10131d 0%, #090b12 100%);
  border: 1px solid #1c2233;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.rules-body {
  white-space: pre-line;
  line-height: 1.6;
}

/* ==========================================================================
   Account & Forms
   ========================================================================== */

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 840px;
  margin: 20px 0;
}

.account-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(180deg, #10131d 0%, #090b12 100%);
  border: 1px solid #1c2233;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.account-form label {
  display: grid;
  gap: 6px;
  color: #c5c8d4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.account-form input {
  height: 42px;
  padding: 0 14px;
  border: 1px solid #22293d;
  border-radius: 2px;
  background: #080a10;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.account-form input:focus {
  border-color: #d4a34b;
  box-shadow: 0 0 10px rgba(212, 163, 75, 0.3);
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: #ffdda9;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
  flex: 0 0 auto;
  margin-top: 48px;
  padding: 28px 0 44px;
  background: #05060a;
  border-top: 1px solid #141826;
  color: #5d6170;
}

.foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foot strong {
  font-family: Philosopher, Georgia, serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: #ffdda9;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .class-showcase-panel {
    grid-template-columns: 1fr;
  }

  .twin {
    flex-direction: column;
  }

  .news-panel,
  .rank-panel {
    width: 100%;
  }

  .server-rates-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-to-play-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px 20px 20px;
    background: #06080d;
    border-bottom: 1px solid #1c2233;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
  }

  .menu.is-open {
    display: flex;
  }
}

@media (max-width: 820px) {

  .hero-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-play {
    width: 100%;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .server-rates-bar {
    grid-template-columns: 1fr 1fr;
  }

  .hero-highlights-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SUBPAGE COMPACT HEADER & BREADCRUMBS
   ========================================================================== */

.subpage-header-shell {
  position: relative;
  width: 100%;
  padding: 44px 0 32px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(30, 58, 118, 0.35) 0%, transparent 70%),
    linear-gradient(180deg, #0d101a 0%, #06080d 100%);
  border-bottom: 1px solid #1c2234;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 32px;
}

.subpage-ambient {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 163, 75, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.5;
}

.subpage-header-inner {
  position: relative;
  z-index: 1;
}

.subpage-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #7d8496;
}

.subpage-breadcrumbs a {
  color: #a4adbd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.subpage-breadcrumbs a:hover {
  color: #ffdda9;
}

.subpage-sep {
  color: #3e475e;
}

.subpage-current {
  color: #d4a34b;
  font-weight: 600;
}

.subpage-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.subpage-title {
  margin: 4px 0 6px;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 16px rgba(212, 163, 75, 0.4);
}

.subpage-subtitle {
  margin: 0;
  color: #8b92a5;
  font-size: 14px;
}

/* ==========================================================================
   DEDICATED FULL RANKINGS PAGE & 3D CHARACTER PREVIEW
   ========================================================================== */

.rankings-page-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}

.ranking-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ranking-stat-card {
  padding: 16px 20px;
  background: linear-gradient(180deg, #121624 0%, #0a0d15 100%);
  border: 1px solid #1c2234;
  border-left: 3px solid #d4a34b;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card-title {
  color: #7b8499;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card-val {
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.ranking-table-card {
  background: linear-gradient(180deg, #10131e 0%, #07090f 100%);
  border: 1px solid #1c2234;
  border-top: 2px solid #d4a34b;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.ranking-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1a2030;
}

.ranking-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-filter-btn {
  padding: 6px 14px;
  border: 1px solid #22293d;
  border-radius: 2px;
  background: #111422;
  color: #8b92a5;
  font-family: Philosopher, Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rank-filter-btn.is-active,
.rank-filter-btn:hover {
  border-color: #d4a34b;
  background: #1d2438;
  color: #ffdda9;
  box-shadow: 0 0 8px rgba(212, 163, 75, 0.25);
}

.full-rank-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.full-rank-table th {
  padding: 12px 14px;
  background: #0d101a;
  border-bottom: 1px solid #222a3e;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.full-rank-table td {
  padding: 14px;
  border-bottom: 1px solid #141824;
  color: #c0c6d8;
  font-size: 13px;
  vertical-align: middle;
}

.full-rank-table tbody tr {
  transition: background 0.15s ease;
}

.full-rank-table tbody tr:hover {
  background: rgba(212, 163, 75, 0.04);
}

.rank-medal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: Philosopher, Georgia, serif;
  font-weight: 700;
  font-size: 13px;
  background: #141828;
  border: 1px solid #28334e;
  color: #a0a8be;
}

.rank-medal-pill.gold {
  background: linear-gradient(135deg, #ffdda9 0%, #d4a34b 50%, #8a5d14 100%);
  color: #0b0d14;
  border-color: #ffdda9;
  box-shadow: 0 0 10px rgba(212, 163, 75, 0.5);
}

.rank-medal-pill.silver {
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  color: #0b0d14;
  border-color: #e2e8f0;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.4);
}

.rank-medal-pill.bronze {
  background: linear-gradient(135deg, #fcd34d 0%, #b45309 100%);
  color: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(180, 83, 9, 0.4);
}

.player-cell-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-class-crest {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-name-text {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.player-class-sub {
  font-size: 11px;
  color: #7d8496;
}

.player-guild-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #111422;
  border: 1px solid #1e2538;
  border-radius: 2px;
  color: #d4a34b;
  font-size: 11.5px;
  font-weight: 600;
}

.compact-gear-strip {
  display: flex;
  align-items: center;
  gap: 4px;
}

.compact-gear-slot {
  width: 32px;
  height: 32px;
  background: #0a0c14;
  border: 1px solid #1e2436;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.compact-gear-slot img {
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
}

.compact-gear-slot.is-glowing {
  border-color: #d4a34b;
  box-shadow: inset 0 0 6px rgba(212, 163, 75, 0.3);
}

.btn-view-3d {
  padding: 6px 14px;
  border: 1px solid #d4a34b;
  border-radius: 2px;
  background: linear-gradient(180deg, #1c2234 0%, #0f131f 100%);
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-3d:hover {
  background: linear-gradient(180deg, #d4a34b 0%, #8a5d14 100%);
  color: #0b0d14;
  box-shadow: 0 0 10px rgba(212, 163, 75, 0.4);
}

/* 3D Character Modal / Drawer */
.modal-3d-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-3d-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-3d-card {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(180deg, #121522 0%, #080a10 100%);
  border: 1px solid #1c2233;
  border-top: 3px solid #d4a34b;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 163, 75, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-3d-backdrop.is-open .modal-3d-card {
  transform: scale(1);
}

.modal-3d-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #0d101a;
  border-bottom: 1px solid #1a2030;
}

.modal-char-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-char-name {
  margin: 0;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.modal-char-sub {
  color: #8b92a5;
  font-size: 12px;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141828;
  border: 1px solid #222a3d;
  border-radius: 2px;
  color: #c0c6d8;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  border-color: #d4a34b;
  color: #ffdda9;
}

.modal-3d-stage {
  position: relative;
  width: 100%;
  height: 480px;
  background: #06080d;
}

.modal-3d-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-3d-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #0d101a;
  border-top: 1px solid #1a2030;
  font-size: 12px;
  color: #7b8499;
}

/* ==========================================================================
   REVAMPED ACCOUNT PORTAL (HIGH-END GOTHIC DASHBOARD)
   ========================================================================== */

.portal-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal-nav-card {
  background: linear-gradient(180deg, #10131e 0%, #07090f 100%);
  border: 1px solid #1c2234;
  border-top: 2px solid #d4a34b;
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #8b92a5;
  font-family: Philosopher, Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.portal-tab-btn:hover {
  background: #141828;
  color: #c0c6d8;
}

.portal-tab-btn.is-active {
  background: linear-gradient(180deg, #1d2438 0%, #101422 100%);
  border-color: #d4a34b;
  color: #ffdda9;
  box-shadow: 0 0 10px rgba(212, 163, 75, 0.2);
}

.portal-tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.portal-server-status-card {
  padding: 16px;
  background: #0a0d16;
  border: 1px solid #1a2030;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.portal-status-row {
  display: flex;
  justify-content: space-between;
  color: #7b8499;
}

.portal-status-row strong {
  color: #ffdda9;
}

.portal-main-area {
  background: linear-gradient(180deg, #10131e 0%, #07090f 100%);
  border: 1px solid #1c2234;
  border-top: 2px solid #d4a34b;
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  min-height: 480px;
}

.portal-panel {
  display: none;
  animation: portalFadeIn 0.25s ease forwards;
}

.portal-panel.is-active {
  display: block;
}

@keyframes portalFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.portal-panel-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1a2030;
}

.portal-panel-title {
  margin: 0 0 6px;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-panel-desc {
  margin: 0;
  color: #8b92a5;
  font-size: 13px;
  line-height: 1.5;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.portal-form-card {
  padding: 24px;
  background: rgba(12, 15, 24, 0.8);
  border: 1px solid #1c2234;
  border-radius: 3px;
}

.portal-form-card h3 {
  margin: 0 0 16px;
  color: #ffdda9;
  font-family: Philosopher, Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.portal-field label {
  color: #a4adbd;
  font-size: 12px;
  font-weight: 600;
}

.portal-field input {
  padding: 10px 14px;
  background: #080a12;
  border: 1px solid #222a3e;
  border-radius: 2px;
  color: #fff;
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-field input:focus {
  outline: none;
  border-color: #d4a34b;
  box-shadow: 0 0 8px rgba(212, 163, 75, 0.3);
}

.portal-status-alert {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  display: none;
}

.portal-status-alert.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.portal-status-alert.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

@media (max-width: 900px) {
  .portal-container {
    grid-template-columns: 1fr;
  }
  .ranking-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Landing extensions preserve the established layout and interaction contracts. */

.lang .is-active {
  color: #ffdda9;
  font: 700 12px/1 Philosopher, sans-serif;
  letter-spacing: 1px;
}

.server-rates-bar {
  position: relative;
  z-index: 10;
}

.fast-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fast-help {
  margin-top: -8px;
  color: #727582;
  font-size: 10px;
}

.fast-field input[aria-invalid="true"] {
  border-color: #ef756d;
}

.fast-terms {
  padding: 10px 12px;
  border: 1px solid #1c2233;
  background: rgb(8 10 16 / 65%);
}

.fast-terms strong {
  color: #d4a34b;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fast-terms p {
  margin: 5px 0 0;
  color: #727582;
  font-size: 10px;
  line-height: 1.45;
}

.fast-terms-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #a4a8b5;
  font-size: 11px;
  cursor: pointer;
}

.fast-terms-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #d4a34b;
}

#register-form button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.fast-status-msg[data-kind="success"] {
  color: #6ee7b7;
}

.fast-status-msg[data-kind="error"] {
  color: #fca5a5;
}

.register-success-box[hidden] {
  display: none;
}

.rank-podium,
.class-3d-stage-wrapper {
  position: relative;
}

.rank-podium-viewer:not([src]),
.showroom-frame:not([src]) {
  background:
    radial-gradient(circle at 50% 45%, rgb(36 43 65 / 70%), transparent 35%),
    #080a10;
}

.showroom-state {
  margin: 0;
  color: #7b8499;
  font-size: 11px;
  text-align: center;
}

.showroom-state[data-state="ready"] {
  color: #6ee7b7;
}

.showroom-state[data-state="error"],
.showroom-state[data-state="omitted"] {
  color: #d4a34b;
}

.class-3d-stage-wrapper > .showroom-state {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgb(42 49 68 / 80%);
  background: rgb(8 10 16 / 82%);
  pointer-events: none;
}

.ranking-availability {
  color: #7b8499;
  font-size: 12px;
  text-align: center;
}

.class-3d-stage-wrapper > .showroom-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 560px) {
  .top-panel-inner > .btn-sm {
    display: none;
  }

  .fast-field-grid {
    grid-template-columns: 1fr;
  }

  .podium-labels {
    grid-template-columns: 1fr;
  }
}
