/* VIP SPACE 1.0 — capa final de interfaz, accesibilidad y rendimiento */
:root {
  --ui-radius-sm: 12px;
  --ui-radius-md: 18px;
  --ui-radius-lg: 26px;
  --ui-focus: #12bcd5;
  --ui-ease: cubic-bezier(.2,.8,.2,1);
}

html {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  overflow-x: clip;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[role="button"],
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
[role="button"] {
  touch-action: manipulation;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
summary,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ui-focus) 78%, white);
  outline-offset: 3px;
}

.topbar,
.panel,
.card,
.center-card,
.modal-card,
.app-nav,
.admin-module-header,
.admin-module-sidebar {
  transform: translateZ(0);
}

.auth-grid {
  max-width: 1240px;
  margin-inline: auto;
}

.auth-grid .hero {
  min-height: clamp(460px, 66svh, 610px);
  padding: clamp(34px, 5vw, 72px);
}

.auth-grid .hero h1 {
  max-width: 690px;
}

.auth-panel {
  border-radius: var(--ui-radius-lg) !important;
}

.auth-panel input,
.auth-panel select,
.auth-panel button {
  min-height: 50px;
}

.auth-panel .primary {
  position: relative;
  overflow: hidden;
}

.auth-panel .primary::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 24%, rgba(255,255,255,.25) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform .55s var(--ui-ease);
}

@media (hover: hover) and (pointer: fine) {
  .auth-panel .primary:hover::after { transform: translateX(120%); }
  .home-action:hover,
  .more-link:hover,
  .reward-card:hover,
  .promotion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(70,63,145,.16);
  }
}

.home-action,
.more-link,
.reward-card,
.promotion-card {
  transition: transform .18s var(--ui-ease), box-shadow .18s var(--ui-ease), border-color .18s var(--ui-ease);
}

.app-nav {
  scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
  display: none;
}

.app-nav button,
.admin-module-nav button {
  min-height: 46px;
}

.admin-module-page[hidden],
[aria-hidden="true"].hidden {
  display: none !important;
}

.modal-card {
  overscroll-behavior: contain;
}

.metric,
.manual-code strong,
.member-card-code strong,
.reward-history-code,
.game-hud strong,
.arcade-hud b {
  font-variant-numeric: tabular-nums;
}

/* Renderiza las zonas inferiores cuando se acercan a la pantalla. */
@supports (content-visibility: auto) {
  .promotion-grid,
  .loyalty-grid,
  .reward-history-list,
  .admin-customer-list,
  .admin-audit-list {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
  }
}

/* Móviles y tabletas: menos coste de GPU, más espacio útil y controles fiables. */
@media (max-width: 820px) {
  .topbar {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .panel,
  .card,
  .center-card,
  .modal-card,
  .app-nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .auth-grid .hero {
    min-height: 150px;
  }

  .page > .panel,
  .page > .card,
  .page > .center-card {
    contain: layout paint;
  }

  .game-stage,
  .arcade-screen,
  canvas {
    contain: strict;
  }

  .game-stage::after,
  .arcade-scanlines {
    opacity: .24 !important;
  }

  .game-object,
  .game-player {
    filter: none !important;
  }
}

@media (max-width: 430px) {
  .top-actions { gap: 4px !important; }
  .app-nav button { min-width: 52px; }
  .panel,
  .card,
  .center-card { border-radius: var(--ui-radius-md) !important; }
  .modal-card { max-height: 94dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(38, 35, 77, .38); }
  button,
  input,
  select,
  textarea { border-width: 2px !important; }
}

/* Portada premium 1.1 — una paleta, contraste alto y jerarquía clara. */
.portal-client {
  --home-ink: #141a37;
  --home-muted: #66708e;
  --home-line: rgba(71, 63, 142, .14);
  --home-violet: #7351e8;
  --home-violet-deep: #4b2bbf;
  --home-cyan: #20c3d8;
  --home-surface: #ffffff;
  --home-dark-copy: #dbe5f7;
  --home-dark-accent: #83edf7;
}

.portal-client #page-home {
  max-width: 1180px;
  margin-inline: auto;
}

.portal-client .home-dashboard-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: 270px;
  margin-bottom: 18px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(125, 111, 255, .42);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(56, 215, 235, .34), transparent 31%),
    radial-gradient(circle at 8% 110%, rgba(170, 79, 235, .46), transparent 42%),
    linear-gradient(128deg, #10162e 0%, #28205f 52%, #123b54 100%);
  box-shadow: 0 28px 80px rgba(35, 29, 93, .24), inset 0 1px rgba(255,255,255,.13);
}

.portal-client .home-dashboard-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .42;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(104,231,246,.75) 0 1px, transparent 1.7px);
  background-position: 0 0, 37px 51px;
  background-size: 96px 96px, 143px 143px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.75), transparent 72%);
}

