@charset "UTF-8";
/**
 * Tema Royal Exodus: fondo hero, barra con hueco central para el logotipo del arte,
 * botones con forma irregular y acabado tipo cristal / brillo dorado.
 */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap");

/* --- Fondo global cinematográfico + viñeta + partículas sutiles --- */
html {
  scroll-behavior: smooth;
}

body {
  background: #070504 !important;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -2%;
  z-index: 0;
  background: url("../images/bg/royal_exodus_hero.png") center 12% / cover no-repeat;
  animation: royalKenBurns 55s ease-in-out infinite alternate;
  /* will-change en capa fija a pantalla completa fuerza repintado continuo; el navegador ya promueve la capa con transform en la animación */
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 180, 60, 0.18), transparent 45%),
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(180, 60, 30, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(120, 40, 20, 0.15), transparent 45%),
    /* Viñeta inferior muy suave: antes oscurecía demasiado todo el scroll */
    linear-gradient(to bottom, transparent 0%, rgba(5, 3, 2, 0.08) 45%, rgba(5, 3, 2, 0.28) 100%);
}

@keyframes royalKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.07) translate(-1.2%, -0.6%);
  }
}

.wrapper {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

/* Capa de “polvo / embers” muy suave sobre el wrapper */
.wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 200, 120, 0.9), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 180, 80, 0.7), transparent),
    radial-gradient(1px 1px at 72% 40%, rgba(255, 220, 140, 0.8), transparent),
    radial-gradient(1px 1px at 88% 78%, rgba(255, 160, 60, 0.6), transparent),
    radial-gradient(1px 1px at 55% 12%, rgba(255, 210, 100, 0.5), transparent);
  background-size: 100% 100%;
  animation: royalSparkle 8s ease-in-out infinite alternate;
}

@keyframes royalSparkle {
  0% {
    opacity: 0.25;
    transform: translateY(0);
  }
  100% {
    opacity: 0.45;
    transform: translateY(-6px);
  }
}

/* --- Barra de navegación: cristal, sin ocupar el centro (título del arte) --- */
.navigation__bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 80px;
  position: relative;
  z-index: 2;
}

/* Refuerzo tema: fila única (estilos base ya en style.css sin .flex-cc / .flex-sc) */
.navigation .navigation__links {
  -ms-flex-wrap: nowrap !important;
  flex-wrap: nowrap !important;
  -webkit-box-pack: start !important;
  -ms-flex-pack: start !important;
  justify-content: flex-start !important;
  align-items: center !important;
  align-self: center;
  flex: 1 1 0;
  min-width: 0;
}

.navigation .navigation__link {
  -ms-flex-wrap: nowrap !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
  flex-shrink: 0;
}

.navigation .navigation__link span {
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .navigation .navigation__link {
    margin-left: 5px !important;
    margin-right: 5px !important;
  }

  .navigation .navigation__link span {
    font-size: 13px !important;
  }
}

@media (max-width: 1300px) and (min-width: 1081px) {
  .navigation .navigation__link {
    margin-left: 4px !important;
    margin-right: 4px !important;
  }

  .navigation .navigation__link span {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}

.navigation__center-gap {
  flex: 1 1 auto;
  min-width: min(220px, 20vw);
  max-width: 38vw;
  height: 1px;
  pointer-events: none;
  flex-shrink: 1;
}

.navigation__end {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
}

.navigation {
  background: rgba(12, 8, 7, 0.45) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 190, 100, 0.22) !important;
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 220, 160, 0.08);
}

.navigation__link span {
  text-shadow: 0 0 20px rgba(255, 160, 40, 0.25);
}

.navigation__link span:hover {
  color: #ffc45a !important;
  text-shadow: 0 0 24px rgba(255, 180, 80, 0.55);
}

.navigation__drop-box-items {
  background: rgba(18, 12, 10, 0.92) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 180, 90, 0.25) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 200, 120, 0.06) inset;
}

@media (max-width: 1300px) {
  .navigation__center-gap {
    min-width: min(160px, 16vw);
  }
}

@media (max-width: 1080px) {
  .navigation__center-gap {
    display: none;
  }

  .navigation__bar {
    justify-content: space-between;
    min-height: 60px;
  }

  .navigation__links {
    display: none;
  }
}

/* --- Cabecera: deja ver el arte; sin logo superpuesto del tema antiguo --- */
.header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 180, 90, 0.12) !important;
  min-height: 320px;
  height: auto !important;
}

.header::after {
  opacity: 0.55 !important;
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 2, 0.15) 0%,
    transparent 28%,
    transparent 62%,
    rgba(5, 3, 2, 0.75) 100%
  ) !important;
}

.header .content-area::after {
  display: none !important;
}

.header__info-title {
  font-family: "Cinzel", "Philosopher", serif !important;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 160, 50, 0.2);
}

.header__info-flag {
  border-radius: 4px 16px 4px 16px !important;
  box-shadow: 0 0 20px rgba(255, 156, 0, 0.45) !important;
}

