:root {
  --font-pixel: "Silkscreen", system-ui, sans-serif;
  --bg: #171225;
  --panel: rgba(43, 34, 67, .92);
  --panel-2: rgba(30, 27, 48, .94);
  --line: rgba(214, 180, 48, .55);
  --gold: #f2d35b;
  --mint: #5ee0b5;
  --text: #f7efff;
  --muted: #c9bedc;
  --shadow: 0 26px 80px rgba(0, 0, 0, .38);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='16' fill='none' stroke='%23c8a838' stroke-width='.55' opacity='.1'/%3E%3Cpath d='M22 4 40 22 22 40 4 22Z' fill='none' stroke='%236a5890' stroke-width='.5' opacity='.12'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  color: var(--text);
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(242, 211, 91, .13), transparent 26rem),
    radial-gradient(circle at 16% 12%, rgba(94, 224, 181, .10), transparent 25rem),
    var(--pattern),
    linear-gradient(140deg, #201938 0%, #19142a 48%, #111827 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.hub-shell,
.game-shell {
  min-height: 100vh;
}

.hub-top,
.game-top {
  position: relative;
  min-height: 178px;
  padding: 32px clamp(20px, 4vw, 56px);
  border-bottom: 3px solid var(--line);
  background:
    linear-gradient(90deg, rgba(78, 62, 116, .85), rgba(29, 38, 58, .88)),
    var(--pattern);
  overflow: hidden;
}

.star-field,
.hub-top::after,
.game-top::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .9) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(242, 211, 91, .9) 0 1px, transparent 1.6px);
  background-position: 0 0, 19px 27px;
  background-size: 91px 91px, 137px 137px;
  opacity: .16;
}

.hub-brand,
.game-top > div {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.hub-brand span,
.eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--gold);
  font: 700 .78rem/1 var(--font-pixel);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hub-brand strong,
.game-top h1,
.hub-intro h1,
.trainer-dashboard h2 {
  display: block;
  margin: 0;
  font: 700 clamp(1.6rem, 3vw, 3.2rem)/1.1 var(--font-pixel);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}

.hub-brand p,
.game-top p,
.hub-intro p,
.game-card p,
.game-notes p {
  color: var(--muted);
  line-height: 1.55;
}

.hub-logo,
.game-top img {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 4vw, 56px);
  top: 24px;
  width: clamp(104px, 9vw, 150px);
  aspect-ratio: 1;
  object-fit: contain;
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 12px;
  background: rgba(17, 13, 29, .45);
  box-shadow: var(--shadow);
}

.hub-bottom,
.game-bottom {
  padding: clamp(22px, 4vw, 54px);
}

.hub-intro {
  max-width: 920px;
  margin-bottom: 30px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.game-card,
.hub-roadmap,
.trainer-dashboard,
.game-menu,
.trainer-card-preview,
.team-preview,
.game-notes > div {
  position: relative;
  border: 2px solid rgba(117, 94, 158, .72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-card {
  min-height: 320px;
  padding: 28px;
  isolation: isolate;
}

.game-card::before,
.trainer-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pattern);
  opacity: .24;
  pointer-events: none;
}

.game-card__orb {
  position: absolute;
  right: -46px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 18px solid rgba(242, 211, 91, .18);
  border-radius: 999px;
  opacity: .8;
}

.game-card--black2 {
  --line: rgba(84, 198, 255, .66);
  --gold: #8be6ff;
  --mint: #f5f7ff;
  background:
    linear-gradient(135deg, rgba(89, 208, 255, .15), rgba(255, 255, 255, .05) 34%, rgba(5, 10, 22, .65)),
    var(--panel);
}

.game-card__head,
.game-card__meta,
.team-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.game-card__head span,
.game-card__head em,
.game-card__meta span,
.cap-pill span,
.game-notes span,
.team-preview__head span,
.status-line span {
  color: var(--mint);
  font: 700 .7rem/1 var(--font-pixel);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.game-card__head em {
  color: var(--text);
  font-style: normal;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.game-card h2 {
  margin: 54px 0 14px;
  font: 700 clamp(1.3rem, 2.2vw, 2.35rem)/1.1 var(--font-pixel);
}

.game-card__meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 26px 0;
}

.game-card__meta strong,
.game-card__meta span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(16, 13, 28, .45);
}

.game-card a,
.back-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: #fff9c8;
  background: linear-gradient(180deg, rgba(105, 75, 156, .95), rgba(55, 42, 87, .95));
  font: 700 .82rem/1 var(--font-pixel);
}

.hub-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  padding: 0;
}

.hub-roadmap div {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.hub-roadmap div:last-child {
  border-right: 0;
}

.hub-roadmap span {
  color: var(--gold);
  font: 700 1.2rem/1 var(--font-pixel);
}

.hub-roadmap strong {
  display: block;
  margin-top: 12px;
  font: 700 1rem/1.2 var(--font-pixel);
}

.game-page.theme-black2 {
  --bg: #07101d;
  --panel: rgba(12, 22, 38, .94);
  --panel-2: rgba(7, 13, 24, .96);
  --line: rgba(97, 205, 255, .58);
  --gold: #87e4ff;
  --mint: #ffffff;
  --text: #f6fbff;
  --muted: #bdd6e4;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .06), transparent 24rem),
    repeating-linear-gradient(135deg, rgba(105, 205, 255, .08) 0 2px, transparent 2px 16px),
    linear-gradient(140deg, #06101d 0%, #101827 54%, #02111c 100%);
}

.game-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.back-link {
  z-index: 2;
  flex: 0 0 auto;
}

.game-bottom {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
}

.game-menu {
  align-self: start;
  padding: 16px;
}

.game-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 0 18px;
  border: 1px solid rgba(141, 112, 190, .8);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(70, 56, 102, .92), rgba(41, 34, 62, .95));
  color: var(--muted);
  font-weight: 800;
}

.game-menu a.is-active {
  border-color: var(--line);
  color: var(--text);
  box-shadow: inset 4px 0 0 var(--gold), 0 0 20px rgba(242, 211, 91, .18);
}

.game-menu span {
  color: var(--gold);
}