.portal-client .home-dashboard-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -76px;
  top: -94px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(129, 239, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(129,239,255,.045), 0 0 0 84px rgba(147,101,255,.04);
}

.portal-client .home-dashboard-copy {
  position: relative;
  z-index: 1;
}

.portal-client .home-dashboard-copy .eyebrow {
  color: var(--home-dark-accent) !important;
  font-size: 11px;
  letter-spacing: .16em;
  text-shadow: none;
}

.portal-client .home-dashboard-copy h1 {
  margin: 10px 0 13px;
  color: #fff !important;
  font-size: clamp(38px, 5.3vw, 68px);
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.portal-client .home-dashboard-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--home-dark-copy) !important;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
}

.portal-client .home-dashboard-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal-client .home-dashboard-stats > span {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  box-shadow: inset 0 1px rgba(255,255,255,.1);
}

.portal-client .home-dashboard-stats small,
.portal-client .home-dashboard-stats strong {
  display: block;
}

.portal-client .home-dashboard-stats small {
  color: #c8d5ed;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.portal-client .home-dashboard-stats strong {
  margin-top: 5px;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -.04em;
}

.portal-client .home-dashboard-stats em {
  margin-left: 3px;
  color: var(--home-dark-accent);
  font-size: .48em;
  font-style: normal;
  letter-spacing: 0;
}

.portal-client .home-roulette-feature,
.portal-client .home-roulette-feature.unavailable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 0;
  margin-bottom: 16px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid var(--home-line) !important;
  border-radius: 22px;
  color: var(--home-ink) !important;
  background:
    radial-gradient(circle at 93% 0, rgba(32,195,216,.13), transparent 36%),
    linear-gradient(145deg, #fff, #f5f3ff 65%, #eefbff) !important;
  box-shadow: 0 14px 38px rgba(55, 49, 120, .09) !important;
}

.portal-client .home-roulette-feature h2 {
  margin: 4px 0 5px;
  color: var(--home-ink) !important;
  font-size: clamp(23px, 2.6vw, 31px);
}

.portal-client .home-roulette-feature p {
  margin: 0;
  color: var(--home-muted) !important;
}

.portal-client .home-progress-chip {
  margin-top: 9px;
  color: #5436bd !important;
  background: #eeeaff !important;
}

.portal-client .home-roulette-feature > button {
  min-width: 170px;
  min-height: 50px;
}

.portal-client .home-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)) !important;
  grid-template-areas:
    "qr game rewards"
    "qr passes passes";
  gap: 12px !important;
  margin-bottom: 16px;
}

.portal-client #homeQrBtn { grid-area: qr; }
.portal-client #homeGameBtn { grid-area: game; }
.portal-client #homeRewardsBtn { grid-area: rewards; }
.portal-client #homePassesBtn { grid-area: passes; }

.portal-client .home-action {
  position: relative;
  isolation: isolate;
  min-height: 176px !important;
  padding: 22px !important;
  overflow: hidden;
  border: 1px solid var(--home-line) !important;
  border-radius: 22px !important;
  color: var(--home-ink) !important;
  background: linear-gradient(145deg, #fff, #f4f6ff) !important;
  box-shadow: 0 15px 38px rgba(51, 45, 111, .09) !important;
}

.portal-client .home-action::after {
  content: "→";
  position: absolute;
  right: 19px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(91, 62, 194, .15);
  border-radius: 50%;
  color: #5b3ac5;
  background: rgba(238, 233, 255, .82);
  font-size: 17px;
  line-height: 1;
  transition: transform .18s var(--ui-ease), background .18s var(--ui-ease);
}

.portal-client .home-action::before {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 19px;
  border-radius: 14px;
  color: #5b3ac5;
  background: #eee9ff;
  font-size: 24px;
  font-weight: 900;
  line-height: 42px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(103,71,210,.08);
}

.portal-client #homeQrBtn::before { content: "⌗"; }
.portal-client #homeGameBtn::before { content: "✦"; }
.portal-client #homeRewardsBtn::before { content: "★"; }
.portal-client #homePassesBtn::before { content: "▣"; }

.portal-client .home-action > span {
  display: block;
  color: var(--home-muted) !important;
  font-size: 12px !important;
  line-height: 1.42;
}

.portal-client .home-action > span:first-of-type {
  color: #6241ce !important;
  font-size: 10px !important;
  font-weight: 950;
  letter-spacing: .13em;
}

.portal-client .home-action > strong {
  display: block;
  margin: 7px 0 9px;
  color: var(--home-ink) !important;
  font-size: clamp(19px, 2vw, 23px) !important;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.portal-client #homeQrBtn,
.portal-client #homeGameBtn {
  border-color: rgba(124, 111, 255, .42) !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 100% 0, rgba(49,215,235,.31), transparent 38%),
    linear-gradient(140deg, #151a38, #352272 62%, #14465a) !important;
  box-shadow: 0 20px 48px rgba(37, 29, 103, .2) !important;
}

.portal-client #homeQrBtn {
  display: flex;
  min-height: 364px !important;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(25px, 3vw, 34px) !important;
}