/* --- Botones: forma “cortada” (no caja cuadrada), brillo y hover --- */
.btn {
  border-radius: 0 !important;
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
  border: 1px solid rgba(255, 220, 140, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(80, 40, 10, 0.6) inset,
    0 4px 18px rgba(255, 140, 20, 0.25),
    0 8px 28px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 240, 200, 0.35) inset,
    0 0 28px rgba(255, 180, 60, 0.45),
    0 10px 36px rgba(0, 0, 0, 0.55) !important;
}

.btn.yellow {
  background: linear-gradient(165deg, #ffe566 0%, #d4a012 45%, #8b5a0a 100%) !important;
}

.btn.yellow span {
  font-family: "Cinzel", "Philosopher", serif !important;
  letter-spacing: 0.12em;
  color: #1a0f08 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.btn.gray {
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
}

/* Botón menú móvil: hexagonal suave */
.navigation__nav-button {
  border-radius: 0 !important;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  border: 1px solid rgba(255, 180, 80, 0.4) !important;
  background: rgba(20, 14, 12, 0.85) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* --- Contenido principal: tarjetas tipo cristal --- */
.home-content {
  margin-top: 28px !important;
}

.main-content__title-text,
.aside-content__title-text {
  font-family: "Cinzel", "Philosopher", serif !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

/* Wikipedia: solo rejillas internas; no tocar .wrapper (overflow:visible ahí alarga la página sin fin) */
.global-desc.flex-sbs.prevent-select {
  overflow: visible;
}

.global-desc.flex-sbs.prevent-select .desc-rate__rates {
  overflow: visible;
}

.global-desc__content .well {
  background: rgba(14, 10, 9, 0.55) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 180, 90, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hts__block {
  background: rgba(14, 10, 9, 0.5) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 14px !important;
  border: 1px solid rgba(255, 180, 90, 0.12) !important;
}

.header_news {
  background: transparent !important;
  border-bottom-color: rgba(255, 180, 90, 0.15) !important;
}

.footer {
  background: rgba(8, 6, 5, 0.72) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 180, 90, 0.15) !important;
}

/* Pie con logo ROYAL y créditos (layout/overall/partials/footer_royal.php) */
.footer.footer--royal {
  margin-top: 56px !important;
  background: linear-gradient(180deg, rgba(6, 10, 8, 0.92) 0%, rgba(3, 5, 4, 0.97) 100%) !important;
  border-top: 1px solid rgba(72, 220, 130, 0.28) !important;
  box-shadow:
    0 -24px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(100, 255, 170, 0.08);
}

.footer.footer--royal::after,
.footer.footer--royal:after {
  opacity: 0.2 !important;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(60, 200, 100, 0.12), transparent 55%) !important;
}

.footer.footer--royal .content-area {
  display: block !important;
  padding: 44px 24px 52px !important;
  position: relative;
  z-index: 3;
}

.footer__brand {
  text-align: center;
  margin-bottom: 40px;
}

.footer__royal-logo {
  max-width: min(400px, 90vw);
  width: auto;
  height: auto;
  vertical-align: middle;
  filter: drop-shadow(0 0 24px rgba(72, 255, 140, 0.4)) drop-shadow(0 0 56px rgba(30, 140, 80, 0.25));
  animation: footerRoyalGlow 6s ease-in-out infinite alternate;
}

@keyframes footerRoyalGlow {
  0% {
    filter: drop-shadow(0 0 18px rgba(72, 255, 140, 0.3)) drop-shadow(0 0 40px rgba(30, 120, 70, 0.2));
  }
  100% {
    filter: drop-shadow(0 0 32px rgba(120, 255, 180, 0.5)) drop-shadow(0 0 72px rgba(40, 160, 90, 0.3));
  }
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 36px;
  align-items: start;
}

@media (max-width: 960px) {
  .footer__columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer.footer--royal .footer__cpr {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.footer.footer--royal .footer__cpr-title {
  color: #ebe3dc !important;
  font-size: 15px !important;
  margin-top: 0 !important;
}

.footer.footer--royal .footer__cpr-text {
  color: rgba(200, 188, 175, 0.82) !important;
  line-height: 1.6 !important;
  margin-top: 10px !important;
}

@media (max-width: 960px) {
  .footer.footer--royal .footer__cpr-title,
  .footer.footer--royal .footer__cpr-text {
    text-align: center !important;
  }
}

.footer__link {
  color: #7fe8a8 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(100, 230, 150, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__link:hover {
  color: #c8ffd8 !important;
  border-bottom-color: rgba(180, 255, 210, 0.65);
}

.footer__dot {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.25);
}

.footer__credits-title {
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(130, 255, 180, 0.9);
  margin-bottom: 14px;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .footer__credits-title {
    text-align: center;
  }
}

.footer__credits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(190, 180, 168, 0.78);
}

.footer__credits-list li {
  margin-bottom: 10px;
}

.footer__credits-list a {
  color: #8cf0b5;
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 220, 150, 0.25);
}

.footer__credits-list a:hover {
  color: #d2ffe6;
  border-bottom-color: rgba(160, 255, 200, 0.5);
}

@media (max-width: 960px) {
  .footer__credits-list {
    text-align: center;
  }
}

/* Menú móvil lateral */
.m-nav {
  background: rgba(14, 10, 9, 0.94) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 180, 90, 0.2) !important;
}