.trainer-dashboard {
  padding: clamp(20px, 3vw, 36px);
}

.trainer-dashboard > * {
  position: relative;
  z-index: 1;
}

.trainer-dashboard header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.trainer-dashboard header span {
  color: var(--muted);
  font-weight: 800;
}

.cap-pill {
  min-width: 250px;
  padding: 16px;
  border: 2px solid rgba(242, 211, 91, .38);
  border-radius: 8px;
  background: rgba(15, 18, 29, .68);
}

.cap-pill strong,
.cap-pill em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 900;
}

.trainer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  margin-top: 20px;
}

.trainer-card-preview,
.team-preview,
.game-notes > div {
  padding: 22px;
}

.avatar-ring {
  width: 136px;
  height: 136px;
  margin: 0 auto 26px;
  border: 3px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 255, 255, .15), rgba(8, 8, 18, .7));
}

.avatar-ring img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}

.status-line {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.status-line strong {
  font: 700 1.8rem/1 var(--font-pixel);
}

.heart-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.heart-row i {
  height: 10px;
  border-radius: 999px;
  background: #ff5e7d;
  box-shadow: 0 0 12px rgba(255, 94, 125, .55);
}

.team-preview {
  min-height: 520px;
}

.team-preview__head {
  margin-bottom: 18px;
}

.team-preview__head strong {
  color: var(--gold);
  font: 700 1rem/1 var(--font-pixel);
}

.team-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.team-slot {
  min-height: 214px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 7px;
  background: rgba(15, 15, 32, .72);
}

.pixel-mon {
  width: 84px;
  height: 84px;
  border-radius: 28px 50px 36px 42px;
  background:
    radial-gradient(circle at 56% 38%, #fff 0 6px, transparent 7px),
    linear-gradient(135deg, var(--gold), #5ee0b5 55%, #6d5fb2);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .36));
  animation: breathe 2.6s ease-in-out infinite;
}

.team-slot strong {
  text-align: center;
  font-weight: 900;
}

.game-notes {
  display: grid;
  gap: 12px;
}

.game-notes strong {
  display: block;
  margin: 14px 0 8px;
  font: 700 1rem/1.2 var(--font-pixel);
}

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.04); }
}

@media (max-width: 1100px) {
  .game-grid,
  .hub-roadmap,
  .game-bottom,
  .trainer-grid {
    grid-template-columns: 1fr;
  }

  .hub-logo,
  .game-top img {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 18px;
  }

  .hub-top,
  .game-top {
    display: block;
  }
}

@media (max-width: 720px) {
  .hub-top,
  .game-top,
  .hub-bottom,
  .game-bottom {
    padding: 18px;
  }

  .team-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hub neutral: centro multi-juego, separado visualmente de las webs de cada juego. */
body.hub-page {
  --panel: rgba(9, 18, 31, .92);
  --panel-2: rgba(5, 11, 21, .96);
  --line: rgba(74, 226, 255, .48);
  --gold: #ffd166;
  --mint: #49e7ff;
  --text: #f4fbff;
  --muted: #a9bccb;
  --shadow: 0 30px 90px rgba(0, 0, 0, .48);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 24h32M24 8v32' stroke='%2349e7ff' stroke-width='.55' opacity='.08'/%3E%3Ccircle cx='24' cy='24' r='18' fill='none' stroke='%23ffd166' stroke-width='.5' opacity='.07'/%3E%3Cpath d='M12 12h24v24H12z' fill='none' stroke='%23ffffff' stroke-width='.45' opacity='.045'/%3E%3C/svg%3E");
  background:
    radial-gradient(circle at 78% 7%, rgba(73, 231, 255, .18), transparent 23rem),
    radial-gradient(circle at 14% 12%, rgba(255, 209, 102, .10), transparent 22rem),
    radial-gradient(circle at 52% 96%, rgba(73, 231, 255, .08), transparent 26rem),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(145deg, #030812 0%, #071323 45%, #02060d 100%);
  background-size: auto, auto, auto, 64px 64px, 64px 64px, auto;
}

.hub-page .hub-top {
  border-bottom-color: rgba(73, 231, 255, .58);
  background:
    linear-gradient(110deg, rgba(5, 17, 31, .94), rgba(8, 26, 42, .9) 52%, rgba(27, 22, 13, .82)),
    var(--pattern);
}

.hub-page .hub-top::before {
  content: "";
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(73, 231, 255, .9), rgba(255, 209, 102, .7), transparent);
  filter: drop-shadow(0 0 10px rgba(73, 231, 255, .65));
}

.hub-page .star-field,
.hub-page .hub-top::after {
  background-image:
    radial-gradient(circle, rgba(73, 231, 255, .95) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 209, 102, .9) 0 1px, transparent 1.6px),
    linear-gradient(90deg, transparent 0 48%, rgba(73, 231, 255, .18) 49% 51%, transparent 52%);
  background-size: 104px 104px, 151px 151px, 38px 38px;
  opacity: .2;
}

