
:root {
  --bg: #02070d;
  --bg-2: #06111a;

  --surface: rgba(5, 14, 22, 0.94);
  --surface-soft: rgba(7, 20, 31, 0.90);
  --surface-solid: #081722;

  --gold: #d8b45a;
  --gold-strong: #f0c96c;
  --gold-light: #ffe6a3;

  --ember: #2f89a8;
  --ember-dark: #155c7a;

  --success: #58d7bd;
  --danger: #ff786d;

  --text: #f8f4e8;
  --text-soft: #c5d0d6;
  --muted: #83939e;

  --line: rgba(109, 190, 221, 0.18);
  --line-strong: rgba(216, 180, 90, 0.38);

  --shadow: 0 25px 70px rgba(0, 0, 0, 0.56);

  --container: 1200px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

html {
  background: #02070d;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  position: relative;
  background: transparent;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--gold-strong);
  color: #1b0c00;
}

a {
  color: inherit;
}

img {
  max-width: 25%;
  display: inline-block;

}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #02070d;
}

/* .animated-background-image {
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    url("assets/background.png")
    center center / cover
    no-repeat;

  opacity: .65;

  animation:
    oddysseyBackgroundMove 45s
    ease-in-out
    infinite alternate;

  will-change: transform;
} */

.animated-background-video {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 50% center;

  opacity: .65;

  pointer-events: none;
}

.background-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 38% 28%,
      rgba(22, 112, 150, .16) 0%,
      rgba(2, 7, 13, .42) 48%,
      rgba(1, 5, 9, .92) 100%
    ),
    linear-gradient(
      135deg,
      rgba(30, 136, 175, .08) 0%,
      rgba(0, 0, 0, 0) 52%,
      rgba(216, 180, 90, .05) 100%
    );
}

#ember-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: .72;
}

@keyframes oddysseyBackgroundMove {
  0% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.09) translate3d(-14px, -8px, 0);
  }

  100% {
    transform: scale(1.05) translate3d(12px, 6px, 0);
  }
}

.ambient-bg::before,
.ambient-bg::after {
  display: none;
}

/* .ambient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
} */

/* .ambient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -15%, rgba(255, 205, 91, .12), transparent 36rem),
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .012), transparent 70%);
} */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;

  background:
    radial-gradient(
      circle at 50% 45%,
      #0b2a3a 0%,
      #04101a 42%,
      #010509 76%
    );

  transition: opacity .55s ease, visibility .55s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.loader-content img {
  width: min(520px, 80vw);
  filter:
    drop-shadow(0 18px 32px rgba(0,0,0,.8))
    drop-shadow(0 0 34px rgba(242,170,22,.35));
  animation: loaderPulse 1.7s ease-in-out infinite;
}

.loader-content small {
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  letter-spacing: .34em;
}

.loader-bar {
  width: 180px;
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.loader-bar span {
  display: block;
  width: 54%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ember), var(--gold-strong), transparent);
  animation: loaderLine 1.15s linear infinite;
}

@keyframes loaderPulse {
  50% { transform: scale(1.025); filter: drop-shadow(0 18px 36px rgba(0,0,0,.85)) drop-shadow(0 0 44px rgba(255,200,62,.48)); }
}

@keyframes loaderLine {
  from { transform: translateX(-120%); }
  to { transform: translateX(220%); }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.scrolled,
.site-header.subpage-header {
  border-bottom: 1px solid var(--line);
  background: rgba(2, 7, 13, .94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo {
  width: 500px;
  height: 72px;
  object-fit: contain;
  filter:
    drop-shadow(0 7px 15px rgba(0,0,0,.72))
    drop-shadow(0 0 16px rgba(242,170,22,.18));
  transition: transform .25s ease, filter .25s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.015);
  filter:
    drop-shadow(0 8px 17px rgba(0,0,0,.78))
    drop-shadow(0 0 24px rgba(255,200,62,.28));
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.account-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.account-greet {
  color: var(--text-soft);
  font-size: .78rem;
}

.account-greet strong {
  color: var(--gold-strong, #ffc83e);
  font-family: Cinzel, Georgia, serif;
  font-size: .8rem;
}

.account-logout {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}

.account-logout:hover {
  border-color: #ff8d79;
  color: #ff8d79;
}

.primary-nav a {
  position: relative;
  padding: 12px 0;
  color: #e9ddc8;
  font-family: Cinzel, Georgia, serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--ember), var(--gold-strong));
  transition: width .25s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--gold-light);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
}

.primary-nav a {
  position: relative;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #e9ddc8;
  font-family: Cinzel, Georgia, serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color .25s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  border-color: rgba(240, 201, 108, .48);

  background:
    linear-gradient(
      135deg,
      rgba(21, 92, 122, .96),
      rgba(47, 137, 168, .92) 55%,
      rgba(216, 180, 90, .92)
    );

  color: #ffffff;

  box-shadow:
    0 8px 24px rgba(17, 91, 121, .32),
    0 0 18px rgba(47, 137, 168, .14);

  transform: translateY(-2px);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: var(--gold-light);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 74px) 0 102px;
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-logo {
  width: min(1200px, 88vw);
  margin-bottom: 8px;
  position: relative;
  top: -50px;

  filter:
    drop-shadow(0 28px 38px rgba(0,0,0,.88))
    drop-shadow(0 0 34px rgba(215,88,27,.33))
    drop-shadow(0 0 16px rgba(255,200,62,.18));

  animation: heroFloat 5s ease-in-out infinite;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: -8px 0 14px;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0,0,0,.9);
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-kicker::after {
  transform: rotate(180deg);
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: Cinzel, Georgia, serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(255, 225, 150, .52);

  background:
    linear-gradient(
      135deg,
      #155c7a,
      #2f89a8 52%,
      #d8b45a
    );

  color: #ffffff;

  box-shadow:
    0 12px 30px rgba(18, 105, 139, .34);
}

.button-primary:hover {
  box-shadow:
    0 16px 36px rgba(47, 137, 168, .40),
    0 0 20px rgba(216, 180, 90, .16);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(3, 14, 23, .80);
  color: var(--gold-light);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

.button-secondary:hover {
  border-color: #61b8d7;
  background: rgba(10, 42, 57, .92);
}

.button-danger {
  border-color: rgba(240,107,82,.4);
  background: rgba(126,33,14,.45);
  color: #ffd8cf;
}

.button-small {
  min-height: 38px;
  padding-inline: 16px;
  font-size: .68rem;
}

@keyframes heroFloat {
  50% { transform: translateY(-8px); }
}

/* .hero-rune,
.hero-rune-two {
  position: absolute;
  width: 470px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,200,62,.09);
  border-radius: 50%;
  animation: slowSpin 32s linear infinite;
}

.hero-rune {
  left: -190px;
  top: 145px;
}

/* .hero-rune-two {
  right: -220px;
  bottom: 30px;
  width: 560px;
  animation-direction: reverse;
  animation-duration: 42s;
} 

.hero-rune-logo {
  position: absolute;
  right: -220px;
  bottom: 30px;
  z-index: 1;

  width: 560px;
  height: 560px;

  pointer-events: none;
  opacity: .16;

  animation: heroDragonSpin 42s linear infinite;
  transform-origin: center center;
}

.hero-rune-logo img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: contain;
  object-position: center;

  max-width: none;

  filter:
    drop-shadow(0 0 25px rgba(242, 170, 22, .25))
    drop-shadow(0 0 55px rgba(215, 88, 27, .12));
}

@keyframes heroDragonSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-rune::before,
.hero-rune-two::before {
  content: "";
  position: absolute;
  inset: 45px;
  border: 1px dashed rgba(255,200,62,.08);
  border-radius: 50%;
}


@keyframes slowSpin {
  to { transform: rotate(360deg); }
} */

/* Compact sub-page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  align-items: end;
  padding: calc(var(--header-height) + 76px) 0 68px;
}

.page-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:none;
}

.page-hero-logo {
  display: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--gold-light);
  text-decoration: none;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.page-hero h1 span {
  background: linear-gradient(110deg, #fff8df, var(--gold-light), var(--gold-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--text-soft);
}

/* Stats */
.stats-bar {
  position: relative;
  z-index: 5;
  margin-top: -54px;
  padding-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;

  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;

  padding: 22px;

  border: 1px solid var(--line);
  border-radius: var(--radius-md);

  background:
    linear-gradient(
      145deg,
      rgba(6, 20, 31, .96),
      rgba(3, 10, 17, .94)
    );

  box-shadow: 0 16px 34px rgba(0, 0, 0, .42);
  backdrop-filter: blur(16px);

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .04;
  filter: blur(8px);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px rgba(0,0,0,.46), 0 0 18px rgba(242,170,22,.08);
}

.stat-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(216, 180, 90, .30);
  border-radius: 12px;

  background: rgba(47, 137, 168, .13);
  color: var(--gold-strong);
}

.stat-icon .icon {
  width: 24px;
  height: 24px;
}

.stat-card strong {
  display: block;
  color: #fff;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.stat-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.server-live {
  color: var(--success) !important;
}

.server-live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

/* Main layouts */
.content-section {
  padding: 26px 0 96px;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.content-stack,
.sidebar {
  display: grid;
  gap: 24px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 26px;

  border: 1px solid var(--line);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(5, 15, 24, .95),
      rgba(3, 10, 17, .94)
    );

  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: .78;
}

.panel::before {
  top: 12px;
  left: 12px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.panel::after {
  top: 12px;
  right: 12px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.panel-heading h2 {
  font-size: 1.35rem;
}

.panel-heading small {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.panel-intro {
  margin: -6px 0 24px;
  color: var(--muted);
  font-size: .9rem;
}

.section-title {
  margin: 0 0 24px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section-title span {
  color: var(--gold-strong);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* News */
.news-list {
  display: grid;
  gap: 16px;
}

.news-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: start;

  padding: 20px;

  border: 1px solid rgba(109, 190, 221, .14);
  border-radius: 13px;

  background: rgba(3, 13, 21, .72);

  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 186, 220, .40);
  background: rgba(47, 137, 168, .07);
}

.news-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,213,107,.44);
  border-radius: 50%;
  background:
  linear-gradient(
    145deg,
    #155c7a,
    #2f89a8 55%,
    #d8b45a
  );
  color: #fff9e7;
  font-family: Cinzel, Georgia, serif;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(215,88,27,.24);
}

.news-card h3 {
  margin: 0 0 5px;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: 1rem;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .7rem;
}

.news-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: .86rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: center;
  color: var(--gold-strong);
  font-family: Cinzel, Georgia, serif;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--gold-light);
}