.m-nav__drop-box-items,
.m-nav__link span {
  border-color: rgba(255, 180, 90, 0.1) !important;
}

/* Servidores / widgets en cabecera: más cristal */
.servers__item {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 14px !important;
  border: 1px solid rgba(255, 200, 120, 0.12) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Formularios */
.global-form input,
.global-form select {
  border-radius: 10px !important;
  background: rgba(10, 7, 6, 0.75) !important;
  border-color: rgba(255, 160, 80, 0.2) !important;
}

/* Franja portada: top guilds + eventos (compacta, no invade el hero) */
.home-widgets-strip {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 10px 0 14px;
  background: rgba(8, 10, 9, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(80, 200, 120, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.home-widgets-strip__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 16px 24px;
  align-items: start;
}

@media (max-width: 1080px) {
  .home-widgets-strip__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.home-widgets__block {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(12, 14, 13, 0.35);
  border: 1px solid rgba(255, 200, 120, 0.06);
}

.home-widgets__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.home-widgets__title {
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(230, 220, 200, 0.95);
  text-transform: uppercase;
}

.home-widgets__sub {
  font-size: 11px;
  color: rgba(160, 150, 140, 0.75);
  flex: 1 1 auto;
}

.home-widgets__live {
  color: #7dffb0;
  font-weight: 600;
}

.home-widgets__more {
  font-size: 11px;
  color: #9cf0b5 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(120, 220, 150, 0.25);
}

.home-widgets__more:hover {
  color: #d2ffe6 !important;
}

.home-widgets__wars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 8px;
  font-size: 10px;
  color: rgba(200, 180, 160, 0.85);
}

.home-widgets__war-line {
  white-space: nowrap;
}

.home-widgets__vs {
  margin: 0 4px;
  color: rgba(255, 120, 80, 0.85);
  font-weight: 600;
}

.home-widgets__guilds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 1200px) {
  .home-widgets__guilds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-widgets__guilds {
    grid-template-columns: 1fr;
  }
}

.home-widgets__guild {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 12px;
  text-decoration: none !important;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(100, 200, 140, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.home-widgets__guild:hover {
  border-color: rgba(120, 255, 180, 0.35);
  background: rgba(40, 80, 55, 0.2);
  transform: translateY(-1px);
}

.home-widgets__guild-rank {
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 200, 100, 0.9);
  min-width: 22px;
}

.home-widgets__guild-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}

.home-widgets__guild-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-widgets__guild-name {
  font-size: 12px;
  font-weight: 600;
  color: #e8ddd4 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-widgets__guild-stats {
  font-size: 10px;
  color: rgba(170, 160, 150, 0.8);
}

.home-widgets__empty {
  margin: 0;
  font-size: 11px;
  color: rgba(160, 150, 140, 0.7);
  grid-column: 1 / -1;
}

.home-widgets__events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.home-widgets__event {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(190, 180, 170, 0.9);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-widgets__event--on {
  border-color: rgba(100, 255, 160, 0.35);
  color: #c8ffd8;
  background: rgba(30, 70, 45, 0.35);
}

.home-widgets__event-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5f8;
  box-shadow: 0 0 10px #5f8;
  animation: homeEventPulse 1.8s ease-in-out infinite;
}

@keyframes homeEventPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.home-widgets__event-tag {
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #0a120e;
  background: linear-gradient(90deg, #8f8, #5c8);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .wrapper::before {
    animation: none !important;
    transform: none !important;
  }

  .btn:hover {
    transform: none;
  }

  .footer__royal-logo {
    animation: none !important;
  }

  .home-widgets__event-pulse {
    animation: none !important;
  }
}

/* Modo ligero (config.php → site_performance.lightweight_ui): menos trabajo de GPU/CPU */
html.re-lightweight body::before {
  animation: none !important;
  transform: none !important;
}

html.re-lightweight .wrapper::before {
  animation: none !important;
  opacity: 0.28;
  transform: none !important;
}

html.re-lightweight .footer__royal-logo {
  animation: none !important;
  filter: drop-shadow(0 0 22px rgba(72, 255, 140, 0.35)) drop-shadow(0 0 48px rgba(30, 140, 80, 0.22));
}

html.re-lightweight .home-widgets__event-pulse {
  animation: none !important;
  opacity: 0.85;
  transform: none;
}

/* Vista previa del hero sin animación: menos repintados en segundo plano */
html.re-lightweight body::after {
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(255, 180, 60, 0.12), transparent 42%),
    linear-gradient(to bottom, transparent 0%, rgba(5, 3, 2, 0.1) 50%, rgba(5, 3, 2, 0.32) 100%);
}

/* --- Página de guild: cabecera y gestión en rejilla --- */
#guildTitleDiv {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

#guildTitleDiv::after {
  content: "";
  display: table;
  clear: both;
}

#guildImageDiv {
  float: none !important;
  flex-shrink: 0;
}

.guild-manage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 8px;
}

