/* ==========================================================================
   Myths Portal – Global Design System
   ========================================================================== */

:root {
  /* Alineado con paneles del juego (web/game.html) */
  --bg-base: #0a0e14;
  --bg-panel: #12161e;
  --bg-elevated: #1a2030;
  --bg-input: #1a2030;
  --color-primary: #7dd3fc;
  --color-secondary: #a5e4fc;
  --color-text: #e8eef5;
  --color-text-muted: #8b97a8;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-hover: rgba(125, 211, 252, 0.12);
  --color-glow: rgba(125, 211, 252, 0.2);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container-max: 1500px;
  --page-gutter: clamp(28px, 5vw, 80px);
  --transition: 200ms ease;
  --header-height: 64px;
  --construction-banner-height: 2.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--bg-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-secondary); }

img { max-width: 100%; display: block; }

/* Grid */
.container {
  width: min(var(--container-max), 100%);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.container--narrow { width: min(920px, 100%); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.col-span-2 { grid-column: span 2; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text);
}

.text-muted { color: var(--color-text-muted); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--color-border);
}

.site-header.is-scrolled {
  background: var(--bg-panel);
  border-bottom-color: var(--color-border);
}

.page-landing .site-header,
.page-catalog .site-header {
  background: var(--bg-panel);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  width: min(var(--container-max), 100%);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  text-decoration: none;
  min-width: 0;
}

.logo:hover .logo-text {
  color: var(--color-primary);
}

.logo:hover .logo-img {
  opacity: 1;
}

.logo-img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.95;
  transition: opacity var(--transition);
}

.logo-img--header {
  width: 40px;
  height: 40px;
}

.logo-img--footer {
  width: 36px;
  height: 36px;
}

/* Cuadrado «M» (legado); preferir .logo-img */
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  color: var(--color-text);
  transition: color var(--transition);
}

.logo--footer .logo-text {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-muted);
  border-radius: 0;
  background: transparent;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
  background: transparent;
}

.nav-link.is-active {
  color: var(--color-primary);
  background: transparent;
  box-shadow: none;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.1rem;
  height: 1.5px;
  background: var(--color-primary);
  border-radius: 1px;
}

/* Acceso flotante al Lobby (fuera del menú rígido) */
.lobby-float {
  --lf-pad: 0.85rem;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  top: calc(var(--header-height) + 0.85rem);
  bottom: auto;
  z-index: 860;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: min(18.5rem, calc(100vw - 2rem));
  padding: 0.55rem 0.7rem 0.55rem 0.55rem;
  border: none;
  border-radius: 1.35rem;
  text-decoration: none;
  color: #e8eef5;
  background:
    linear-gradient(155deg, rgba(26, 32, 48, 0.94), rgba(12, 16, 24, 0.92));
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-origin: 100% 0%;
  animation:
    lobbyFloatIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both,
    lobbyFloatBob 5.5s ease-in-out 0.7s infinite;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.lobby-float__orb {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 1rem;
  color: #0a0e14;
  background:
    radial-gradient(circle at 28% 22%, #f2fbff 0%, #7dd3fc 52%, #4aa9d4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 18px rgba(125, 211, 252, 0.22);
}

.lobby-float__orb::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(125, 211, 252, 0.28);
  opacity: 0.7;
  pointer-events: none;
  animation: lobbyFloatRing 3.2s ease-out infinite;
}

.lobby-float__panel {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  padding-right: 0.15rem;
}

.lobby-float__kicker {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.85);
}

.lobby-float__panel strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f3f7fb;
}

.lobby-float__panel em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  color: #8b97a8;
}

.lobby-float__go {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  margin-left: auto;
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.1);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lobby-float:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.32),
    0 22px 48px rgba(0, 0, 0, 0.5);
}

.lobby-float:hover .lobby-float__go {
  background: rgba(125, 211, 252, 0.2);
  color: #b6e7fc;
  transform: translateX(2px);
}

.lobby-float:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.55);
  outline-offset: 3px;
}

@keyframes lobbyFloatIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lobbyFloatBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes lobbyFloatRing {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

body.has-status-board .lobby-float {
  top: calc(var(--header-height) + var(--status-board-height) + 0.75rem);
  bottom: auto;
}

body.has-construction-banner .lobby-float {
  top: calc(var(--header-height) + 2.6rem + 0.75rem);
}

body.has-construction-banner.has-status-board .lobby-float {
  top: calc(var(--header-height) + 2.6rem + var(--status-board-height) + 0.65rem);
}

@media (prefers-reduced-motion: reduce) {
  .lobby-float,
  .lobby-float__orb::after {
    animation: none;
  }
}

/* Indicador de contenido nuevo (Noticias / Changelog / Preguntas) */
.nav-link__dot {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 2px var(--bg-panel);
  pointer-events: none;
}

/* Menú «Más» (desktop dropdown; en mobile drawer = contents) */
.nav-more {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-more__toggle {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--transition);
}

.nav-more__toggle:hover,
.nav-more__toggle.is-active,
.nav-more.is-open .nav-more__toggle {
  color: var(--color-text);
}

.nav-more__toggle.is-active {
  color: var(--color-primary);
}

.nav-more__toggle.is-active::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.1rem;
  height: 1.5px;
  background: var(--color-primary);
  border-radius: 1px;
}

.nav-more__toggle:focus {
  outline: none;
}

.nav-more__toggle:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.45);
  outline-offset: 2px;
}

.nav-more__chevron {
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform var(--transition);
}

.nav-more.is-open .nav-more__chevron {
  transform: rotate(180deg);
}

.nav-more__dot {
  top: 0.1rem;
  right: 0.05rem;
}

.nav-more__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: none;
  flex-direction: column;
  min-width: 11.5rem;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--bg-panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.nav-more.is-open .nav-more__panel {
  display: flex;
}

.nav-more__link {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  text-align: left;
}

.nav-more__link:hover {
  color: var(--color-primary);
  background: rgba(125, 211, 252, 0.08);
}

.nav-more__link.is-active {
  color: var(--color-primary);
  background: rgba(125, 211, 252, 0.08);
}

.nav-more__link.is-active::after {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

/* <button> no debe usar el chrome nativo del SO (fondo gris, borde 3D) */
button.icon-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: 0;
  cursor: pointer;
  box-shadow: none;
}

button.icon-btn:focus {
  outline: none;
}

button.icon-btn:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.45);
  outline-offset: 2px;
}

.icon-btn:hover {
  color: var(--color-primary);
  background: var(--color-hover);
}

.icon-btn--avatar,
button.icon-btn.icon-btn--avatar {
  position: relative;
  padding: 0;
  overflow: visible;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.icon-btn--avatar .user-avatar-wrap {
  width: 32px;
  height: 32px;
}

.icon-btn--avatar .user-avatar--sm {
  width: 32px;
  height: 32px;
}

.icon-btn--avatar:hover {
  background: transparent;
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: none;
}

.icon-btn--avatar.is-active {
  border-color: var(--color-primary);
  box-shadow: none;
}

.icon-btn__notify {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 1;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #f87171;
  color: #0a0e14;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  pointer-events: none;
}

.icon-btn--friends {
  position: relative;
  overflow: visible;
}

.icon-btn--friends.is-active {
  color: var(--color-primary);
  background: var(--color-hover);
}

.user-menu {
  position: relative;
}

.user-menu.is-active .user-menu__toggle {
  border-color: var(--color-primary);
}

.user-menu__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 80;
  width: min(17.5rem, calc(100vw - 1.5rem));
  padding: 0.4rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--color-border);
  background: #12161e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Móvil: el JS (user-menu.js) fuerza fixed+left; esto es respaldo CSS. */