.hub-page .hub-logo {
  border-color: rgba(73, 231, 255, .54);
  background:
    radial-gradient(circle, rgba(73, 231, 255, .12), transparent 56%),
    rgba(2, 8, 15, .72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 0 36px rgba(73, 231, 255, .18),
    var(--shadow);
}

.hub-page .game-card,
.hub-page .hub-roadmap {
  border-color: rgba(73, 231, 255, .24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 36%),
    radial-gradient(circle at 90% 0%, rgba(73, 231, 255, .12), transparent 36%),
    var(--panel);
}

.hub-page .game-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hub-page .game-card:hover {
  border-color: rgba(73, 231, 255, .7);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(73, 231, 255, .18),
    0 28px 90px rgba(0, 0, 0, .52);
}

.hub-page .game-card__orb {
  border-color: rgba(73, 231, 255, .16);
  box-shadow: inset 0 0 35px rgba(73, 231, 255, .09);
}

.hub-page .game-card--platinum {
  --line: rgba(200, 168, 56, .62);
  --gold: #ffe071;
  --mint: #b39cff;
  background:
    linear-gradient(135deg, rgba(95, 76, 139, .22), rgba(255, 255, 255, .035) 38%, rgba(7, 10, 22, .72)),
    var(--panel);
}

.hub-page .game-card--black2 {
  --line: rgba(84, 198, 255, .72);
  --gold: #8be6ff;
  --mint: #ffffff;
  background:
    linear-gradient(135deg, rgba(84, 198, 255, .18), rgba(255, 255, 255, .04) 36%, rgba(1, 8, 17, .76)),
    var(--panel);
}

.hub-page .game-card a {
  border-color: rgba(73, 231, 255, .64);
  color: #eaffff;
  background:
    linear-gradient(90deg, rgba(73, 231, 255, .16), transparent 42%),
    linear-gradient(180deg, rgba(18, 56, 79, .96), rgba(7, 20, 35, .96));
  box-shadow: 0 0 22px rgba(73, 231, 255, .12);
}

.hub-page .game-card--platinum a {
  border-color: rgba(255, 209, 102, .62);
  color: #fff4c0;
  background:
    linear-gradient(90deg, rgba(255, 209, 102, .14), transparent 42%),
    linear-gradient(180deg, rgba(68, 54, 91, .96), rgba(25, 20, 44, .96));
}

.hub-page .hub-roadmap {
  background:
    linear-gradient(90deg, rgba(73, 231, 255, .08), transparent 22%, rgba(255, 209, 102, .06)),
    rgba(4, 12, 23, .88);
}

/* Ajuste hub: paleta Pokemon oscura, con rojo Poke Ball, azul electrico y amarillo. */
body.hub-page {
  --panel: rgba(15, 18, 31, .93);
  --panel-2: rgba(7, 9, 18, .97);
  --line: rgba(255, 203, 5, .48);
  --gold: #ffcb05;
  --mint: #3d7dca;
  --text: #fff8e7;
  --muted: #c9c0b3;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Ccircle cx='27' cy='27' r='19' fill='none' stroke='%23ffcb05' stroke-width='.55' opacity='.09'/%3E%3Cpath d='M8 27h38' stroke='%23ee1c25' stroke-width='.6' opacity='.08'/%3E%3Ccircle cx='27' cy='27' r='5' fill='none' stroke='%23ffffff' stroke-width='.55' opacity='.11'/%3E%3Cpath d='M13 13h28v28H13z' fill='none' stroke='%233d7dca' stroke-width='.45' opacity='.065'/%3E%3C/svg%3E");
  background:
    radial-gradient(circle at 12% 10%, rgba(238, 28, 37, .16), transparent 24rem),
    radial-gradient(circle at 82% 8%, rgba(61, 125, 202, .20), transparent 25rem),
    radial-gradient(circle at 55% 96%, rgba(255, 203, 5, .10), transparent 28rem),
    var(--pattern),
    linear-gradient(145deg, #06070d 0%, #101322 46%, #070911 100%);
  background-size: auto, auto, auto, 54px 54px, auto;
}

.hub-page .hub-top {
  border-bottom-color: rgba(255, 203, 5, .62);
  background:
    linear-gradient(110deg, rgba(11, 13, 24, .96), rgba(18, 24, 42, .94) 48%, rgba(42, 14, 19, .82)),
    var(--pattern);
}

.hub-page .hub-top::before {
  background: linear-gradient(90deg, transparent, rgba(238, 28, 37, .9), rgba(255, 203, 5, .86), rgba(61, 125, 202, .9), transparent);
  filter: drop-shadow(0 0 10px rgba(255, 203, 5, .58));
}

.hub-page .star-field,
.hub-page .hub-top::after {
  background-image:
    radial-gradient(circle, rgba(255, 203, 5, .95) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(61, 125, 202, .95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(238, 28, 37, .85) 0 1px, transparent 1.7px);
  background-size: 97px 97px, 139px 139px, 173px 173px;
  opacity: .2;
}

.hub-page .hub-logo {
  border-color: rgba(255, 203, 5, .64);
  background:
    radial-gradient(circle, rgba(255, 203, 5, .13), transparent 56%),
    rgba(8, 9, 16, .78);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09),
    0 0 34px rgba(255, 203, 5, .15),
    var(--shadow);
}

.hub-page .hub-brand span,
.hub-page .eyebrow {
  color: #ffcb05;
}

.hub-page .game-card,
.hub-page .hub-roadmap {
  border-color: rgba(255, 203, 5, .24);
  background:
    radial-gradient(circle at 8% 0%, rgba(238, 28, 37, .12), transparent 34%),
    radial-gradient(circle at 93% 0%, rgba(61, 125, 202, .14), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 36%),
    var(--panel);
}

.hub-page .game-card:hover {
  border-color: rgba(255, 203, 5, .72);
  box-shadow:
    0 0 0 1px rgba(255, 203, 5, .16),
    0 0 42px rgba(61, 125, 202, .12),
    0 28px 90px rgba(0, 0, 0, .52);
}

.hub-page .game-card__orb {
  border-color: rgba(255, 203, 5, .15);
  box-shadow: inset 0 0 35px rgba(238, 28, 37, .08);
}

.hub-page .game-card--platinum {
  --line: rgba(255, 203, 5, .62);
  --gold: #ffcb05;
  --mint: #d2b2ff;
  background:
    radial-gradient(circle at 0% 0%, rgba(238, 28, 37, .10), transparent 30%),
    linear-gradient(135deg, rgba(92, 69, 139, .24), rgba(255, 255, 255, .035) 38%, rgba(7, 10, 22, .76)),
    var(--panel);
}

.hub-page .game-card--black2 {
  --line: rgba(61, 125, 202, .72);
  --gold: #7eb6ff;
  --mint: #ffcb05;
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 125, 202, .20), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(8, 15, 29, .9)),
    var(--panel);
}

.hub-page .game-card a {
  border-color: rgba(255, 203, 5, .64);
  color: #fff8d6;
  background:
    linear-gradient(90deg, rgba(238, 28, 37, .18), transparent 42%),
    linear-gradient(180deg, rgba(49, 43, 23, .98), rgba(18, 18, 28, .98));
  box-shadow: 0 0 22px rgba(255, 203, 5, .10);
}