.guild-manage__panel {
  background: rgba(14, 10, 9, 0.58);
  border: 1px solid rgba(255, 180, 90, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.guild-manage__panel--full {
  grid-column: 1 / -1;
}

.guild-manage__title {
  margin: 0 0 10px;
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8dcc8;
  font-weight: 600;
}

.guild-manage__hint {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(180, 165, 150, 0.9);
  line-height: 1.4;
}

.guild-manage__form ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guild-manage__form li {
  margin: 0;
}

.guild-manage__form input[type="text"],
.guild-manage__form input[type="number"],
.guild-manage__form input[type="file"],
.guild-manage__form select,
.guild-manage__form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  color: #f0e8dc;
  background: rgba(14, 9, 8, 0.92);
  border: 1px solid rgba(255, 180, 90, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px;
}

.guild-manage__form textarea {
  min-height: 90px;
  resize: vertical;
  font-family: inherit;
}

.guild-manage__form input[type="number"] {
  max-width: 120px;
}

.guild-manage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.guild-manage__actions .btn {
  width: auto;
  min-width: 0;
}

.guild-manage__rank-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px;
}

.guild-manage__rank-inputs input[type="text"] {
  flex: 1 1 140px;
  min-width: 120px;
  margin-top: 0;
}

.guild-manage__war-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 8px;
}

.guild-manage__war-row input[type="text"] {
  flex: 1 1 180px;
  margin-top: 0;
}

.guild-manage__war-row input[type="number"] {
  margin-top: 0;
}

.guild-manage__war-row .btn {
  margin-top: 0;
  flex-shrink: 0;
}

#guildsTable form {
  display: inline-block;
  margin: 4px 4px 4px 0;
  vertical-align: middle;
}

/* --- Ficha de personaje (characterprofile): cristal / dorado como el resto del tema --- */
.char-profile {
  max-width: 1180px;
  margin: 0 auto 24px;
}

.char-profile__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(40, 22, 12, 0.92) 0%, rgba(18, 10, 8, 0.88) 50%, rgba(28, 14, 8, 0.9) 100%);
  border: 1px solid rgba(255, 190, 100, 0.28);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 220, 160, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  margin-bottom: 18px;
}

.char-profile__hero-outfit {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 200, 120, 0.35);
  box-shadow: 0 0 20px rgba(255, 140, 40, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.char-profile__hero-outfit img {
  max-width: 90px;
  max-height: 90px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.char-profile__hero-main {
  flex: 1 1 220px;
  min-width: 0;
}

.char-profile__hero-name {
  margin: 0 0 10px;
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: #f5ebe0;
  text-shadow: 0 0 24px rgba(255, 160, 60, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.char-profile__hero-flag img {
  width: 28px;
  height: auto;
  vertical-align: middle;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.char-profile__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5dd87a;
  box-shadow: 0 0 12px rgba(100, 220, 140, 0.65);
}

.char-profile__dot--off {
  background: #6a6058;
  box-shadow: none;
}

.char-profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.char-profile__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(245, 235, 224, 0.95);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 190, 100, 0.22);
}

.char-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: start;
}

.char-profile__primary,
.char-profile__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.char-profile__panel {
  background: rgba(14, 10, 9, 0.58);
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 90, 0.22);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.char-profile__panel--wide {
  grid-column: 1 / -1;
}

.char-profile__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(8, 6, 5, 0.55);
  border-bottom: 1px solid rgba(255, 190, 100, 0.15);
  color: #e8dcc8;
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.char-profile__panel-head span:last-child {
  font-weight: 600;
  opacity: 0.85;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.char-profile__panel-body {
  padding: 0;
}

.char-profile__data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #e8dcc8;
}

.char-profile__data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.char-profile__data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 200, 120, 0.1);
  vertical-align: top;
}

.char-profile__data-table td:first-child {
  width: 38%;
  font-weight: 600;
  color: rgba(200, 185, 168, 0.92);
}

/* Sobrescribe donate-page__bonuses-title dentro de la ficha (legible sobre fondo oscuro) */
.char-profile .char-profile__data-table .donate-page__bonuses-title,
.char-profile .char-profile__data-table .donate-page__bonuses-title.flex-cc {
  color: #f0e6d4 !important;
  line-height: 1.4 !important;
}

.char-profile__data-table td:first-child .donate-page__bonuses-title {
  color: rgba(210, 198, 180, 0.88) !important;
}

.char-profile__data-table a {
  color: #ffc45a;
  font-weight: 600;
  text-decoration: none;
}

.char-profile__data-table a:hover {
  color: #ffe0a0;
  text-decoration: underline;
}

.char-profile__equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  padding: 14px;
}

.char-profile__equip-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 180, 90, 0.16);
  min-height: 118px;
}

.char-profile__equip-slot img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  margin-bottom: 6px;
}

.char-profile__equip-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(180, 165, 150, 0.95);
  margin-bottom: 4px;
}

.char-profile__equip-name {
  font-size: 12px;
  font-weight: 600;
  color: #f0e6d4;
  line-height: 1.25;
  word-break: break-word;
}

.char-profile__equip-empty {
  font-size: 11px;
  color: rgba(160, 150, 140, 0.75);
  font-style: italic;
}