@media (max-width: 720px) {
  .user-menu__panel,
  .user-menu__panel.is-mobile-fixed {
    position: fixed !important;
    right: auto;
    z-index: 2000;
    width: min(18rem, calc(100vw - 1.5rem));
    max-height: min(70dvh, calc(100dvh - 5rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
}

.user-menu__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem 0.7rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.3rem;
}

.user-menu__name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.92rem;
}

.user-menu__email {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  word-break: break-all;
}

.user-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.user-menu__item:hover {
  background: rgba(125, 211, 252, 0.08);
  color: var(--color-primary);
}

.user-menu__item--lobby {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  margin: 0.15rem 0;
  background: rgba(125, 211, 252, 0.08);
  color: #7dd3fc;
  font-weight: 650;
}

.user-menu__item--lobby em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.user-menu__item--lobby:hover {
  background: rgba(125, 211, 252, 0.14);
  color: #b6e7fc;
}

.user-menu__item--danger {
  color: #f87171;
}

.user-menu__item--danger:hover {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.user-menu__badge {
  min-width: 1.2rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.user-menu__logout {
  margin: 0.25rem 0 0;
  padding-top: 0.25rem;
  border-top: 1px solid var(--color-border);
}

.user-avatar {
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-elevated);
}

.user-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.user-avatar-gender {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 0;
  border: 2px solid var(--bg-base);
  pointer-events: none;
  z-index: 1;
}

.user-avatar-gender .gender-icon {
  display: block;
}

.user-avatar-wrap--sm .user-avatar-gender {
  width: 16px;
  height: 16px;
}

.user-avatar-wrap--sm .user-avatar-gender .gender-icon {
  width: 10px;
  height: 10px;
}

.user-avatar-wrap--md .user-avatar-gender {
  width: 18px;
  height: 18px;
}

.user-avatar-wrap--md .user-avatar-gender .gender-icon {
  width: 11px;
  height: 11px;
}

.user-avatar-wrap--lg .user-avatar-gender {
  width: 22px;
  height: 22px;
}

.user-avatar-wrap--lg .user-avatar-gender .gender-icon {
  width: 13px;
  height: 13px;
}

.user-avatar-wrap--xl .user-avatar-gender {
  width: 28px;
  height: 28px;
}

.user-avatar-wrap--xl .user-avatar-gender .gender-icon {
  width: 16px;
  height: 16px;
}

.user-avatar-gender--male {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.45);
}

.user-avatar-gender--female {
  background: #ec4899;
  color: #fff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.45);
}

.user-avatar--sm {
  width: 32px;
  height: 32px;
}

.user-avatar--md {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px solid rgba(125, 211, 252, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.user-avatar--lg {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 2px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.user-avatar--xl {
  width: clamp(104px, 18vw, 128px);
  height: clamp(104px, 18vw, 128px);
  flex-shrink: 0;
  border: 3px solid rgba(125, 211, 252, 0.45);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: none; }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--color-primary);
  color: #0a0e14;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--color-secondary);
  box-shadow: none;
  color: #0a0e14;
}

.btn-outline {
  background: var(--bg-elevated);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: rgba(125, 211, 252, 0.35);
  color: var(--color-primary);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.btn-nav { padding: 0.6rem 1.25rem; }

.btn-nav__icon {
  flex-shrink: 0;
}

.footer-col a.footer-link--lobby {
  color: #7dd3fc;
  font-weight: 650;
}

.footer-col a.footer-link--lobby:hover {
  color: #b6e7fc;
}

/* Ripple */
.ripple-host .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 600ms ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Footer */
.site-footer {
  background: #0a0e14;
  border-top: 1px solid var(--color-border);
  padding: 5rem 0 3rem;
  margin-top: 0;
}

.page-landing .site-footer,
.page-catalog .site-footer { margin-top: 0; }

body:not(.page-landing):not(.page-catalog) .site-footer { margin-top: 4rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand .footer-desc {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1.25rem 0;
  max-width: 280px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  padding: 0.35rem 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-primary); }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.newsletter-form .form-input { flex: 1; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.footer-social a:hover {
  color: var(--color-primary);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: none;
  background: var(--bg-elevated);
}

/* Inner pages */
main { padding-top: var(--header-height); }

.page-landing main,
.page-catalog main { padding-top: 0; }

html:has(body.page-landing),
html:has(body.page-catalog) {
  overflow-x: clip;
}

body.page-landing,
body.page-catalog {
  overflow-x: clip;
}

.page-header {
  padding: 3.5rem 0 1.5rem;
}

.page-hero {
  position: relative;
  padding:
    calc(var(--header-height) + clamp(2rem, 4vh, 3.5rem))
    0
    clamp(2rem, 4vh, 2.75rem);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 85% 35%, rgba(125, 211, 252, 0.07), transparent 65%),
    radial-gradient(ellipse 35% 30% at 10% 80%, rgba(165, 228, 252, 0.04), transparent 55%),
    linear-gradient(165deg, var(--bg-base) 0%, #0e1218 55%, #12161e 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__overline {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-primary);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.page-hero__desc {
  max-width: 36rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); }

.section { padding: 3rem 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.section-header h2 { font-size: 1.75rem; }

/* Posts / noticias */
.post-tag, .l-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}

.news-meta time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Icono editar post / changelog (solo superuser) */
.news-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-left: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--bg-elevated);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  flex-shrink: 0;
  align-self: center;
}

.news-edit-btn:hover {
  color: var(--color-primary);
  border-color: rgba(125, 211, 252, 0.35);
  background: var(--color-hover);
}

.news-card .news-edit-btn,
.news-featured .news-edit-btn {
  margin-left: 0;
}

/* ---- Listado de noticias ---- */
.news-page {
  padding: 3.5rem 0 5rem;
}

.news-page__header {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.news-page__header h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.news-page__lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.news-page__empty {
  margin: 0;
  padding: 2rem 0;
}

.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.news-featured:hover {
  border-color: rgba(125, 211, 252, 0.22);
}

.news-featured:not(:has(.news-featured__media)) {
  grid-template-columns: 1fr;
}

.news-featured__media {
  display: block;
  min-height: 240px;
  background: var(--bg-elevated);
}

.news-featured__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
}

.news-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.news-featured__title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

.news-featured__title a {
  color: var(--color-text);
}

.news-featured__title a:hover {
  color: var(--color-primary);
}

.news-featured__excerpt {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 36em;
}

.news-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.news-read-link::after {
  content: '→';
  transition: transform var(--transition);
}

.news-featured:hover .news-read-link::after,
.news-read-link:hover::after {
  transform: translateX(3px);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.news-card:hover {
  border-color: rgba(125, 211, 252, 0.22);
}

.news-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.03);
}

.news-card__media--empty {
  background:
    linear-gradient(145deg, rgba(125, 211, 252, 0.06), transparent 55%),
    var(--bg-elevated);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
}

.news-card__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0;
}

.news-card__title a {
  color: var(--color-text);
}

.news-card__title a:hover {
  color: var(--color-primary);
}

/* ---- Detalle de noticia ---- */
.news-detail {
  padding: 2.75rem 0 4.5rem;
}

.news-detail__header {
  margin-bottom: 1.75rem;
}

.news-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.news-back:hover {
  color: var(--color-primary);
}

.news-detail__header .news-meta {
  margin-bottom: 0.85rem;
}

.news-detail__title {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.news-detail__hero {
  margin: 0 0 2rem;
}

.news-detail__hero img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.news-detail__figure {
  margin: 0 0 1.5rem;
}

.news-detail__figure img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

/* ---- Likes de noticias ---- */
.news-like-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.news-like-meta__icon,
.news-like-btn__icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  aspect-ratio: 1;
  flex: 0 0 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.85;
}

.news-reaction {
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}

.news-reaction__prompt {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.news-reaction__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.news-like-form {
  margin: 0;
}

.news-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--color-border);
  background: var(--bg-surface, #1a2030);
  color: var(--color-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.news-like-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.news-like-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.news-like-btn.is-liked {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.1);
  color: var(--color-primary);
}

.news-like-btn.is-liked .news-like-btn__icon {
  opacity: 1;
}

.news-like-btn__count {
  min-width: 1.25em;
  padding: 0.1em 0.45em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85em;
  font-weight: 650;
  text-align: center;
}

.news-like-btn.is-liked .news-like-btn__count {
  background: rgba(125, 211, 252, 0.16);
}

.news-reaction__comment-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.news-reaction__comment-link:hover {
  color: var(--color-primary);
}

.news-reaction__login {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  .news-featured {
    grid-template-columns: 1fr;
  }

  .news-featured__media img {
    max-height: 240px;
    min-height: 180px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Changelog ---- */
.page-changelog .changelog-section {
  padding-top: 0.5rem;
  padding-bottom: 4.5rem;
}

.changelog-page__empty {
  margin: 0;
  padding: 1.5rem 0;
}

.changelog-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.changelog-entry__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.changelog-entry__rail::before {
  content: '';
  position: absolute;
  top: 1.45rem;
  bottom: -1.35rem;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(125, 211, 252, 0.35),
    var(--color-border) 40%,
    transparent
  );
}

.changelog-entry:last-child .changelog-entry__rail::before {
  display: none;
}

.changelog-entry__dot {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12);
}

.changelog-entry__card {
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem 1.35rem;
}

.changelog-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.changelog-entry__meta time {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.changelog-entry__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.3;
}

.changelog-entry__meta .news-edit-btn {
  margin-left: auto;
}

/* Cuerpo enriquecido (TinyMCE / legacy → ul) */
.changelog-entry__body {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.changelog-entry__body > *:first-child {
  margin-top: 0;
}

.changelog-entry__body > *:last-child {
  margin-bottom: 0;
}

.changelog-entry__body p {
  margin: 0 0 0.75rem;
}

.changelog-entry__body ul,
.changelog-entry__body ol {
  margin: 0 0 0.85rem;
  padding: 0 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.changelog-entry__body li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.changelog-entry__body li::marker {
  color: rgba(125, 211, 252, 0.55);
}

.changelog-entry__body strong,
.changelog-entry__body b {
  color: var(--color-text);
  font-weight: 650;
}

.changelog-entry__body a {
  color: var(--color-primary);
}

.changelog-entry__body h2,
.changelog-entry__body h3,
.changelog-entry__body h4 {
  margin: 1.1rem 0 0.5rem;
  color: var(--color-text);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.changelog-entry__body h2 { font-size: 1.1rem; }
.changelog-entry__body h3 { font-size: 1rem; }
.changelog-entry__body h4 { font-size: 0.95rem; }

.changelog-entry__body hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1.1rem 0;
}

.changelog-entry__body blockquote {
  margin: 0.85rem 0;
  padding: 0.55rem 0 0.55rem 0.95rem;
  border-left: 3px solid rgba(125, 211, 252, 0.45);
  color: var(--color-text-muted);
}

.changelog-entry__body .post-highlight {
  border-left: 3px solid var(--color-primary);
  padding: 0.55rem 0.95rem;
  background: var(--bg-surface, #1a2030);
  border-radius: 6px;
  margin: 0.85rem 0;
}

.changelog-entry__body .cl-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18em 0.5em;
  border-radius: 4px;
  margin-right: 0.4em;
  vertical-align: 0.1em;
  line-height: 1.2;
}

.changelog-entry__body .cl-tag--new {
  background: rgba(125, 211, 252, 0.16);
  color: #7dd3fc;
}

.changelog-entry__body .cl-tag--fix {
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}

.changelog-entry__body .cl-tag--improve {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
}

.changelog-entry__body .cl-note {
  border-left: 3px solid #8b97a8;
  padding: 0.5rem 0.9rem;
  background: rgba(18, 22, 30, 0.85);
  border-radius: 6px;
  color: #8b97a8;
  font-size: 0.9em;
  margin: 0.75rem 0;
}

.changelog-entry__body .cl-muted {
  color: #8b97a8;
}

.changelog-entry__body img,
.changelog-entry__body video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  margin: 0.85rem 0;
}

@media (max-width: 640px) {
  .changelog-entry {
    grid-template-columns: 0.85rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .changelog-entry__card {
    padding: 1rem 1.05rem 1.15rem;
  }
}

.post-content { line-height: 1.8; color: var(--color-text-muted); }
.post-content a { color: var(--color-primary); }
.post-content p {
  margin: 0 0 1rem;
}
.post-content p:last-child {
  margin-bottom: 0;
}
/* Párrafos vacíos del editor (saltos de línea) */
.post-content p:empty::before {
  content: '\00a0';
}
.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 1.5rem 0 0.75rem;
  color: var(--color-text);
  line-height: 1.3;
}
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child {
  margin-top: 0;
}
.post-content h2 { font-size: 1.35rem; }
.post-content h3 { font-size: 1.15rem; }
.post-content h4 { font-size: 1.05rem; }
.post-content hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 1.25rem 0;
}
.post-content ul,
.post-content ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.post-content li { margin: 0.25rem 0; }
.post-content blockquote {
  margin: 1rem 0;
  padding: 0.55rem 0 0.55rem 0.95rem;
  border-left: 3px solid rgba(125, 211, 252, 0.45);
  color: var(--color-text-muted);
}
.post-content img,
.post-content video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  /* margin: 1.25rem 0; */
}
.post-content video {
  background: #000;
}