.hub-page .game-card--black2 a {
  border-color: rgba(61, 125, 202, .70);
  color: #eaf4ff;
  background:
    linear-gradient(90deg, rgba(61, 125, 202, .20), transparent 42%),
    linear-gradient(180deg, rgba(18, 37, 66, .98), rgba(8, 14, 28, .98));
}

.hub-page .hub-roadmap {
  background:
    linear-gradient(90deg, rgba(238, 28, 37, .07), transparent 26%, rgba(61, 125, 202, .08), rgba(255, 203, 5, .055)),
    rgba(8, 10, 18, .9);
}

/* Logos oficiales por juego */
.game-card__logo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 118px;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .14), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.game-card__logo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(238, 28, 37, .22) 0 48%, rgba(255, 255, 255, .42) 48% 52%, rgba(61, 125, 202, .22) 52% 100%);
  opacity: .36;
  filter: blur(14px);
}

.game-card__logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 300px);
  max-height: 96px;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .42));
}

.game-card h2 {
  margin-top: 22px;
}

.hub-page .game-card--platinum .game-card__logo {
  border-color: rgba(255, 203, 5, .20);
}

.hub-page .game-card--black2 .game-card__logo {
  border-color: rgba(61, 125, 202, .28);
}

.game-top .game-official-logo {
  width: clamp(156px, 14vw, 260px);
  max-height: 116px;
  aspect-ratio: auto;
  border-radius: 8px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .18), transparent 50%),
    rgba(5, 8, 15, .74);
}

@media (max-width: 720px) {
  .game-card__logo {
    min-height: 98px;
    margin-top: 12px;
  }

  .game-card__logo img {
    max-height: 78px;
  }
}

/* Pulido visual del hub: logos transparentes y entrada con mas presencia. */
.hub-page .hub-bottom {
  display: grid;
  gap: 28px;
}

.hub-intro--feature {
  position: relative;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  min-height: 220px;
  margin-bottom: 4px;
  padding: clamp(24px, 4vw, 44px);
  border: 2px solid rgba(255, 203, 5, .24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(238, 28, 37, .16), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(61, 125, 202, .18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)),
    rgba(8, 10, 18, .88);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}

.hub-intro--feature::before {
  content: "";
  position: absolute;
  inset: auto -12% -44% 28%;
  height: 260px;
  background: radial-gradient(ellipse, rgba(255, 203, 5, .12), transparent 62%);
  pointer-events: none;
}

.hub-intro--feature h1 {
  max-width: 920px;
  color: #fff8e7;
}

.hub-intro--feature p:last-child {
  max-width: 760px;
  font-size: 1.04rem;
}

.hub-pokeball {
  position: relative;
  width: min(44vw, 190px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 999px;
  background:
    linear-gradient(#ee1c25 0 47%, #141824 47% 53%, #f8fafc 53% 100%);
  border: 8px solid #10131d;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .12),
    0 0 44px rgba(255, 203, 5, .13),
    0 26px 60px rgba(0, 0, 0, .45);
  transform: rotate(-8deg);
}

.hub-pokeball::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 9px);
  height: 18px;
  background: #10131d;
}

.hub-pokeball span {
  position: absolute;
  inset: 50%;
  width: 74px;
  height: 74px;
  translate: -50% -50%;
  border-radius: 999px;
  border: 8px solid #10131d;
  background: radial-gradient(circle, #ffffff 0 38%, #d9e0e8 39% 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .15), inset 0 0 18px rgba(61, 125, 202, .18);
}

.hub-page .game-grid {
  gap: clamp(18px, 2.4vw, 34px);
}

.hub-page .game-card {
  min-height: 430px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 14px;
}

.hub-page .game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, .09) 48%, transparent 58%),
    radial-gradient(circle at 50% 100%, rgba(255, 203, 5, .08), transparent 42%);
  opacity: .72;
  pointer-events: none;
}

.game-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 203, 5, .46);
  border-radius: 999px;
  color: #fff8d6;
  background: rgba(7, 8, 15, .62);
  font: 700 1rem/1 var(--font-pixel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 10px 24px rgba(0, 0, 0, .36);
}

.game-card__signal {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
  color: rgba(255, 255, 255, .55);
  font: 700 .62rem/1 var(--font-pixel);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.game-card__logo {
  min-height: 172px;
  margin: 44px 0 26px;
  border: 0;
  background: none;
  box-shadow: none;
}

.game-card__logo::before {
  inset: 20% 4%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse, rgba(255, 203, 5, .20), transparent 58%),
    radial-gradient(ellipse at 20% 50%, rgba(238, 28, 37, .12), transparent 52%),
    radial-gradient(ellipse at 80% 50%, rgba(61, 125, 202, .16), transparent 52%);
  opacity: .9;
  filter: blur(18px);
}

.game-card__logo img {
  width: min(100%, 380px);
  max-height: 150px;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, .25))
    drop-shadow(0 14px 18px rgba(0, 0, 0, .55));
}

.hub-page .game-card h2 {
  display: none;
}

.hub-page .game-card__head,
.hub-page .game-card p,
.hub-page .game-card__meta,
.hub-page .game-card a {
  position: relative;
  z-index: 2;
}

.hub-page .game-card__head {
  margin-top: 4px;
}

.hub-page .game-card p {
  min-height: 50px;
  margin-top: 16px;
}

.hub-page .game-card__meta strong,
.hub-page .game-card__meta span {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .24);
}

.hub-page .game-card a {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}

.game-top .game-official-logo {
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55));
}

@media (max-width: 900px) {
  .hub-intro--feature {
    grid-template-columns: 1fr;
  }

  .hub-pokeball {
    width: 170px;
  }
}

/* Fondo continuo del hub al hacer scroll */
html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: #06070d;
}

body.hub-page {
  min-height: 100vh;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat;
}

body.hub-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(238, 28, 37, .16), transparent 24rem),
    radial-gradient(circle at 82% 8%, rgba(61, 125, 202, .20), transparent 25rem),
    radial-gradient(circle at 55% 96%, rgba(255, 203, 5, .10), transparent 28rem),
    linear-gradient(145deg, #06070d 0%, #101322 46%, #070911 100%);
}