.char-profile__appearance {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  align-items: flex-start;
}

.char-profile__appearance-fig {
  flex-shrink: 0;
  width: 120px;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(circle at 50% 80%, rgba(255, 160, 60, 0.12), transparent 65%);
  border-radius: 12px;
  border: 1px dashed rgba(255, 190, 100, 0.28);
}

.char-profile__appearance-fig img {
  max-width: 110px;
  max-height: 130px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.char-profile__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 200px;
}

.char-profile__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 200, 120, 0.08);
  font-size: 14px;
  color: #e8dcc8;
}

.char-profile__list li:last-child {
  border-bottom: none;
}

.char-profile__list li strong {
  color: #ffc45a;
  font-weight: 700;
}

.char-profile__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c4782a 0%, #8a4a12 100%);
  color: #fff;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 140, 40, 0.25);
}

.char-profile__check--off {
  background: rgba(60, 52, 48, 0.85);
  color: transparent;
  box-shadow: none;
}

/* Panel estilo ventana del cliente: dos columnas + barras */
.char-profile__stats-body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(0, 0, 0, 0.06) 3px
    ),
    rgba(0, 0, 0, 0.2);
}

.char-profile__stats-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 0 16px;
  padding: 14px 16px 18px;
  align-items: start;
}

.char-profile__stats-divider {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 200, 140, 0.22) 20%,
    rgba(255, 200, 140, 0.22) 80%,
    transparent 100%
  );
  min-height: 200px;
  align-self: stretch;
}

.char-profile__stats-col--main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.char-profile__stat-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.char-profile__stat-line-label {
  color: rgba(180, 168, 155, 0.95);
  flex-shrink: 0;
}

.char-profile__stat-line-val {
  color: #f5f0e8;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.char-profile__stat-line-sub {
  font-weight: 500;
  color: rgba(200, 185, 160, 0.75);
  font-size: 12px;
}

.char-profile__stat-line--compact {
  font-size: 12px;
  padding-top: 2px;
}

.char-profile__stat-bar {
  position: relative;
  width: 100%;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.char-profile__stat-bar--level {
  height: 6px;
  margin: 2px 0 6px;
  border-radius: 3px;
}

.char-profile__stat-bar--hp,
.char-profile__stat-bar--mp {
  height: 14px;
  border-radius: 6px;
}

.char-profile__stat-bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.char-profile__stat-bar--level .char-profile__stat-bar-fill {
  background: linear-gradient(180deg, #ff5555 0%, #a01818 100%);
}

.char-profile__stat-bar--hp .char-profile__stat-bar-fill {
  background: linear-gradient(180deg, #ff6b5a 0%, #9b1c1c 100%);
}

.char-profile__stat-bar--mp .char-profile__stat-bar-fill {
  background: linear-gradient(180deg, #6eb8ff 0%, #1a4f9e 100%);
}

.char-profile__stat-resource {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.char-profile__stat-resource-ico {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.char-profile__stat-resource-ico--hp {
  background: linear-gradient(180deg, #ff7a6e, #b01010);
  box-shadow: 0 0 8px rgba(255, 60, 60, 0.35);
}

.char-profile__stat-resource-ico--mp {
  background: linear-gradient(180deg, #7cc4ff, #2058a8);
  box-shadow: 0 0 8px rgba(80, 160, 255, 0.35);
}

.char-profile__stat-resource-barwrap {
  flex: 1 1 auto;
  min-width: 0;
}

.char-profile__stat-numbox {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 4px 8px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f0e8dc;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.char-profile__skill-fighting {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 13px;
}

.char-profile__skill-fighting li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f0ebe3;
}

.char-profile__skill-fighting li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.char-profile__skill-name {
  color: rgba(210, 200, 188, 0.92);
  text-align: left;
}

.char-profile__skill-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffcc33;
  text-align: right;
  min-width: 2ch;
}

@media (max-width: 640px) {
  .char-profile__stats-cols {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 16px;
  }

  .char-profile__stats-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 200, 140, 0.25) 15%,
      rgba(255, 200, 140, 0.25) 85%,
      transparent 100%
    );
  }
}

.char-profile__outfit-mini {
  padding: 12px 14px 16px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.15);
}

.char-profile__outfit-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
}

.char-profile__outfit-mini-grid img {
  width: 40px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 190, 100, 0.15);
}

.char-profile__outfit-mini-grid img.cp-o-gray {
  filter: grayscale(100%);
  opacity: 0.4;
}

.char-profile__death-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #e8dcc8;
}

.char-profile__death-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 200, 120, 0.1);
  vertical-align: top;
}

.char-profile__death-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.char-profile__death-table td:first-child {
  color: rgba(200, 185, 168, 0.92);
  white-space: nowrap;
  width: 1%;
}

.char-profile .deathlist {
  width: 100%;
}

.deaths-type-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
}

.deaths-type-summary__item {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 180, 90, 0.35);
  background: rgba(30, 22, 16, 0.82);
  color: #f5e8d0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.deaths-type-summary__item--total {
  border-color: rgba(255, 210, 120, 0.55);
  color: #ffe8b8;
  background: rgba(45, 32, 18, 0.88);
}