.text-link .icon {
  width: 14px;
  height: 14px;
}

/* Character strip */
.character-section {
  padding: 20px 0 30px;
}

.character-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.character-heading h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.character-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.character-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
  linear-gradient(
    180deg,
    transparent 18%,
    rgba(3, 20, 31, .18) 46%,
    rgba(2, 8, 14, .98) 100%
  ),
  var(--character-image),
  radial-gradient(
    circle at 50% 20%,
    #16445a,
    #030b12 68%
  );
  background-position: var(--character-position, center);
  background-size: cover;
  box-shadow: 0 18px 42px rgba(0,0,0,.38);
  isolation: isolate;

  transition:
    transform .45s cubic-bezier(.16, 1, .3, 1),
    border-color .35s ease,
    box-shadow .45s ease;

  will-change: transform;
}

.character-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      135deg,
      rgba(47, 137, 168, .13),
      transparent 50%,
      rgba(216, 180, 90, .08)
    ),
    linear-gradient(
      180deg,
      transparent,
      rgba(0, 0, 0, .88)
    );
}

.character-card:hover {
  transform: translateY(-30px) scale(1.06);
  border-color: #55b4d6;

  box-shadow:
    0 40px 80px rgba(0, 0, 0, .75),
    0 0 40px rgba(47, 137, 168, .30);

  z-index: 50;
}

.character-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.character-card h3 {
  margin: 0 0 6px;
  color: white;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.28rem;
}

.character-card p {
  margin: 0;
  color: #d7c9ae;
  font-size: .78rem;
}

.character-card:hover::before {
  background:
    linear-gradient(135deg, rgba(215,88,27,.18), transparent 45%, rgba(242,170,22,.16)),
    linear-gradient(180deg, transparent, rgba(0,0,0,.82));
}

.class-emblem {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,200,62,.32);
  border-radius: 50%;
  background: rgba(4,2,1,.68);
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,205,91,.09);
  border-radius: 12px;
}

.rank-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.rank-table th,
.rank-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.045);
}

.rank-table th {
  background: rgba(0,0,0,.28);
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: default;
}

.rank-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.rank-table th[data-sort]:hover {
  color: white;
}

.rank-table td {
  color: var(--text-soft);
  font-size: .82rem;
}

.rank-table tbody tr {
  transition: background .2s ease;
}

.rank-table tbody tr:hover {
  background: rgba(242,170,22,.035);
}

.rank-table tbody tr:last-child td {
  border-bottom: 0;
}

.rank-number {
  color: var(--gold-strong) !important;
  font-family: Cinzel, Georgia, serif;
  font-weight: 900;
}

.rank-one {
  color: #ffe27a !important;
  text-shadow: 0 0 12px rgba(255,205,91,.34);
}

.class-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(255,205,91,.15);
  border-radius: 999px;
  background: rgba(242,170,22,.05);
  color: #e8d9bd;
  font-size: .68rem;
  font-weight: 700;
}

.status-pill.online {
  color: #a8e8ad;
  border-color: rgba(117,209,122,.25);
  background: rgba(117,209,122,.06);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0,0,0,.24);
}

.tab-button {
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: Cinzel, Georgia, serif;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-button:hover {
  color: var(--gold-light);
}

.tab-button.active {
  background:
    linear-gradient(
      135deg,
      #155c7a,
      #2f89a8
    );

  color: white;

  box-shadow:
    0 6px 16px rgba(21, 92, 122, .32);
}

/* Sidebar */
.sidebar .panel {
  padding: 22px;
}

.form-grid,
.form-stack {
  display: grid;
  gap: 14px;
}

.form-grid {
  grid-template-columns: repeat(2, 1fr);
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 26px;
  padding: 11px 13px;

  border: 1px solid rgba(96, 167, 195, .22);
  border-radius: 8px;

  background: rgba(1, 9, 15, .72);
  color: var(--text);

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #746a59;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(90, 190, 225, .68);
  background: rgba(1, 11, 18, .90);

  box-shadow:
    0 0 0 3px rgba(47, 137, 168, .12),
    0 0 16px rgba(47, 137, 168, .08);

  outline: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: .75rem;
}

.checkbox-row input {
  margin-top: 4px;
  accent-color: var(--ember);
}

.login-links {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  text-align: center;
  font-size: .72rem;
}

.login-links a {
  color: var(--gold);
  text-decoration: none;
}

.login-links a:hover {
  color: var(--gold-light);
}

.sidebar-stats {
  display: grid;
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.045);
  color: var(--muted);
  font-size: .76rem;
}

.sidebar-stat:last-child {
  border-bottom: 0;
}

.sidebar-stat strong {
  color: var(--gold-light);
}

.event-live {
  padding: 18px;

  border: 1px solid rgba(216, 180, 90, .26);
  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      rgba(15, 61, 81, .52),
      rgba(2, 10, 17, .82)
    );

  text-align: center;
}

.event-live small {
  color: var(--gold);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.event-live h4 {
  margin: 5px 0 7px;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.1rem;
}

.event-live strong {
  display: block;
  color: var(--success);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: .07em;
  text-shadow: 0 0 14px rgba(117,209,122,.23);
}

.event-live span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .68rem;
}

.event-list {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,205,91,.1);
  border-radius: 9px;
  background: rgba(0,0,0,.26);
  font-size: .72rem;
}

.event-row span {
  color: var(--text-soft);
}

.event-row strong {
  color: var(--gold);
  font-size: .68rem;
}

.community-card {
  text-align: center;
}

.community-card p {
  color: var(--muted);
  font-size: .78rem;
}

.discord-button {
  width: 100%;
}

/* Download page */
.download-hero-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;

  padding: 26px;

  border: 1px solid rgba(109, 190, 221, .24);
  border-radius: 15px;

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(216, 180, 90, .11),
      transparent 16rem
    ),
    linear-gradient(
      145deg,
      rgba(11, 48, 65, .72),
      rgba(2, 10, 17, .76)
    );
}

.download-hero-card h2 {
  margin: 0 0 10px;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.7rem;
}

.download-hero-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.file-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.meta-box {
  padding: 13px;
  border: 1px solid rgba(255,205,91,.1);
  border-radius: 9px;
  background: rgba(0,0,0,.25);
}

.meta-box small {
  display: block;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.meta-box strong {
  color: var(--gold-light);
  font-size: .82rem;
}

.download-mark {
  display: grid;
  place-items: center;
  min-height: 190px;
}

.download-mark .icon {
  width: 94px;
  height: 94px;
  color: var(--gold-strong);
  filter: drop-shadow(0 0 25px rgba(242,170,22,.22));
}

.utility-grid,
.patch-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.utility-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.utility-card,
.info-card,
.patch-card {
  padding: 18px;
  border: 1px solid rgba(255,205,91,.1);
  border-radius: 12px;
  background: rgba(0,0,0,.24);
}

.utility-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.utility-card h3,
.info-card h3,
.patch-card h3 {
  margin: 0 0 7px;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .9rem;
}

.utility-card h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.utility-card p,
.info-card p,
.patch-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .76rem;
}

.utility-card p {
  overflow-wrap: anywhere;
}

.utility-card .text-link {
  margin-top: auto;
  align-self: flex-start;
  white-space: normal;
  line-height: 1.25;
}

.notice {
  padding: 16px 18px;

  border-left: 3px solid #2f89a8;
  border-radius: 0 9px 9px 0;

  background:
    linear-gradient(
      135deg,
      rgba(47, 137, 168, .12),
      rgba(216, 180, 90, .04)
    );

  color: var(--text-soft);
  font-size: .82rem;
}

html[dir="rtl"] .notice {
  border-left: 0;
  border-right: 3px solid #2f89a8;
  border-radius: 9px 0 0 9px;
}

.notice strong {
  color: var(--gold-light);
}

/* Registration */
.register-shell {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 24px;
}

.register-benefits {
  display: grid;
  gap: 12px;
}

.benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(255,205,91,.09);
  border-radius: 10px;
  background: rgba(0,0,0,.22);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(242,170,22,.08);
  color: var(--gold-strong);
}