.portal-client #homeQrBtn::before {
  width: 58px;
  height: 58px;
  margin-bottom: auto;
  font-size: 33px;
  line-height: 58px;
}

.portal-client #homeQrBtn > strong {
  max-width: 300px;
  font-size: clamp(29px, 3.5vw, 42px) !important;
  line-height: 1 !important;
}

.portal-client #homeGameBtn {
  background:
    radial-gradient(circle at 90% 8%, rgba(248,93,183,.28), transparent 35%),
    linear-gradient(140deg, #111a36, #263b7d 58%, #154358) !important;
}

.portal-client #homeQrBtn::before,
.portal-client #homeGameBtn::before {
  color: #fff;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13);
}

.portal-client #homeQrBtn::after,
.portal-client #homeGameBtn::after {
  border-color: rgba(255,255,255,.2);
  color: #fff;
  background: rgba(255,255,255,.12);
}

.portal-client #homeQrBtn > span,
.portal-client #homeGameBtn > span {
  color: var(--home-dark-copy) !important;
}

.portal-client #homeQrBtn > span:first-of-type,
.portal-client #homeGameBtn > span:first-of-type {
  color: var(--home-dark-accent) !important;
}

.portal-client #homeQrBtn > strong,
.portal-client #homeGameBtn > strong {
  color: #fff !important;
}

