/* ==========================================================================
   Mesa de Rol · La Terminal — Dark UI Layout & Components
   Inspired by Curry.gg (fixed sidebar + crisp dark LFG), MesasRoleras (poster
   game cards), StartPlaying (instant schedule/price scan), and Quest Portal.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Top Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(10, 12, 11, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  width: min(var(--container-max), calc(100% - 32px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark-sm {
  width: 32px;
  height: 32px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-copy small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.station-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}

.station-tab:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.09);
}

.station-tab.is-active,
.station-tab[aria-current="page"] {
  color: #ffffff;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.nav-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  max-width: 200px;
}

.user-name {
  font-size: 0.84rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-error-badge {
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
}

/* --------------------------------------------------------------------------
   2. Mobile Fixed Bottom Navigation Bar
   -------------------------------------------------------------------------- */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .login-label-extra {
    display: none;
  }

  body {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(11, 14, 12, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-default);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.5);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.69rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 6px 2px;
    transition: color 140ms ease;
  }

  .bottom-nav-item svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-nav-item.is-active,
  .bottom-nav-item[aria-current="page"] {
    color: var(--accent-text);
  }

  .bottom-nav-item.is-active::before,
  .bottom-nav-item[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24%;
    right: 24%;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: var(--accent);
  }

  .bottom-nav-item .nav-unread-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 20px);
    min-width: 16px;
    height: 16px;
    font-size: 0.65rem;
  }
}

/* --------------------------------------------------------------------------
   3. Landing Page (/) — Hero, Quick Search, Upcoming Board, 5 Systems
   -------------------------------------------------------------------------- */

.landing-hero {
  position: relative;
  padding: 52px 0 36px;
}

.landing-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: center;
}

.landing-hero-grid > * {
  min-width: 0;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.landing-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.landing-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 17ch;
}

.landing-hero-lead {
  margin-top: 14px;
  font-size: 1.04rem;
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.58;
}

.landing-search-form {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  max-width: 620px;
}

.landing-search-wrap {
  position: relative;
  flex: 1;
}

.landing-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.landing-search-wrap input {
  padding-left: 42px;
  min-height: 48px;
  border-radius: var(--radius-md);
  background: rgba(9, 12, 18, 0.82);
  border-color: var(--border-default);
}

.landing-hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-lucky-pill {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
}

.btn-lucky-pill:hover:not(:disabled) {
  background: rgba(56, 200, 56, 0.24);
  color: #ffffff;
  border-color: var(--accent);
}

.landing-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(9, 12, 18, 0.66);
  border: 1px solid var(--border-subtle);
}

.landing-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.landing-stat-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.landing-stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.landing-stat-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.landing-section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 800;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   4. Signature Hybrid Touch — Modern "Próximas salidas" Board
   -------------------------------------------------------------------------- */

.sf-viewport {
  overflow-x: auto;
  max-width: 100%;
}

.departures-board {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  overflow: hidden;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}

.sf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.sf-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.sf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.sf-clock {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.sf-viewport {
  overflow-x: auto;
}

.sf-col-head,
.sf-row {
  display: grid;
  grid-template-columns: 145px 120px minmax(200px, 1fr) 74px 110px 92px;
  align-items: center;
  gap: 12px;
  min-width: 740px;
  padding: 11px 18px;
}

.sf-col-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 12, 18, 0.35);
}

.sf-rows {
  transition: opacity 180ms ease;
}

.sf-rows.sf-changing {
  opacity: 0.35;
}

.sf-row {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 140ms ease;
}

.sf-row:last-child {
  border-bottom: 0;
}

.sf-row:hover:not(.sf-empty) {
  background: rgba(56, 200, 56, 0.07);
}

.sf-row.sf-empty {
  opacity: 0.35;
}

.flap {
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-letters {
  display: inline;
}

.flap-urgent {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 700;
  width: fit-content;
}

.flap-amber-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.flap-sys {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.flap-title {
  font-weight: 700;
  color: var(--text-primary);
}

.flap-seats {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.flap-fare {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-text);
}

.sf-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.sf-go:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.sf-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
}

.sf-note {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.sf-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sf-page-status {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.sf-controls button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
}

.sf-controls button:hover:not(:disabled) {
  background: var(--bg-surface-hover);
  color: #ffffff;
}

.sf-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.lucky-toast {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: #fef3c7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.lucky-toast-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lucky-retry {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(9, 12, 18, 0.6);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 700;
}

.lucky-retry:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. 5 System Poster Tiles (Landing Showcase)
   -------------------------------------------------------------------------- */

.system-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.system-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 176px;
  padding: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  text-decoration: none;
  color: #ffffff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.system-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  opacity: 0.72;
  transition: transform 320ms ease, opacity 180ms ease;
}

.system-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.12) 0%, rgba(9, 12, 18, 0.58) 54%, rgba(9, 12, 18, 0.94) 100%);
}

.system-poster:hover {
  transform: translateY(-3px);
  border-color: var(--poster-accent, var(--accent));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.48);
  color: #ffffff;
}

.system-poster:hover img {
  transform: scale(1.06);
  opacity: 0.88;
}

.system-poster-content {
  position: relative;
  z-index: 2;
}

.system-poster-tag {
  display: inline-block;
  width: 24px;
  height: 3px;
  border-radius: 4px;
  background: var(--poster-accent, var(--accent));
  margin-bottom: 8px;
}

.system-poster h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.system-poster p {
  font-size: 0.79rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   6. Finder Page (/partidas) — Fixed Left Sidebar + Grid (Curry.gg style)
   -------------------------------------------------------------------------- */

.finder-shell {
  padding: 24px 0 48px;
}

.finder-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.finder-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.22) transparent;
}

.finder-sidebar::-webkit-scrollbar,
.wa-thread-list::-webkit-scrollbar,
.wa-messages::-webkit-scrollbar,
.dock-body::-webkit-scrollbar,
.reputation-dialog::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.finder-sidebar::-webkit-scrollbar-track,
.wa-thread-list::-webkit-scrollbar-track,
.wa-messages::-webkit-scrollbar-track,
.dock-body::-webkit-scrollbar-track,
.reputation-dialog::-webkit-scrollbar-track {
  background: transparent;
}

.finder-sidebar::-webkit-scrollbar-thumb,
.wa-thread-list::-webkit-scrollbar-thumb,
.wa-messages::-webkit-scrollbar-thumb,
.dock-body::-webkit-scrollbar-thumb,
.reputation-dialog::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
}

.finder-sidebar::-webkit-scrollbar-thumb:hover,
.wa-thread-list::-webkit-scrollbar-thumb:hover,
.wa-messages::-webkit-scrollbar-thumb:hover,
.dock-body::-webkit-scrollbar-thumb:hover,
.reputation-dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.42);
}

.sidebar-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.sidebar-title {
  font-size: 0.96rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar-close-btn {
  display: none;
}

.sidebar-search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.sidebar-search-wrap .search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.sidebar-search-wrap input {
  padding: 8px 34px 8px 36px;
  min-height: 40px;
  font-size: 0.88rem;
}

.search-inline-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-secondary);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-inline-clear:hover {
  background: rgba(148, 163, 184, 0.28);
  color: #ffffff;
}