body.hub-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--pattern);
  background-size: 54px 54px;
  opacity: 1;
}



/* Descarga principal del launcher global */
.launcher-download {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 0 0 24px;
  padding: 22px;
  border: 2px solid rgba(255, 203, 5, .38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(238, 28, 37, .16), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(61, 125, 202, .18), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018)),
    rgba(8, 10, 18, .9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .10);
  overflow: hidden;
}

.launcher-download::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(238, 28, 37, .7), rgba(255, 203, 5, .8), rgba(61, 125, 202, .7));
}

.launcher-download__icon {
  position: relative;
  width: 76px;
  aspect-ratio: 1;
  border: 5px solid #10131d;
  border-radius: 999px;
  background: linear-gradient(#ee1c25 0 47%, #10131d 47% 53%, #f8fafc 53% 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34), 0 0 26px rgba(255, 203, 5, .12);
}

.launcher-download__icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 5px);
  height: 10px;
  background: #10131d;
}

.launcher-download__icon span {
  position: absolute;
  inset: 50%;
  width: 28px;
  height: 28px;
  translate: -50% -50%;
  border: 5px solid #10131d;
  border-radius: 999px;
  background: #f8fafc;
}

.launcher-download__body,
.launcher-download__actions,
.launcher-download__icon {
  z-index: 1;
}

.launcher-download h2 {
  margin: 0 0 8px;
  color: var(--text);
  font: 700 clamp(1.35rem, 2.4vw, 2.25rem)/1.05 var(--font-pixel);
}

.launcher-download p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.launcher-download__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.launcher-download__meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(0, 0, 0, .22);
  font: 700 .68rem/1 var(--font-pixel);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.launcher-download__actions {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.launcher-download__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 203, 5, .46);
  border-radius: 9px;
  color: #fff8d6;
  background: rgba(255, 203, 5, .10);
  font: 700 .78rem/1 var(--font-pixel);
}

.launcher-download__actions .launcher-download__primary {
  border-color: rgba(91, 220, 139, .62);
  color: #eaffef;
  background:
    linear-gradient(90deg, rgba(91, 220, 139, .20), transparent 42%),
    rgba(14, 38, 27, .86);
}

.launcher-download__primary[aria-disabled="true"] {
  cursor: not-allowed;
}

/* Estado operativo del hub, reemplaza el aspecto de plantilla. */
.hub-league-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hub-league-strip article {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(255, 203, 5, .22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 16% 0%, rgba(238, 28, 37, .10), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .018)),
    rgba(8, 10, 18, .84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 46px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.hub-league-strip article::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(238, 28, 37, .65), rgba(255, 203, 5, .75), rgba(61, 125, 202, .65));
  opacity: .7;
}

.hub-league-strip small {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font: 700 .64rem/1 var(--font-pixel);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hub-league-strip strong {
  display: block;
  color: var(--text);
  font: 700 .95rem/1.2 var(--font-pixel);
}

.hub-league-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

.hub-strip-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(#ee1c25 0 46%, #151820 46% 54%, #f8fafc 54% 100%);
  box-shadow: inset 0 0 0 4px #10131d, 0 12px 22px rgba(0, 0, 0, .32);
}

.hub-strip-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 4px solid #10131d;
  border-radius: 999px;
  background: #f8fafc;
}

.hub-strip-icon--lab {
  background: linear-gradient(135deg, #1c2d4c, #3d7dca 52%, #10131d);
}

.hub-strip-icon--vault {
  background: linear-gradient(135deg, #32244c, #ffcb05 52%, #10131d);
}

@media (max-width: 980px) {
  .hub-league-strip {
    grid-template-columns: 1fr;
  }
}



/* Tema Hoenn / Omega Ruby */
.hub-page .game-card--omegaruby {
  --line: rgba(255, 111, 77, .74);
  --gold: #ffb45c;
  --mint: #7fe6d8;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 92, 64, .20), transparent 34%),
    radial-gradient(circle at 100% 16%, rgba(54, 188, 176, .14), transparent 38%),
    linear-gradient(135deg, rgba(80, 19, 21, .34), rgba(255, 255, 255, .04) 38%, rgba(16, 9, 16, .78)),
    var(--panel);
}

.hub-page .game-card--omegaruby a {
  border-color: rgba(255, 111, 77, .72);
  color: #fff1e8;
  background:
    linear-gradient(90deg, rgba(255, 92, 64, .22), transparent 44%),
    linear-gradient(180deg, rgba(71, 28, 22, .98), rgba(20, 13, 22, .98));
}

.game-page.theme-omegaruby {
  --bg: #1b090d;
  --panel: rgba(42, 15, 24, .94);
  --panel-2: rgba(20, 9, 15, .96);
  --line: rgba(255, 111, 77, .62);
  --gold: #ffb45c;
  --mint: #7fe6d8;
  --text: #fff4ec;
  --muted: #e4b9aa;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 78, 52, .18), transparent 25rem),
    radial-gradient(circle at 86% 12%, rgba(127, 230, 216, .14), transparent 24rem),
    repeating-linear-gradient(135deg, rgba(255, 180, 92, .07) 0 2px, transparent 2px 18px),
    linear-gradient(140deg, #1b090d 0%, #2a1017 48%, #0f111f 100%);
}

.game-page.theme-omegaruby .game-top {
  background:
    linear-gradient(110deg, rgba(52, 18, 26, .94), rgba(30, 21, 34, .92) 52%, rgba(17, 48, 49, .78)),
    var(--pattern);
}

.launcher-game--omegaruby .launcher-game__logo {
  background:
    radial-gradient(circle, rgba(255, 111, 77, .16), transparent 58%),
    rgba(0, 0, 0, .24);
}

/* Login previo al hub multi-juego */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 72px);
}

.login-card {
  position: relative;
  width: min(100%, 760px);
  padding: clamp(28px, 5vw, 54px);
  border: 2px solid rgba(255, 203, 5, .30);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(238, 28, 37, .16), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(61, 125, 202, .20), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    rgba(8, 10, 18, .90);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .10);
  overflow: hidden;
}