.portal-client .home-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.portal-client .home-summary > .card,
.portal-client .home-fact-card,
.portal-client .verification-card,
.portal-client .verification-ok {
  border: 1px solid var(--home-line) !important;
  border-radius: 22px !important;
  color: var(--home-ink) !important;
  background: linear-gradient(150deg, #fff, #f7f8ff) !important;
  box-shadow: 0 14px 36px rgba(51,45,111,.08) !important;
}

.portal-client .home-summary > .card {
  min-width: 0;
  padding: 22px !important;
  border-top: 3px solid #7653e8 !important;
}

.portal-client .home-summary > .card:nth-child(2) { border-top-color: #20bed3 !important; }
.portal-client .home-summary > .card:nth-child(3) { border-top-color: #ef68a9 !important; }
.portal-client .home-summary > .card:nth-child(4) { border-top-color: #f0b849 !important; }

.portal-client .home-summary .metric {
  color: var(--home-ink) !important;
  font-size: clamp(36px, 4vw, 50px);
  letter-spacing: -.05em;
}

.portal-client .home-summary .muted,
.portal-client .home-fact-card .muted,
.portal-client .verification-card .muted,
.portal-client .verification-ok .muted {
  color: var(--home-muted) !important;
}

.portal-client .home-fact-card {
  margin-top: 12px;
  padding: 20px 22px !important;
  background:
    radial-gradient(circle at 96% 16%, rgba(32,195,216,.13), transparent 32%),
    linear-gradient(145deg, #fff, #f1f7ff) !important;
}

@media (hover: hover) and (pointer: fine) {
  .portal-client .home-action:hover {
    border-color: rgba(105, 78, 215, .33) !important;
    box-shadow: 0 24px 56px rgba(42, 34, 105, .15) !important;
    transform: translateY(-4px);
  }
  .portal-client .home-action:hover::after { transform: translateX(3px); }
}

@media (max-width: 1060px) {
  .portal-client .home-dashboard-hero {
    grid-template-columns: 1fr;
  }
  .portal-client .home-actions,
  .portal-client .home-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .portal-client .home-actions {
    grid-template-areas:
      "qr game"
      "rewards passes";
  }
  .portal-client #homeQrBtn { min-height: 220px !important; }
  .portal-client #homeQrBtn::before { margin-bottom: 22px; }
}

@media (max-width: 620px) {
  .portal-client #page-home { padding-top: 0; }
  .portal-client .home-dashboard-hero {
    gap: 22px;
    min-height: 0;
    margin-inline: 0;
    padding: 25px 20px;
    border-radius: 24px;
  }
  .portal-client .home-dashboard-copy h1 { font-size: clamp(34px, 11vw, 48px); }
  .portal-client .home-dashboard-stats { gap: 8px; }
  .portal-client .home-dashboard-stats > span { padding: 13px 12px; border-radius: 14px; }
  .portal-client .home-dashboard-stats strong { font-size: 26px; }
  .portal-client .home-roulette-feature,
  .portal-client .home-roulette-feature.unavailable {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    border-radius: 19px;
  }
  .portal-client .home-roulette-feature > button { width: 100%; }
  .portal-client .home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "qr qr"
      "game rewards"
      "passes passes";
  }
  .portal-client .home-summary {
    grid-template-columns: 1fr !important;
  }
  .portal-client .home-action {
    min-height: 0 !important;
    padding: 19px !important;
  }
  .portal-client #homeQrBtn { min-height: 240px !important; }
  .portal-client #homeGameBtn,
  .portal-client #homeRewardsBtn { min-height: 172px !important; }
  .portal-client #homeQrBtn > strong { font-size: 31px !important; }
  .portal-client .home-action::before { margin-bottom: 15px; }
  .portal-client .home-summary > .card { padding: 19px !important; }
}

@media (max-width: 390px) {
  .portal-client .home-actions {
    grid-template-columns: 1fr !important;
    grid-template-areas: "qr" "game" "rewards" "passes";
  }
  .portal-client #homeQrBtn,
  .portal-client #homeGameBtn,
  .portal-client #homeRewardsBtn,
  .portal-client #homePassesBtn { min-height: 0 !important; }
  .portal-client #homeQrBtn::before { margin-bottom: 18px; }
}

@media (prefers-contrast: more) {
  .portal-client .home-dashboard-copy p,
  .portal-client #homeQrBtn > span,
  .portal-client #homeGameBtn > span { color: #eef4ff !important; }
  .portal-client .home-summary .muted,
  .portal-client .home-fact-card .muted,
  .portal-client .verification-card .muted,
  .portal-client .verification-ok .muted { color: #343c5f !important; }
}

/* Acceso premium 1.2 — la misma identidad espacial en escritorio y móvil. */
.portal-client .auth-grid::before {
  border: 1px solid rgba(126, 105, 255, .28) !important;
  background:
    radial-gradient(circle at 16% 14%, rgba(114, 238, 255, .22), transparent 24%),
    radial-gradient(circle at 84% 82%, rgba(246, 92, 190, .18), transparent 31%),
    linear-gradient(135deg, #0d142f 0%, #2a1b61 57%, #104255 100%) !important;
  box-shadow: 0 34px 90px rgba(28, 24, 88, .27), inset 0 1px rgba(255,255,255,.1) !important;
}

.portal-client .auth-grid::after {
  border-color: rgba(112, 234, 250, .18) !important;
  box-shadow:
    0 0 0 52px rgba(106, 235, 252, .05),
    0 0 0 104px rgba(159, 111, 255, .045) !important;
}

.portal-client .auth-grid .hero::before { display: none !important; }

.portal-client .auth-grid .hero::after {
  border-color: rgba(126, 238, 255, .26) !important;
  box-shadow:
    0 0 0 40px rgba(112, 232, 250, .055),
    0 0 0 82px rgba(170, 112, 255, .04),
    inset 0 0 72px rgba(75, 212, 240, .08) !important;
}

.portal-client .auth-grid .hero .eyebrow {
  border-color: rgba(132, 239, 250, .22) !important;
  color: #83edf7 !important;
  background: rgba(13, 24, 58, .58) !important;
  box-shadow: 0 12px 34px rgba(4, 8, 30, .24) !important;
}

.portal-client .auth-grid .hero h1 {
  color: #ffffff !important;
  text-shadow: 0 16px 46px rgba(2, 5, 24, .34) !important;
}

.portal-client .auth-grid .hero h1::after {
  background: linear-gradient(90deg, #7b63ff, #f15da8, #50e5f4) !important;
  box-shadow: 0 0 22px rgba(91, 224, 244, .25) !important;
}

.portal-client .auth-grid .hero p { color: #dbe5f7 !important; }

/* Misión Zona Cero 1.2 — arena cinematográfica, legible y ligera. */
.portal-client #page-game {
  --game-night: #050817;
  --game-panel: #0d1430;
  --game-panel-2: #151a3b;
  --game-cyan: #67ebf6;
  --game-violet: #8c72ff;
  --game-gold: #ffd963;
  --game-danger: #ff4778;
  --game-copy: #d7e2f5;
}

.portal-client #page-game .game-shell { max-width: 1180px !important; }

.portal-client #page-game .game-profile-head {
  margin-bottom: 14px;
  padding: 0 clamp(2px, 1vw, 10px);
}

.portal-client #page-game .game-profile-head .eyebrow { color: #6241ce !important; }
.portal-client #page-game .game-profile-head h1 { color: #141a37 !important; }
.portal-client #page-game .game-profile-head p { color: #66708e !important; }

.portal-client #page-game .game-crew-banner {
  position: relative;
  display: block !important;
  min-height: clamp(290px, 42vw, 470px) !important;
  margin: 12px 0 20px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(103, 220, 245, .3) !important;
  border-radius: 28px !important;
  background: #080d20 !important;
  box-shadow: 0 30px 76px rgba(26, 20, 83, .28) !important;
}

.portal-client #page-game .game-crew-banner::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 8, 25, .16), transparent 55%),
    linear-gradient(0deg, rgba(3, 7, 24, .96) 0%, rgba(5, 9, 28, .52) 38%, transparent 70%);
}

.portal-client #page-game .game-crew-banner img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
}

.portal-client #page-game .game-crew-banner > div {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: block;
  max-width: 760px;
  padding: clamp(24px, 5vw, 48px) !important;
  color: #ffffff !important;
  background: transparent !important;
}

.portal-client #page-game .game-crew-banner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7cf2fb !important;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
}

.portal-client #page-game .game-crew-banner span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #72eff9;
  box-shadow: 0 0 15px rgba(114,239,249,.75);
}