.benefit h3 {
  margin: 0 0 4px;
  color: var(--gold-light);
  font-size: .84rem;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
}

.password-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.password-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--danger);
  transition: width .2s ease, background .2s ease;
}

.password-label {
  color: var(--muted);
  font-size: .68rem;
}

/* Store */
.store-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255,200,62,.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(126,33,14,.25), rgba(242,170,22,.08)),
    rgba(0,0,0,.24);
}

.store-banner h2 {
  margin: 0 0 7px;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.4rem;
}

.store-banner p {
  margin: 0;
  color: var(--muted);
}

.cart-counter {
  min-width: 114px;
  padding: 13px 16px;
  border: 1px solid rgba(255,200,62,.22);
  border-radius: 10px;
  background: rgba(0,0,0,.3);
  text-align: center;
}

.cart-counter small {
  display: block;
  color: var(--muted);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cart-counter strong {
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.2rem;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.store-item {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255,205,91,.1);
  border-radius: 13px;
  background:
    radial-gradient(circle at 82% 12%, rgba(242,170,22,.08), transparent 9rem),
    rgba(0,0,0,.24);
  transition: transform .22s ease, border-color .22s ease;
}

.store-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255,200,62,.34);
}

.store-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255,200,62,.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(126,33,14,.3), rgba(242,170,22,.07));
  color: var(--gold-light);
  font-size: 1.8rem;
  box-shadow: inset 0 0 20px rgba(242,170,22,.04);
}

.store-item small {
  color: var(--ember);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.store-item h3 {
  margin: 5px 0 6px;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .95rem;
}

.store-item p {
  min-height: 48px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .74rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-row strong {
  color: white;
  font-family: Cinzel, Georgia, serif;
}

.buy-button {
  min-height: 34px;
  padding-inline: 12px;
  font-size: .62rem;
}

/* Voting */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.vote-card {
  padding: 20px;
  border: 1px solid rgba(255,205,91,.11);
  border-radius: 13px;
  background: rgba(0,0,0,.24);
}

.vote-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.vote-card h3 {
  margin: 0;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .95rem;
}

.reward-badge {
  padding: 4px 9px;
  border: 1px solid rgba(255,200,62,.22);
  border-radius: 999px;
  color: var(--gold);
  font-size: .62rem;
  font-weight: 900;
}

.vote-card p {
  color: var(--muted);
  font-size: .76rem;
}

/* News page */
.article-card {
  padding: 22px;
  border: 1px solid rgba(255,205,91,.1);
  border-radius: 13px;
  background: rgba(0,0,0,.23);
}

.article-card + .article-card {
  margin-top: 14px;
}

.article-card h2 {
  margin: 0 0 7px;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.3rem;
}

.article-card p {
  color: var(--text-soft);
  font-size: .86rem;
}

.article-card details {
  color: var(--muted);
  font-size: .82rem;
}

.article-card summary {
  color: var(--gold);
  cursor: pointer;
  font-weight: 800;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 58px 0 24px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0, rgba(242,170,22,.07), transparent 26rem),
    rgba(2,1,0,.62);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 42px;
  padding-bottom: 36px;
}

.footer-brand img {
  width: 250px;
  margin-bottom: 5px;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.75));
}

.footer-brand p {
  max-width: 350px;
  color: var(--muted);
  font-size: .78rem;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: .76rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.05);
  color: #736957;
  font-size: .68rem;
}

.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
}

/* Toast */
.toast {
  position: fixed;

  top: 24px;
  left: 50%;
  right: auto;
  bottom: auto;

  width: auto;
  min-width: 220px;
  max-width: min(400px, calc(100% - 32px));
  min-height: 56px;
  padding: 14px 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  transform: translate(-50%, -120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  border: 1px solid rgba(255, 78, 62, .85);
  border-left: 5px solid #ff4938;
  border-radius: 10px;

  background: linear-gradient(
    135deg,
    rgba(120, 17, 14, .98),
    rgba(50, 5, 4, .98)
  );

  color: #fff4f1;

  box-shadow:
    0 20px 55px rgba(0, 0, 0, .62),
    0 0 28px rgba(255, 55, 38, .22);

  font-size: .92rem;
  font-weight: 700;
  line-height: 1.5;

  transition:
    transform .38s ease,
    opacity .38s ease,
    visibility .38s ease;

  z-index: 999999;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.toast .icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;

  color: #ffd36a;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .primary-nav {
    gap: 16px;
  }
  .account-area {
    display: none;
  }

  .primary-nav a {
    font-size: .68rem;
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .utility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 78px;
  }

  .brand-logo {
    width: 156px;
    height: 62px;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8,5,2,.97);
    box-shadow: 0 25px 60px rgba(0,0,0,.62);
    backdrop-filter: blur(18px);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
  }

  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .primary-nav a {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .primary-nav a:not(.nav-cta)::after {
    display: none;
  }

  .primary-nav a:hover,
  .primary-nav a.active {
    background: rgba(242,170,22,.06);
  }

  .primary-nav .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: 590px;
    padding-top: calc(var(--header-height) + 58px);
  }

  .hero-logo {
    width: min(690px, 94vw);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar .community-card {
    grid-column: 1 / -1;
  }

  .register-shell,
  .download-hero-card {
    grid-template-columns: 1fr;
  }

  .download-mark {
    min-height: 110px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    min-height: 560px;
    padding-bottom: 88px;
  }

  .hero-kicker {
    font-size: .68rem;
    letter-spacing: .2em;
  }

  .hero-kicker::before,
  .hero-kicker::after {
    width: 28px;
  }

  .hero-copy {
    font-size: .88rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .page-hero {
    min-height: 345px;
  }

  .page-hero-logo {
    width: 80vw;
    opacity: .2;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 104px;
  }

  .character-heading,
  .panel-heading,
  .store-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    min-height: 320px;
  }

  .news-card {
    grid-template-columns: 48px 1fr;
  }

  .news-card .text-link {
    grid-column: 2;
    justify-self: start;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .patch-grid,
  .info-grid,
  .vote-grid,
  .store-grid,
  .utility-grid,
  .file-meta {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 21px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .button {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==============================
   Oddyssey Facebook Card
============================== */

.facebook-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  overflow: hidden;
  padding: 14px;

  border: 1px solid rgba(109, 190, 221, .22);
  border-radius: var(--radius-lg);

  background:
    radial-gradient(
      circle at 85% 8%,
      rgba(216, 180, 90, .07),
      transparent 150px
    ),
    linear-gradient(
      145deg,
      rgba(5, 18, 28, .98),
      rgba(2, 9, 16, .98)
    );

  box-shadow:
    0 22px 55px rgba(0, 0, 0, .50),
    inset 0 1px rgba(255, 255, 255, .025);

  backdrop-filter: blur(14px);
}

/* الزوايا الذهبية الخاصة بتصميم الموقع */

.facebook-card::before,
.facebook-card::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 18px;
  height: 18px;
  z-index: 2;
  pointer-events: none;
  opacity: .78;
}

.facebook-card::before {
  left: 12px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.facebook-card::after {
  right: 12px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* عنوان Facebook بألوان Oddyssey */

.facebook-heading {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-bottom: 11px;
  padding: 0 4px 12px;

  border-bottom: 1px solid var(--line);
  background: transparent;
}

.facebook-heading h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;

  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.facebook-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 19px;
  height: 19px;
  flex: 0 0 19px;

  border: 1px solid rgba(255, 200, 62, .3);
  border-radius: 50%;

  background: linear-gradient(
    145deg,
    var(--gold-strong),
    var(--gold)
  );

  color: #251104;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;

  box-shadow: 0 0 12px rgba(242, 170, 22, .16);
}

/* Facebook iframe container */

.facebook-widget-wrap {
  width: 276px;
  height: 450px;
  margin: 0 auto;

  overflow: hidden;
  border: 1px solid rgba(109, 190, 221, .24);
  border-radius: 7px;

  background: #fff;

  box-shadow:
    0 14px 30px rgba(0, 0, 0, .44),
    0 0 18px rgba(47, 137, 168, .10);
}

.facebook-widget {
  display: block;
  width: 276px;
  height: 450px;

  border: 0;
  border-radius: 6px;
  background: #fff;
}


.discord-widget-wrap {
  width: 100%;
  max-width: 340px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #2c2f33;
}

.discord-widget {
  display: block;
  width: 100%;
  height: 500px;
  margin: 0 auto;
  border: 0;
  background: #2c2f33;
}

/* ==============================
   Oddyssey Discord Community Card
============================== */

.discord-community-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  overflow: hidden;
  padding: 22px;

  border: 1px solid rgba(109, 190, 221, .22);
  border-radius: var(--radius-lg);

  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(216, 180, 90, .07),
      transparent 150px
    ),
    linear-gradient(
      145deg,
      rgba(5, 18, 28, .98),
      rgba(2, 9, 16, .98)
    );

  box-shadow:
    0 22px 55px rgba(0, 0, 0, .50),
    inset 0 1px rgba(255, 255, 255, .025);

  backdrop-filter: blur(14px);
}

/* Oddyssey decorative corners */

.discord-community-card::before,
.discord-community-card::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: .78;
}