.post-content .post-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.post-content .post-edition {
  margin: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.post-content .post-edition__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.post-content .post-edition__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: var(--radius-sm);
}

.post-content .post-edition h3 {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.post-content .post-count {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.post-content .post-edition-info {
  margin-bottom: 1.25rem;
}

.post-content .post-edition-info p {
  margin: 0 0 0.85rem;
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.post-content .post-edition-info p:last-child {
  margin-bottom: 0;
}

.post-content .post-preview-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.post-content .post-edition-link {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.post-content .post-edition-link a {
  color: var(--color-primary);
}

.post-content .post-edition-link a:hover {
  color: var(--color-secondary);
}

.post-content .post-highlight {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(125, 211, 252, 0.04);
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: var(--radius-lg);
}

.post-content .post-highlight h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.post-content .post-card-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 140px));
  justify-content: center;
  gap: 1.25rem;
}

.post-content .post-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.post-content .post-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.post-content .post-stat-box strong {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.post-content .post-stat-box span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.post-content .post-alt-more {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.post-content .post-count-inline {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.post-content .post-edition--cards {
  margin-bottom: 2rem;
}

.post-content .post-alt-group h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 0.85rem;
  padding-top: 0.5rem;
}

.post-content .post-card-grid--alts {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.post-content .post-card-grid--alts .post-card-item img {
  max-height: 120px;
}

@media (max-width: 600px) {
  .post-content .post-stats-row {
    grid-template-columns: 1fr;
  }

  .post-content .post-card-grid--featured {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-content .post-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.post-content .post-card-grid--single {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.post-content .post-card-grid--single .post-card-item {
  grid-column: span 1;
  max-width: 120px;
}

.post-content .post-card-grid--alts {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.post-content .post-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.4rem 0.65rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.post-content .post-card-item:hover {
  transform: none;
  border-color: rgba(125, 211, 252, 0.25);
  box-shadow: none;
  background: var(--bg-elevated);
  color: var(--color-text);
}

.post-content .post-card-item img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 0.5rem;
  image-rendering: auto;
}

.post-content .post-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.post-content .post-card-id {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.post-content .post-card-item--alt .post-card-name {
  font-size: 0.58rem;
  -webkit-line-clamp: 3;
  word-break: break-all;
}

.post-content .post-alt-group {
  margin-bottom: 1.25rem;
}

.post-content .post-alt-group:last-child {
  margin-bottom: 0;
}

.post-content .post-alt-group h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.65rem;
}

.post-content .post-edition--alts {
  background: linear-gradient(165deg, rgba(125, 211, 252, 0.04), var(--bg-panel));
  border-color: rgba(125, 211, 252, 0.15);
}

.post-content .post-summary {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-panel);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .post-content .post-card-grid,
  .post-content .post-card-grid--single {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .post-content .post-edition {
    padding: 1rem;
  }

  .post-content .post-edition__head {
    flex-wrap: wrap;
  }

  .post-content .post-card-grid,
  .post-content .post-card-grid--single,
  .post-content .post-card-grid--alts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-content .post-card-grid--single .post-card-item {
    max-width: none;
  }
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.post-card:hover {
  transform: none;
  border-color: rgba(125, 211, 252, 0.25);
  box-shadow: none;
  background: var(--bg-elevated);
}

.post-card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body { padding: 1.25rem; }
.post-card-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.post-card-body h3 a { color: var(--color-text); }
.post-card-body time { font-size: 0.8rem; color: var(--color-text-muted); }

.link-arrow, .link-muted { font-weight: 600; font-size: 0.875rem; }
.link-muted { color: var(--color-text-muted); }

/* Comments */
.comments-section {
  margin-top: 3.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--color-border);
}
.comments-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.2rem;
  margin-bottom: 1.35rem;
}
.comments-section__count {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.comments-section__login {
  margin: 0 0 1.5rem;
}
.comments-section__empty {
  list-style: none;
  padding: 0.5rem 0;
}
.comment-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.comment {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.comment-head time { font-size: 0.8rem; color: var(--color-text-muted); }
.comment-body p { margin: 0; color: var(--color-text-muted); }
.comment-reply-toggle { margin-top: 0.75rem; }
.comment-reply-btn {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-primary);
  list-style: none;
  user-select: none;
}
.comment-reply-btn::-webkit-details-marker { display: none; }
.comment-reply-btn:hover { text-decoration: underline; }
.comment-form--reply { margin-top: 0.75rem; margin-bottom: 0; }
.comment-replies {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.comment-replies .comment {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}
.comment-replies .comment .user-avatar { width: 36px; height: 36px; }

/* Banlist badges (compartidos: ficha de carta, catálogo) */
.banlist-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  border: 1px solid transparent;
}
.banlist-badge__label { display: block; }
.banlist-badge__sub {
  display: block;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.85;
  text-transform: none;
}
.banlist-badge--sm {
  padding: 0.22rem 0.45rem;
  font-size: 0.62rem;
}
.banlist-badge--md {
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
}
.banlist-badge--lg {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  min-width: 5.5rem;
}
.banlist-badge--prohibida {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}
.banlist-badge--max1 {
  background: rgba(250, 204, 21, 0.1);
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.32);
}
.banlist-badge--max2 {
  background: rgba(251, 146, 60, 0.1);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.32);
}

/* Cards catalog */
.card-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; align-items: center; }
.card-filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--bg-panel);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  user-select: none;
}
.card-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.card-filter-chip:hover {
  border-color: rgba(125, 211, 252, 0.35);
  color: var(--color-text);
}
.card-filter-chip.is-active,
.card-filter-chip:has(input:checked) {
  border-color: rgba(125, 211, 252, 0.45);
  color: var(--color-primary);
  background: rgba(125, 211, 252, 0.06);
}
.results-count { color: var(--color-text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.card-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.card-item:hover {
  border-color: rgba(125, 211, 252, 0.25);
  background: var(--bg-elevated);
}

.card-stage {
  position: relative;
  touch-action: pan-y;
}

.card-stage__link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.card-stage__link:hover { color: inherit; }

.card-stage__frame {
  position: relative;
  display: block;
  aspect-ratio: 5 / 7;
  background: var(--bg-elevated);
  overflow: hidden;
}

.card-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.card-stage__img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.card-item--obsolete .card-stage__img {
  filter: grayscale(1);
}

.card-alt-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-primary);
  background: rgba(18, 22, 30, 0.88);
  border: 1px solid var(--color-border);
  pointer-events: none;
}

.card-stage__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(18, 22, 30, 0.82);
  color: var(--color-text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease, border-color var(--transition), color var(--transition), background var(--transition);
}

.card-stage__nav--prev { left: 0.35rem; }
.card-stage__nav--next { right: 0.35rem; }

.card-item--has-alts:hover .card-stage__nav,
.card-stage:focus-within .card-stage__nav {
  opacity: 1;
}

@media (hover: none) {
  .card-stage__nav { opacity: 0.92; }
}

.card-stage__nav:hover {
  border-color: rgba(125, 211, 252, 0.45);
  color: var(--color-primary);
  background: rgba(18, 22, 30, 0.95);
}

.card-stage__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  pointer-events: none;
}

.card-stage__dot {
  pointer-events: auto;
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(232, 238, 245, 0.35);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.card-stage__dot:hover { background: rgba(232, 238, 245, 0.65); }
.card-stage__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.15);
}

.card-item-info {
  display: block;
  padding: 0.65rem 0.75rem 0.75rem;
  color: inherit;
  text-decoration: none;
}
.card-item-info:hover { color: inherit; }
.card-id { display: block; font-size: 0.65rem; color: var(--color-text-muted); letter-spacing: 0.06em; }
.card-name { display: block; font-size: 0.8rem; font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-art-caption {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-detail-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 0.25rem;
}

.card-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.card-detail-nav__btn {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 9.5rem;
  max-width: 14rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--bg-panel);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.card-detail-nav__btn--next {
  text-align: right;
  align-items: flex-end;
}

.card-detail-nav__btn:hover {
  border-color: rgba(125, 211, 252, 0.45);
  background: var(--bg-elevated);
  color: var(--color-primary);
}

.card-detail-nav__btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.card-detail-nav__dir {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-detail-nav__meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-detail-nav__btn:hover .card-detail-nav__meta {
  color: inherit;
}

.card-detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
  align-items: start;
}

.card-detail-visual { display: flex; flex-direction: column; gap: 0.85rem; }

.card-art-stage {
  position: relative;
}

.card-art-stage__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(18, 22, 30, 0.88);
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease, border-color var(--transition), color var(--transition), background var(--transition);
}

.card-art-stage__nav--prev { left: 0.55rem; }
.card-art-stage__nav--next { right: 0.55rem; }

.card-art-stage:hover .card-art-stage__nav,
.card-art-stage:focus-within .card-art-stage__nav {
  opacity: 1;
}

@media (hover: none) {
  .card-art-stage__nav { opacity: 0.95; }
}

.card-art-stage__nav:hover {
  border-color: rgba(125, 211, 252, 0.45);
  color: var(--color-primary);
  background: rgba(18, 22, 30, 0.96);
}

.card-detail-image {
  position: relative;
  perspective: 900px;
  perspective-origin: 50% 50%;
}

.card-foil-stage {
  --foil-x: 50%;
  --foil-y: 50%;
  --foil-angle: 125deg;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-scale: 1;
  --tilt-shadow-x: 0px;
  --tilt-shadow-y: 12px;
  position: relative;
  aspect-ratio: 5 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--color-border);
  transform:
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    scale(var(--tilt-scale));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
  will-change: transform;
  cursor: grab;
  background: var(--bg-elevated);
}

.card-detail-foil.is-tilting .card-foil-stage {
  transition: none;
  box-shadow:
    var(--tilt-shadow-x) var(--tilt-shadow-y) 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--color-border);
}

.card-foil-stage img,
.card-art-stage__img {
  width: 100%;
  display: block;
  border-radius: inherit;
  transform: translateZ(1px);
}

.card-art-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* contain: la full no se corta abajo/arriba si el scan no es exactamente 5:7 */
  object-fit: contain;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.card-art-stage__img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.card-foil-rainbow,