.portal-client #page-game .game-crew-banner strong {
  display: block;
  max-width: 690px;
  margin: 10px 0 9px;
  color: #ffffff !important;
  font-size: clamp(30px, 5vw, 58px) !important;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.portal-client #page-game .game-crew-banner small {
  display: block;
  max-width: 560px;
  color: #d7e2f5 !important;
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.45;
}

.portal-client #page-game .game-hero {
  position: relative;
  padding: clamp(13px, 2.4vw, 24px) !important;
  overflow: hidden;
  border: 1px solid rgba(103, 224, 245, .24) !important;
  border-radius: 28px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 12% -8%, rgba(131, 90, 255, .25), transparent 34%),
    linear-gradient(145deg, #0c1330, #050817 72%) !important;
  box-shadow: 0 30px 76px rgba(19, 15, 65, .3), inset 0 1px rgba(255,255,255,.05) !important;
}

.portal-client #page-game .game-mission-strip {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(100, 231, 246, .24) !important;
  border-radius: 14px;
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(98, 60, 225, .58), rgba(15, 79, 103, .5)) !important;
  box-shadow: none !important;
}

.portal-client #page-game .game-mission-strip span { color: #87f1fa !important; }
.portal-client #page-game .game-mission-strip strong { color: #ffffff !important; }
.portal-client #page-game .game-mission-strip small { color: #c9d8ed !important; }

.portal-client #page-game .game-hud {
  position: relative;
  z-index: 20;
  display: grid !important;
  grid-template-columns: 1.25fr repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 13px;
}

.portal-client #page-game .game-hud > span {
  display: grid;
  min-height: 61px;
  padding: 10px 11px !important;
  align-content: center;
  justify-items: start;
  border: 1px solid rgba(115, 218, 244, .17) !important;
  border-radius: 14px !important;
  color: #9eacc6 !important;
  background: linear-gradient(145deg, rgba(24,33,69,.96), rgba(8,13,32,.96)) !important;
  box-shadow: none !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-client #page-game .game-hud > span:first-child {
  border-color: rgba(118, 238, 249, .42) !important;
  background: linear-gradient(145deg, #192756, #0b182f) !important;
}

.portal-client #page-game .game-hud strong {
  display: block;
  margin: 4px 0 0 !important;
  color: #ffffff !important;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: none;
}

.portal-client #page-game .game-hud > span:first-child strong {
  color: #82f3fb !important;
  font-size: 28px;
}

.portal-client #page-game .game-lives-wrap { min-width: 0; }
.portal-client #page-game .game-heart { margin-left: 1px; font-size: 16px; }
.portal-client #page-game .game-fever { display: grid; gap: 7px; }
.portal-client #page-game .game-fever small { color: #b5c2d7 !important; font-size: 9px; letter-spacing: .08em; }
.portal-client #page-game .game-fever-bar { width: 100%; height: 7px; }

.portal-client #page-game .game-stage {
  position: relative;
  height: clamp(430px, 55vw, 560px) !important;
  max-height: none !important;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(103, 230, 247, .5) !important;
  border-radius: 26px !important;
  background: #050817 !important;
  box-shadow: inset 0 0 70px rgba(38, 123, 222, .15), 0 0 0 5px rgba(9, 15, 40, .88), 0 24px 58px rgba(0,0,0,.42) !important;
}

.portal-client #page-game .game-stage::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  display: block !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
  opacity: .12;
  transform: none !important;
  mask-image: none !important;
  background:
    linear-gradient(180deg, rgba(5,8,23,.24), rgba(5,8,23,.76)),
    url('/assets/arcade/covers/mission-zero-sm.webp') center / cover no-repeat !important;
}

.portal-client #page-game .game-stage::after {
  content: "" !important;
  position: absolute;
  z-index: 1 !important;
  inset: 0;
  display: block !important;
  pointer-events: none;
  opacity: 1 !important;
  animation: none !important;
  background:
    radial-gradient(circle at 50% 120%, transparent 34%, rgba(3,5,17,.34) 76%),
    linear-gradient(90deg, rgba(4,7,20,.45), transparent 20%, transparent 80%, rgba(4,7,20,.45)) !important;
}