.discord-community-card::before {
  left: 12px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.discord-community-card::after {
  right: 12px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* Main title above the widget */

.discord-community-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.discord-community-title h3 {
  margin: 0;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.discord-small-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid rgba(255, 200, 62, .25);
  border-radius: 6px;
  background: rgba(242, 170, 22, .07);
  color: var(--gold-strong);
  font-size: .72rem;
}

/* Inner Discord widget */

.discord-community-widget {
  overflow: hidden;

  border: 1px solid rgba(109, 190, 221, .18);
  border-radius: 9px;

  background:
    linear-gradient(
      180deg,
      rgba(3, 14, 23, .97),
      rgba(1, 7, 13, .99)
    );

  box-shadow:
    0 14px 30px rgba(0, 0, 0, .44),
    inset 0 0 22px rgba(47, 137, 168, .04);
}

/* Discord official-colored header only */

.discord-community-header {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 13px;

  background: linear-gradient(
    135deg,
    #5865f2,
    #4752c4
  );

  color: #fff;
  box-shadow: 0 8px 22px rgba(88, 101, 242, .22);
}

.discord-community-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-community-brand svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  color: #fff;
}

.discord-community-brand strong {
  color: #fff;
  font-family: Cinzel, Georgia, serif;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.discord-community-online {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;

  min-width: 0;
  flex: 0 0 auto;

  color: rgba(255, 255, 255, .92);
  font-size: .56rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.discord-community-online strong,
.discord-community-online span {
  display: inline;
  flex: 0 0 auto;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.discord-community-online strong {
  color: #fff;
  font-size: inherit;
}

/* Members area — Oddyssey theme */

.discord-members-section {
  padding: 14px 13px 10px;

  background:
    linear-gradient(
      180deg,
      rgba(2, 11, 18, .98),
      rgba(1, 7, 12, .99)
    );
}

.discord-members-label {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.discord-members-list {
  height: 125px;
  padding-right: 7px;
  overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color:
    rgba(242, 170, 22, .7)
    rgba(255, 255, 255, .045);
}

.discord-members-list::-webkit-scrollbar {
  width: 4px;
}

.discord-members-list::-webkit-scrollbar-track {
  border-radius: 20px;
  background: rgba(255, 255, 255, .045);
}

.discord-members-list::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: linear-gradient(
    var(--gold-strong),
    var(--ember)
  );
}

.discord-member {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 9px;
  padding: 4px 5px;
  border-radius: 7px;

  transition:
    background .2s ease,
    transform .2s ease;
}

.discord-member:hover {
  transform: translateX(2px);
  background: rgba(47, 137, 168, .10);
}

.discord-member-avatar-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.discord-member-avatar {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 205, 91, .15);
  border-radius: 50%;
  background: var(--surface-solid);
}

img.discord-member-avatar {
  max-width: 100%;
}

.discord-member-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid #090602;
  border-radius: 50%;
  background: #23a55a;
}

.discord-member-presence.idle {
  background: #f0b232;
}

.discord-member-presence.dnd {
  background: #f23f43;
}

.discord-member-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--text-soft);
  font-size: .66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-member-game {
  max-width: 75px;
  overflow: hidden;
  color: var(--muted);
  font-size: .51rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-loading-member,
.discord-empty-members {
  min-height: 105px;
  display: grid;
  place-items: center;
  padding: 15px;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.5;
  text-align: center;
}

/* Oddyssey-styled join button */

.discord-community-button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 13px 13px;

  border: 1px solid var(--line-strong);
  border-radius: 7px;

  background:
    linear-gradient(
      145deg,
      rgba(21, 92, 122, .24),
      rgba(2, 10, 17, .78)
    );

  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, .28);

  transition:
    transform .2s ease,
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.discord-community-button:hover {
  transform: translateY(-2px);
  border-color: var(--gold-strong);

  background:
    linear-gradient(
      135deg,
      #155c7a,
      #2f89a8 55%,
      #d8b45a
    );

  color: #fff;

  box-shadow:
    0 12px 26px rgba(21, 92, 122, .38),
    0 0 16px rgba(47, 137, 168, .16);
}

/* Character cards hover — must stay after the Reveal styles */
.character-card.reveal.visible {
  transition:
    opacity .65s ease,
    transform .75s cubic-bezier(.16, 1, .3, 1),
    border-color .55s ease,
    box-shadow .75s ease;
}

.character-card.reveal.visible:hover {
  transform: translateY(-14px) scale(1.025);
  border-color: #f2aa16;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, .75),
    0 0 40px rgba(242, 170, 22, .35);
  z-index: 50;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: #050301;
  pointer-events: none;
}

.site-background-image {
  position: absolute;
  inset: -4%;

  background:
    url("assets/background.png")
    center center / cover
    no-repeat;

  opacity: .58;

  transform: scale(1.04);

  animation:
    backgroundMove 38s
    ease-in-out
    infinite alternate;

  will-change: transform;
}

.site-background-overlay {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(20, 8, 3, .12) 0%,
      rgba(6, 3, 1, .48) 55%,
      rgba(2, 1, 0, .94) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .15),
      rgba(0, 0, 0, .5)
    );
}

#embers-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .65;
}

@keyframes backgroundMove {
  0% {
    transform:
      scale(1.04)
      translate3d(0, 0, 0);
  }

  50% {
    transform:
      scale(1.11)
      translate3d(-18px, -10px, 0);
  }

  100% {
    transform:
      scale(1.06)
      translate3d(14px, 8px, 0);
  }
}

.toast.success {
  border-color: #38d66b;
  background:
    linear-gradient(
      135deg,
      rgba(11, 86, 38, .96),
      rgba(18, 126, 55, .96)
    );
  box-shadow:
    0 18px 45px rgba(0, 0, 0, .45),
    0 0 24px rgba(56, 214, 107, .22);
}

.toast.success .toast-image {
  filter:
    drop-shadow(0 0 8px rgba(56, 214, 107, .6));
}

.toast.error {
  border-color: #ff3b30;
  background:
    linear-gradient(
      135deg,
      rgba(110, 8, 8, .96),
      rgba(150, 15, 15, .96)
    );
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;

  border: 1px solid rgba(109, 190, 221, .24);
  border-radius: 8px;

  background:
    linear-gradient(
      145deg,
      rgba(5, 18, 28, .96),
      rgba(2, 9, 16, .96)
    );

  color: var(--gold-light);

  font-family: Cinzel, Georgia, serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, .24),
    inset 0 1px rgba(255, 255, 255, .025);

  transition:
    border-color .2s ease,
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.language-button:hover {
  border-color: rgba(91, 186, 220, .48);

  background:
    linear-gradient(
      145deg,
      rgba(10, 42, 57, .96),
      rgba(3, 14, 23, .96)
    );

  box-shadow:
    0 10px 24px rgba(0, 0, 0, .30),
    0 0 14px rgba(47, 137, 168, .10);
}

.language-arrow {
  font-size: .7rem;
  transition: transform .2s ease;
}

.language-switcher.open .language-arrow {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2000;

  min-width: 145px;
  overflow: hidden;

  border: 1px solid rgba(109, 190, 221, .22);
  border-radius: 9px;

  background:
    linear-gradient(
      145deg,
      rgba(5, 18, 28, .99),
      rgba(2, 9, 16, .99)
    );

  box-shadow:
    0 18px 38px rgba(0, 0, 0, .55),
    inset 0 1px rgba(255, 255, 255, .025);
}

.language-menu button {
  width: 100%;
  display: block;
  padding: 10px 13px;

  border: 0;
  border-bottom: 1px solid rgba(109, 190, 221, .12);

  background: transparent;
  color: var(--text-soft);

  font-size: .74rem;
  text-align: left;

  cursor: pointer;
}

.language-menu button:last-child {
  border-bottom: 0;
}

.language-menu button:hover,
.language-menu button.active {
  background:
    linear-gradient(
      90deg,
      rgba(47, 137, 168, .18),
      rgba(216, 180, 90, .05)
    );

  color: var(--gold-light);
}

/* Arabic direction */

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .primary-nav,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .panel-heading,
html[dir="rtl"] .discord-community-header {
  direction: rtl;
}

html[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-menu button {
  text-align: right;
}

.language-menu button{
    display:flex;
    align-items:center;
    gap:10px;
}

.language-flag{
    width:22px;
    height:16px;
    object-fit:cover;
    border-radius:3px;
    flex-shrink:0;
    display:block;
}

.current-language-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.current-language-flag {
    width: 24px;
    height: 18px;
    min-width: 24px;
    min-height: 18px;

    display: block;
    object-fit: contain;   /* بدل cover */

    border-radius: 3px;
    flex-shrink: 0;
}

.messenger-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5000;
}

.messenger-launcher {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;

  border: 1px solid rgba(240, 201, 108, .42);
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #006aff,
      #0084ff 55%,
      #2f89a8
    );

  color: #fff;
  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;

  box-shadow:
    0 14px 34px rgba(0, 106, 255, .34),
    0 0 22px rgba(47, 137, 168, .14);
}

.messenger-launcher svg {
  width: 24px;
  height: 24px;
}

.messenger-chat-box {
  position: absolute;
  right: 0;
  bottom: 68px;

  width: min(360px, calc(100vw - 28px));
  overflow: hidden;

  border: 1px solid rgba(109, 190, 221, .24);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(5, 18, 28, .99),
      rgba(2, 9, 16, .99)
    );

  box-shadow:
    0 24px 65px rgba(0, 0, 0, .62),
    0 0 26px rgba(47, 137, 168, .10);
}