.card-foil-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.card-foil-rainbow {
  background:
    linear-gradient(
      var(--foil-angle),
      rgba(255, 45, 120, 0) 0%,
      rgba(255, 45, 120, 0.22) 18%,
      rgba(125, 211, 252, 0.28) 38%,
      rgba(255, 220, 60, 0.24) 55%,
      rgba(120, 80, 255, 0.26) 72%,
      rgba(60, 255, 180, 0.2) 88%,
      rgba(255, 45, 120, 0) 100%
    );
  background-size: 220% 220%;
  background-position: var(--foil-x) var(--foil-y);
  mix-blend-mode: color-dodge;
  opacity: 0.75;
  animation: card-foil-rainbow 7s ease-in-out infinite;
}

.card-foil-shine {
  background:
    linear-gradient(
      calc(var(--foil-angle) + 35deg),
      transparent 35%,
      rgba(255, 255, 255, 0.08) 44%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0.08) 56%,
      transparent 65%
    );
  background-size: 180% 180%;
  background-position: var(--foil-x) var(--foil-y);
  mix-blend-mode: soft-light;
  opacity: 0.9;
  animation: card-foil-shine 5s ease-in-out infinite;
}

.card-detail-foil:hover .card-foil-rainbow,
.card-detail-foil:hover .card-foil-shine {
  opacity: 1;
}

@keyframes card-foil-rainbow {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(35deg); }
}

@keyframes card-foil-shine {
  0%, 100% { transform: translateX(-4%); }
  50% { transform: translateX(4%); }
}

.card-detail-image--obsolete .card-foil-stage img {
  filter: grayscale(1);
}

@media (prefers-reduced-motion: reduce) {
  .card-foil-rainbow,
  .card-foil-shine {
    animation: none;
  }

  .card-foil-stage {
    transform: none;
    transition: none;
    cursor: default;
  }

  .card-detail-foil.is-tilting .card-foil-stage {
    box-shadow: var(--shadow-glow);
  }

  .card-art-stage__img,
  .card-stage__img {
    transition: none;
  }
}

@media (hover: none) {
  .card-foil-stage {
    cursor: default;
  }
}

.card-art-picker {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.25rem;
  scrollbar-width: thin;
}

.card-art-picker::-webkit-scrollbar { height: 4px; }
.card-art-picker::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.card-art-thumb {
  flex: 0 0 auto;
  width: 3.1rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.card-art-thumb img {
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}

.card-art-thumb:hover { transform: scale(1.05); }
.card-art-thumb.is-active { border-color: var(--color-primary); }

.card-art-label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.card-art-hint {
  margin: 0;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0.75;
}

.card-detail-info h1 { font-size: clamp(1.75rem, 3vw, 2.75rem); margin: 0.5rem 0 1rem; }
.card-banlist-status {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--bg-panel);
}
.card-banlist-status__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.card-banlist-status__titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.card-banlist-status__titles strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.card-banlist-status__titles span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.card-banlist-status__notes {
  margin: 0 0 0.5rem !important;
  font-size: 0.85rem !important;
  color: var(--color-text-muted);
}
.card-banlist-status__link {
  display: inline-block;
  font-size: 0.82rem;
}
.card-banlist-status--prohibida {
  border-color: rgba(255, 80, 80, 0.45);
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.12), rgba(255, 80, 80, 0.04));
}
.card-banlist-status--max1 {
  border-color: rgba(255, 200, 60, 0.4);
  background: linear-gradient(135deg, rgba(255, 200, 60, 0.1), rgba(255, 200, 60, 0.03));
}
.card-banlist-status--max2 {
  border-color: rgba(255, 140, 60, 0.4);
  background: linear-gradient(135deg, rgba(255, 140, 60, 0.1), rgba(255, 140, 60, 0.03));
}
.card-banlist-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  pointer-events: none;
}
.card-obsolete-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  pointer-events: none;
}
.obsolete-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  color: #e8ecf4;
  background: linear-gradient(135deg, rgba(120, 130, 155, 0.95), rgba(70, 78, 98, 0.95));
  border: 1px solid rgba(180, 190, 210, 0.45);
  box-shadow: 0 4px 18px rgba(80, 90, 110, 0.35);
}
.obsolete-badge__label { display: block; }
.obsolete-badge__sub {
  display: block;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
  text-transform: none;
}
.obsolete-badge--sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.58rem;
}
.obsolete-badge--lg {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  min-width: 5.5rem;
}
.card-obsolete-status {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(150, 160, 180, 0.35);
  background: linear-gradient(135deg, rgba(120, 130, 155, 0.12), rgba(70, 78, 98, 0.05));
}
.card-obsolete-status__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}
.card-obsolete-status__titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.card-obsolete-status__titles strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.card-obsolete-status__titles span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.card-obsolete-status__link,
.card-obsolete-status__id {
  display: block;
  margin: 0;
  font-size: 0.88rem;
}
.stat-list { display: grid; gap: 1rem; margin: 2rem 0; }
.stat-list div { display: flex; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.stat-list dt { color: var(--color-text-muted); min-width: 6rem; font-size: 0.875rem; }
.stat-list dd { margin: 0; font-weight: 600; }

.card-ability {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141924;
}

.card-ability__title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8b97a8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.card-ability__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e8eef5;
  white-space: pre-wrap;
  word-break: break-word;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  color: var(--color-text-muted);
}

/* Forms */
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: var(--bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: none;
  background: var(--bg-elevated);
}

.form-select { width: auto; min-width: 180px; }

.auth-card {
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  max-width: 440px;
  margin-inline: auto;
}

.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.35rem; font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.auth-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--color-text-muted); }
.auth-form label input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: var(--bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.auth-form label input:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.4);
}
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--color-text-muted); font-size: 0.875rem; }
.auth-footer--cta { margin-top: 1.75rem; }
.auth-lead {
  margin: 0 0 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.auth-forgot {
  margin: -0.35rem 0 0;
  text-align: right;
  font-size: 0.85rem;
}
.auth-forgot a { color: var(--color-primary); }
.auth-form .field-help {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.auth-form .field-help ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

/* ---- Auth pages (login / registro / recuperar) ---- */
/* Encaja en el viewport: sin scroll de página (el panel puede scrollear si el form no cabe). */
.page-auth {
  background: var(--bg-base);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
}

body.page-auth.has-construction-banner {
  padding-bottom: 0;
}

.page-auth main {
  box-sizing: border-box;
  height: 100%;
  max-height: 100dvh;
  padding-top: var(--header-height);
  min-height: 0;
  overflow: hidden;
}

body.page-auth.has-status-board main {
  padding-top: calc(var(--header-height) + var(--status-board-height));
}

.auth-page {
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: 100%;
  height: 100%;
  min-height: 0;
}

.auth-brand {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--color-border);
  background:
    linear-gradient(165deg, #0c1118 0%, #0a0e14 45%, #12161e 100%);
  animation: authBrandIn 700ms ease both;
}

.auth-brand__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-brand__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.auth-brand__orb--1 {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  right: -10%;
  background: rgba(125, 211, 252, 0.14);
  animation: authOrb 16s ease-in-out infinite;
}

.auth-brand__orb--2 {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  bottom: 8%;
  left: -12%;
  background: rgba(165, 228, 252, 0.08);
  animation: authOrb 20s ease-in-out infinite reverse;
}

.auth-brand__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
}

.auth-brand__beam {
  position: absolute;
  top: -25%;
  right: 28%;
  width: 1px;
  height: 150%;
  background: linear-gradient(180deg, transparent, rgba(125, 211, 252, 0.22), transparent);
  transform: rotate(16deg);
  opacity: 0.7;
}

.auth-brand__cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-brand__card {
  position: absolute;
  width: clamp(72px, 11vw, 108px);
  aspect-ratio: 5 / 7;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background:
    linear-gradient(160deg, rgba(26, 32, 48, 0.95), rgba(18, 22, 30, 0.75));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.auth-brand__card--a {
  top: 16%;
  right: 18%;
  --card-rot: 12deg;
  animation: authCardFloat 9s ease-in-out infinite;
}

.auth-brand__card--b {
  top: 34%;
  right: 36%;
  --card-rot: -8deg;
  opacity: 0.85;
  animation: authCardFloat 11s ease-in-out infinite 0.6s;
}

.auth-brand__card--c {
  top: 22%;
  right: 48%;
  width: clamp(56px, 8vw, 78px);
  --card-rot: 4deg;
  opacity: 0.55;
  animation: authCardFloat 13s ease-in-out infinite 1.1s;
}

.auth-brand__content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  animation: authContentIn 800ms ease 80ms both;
}

.auth-brand__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.auth-brand__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
}

.auth-brand__lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.auth-brand__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-brand__points li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.auth-brand__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.12);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--page-gutter);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(125, 211, 252, 0.05), transparent 55%),
    var(--bg-base);
  animation: authPanelIn 650ms ease 60ms both;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.25) transparent;
}

.auth-panel__inner {
  width: min(400px, 100%);
  margin-block: auto;
}

.auth-panel__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.auth-panel__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.auth-panel__subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.page-auth .auth-form {
  margin-top: 1.35rem;
  gap: 0.85rem;
}

.page-auth .auth-form label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.page-auth .auth-form .form-input,
.page-auth .auth-form label input {
  padding: 0.8rem 1rem;
  background: var(--bg-panel);
  border-color: rgba(255, 255, 255, 0.08);
}

.page-auth .auth-form .form-input:focus,
.page-auth .auth-form label input:focus {
  border-color: rgba(125, 211, 252, 0.45);
  background: var(--bg-elevated);
}

.page-auth .auth-form__submit {
  margin-top: 0.35rem;
  min-height: 2.85rem;
  font-weight: 650;
}

.page-auth .auth-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.page-auth .field-error {
  color: #fca5a5;
  font-size: 0.8rem;
}

@keyframes authBrandIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes authPanelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes authContentIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes authOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -14px); }
}

@keyframes authCardFloat {
  0%, 100% { transform: translateY(0) rotate(var(--card-rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--card-rot, 0deg)); }
}