.login-card__flare {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -160px;
  border: 32px solid rgba(255, 203, 5, .10);
  border-radius: 999px;
  box-shadow: inset 0 0 45px rgba(61, 125, 202, .12);
}

.login-brand,
.login-actions,
.login-status {
  position: relative;
  z-index: 1;
}

.login-brand {
  text-align: center;
}

.login-brand img {
  display: block;
  width: min(210px, 54vw);
  margin: 0 auto 22px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .48));
}

.login-brand span {
  display: block;
  color: var(--gold);
  font: 700 .75rem/1 var(--font-pixel);
  letter-spacing: .18em;
}

.login-brand h1 {
  margin: 14px 0 12px;
  color: var(--text);
  font: 700 clamp(1.8rem, 5vw, 3.4rem)/1.05 var(--font-pixel);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}

.login-brand p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.55;
}

.login-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 34px;
}

.login-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(100%, 360px);
  min-height: 58px;
  padding: 0 22px;
  border: 2px solid rgba(255, 203, 5, .70);
  border-radius: 10px;
  color: #fff8d6;
  background:
    linear-gradient(90deg, rgba(238, 28, 37, .18), transparent 42%),
    linear-gradient(180deg, rgba(49, 43, 23, .98), rgba(18, 18, 28, .98));
  box-shadow: 0 0 26px rgba(255, 203, 5, .13), 0 10px 24px rgba(0, 0, 0, .32);
  font: 700 .9rem/1 var(--font-pixel);
  cursor: pointer;
}

.login-discord span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(#ee1c25 0 46%, #10131d 46% 54%, #f8fafc 54% 100%);
  box-shadow: inset 0 0 0 3px #10131d;
}

.login-actions small {
  color: rgba(255, 248, 231, .62);
  text-align: center;
}

.login-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.login-status div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(0, 0, 0, .20);
}

.login-status strong,
.login-status small {
  display: block;
}

.login-status strong {
  color: var(--text);
  font: 700 .8rem/1.2 var(--font-pixel);
}

.login-status small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.hub-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 203, 5, .28);
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
}

.hub-user-pill img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.hub-user-pill span {
  margin: 0;
  color: var(--text);
  font: 700 .8rem/1 var(--font-pixel);
  letter-spacing: 0;
}

.hub-user-pill a {
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffdfdf;
  background: rgba(238, 28, 37, .18);
  font-size: .78rem;
}

@media (max-width: 640px) {
  .login-status {
    grid-template-columns: 1fr;
  }
}

/* Cuenta global del hub */
.account-shell {
  min-height: 100vh;
  padding: clamp(20px, 4vw, 56px);
}

.account-top {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px;
  border: 2px solid rgba(255, 203, 5, .22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 0%, rgba(61, 125, 202, .16), transparent 34%),
    rgba(8, 10, 18, .84);
  box-shadow: var(--shadow);
}

.account-top h1 {
  margin: 0;
  font: 700 clamp(1.8rem, 4vw, 3rem)/1.05 var(--font-pixel);
}

.account-top p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.account-toast {
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 203, 5, .46);
  border-radius: 10px;
  color: #fff8d6;
  background: rgba(255, 203, 5, .10);
  font-weight: 800;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
}

.account-identity,
.account-form section {
  border: 1px solid rgba(255, 203, 5, .20);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02)),
    rgba(8, 10, 18, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 46px rgba(0, 0, 0, .26);
}

.account-identity {
  align-self: start;
  padding: 26px;
  text-align: center;
}

.account-avatar-ring {
  position: relative;
  width: 156px;
  height: 156px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 3px solid rgba(255, 203, 5, .58);
  background:
    radial-gradient(circle, rgba(61, 125, 202, .20), transparent 62%),
    rgba(0, 0, 0, .30);
  box-shadow: 0 0 30px rgba(255, 203, 5, .10), 0 18px 36px rgba(0, 0, 0, .32);
}

.account-avatar-ring img {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  object-fit: cover;
}

.account-identity > span,
.account-form h2 {
  display: block;
  color: var(--gold);
  font: 700 .72rem/1 var(--font-pixel);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.account-identity h2 {
  margin: 12px 0 6px;
  font: 700 1.45rem/1.1 var(--font-pixel);
}

.account-identity p {
  margin: 0 0 22px;
  color: var(--muted);
}

.account-identity dl {
  display: grid;
  gap: 10px;
  margin: 0;
  text-align: left;
}

.account-identity dl div,
.account-games div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .22);
}

.account-identity dt,
.account-identity dd {
  margin: 0;
}

.account-identity dt {
  color: var(--muted);
}

.account-identity dd {
  color: var(--text);
  font-weight: 900;
}

.account-form {
  display: grid;
  gap: 18px;
}

.account-form section {
  padding: 22px;
}

.account-form h2 {
  margin: 0 0 16px;
}

.account-form label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.account-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 203, 5, .24);
  border-radius: 9px;
  color: var(--text);
  background: rgba(0, 0, 0, .30);
  font: inherit;
}

.account-form input:focus {
  outline: 2px solid rgba(61, 125, 202, .55);
  border-color: rgba(61, 125, 202, .75);
}

.account-help {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-games {
  display: grid;
  gap: 10px;
}

.account-games div span {
  color: var(--gold);
  font-weight: 900;
}

.account-form footer {
  display: flex;
  justify-content: flex-end;
}

.account-form button {
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid rgba(255, 203, 5, .68);
  border-radius: 10px;
  color: #fff8d6;
  background:
    linear-gradient(90deg, rgba(238, 28, 37, .18), transparent 42%),
    linear-gradient(180deg, rgba(49, 43, 23, .98), rgba(18, 18, 28, .98));
  font: 700 .86rem/1 var(--font-pixel);
  cursor: pointer;
}

@media (max-width: 920px) {
  .account-top,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-top {
    display: grid;
  }
}

/* Verificacion de servidor Discord en cuenta global */
.discord-guild-card {
  display: grid;
  gap: 16px;
}

.discord-guild-status {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(0, 0, 0, .24);
}

.discord-guild-status > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #5865f2, #3d7dca);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .28);
}