.deaths-type-summary__item--player {
  border-color: rgba(255, 140, 100, 0.55);
  color: #ffc8a8;
  background: rgba(48, 24, 18, 0.88);
}

.deaths-type-summary__item--monster {
  border-color: rgba(130, 190, 255, 0.5);
  color: #c8e0ff;
  background: rgba(18, 28, 48, 0.88);
}

.deaths-filter-form {
  margin: 0 0 16px;
}

.deaths-filter-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
}

.deaths-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(200, 185, 168, 0.9);
}

.deaths-filter-form select {
  min-width: 140px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 180, 90, 0.28);
  background: rgba(14, 10, 9, 0.75);
  color: #e8dcc8;
}

.deaths-filter-form__btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 180, 90, 0.35);
  background: rgba(80, 50, 20, 0.55);
  color: #ffe8c8;
  cursor: pointer;
}

.deaths-killer {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deaths-killer--player {
  color: #ff9a7a;
}

.deaths-killer--monster {
  color: #8ab4ff;
}

.death-row--player td {
  border-left: 3px solid rgba(255, 120, 90, 0.55);
}

.death-row--monster td {
  border-left: 3px solid rgba(120, 180, 255, 0.45);
}

.deaths-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
  font-size: 13px;
}

.deaths-pagination__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deaths-pagination__link,
.deaths-pagination__current {
  display: inline-block;
  min-width: 28px;
  padding: 4px 8px;
  text-align: center;
  border-radius: 5px;
  border: 1px solid rgba(255, 180, 90, 0.25);
}

.deaths-pagination__current {
  background: rgba(255, 180, 90, 0.18);
  font-weight: 700;
}

.deaths-pagination__gap {
  padding: 4px 2px;
  opacity: 0.6;
}

.char-deaths-block__controls {
  padding: 12px 10px !important;
  background: rgba(14, 10, 9, 0.35);
}

.char-deaths-block__link {
  margin: 8px 0 16px;
  font-size: 13px;
}

.char-deaths-block__link a {
  color: #ffb86a;
}

.deaths-page .deaths-table {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .deaths-filter-form__row {
    flex-direction: column;
    align-items: stretch;
  }

  .deaths-filter-form select,
  .deaths-filter-form__btn {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .char-profile__grid {
    grid-template-columns: 1fr;
  }
}

/* --- My Account (myaccount.php) — panel Royal Exodus --- */
.myaccount-panel {
  max-width: 960px;
  margin: 12px auto 28px;
  padding: 0 12px;
}

.myaccount-panel__card {
  position: relative;
  background: rgba(14, 10, 9, 0.62);
  border: 1px solid rgba(255, 180, 90, 0.28);
  border-radius: 16px;
  padding: 22px 22px 26px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 220, 160, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.myaccount-panel__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 200, 120, 0.06) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255, 140, 60, 0.04) 100%
  );
  opacity: 0.9;
}

.myaccount-panel__title {
  position: relative;
  margin: 0 0 18px;
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #f0e8dc;
  text-shadow: 0 0 28px rgba(255, 170, 60, 0.2);
}

.myaccount-panel__intro {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 190, 100, 0.14);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(220, 208, 192, 0.95);
}

.myaccount-panel__intro p {
  margin: 0 0 10px;
}

.myaccount-panel__intro p:last-child {
  margin-bottom: 0;
}

.myaccount-panel__account-name {
  color: #ffc45a;
  font-weight: 700;
}

.myaccount-panel__premium-days {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: #c8f5a8;
  background: rgba(40, 120, 50, 0.35);
  border: 1px solid rgba(120, 200, 100, 0.35);
  box-shadow: 0 0 16px rgba(80, 200, 90, 0.15);
}

.myaccount-panel__premium--free .myaccount-panel__free-label {
  color: rgba(200, 190, 175, 0.95);
  font-weight: 600;
}

.myaccount-panel__verified {
  color: #9fdf88;
  font-size: 14px;
}

.myaccount-panel__unverified a {
  color: #ffc45a;
}

.myaccount-panel__unverified a:hover {
  color: #ffe0a0;
}

.myaccount-panel__2fa a {
  color: #ffc45a;
  font-weight: 600;
}

.myaccount-panel__subtitle {
  position: relative;
  margin: 0 0 14px;
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8dcc8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.myaccount-panel__char-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #1a1410;
  background: linear-gradient(180deg, #ffd78a 0%, #c78a30 100%);
  box-shadow: 0 2px 12px rgba(255, 180, 60, 0.25);
}

.myaccount-panel__table-wrap {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 90, 0.18);
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(0, 0, 0, 0.22);
  -webkit-overflow-scrolling: touch;
}

.myaccount-char-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  color: #e8dcc8;
}

.myaccount-char-table thead th {
  padding: 12px 10px;
  text-align: left;
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 188, 172, 0.9);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 190, 100, 0.2);
}

.myaccount-char-table tbody tr {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.myaccount-char-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.myaccount-char-table tbody tr:hover {
  background: rgba(255, 190, 100, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 120, 0.12);
}

.myaccount-char-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 200, 120, 0.08);
  vertical-align: middle;
}