@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .auth-brand {
    align-items: stretch;
    flex: 0 0 auto;
    padding: 1.1rem var(--page-gutter) 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .auth-brand__cards {
    display: none;
  }

  .auth-brand__content {
    max-width: none;
  }

  .auth-brand__kicker {
    margin-bottom: 0.4rem;
  }

  .auth-brand__title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 0.35rem;
  }

  .auth-brand__lead {
    margin-bottom: 0;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .auth-brand__points {
    display: none;
  }

  .auth-panel {
    align-items: flex-start;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand,
  .auth-panel,
  .auth-brand__content,
  .auth-brand__orb,
  .auth-brand__card {
    animation: none !important;
  }
}
.support-intro { color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.support-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.support-nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.support-nav-link:hover,
.support-nav-link.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.support-form { margin-top: 1.25rem; }
.support-note { margin-top: 1.5rem; font-size: 0.8rem; }
.support-note a { color: var(--color-primary); }
.field-error { color: #ff6b6b; font-size: 0.8rem; }

.support-ticket-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.support-ticket {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated, #1a2030);
}

.support-ticket--unread {
  border-color: rgba(248, 113, 113, 0.45);
}

.support-ticket__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}

.support-ticket__link:hover {
  background: rgba(125, 211, 252, 0.04);
}

.support-ticket__main {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.support-ticket__title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.support-ticket__dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #f87171;
}

.support-ticket__subject {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.support-ticket__kind {
  color: var(--color-primary);
}

.support-ticket__preview {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.support-ticket__chevron {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.support-back {
  margin: 0 0 1rem;
}

.support-back__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.support-back__link:hover {
  color: var(--color-primary);
}

.support-thread__header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.support-thread__kind {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--color-primary);
}

.support-thread__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.support-thread__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.support-thread__messages {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.support-msg {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #0a0e14;
}

.support-msg--staff {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.06);
}

.support-msg__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.support-msg__author {
  font-weight: 600;
  color: var(--color-text);
}

.support-msg--staff .support-msg__author {
  color: var(--color-primary);
}

.support-msg__body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
  word-break: break-word;
}

.support-msg__steps {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.support-msg__steps strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-text);
  font-size: 0.8rem;
}

.support-thread__reply {
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.profile-grid--staff {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .profile-grid--staff {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.qa-compose-page {
  width: min(1100px, 100%);
}

.auth-card.qa-compose {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.qa-approve-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.qa-approve-label input {
  width: auto;
  margin: 0;
}

/* Perfil */
.profile-section {
  padding-top: 2rem;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: min(1100px, 100%);
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--bg-panel);
}

.profile-hero__main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.profile-hero__avatar {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.profile-hero__avatar:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.profile-hero__avatar .user-avatar-wrap--xl {
  display: block;
  background: transparent;
}

.profile-hero__avatar-hint {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(104px, 18vw, 128px);
  height: clamp(104px, 18vw, 128px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.62);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 2;
}

.profile-hero__avatar:hover .profile-hero__avatar-hint,
.profile-hero__avatar:focus-visible .profile-hero__avatar-hint {
  opacity: 1;
}

.profile-hero__identity {
  min-width: 0;
}

.profile-hero__name {
  margin: 0 0 0.3rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero__meta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.profile-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.profile-hero__stats {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.profile-hero__stats > div {
  min-width: 5.25rem;
  padding: 0 1.25rem;
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-hero__stats > div:first-child {
  border-left: none;
  padding-left: 0;
}

.profile-hero__stats dt {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.profile-hero__stats dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.profile-tabs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  max-width: 100%;
}

.profile-tabs__nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.profile-tabs__nav::-webkit-scrollbar {
  display: none;
}

.profile-tabs__btn {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.profile-tabs__btn i {
  font-size: 1.1rem;
}

.profile-tabs__btn:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
}

.profile-tabs__btn.is-active {
  color: var(--color-primary);
  background: var(--color-hover);
}

.profile-tabs__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
}

.profile-tabs__btn.is-active .profile-tabs__badge {
  background: rgba(125, 211, 252, 0.16);
  color: var(--color-primary);
}

.profile-tabs__badge--alert {
  background: rgba(248, 113, 113, 0.16);
  color: #f87171;
}

.profile-tabs__btn.is-active .profile-tabs__badge--alert {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.profile-tabs__panels {
  min-height: 12rem;
}

.profile-tabs__panel {
  display: none;
}

.profile-tabs__panel.is-active {
  display: block;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.profile-card {
  max-width: none;
  margin-inline: 0;
  width: 100%;
  min-width: 0;
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
}

.profile-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.profile-card__head h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.profile-card__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.profile-card__icon--muted {
  color: var(--color-text-muted);
}

.profile-card-desc {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.45;
}

.profile-card .auth-form {
  margin-top: 1.25rem;
  max-width: none;
}

.profile-card .btn.btn-block {
  max-width: 18rem;
}

.profile-avatar-form {
  margin: 0;
}

.profile-avatar-form__error {
  display: block;
  margin: -0.75rem 0 0.5rem;
}

.profile-card--decks,
.profile-card--friends,
.profile-card--support {
  padding-bottom: 1.25rem;
}

.profile-card--friends .profile-card__head {
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .profile-grid--settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
  }

  .profile-grid--security {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }
}

.profile-decks-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.profile-decks-top .profile-card__head {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex: 1;
  min-width: min(100%, 16rem);
}

.profile-decks-title {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
}

.profile-decks-title h2 {
  margin: 0;
}

.profile-decks-actions,
.profile-support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.profile-decks-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--color-border, #1a2030);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  color: #8b97a8;
  font-variant-numeric: tabular-nums;
}

.profile-decks-count strong {
  font-size: 0.95rem;
  font-weight: 750;
  color: #e8eef5;
}

.profile-decks-add {
  flex-shrink: 0;
}

.profile-decks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-deck {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius-md, 8px);
  background: #12161e;
  border: 1px solid var(--color-border, #1a2030);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.profile-deck--public {
  background:
    linear-gradient(90deg, rgba(125, 211, 252, 0.06), transparent 38%),
    #12161e;
}

.profile-deck--warn {
  background:
    linear-gradient(90deg, rgba(251, 191, 36, 0.08), transparent 38%),
    #12161e;
}

.profile-deck:hover {
  border-color: rgba(125, 211, 252, 0.28);
}

.profile-deck__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.65rem 0.7rem 0.7rem;
  text-decoration: none;
  color: inherit;
}

.profile-deck__body:hover .profile-deck__name {
  color: #7dd3fc;
}

.profile-deck__body:hover .profile-deck__open {
  color: #7dd3fc;
  opacity: 1;
  transform: translateX(2px);
}

.profile-deck__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.75rem;
  height: 4.1rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(ellipse 80% 70% at 50% 60%, rgba(125, 211, 252, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.22);
}

.profile-deck__fan {
  position: relative;
  width: 4.6rem;
  height: 3.35rem;
}

.profile-deck__fan-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #8b97a8;
  font-size: 1.35rem;
  opacity: 0.55;
}

.profile-deck__card {
  position: absolute;
  bottom: 0;
  width: 2.2rem;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  transform-origin: center bottom;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s;
  background: #1a2030;
}

.profile-deck__card:nth-child(1) {
  left: 0;
  transform: rotate(-14deg);
  z-index: 1;
}

.profile-deck__card:nth-child(2) {
  left: 50%;
  margin-left: -1.1rem;
  transform: rotate(0deg) translateY(-2px);
  z-index: 2;
}

.profile-deck__card:nth-child(3) {
  right: 0;
  transform: rotate(14deg);
  z-index: 3;
}

.profile-deck:hover .profile-deck__card:nth-child(1) {
  transform: rotate(-20deg) translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.profile-deck:hover .profile-deck__card:nth-child(2) {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.profile-deck:hover .profile-deck__card:nth-child(3) {
  transform: rotate(20deg) translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.profile-deck__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-deck__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8eef5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.profile-deck__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  font-size: 0.75rem;
  color: #8b97a8;
}

.profile-deck__stat {
  font-weight: 650;
  color: #c5d0de;
  font-variant-numeric: tabular-nums;
}

.profile-deck__dot {
  opacity: 0.55;
}

.profile-deck__date {
  color: #8b97a8;
}

.profile-deck__status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #8b97a8;
}

.profile-deck__status i {
  font-size: 0.85rem;
}

.profile-deck__status--public {
  border-color: rgba(125, 211, 252, 0.28);
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.08);
}

.profile-deck__status--warn {
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}

.profile-deck__open {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: #8b97a8;
  opacity: 0.4;
  transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.profile-deck__actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  padding: 0.45rem 0.5rem 0.45rem 0.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.14);
}

.profile-deck__visibility,
.profile-deck__delete {
  margin: 0;
  display: flex;
  align-items: stretch;
}

.profile-deck__visibility-btn,
.profile-deck__view-btn,
.profile-deck__delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: #8b97a8;
  cursor: pointer;
  font-size: 1.05rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-deck__visibility-btn:hover,
.profile-deck__view-btn:hover {
  background: rgba(125, 211, 252, 0.1);
  color: #7dd3fc;
}

.profile-deck__visibility-btn.is-public {
  color: #7dd3fc;
}

.profile-deck__visibility-btn.is-locked {
  cursor: default;
  opacity: 0.9;
  pointer-events: none;
}

.profile-deck__visibility-btn--banlist-warn {
  color: #fbbf24;
}

.profile-deck__delete-btn:hover {
  background: rgba(255, 80, 80, 0.12);
  color: #ff6b6b;
}

.profile-match-summary {
  --wr: 0;
  --wins: 0;
  --losses: 0;
  --total: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--color-border, #1a2030);
  background:
    linear-gradient(90deg, rgba(125, 211, 252, 0.06), transparent 42%),
    #12161e;
}

.profile-match-summary__wr {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.profile-match-summary__ring {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
}

.profile-match-summary__gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.profile-match-summary__gauge-track,
.profile-match-summary__gauge-fill {
  fill: none;
  stroke-width: 2.8;
}

.profile-match-summary__gauge-track {
  stroke: rgba(148, 163, 184, 0.16);
}

.profile-match-summary__gauge-fill {
  stroke: #7dd3fc;
  stroke-linecap: butt;
  stroke-dasharray: 97.4;
  stroke-dashoffset: calc(97.4 - (97.4 * var(--wr) / 100));
  transition: stroke-dashoffset 0.5s ease;
}

.profile-match-summary__ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-match-summary__ring-text strong {
  font-size: 0.95rem;
  font-weight: 750;
  color: #e8eef5;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.profile-match-summary__wr-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.profile-match-summary__eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.profile-match-summary__wr-copy strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e8eef5;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.profile-match-summary__sub {
  font-size: 0.78rem;
  color: #8b97a8;
}

.profile-match-summary__board {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--color-border, #1a2030);
  background: rgba(0, 0, 0, 0.2);
}

.profile-match-summary__board-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
}

.profile-match-summary__board-side {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.profile-match-summary__board-side.is-win {
  align-items: flex-start;
}

.profile-match-summary__board-side.is-loss {
  align-items: flex-end;
  text-align: right;
}

.profile-match-summary__board-side em {
  font-style: normal;
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.profile-match-summary__board-side.is-win em {
  color: #86efac;
}

.profile-match-summary__board-side.is-loss em {
  color: #fca5a5;
}

.profile-match-summary__board-side span {
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b97a8;
}

.profile-match-summary__board-sep {
  color: #8b97a8;
  font-weight: 600;
}

.profile-match-summary__bar {
  display: flex;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.12);
}

.profile-match-summary__bar-win,
.profile-match-summary__bar-loss {
  height: 100%;
  min-width: 0;
}

.profile-match-summary__bar-win {
  flex: var(--wins) 1 0;
  background: #4ade80;
}

.profile-match-summary__bar-loss {
  flex: var(--losses) 1 0;
  background: #f87171;
}

.profile-matches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-match {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.9rem 1.05rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--color-border, #1a2030);
  background: #12161e;
  transition: border-color 0.15s ease;
}

.profile-match:hover {
  border-color: rgba(125, 211, 252, 0.22);
}

.profile-match__stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #8b97a8;
}

.profile-match--win .profile-match__stripe {
  background: #4ade80;
}

.profile-match--loss .profile-match__stripe {
  background: #f87171;
}

.profile-match__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-match__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.profile-match--win .profile-match__badge {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(134, 239, 172, 0.22);
}

.profile-match--loss .profile-match__badge {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(252, 165, 165, 0.22);
}

.profile-match__date {
  font-size: 0.75rem;
  color: #8b97a8;
  white-space: nowrap;
}

.profile-match__duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.profile-match__fighter {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.profile-match__fighter--opp {
  justify-content: flex-end;
  text-align: right;
}

.profile-match__fighter--opp .profile-match__name {
  order: -1;
}

.profile-match__fighter .user-avatar-wrap--md,
.profile-match__anon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.profile-match__fighter .user-avatar--md {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-match__anon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a2030;
}

.profile-match__anon-initial {
  font-size: 1.05rem;
  font-weight: 700;
  color: #7dd3fc;
  line-height: 1;
}

.profile-match__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 650;
  color: #e8eef5;
}

.profile-match__scoreboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 4.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--color-border, #1a2030);
  background: rgba(0, 0, 0, 0.22);
}

.profile-match__scoreboard-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b97a8;
}

.profile-match__scoreboard-nums {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
  color: #8b97a8;
}

.profile-match__scoreboard-nums strong {
  font-size: 1.2rem;
  font-weight: 750;
  color: #c5d0de;
  line-height: 1;
}

.profile-match__scoreboard-nums strong.is-lead {
  color: #e8eef5;
}

.profile-match--win .profile-match__scoreboard-nums strong.is-lead {
  color: #86efac;
}

.profile-match--loss .profile-match__scoreboard-nums strong.is-lead {
  color: #fca5a5;
}

.profile-match__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.profile-match__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.74rem;
  font-weight: 550;
  color: #c5d0de;
}

.profile-match__meta-item i {
  font-size: 0.88rem;
  color: #7dd3fc;
}

.profile-match__meta-item--muted,
.profile-match__meta-item--muted i {
  color: #8b97a8;
}

@media (max-width: 720px) {
  .profile-match-summary {
    grid-template-columns: 1fr;
  }

  .profile-match__duel {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .profile-match__fighter--you {
    order: -1;
  }

  .profile-match__scoreboard {
    order: 0;
    width: 100%;
  }

  .profile-match__fighter--opp {
    justify-content: flex-start;
    text-align: left;
  }

  .profile-match__fighter--opp .profile-match__name {
    order: 0;
  }

  .profile-match__fighter {
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm, 6px);
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid var(--color-border, #1a2030);
  }

  .profile-match__date {
    white-space: normal;
    text-align: right;
  }
}

.profile-decks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  background: rgba(0, 0, 0, 0.12);
}

.profile-decks-empty p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

  .profile-hero__stats {
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .profile-hero__stats > div {
    flex: 1;
    min-width: 0;
    padding: 0 0.75rem;
  }

  .profile-hero__stats > div:first-child {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .profile-tabs__btn {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  .profile-tabs__btn span:not(.profile-tabs__badge) {
    display: none;
  }

  .profile-tabs__btn i {
    font-size: 1.25rem;
  }

  .profile-hero__main {
    align-items: flex-start;
  }

  .avatar-current {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem;
  }

  .sticker-pack-picker__active {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .sticker-pack-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticker-pack-option__preview {
    width: 72px;
    height: 72px;
  }

  .profile-deck {
    flex-wrap: wrap;
  }

  .profile-deck__body {
    flex: 1 1 100%;
    padding: 0.7rem;
    gap: 0.7rem;
  }

  .profile-deck__preview {
    width: 5.1rem;
    height: 3.7rem;
  }

  .profile-deck__fan {
    width: 4.1rem;
    height: 3rem;
  }

  .profile-deck__card {
    width: 1.95rem;
  }

  .profile-deck__card:nth-child(2) {
    margin-left: -0.975rem;
  }

  .profile-deck__open {
    display: none;
  }

  .profile-deck__actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    padding: 0.35rem 0.55rem 0.55rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .profile-deck__dot,
  .profile-deck__date {
    display: none;
  }
}

.gender-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.gender-fieldset legend {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.65rem;
  padding: 0;
}

.gender-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

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

.gender-option {
  position: relative;
  display: flex;
  min-width: 0;
  cursor: pointer;
}

.gender-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.gender-option__card {
  position: relative;
  z-index: 0;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.gender-option__symbol {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.gender-option__symbol .gender-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.gender-option__symbol--male { color: #60a5fa; }
.gender-option__symbol--female { color: #f472b6; }
.gender-option__symbol--unspecified { color: var(--color-text-muted); }

.gender-option__label {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.25;
  text-align: left;
}

.gender-option input:checked + .gender-option__card {
  border-color: rgba(125, 211, 252, 0.45);
  background: var(--color-hover);
}

.gender-option input:checked + .gender-option__card .gender-option__label {
  color: var(--color-primary);
}

.gender-option input:checked + .gender-option__card .gender-option__symbol {
  background: rgba(125, 211, 252, 0.12);
}

.gender-option:hover .gender-option__card {
  border-color: rgba(125, 211, 252, 0.28);
}

.sticker-pack-form {
  gap: 1rem;
}

.sticker-pack-picker {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sticker-pack-picker__active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--color-border, #1a2030);
  background:
    linear-gradient(90deg, rgba(125, 211, 252, 0.08), transparent 55%),
    #12161e;
}

.sticker-pack-picker__active-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sticker-pack-picker__eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.sticker-pack-picker__active-copy strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8eef5;
  line-height: 1.2;
}

.sticker-pack-picker__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8b97a8;
}

.sticker-pack-picker__hint i {
  font-size: 0.95rem;
  color: #7dd3fc;
}

.sticker-pack-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.sticker-pack-fieldset legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sticker-pack-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.sticker-pack-option {
  position: relative;
  cursor: pointer;
  min-width: 0;
}

.sticker-pack-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.sticker-pack-option__card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--color-border, #1a2030);
  background: #12161e;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.sticker-pack-option__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.25rem;
  padding: 0.85rem 0.65rem 0.55rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(125, 211, 252, 0.1), transparent 70%),
    linear-gradient(180deg, #1a2030 0%, #12161e 100%);
}

.sticker-pack-option__preview {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
  transition: transform 0.15s ease;
}

.sticker-pack-option__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.22);
}

.sticker-pack-option__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 650;
  color: #c5d0de;
}

.sticker-pack-option__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
  color: transparent;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sticker-pack-option input:checked + .sticker-pack-option__card {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(125, 211, 252, 0.04);
}

.sticker-pack-option input:checked + .sticker-pack-option__card .sticker-pack-option__stage {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(125, 211, 252, 0.18), transparent 70%),
    linear-gradient(180deg, #1f2a3a 0%, #141a24 100%);
}

.sticker-pack-option input:checked + .sticker-pack-option__card .sticker-pack-option__label {
  color: #7dd3fc;
}

.sticker-pack-option input:checked + .sticker-pack-option__card .sticker-pack-option__check {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.16);
  color: #7dd3fc;
}

.sticker-pack-option input:checked + .sticker-pack-option__card .sticker-pack-option__preview {
  transform: scale(1.04);
}

.sticker-pack-option:hover .sticker-pack-option__card {
  border-color: rgba(125, 211, 252, 0.32);
}

.sticker-pack-option:focus-within .sticker-pack-option__card {
  border-color: rgba(125, 211, 252, 0.55);
}

.avatar-form { margin-top: 0.75rem; }

.avatar-current {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--color-border);
}

.avatar-current__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.avatar-current__label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.avatar-current__info strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.avatar-current__open {
  margin-top: 0.35rem;
}

.myths-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

/* display:flex del modal pisa el [hidden] del UA y el grid de avatares ensancha la página */
.myths-modal[hidden] {
  display: none !important;
}

.myths-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.myths-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(4px);
}