.discord-guild-status > span::before {
  content: "";
  width: 22px;
  height: 16px;
  border-radius: 999px 999px 8px 8px;
  background: #fff;
  box-shadow: -9px 7px 0 -5px #fff, 9px 7px 0 -5px #fff;
}

.discord-guild-status.is-ok {
  border-color: rgba(91, 220, 139, .38);
}

.discord-guild-status.is-ok > span {
  background: linear-gradient(135deg, #39d98a, #3d7dca);
}

.discord-guild-status strong,
.discord-guild-status p {
  display: block;
  margin: 0;
}

.discord-guild-status strong {
  color: var(--text);
  font-weight: 900;
}

.discord-guild-status p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.discord-guild-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discord-guild-actions a,
.discord-guild-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 203, 5, .48);
  border-radius: 9px;
  color: #fff8d6;
  background: rgba(255, 203, 5, .10);
  font: 700 .78rem/1 var(--font-pixel);
  cursor: pointer;
}

.discord-guild-actions button {
  color: #eaf4ff;
  border-color: rgba(61, 125, 202, .48);
  background: rgba(61, 125, 202, .12);
}

/* Demo LockeTracker launcher multi-juego */
.launcher-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
}

.launcher-window {
  width: min(100%, 1220px);
  border: 2px solid rgba(255, 203, 5, .30);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(238, 28, 37, .13), transparent 32%),
    radial-gradient(circle at 88% 2%, rgba(61, 125, 202, .18), transparent 36%),
    rgba(8, 10, 18, .92);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .10);
  overflow: hidden;
}

.launcher-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 203, 5, .20);
  background: rgba(0, 0, 0, .22);
}

.launcher-titlebar div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.launcher-titlebar strong,
.launcher-titlebar > span {
  color: var(--text);
  font: 700 .86rem/1 var(--font-pixel);
}

.launcher-titlebar small {
  color: var(--muted);
  font-weight: 800;
}

.launcher-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(#ee1c25 0 46%, #10131d 46% 54%, #f8fafc 54% 100%);
  box-shadow: inset 0 0 0 3px #10131d;
}

.launcher-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.launcher-hero h1 {
  margin: 0;
  font: 700 clamp(2rem, 4vw, 4rem)/1 var(--font-pixel);
}

.launcher-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.launcher-user {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(88, 101, 242, .38);
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
}

.launcher-user img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.launcher-user strong,
.launcher-user span {
  display: block;
}

.launcher-user strong {
  color: var(--text);
  font-weight: 900;
}

.launcher-user span {
  color: var(--muted);
  font-size: .82rem;
}

.launcher-orb {
  position: relative;
  width: 190px;
  aspect-ratio: 1;
  justify-self: center;
  border: 8px solid #10131d;
  border-radius: 999px;
  background: linear-gradient(#ee1c25 0 47%, #10131d 47% 53%, #f8fafc 53% 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .42), 0 0 36px rgba(255, 203, 5, .12);
  transform: rotate(8deg);
}

.launcher-orb::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 8px);
  height: 16px;
  background: #10131d;
}

.launcher-orb span {
  position: absolute;
  inset: 50%;
  width: 62px;
  height: 62px;
  translate: -50% -50%;
  border: 8px solid #10131d;
  border-radius: 999px;
  background: #f8fafc;
}

.launcher-grid {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.launcher-game {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 203, 5, .20);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 38%),
    rgba(0, 0, 0, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.launcher-game--update {
  border-color: rgba(255, 203, 5, .48);
}

.launcher-game--ready {
  border-color: rgba(91, 220, 139, .38);
}

.launcher-game--locked {
  opacity: .72;
}

.launcher-game__logo {
  display: grid;
  place-items: center;
  min-height: 130px;
  border-radius: 12px;
  background:
    radial-gradient(circle, rgba(255, 203, 5, .12), transparent 56%),
    rgba(0, 0, 0, .24);
}

.launcher-game__logo img {
  max-width: 180px;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .48));
}

.launcher-game__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.launcher-game h2 {
  margin: 0;
  font: 700 1.15rem/1.2 var(--font-pixel);
}

.launcher-game__head span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff8d6;
  background: rgba(255, 203, 5, .14);
  font: 700 .68rem/1 var(--font-pixel);
}

.launcher-version {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px;
}

.launcher-version div {
  min-width: 118px;
  padding: 10px;
  border-radius: 9px;
  background: rgba(0, 0, 0, .22);
}

.launcher-version dt,
.launcher-version dd {
  margin: 0;
}

.launcher-version dt {
  color: var(--muted);
  font-size: .78rem;
}

.launcher-version dd {
  color: var(--text);
  font-weight: 900;
}

.launcher-game p {
  margin: 0 0 14px;
  color: var(--muted);
}

.launcher-progress {
  height: 12px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .36);
  overflow: hidden;
}

.launcher-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ee1c25, #ffcb05, #3d7dca);
  box-shadow: 0 0 16px rgba(255, 203, 5, .28);
}

.launcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.launcher-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 203, 5, .48);
  border-radius: 9px;
  color: #fff8d6;
  background: rgba(255, 203, 5, .10);
  font: 700 .74rem/1 var(--font-pixel);
  cursor: pointer;
}

.launcher-actions button.is-primary {
  border-color: rgba(91, 220, 139, .60);
  background: rgba(91, 220, 139, .16);
  color: #eaffef;
}

.launcher-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.launcher-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: var(--muted);
  background: rgba(0, 0, 0, .18);
  font-weight: 800;
}

@media (max-width: 840px) {
  .launcher-hero,
  .launcher-game {
    grid-template-columns: 1fr;
  }

  .launcher-orb {
    display: none;
  }
}


@media (max-width: 860px) {
  .launcher-download {
    grid-template-columns: 1fr;
  }

  .launcher-download__actions {
    min-width: 0;
  }
}

/* Dashboard multi-juego conectado a datos locales */
.game-shell--dashboard {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .06), transparent 25rem),
    var(--pattern);
}

.game-bottom--dashboard {
  align-items: start;
}

.trainer-dashboard--live {
  min-height: calc(100vh - 260px);
}