.messenger-chat-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;

  background:
    linear-gradient(
      135deg,
      #006aff,
      #0084ff
    );

  color: #fff;
}

.messenger-chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.messenger-chat-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
}

.messenger-chat-logo svg {
  width: 24px;
  height: 24px;
}

.messenger-chat-brand strong,
.messenger-chat-brand small {
  display: block;
}

.messenger-chat-brand strong {
  font-family: Cinzel, Georgia, serif;
  font-size: .82rem;
}

.messenger-chat-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .82);
  font-size: .65rem;
}

.messenger-chat-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.messenger-chat-body {
  min-height: 210px;
  max-height: 320px;
  padding: 18px;
  overflow-y: auto;
}

.messenger-message {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 5px 14px 14px 14px;
  background: rgba(47, 137, 168, .14);
  color: var(--text-soft);
}

.messenger-message strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-light);
  font-size: .78rem;
}

.messenger-message p {
  margin: 0;
  font-size: .76rem;
}

.messenger-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 12px;

  border-top: 1px solid rgba(109, 190, 221, .15);
  background: rgba(1, 7, 13, .92);
}

.messenger-chat-form textarea {
  width: 100%;
  min-height: 44px;
  resize: none;
  padding: 11px 12px;

  border: 1px solid rgba(109, 190, 221, .22);
  border-radius: 9px;

  background: rgba(0, 0, 0, .28);
  color: var(--text);
  outline: none;
}

.messenger-chat-form textarea:focus {
  border-color: #2f89a8;
  box-shadow: 0 0 0 3px rgba(47, 137, 168, .10);
}

.messenger-chat-form button {
  min-width: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border: 0;
  border-radius: 9px;

  background:
    linear-gradient(
      135deg,
      #006aff,
      #0084ff
    );

  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.messenger-chat-form button svg {
  width: 17px;
  height: 17px;
}

html[dir="rtl"] .messenger-widget {
  right: auto;
  left: 24px;
}

html[dir="rtl"] .messenger-chat-box {
  right: auto;
  left: 0;
}

html[dir="rtl"] .messenger-message {
  margin-left: auto;
  border-radius: 14px 5px 14px 14px;
}

@media (max-width: 640px) {
  .messenger-widget {
    right: 14px;
    bottom: 14px;
  }

  html[dir="rtl"] .messenger-widget {
    right: auto;
    left: 14px;
  }

  .messenger-launcher {
    width: 52px;
    padding: 0;
  }

  .messenger-launcher > span {
    display: none;
  }
}

button:disabled{opacity:.65;cursor:not-allowed}

/* ========================================
   MOBILE HERO FIX
======================================== */

@media (max-width: 680px) {

  /* إظهار الجزء المناسب من فيديو الخلفية على الموبايل */
  .animated-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* حرّك الخلفية ناحية الشمال لإظهار الشخصيات بشكل أفضل */
    object-position: 35% center;

    opacity: 0.72;
  }

  /* تقليل ارتفاع الـ Hero والمسافات على الموبايل */
  .hero {
    min-height: 650px;
    padding-top: calc(var(--header-height) + 45px);
    padding-bottom: 80px;
  }

  /* إلغاء اللوجو الدائري الذي يدور مؤقتًا */
  .hero-rune-logo {
    display: none !important;
    animation: none !important;
  }
}

/* =========================================================
   CP RECHARGE STORE
========================================================= */

.cp-store-section {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  padding: calc(var(--header-height) + 72px) 0 96px;
}

.cp-login-warning {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
  padding: 12px 17px;

  border: 1px solid rgba(216, 180, 90, .34);
  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      rgba(216, 180, 90, .09),
      rgba(47, 137, 168, .035)
    );

  color: var(--gold-light);
  font-size: .78rem;

  backdrop-filter: blur(10px);
}

.cp-login-warning svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;

  fill: none;
  stroke: var(--gold-strong);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-login-warning a {
  color: var(--gold-strong);
  font-weight: 900;
}


/* =========================
   HEADING
========================= */

.cp-store-heading {
  margin-bottom: 24px;
  text-align: center;
}

.cp-store-heading .kicker {
  justify-content: center;
}

.cp-store-heading h1 {
  margin: 0;

  color: var(--text);

  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.65rem);
  line-height: 1;

  text-transform: uppercase;
}

.cp-store-heading h1 span {
  color: var(--gold-strong);
}

.cp-store-heading p {
  max-width: 700px;
  margin: 12px auto 0;

  color: var(--muted);
  font-size: .84rem;
}


/* =========================
   CURRENCY SWITCH
========================= */

.cp-currency-switch {
  width: max-content;

  display: flex;
  align-items: center;
  gap: 6px;

  margin: 25px auto 34px;
  padding: 5px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: rgba(2, 10, 17, .84);

  box-shadow:
    0 12px 28px
    rgba(0, 0, 0, .25);
}

