/* Dark showcase theme for all inner pages */

:root {
  --bg: #0a0a0a !important;
  --bg-card: #111111 !important;
  --bg-elevated: #1a1418 !important;
  --bg-hover: #221a1e !important;
  --border: rgba(255, 255, 255, 0.1) !important;
  --border-light: rgba(255, 255, 255, 0.14) !important;
  --text: #f4f1e8 !important;
  --text-muted: rgba(244, 241, 232, 0.72) !important;
  --text-dim: rgba(244, 241, 232, 0.48) !important;
  --accent: #C3073F !important;
  --accent-hover: #e94560 !important;
  --accent-dark: #6F2232 !important;
  --accent-dim: rgba(195, 7, 63, 0.14) !important;
  --accent-glow: rgba(195, 7, 63, 0.35) !important;
  --accent-subtle: rgba(111, 34, 50, 0.35) !important;
  --cream: #f4f1e8;
  --ink: #f4f1e8;
  --muted: #a89a9e;
  --panel: rgba(17, 17, 17, 0.96);
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(195, 7, 63, 0.12), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(111, 34, 50, 0.1), transparent 50%),
    #0a0a0a !important;
  color: #f4f1e8 !important;
}

body::before,
body::after {
  display: none !important;
}

.ash-canvas {
  display: none !important;
}

/* Header — stable flex layout (fixes profile button) */
.header {
  background: rgba(10, 10, 10, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header::before {
  display: none !important;
}

.header__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  height: auto !important;
  min-height: 72px !important;
  padding: 12px 28px !important;
  max-width: 1320px !important;
  position: relative !important;
}

.logo {
  color: #F4F1E8 !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  text-transform: lowercase !important;
  flex-shrink: 0 !important;
}

.logo img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
}

.nav {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  padding-right: 0 !important;
  min-height: auto !important;
  position: static !important;
}

.nav__center {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.nav__center[hidden] {
  display: none !important;
}

.nav__link {
  color: rgba(244, 241, 232, 0.72) !important;
  font-weight: 500 !important;
  position: relative !important;
  transform: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.nav__link::after {
  content: '' !important;
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 0 !important;
  width: auto !important;
  height: 2px !important;
  border-radius: 2px 2px 0 0 !important;
  background: transparent !important;
  transform: none !important;
  transition: background 0.2s ease !important;
}

.nav__link:hover,
.nav__link--active {
  color: #F4F1E8 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  transform: none !important;
  box-shadow: none !important;
}

.nav__link:hover::after,
.nav__link--active::after {
  background: #C3073F !important;
  width: auto !important;
}

.nav__account,
a.nav__account,
#nav-account.nav__account {
  position: static !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
  padding: 10px 20px !important;
  background: #C3073F !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.nav__account::after,
a.nav__account::after,
#nav-account.nav__account::after {
  display: none !important;
}

.nav__account:hover,
a.nav__account:hover,
#nav-account.nav__account:hover {
  background: #e94560 !important;
  color: #fff !important;
  transform: none !important;
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F4F1E8 !important;
  border-radius: 999px !important;
  flex-shrink: 0 !important;
}

/* Titles */
.page-title,
.section-title,
.launcher-hero__title,
.info-panel__title,
.staff-section__title,
.map-sidebar__title {
  color: #F4F1E8 !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
}

.page-subtitle,
.players-pagination,
.map-sidebar__hint {
  color: rgba(244, 241, 232, 0.62) !important;
}

/* Cards */
.card,
.stat-card,
.about-nav-card,
.player-card,
.member-card,
.info-panel,
.reg-panel,
.server-box,
.cta-banner,
.launcher-mock,
.glass-card,
.guilds-card,
.lore-card,
.settings-app,
.profile-login,
.step {
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  color: #F4F1E8 !important;
  box-shadow: none !important;
}

.card:hover,
.about-nav-card:hover,
.player-card:hover,
.member-card:hover {
  border-color: rgba(195, 7, 63, 0.45) !important;
}

.card__title,
.about-nav-card__label,
.member-card__name,
.player-card__nick,
.step__title,
.link-list__title {
  color: #F4F1E8 !important;
}

.card__text,
.info-panel__text,
.step__text,
.player-card__meta,
.member-card__role,
.link-list__desc {
  color: rgba(244, 241, 232, 0.62) !important;
}

/* Buttons */
.btn--primary {
  background: #C3073F !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.btn--primary:hover {
  background: #e94560 !important;
}

.btn--outline {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #F4F1E8 !important;
  border-radius: 999px !important;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Forms */
.reg-form__label {
  color: rgba(244, 241, 232, 0.62) !important;
}

.reg-form__input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
  background: #221a1e !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #FFF8F9 !important;
  border-radius: 12px !important;
  color-scheme: dark;
}

.reg-form__input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(255, 248, 249, 0.42) !important;
}

select option,
select optgroup {
  background-color: #1a1418 !important;
  color: #FFF8F9 !important;
}

.reg-form__input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #FF3D5A !important;
  outline: none;
}

/* Footer */
.footer {
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(244, 241, 232, 0.5) !important;
}

.footer__links a {
  color: rgba(244, 241, 232, 0.5) !important;
}

.footer__links a:hover {
  color: #F4F1E8 !important;
}