.trainer-grid--live {
  grid-template-columns: minmax(230px, 330px) minmax(0, 1.7fr) minmax(230px, 320px);
}

.trainer-card-preview--compact {
  min-height: 0;
}

.avatar-ring--discord img {
  width: 112px;
  height: 112px;
  max-width: none;
  max-height: none;
  border-radius: 999px;
  object-fit: cover;
}

.badge-dots {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin: 18px 0 20px;
}

.badge-dots i {
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .04);
}

.badge-dots i.is-on {
  border-color: var(--line);
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, .82), transparent 18%),
    linear-gradient(135deg, var(--gold), var(--mint));
  box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 42%, transparent);
}

.trainer-mini-stats {
  display: grid;
  gap: 10px;
}

.trainer-mini-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.trainer-mini-stats span {
  color: var(--muted);
  font-weight: 800;
}

.trainer-mini-stats strong {
  color: var(--text);
  font: 700 1rem/1 var(--font-pixel);
}

.team-preview--live {
  min-height: 0;
}

.team-slots--rich {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-slot--rich {
  min-height: 250px;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.team-slot--rich::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  pointer-events: none;
}

.team-slot--rich.is-empty {
  opacity: .48;
}

.team-slot--rich div,
.team-slot--rich p,
.team-slot--rich ul,
.team-slot--rich .pixel-mon {
  position: relative;
  z-index: 1;
}

.team-slot--rich div {
  text-align: center;
}

.team-slot--rich em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: .82rem;
  font-weight: 800;
}

.team-slot--rich p {
  margin: 0;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  text-align: center;
}

.team-slot--rich ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.team-slot--rich li {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 6px;
  color: var(--text);
  background: rgba(0, 0, 0, .28);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-notes--stats > div {
  min-height: 150px;
}

.game-live-panels {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.game-live-panels article {
  position: relative;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 42%),
    rgba(10, 10, 24, .62);
  overflow: hidden;
}

.game-live-panels article::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  opacity: .82;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-heading span {
  color: var(--mint);
  font: 700 .72rem/1 var(--font-pixel);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.panel-heading strong {
  color: var(--gold);
  font: 700 1rem/1 var(--font-pixel);
}

.event-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list li {
  display: grid;
  gap: 5px;
  padding: 11px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.event-list small {
  color: var(--gold);
  font: 700 .65rem/1 var(--font-pixel);
  text-transform: uppercase;
}

.event-list strong {
  color: var(--text);
  font-weight: 900;
}

.event-list span,
.empty-note {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.mini-pokemon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-pokemon-grid span {
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, .26);
  font-weight: 900;
  font-size: .84rem;
}

.mini-pokemon-grid--danger span {
  border-color: rgba(255, 100, 120, .32);
  color: #ffd7df;
  background: rgba(120, 26, 44, .24);
}

@media (max-width: 1320px) {
  .trainer-grid--live,
  .game-live-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .team-slots--rich {
    grid-template-columns: 1fr;
  }

  .team-slot--rich ul {
    grid-template-columns: 1fr;
  }
}

/* Secciones funcionales dentro de cada juego */
.section-panel {
  margin-top: 20px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 42%),
    rgba(10, 10, 24, .66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.dex-grid,
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.dex-grid article,
.player-grid article,
.cap-board article {
  position: relative;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--line) 18%, transparent), transparent 42%),
    rgba(0, 0, 0, .25);
  overflow: hidden;
}

.dex-grid article::after,
.player-grid article::after,
.cap-board article::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.dex-grid span,
.cap-board span,
.player-grid span {
  color: var(--gold);
  font: 700 .7rem/1 var(--font-pixel);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dex-grid strong,
.player-grid strong,
.cap-board strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font: 700 1rem/1.2 var(--font-pixel);
}

.dex-grid em,
.player-grid em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.dex-grid p,
.cap-board p,
.rules-panel li {
  color: var(--muted);
  line-height: 1.45;
}

.avatar-ring--small {
  width: 72px;
  height: 72px;
  margin: 0 0 12px;
}

.avatar-ring--small img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.rules-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.rules-panel li::marker {
  color: var(--gold);
}

/* Hub real autenticado */
.hub-top--real { min-height: min(30vh, 230px); }
.hub-intro--real { align-items: center; }
.hub-intro--real > div:first-child > p:last-child { margin: 10px 0 0; color: var(--muted); }
.game-grid--real { align-items: stretch; }
.game-grid--real .game-card { min-height: 100%; }
.hub-empty-state { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 16px; padding: 24px; border: 1px solid rgba(255, 203, 5, .24); border-radius: 8px; background: rgba(8, 10, 18, .72); }
.hub-empty-state h2 { margin: 0; color: var(--text); font: 700 1rem/1.3 var(--font-pixel); }
.hub-empty-state p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.login-error { position: relative; z-index: 1; margin: 24px 0 0; padding: 13px 15px; border-left: 4px solid #ee5b64; color: #ffe5e4; background: rgba(110, 25, 35, .34); line-height: 1.45; }
.login-actions form { width: min(100%, 360px); }
.login-actions form .login-discord { width: 100%; }
.account-form--readonly { align-content: start; }
.account-avatar-fallback { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; color: #10131d; background: var(--gold); font: 700 2.5rem/1 var(--font-pixel); }
.discord-guild-status.is-warning { border-color: rgba(255, 203, 5, .42); }
.discord-guild-status.is-warning > span { background: linear-gradient(135deg, #d7a72a, #8e6420); }
.discord-guild-status.is-missing { border-color: rgba(238, 91, 100, .48); }
.discord-guild-status.is-missing > span { background: linear-gradient(135deg, #d94352, #762633); }
@media (max-width: 640px) {
  .hub-top--real { min-height: auto; }
  .hub-intro--real { min-height: auto; padding: 22px; }
  .hub-intro--real .hub-pokeball { display: none; }
  .hub-empty-state { grid-template-columns: 1fr; }
  .hub-user-pill { max-width: 100%; flex-wrap: wrap; border-radius: 8px; }
  .hub-user-pill span { overflow-wrap: anywhere; }
}