.filter-section {
  padding: 11px 0;
  border-top: 1px solid var(--border-subtle);
}

.filter-group-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sys-chip,
.mini-chip,
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.81rem;
  font-weight: 600;
  transition: background-color 130ms ease, border-color 130ms ease, color 130ms ease;
}

.sys-chip:hover,
.mini-chip:hover,
.seg-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-default);
  color: #ffffff;
}

.sys-chip.active,
.mini-chip.active,
.seg-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(56, 200, 56, 0.2);
}

/* System & Community dots in sidebar chips */
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-dnd5e { background: var(--sys-dnd); }
.dot-pathfinder { background: var(--sys-pathfinder); }
.dot-cthulhu { background: var(--sys-cthulhu); }
.dot-wod { background: var(--sys-wod); }
.dot-scifi { background: var(--sys-scifi); }
.dot-indie { background: var(--sys-indie); }

.community-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.dot-terminal::before { background: var(--org-terminal); }
.dot-mesasroleras::before { background: var(--org-mesasroleras); }
.dot-juguemosrol::before { background: var(--org-juguemosrol); }
.dot-startplaying::before { background: var(--org-startplaying); }
.dot-meeplay::before { background: var(--org-meeplay); }
.dot-roll20::before { background: var(--org-roll20); }

/* Sidebar Calendar */
.station-fold {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: 6px;
}

.station-fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 0;
}

.station-fold > summary::-webkit-details-marker {
  display: none;
}

.month-calendar {
  margin-top: 10px;
}

.agenda-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.agenda-controls strong {
  font-size: 0.82rem;
  text-transform: capitalize;
  color: var(--text-primary);
}

.agenda-controls button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.agenda-controls button:hover {
  background: var(--bg-surface-hover);
  color: #ffffff;
}

.station-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.station-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.agenda-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 3px 1px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.1;
}

.agenda-date b {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.agenda-date small {
  font-size: 0.62rem;
  color: var(--text-dim);
}

.agenda-date.outside-month {
  opacity: 0.35;
}

.agenda-date.has-games {
  background: rgba(56, 200, 56, 0.14);
  border-color: rgba(56, 200, 56, 0.34);
}

.agenda-date.has-games b {
  color: #ffffff;
}

.agenda-date.has-games small {
  color: var(--accent-text);
  font-weight: 700;
}

.agenda-date[aria-current="date"] {
  border-color: var(--accent);
}

.agenda-date[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent-hover);
}

.agenda-date[aria-pressed="true"] b,
.agenda-date[aria-pressed="true"] small {
  color: var(--accent-ink);
}

.agenda-dots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.agenda-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.calendar-heat-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.heat-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--bg-subtle);
}

.heat-swatch[data-heat="1"] { background: rgba(56, 200, 56, 0.22); }
.heat-swatch[data-heat="2"] { background: rgba(56, 200, 56, 0.4); }
.heat-swatch[data-heat="3"] { background: rgba(56, 200, 56, 0.58); }
.heat-swatch[data-heat="4"] { background: rgba(56, 200, 56, 0.78); }
.heat-swatch[data-heat="5"] { background: #38c838; }

.calendar-sources-summary,
.agenda-navigation-status {
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.agenda-unscheduled-row {
  margin-top: 8px;
}

.button-unscheduled {
  width: 100%;
  min-height: 32px;
  font-size: 0.76rem;
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.sidebar-mobile-footer {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

/* Finder Main Column */
.finder-main {
  min-width: 0;
}

.finder-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.finder-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.finder-title-wrap h1 {
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  font-weight: 800;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.finder-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mobile-finder-bar {
  display: none;
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.completeness-note {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Game Card Grid & Card Anatomy
      Strict Priority Order:
      1. System (badge + default 1-of-5 cover + color accent)
      2. Cost (Gratis / Price badge)
      3. Time (local schedule row)
      4. Origin (source community badge)
   -------------------------------------------------------------------------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 18px;
}

.game-card.station-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.game-card.station-ticket:hover {
  transform: translateY(-3px);
  border-color: var(--card-accent, var(--accent-border));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.game-card[data-system="dnd5e"] { --card-accent: rgba(245, 158, 11, 0.6); --card-accent-solid: var(--sys-dnd); }
.game-card[data-system="pathfinder"] { --card-accent: rgba(251, 146, 60, 0.6); --card-accent-solid: var(--sys-pathfinder); }
.game-card[data-system="cthulhu"] { --card-accent: rgba(45, 212, 191, 0.6); --card-accent-solid: var(--sys-cthulhu); }
.game-card[data-system="wod"] { --card-accent: rgba(244, 63, 94, 0.6); --card-accent-solid: var(--sys-wod); }
.game-card[data-system="scifi"] { --card-accent: rgba(56, 189, 248, 0.6); --card-accent-solid: var(--sys-scifi); }
.game-card[data-system="indie"] { --card-accent: rgba(167, 139, 250, 0.6); --card-accent-solid: var(--sys-indie); }

.game-card[data-nav-highlight] {
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45), var(--shadow-md);
}

.ticket-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Ticket Top Band: clean solid surface (no gradient), System + Cost */
.ticket-pass-head {
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Clean artwork with GM & game type pills at bottom edge (no muddy gradient) */
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-media img.ticket-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.card-media img.art-fantasy,
.card-media img.art-pathfinder,
.detail-hero-banner img.art-fantasy,
.detail-hero-banner img.art-pathfinder {
  object-position: center 20%;
}

.card-media img.art-vampire,
.detail-hero-banner img.art-vampire {
  object-position: center 62%;
}

.card-media img.art-indie,
.detail-hero-banner img.art-indie {
  object-position: center 35%;
}

.game-card:hover .card-media img.ticket-art {
  transform: scale(1.04);
}

.card-media-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.ticket-gm-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.ticket-gm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 9px 3px 4px;
  border-radius: var(--radius-pill);
  background: rgba(9, 12, 18, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 0;
}

.ticket-gm-chip .station-avatar {
  width: 22px;
  height: 22px;
  font-size: 0.68rem;
}

.card-gm-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-format-pill {
  display: block;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(9, 12, 18, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.25;
  color: #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Priority 1 (System) */
.ticket-system {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 66%;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-system::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--sys-indie);
}

.ticket-system.system-dnd5e::before { background: var(--sys-dnd); box-shadow: 0 0 8px var(--sys-dnd); }
.ticket-system.system-pathfinder::before { background: var(--sys-pathfinder); box-shadow: 0 0 8px var(--sys-pathfinder); }
.ticket-system.system-cthulhu::before { background: var(--sys-cthulhu); box-shadow: 0 0 8px var(--sys-cthulhu); }
.ticket-system.system-wod::before { background: var(--sys-wod); box-shadow: 0 0 8px var(--sys-wod); }
.ticket-system.system-scifi::before { background: var(--sys-scifi); box-shadow: 0 0 8px var(--sys-scifi); }
.ticket-system.system-indie::before { background: var(--sys-indie); box-shadow: 0 0 8px var(--sys-indie); }

/* Priority 2 (Cost) */
.card-cost-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-cost-pill.fare-free {
  background: rgba(56, 200, 56, 0.14);
  border: 1px solid rgba(56, 200, 56, 0.48);
  color: #78eb78;
}

.card-cost-pill.fare-paid {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.52);
  color: #fde68a;
}

.card-cost-pill.fare-unknown {
  background: rgba(27, 33, 30, 0.9);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* Card body (D style clean typographic information presentation) */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 14px 12px;
  gap: 8px;
}

.card-priority-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-time-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.card-time-main svg {
  width: 14px;
  height: 14px;
  color: var(--card-accent-solid, var(--accent-hover));
  flex-shrink: 0;
}

.card-soon-pill {
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-origin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}

.card-origin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 600;
}

.origin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--org-terminal);
}

.origin-web .origin-dot { background: var(--org-terminal); }
.origin-discord .origin-dot { background: var(--org-discord); }
.origin-mesasroleras .origin-dot { background: var(--org-mesasroleras); }
.origin-juguemosrol .origin-dot { background: var(--org-juguemosrol); }
.origin-startplaying .origin-dot { background: var(--org-startplaying); }
.origin-meeplay .origin-dot { background: var(--org-meeplay); }
.origin-roll20 .origin-dot { background: var(--org-roll20); }

.card-format-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-seats {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Title & excerpt */
.card-title-block h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.46;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ticket perforation divider with deep semicircular punch-out notches */
.game-card.station-ticket {
  --stub-bg: #0e1210;
  --stub-perf: rgba(212, 228, 216, 0.24);
  --stub-barcode: #9fb0a5;
}

/* Partidas que salen hoy / pronto: Verde oficial de La Terminal (#38C838 / #287028) */
.game-card.station-ticket.is-today {
  --stub-bg: #102412;
  --stub-perf: rgba(56, 200, 56, 0.62);
  --stub-barcode: #48d848;
  border-color: rgba(56, 200, 56, 0.45);
}

.card-perforation {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-elevated) 50%, var(--stub-bg) 50%);
}

.card-perforation::before,
.card-perforation::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  transform: translateY(-50%);
  transition: border-color 160ms ease;
  z-index: 2;
}

.game-card.is-today .card-perforation::before,
.game-card.is-today .card-perforation::after {
  border-color: rgba(56, 200, 56, 0.5);
}

.card-perforation::before {
  left: -12px;
}

.card-perforation::after {
  right: -12px;
}

.game-card:hover .card-perforation::before,
.game-card:hover .card-perforation::after {
  border-color: var(--card-accent, var(--accent-border));
}

.card-perforation-line {
  width: 100%;
  margin: 0 15px;
  border-top: 1.5px dashed var(--stub-perf);
}

/* Ticket bottom stub (switches to La Terminal green when departing today) */
.card-stub {
  background: var(--stub-bg);
  padding: 6px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card-stub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ticket-seal-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ticket-seal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 10, 8, 0.65);
  border: 1.5px dashed color-mix(in srgb, var(--card-accent-solid, var(--accent)) 80%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent-solid, var(--accent-text));
  flex-shrink: 0;
}

.ticket-seal svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ticket-serial-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ticket-serial-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ticket-today-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5ee65e;
}