.myths-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.myths-modal.is-open .myths-modal__dialog {
  transform: translateY(0) scale(1);
}

.myths-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.myths-modal__title {
  margin: 0;
  font-size: 1.1rem;
}

.myths-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.myths-modal__close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.myths-modal__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.myths-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.modal-open {
  overflow: hidden;
}

.avatar-select--modal {
  flex: 1;
  min-height: 0;
  gap: 0;
}

.avatar-select__sticky {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem 0.85rem;
  background: var(--bg-panel);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(4, 8, 14, 0.45);
  z-index: 2;
}

.avatar-select__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.35) transparent;
}

.avatar-select__scroll::-webkit-scrollbar {
  width: 8px;
}

.avatar-select__scroll::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.28);
  border-radius: 999px;
}

.avatar-select {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.avatar-select__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(125, 211, 252, 0.1) 0%, transparent 70%),
    var(--bg-elevated);
  border: 1px solid rgba(125, 211, 252, 0.12);
  text-align: center;
}

.avatar-select__hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.avatar-select__label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.avatar-select__hero-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.avatar-select__search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.15rem;
  color: var(--color-text-muted);
}

.avatar-select__search .form-input {
  flex: 1;
}

.avatar-select__hero--compact {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  padding: 0.85rem 1rem;
}