.myaccount-char-table tbody tr:last-child td {
  border-bottom: none;
}

.myaccount-char-table__name {
  color: #ffc45a;
  font-weight: 600;
  text-decoration: none;
}

.myaccount-char-table__name:hover {
  color: #ffe8b0;
  text-shadow: 0 0 12px rgba(255, 180, 80, 0.35);
}

.myaccount-char-table__status .status_online,
.myaccount-char-table__status font.status_online {
  color: #8fdf7a !important;
}

.myaccount-panel__manage {
  position: relative;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 180, 90, 0.14);
}

.myaccount-panel__form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  align-items: flex-end;
  justify-content: center;
}

.myaccount-panel__form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 200px);
}

.myaccount-panel__form-row--submit {
  min-width: auto;
  justify-content: flex-end;
}

.myaccount-panel__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 168, 155, 0.95);
}

.myaccount-panel__select {
  min-width: 200px;
  padding: 10px 12px;
  font-size: 14px;
  color: #f0e8dc;
  background: rgba(8, 6, 5, 0.85);
  border: 1px solid rgba(255, 180, 90, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.myaccount-panel__select:hover,
.myaccount-panel__select:focus {
  border-color: rgba(255, 200, 120, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 180, 80, 0.12);
  outline: none;
}

.myaccount-panel__text {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  font-size: 14px;
  color: #f0e8dc;
  background: rgba(8, 6, 5, 0.85);
  border: 1px solid rgba(255, 180, 90, 0.25);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.myaccount-panel__text:focus {
  border-color: rgba(255, 200, 120, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 180, 80, 0.12);
  outline: none;
}

.myaccount-panel__submit {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1410;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe2a8 0%, #d4a03a 45%, #a87018 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.myaccount-panel__submit:hover {
  filter: brightness(1.06);
  box-shadow:
    0 6px 22px rgba(255, 160, 40, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.myaccount-panel__submit:active {
  transform: translateY(0);
}

.myaccount-panel__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.myaccount-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1410;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe2a8 0%, #c8942e 100%);
  border: 1px solid rgba(255, 220, 160, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.myaccount-panel__btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(255, 170, 50, 0.28);
  transform: translateY(-2px);
  color: #1a1410;
}

.myaccount-panel__btn--ghost {
  background: transparent;
  color: #e8dcc8;
  border-color: rgba(255, 190, 100, 0.35);
  box-shadow: none;
}

.myaccount-panel__btn--ghost:hover {
  background: rgba(255, 190, 100, 0.1);
  color: #ffc45a;
  box-shadow: 0 0 20px rgba(255, 160, 60, 0.12);
}

.myaccount-panel__empty {
  position: relative;
  text-align: center;
  margin: 8px 0 20px;
  padding: 20px;
  font-size: 15px;
  color: rgba(200, 190, 175, 0.9);
  border-radius: 12px;
  border: 1px dashed rgba(255, 180, 90, 0.22);
  background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 720px) {
  .myaccount-panel__table-wrap {
    border: none;
    background: transparent;
    overflow: visible;
  }

  .myaccount-char-table {
    min-width: 0;
  }

  .myaccount-char-table thead {
    display: none;
  }

  .myaccount-char-table tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 4px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 180, 90, 0.2);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
  }

  .myaccount-char-table tbody tr:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }

  .myaccount-char-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 200, 120, 0.08);
  }

  .myaccount-char-table td:last-child {
    border-bottom: none;
  }

  .myaccount-char-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(180, 168, 155, 0.9);
    flex-shrink: 0;
  }

  .myaccount-panel__form {
    flex-direction: column;
    align-items: stretch;
  }

  .myaccount-panel__select {
    min-width: 0;
    width: 100%;
  }

  .myaccount-panel__form-row--submit {
    align-items: stretch;
  }

  .myaccount-panel__submit {
    width: 100%;
  }
}

/* --- Cajón lateral: reloj + eventos (world_clock_dock). Solo pestaña a la derecha; abre con hover o clic (.re-world-dock--open). --- */
.re-world-dock {
  position: fixed;
  top: 96px;
  right: 0;
  z-index: 95000;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 46px;
  max-height: calc(100vh - 108px);
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: auto;
  font-family: "Roboto", system-ui, sans-serif;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(255, 180, 90, 0.35);
  border-right: none;
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.45);
  transition: width 0.3s ease, box-shadow 0.25s ease;
}

.re-world-dock:hover,
.re-world-dock--open,
.re-world-dock:focus-within {
  width: min(334px, calc(100vw - 8px));
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.55);
}

.re-world-dock__tab {
  display: flex;
  flex: 0 0 46px;
  width: 46px;
  min-height: 140px;
  align-self: stretch;
  margin: 0;
  border: none;
  border-radius: 0;
  border-left: 1px solid rgba(255, 180, 90, 0.22);
  background: linear-gradient(180deg, rgba(30, 22, 18, 0.96) 0%, rgba(12, 8, 6, 0.99) 100%);
  color: #ffc45a;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.re-world-dock__tab:hover {
  color: #ffe8b0;
  background: linear-gradient(180deg, rgba(45, 32, 24, 0.98) 0%, rgba(18, 12, 8, 0.99) 100%);
}