.card-cta-cue {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.game-card.is-today .card-cta-cue {
  background: var(--accent);
  border-color: var(--accent-border);
  color: var(--accent-ink);
  font-weight: 700;
}

.game-card:hover .card-cta-cue {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}

.game-card.is-today:hover .card-cta-cue {
  background: #4ade4a;
  border-color: #78f078;
  color: #051205;
}

.ticket-barcode-strip {
  height: 14px;
  width: 100%;
  opacity: 0.45;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--stub-barcode) 0 2px, transparent 2px 4px,
    var(--stub-barcode) 4px 5px, transparent 5px 8px,
    var(--stub-barcode) 8px 11px, transparent 11px 13px,
    var(--stub-barcode) 13px 14px, transparent 14px 18px,
    var(--stub-barcode) 18px 20px, transparent 20px 23px
  );
  transition: opacity 160ms ease;
}

.game-card.is-today .ticket-barcode-strip {
  opacity: 0.58;
}

.game-card:hover .ticket-barcode-strip {
  opacity: 0.78;
}

/* Skeleton loading cards */
.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.skeleton-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-surface) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-lines {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--bg-surface);
}

.skeleton-line.tall { height: 18px; width: 78%; }
.skeleton-line.short { width: 48%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   8. Dedicated Game Detail Page (/partida/:slug)
   -------------------------------------------------------------------------- */

.detail-page-shell {
  padding: 20px 0 56px;
}

.ssr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.ssr-breadcrumb a {
  color: var(--text-secondary);
  font-weight: 600;
}

.ssr-breadcrumb a:hover {
  color: #ffffff;
}

.detail-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-hero-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.detail-hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.detail-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.25) 0%, rgba(9, 12, 18, 0.72) 55%, rgba(9, 12, 18, 0.96) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-hero-badges .ticket-system {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(9, 12, 18, 0.82);
  border: 1px solid var(--border-default);
}