.cp-currency-switch > span {
  padding: 0 10px;

  color: var(--muted);

  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.cp-currency {
  min-width: 62px;

  padding: 8px 14px;

  border: 0;
  border-radius: 999px;

  background: transparent;

  color: var(--text-soft);

  font-weight: 900;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.cp-currency:hover {
  transform: translateY(-1px);
}

.cp-currency.active {
  background:
    linear-gradient(
      135deg,
      var(--ember-dark),
      var(--ember) 55%,
      var(--gold)
    );

  color: #fff;
}


/* =========================
   PACKAGE GRID
========================= */

.cp-package-grid {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 16px;

  align-items: stretch;
}


/* =========================
   PACKAGE CARD
========================= */

.cp-package-card {
  position: relative;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  min-width: 0;

  border: 1px solid var(--line);
  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      rgba(7, 20, 31, .97),
      rgba(2, 9, 15, .97)
    );

  box-shadow:
    0 20px 45px
    rgba(0, 0, 0, .38);

  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.cp-package-card:hover {
  transform: translateY(-8px);

  border-color:
    rgba(216, 180, 90, .58);

  box-shadow:
    0 30px 60px rgba(0, 0, 0, .55),
    0 0 28px rgba(47, 137, 168, .13);
}

.cp-package-card.featured,
.cp-package-card.best-value {
  border-color:
    rgba(216, 180, 90, .58);
}


/* =========================
   CP IMAGE
========================= */

.cp-package-art {
  position: relative;

  width: 100%;

  aspect-ratio: 230 / 132;

  overflow: hidden;

  border-bottom:
    1px solid
    rgba(216, 180, 90, .22);

  background:
    rgba(216, 180, 90, .10);
}

.cp-package-image {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;

  object-fit: cover;
  object-position: center;

  transition:
    transform .35s ease,
    filter .35s ease;
}

.cp-package-card:hover .cp-package-image {
  transform: scale(1.035);

  filter:
    saturate(1.06)
    brightness(1.03);
}


/* =========================
   CARD CONTENT
========================= */

.cp-package-content {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 22px 16px 18px;

  text-align: center;
}

.cp-amount {
  display: block;

  color: var(--gold-strong);

  font-family:
    Cinzel,
    Georgia,
    serif;

  font-size: 1.6rem;
  line-height: 1;
}

.cp-package-content > small {
  display: block;

  margin-top: 8px;

  color: var(--muted);

  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
}


/* =========================
   PRICE
========================= */

.cp-price {
  min-height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 13px 0 16px;

  color: #fff;
}

.cp-currency-symbol {
  margin-right: 2px;

  font-size: 1rem;
  font-weight: 900;
}

.cp-price > strong {
  font-size: 1.15rem;
}

.cp-price small {
  margin-left: 5px;

  color: var(--muted);

  font-size: .58rem;
}


/* =========================
   BUY BUTTON
========================= */

.cp-buy-button {
  width: 100%;
  min-height: 42px;

  margin-top: auto;
}


/* =========================
   BADGES
========================= */

.cp-package-badge {
  position: absolute;

  top: 10px;
  right: 10px;

  z-index: 4;

  padding: 5px 9px;

  border:
    1px solid
    rgba(255, 235, 177, .38);

  border-radius: 999px;

  background: var(--gold-strong);

  color: #07101a;

  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .05em;

  box-shadow:
    0 6px 18px
    rgba(0, 0, 0, .28);
}

.cp-package-card.best-value
.cp-package-badge {
  background:
    linear-gradient(
      135deg,
      #2f89a8,
      #d8b45a
    );

  color: #fff;
}


/* =========================
   BOTTOM INFORMATION
========================= */

.cp-store-info {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 14px;

  margin-top: 35px;
}

.cp-store-info > div {
  padding: 18px;

  border: 1px solid var(--line);

  border-radius:
    var(--radius-md);

  background:
    rgba(3, 13, 21, .1);

  text-align: center;

  backdrop-filter: blur(10px);
}

.cp-store-info strong {
  display: block;

  color: var(--gold-light);

  font-family:
    Cinzel,
    Georgia,
    serif;

  font-size: .78rem;
}

.cp-store-info span {
  display: block;

  margin-top: 5px;

  color: var(--muted);

  font-size: .7rem;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

  .cp-package-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

}

@media (max-width: 760px) {

  .cp-store-section {
    padding-top:
      calc(
        var(--header-height)
        + 48px
      );
  }

  .cp-package-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .cp-store-info {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {

  .cp-package-grid {
    grid-template-columns: 1fr;
  }

}

.cp-package-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   STORE LOGIN POPUP FIX
========================================================= */

.store-login-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20000 !important;

  width: 100vw !important;
  height: 100vh !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 20px !important;

  margin: 0 !important;
}

.store-login-modal[hidden] {
  display: none !important;
}

.store-login-backdrop {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  background: rgba(0, 5, 9, 0.82) !important;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  cursor: pointer;
}

.store-login-box {
  position: relative !important;
  z-index: 2 !important;

  width: 430px !important;
  max-width: calc(100vw - 32px) !important;

  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;

  padding: 32px !important;

  overflow: visible !important;

  border: 1px solid rgba(216, 180, 90, 0.38) !important;
  border-radius: 18px !important;

  background:
      linear-gradient(
          145deg,
          rgba(5, 15, 24, 0.98),
          rgba(3, 10, 17, 0.98)
      ) !important;

  box-shadow:
      0 30px 90px rgba(0, 0, 0, 0.75),
      0 0 35px rgba(47, 137, 168, 0.10) !important;
}

.store-login-box .panel-heading {
  margin-bottom: 22px;
  padding-right: 35px;
}

.store-login-box .panel-heading h3 {
  margin: 0 0 5px;

  color: var(--gold-light);

  font-family: Cinzel, Georgia, serif;
  font-size: 1.15rem;
}

.store-login-box .panel-heading small {
  color: var(--muted);
}

.store-login-box .form-stack {
  width: 100%;
}

.store-login-box .field {
  width: 100%;
}

.store-login-box input[type="text"],
.store-login-box input[type="password"],
.store-login-box input:not([type]) {
  width: 100%;
}

.store-login-box .button {
  width: 100%;
}

.store-login-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;

  z-index: 5;

  width: 34px !important;
  height: 34px !important;

  display: grid !important;
  place-items: center;

  padding: 0 !important;

  border: 1px solid var(--line) !important;
  border-radius: 50% !important;

  background: rgba(255, 255, 255, 0.04) !important;

  color: var(--text-soft) !important;

  font-size: 20px !important;
  line-height: 1 !important;

  cursor: pointer;
}

.store-login-close:hover {
  color: var(--gold-light) !important;
  border-color: rgba(216, 180, 90, 0.55) !important;
  background: rgba(216, 180, 90, 0.08) !important;
}

.store-login-box .checkbox-row {
  margin: 2px 0 4px;
}

.store-login-box .login-links {
  display: grid;
  gap: 8px;

  margin-top: 18px;

  text-align: center;
}

.store-login-box .login-links a {
  color: var(--gold);
  font-size: 0.72rem;
  text-decoration: none;
}

.store-login-box .login-links a:hover {
  color: var(--gold-light);
}

body.store-login-open {
  overflow: hidden !important;
}

@media (max-width: 520px) {

  .store-login-modal {
      padding: 14px !important;
  }

  .store-login-box {
      width: 100% !important;
      padding: 26px 20px !important;
  }

}

/* =========================================================
   PAYMENT METHOD POPUP
========================================================= */

.payment-method-modal {
  position: fixed;
  inset: 0;

  z-index: 20000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.payment-method-modal[hidden] {
  display: none !important;
}

.payment-method-backdrop {
  position: absolute;
  inset: 0;

  background:
      rgba(0, 5, 9, .84);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.payment-method-box {
  position: relative;

  z-index: 2;

  width: min(580px, 100%);

  padding: 30px !important;

  border-color:
      rgba(216,180,90,.38) !important;

  background:
      linear-gradient(
          145deg,
          rgba(5,15,24,.98),
          rgba(3,10,17,.98)
      ) !important;
}

.payment-method-close {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  padding: 0;

  border:
      1px solid var(--line);

  border-radius: 50%;

  background:
      rgba(255,255,255,.04);

  color:
      var(--text-soft);

  font-size: 20px;

  cursor: pointer;
}

.payment-method-close:hover {
  color:
      var(--gold-light);

  border-color:
      rgba(216,180,90,.55);
}


/* PACKAGE SUMMARY */

.payment-selected-package {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin:
      22px 0;

  padding:
      16px 18px;

  border:
      1px solid var(--line);

  border-radius:
      var(--radius-md);

  background:
      rgba(47,137,168,.07);
}

.payment-selected-package small {
  display: block;

  margin-bottom: 3px;

  color:
      var(--muted);

  font-size: .62rem;

  text-transform: uppercase;
  letter-spacing: .08em;
}

.payment-selected-package strong {
  color:
      var(--gold-light);

  font-family:
      Cinzel,
      Georgia,
      serif;
}

.payment-selected-price {
  text-align: right;
}


/* METHODS */

.payment-method-grid {
  display: grid;

  gap: 10px;
}

.payment-method-option {
  width: 100%;

  min-height: 72px;

  display: grid;

  grid-template-columns:
      50px
      1fr
      auto;

  align-items: center;

  gap: 14px;

  padding:
      10px
      14px;

  border:
      1px solid var(--line);

  border-radius:
      12px;

  background:
      rgba(3,14,23,.72);

  color:
      var(--text);

  text-align: left;

  cursor: pointer;

  transition:
      transform .2s ease,
      border-color .2s ease,
      background .2s ease;
}

.payment-method-option:hover {
  transform:
      translateY(-2px);

  border-color:
      rgba(216,180,90,.55);

  background:
      rgba(10,42,57,.92);
}

.payment-method-option strong {
  display: block;

  color:
      var(--gold-light);

  font-family:
      Cinzel,
      Georgia,
      serif;

  font-size:
      .82rem;
}

.payment-method-option small {
  display: block;

  margin-top: 2px;

  color:
      var(--muted);

  font-size:
      .68rem;
}


/* TEMP LOGOS */

.payment-method-logo {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 50px;

  border-radius: 12px;
  overflow: hidden;

  background: transparent;
}

.payment-method-logo img {
  display: block !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;

  padding: 0 !important;
  margin: 0 !important;
}

/* PayPal */
.paypal-logo {
  background: #ffffff;
}

.paypal-logo img {
  width: 70px !important;
  height: 70px !important;
}

.binance-logo img {
  width: 50px !important;
  height: 50px !important;
}


/* Vodafone Cash */
.vodafone-logo {
  background: #ffffff;
}

.vodafone-logo img {
  width: 45px !important;
  height: 45px !important;
}


/* e& money */
.etisalat-logo {
  background: #000000;
}

.etisalat-logo img {
  width: 45px !important;
  height: 45px !important;
}


/* InstaPay */
.instapay-logo {
  background: #6b3fa0;
}

.instapay-logo img {
  width: 60px !important;
  height: 60px !important;
}


/* Fawry */
.fawry-logo {
  background: #ffd400;
}

.fawry-logo img {
  width: 60px !important;
  height: 60px !important;
}

.payment-method-arrow {
  color:
      var(--gold);

  font-size:
      28px;
}

.payment-secure-note {
  margin-top:
      18px;

  color:
      var(--muted);

  font-size:
      .66rem;

  text-align:
      center;
}

body.payment-method-open {
  overflow: hidden !important;
}


@media (max-width: 520px) {

  .payment-method-box {
      padding:
          25px 18px !important;
  }

  .payment-selected-package {
      align-items:
          flex-start;

      flex-direction:
          column;
  }

  .payment-selected-price {
      text-align:
          left;
  }

}

/* =========================================================
   LOCAL PAYMENT POPUP
========================================================= */

.local-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 25000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.local-payment-modal[hidden] {
  display: none !important;
}

.local-payment-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 5, 9, .88);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.local-payment-box {
  position: relative;
  z-index: 2;

  width: 500px;
  max-width: 100%;

  padding: 30px;

  border: 1px solid rgba(216, 180, 90, .38);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(5, 15, 24, .99),
      rgba(3, 10, 17, .99)
    );

  box-shadow:
    0 30px 90px rgba(0,0,0,.7);
}

.local-payment-close {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 34px;
  height: 34px;

  border: 1px solid var(--line);
  border-radius: 50%;

  background: rgba(255,255,255,.03);

  color: var(--text-soft);

  font-size: 22px;

  cursor: pointer;
}

.local-payment-header small {
  color: var(--muted);

  font-size: .62rem;
  font-weight: 800;

  letter-spacing: .14em;
}

.local-payment-header h2 {
  margin: 4px 0 20px;

  color: var(--gold-light);

  font-family:
    Cinzel,
    Georgia,
    serif;
}

.local-payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;

  padding: 16px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: rgba(3,14,23,.72);
}

.local-payment-summary small {
  display: block;

  color: var(--muted);

  font-size: .6rem;
}

.local-payment-summary strong {
  color: var(--gold-light);

  font-family:
    Cinzel,
    Georgia,
    serif;
}

.local-payment-transfer {
  margin-bottom: 20px;

  padding: 20px;

  border: 1px solid rgba(216,180,90,.32);
  border-radius: 12px;

  background:
    rgba(216,180,90,.06);

  text-align: center;
}

.local-payment-transfer > small {
  display: block;

  margin-bottom: 6px;

  color: var(--muted);

  font-size: .62rem;

  letter-spacing: .12em;
}

.local-payment-number {
  display: block;

  margin-bottom: 10px;

  color: var(--gold-light);

  font-size: 1.7rem;

  letter-spacing: .07em;
}

.local-copy-button {
  padding: 7px 14px;

  border: 1px solid var(--line-strong);
  border-radius: 7px;

  background: transparent;

  color: var(--gold-light);

  font-size: .65rem;
  font-weight: 800;

  cursor: pointer;
}

.local-payment-transfer p {
  margin:
    12px
    0
    0;

  color: var(--text-soft);

  font-size: .75rem;
}

#localPaymentForm {
  display: grid;
  gap: 14px;
}