.portal-client #page-game .game-planet,
.portal-client #page-game .game-cockpit-line { display: none !important; }

.portal-client #page-game .game-nebula {
  z-index: 1;
  opacity: .16;
  filter: none !important;
  animation: none !important;
}

.portal-client #page-game .game-arena-brand {
  z-index: 3;
  top: 18px;
  left: 18px;
  padding: 9px 12px;
  border-left: 3px solid #67ebf6;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(4,9,27,.84), transparent);
}

/* La posición sigue controlada por --game-x/--game-y: aquí solo cambia su aspecto. */
.portal-client #page-game .game-player {
  z-index: 12 !important;
  width: 56px !important;
  height: 60px !important;
  border: 2px solid rgba(255,255,255,.9) !important;
  border-radius: 45% 45% 36% 36% !important;
  background: linear-gradient(145deg, #ffb355 0%, #f26b47 54%, #8d2e74 100%) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.35), 0 0 0 5px rgba(85,225,245,.12), 0 0 24px rgba(85,225,245,.42) !important;
  filter: none !important;
  animation: none !important;
}

.portal-client #page-game .game-player.shielded {
  box-shadow: 0 10px 25px rgba(0,0,0,.35), 0 0 0 9px rgba(83,239,255,.34), 0 0 34px rgba(83,239,255,.95) !important;
}

.portal-client #page-game .game-player.invulnerable {
  animation: gameInvulnerable .32s ease-in-out infinite !important;
}

.portal-client #page-game .game-stage.danger-hit {
  border-color: #ff547d !important;
  box-shadow: inset 0 0 0 5px rgba(255,58,105,.92), inset 0 0 75px rgba(255,36,92,.48), 0 0 0 5px rgba(80,8,35,.85), 0 24px 58px rgba(0,0,0,.42) !important;
  animation: gameDamageFrame .28s ease-out !important;
}

@keyframes gameDamageFrame {
  0% { filter: brightness(1.2) saturate(1.28); }
  100% { filter: none; }
}

@keyframes gameInvulnerable {
  50% { opacity: .42; }
}

.vip-whatsapp-contact.game-hidden { display: none !important; }

@media (max-width: 900px) {
  body.game-session-active .topbar,
  body.game-session-active .app-nav {
    display: none !important;
  }

  body.game-session-active .container {
    margin-top: 4px !important;
  }
}

.portal-client #page-game .game-player::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 38px;
  height: 26px;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(145deg, #e9ffff 0%, #48e2f6 45%, #253fb2 100%) !important;
  box-shadow: inset 0 2px 5px rgba(255,255,255,.82), 0 0 15px rgba(77,227,246,.66) !important;
}

.portal-client #page-game .game-player::after {
  content: "";
  position: absolute;
  bottom: -14px !important;
  left: 50%;
  width: 22px !important;
  height: 20px !important;
  transform: translateX(-50%);
  clip-path: polygon(12% 0,88% 0,100% 100%,50% 72%,0 100%);
  background: linear-gradient(#fff59c, #ff9a43 42%, #f84d9f 75%, transparent) !important;
  filter: none !important;
  animation: gameThrusterPremium .34s ease-in-out infinite alternate !important;
}

@keyframes gameThrusterPremium {
  from { height: 17px; opacity: .78; }
  to { height: 22px; opacity: 1; }
}

.portal-client #page-game .game-object {
  z-index: 8 !important;
  display: grid !important;
  place-items: center !important;
  border: 2px solid rgba(255,255,255,.76) !important;
  color: #ffffff !important;
  filter: none !important;
  animation: none !important;
  text-shadow: 0 2px 4px rgba(0,0,0,.5) !important;
}

.portal-client #page-game .game-object.star,
.portal-client #page-game .game-object.gold {
  border-radius: 13px !important;
  clip-path: none !important;
  color: #4a3000 !important;
}

.portal-client #page-game .game-object.star {
  width: 36px !important;
  height: 36px !important;
  background: linear-gradient(145deg, #fffad1, #ffd64f) !important;
  box-shadow: 0 0 15px rgba(255,214,79,.4) !important;
}

.portal-client #page-game .game-object.gold {
  width: 45px !important;
  height: 45px !important;
  color: #4a2100 !important;
  background: linear-gradient(145deg, #ffffff, #ffb43f 48%, #f66a2c) !important;
  box-shadow: 0 0 25px rgba(255,139,52,.62) !important;
}

.portal-client #page-game .game-object.comet {
  width: 46px !important;
  height: 31px !important;
  border-radius: 999px !important;
  color: #10284b !important;
  background: linear-gradient(120deg, #f5ffff, #66e9f8 52%, #6777ff) !important;
  box-shadow: 0 0 18px rgba(93,224,246,.5) !important;
}