.avatar-select__hero--compact .avatar-select__hero-text {
  align-items: flex-start;
}

.avatar-select__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.65rem;
}

.avatar-select__tile {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: center;
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.avatar-select__thumb {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-panel);
}

.avatar-select__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-select__check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 211, 252, 0.72);
  color: #041018;
  font-size: 1.35rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition), transform var(--transition);
}

.avatar-select__name {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.avatar-select__tile:hover {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.05);
  transform: translateY(-2px);
}

.avatar-select__tile:hover .avatar-select__name {
  color: var(--color-text);
}

.avatar-select__tile.is-selected {
  border-color: var(--color-primary);
  background: rgba(125, 211, 252, 0.08);
  box-shadow: none;
}

.avatar-select__tile.is-selected .avatar-select__name {
  color: var(--color-primary);
  font-weight: 600;
}

.avatar-select__tile.is-selected .avatar-select__check {
  opacity: 1;
  transform: scale(1);
}

.avatar-select__tile:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.avatar-select__tile[hidden] {
  display: none;
}

.avatar-select__empty {
  margin: 0;
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.avatar-select__count {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 480px) {
  .avatar-select__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .avatar-select__thumb {
    width: 3.25rem;
    height: 3.25rem;
  }
}

.profile-card--danger {
  border-color: rgba(248, 113, 113, 0.18);
}
.footer-inline-form { display: inline; margin: 0; }
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.footer-link-btn:hover { color: var(--color-primary); }
.footer-col .footer-inline-form { display: block; margin-top: 0.5rem; }

/* Alerts / flash messages — toast flotante abajo */
.messages {
  position: fixed;
  bottom: clamp(1rem, 3vh, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 2 * var(--page-gutter)));
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.messages .alert {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
  animation: toast-in 0.35s ease;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.messages .alert.is-dismissed {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.alert-text {
  flex: 1;
  line-height: 1.45;
}

.alert-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  margin: -0.15rem -0.25rem 0 0;
  line-height: 1;
  font-size: 1.35rem;
  pointer-events: auto;
  transition: opacity var(--transition);
}

.alert-close:hover {
  opacity: 1;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  background: var(--bg-panel);
}
.alert-success { border-color: rgba(125, 211, 252, 0.3); color: var(--color-primary); }
.alert-error { border-color: rgba(255, 107, 107, 0.3); color: #ff6b6b; }

.page-catalog .fade-left,
.page-catalog .fade-right {
  backface-visibility: hidden;
}

/* Animations (shared) – transforms must not widen scroll area */
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--delay, 0ms);
}

.fade-up { transform: translateY(32px); }
.fade-left { transform: translateX(-24px); }
.fade-right { transform: translateX(24px); }

.is-visible.fade-up,
.is-visible.fade-left,
.is-visible.fade-right {
  opacity: 1;
  transform: none;
}

.page-landing .fade-left,
.page-landing .fade-right {
  backface-visibility: hidden;
}

/* Responsive – global */
@media (max-width: 1200px) {
  main .col-span-5,
  main .col-span-6,
  main .col-span-7 { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  /* Menú compacto: drawer con todos los links (primarios + «Más») */
  .nav-main { display: none; }
  .nav-toggle { display: flex; }

  .header-actions {
    gap: 0.45rem;
  }

  /* Header compacto: CTA como icono play (mismo tamaño que search/amigos) */
  .btn-nav {
    width: 40px;
    height: 40px;
    padding: 0;
    gap: 0;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
  }

  .btn-nav__label {
    display: none;
  }

  .btn-nav__icon {
    width: 18px;
    height: 18px;
    margin-left: 2px; /* centro óptico del triángulo play */
  }

  .lobby-float {
    right: 0.75rem;
    left: auto;
    top: calc(var(--header-height) + 0.65rem);
    bottom: auto;
    max-width: calc(100vw - 1.5rem);
    padding: 0.48rem 0.55rem 0.48rem 0.48rem;
    gap: 0.55rem;
    border-radius: 1.15rem;
  }

  body.has-status-board .lobby-float {
    top: calc(var(--header-height) + var(--status-board-height) + 0.55rem);
    bottom: auto;
  }

  body.has-construction-banner .lobby-float {
    top: calc(var(--header-height) + 2.5rem + 0.55rem);
  }

  body.has-construction-banner.has-status-board .lobby-float {
    top: calc(var(--header-height) + 2.5rem + var(--status-board-height) + 0.45rem);
  }

  .lobby-float__orb {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.9rem;
  }

  .lobby-float__panel strong {
    font-size: 0.84rem;
  }

  .lobby-float__panel em {
    display: none;
  }

  .lobby-float__go {
    width: 1.5rem;
    height: 1.5rem;
  }

  body.nav-open .nav-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    gap: 0.15rem;
    background: rgba(9, 11, 16, 0.97);
    backdrop-filter: blur(20px);
    padding: 0.75rem var(--page-gutter) 1.25rem;
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
  }

  body.nav-open .nav-more {
    display: contents;
  }

  body.nav-open .nav-more__toggle {
    display: none;
  }

  body.nav-open .nav-more__panel {
    display: contents !important;
    position: static;
    transform: none;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.nav-open .nav-link,
  body.nav-open .nav-more__link {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    letter-spacing: 0;
  }

  body.nav-open .nav-link.is-active::after,
  body.nav-open .nav-more__link.is-active::after {
    display: none;
  }

  body.nav-open .nav-more__link.is-active {
    background: var(--color-hover);
  }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-detail-grid { grid-template-columns: 1fr; }
  .card-detail-top { flex-direction: column; }
  .card-detail-nav { margin-left: 0; width: 100%; }
  .card-detail-nav__btn { flex: 1; min-width: 0; max-width: none; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  /* Footer: solo marca «M»; el header mantiene el wordmark Myths */
  .logo--footer .logo-text { display: none; }

}

/* Badge: sitio en construcción (flotante, borde inferior) */
.site-construction-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--construction-banner-height);
  padding: 0.5rem 1rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  background: rgba(18, 22, 30, 0.94);
  border-top: 1px solid var(--color-border);
  border-bottom: none;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-align: center;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.site-construction-banner__text { margin: 0; }

.site-construction-banner a {
  color: var(--color-primary);
  font-weight: 600;
}

body.has-construction-banner {
  padding-bottom: calc(var(--construction-banner-height) + 0.75rem);
}

/* Panel de anuncios + estado del servidor */
:root {
  --status-board-height: 2.9rem;
}

.site-status-board {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 890;
  top: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--bg-panel);
  overflow: visible;
}

.site-status-board__inner {
  width: min(var(--container-max), 100%);
  margin: 0 auto;
  padding: 0.45rem var(--page-gutter);
  min-height: var(--status-board-height);
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: visible;
}

.site-status-board__server {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.28rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--bg-elevated);
  white-space: nowrap;
}

.site-status-board__server.has-online-users {
  cursor: help;
}

.site-status-board__server.has-online-users::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  top: 100%;
  height: 0.55rem;
  z-index: 1199;
}

.site-status-board__online-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  z-index: 1200;
  min-width: 14rem;
  max-width: min(22rem, 90vw);
  max-height: 14rem;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #12161e;
  color: var(--color-text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  white-space: normal;
  scrollbar-width: thin;
  scrollbar-color: #3a4558 #0a0e14;
}

.site-status-board__online-tip::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.site-status-board__online-tip::-webkit-scrollbar-track {
  background: #0a0e14;
  border-radius: 8px;
}

.site-status-board__online-tip::-webkit-scrollbar-thumb {
  background: #3a4558;
  border-radius: 8px;
  border: 2px solid #0a0e14;
}

.site-status-board__online-tip::-webkit-scrollbar-thumb:hover {
  background: #536079;
}

.site-status-board__server.has-online-users:hover .site-status-board__online-tip,
.site-status-board__server.has-online-users:focus-within .site-status-board__online-tip {
  display: block;
}

.site-status-board__online-tip[hidden] {
  display: none !important;
}

.site-status-board__online-tip-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b97a8;
}

.site-status-board__online-tip-loading {
  margin: 0;
  font-size: 0.8rem;
  color: #8b97a8;
}

.site-status-board__online-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.site-status-board__online-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.site-status-board__online-list .ou-name {
  font-weight: 600;
  color: #e8eef5;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-status-board__online-list .ou-status {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #86efac;
}

.site-status-board__online-list .ou-status.is-idle {
  color: #8b97a8;
}

.site-status-board__online-list .ou-status.is-portal {
  color: #a5b4c8;
}

.site-status-board__online-list .ou-status.is-queue {
  color: #fbbf24;
}

.site-status-board__online-list .ou-status.is-game {
  color: #7dd3fc;
}

.site-status-board__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  flex: 0 0 auto;
}

.site-status-board__server.is-ok .site-status-board__dot {
  background: #4ade80;
}

.site-status-board__server-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}

.site-status-board__server-copy strong {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-status-board__server-copy span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.site-status-board__announcements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
  flex-wrap: wrap;
}

.site-status-board__announcement {
  position: relative;
  flex: 0 1 auto;
  max-width: min(42rem, 100%);
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--bg-elevated);
  color: var(--color-text);
  font-size: 0.82rem;
}

.site-status-board__announcement.has-detail {
  cursor: help;
}

/*
 * Puente bajo el chip: sin esto, el hueco hacia el tooltip rompe :hover
 * y no se puede usar el scroll del detalle.
 */
.site-status-board__announcement.has-detail::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  top: 100%;
  height: 0.55rem;
  z-index: 1199;
}

.site-status-board__announcement-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* display:none evita que el detalle cree scroll en la barra (visibility:hidden sí ocupa overflow). */
.site-status-board__tooltip {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  z-index: 1200;
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(40vh, 16rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.35) rgba(26, 32, 48, 0.9);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #0f141c;
  color: var(--color-text);
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  box-shadow: var(--shadow-soft);
}

.site-status-board__tooltip::-webkit-scrollbar {
  width: 6px;
}

.site-status-board__tooltip::-webkit-scrollbar-track {
  background: rgba(26, 32, 48, 0.9);
  border-radius: 6px;
}