.local-payment-submit {
  width: 100%;
  margin-top: 4px;
}

.local-payment-warning {
  margin-top: 15px;

  color: var(--muted);

  font-size: .67rem;
  line-height: 1.6;

  text-align: center;
}

@media (max-width: 520px) {

  .local-payment-box {
    padding: 24px 18px;
  }

  .local-payment-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .local-payment-number {
    font-size: 1.35rem;
  }

}
.payment-selected-cp-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.payment-selected-cp-image {
  width: 48px;
  height: 34px;
  object-fit: cover;
  border: 1px solid rgba(216, 180, 90, .35);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

html[dir="rtl"] .payment-selected-cp-line {
  flex-direction: row-reverse;
}


.account-login-link,
.account-panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(216, 180, 90, .32);
  border-radius: 8px;
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
}

.account-login-link:hover,
.account-panel-link:hover {
  color: var(--gold-light);
  border-color: rgba(216, 180, 90, .58);
}

.auth-page-shell {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 120px 18px 70px;
}

.auth-page-box {
  width: min(430px, 100%);
}

.player-panel-page {
  min-height: calc(100vh - var(--header-height));
  padding: 165px 0 70px;
}

.player-panel-shell {
  display: grid;
  gap: 26px;
}

.panel-hero {
  text-align: center;
}

.panel-hero h1 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.panel-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.panel-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.panel-stats-grid .stat-card:nth-child(5) {
  grid-column: span 1;
}

.stat-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.stat-card small,
.characters-panel h2,
.panel-table th {
  color: rgba(216, 180, 90, .72);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: 2.2rem;
}

.stat-card span,
.stat-card a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.stat-card a:hover {
  color: var(--gold-light);
}

.characters-panel {
  padding: 28px;
}

.characters-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.characters-panel h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
}

.ghost-button {
  width: auto;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(216, 180, 90, .34);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  text-decoration: none;
}

.panel-table-wrap {
  overflow-x: auto;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.panel-table th,
.panel-table td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
}

.panel-table td {
  color: var(--text-soft);
  font-size: .86rem;
  font-weight: 700;
}

.panel-table td strong {
  color: var(--text);
}

html[dir="rtl"] .panel-table th,
html[dir="rtl"] .panel-table td {
  text-align: right;
}

@media (max-width: 900px) {
  .panel-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .panel-stats-grid {
    grid-template-columns: 1fr;
  }

  .characters-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Responsive header alignment */
.site-header .nav-shell {
  width: min(1880px, calc(100vw - 48px));
  max-width: none;
}

@media (min-width: 1281px) {
  .site-header .nav-shell {
    justify-content: flex-start;
    gap: clamp(14px, 1.2vw, 24px);
  }

  .site-header .brand {
    flex: 0 0 auto;
  }

  .site-header .brand-logo {
    width: 500px;
    height: 72px;
  }

  .site-header .primary-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: clamp(8px, .85vw, 22px);
  }

  .site-header .primary-nav a {
    flex: 0 0 auto;
    padding: 10px clamp(7px, .55vw, 14px);
    white-space: nowrap;
    font-size: clamp(.66rem, .62vw, .76rem);
  }

  .site-header .language-switcher,
  .site-header .account-area {
    flex: 0 0 auto;
  }

  .site-header .language-button {
    min-width: 124px;
    justify-content: space-between;
  }

  .site-header .account-area {
    min-width: 0;
    margin-left: 0;
    padding-left: 14px;
    gap: 10px;
    white-space: nowrap;
  }

  .site-header .account-greet {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 140px;
  }

  .site-header .account-greet strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .account-login-link,
  .site-header .account-panel-link,
  .site-header .account-logout {
    min-height: 38px;
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
  }
}

@media (min-width: 1281px) and (max-width: 1660px) {
  .site-header .nav-shell {
    width: min(100%, calc(100vw - 32px));
    gap: 10px;
  }

  .site-header .primary-nav {
    gap: 5px;
  }

  .site-header .primary-nav a {
    padding-left: 7px;
    padding-right: 7px;
    font-size: .64rem;
    letter-spacing: .045em;
  }

  .site-header .language-button {
    min-width: 112px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-header .account-area {
    padding-left: 10px;
    gap: 8px;
  }

  .site-header .account-greet {
    max-width: 92px;
  }
}

@media (max-width: 1280px) {
  .site-header .nav-shell {
    width: min(100%, calc(100vw - 28px));
  }

  .site-header .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .site-header .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8,5,2,.97);
    box-shadow: 0 25px 60px rgba(0,0,0,.62);
    backdrop-filter: blur(18px);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
  }

  .site-header .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-header .primary-nav a {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .site-header .primary-nav a:not(.nav-cta)::after {
    display: none;
  }

  .site-header .account-area {
    display: flex;
    margin-left: 0;
    padding-left: 10px;
    gap: 8px;
  }

  .site-header .account-greet {
    max-width: 110px;
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .site-header .language-switcher,
  .site-header .account-greet {
    display: none;
  }

  .site-header .account-area {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header .account-area {
    display: none;
  }
}

/* Center the nav logo inside its brand slot */
.site-header .brand {
  justify-content: center;
  overflow: hidden;
}

.site-header .brand picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.site-header .brand-logo {
  display: block;
  object-position: center center;
}

@media (min-width: 1281px) {
  .site-header .brand {
    width: 500px;
  }
}

@media (max-width: 1280px) {
  .site-header .brand {
    width: 156px;
  }
}

/* Center primary nav in the viewport on desktop */
@media (min-width: 1281px) {
  .site-header .nav-shell {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(420px, 1fr);
    width: min(1880px, calc(100vw - 48px));
    gap: 18px;
  }

  .site-header .brand {
    width: auto;
    justify-self: start;
  }

  .site-header .brand-logo {
    width: 500px;
    height: 72px;
    max-width: min(500px, 26vw);
  }

  .site-header .primary-nav {
    grid-column: 2;
    justify-self: center;
    flex: none;
    gap: clamp(10px, 1vw, 22px);
  }

  .site-header .language-switcher {
    grid-column: 3;
    justify-self: start;
    margin-left: 0;
  }

  .site-header .account-area {
    grid-column: 3;
    justify-self: end;
  }
}

@media (min-width: 1281px) and (max-width: 1660px) {
  .site-header .nav-shell {
    grid-template-columns: minmax(190px, 1fr) auto minmax(340px, 1fr);
    gap: 12px;
  }

  .site-header .brand-logo {
    max-width: min(500px, 24vw);
  }

  .site-header .primary-nav {
    gap: 7px;
  }
}

/* Keep desktop header controls on one row */
@media (min-width: 1281px) {
  .site-header .brand,
  .site-header .primary-nav,
  .site-header .language-switcher,
  .site-header .account-area {
    grid-row: 1;
  }

  .site-header .language-switcher {
    align-self: center;
  }

  .site-header .account-area {
    align-self: center;
  }
}

.panel-hero p {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.panel-hero p strong {
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.08rem;
}

html[dir="rtl"] .panel-hero p {
  direction: rtl;
}


.home-feature-slider {
  position: relative;
  padding: 34px 0 28px;
}

.feature-slider-shell {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid rgba(216, 180, 90, .28);
  border-radius: 8px;
  background: rgba(2, 7, 13, .72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

.feature-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 56px;
  background-image:
    linear-gradient(90deg, rgba(2, 7, 13, .92) 0%, rgba(2, 7, 13, .74) 34%, rgba(2, 7, 13, .22) 72%),
    var(--feature-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity .75s ease, visibility .75s ease, transform 5s ease;
}

.feature-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.feature-slide-content {
  width: min(460px, 100%);
  padding-bottom: 56px;
}

.feature-count {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--gold-strong);
  font-family: Cinzel, Georgia, serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.feature-count i {
  display: block;
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-strong), transparent);
}

.feature-slide h2 {
  margin: 0 0 22px;
  color: var(--gold-strong);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  text-transform: uppercase;
}

.feature-slide p {
  max-width: 430px;
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.7;
}

.feature-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(216, 180, 90, .2);
  background: rgba(2, 7, 13, .82);
  backdrop-filter: blur(12px);
}

.feature-tabs button {
  min-height: 58px;
  border: 0;
  border-right: 1px solid rgba(216, 180, 90, .16);
  background: transparent;
  color: rgba(233, 221, 200, .68);
  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s ease, background .25s ease;
}

.feature-tabs button:last-child {
  border-right: 0;
}

.feature-tabs button.active,
.feature-tabs button:hover {
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(216, 180, 90, .12), rgba(216, 180, 90, .03));
}

@media (max-width: 900px) {
  .feature-slider-shell {
    min-height: 520px;
  }

  .feature-slide {
    align-items: end;
    padding: 32px 24px 92px;
    background-image:
      linear-gradient(180deg, rgba(2, 7, 13, .18) 0%, rgba(2, 7, 13, .82) 58%, rgba(2, 7, 13, .96) 100%),
      var(--feature-image);
  }

  .feature-slide-content {
    padding-bottom: 0;
  }

  .feature-tabs {
    grid-template-columns: 1fr;
  }

  .feature-tabs button {
    min-height: 42px;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 180, 90, .12);
  }
}