.portal-client #page-game .game-object.comet::after { display: none !important; }

.portal-client #page-game .game-object.crystal {
  width: 36px !important;
  height: 44px !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: linear-gradient(165deg, #e9ffff, #9f87ff 55%, #543ac6) !important;
  box-shadow: 0 0 19px rgba(155,132,255,.52) !important;
}

.portal-client #page-game .game-object.clock,
.portal-client #page-game .game-object.shield,
.portal-client #page-game .game-object.heart {
  width: 39px !important;
  height: 39px !important;
  border-radius: 50% !important;
  clip-path: none !important;
}

.portal-client #page-game .game-object.clock {
  color: #3e2500 !important;
  background: linear-gradient(145deg, #fff8bd, #ffaf2f) !important;
  box-shadow: 0 0 18px rgba(255,183,52,.5) !important;
}

.portal-client #page-game .game-object.shield {
  color: #063b53 !important;
  background: linear-gradient(145deg, #e9ffff, #61eafa 58%, #40a8d9) !important;
  box-shadow: 0 0 18px rgba(87,229,246,.48) !important;
}

.portal-client #page-game .game-object.heart {
  color: #ffffff !important;
  background: linear-gradient(145deg, #ff79aa, #d62f70) !important;
  box-shadow: 0 0 18px rgba(255,73,131,.48) !important;
  font-size: 23px !important;
}

.portal-client #page-game .game-object.mine {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  border: 3px solid #ffffff !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background: radial-gradient(circle, #08020f 0 33%, #661640 37% 56%, #ff4778 62%, #230617 68%) !important;
  box-shadow: 0 0 0 6px rgba(255,71,120,.14), 0 0 25px rgba(255,71,120,.76) !important;
  font: 950 34px/1 system-ui !important;
  text-shadow: 0 2px 4px rgba(0,0,0,.5) !important;
  clip-path: none !important;
  animation: none !important;
}

.portal-client #page-game .game-object.mine::before,
.portal-client #page-game .game-object.mine::after { content: none !important; }

.portal-client #page-game .game-object.mine.laser {
  border-radius: 12px !important;
  color: #ffffff !important;
  background: linear-gradient(90deg, #4a081b, #ff365e 42% 58%, #4a081b) !important;
  transform: translate3d(var(--game-x,0px),var(--game-y,0px),0) translate(-50%,-50%) !important;
}

.portal-client #page-game .game-object.mine.laser::after {
  content: "" !important;
  position: absolute;
  display: block !important;
  width: 70px !important;
  height: 4px !important;
  border-radius: 99px;
  background: #ff4778 !important;
  box-shadow: 0 0 16px rgba(255,71,120,.9) !important;
  transform: rotate(-28deg) !important;
}

.portal-client #page-game .game-stage.gold-rush {
  animation: none !important;
  box-shadow: inset 0 0 70px rgba(255,202,55,.24), 0 0 0 5px rgba(255,211,84,.17), 0 24px 58px rgba(0,0,0,.42) !important;
}

.portal-client #page-game .game-action-row {
  position: relative;
  z-index: 20;
  grid-template-columns: minmax(0,1.7fr) minmax(135px,.55fr) minmax(155px,.7fr);
  gap: 10px;
  margin-top: 16px;
}

.portal-client #page-game .game-action-row button {
  min-height: 54px;
  border: 1px solid rgba(115, 215, 241, .22) !important;
  border-radius: 14px !important;
  color: #dce8f7 !important;
  background: #131b39 !important;
  box-shadow: none !important;
  font-weight: 900;
}

.portal-client #page-game .game-action-row #gameStartBtn {
  color: #ffffff !important;
  background: linear-gradient(120deg, #7448eb, #536bea 55%, #19bdd5) !important;
  box-shadow: 0 14px 30px rgba(76,67,220,.28) !important;
  font-size: 16px;
  letter-spacing: .06em;
}

.portal-client #page-game .game-action-row #gameSoundBtn[aria-pressed="true"] {
  color: #e9fdff !important;
  background: #153249 !important;
  border-color: rgba(103,235,246,.46) !important;
}

.portal-client #page-game .game-hero > p.muted {
  position: relative;
  z-index: 20;
  margin: 17px 2px 12px;
  color: #b8c6da !important;
  line-height: 1.5;
}

.portal-client #page-game .game-legend {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.portal-client #page-game .game-legend span {
  display: flex;
  min-height: 43px;
  padding: 9px 11px;
  align-items: center;
  border: 1px solid rgba(101,222,241,.16) !important;
  border-radius: 12px;
  color: #d9e5f5 !important;
  background: #11182f !important;
  font-size: 11px;
  font-weight: 800;
}