.site-status-board__tooltip::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, 0.35);
  border-radius: 6px;
}

.site-status-board__tooltip::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 211, 252, 0.5);
}

.site-status-board__announcement.has-detail:hover .site-status-board__tooltip,
.site-status-board__announcement.has-detail:focus-within .site-status-board__tooltip {
  display: block;
}

/* Extiende el área hover del tooltip hacia arriba (cubre el mismo hueco). */
.site-status-board__tooltip::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.55rem;
}

.site-status-board__announcement.tone-info {
  border-color: rgba(125, 211, 252, 0.28);
  color: #cfefff;
}

.site-status-board__announcement.tone-success {
  border-color: rgba(74, 222, 128, 0.28);
  color: #bbf7d0;
}

.site-status-board__announcement.tone-warning {
  border-color: rgba(250, 204, 21, 0.28);
  color: #fde68a;
}

.site-status-board__announcement.tone-danger {
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.site-status-board__empty {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

body.has-status-board main {
  padding-top: calc(var(--header-height) + var(--status-board-height));
}

body.page-landing.has-status-board main,
body.page-catalog.has-status-board main {
  padding-top: var(--status-board-height);
}

@media (max-width: 720px) {
  :root {
    --status-board-height: 4.6rem;
  }

  .site-status-board__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding-block: 0.5rem;
  }

  .site-status-board__server {
    width: fit-content;
  }

  .site-status-board__announcement {
    max-width: none;
  }

  .site-status-board__announcement-text {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Menciones de carta (@ESP-001)
   Default: chip horizontal (comentarios / soporte / Q&A).
   Posts (.post-content): tile vertical tipo catálogo.
   -------------------------------------------------------------------------- */
.card-mention {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  width: auto;
  max-width: min(100%, 17.5rem);
  margin: 0.2em 0.35em 0.2em 0;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  overflow: visible;
  vertical-align: middle;
  text-decoration: none !important;
  color: #e8eef5;
  background: #141924;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.card-mention:hover {
  border-color: rgba(125, 211, 252, 0.35);
  background: #1a2030;
  color: #e8eef5;
  transform: translateY(-1px);
}

.card-mention__thumb {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}

.card-mention__mini {
  display: block;
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 7px;
  background: #0a0e14;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: auto;
}

.card-mention__badge {
  position: absolute;
  left: 3px;
  bottom: 3px;
  z-index: 1;
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0e14;
  background: #7dd3fc;
  line-height: 1.2;
  pointer-events: none;
  border: none;
}

.card-mention__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
  padding: 0.05rem 0;
}

.card-mention__name {
  font-size: 0.9rem;
  font-weight: 650;
  color: #e8eef5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-mention__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: #7dd3fc;
  letter-spacing: 0.02em;
  word-break: break-all;
  line-height: 1.3;
}

.card-mention__edition {
  font-size: 0.72rem;
  color: #8b97a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Posts: tile vertical como el catálogo */
.post-content .card-mention {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 8.25rem;
  max-width: none;
  margin: 0.45rem 0.55rem 0.45rem 0;
  padding: 0;
  overflow: hidden;
  vertical-align: top;
  color: var(--color-text);
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transform: none;
  transition: border-color var(--transition), background var(--transition);
}

.post-content .card-mention:hover {
  border-color: rgba(125, 211, 252, 0.25);
  background: var(--bg-elevated);
  color: var(--color-text);
  transform: none;
}

.post-content .card-mention__thumb {
  width: 100%;
}

.post-content .card-mention__mini {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: var(--bg-elevated);
}

.post-content .card-mention__badge {
  left: auto;
  right: 0.4rem;
  bottom: auto;
  top: 0.4rem;
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--color-border);
}

.post-content .card-mention__info {
  flex: none;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem 0.65rem;
}

.post-content .card-mention__code {
  order: -1;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.post-content .card-mention__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  display: block;
  -webkit-line-clamp: unset;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: normal;
}

.post-content .card-mention__edition {
  display: none;
}

.card-mention-menu {
  position: absolute;
  z-index: 2400;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem;
  background: var(--bg-panel);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.card-mention-menu__empty {
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.card-mention-menu__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.card-mention-menu__item:hover,
.card-mention-menu__item.is-active {
  background: var(--color-hover);
}

.card-mention-menu__item img {
  width: 32px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.card-mention-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.card-mention-menu__name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.card-mention-menu__kind {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.16);
  color: #7dd3fc;
  flex-shrink: 0;
}

.card-mention-menu__edition {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Lightbox carta full (clic derecho en minis — mismo patrón que el simulador)
   -------------------------------------------------------------------------- */
#cardLightboxOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2300;
  background: rgba(0, 0, 0, 0);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.35s ease;
  user-select: none;
}

#cardLightboxOverlay.show {
  display: flex;
}

#cardLightboxOverlay.show.visible {
  background: rgba(0, 0, 0, 0.82);
}

#cardLightboxOverlay .card-lightbox-foil {
  position: relative;
  flex: 0 1 auto;
  perspective: 900px;
  perspective-origin: 50% 50%;
  max-width: min(96vw, calc(100vw - 2rem));
  /* Deja aire para el código/hint debajo (si no, se corta el borde inferior). */
  max-height: calc(100dvh - 7rem);
  opacity: 0;
  transform: scale(0.4) rotateY(40deg);
  animation: card-lightbox-enter 0.5s cubic-bezier(0.22, 0.9, 0.36, 1) forwards;
}

#cardLightboxOverlay.closing .card-lightbox-foil {
  animation: card-lightbox-exit 0.3s cubic-bezier(0.4, 0, 0.7, 0.2) forwards;
}

#cardLightboxOverlay .card-lightbox-foil .card-foil-stage {
  /* No forzar 5/7 del .card-foil-stage global: recorta scans reales. */
  aspect-ratio: auto;
  width: fit-content;
  max-width: 100%;
  max-height: inherit;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#cardLightboxOverlay .card-lightbox-foil--tilt .card-foil-stage {
  cursor: grab;
}

#cardLightboxOverlay .card-lightbox-foil.is-tilting .card-foil-stage {
  transition: none;
  box-shadow:
    var(--tilt-shadow-x) var(--tilt-shadow-y) 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

#cardLightboxOverlay .card-lightbox-foil--fx:hover .card-foil-rainbow,
#cardLightboxOverlay .card-lightbox-foil--fx:hover .card-foil-shine {
  opacity: 1;
}

#cardLightboxOverlay .card-lightbox-img {
  max-width: min(96vw, calc(100vw - 2rem));
  max-height: calc(100dvh - 7rem);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: inherit;
  transform: translateZ(1px);
}

#cardLightboxOverlay .card-lightbox-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  opacity: 0;
  animation: card-lightbox-hint-in 0.4s ease 0.35s forwards;
}

#cardLightboxOverlay .card-lightbox-code {
  color: #e8eef5;
  font-size: 15px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

#cardLightboxOverlay .card-lightbox-ach {
  max-width: min(92vw, 420px);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(212, 168, 74, 0.16);
  color: #f5e0a8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  line-height: 1.35;
}

#cardLightboxOverlay .card-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 2px;
}

#cardLightboxOverlay .card-lightbox-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: #7dd3fc;
  color: #0a0e14;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

#cardLightboxOverlay .card-lightbox-action:hover {
  background: #a5e4fc;
  color: #0a0e14;
}

#cardLightboxOverlay .card-lightbox-action i {
  font-size: 1.05rem;
  line-height: 1;
}

#cardLightboxOverlay .card-lightbox-action:last-child {
  background: rgba(125, 211, 252, 0.12);
  color: #c8d0db;
}

#cardLightboxOverlay .card-lightbox-action:last-child:hover {
  background: rgba(125, 211, 252, 0.2);
  color: #e8eef5;
}

#cardLightboxOverlay .card-lightbox-hint {
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-family: var(--font-body);
}

#cardLightboxOverlay.closing .card-lightbox-meta,
#cardLightboxOverlay.closing .card-lightbox-hint {
  opacity: 0;
  animation: none;
}

#cardLightboxOverlay .card-lightbox-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: card-lightbox-fade-in 0.3s ease 0.1s forwards;
}

#cardLightboxOverlay .card-lightbox-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #c9a227;
  border-radius: 50%;
  animation: card-lightbox-spin 0.9s linear infinite;
}

#cardLightboxOverlay .card-lightbox-loading-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-family: var(--font-body);
}

@keyframes card-lightbox-spin {
  to { transform: rotate(360deg); }
}

@keyframes card-lightbox-enter {
  0% {
    opacity: 0;
    transform: scale(0.4) rotateY(40deg);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(201, 162, 39, 0);
  }
  60% {
    opacity: 1;
    transform: scale(1.03) rotateY(-3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(201, 162, 39, 0.2);
  }
}

@keyframes card-lightbox-exit {
  0% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.7) rotateY(-20deg);
  }
}

@keyframes card-lightbox-hint-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-lightbox-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Toast preview de noticia nueva */
.news-toast {
  position: fixed;
  z-index: 4800;
  right: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100vw - 2rem));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

/* Encima de la barra «sitio en construcción» */
body.has-construction-banner .news-toast {
  bottom: calc(var(--construction-banner-height) + 1rem);
}

.news-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.news-toast__inner {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background:
    linear-gradient(160deg, rgba(125, 211, 252, 0.1), transparent 42%),
    #12161e;
  color: #e8eef5;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.news-toast__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0e14;
  text-decoration: none;
}

.news-toast__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-toast__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, #12161e, transparent);
  pointer-events: none;
}

.news-toast__body {
  padding: 0.7rem 0.85rem 0.85rem;
}

.news-toast:not(.news-toast--has-media) .news-toast__body {
  padding: 0.95rem 1rem 1rem;
}

.news-toast__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  z-index: 2;
  border: 0;
  border-radius: 6px;
  background: rgba(10, 14, 20, 0.55);
  color: #e8eef5;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
}

.news-toast__close:hover {
  background: rgba(10, 14, 20, 0.8);
  color: #fff;
}

.news-toast__label {
  margin: 0 0 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #8b97a8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.news-toast__tag {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #7dd3fc;
}

.news-toast__title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  color: #e8eef5;
  padding-right: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.news-toast__actions .btn {
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .news-toast {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }

  body.has-construction-banner .news-toast {
    bottom: calc(var(--construction-banner-height) + 0.75rem);
  }
}