.detail-title-main {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.detail-title-main[tabindex="-1"]:focus {
  outline: none;
}

.detail-gm-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.detail-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.detail-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.detail-aside-col {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-summary-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-kv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-kv {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-kv:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-kv-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.detail-kv-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-primary-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-primary-cta .button {
  width: 100%;
}

.ssr-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rpg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rpg-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.rpg-tag.schedule {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-text);
}

.rpg-tag.experience-required {
  background: var(--paid-bg);
  border-color: var(--paid-border);
  color: #fde68a;
}

.members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.publication-status {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. How It Works & FAQ (Landing + Create subpage)
   -------------------------------------------------------------------------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.how-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.how-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.how-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 14px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.faq-list details p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. Subpages: Create Game, Applications, Blocks, Chats, Admin
   -------------------------------------------------------------------------- */

.ssr-subpage-shell {
  padding: 28px 0 56px;
}

.ssr-hero-band {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  margin-bottom: 24px;
}

.ssr-hero-band h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: 8px;
}

.ssr-hero-lead {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.ssr-cta-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.welcome-note {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.tab-narrow-panel {
  max-width: 820px;
  margin-inline: auto;
}

.station-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.field-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.datetime-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.preset-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.preset-chip:hover,
.preset-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #ffffff;
}

.tab-auth-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.application-list,
.blocks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.application-card,
.block-item {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Chat Workspace */
.wa-chat-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  min-height: 540px;
}

.wa-sidebar {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
}

.wa-group-heading {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.chat-thread-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-thread-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-thread-btn:hover {
  border-color: var(--border-default);
  background: var(--bg-surface);
}

.chat-thread-btn.is-active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.wa-stage {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
}

.wa-active-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.wa-active-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.wa-bubbles {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
}

.chat-bubble,
.message-item {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.chat-bubble.is-mine,
.message-item.is-mine {
  align-self: flex-end;
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.wa-composer {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  align-items: flex-end;
}

.wa-composer .field {
  flex: 1;
}

.wa-composer textarea {
  min-height: 44px;
}

.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  text-align: center;
  color: var(--text-muted);
}

/* Floating Chat Dock (desktop only) */
.chat-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
}

.chat-dock-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.chat-dock-window {
  width: 340px;
  height: 460px;
  margin-bottom: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.dock-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.chat-dock-body,
.chat-dock-chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 10px;
}

.dock-composer {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.dock-composer textarea {
  min-height: 38px;
}

.dock-unread-badge {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.back-to-top-fab {
  position: fixed;
  right: 20px;
  bottom: 76px;
  z-index: 65;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   11. Footer & Legal
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  padding: 36px 0 28px;
}

.footer-inner {
  width: min(var(--container-max), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  max-width: 560px;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-credits {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.credits-title {
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.credits-list {
  margin: 8px 0;
  padding-left: 1.1rem;
}

.credits-list li + li {
  margin-top: 2px;
}

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

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  font-size: 0.86rem;
}

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

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

.payment-legal {
  width: min(var(--container-max), calc(100% - 32px));
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.payment-legal summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
}

.payment-legal p {
  margin-top: 8px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints (Tablet & Mobile)
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .system-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .finder-layout {
    grid-template-columns: 1fr;
  }

  .mobile-finder-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    padding: 10px 0;
    margin-bottom: 12px;
    background: rgba(10, 12, 11, 0.94);
    backdrop-filter: blur(10px);
  }

  .mobile-finder-search {
    flex: 1;
    position: relative;
  }

  .mobile-finder-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
  }

  .mobile-finder-search input {
    padding-left: 36px;
    min-height: 42px;
  }

  /* Slide-over Filter Drawer on Mobile */
  .finder-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 110;
    width: min(340px, 88vw);
    max-height: 100vh;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transform: translateX(-104%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    padding-bottom: 84px;
  }

  .finder-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: inline-flex;
  }

  .sidebar-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(4, 6, 10, 0.74);
    backdrop-filter: blur(4px);
  }

  .sidebar-mobile-footer {
    display: flex;
    position: sticky;
    bottom: -84px;
    margin: 16px -18px -84px;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-default);
  }

  .sidebar-mobile-footer .button {
    width: 100%;
  }

  .detail-page-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside-col {
    position: static;
    order: -1;
  }
}

@media (max-width: 900px) {
  .landing-hero-card {
    padding: 28px 20px;
  }

  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .landing-search-form {
    flex-direction: column;
  }

  .system-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .field-row-2,
  .datetime-split,
  .wa-chat-grid {
    grid-template-columns: 1fr;
  }

  .chat-dock,
  .back-to-top-fab {
    display: none !important;
  }

  .footer-actions {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .page-shell,
  .header-inner,
  .footer-inner,
  .payment-legal {
    width: calc(100% - 24px);
  }

  .system-showcase-grid {
    grid-template-columns: 1fr;
  }

  .system-poster {
    min-height: 128px;
  }

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

  .detail-hero-banner {
    min-height: 210px;
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   13. Form Controls & Secondary Panel Details
   -------------------------------------------------------------------------- */

.form-step {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  padding: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-step legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-weight: 800;
}

.field-label-text {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.field-label-row label {
  margin-bottom: 0;
}

.pill-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-toggle {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}

.pill-toggle:hover {
  border-color: var(--border-default);
  color: #ffffff;
}

.pill-toggle.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #ffffff;
}

.seats-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}

.stepper input {
  width: 58px;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  text-align: center;
  padding: 4px;
  background: transparent;
}

.stepper-btn {
  width: 36px;
  height: 38px;
  border: 0;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 800;
}

.stepper-btn:hover {
  background: var(--bg-surface-hover);
}

.md-toolbar {
  display: inline-flex;
  gap: 4px;
}

.md-btn {
  min-height: 28px;
  padding: 0 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.md-btn:hover {
  background: var(--bg-surface-hover);
  color: #ffffff;
}

.cover-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-cover-thumb {
  width: 112px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.cover-preview-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.button-full {
  width: 100%;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.safety-subhead {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.compact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-chat-peer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-members-drawer {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 12, 18, 0.5);
}

.chat-teammates-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 760px) {
  .sf-col-head {
    display: none;
  }

  .sf-row {
    min-width: 0;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 12px 14px;
  }

  .sf-row .flap-title {
    grid-column: 1 / -1;
    white-space: normal;
    line-height: 1.3;
  }

  .sf-row .flap-seats {
    display: none;
  }

  .sf-row .sf-go {
    justify-self: end;
  }

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

  .cover-preview-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-cover-thumb {
    width: 100%;
    height: 140px;
  }
}

/* --------------------------------------------------------------------------
   14. Applications, Blocks, Chat Threads & Bubbles (La Terminal Dark)
   -------------------------------------------------------------------------- */

.application-card {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.application-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.application-card-top h3 {
  font-size: 1.02rem;
  margin-top: 3px;
}

.compact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.inline-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Chat sidebar thread items */
.wa-thread-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--bg-elevated);
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.wa-thread-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-default);
}

.wa-thread-item.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.wa-thread-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-text);
  flex-shrink: 0;
}

.wa-thread-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-thread-top,
.wa-thread-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-thread-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-thread-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.chat-thread-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-thread-item.is-unread .chat-thread-preview {
  color: var(--text-primary);
  font-weight: 600;
}

.wa-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

/* Teammates list */
.teammate-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.teammate-peer {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.teammate-peer > div {
  min-width: 0;
  flex: 1;
}

.teammate-peer strong {
  font-size: 0.85rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teammate-peer .small-note {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teammate-row .button-row {
  justify-content: flex-start;
  gap: 8px;
  padding-left: 35px;
}

#chat-workspace,
.panel,
.admin-card {
  scroll-margin-top: 84px;
}

/* Chat bubbles */
.wa-bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.91rem;
  line-height: 1.48;
  align-self: flex-start;
}

.wa-bubble.mine {
  align-self: flex-end;
  background: #102412;
  border-color: var(--accent-border);
}

.wa-bubble.blocked-msg {
  opacity: 0.65;
  font-style: italic;
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.wa-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wa-msg-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.msg-block-btn {
  background: none;
  border: 0;
  padding: 2px;
  font-size: 0.72rem;
  opacity: 0.6;
}

.msg-block-btn:hover {
  opacity: 1;
}

.block-target-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
}

/* --------------------------------------------------------------------------
   15. Admin Dashboard (/admin)
   -------------------------------------------------------------------------- */

.admin-page-shell {
  width: min(var(--container-max), calc(100% - 32px));
  margin: 24px auto 64px;
}

.admin-mobile-subnav,
.admin-mobile-back {
  display: none;
}

.admin-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.admin-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-card-header h1,
.admin-card-header h2 {
  font-size: 1.35rem;
  margin-top: 4px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
}

.admin-kpi-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-kpi-card small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.admin-kpi-card strong {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-text);
}

.admin-kpi-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-breakdown-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.admin-pill.is-live {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-text);
}

.admin-pill.is-paid {
  background: var(--paid-bg);
  border-color: var(--paid-border);
  color: #fde68a;
}

.admin-pill.is-proto {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
}

.admin-pill.is-off {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: #fda4af;
}

.admin-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.admin-source-tile {
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-source-tile.is-disabled {
  opacity: 0.65;
  border-color: var(--border-subtle);
}

.admin-source-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-source-name {
  font-weight: 800;
  font-size: 0.96rem;
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.admin-switch input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.admin-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.admin-games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-games-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.admin-games-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.admin-games-table tr:last-child td {
  border-bottom: 0;
}

.admin-game-title {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-game-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .admin-mobile-back {
    display: inline-flex;
  }

  .admin-mobile-subnav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
  }

  .admin-mobile-subnav a {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   16. Landing La Terminal (Hero translúcido + Carrusel + Comunidades + Dados 3D)
   -------------------------------------------------------------------------- */

#dice-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

#dice-bg-canvas.is-ready {
  opacity: 1;
}

#dice-bg-canvas[hidden] {
  display: none;
}

body.dice-bg-active {
  background: #000000;
}

body.dice-bg-active .site-header,
body.dice-bg-active .page-shell,
body.dice-bg-active .site-footer {
  position: relative;
  z-index: 1;
}

body.dice-bg-active .site-header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 2-column hero over floating 3D space dice */
body.dice-bg-active .landing-hero-card {
  background: rgba(8, 12, 10, 0.42);
  border-color: rgba(56, 200, 56, 0.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

body.dice-bg-active .landing-hero-card h1,
body.dice-bg-active .landing-hero-lead {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.92);
}

body.dice-bg-active .landing-search-wrap input {
  background: rgba(9, 12, 10, 0.84);
  backdrop-filter: blur(8px);
}

/* Monumental 3D Isometric La Terminal green live counter (Option A) */
.landing-hero-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
}

.hero-big-number {
  display: inline-block;
  font-family: "Segoe UI Black", "Arial Black", Impact, var(--font-sans);
  font-size: clamp(5rem, 9.2vw, 7.6rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #46e046;
  transform: perspective(520px) rotateX(10deg) rotateY(-10deg);
  text-shadow:
    0 1px 0 #34b834,
    0 2px 0 #2ea62e,
    0 3px 0 #289428,
    0 4px 0 #228222,
    0 5px 0 #1d701d,
    0 6px 0 #175e17,
    0 7px 0 #124d12,
    0 8px 0 #0d3b0d,
    0 9px 0 #082908,
    0 10px 0 #051c05,
    0 18px 34px rgba(0, 0, 0, 0.92),
    0 0 44px rgba(56, 200, 56, 0.45);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 140ms ease;
}

.hero-big-number.is-spinning {
  opacity: 0.88;
}

.hero-big-number.is-locked {
  animation: heroCountPop 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroCountPop {
  0% { transform: perspective(520px) rotateX(10deg) rotateY(-10deg) scale(0.92); }
  55% { transform: perspective(520px) rotateX(10deg) rotateY(-10deg) scale(1.07); }
  100% { transform: perspective(520px) rotateX(10deg) rotateY(-10deg) scale(1); }
}

.hero-big-label {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92);
}

.hero-big-sub {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 200, 56, 0.26);
  background: rgba(8, 12, 10, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.hero-big-sub[hidden] {
  display: none;
}

.hero-big-sub strong {
  font-family: var(--font-mono);
  color: var(--accent-text);
}

.hero-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 140ms ease;
}

.hero-sub-link:hover,
.hero-sub-link:focus-visible {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-big-sep {
  color: var(--text-dim);
}

.stat-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-right: 6px;
  vertical-align: middle;
}

.stat-value-accent {
  color: var(--accent-text);
}

/* Horizontal Tickets Carousel ("Tickets que salen pronto") */
.carousel-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.carousel-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.carousel-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: rgba(16, 21, 18, 0.86);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.carousel-nav-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.tickets-carousel-viewport {
  position: relative;
  overflow: hidden;
  margin-inline: -4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.tickets-carousel-track,
.communities-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 6px 4px 12px;
  will-change: transform;
  transition: filter 420ms ease, opacity 420ms ease;
}

.tickets-carousel-track.is-loading-obfuscated,
.communities-carousel-track.is-loading-obfuscated {
  filter: blur(7px) saturate(0.5);
  opacity: 0.55;
  pointer-events: none;
}

.tickets-carousel-track > .game-card,
.tickets-carousel-track > .skeleton-card {
  flex: 0 0 322px;
  width: 322px;
  max-width: 322px;
}

.community-brand-card {
  flex: 0 0 364px;
  max-width: 364px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid color-mix(in srgb, var(--comm-accent, var(--accent)) 75%, transparent);
  background: rgba(13, 17, 15, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.community-brand-card:hover {
  border-color: color-mix(in srgb, var(--comm-accent, var(--accent)) 65%, transparent);
  background: rgba(17, 23, 20, 0.92);
  transform: translateY(-2px);
}

.community-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-logo-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: rgba(6, 9, 7, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.community-logo-box img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.community-logo-fallback {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--comm-accent, var(--accent-text));
}

.community-brand-ident {
  flex: 1;
  min-width: 0;
}

.community-brand-ident h3 {
  font-size: 0.98rem;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-brand-domain {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-live-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--comm-accent, var(--accent)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--comm-accent, var(--accent)) 45%, transparent);
  color: var(--text-primary);
  white-space: nowrap;
}

/* Google-style search snippet preview for each connected community */
.community-serp-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(7, 10, 8, 0.76);
  border: 1px solid var(--border-subtle);
  flex: 1;
}

.community-serp-title {
  display: block;
  font-size: 0.86rem;
  line-height: 1.32;
  color: var(--accent-text);
  margin-bottom: 5px;
}

.community-serp-desc {
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-brand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.community-brand-metrics {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.community-brand-metrics strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.community-brand-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Olympic-Ring Systems Dice Stage (3D dice fly in and dock into each hollow ring!) */
.systems-olympic-section {
  padding: 36px 0 42px;
}

.systems-olympic-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 38px;
}

.systems-olympic-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
}

.systems-olympic-lead {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}

.systems-olympic-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.systems-olympic-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 44px;
  flex-wrap: wrap;
}

/* Subtle Olympic interlocking pull-up on the bottom row of 2 rings */
.systems-olympic-row-bottom {
  margin-top: -18px;
  gap: 68px;
}

.system-dice-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 210px;
  padding: 6px 8px 12px;
  border-radius: var(--radius-lg);
  transition: transform 160ms ease;
}

.system-dice-node:hover,
.system-dice-node:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.system-dice-ring {
  position: relative;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--ring-accent, var(--accent)) 68%, transparent);
  background: radial-gradient(circle, rgba(56, 200, 56, 0.06) 0%, rgba(0, 0, 0, 0) 68%);
  box-shadow:
    inset 0 0 28px color-mix(in srgb, var(--ring-accent, var(--accent)) 16%, transparent),
    0 0 24px color-mix(in srgb, var(--ring-accent, var(--accent)) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.system-dice-node:hover .system-dice-ring,
.system-dice-node:focus-visible .system-dice-ring {
  border-color: var(--ring-accent, var(--accent));
  box-shadow:
    inset 0 0 38px color-mix(in srgb, var(--ring-accent, var(--accent)) 30%, transparent),
    0 0 42px color-mix(in srgb, var(--ring-accent, var(--accent)) 36%, transparent);
  transform: scale(1.04);
}

.system-dice-die-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: #070a08;
  border: 1px solid color-mix(in srgb, var(--ring-accent, var(--accent)) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ring-accent, var(--accent-text));
}

.system-dice-svg-seal {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #070a08;
  border: 1.5px dashed color-mix(in srgb, var(--ring-accent, var(--accent)) 85%, transparent);
  color: var(--ring-accent, var(--accent-text));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.system-dice-svg-seal svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-dice-name {
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.92);
}

.system-dice-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.system-dice-count {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(10, 14, 12, 0.78);
  color: var(--accent-text);
}

/* GM Boarding Pass CTA Banner */
.gm-boarding-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(56, 200, 56, 0.34);
  background: rgba(12, 24, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gm-boarding-copy {
  max-width: 60ch;
}

.gm-boarding-copy h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  margin: 4px 0 8px;
}

.gm-boarding-copy p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.gm-boarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.dice-bg-active .faq-list details {
  background: rgba(13, 17, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.dice-bg-active .game-card {
  background: rgba(16, 20, 18, 0.9);
}

body.dice-bg-active .site-footer {
  background: rgba(6, 8, 7, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Smooth obfuscated loading skeletons & reveal animations (zero sudden pop-ins) */
@keyframes terminalShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes terminalFadeUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.landing-hero-card {
  animation: terminalFadeUp 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.is-revealed {
  animation: terminalFadeUp 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tickets-carousel-track > .game-card,
.communities-carousel-track > .community-brand-card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.shimmer-block {
  background: linear-gradient(
    110deg,
    rgba(24, 34, 27, 0.72) 25%,
    rgba(56, 200, 56, 0.14) 50%,
    rgba(24, 34, 27, 0.72) 75%
  );
  background-size: 220% 100%;
  animation: terminalShimmer 1.5s linear infinite;
}

.community-skeleton-card {
  flex: 0 0 364px;
  max-width: 364px;
  min-height: 228px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 17, 15, 0.72);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.community-skeleton-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-skeleton-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.community-skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.community-skeleton-box {
  height: 86px;
  border-radius: var(--radius-sm);
}

.system-dice-count.is-loading {
  color: transparent;
  min-width: 78px;
  border-color: rgba(56, 200, 56, 0.18);
  background: linear-gradient(
    110deg,
    rgba(16, 24, 18, 0.8) 25%,
    rgba(56, 200, 56, 0.2) 50%,
    rgba(16, 24, 18, 0.8) 75%
  );
  background-size: 220% 100%;
  animation: terminalShimmer 1.4s linear infinite;
}

.btn-lucky-pill.is-loading {
  opacity: 0.65;
  pointer-events: none;
  filter: blur(0.4px);
}

@media (max-width: 900px) {
  .systems-olympic-row {
    gap: 22px;
  }

  .systems-olympic-row-bottom {
    margin-top: 0;
    gap: 22px;
  }

  .system-dice-node {
    width: 164px;
  }

  .system-dice-ring {
    width: 138px;
    height: 138px;
  }
}

@media (max-width: 760px) {
  .landing-hero-card {
    padding: 20px 16px 22px;
  }

  .landing-hero-card h1 {
    font-size: clamp(1.75rem, 7.6vw, 2.3rem);
    line-height: 1.08;
  }

  .landing-hero-lead {
    font-size: 0.92rem;
    margin-top: 8px;
  }

  .landing-hero-actions {
    gap: 8px;
  }

  .landing-hero-actions > a,
  .landing-hero-actions > button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-stat-stage {
    padding-top: 6px;
  }

  .hero-big-number {
    font-size: clamp(3.6rem, 16vw, 4.8rem);
  }

  .tickets-carousel-viewport {
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    touch-action: pan-y;
  }

  .tickets-carousel-track > .game-card,
  .tickets-carousel-track > .skeleton-card {
    flex: 0 0 min(80vw, 294px);
    max-width: min(80vw, 294px);
  }

  .community-brand-card,
  .community-skeleton-card {
    flex: 0 0 min(82vw, 304px);
    max-width: min(82vw, 304px);
    padding: 14px 15px;
    gap: 10px;
  }

  .community-brand-foot {
    flex-wrap: wrap;
    gap: 8px;
  }

  .community-brand-actions {
    margin-left: auto;
  }

  /* Keep the iconic 3-over-2 Olympic rings intact & fitting in 1 phone screen */
  .systems-olympic-section {
    padding: 24px 0 30px;
  }

  .systems-olympic-head {
    margin-bottom: 24px;
  }

  .systems-olympic-grid {
    gap: 10px;
    width: 100%;
  }

  .systems-olympic-row {
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
  }

  .systems-olympic-row-bottom {
    margin-top: 2px;
    gap: 18px;
  }

  .system-dice-node {
    width: calc((100% - 20px) / 3);
    max-width: 124px;
    min-width: 0;
    padding: 4px 2px 8px;
  }

  .system-dice-ring {
    width: 88px;
    height: 88px;
    margin-bottom: 10px;
  }

  .system-dice-die-tag {
    top: -9px;
    padding: 1px 7px;
    font-size: 0.62rem;
  }

  .system-dice-svg-seal {
    bottom: -10px;
    width: 26px;
    height: 26px;
  }

  .system-dice-svg-seal svg {
    width: 13px;
    height: 13px;
  }

  .system-dice-name {
    font-size: 0.76rem;
    line-height: 1.2;
    margin-top: 4px;
  }

  .system-dice-sub {
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .system-dice-count {
    font-size: 0.66rem;
    padding: 2px 7px;
    margin-top: 5px;
  }

  .detail-primary-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-primary-cta .button {
    width: 100%;
    justify-content: center;
  }

  .faq-grid-2col {
    grid-template-columns: 1fr;
  }

  .gm-boarding-banner {
    padding: 20px 18px;
  }
}

@media (max-width: 380px) {
  .system-dice-ring {
    width: 78px;
    height: 78px;
  }

  .system-dice-name {
    font-size: 0.72rem;
  }
}

/* ============================================================================
   PARTIDAS SEPARADAS POR DÍA (Day Jump Bar + Sticky Day Headers)
   ============================================================================ */
.catalog-day-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 2px 0 12px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .catalog-day-jump {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-day-jump::-webkit-scrollbar {
    display: none;
  }
}

.day-jump-chip {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(14, 19, 16, 0.88);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 120ms ease;
}

.day-jump-chip:hover {
  border-color: rgba(56, 200, 56, 0.65);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.day-jump-chip.is-today {
  border-color: rgba(56, 200, 56, 0.65);
  background: rgba(56, 200, 56, 0.14);
  color: #7df07d;
}

.day-jump-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.day-jump-chip.is-today .day-jump-count {
  background: rgba(56, 200, 56, 0.24);
  color: #a7f8a7;
}

.game-day-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.catalog-day-section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.catalog-day-header {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 12, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
  .catalog-day-section {
    scroll-margin-top: calc(var(--header-h) + 74px);
  }
  .catalog-day-header {
    top: calc(var(--header-h) + 64px);
  }
}

.catalog-day-section.is-today .catalog-day-header {
  border-color: rgba(56, 200, 56, 0.48);
  background: rgba(11, 22, 14, 0.94);
  box-shadow: 0 6px 24px rgba(56, 200, 56, 0.1);
}

.catalog-day-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-day-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.catalog-day-section.is-today .catalog-day-badge {
  background: var(--accent);
  color: #031103;
  border-color: var(--accent);
}

.catalog-day-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-day-rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.catalog-day-count {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-text);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(56, 200, 56, 0.1);
  border: 1px solid rgba(56, 200, 56, 0.25);
}

/* ============================================================================
   MIS MESAS (GM + Jugador + Postulaciones)
   ============================================================================ */
.my-mesas-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.my-mesas-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: rgba(14, 19, 16, 0.85);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.my-mesas-pill:hover {
  border-color: rgba(56, 200, 56, 0.55);
  color: var(--text-primary);
}

.my-mesas-pill.is-active {
  border-color: var(--accent);
  background: rgba(56, 200, 56, 0.16);
  color: #82f382;
}

.my-mesas-pill-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(56, 200, 56, 0.22);
  color: #a9f9a9;
}

.my-games-panel {
  margin-bottom: 20px;
}

.my-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.my-game-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 18, 15, 0.9);
  transition: border-color 150ms ease, transform 150ms ease;
}

.my-game-card:hover {
  border-color: rgba(56, 200, 56, 0.45);
  transform: translateY(-2px);
}

.my-game-card.is-archived {
  opacity: 0.7;
}

.my-game-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.my-game-sys {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(56, 200, 56, 0.14);
  color: var(--accent-text);
  border: 1px solid rgba(56, 200, 56, 0.3);
}

.my-game-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.my-game-status.is-active {
  background: rgba(56, 200, 56, 0.14);
  color: #7df07d;
}

.my-game-status.is-archived {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.my-game-pending-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.my-game-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.25;
}

.my-game-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.my-game-title a:hover {
  color: var(--accent-text);
}

.my-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.my-game-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.my-game-gm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.my-game-pub {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.my-game-pub.status-published {
  color: #7df07d;
}

.my-game-pub.status-failed {
  color: #fda4af;
}

.my-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 760px) {
  .catalog-day-header {
    top: 58px;
    padding: 8px 11px;
    gap: 8px;
  }

  .catalog-day-title {
    font-size: 0.92rem;
  }

  .catalog-day-rule {
    display: none;
  }

  .catalog-day-count {
    margin-left: auto;
  }

  .my-games-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   3D RPG MINIATURES BACKGROUND FOR /partidas (Estilo A: Resina Esmeralda & Obsidiana)
   ============================================================================ */
.minis-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 420ms ease;
}

.minis-bg-canvas.is-ready {
  opacity: 1;
}

body.minis-bg-active {
  background: #020503;
}

body.minis-hovering {
  cursor: grab;
}

body.minis-dragging,
body.minis-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

body.minis-bg-active .topbar,
body.minis-bg-active main,
body.minis-bg-active .site-footer {
  position: relative;
  z-index: 1;
}

body.minis-bg-active .finder-sidebar,
body.minis-bg-active .finder-toolbar {
  background: rgba(10, 14, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.minis-bg-active .game-card {
  background: rgba(13, 18, 15, 0.84);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body.minis-bg-active .catalog-day-header {
  background: rgba(8, 13, 10, 0.84);
}

.reputation-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin: 16px 0;
}

.reputation-stat {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-wrap: anywhere;
}

.reputation-stat-gm {
  border-color: rgba(74, 222, 128, 0.28);
  background: linear-gradient(160deg, rgba(20, 44, 29, 0.42), rgba(14, 20, 17, 0.35));
}

.reputation-stat-player {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(160deg, rgba(16, 36, 52, 0.42), rgba(14, 18, 24, 0.35));
}

.rep-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rep-stat-count {
  font-size: 0.8rem;
  color: var(--text-muted, #9fb0a4);
}

.rep-stat-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rep-big-avg {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.rep-stars {
  color: #fbbf24;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
}

.rep-speed-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #dcfce7;
}

.rep-turns-meta {
  margin: 0 !important;
  font-size: 0.8rem !important;
}

.rep-profile-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rep-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rep-profile-name {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.rep-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #bbf7d0;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rep-avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1.05rem;
}

.rep-role-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rep-role-gm {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.rep-role-player {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.rep-method-fold {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
}

.rep-method-fold summary {
  cursor: pointer;
  color: var(--text-muted, #9fb0a4);
  font-weight: 600;
}

.rep-method-fold p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.rep-section {
  margin-top: 6px;
}

.rep-section-title {
  margin: 12px 0 10px;
  font-size: 1.05rem;
}

.rep-reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reputation-review {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-wrap: anywhere;
}

.rep-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rep-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rep-author-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rep-author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rep-subject-line {
  font-size: 0.8rem;
  color: var(--text-muted, #9fb0a4);
}

.rep-score-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  font-size: 0.82rem;
}

.reputation-comment {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-primary, #eef5ef);
  line-height: 1.6;
  font-size: 0.94rem;
}

.rep-review-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rep-game-link {
  color: #86efac;
  text-decoration: none;
  font-weight: 600;
}

.rep-game-link:hover {
  text-decoration: underline;
}

.rep-report-fold summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-muted, #9fb0a4);
}

.rep-report-form {
  margin-top: 8px;
}

.rep-empty {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #9fb0a4);
  margin: 0;
}

.rep-game-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rep-game-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.rep-participants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 18px;
}

.rep-participant-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.rep-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 14px;
  margin-top: 14px;
}

.rep-directory-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reputation-person {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.reputation-person > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.reputation-person[open] > summary {
  margin-bottom: 12px;
}

.rep-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reputation-dialog {
  width: min(760px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-panel, #111b16);
  color: var(--text-primary);
  border-radius: 16px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 20px 22px;
}

.reputation-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.external-response-badge { font-size: .78rem; margin: 6px 0; color: var(--text-primary); overflow-wrap: anywhere; }
.card-gm-response-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  background: rgba(9, 26, 16, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 222, 128, 0.42);
  color: #bbf7d0;
}
.gm-config-drawer.pub-pref-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.config-drawer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.config-drawer-divider {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.onboarding-optin-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(20, 42, 28, 0.28);
  cursor: pointer;
  font-size: 0.9rem;
}
.onboarding-optin-row input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}
.onboarding-optin-row small {
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}
#game-reputation form { margin: 16px 0; }
#game-reputation label,
.reputation-person label,
#admin-review-reports label { display: block; margin: 10px 0; }
#game-reputation input[type="checkbox"] { width: auto; margin-right: 8px; }

body.minis-bg-active .site-footer {
  background: rgba(6, 8, 7, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============================================================================
   INTERACTIVE 3D BACKGROUNDS FOR /crear-partida, /mis-mesas, /chats, /partida/:slug
   ============================================================================ */
.scenes-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 420ms ease;
}

.scenes-bg-canvas.is-ready {
  opacity: 1;
}

body.scenes-bg-active {
  background: #020503;
}

body.scenes-hovering {
  cursor: grab;
}

body.scenes-dragging,
body.scenes-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

body.scenes-bg-active .topbar,
body.scenes-bg-active main,
body.scenes-bg-active .site-footer {
  position: relative;
  z-index: 1;
}

body.scenes-bg-active .sheet-panel,
body.scenes-bg-active .ssr-hero-band,
body.scenes-bg-active .detail-summary-card,
body.scenes-bg-active .chat-workspace,
body.scenes-bg-active .my-game-card {
  background: rgba(10, 14, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.scenes-bg-active .site-footer {
  background: rgba(6, 8, 7, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Floating speech bubbles & dice roll readouts */
.scenes-float-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

@keyframes sceneBubblePop {
  from {
    opacity: 0;
    transform: translate(-50%, -92%) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -112%) scale(1);
  }
}

.scene-speech-bubble {
  position: absolute;
  transform: translate(-50%, -112%) scale(1);
  max-width: min(300px, 84vw);
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(56, 200, 56, 0.55);
  background: rgba(6, 12, 8, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 200, 56, 0.22);
  color: #f0f8f0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 1;
  animation: sceneBubblePop 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 260ms ease, transform 260ms ease;
}

.scene-speech-bubble.is-leaving {
  opacity: 0;
  transform: translate(-50%, -126%) scale(0.94);
}

.scene-bubble-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7df07d;
}

.scene-bubble-text {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Keep all floating bubbles cohesive with the La Terminal obsidian + emerald green aesthetic */
.scene-speech-bubble.tone-gold {
  border-color: rgba(110, 231, 120, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 200, 56, 0.34);
}
.scene-speech-bubble.tone-gold .scene-bubble-kicker { color: #a7f3a7; }

.scene-speech-bubble.tone-teal {
  border-color: rgba(56, 200, 56, 0.58);
}
.scene-speech-bubble.tone-teal .scene-bubble-kicker { color: #6ee787; }

.scene-speech-bubble.tone-crimson {
  border-color: rgba(56, 200, 56, 0.45);
}
.scene-speech-bubble.tone-crimson .scene-bubble-kicker { color: #9ae6a0; }

.scene-speech-bubble.tone-cyan {
  border-color: rgba(88, 224, 98, 0.65);
}
.scene-speech-bubble.tone-cyan .scene-bubble-kicker { color: #86efac; }

/* ============================================================================
   MIS MESAS · OPCIÓN B: POSTER + PANEL (Master: Partida -> Postulaciones + Jugador)
   ============================================================================ */
.my-mesas-poster-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-games-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mm-poster-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  border-radius: 14px;
  background: rgba(13, 19, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.mm-poster-card:hover {
  border-color: rgba(74, 222, 128, 0.34);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.mm-poster-card.is-player:hover {
  border-color: rgba(56, 189, 248, 0.36);
}

.mm-poster-card.is-archived,
.mm-playing-card.is-archived {
  opacity: 0.78;
}

.mm-poster-col {
  display: flex;
  flex-direction: column;
  border-right: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 10, 0.55);
  min-width: 0;
}

.mm-playing-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: rgba(13, 19, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.mm-playing-card:hover {
  border-color: rgba(56, 189, 248, 0.38);
  transform: translateY(-2px);
}

.mm-poster-art {
  position: relative;
  height: 126px;
  overflow: hidden;
  background: #0b110d;
}

.mm-poster-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mm-poster-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 8, 0.2) 0%, rgba(8, 12, 10, 0.92) 100%);
  pointer-events: none;
}

.mm-poster-art .ticket-system {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 2px 8px;
  font-size: 0.68rem;
  border-radius: 999px;
  background: rgba(9, 12, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.mm-playing-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(14, 34, 48, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

.mm-poster-title-wrap {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 2;
}

.mm-poster-title-btn {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.22;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.mm-poster-title-btn:hover {
  color: #86efac;
  text-decoration: underline;
}

.mm-poster-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}

.mm-poster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted, #9fb0a4);
}

.mm-poster-pub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mm-pub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.mm-pub-pill.is-public {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #bbf7d0;
}

.mm-pub-pill.is-private {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

.mm-tiny-link {
  font-size: 0.74rem;
  padding: 0;
}

.mm-playing-gm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary, #cbd5e1);
}

.mm-playing-gm .station-avatar {
  width: 24px;
  height: 24px;
  font-size: 0.68rem;
}

.mm-poster-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.mm-btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  min-height: 30px;
}

.mm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  flex-shrink: 0;
}

.mm-panel-col {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  justify-content: center;
}

.mm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mm-panel-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #9fb0a4);
}

.mm-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.mm-status-pill.is-pending {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.mm-status-pill.is-idle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #9fb0a4);
}

.mm-app-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mm-app-item {
  display: flex;
  flex-direction: column;
}

.mm-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.mm-app-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.mm-app-person .station-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.74rem;
  flex-shrink: 0;
}

.mm-app-identity {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.mm-app-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.mm-app-score {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
}

.mm-app-speed {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.32);
  color: #bbf7d0;
  white-space: nowrap;
}

.mm-app-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mm-no-rep {
  font-size: 0.74rem;
  white-space: nowrap;
}

.mm-empty-panel {
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mm-empty-panel strong {
  font-size: 0.88rem;
  color: var(--text-primary, #f8fafc);
}

.mm-empty-panel p {
  margin: 0;
  max-width: 440px;
}

@media (max-width: 1080px) {
  .mm-app-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .mm-app-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .mm-poster-card {
    grid-template-columns: 1fr;
  }
  .mm-poster-col {
    border-right: 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  }
  .mm-poster-art {
    height: 144px;
  }
  .mm-app-name {
    max-width: none;
  }
  .mm-app-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 6px;
  }
  .mm-app-actions .mm-btn,
  .mm-app-actions .button {
    width: 100%;
    justify-content: center;
    padding: 6px 6px;
    font-size: 0.76rem;
  }
  .mm-app-actions .mm-no-rep {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