.re-world-dock__tab-icon {
  font-size: 18px;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.12em;
}

.re-world-dock__panel {
  flex: 0 0 min(288px, calc(100vw - 54px));
  width: min(288px, calc(100vw - 54px));
  min-width: min(288px, calc(100vw - 54px));
  max-height: min(calc(100vh - 108px), 720px);
  overflow: hidden auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 16px 14px;
  margin: 0;
  background: rgba(14, 10, 9, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.re-world-dock__head {
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 200, 120, 0.12);
}

.re-world-dock__title {
  display: block;
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8dcc8;
}

.re-world-dock__sub {
  display: block;
  font-size: 11px;
  color: rgba(180, 168, 155, 0.9);
  margin-top: 4px;
}

.re-world-dock__clocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.re-world-dock__clock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 190, 100, 0.12);
}

.re-world-dock__clock-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 188, 172, 0.9);
}

.re-world-dock__clock-time {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #ffc45a;
}

.re-world-dock__section-title {
  font-family: "Cinzel", "Philosopher", serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9b8a8;
  margin-top: 4px;
}

.re-world-dock__events {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.re-world-dock__event {
  padding: 10px 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 180, 90, 0.14);
}

.re-world-dock__event-top {
  margin-bottom: 6px;
}

.re-world-dock__pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(100, 100, 110, 0.35);
  color: #ddd;
}

.re-world-dock__pill--boss {
  background: rgba(180, 40, 60, 0.45);
  color: #ffc9d0;
}

.re-world-dock__pill--castle {
  background: rgba(40, 120, 180, 0.4);
  color: #c8e8ff;
}

.re-world-dock__pill--other {
  background: rgba(90, 140, 80, 0.35);
  color: #d4f0c8;
}

.re-world-dock__event-name {
  font-size: 13px;
  font-weight: 600;
  color: #f0e8dc;
  line-height: 1.3;
  margin-bottom: 6px;
}

.re-world-dock__event-cd {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #7dffb3;
  text-shadow: 0 0 16px rgba(80, 255, 140, 0.25);
}

.re-world-dock__empty {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(180, 168, 155, 0.95);
}

.re-world-dock__empty code {
  font-size: 11px;
  color: #ffc45a;
}

.re-world-dock__link {
  display: block;
  text-align: center;
  margin-top: 4px;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #ffc45a;
  text-decoration: none;
  border-radius: 8px;
  border: 1px dashed rgba(255, 180, 90, 0.25);
  transition: background 0.2s ease, color 0.2s ease;
}

.re-world-dock__link:hover {
  background: rgba(255, 180, 90, 0.08);
  color: #ffe8b0;
}

@media (max-width: 900px) {
  .re-world-dock {
    top: 72px;
    max-height: calc(100vh - 84px);
  }

  .re-world-dock__panel {
    max-height: min(calc(100vh - 84px), 620px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .re-world-dock {
    transition: none;
  }
}

/* --- Botón Discord compacto (discord_panel): esquina inferior izquierda --- */
.re-discord-panel {
  position: fixed;
  left: 12px;
  bottom: 20px;
  z-index: 94950;
  pointer-events: auto;
  line-height: 0;
}

.re-discord-panel__btn {
  display: block;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.re-discord-panel__btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  filter: brightness(1.05);
}

.re-discord-panel__btn:active {
  transform: scale(0.98);
}

.re-discord-panel__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .re-discord-panel {
    left: 8px;
    bottom: 12px;
  }

  .re-discord-panel__btn {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }
}

/* Estado del game server (header): tarjeta junto a jugadores online */
.servers__item--game-status .servers__item-info-rate--status {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.servers__item--game-status .servers__item-info-rate--up {
  color: #7dffb3;
}

.servers__item--game-status .servers__item-info-rate--down {
  color: #ff8a8a;
}

/* --- Contador de apertura (header + descargas) --- */
.opening-countdown {
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 10px 14px;
  max-width: 420px;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 80, 0.35);
  background: linear-gradient(145deg, rgba(20, 14, 10, 0.92), rgba(35, 22, 14, 0.88));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 220, 160, 0.08);
}

.opening-countdown__title {
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8c878;
  margin-bottom: 8px;
  text-align: center;
}

.opening-countdown__grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 8px;
}

.opening-countdown__cell {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.opening-countdown__value {
  display: block;
  font-family: "Philosopher", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff4e0;
  text-shadow: 0 0 12px rgba(255, 200, 100, 0.35);
}

.opening-countdown__unit {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8a090;
}

.opening-countdown--header {
  max-width: 380px;
}

.opening-countdown--compact {
  max-width: 100%;
  margin-top: 12px;
}

.opening-countdown--compact .opening-countdown__value {
  font-size: 20px;
}

@media (max-width: 520px) {
  .opening-countdown--header {
    max-width: 100%;
  }

  .opening-countdown__value {
    font-size: 18px;
  }

  .opening-countdown__unit {
    font-size: 9px;
  }
}