/* Home feature slider final placement */
.home-feature-slider {
  padding: 54px 0 46px;
}

.home-feature-slider + .content-section {
  padding-top: 30px;
}

.feature-slider-shell {
  min-height: clamp(520px, 58vh, 680px);
  border-color: rgba(91, 186, 220, .24);
  background:
    linear-gradient(145deg, rgba(5, 15, 24, .94), rgba(2, 7, 13, .86));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(216, 180, 90, .08) inset;
}

.feature-slide {
  padding: clamp(42px, 5vw, 76px);
  background-image:
    radial-gradient(circle at 78% 22%, rgba(91, 186, 220, .18), transparent 34%),
    linear-gradient(90deg, rgba(2, 7, 13, .96) 0%, rgba(2, 7, 13, .78) 38%, rgba(2, 7, 13, .30) 72%),
    var(--feature-image);
  background-size: cover;
  background-position: center;
}

.feature-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 26%),
    linear-gradient(90deg, rgba(216,180,90,.18), transparent 18%, transparent 82%, rgba(91,186,220,.13));
  mix-blend-mode: screen;
  opacity: .48;
}

.feature-slide-content {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding-bottom: 64px;
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.feature-slide h2 {
  color: var(--gold-light);
  text-shadow: 0 12px 30px rgba(0,0,0,.62);
}

.feature-tabs {
  grid-template-columns: repeat(4, 1fr);
  background: rgba(2, 7, 13, .88);
}

.feature-tabs button.active {
  box-shadow: inset 0 -2px 0 var(--gold-strong);
}

@media (max-width: 900px) {
  .home-feature-slider {
    padding: 34px 0 34px;
  }

  .feature-slider-shell {
    min-height: 620px;
  }

  .feature-slide {
    padding: 34px 24px 190px;
  }

  .feature-tabs {
    grid-template-columns: 1fr;
  }
}

/* Cyan-inspired feature slider tabs */
.feature-tabs {
  border-top-color: rgba(91, 186, 220, .24);
  background:
    linear-gradient(180deg, rgba(5, 18, 27, .92), rgba(2, 7, 13, .9));
}

.feature-tabs button {
  border-right-color: rgba(91, 186, 220, .18);
  color: rgba(205, 214, 218, .68);
}

.feature-tabs button:hover {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(21, 92, 122, .54), rgba(47, 137, 168, .32));
}

.feature-tabs button.active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(21, 92, 122, .88), rgba(47, 137, 168, .74) 60%, rgba(216, 180, 90, .28));
  box-shadow:
    inset 0 -2px 0 rgba(91, 186, 220, .95),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 24px rgba(47, 137, 168, .18);
}

/* Stable language switcher labels */
.language-button,
.language-menu button {
  white-space: nowrap;
  unicode-bidi: isolate;
}

.language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  text-align: left;
}

.language-menu button[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.language-menu button span {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-flag,
.current-language-flag {
  object-fit: contain;
}

html[dir="rtl"] .language-button .current-language-content {
  direction: rtl;
}

html[dir="rtl"] .language-button {
  direction: rtl;
}


/* Gameplay screenshot slider polish */
.feature-slide {
  overflow: hidden;
  background-size: cover;
}

.feature-slide:nth-child(1) {
  background-position: center 58%;
}

.feature-slide:nth-child(2) {
  background-position: center 54%;
}

.feature-slide:nth-child(3) {
  background-position: center 52%;
}

.feature-slide:nth-child(4) {
  background-position: center 50%;
}

.feature-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, .97) 0%, rgba(2, 7, 13, .78) 34%, rgba(2, 7, 13, .18) 66%, rgba(2, 7, 13, .56) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, .18), rgba(2, 7, 13, .22) 46%, rgba(2, 7, 13, .74));
  z-index: 0;
}

.feature-slide-content {
  padding: 24px 0 84px;
}

.feature-slide-content::before {
  content: "";
  position: absolute;
  inset: -28px -34px 42px -34px;
  z-index: -1;
  border-left: 1px solid rgba(91, 186, 220, .20);
  background:
    radial-gradient(circle at 0% 0%, rgba(91, 186, 220, .16), transparent 36%),
    linear-gradient(90deg, rgba(2, 7, 13, .74), rgba(2, 7, 13, .16));
  filter: blur(.1px);
}

.feature-tabs button.active {
  color: #f8f4e8;
  background:
    linear-gradient(135deg, rgba(37, 132, 160, .95), rgba(91, 186, 220, .78) 48%, rgba(216, 180, 90, .82));
  box-shadow:
    inset 0 -2px 0 rgba(255,255,255,.42),
    0 10px 32px rgba(37, 132, 160, .24);
}

/* Lighter gameplay slider overlay */
.feature-slide {
  background-image:
    linear-gradient(90deg, rgba(2, 7, 13, .64) 0%, rgba(2, 7, 13, .36) 36%, rgba(2, 7, 13, .08) 72%, rgba(2, 7, 13, .28) 100%),
    var(--feature-image);
}

.feature-slide::before {
  background:
    linear-gradient(90deg, rgba(2, 7, 13, .50) 0%, rgba(2, 7, 13, .22) 38%, rgba(2, 7, 13, .05) 68%, rgba(2, 7, 13, .20) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, .06), rgba(2, 7, 13, .10) 48%, rgba(2, 7, 13, .38));
}

.feature-slide::after {
  opacity: .22;
}

.feature-slide-content::before {
  inset: -24px -28px 48px -28px;
  border-left-color: rgba(91, 186, 220, .14);
  background:
    radial-gradient(circle at 0% 0%, rgba(91, 186, 220, .10), transparent 34%),
    linear-gradient(90deg, rgba(2, 7, 13, .46), rgba(2, 7, 13, .08));
  box-shadow: none;
}

.feature-slide h2,
.feature-slide p,
.feature-kicker,
.feature-count {
  text-shadow: 0 8px 24px rgba(0, 0, 0, .82);
}

.world-bosses {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(109, 190, 221, .18);
}

.world-bosses-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold-light);
  font-family: Cinzel, Georgia, serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.world-bosses-heading small {
  color: var(--muted);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: .62rem;
  letter-spacing: .12em;
}

.boss-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.boss-row span strong {
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: .72rem;
}

.boss-row span small {
  color: var(--muted);
  font-size: .62rem;
}

.boss-row b {
  color: var(--gold);
  font-size: .68rem;
  white-space: nowrap;
}
/* Stable language dropdown arrow */
.language-arrow {
  width: 9px;
  height: 9px;
  font-size: 0;
  line-height: 0;
  position: relative;
  flex: 0 0 9px;
}

.language-arrow::before {
  content: "";
  position: absolute;
  inset: 1px 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.language-switcher.open .language-arrow {
  transform: rotate(180deg);
}

/* =========================================
   DOWNLOAD PROVIDERS - FINAL
========================================= */

.download-source-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 20px;
}


/* Shared */
.download-source-actions > a {
  width: 245px;
  min-height: 62px;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 14px;

  padding: 9px 18px !important;

  border-radius: 10px;

  text-decoration: none !important;

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    filter .22s ease !important;
}

.download-source-actions > a:hover {
  transform: translateY(-3px) !important;
}

.download-provider-logo {
  width: 36px !important;
  height: 36px !important;

  max-width: none !important;

  display: block !important;

  flex: 0 0 36px;
}

.download-source-actions a > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  line-height: 1.1;
}

.download-source-actions a small {
  margin-bottom: 4px;

  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.download-source-actions a strong {
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .045em;
}


/* =========================================
   MEDIAFIRE
========================================= */

.mediafire-download-btn {
  border: 1px solid #56c7ef !important;

  background:
    linear-gradient(
      135deg,
      #0079ad 0%,
      #0099d8 52%,
      #29b7e8 100%
    ) !important;

  color: #ffffff !important;

  box-shadow:
    0 10px 25px rgba(0, 153, 216, .25),
    inset 0 1px 0 rgba(255,255,255,.20) !important;
}

.mediafire-download-btn:hover {
  filter: brightness(1.12);

  box-shadow:
    0 14px 32px rgba(0, 153, 216, .38),
    0 0 22px rgba(41, 183, 232, .18) !important;
}

.mediafire-download-btn small {
  color: rgba(255,255,255,.72);
}

.mediafire-download-btn strong {
  color: #ffffff;
}

.mediafire-logo {
  color: #ffffff;
}


/* =========================================
   GOOGLE DRIVE
========================================= */

.google-drive-download-btn {
  position: relative;

  border: 1px solid rgba(255,255,255,.22) !important;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f8f9fa 100%
    ) !important;

  color: #202124 !important;

  box-shadow:
    0 10px 25px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.google-drive-download-btn:hover {
  filter: brightness(1.04);

  border-color: #4285f4 !important;

  box-shadow:
    0 14px 32px rgba(66,133,244,.23),
    0 0 18px rgba(66,133,244,.12) !important;
}

.google-drive-download-btn small {
  color: #777b80;
}

.google-drive-download-btn strong {
  color: #202124;
}


/* Mobile */
@media (max-width: 600px) {

  .download-source-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .download-source-actions > a {
    width: 100% !important;
  }

}