.portal-client #page-game .game-legend .danger {
  border-color: rgba(255,83,126,.34) !important;
  color: #ffd7e2 !important;
  background: #311126 !important;
}

.portal-client #page-game .game-legend .golden {
  border-color: rgba(255,219,89,.35) !important;
  color: #fff2ae !important;
  background: #332709 !important;
}

.portal-client #page-game .game-countdown {
  z-index: 30;
  color: #ffffff;
  background: rgba(4,7,22,.82) !important;
  text-shadow: 0 0 30px rgba(103,235,246,.66);
}

.portal-client #page-game .game-commentator.persistent {
  width: min(88%, 640px);
  min-height: 190px;
  border: 1px solid rgba(111,231,245,.3);
  color: #ffffff;
  background: linear-gradient(145deg, #16163b, #071120) !important;
  box-shadow: 0 26px 70px rgba(0,0,0,.58), 0 0 36px rgba(99,80,235,.22) !important;
}

.portal-client #page-game .game-commentator.persistent span { color: #ffffff !important; }
.portal-client #page-game .game-commentator-close { color: #ffffff !important; background: rgba(255,255,255,.11) !important; }

.portal-client #page-game .game-weekly-prize-card {
  margin-top: 16px;
  border: 1px solid rgba(92, 78, 177, .15) !important;
  background: linear-gradient(145deg, #ffffff, #f4f5ff) !important;
  box-shadow: 0 16px 38px rgba(52,43,119,.09) !important;
}

@media (max-width: 760px) {
  .portal-client #page-game .game-profile-head h1 { font-size: clamp(38px, 11vw, 56px) !important; }
  .portal-client #page-game .game-crew-banner { min-height: clamp(260px, 78vw, 390px) !important; border-radius: 22px !important; }
  .portal-client #page-game .game-crew-banner > div { padding: 24px 20px !important; }
  .portal-client #page-game .game-crew-banner strong { font-size: clamp(28px, 9vw, 42px) !important; }
  .portal-client #page-game .game-mission-strip { grid-template-columns: 1fr; gap: 4px; }
  .portal-client #page-game .game-hud { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .portal-client #page-game .game-hud > span { min-height: 57px; }
  .portal-client #page-game .game-stage { height: clamp(360px, 58svh, 500px) !important; min-height: 360px !important; }
  .portal-client #page-game .game-action-row { grid-template-columns: 1fr 1fr; }
  .portal-client #page-game .game-action-row #gameStartBtn { grid-column: 1 / -1; }
  .portal-client #page-game .game-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-client #page-game .game-stage::before { background: linear-gradient(180deg,rgba(5,8,23,.36),rgba(5,8,23,.8)),url('/assets/arcade/covers/mission-zero-sm.webp') center/cover no-repeat !important; }
}

@media (max-width: 390px) {
  .portal-client #page-game .game-hud { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .portal-client #page-game .game-stage { height: clamp(330px, 55svh, 410px) !important; min-height: 330px !important; }
  .portal-client #page-game .game-legend { grid-template-columns: 1fr; }
  .portal-client #page-game .game-action-row { grid-template-columns: 1fr; }
  .portal-client #page-game .game-action-row #gameStartBtn { grid-column: auto; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .portal-client #page-game .game-crew-banner { min-height: 280px !important; }
  .portal-client #page-game .game-stage {
    height: clamp(300px, 72svh, 390px) !important;
    min-height: 300px !important;
  }
}

@media (max-width: 820px), (prefers-reduced-data: reduce) {
  .portal-client #page-game .game-crew-banner img { filter: none; }
  .portal-client #page-game .game-nebula { display: none !important; }
  .portal-client #page-game .game-object,
  .portal-client #page-game .game-object.star,
  .portal-client #page-game .game-object.comet,
  .portal-client #page-game .game-object.gold,
  .portal-client #page-game .game-object.crystal,
  .portal-client #page-game .game-object.clock,
  .portal-client #page-game .game-object.shield,
  .portal-client #page-game .game-object.heart { box-shadow: none !important; }
  .portal-client #page-game .game-object.mine { box-shadow: 0 0 0 4px rgba(255,71,120,.16), 0 0 15px rgba(255,71,120,.58) !important; }
}

.portal-client #page-game .game-stage.game-low-power::before {
  opacity: .08 !important;
  background: linear-gradient(180deg, #09102a, #050817) !important;
}

.portal-client #page-game .game-stage.game-low-power::after,
.portal-client #page-game .game-stage.game-low-power .game-nebula { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .portal-client #page-game .game-player::after { animation: none !important; }
  .portal-client #page-game .game-player.invulnerable {
    animation: none !important;
    opacity: .66;
  }
  .portal-client #page-game .game-stage.danger-hit { animation: none !important; }
}