.status-dot--green { background: #34d399 !important; }
.status-dot--red { background: #C3073F !important; }

.launcher-hero,
.main--launcher,
.map-page,
.map-main {
  background: #0a0a0a !important;
}

.launcher-hero__badge {
  background: rgba(195, 7, 63, 0.14) !important;
  color: #e94560 !important;
  border-color: rgba(195, 7, 63, 0.3) !important;
}

.launcher-hero__desc,
.launcher-hero__note {
  color: rgba(244, 241, 232, 0.62) !important;
}

.map-sidebar {
  background: #141414 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.map-sidebar__subtitle,
.map-sidebar__status {
  color: rgba(244, 241, 232, 0.62) !important;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(195, 7, 63, 0.18), #141414) !important;
}

.cta-banner h2 { color: #F4F1E8 !important; }
.cta-banner p { color: rgba(244, 241, 232, 0.62) !important; }

.icon-box {
  background: rgba(195, 7, 63, 0.14) !important;
  color: #C3073F !important;
}

.step__num {
  background: #C3073F !important;
  color: #fff !important;
}

.link-list__item {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 900px) {
  .nav {
    background: #141414 !important;
  }

  .nav__center {
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .nav__center.admin-tabs--header:not([hidden]) {
    display: flex !important;
  }

  .admin-tabs--header .admin-tabs__btn {
    width: 100%;
    justify-content: center;
  }

  .nav__account,
  a.nav__account,
  #nav-account.nav__account {
    margin: 8px 0 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
}

/* ===== Site-wide motion ===== */
@keyframes siteOrb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate(18px, -22px) scale(1.12); opacity: 0.55; }
}

@keyframes siteBtnShine {
  0% { transform: translateX(-130%) skewX(-16deg); }
  100% { transform: translateX(230%) skewX(-16deg); }
}

@keyframes siteLogoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(195, 7, 63, 0.0); }
  50% { box-shadow: 0 0 22px rgba(195, 7, 63, 0.35); }
}

html.motion-enabled body::before {
  display: block !important;
  background:
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(195, 7, 63, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 92% 18%, rgba(195, 7, 63, 0.1), transparent 55%) !important;
  animation: siteOrb 16s ease-in-out infinite;
  opacity: 1 !important;
  z-index: 0 !important;
}

html.motion-enabled .main {
  position: relative;
  z-index: 1;
}

html.motion-enabled .logo img {
  animation: siteLogoPulse 4.8s ease-in-out infinite;
}

html.motion-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

html.motion-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

html.motion-enabled .reveal-scale {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  filter: blur(1px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1),
    filter 0.5s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  transition-delay: var(--reveal-delay, 0s);
}

html.motion-enabled .reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

html.motion-enabled .card,
html.motion-enabled .about-nav-card,
html.motion-enabled .player-card,
html.motion-enabled .member-card,
html.motion-enabled .guilds-card,
html.motion-enabled .guild-top-card,
html.motion-enabled .lore-card,
html.motion-enabled .staff-card,
html.motion-enabled .stat-card,
html.motion-enabled .step {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.28s ease !important;
}

html.motion-enabled .card:hover,
html.motion-enabled .about-nav-card:hover,
html.motion-enabled .player-card:hover,
html.motion-enabled .member-card:hover,
html.motion-enabled .guilds-card:hover,
html.motion-enabled .guild-top-card:hover,
html.motion-enabled .lore-card:hover,
html.motion-enabled .staff-card:hover,
html.motion-enabled .stat-card:hover,
html.motion-enabled .step:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(195, 7, 63, 0.5) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(195, 7, 63, 0.12) !important;
}

html.motion-enabled .btn--primary,
html.motion-enabled .btn.btn--primary {
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.25s ease !important;
}

html.motion-enabled .btn--primary::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  width: 42% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent) !important;
  transform: translateX(-130%) skewX(-16deg) !important;
  pointer-events: none !important;
}

html.motion-enabled .btn--primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(195, 7, 63, 0.35) !important;
}

html.motion-enabled .btn--primary:hover::after {
  animation: siteBtnShine 0.7s ease !important;
}

html.motion-enabled .btn--outline:hover,
html.motion-enabled .btn--ghost:hover {
  transform: translateY(-2px) !important;
}

html.motion-enabled .reg-form__input,
html.motion-enabled input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html.motion-enabled select,
html.motion-enabled textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

html.motion-enabled .reg-form__input:focus,
html.motion-enabled input:focus,
html.motion-enabled select:focus,
html.motion-enabled textarea:focus {
  box-shadow: 0 0 0 3px rgba(195, 7, 63, 0.2) !important;
}

html.motion-enabled .nav__link {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease !important;
}

html.motion-enabled .nav__link:hover {
  transform: translateY(-1px) !important;
}

@media (prefers-reduced-motion: reduce) {
  html.motion-enabled body::before,
  html.motion-enabled .logo img,
  html.motion-enabled .btn--primary::after {
    animation: none !important;
  }

  html.motion-enabled .reveal,
  html.motion-enabled .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  html.motion-enabled .card:hover,
  html.motion-enabled .about-nav-card:hover,
  html.motion-enabled .player-card:hover,
  html.motion-enabled .member-card:hover,
  html.motion-enabled .btn--primary:hover {
    transform: none !important;
  }
}
