/* RetroCode Play System — dashboard console v7 */
:root {
  --rc-bg: #070a12;
  --rc-panel: rgba(15, 20, 32, .82);
  --rc-panel-soft: rgba(20, 27, 42, .64);
  --rc-line: rgba(255, 255, 255, .1);
  --rc-text: #f7f9ff;
  --rc-muted: #9aa6ba;
  --rc-blue: #5c8dff;
  --rc-cyan: #45e0d0;
  --active-game-accent: #45e0d0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body {
  color: var(--rc-text);
  background: var(--rc-bg);
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

.ambient-world {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 16%, rgba(89, 93, 228, .28), transparent 34%),
    radial-gradient(circle at 18% 85%, rgba(16, 178, 191, .18), transparent 38%),
    linear-gradient(145deg, #090d18 0%, #10172a 55%, #080b12 100%);
}

.ambient-world::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 55%, transparent 100%);
  animation: rcGrid 28s linear infinite;
}

.ambient-orb {
  opacity: .5;
  filter: blur(30px);
  animation: rcFloat 12s ease-in-out infinite alternate;
}

.orb-one {
  width: 36vw;
  height: 36vw;
  left: -12vw;
  top: -17vw;
  background: #345ab8;
}

.orb-two {
  width: 30vw;
  height: 30vw;
  right: -9vw;
  bottom: -14vw;
  background: #2a8d94;
  animation-delay: -5s;
}

.orb-three {
  width: 22vw;
  height: 22vw;
  left: 50%;
  top: 34%;
  background: #5543a4;
  animation-delay: -9s;
}

.ambient-noise {
  opacity: .035;
}

.cursor-glow {
  width: 28rem;
  height: 28rem;
  opacity: .14;
  background: radial-gradient(circle, rgba(115, 175, 255, .5), transparent 65%);
}

.app-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.app-shell > footer,
.home-page,
.main-nav [data-page-link="inicio"] {
  display: none !important;
}

/* Console chrome */
.topbar {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  min-height: 0;
  padding: 0 28px;
  color: var(--rc-text);
  border: 0;
  background: linear-gradient(to bottom, rgba(5, 8, 15, .88), rgba(5, 8, 15, 0));
  backdrop-filter: none;
}

.brand {
  color: var(--rc-text);
}

.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #618fff, #46d8d0);
  box-shadow: 0 9px 28px rgba(59, 123, 230, .27);
}

.brand small,
.profile-label small,
.network-state {
  color: var(--rc-muted);
}

.main-nav {
  position: fixed;
  z-index: 82;
  top: 50%;
  left: 22px;
  display: flex;
  width: 64px;
  padding: 8px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--rc-line);
  border-radius: 18px;
  background: rgba(10, 14, 24, .72);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
  backdrop-filter: blur(22px);
  transform: translateY(-50%);
}

.main-nav a {
  display: grid;
  width: 46px;
  height: 46px;
  min-width: 0;
  padding: 0;
  place-items: center;
  overflow: hidden;
  color: #8995a9;
  font-size: 0;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-nav a span {
  font-size: 1.1rem;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  transform: translateX(2px);
}

.main-nav a.active {
  color: #fff;
  border-color: rgba(119, 165, 255, .35);
  background: linear-gradient(145deg, rgba(84, 132, 244, .72), rgba(66, 202, 197, .45));
  box-shadow: 0 8px 20px rgba(55, 106, 209, .28);
}

.status-chip,
.icon-btn,
.profile-button {
  color: var(--rc-text);
  border-color: var(--rc-line);
  background: rgba(15, 20, 32, .7);
}

.status-chip:hover,
.icon-btn:hover,
.profile-button:hover {
  color: #fff;
  background: rgba(35, 45, 67, .92);
}

.console-stage,
.app-shell main {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.console-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  padding: 88px 30px 20px 108px;
  overflow: hidden;
}

.console-page.active,
.library-section.console-page.active,
.ranking-section.console-page.active {
  display: flex !important;
  display: flex;
  flex-direction: column;
  animation: rcPageIn .42s cubic-bezier(.2, .75, .25, 1) both;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  flex: 0 0 70px;
  min-height: 0;
  margin: 0 0 10px;
}

.section-heading h2,
.library-section .section-heading h2,
.ranking-section .section-heading h2 {
  margin: 0;
  color: var(--rc-text);
  font-size: clamp(1.9rem, 2.5vw, 3rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.section-heading .eyebrow {
  margin-bottom: 7px;
  color: #6edbd3;
}

.section-heading .page-subtitle {
  margin-top: 6px;
  color: var(--rc-muted);
}

.view-toggle {
  display: flex;
  padding: 4px;
  gap: 3px;
  border: 1px solid var(--rc-line);
  border-radius: 13px;
  background: rgba(13, 18, 29, .74);
  backdrop-filter: blur(18px);
}

.view-toggle button {
  width: 38px;
  height: 36px;
  color: #7f8ca0;
  border-radius: 9px;
}

.view-toggle button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.view-toggle button.active {
  color: #fff;
  background: #416fd5;
  box-shadow: 0 6px 18px rgba(48, 98, 202, .3);
}

.library-toolbar {
  display: flex;
  align-items: center;
  flex: 0 0 46px;
  min-height: 0;
  margin: 0 0 10px;
  padding: 3px;
  gap: 6px;
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  background: rgba(12, 17, 28, .66);
  backdrop-filter: blur(18px);
}

.search-box,
.select-wrap {
  min-height: 38px;
  color: var(--rc-muted);
  border-color: transparent;
  background: rgba(255, 255, 255, .05);
}

.search-box input,
.select-wrap select {
  color: var(--rc-text);
}

.search-box input::placeholder {
  color: #6f7b8f;
}

.select-wrap select option {
  color: #121826;
}

.filter-tabs {
  flex-wrap: nowrap;
  overflow: hidden;
}

.filter-tabs button {
  color: #8b97aa;
  white-space: nowrap;
}

.filter-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.filter-tabs button.active {
  color: #fff;
  background: rgba(81, 125, 224, .72);
}

/* Library */
.library-viewport {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--rc-line);
  border-radius: 22px;
  background: rgba(8, 12, 20, .48);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .24);
}

.game-grid {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.game-card,
.game-info h3 {
  color: var(--rc-text);
}

.game-info p,
.score-line span {
  color: var(--rc-muted);
}

.game-backdrop {
  display: none;
}

.game-system-code {
  display: block;
  margin-bottom: 10px;
  color: #65dcd2;
  font: 600 .65rem/1.2 "DM Mono", monospace;
  letter-spacing: .16em;
}

.game-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-feature-tags span {
  padding: 6px 9px;
  color: #bac4d5;
  font: 500 .59rem/1 "DM Mono", monospace;
  letter-spacing: .06em;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
}

.card-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 118px;
  padding: 11px 14px;
  color: #fff;
  font: 700 .66rem/1 "DM Mono", monospace;
  letter-spacing: .11em;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: #4677df;
  box-shadow: 0 9px 24px rgba(35, 82, 184, .32);
  cursor: pointer;
}

.card-play-button:hover,
.card-play-button:focus-visible {
  background: #5b89ee;
  transform: translateY(-1px);
}

/* Carousel: one selected game plus a Batocera-style horizontal system rail. */
.carousel-view {
  height: calc(100% - 142px);
}

.carousel-view .game-card {
  position: absolute;
  inset: 0;
  display: none;
  min-width: 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 30vw);
  align-items: center;
  gap: clamp(26px, 4vw, 74px);
  padding: clamp(22px, 4vw, 66px) clamp(50px, 7vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.carousel-view .game-card.is-active {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  animation: rcHeroIn .46s cubic-bezier(.2, .8, .2, 1) both;
}

.carousel-view .game-backdrop {
  position: absolute;
  z-index: -2;
  inset: -40px;
  display: block;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  opacity: .28;
  object-fit: cover;
  filter: blur(22px) saturate(1.2);
  transform: scale(1.08);
}

.carousel-view .game-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 18, .97) 0%, rgba(7, 10, 18, .78) 43%, rgba(7, 10, 18, .3) 100%);
}

.carousel-view .game-cover {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: min(100%, 340px);
  height: auto;
  max-height: 46vh;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  transform: perspective(1000px) rotateY(-4deg) !important;
}

.carousel-view .cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-view .cover-art {
  display: none;
}

.carousel-view .game-info {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  min-width: 0;
  max-width: 720px;
  flex-direction: column;
  align-items: flex-start;
}

.carousel-view .game-topline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.carousel-view .game-topline h3 {
  max-width: 100%;
  font-size: clamp(2.6rem, 5vw, 6.5rem);
  line-height: .85;
  letter-spacing: -.075em;
  text-shadow: 0 12px 45px rgba(0, 0, 0, .45);
}

.carousel-view .players-tag {
  color: #d7e1f2;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .13);
}

.carousel-view .game-info > p {
  max-width: 55ch;
  margin: 18px 0 22px;
  font-size: clamp(.88rem, 1.1vw, 1.05rem);
  line-height: 1.6;
}

.carousel-view .score-line {
  width: 100%;
  max-width: 560px;
  gap: 13px;
  margin-top: 22px;
  padding-top: 15px;
  border-color: rgba(255, 255, 255, .11);
}

.carousel-view .score-line strong {
  margin-right: auto;
  color: #fff;
}

.carousel-rail {
  position: absolute;
  z-index: 14;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  height: 142px;
  padding: 9px max(50%, 80px) 10px;
  gap: 13px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(to top, rgba(6, 9, 16, .96), rgba(8, 12, 21, .78));
  scroll-behavior: smooth;
  scroll-padding-inline: 50%;
}

.carousel-rail::-webkit-scrollbar {
  display: none;
}

.carousel-rail-item {
  position: relative;
  flex: 0 0 75px;
  width: 75px;
  height: 100px;
  padding: 0;
  overflow: visible;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: #151b28;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  opacity: .62;
  cursor: pointer;
  transition: flex-basis .25s ease, width .25s ease, height .25s ease, opacity .25s ease, transform .25s ease, border-color .25s ease;
}

.carousel-rail-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.carousel-rail-item span {
  position: absolute;
  right: 50%;
  bottom: -19px;
  width: 130px;
  overflow: hidden;
  color: #dce5f5;
  font: 600 .57rem/1 "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(50%);
}

.carousel-rail-item:hover {
  opacity: .9;
  transform: translateY(-4px);
}

.carousel-rail-item.is-active {
  flex-basis: 88px;
  width: 88px;
  height: 118px;
  opacity: 1;
  border-color: #79a2ff;
  box-shadow: 0 0 0 3px rgba(73, 124, 236, .22), 0 14px 30px rgba(0, 0, 0, .48);
  transform: translateY(-3px);
}

.carousel-rail-item.is-active span {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  z-index: 20;
  top: calc(50% - 65px);
  display: grid;
  width: 46px;
  height: 62px;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  background: rgba(8, 12, 21, .64);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}

.carousel-arrow:hover {
  background: rgba(65, 105, 195, .85);
}

.carousel-arrow.previous { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Grid */
.grid-view,
.game-grid.grid-view {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.grid-view .game-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--rc-line);
  border-radius: 12px;
  background: rgba(21, 28, 43, .78);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.grid-view .game-card:hover,
.grid-view .game-card:focus-within {
  z-index: 2;
  border-color: rgba(101, 148, 255, .64);
  background: #202b42;
  transform: translateY(-4px);
}

.grid-view .game-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: auto;
  border-radius: 8px;
}

.grid-view .cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-view .game-info {
  min-width: 0;
  padding: 9px 5px 4px;
}

.grid-view .game-system-code,
.grid-view .game-info > p,
.grid-view .game-feature-tags,
.grid-view .score-line > span,
.grid-view .card-play-button,
.grid-view .players-tag {
  display: none;
}

.grid-view .game-topline h3 {
  overflow: hidden;
  font-size: clamp(.8rem, .9vw, 1rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid-view .score-line {
  margin-top: 3px;
  padding: 0;
  border: 0;
}

.grid-view .score-line strong {
  color: #8190a7;
  font-size: .67rem;
}

/* List: explicit, full-width clickable rows with visible play controls. */
.list-view,
.game-grid.list-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.list-view .game-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--rc-line);
  border-radius: 11px;
  background: rgba(18, 24, 38, .82);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.list-view .game-card:hover,
.list-view .game-card:focus-within {
  border-color: rgba(103, 151, 255, .58);
  background: #202a40;
  transform: translateX(4px);
}

.list-view .game-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: auto;
  border-radius: 7px;
}

.list-view .cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-view .game-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  padding: 7px 10px;
  gap: 2px 12px;
}

.list-view .game-system-code {
  grid-column: 1;
  margin: 0;
  font-size: .53rem;
}

.list-view .game-topline {
  grid-column: 1;
}

.list-view .game-topline h3 {
  overflow: hidden;
  font-size: clamp(.9rem, 1vw, 1.08rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-view .game-info > p {
  grid-column: 1;
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: .68rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.list-view .game-feature-tags,
.list-view .players-tag,
.list-view .score-line > span,
.list-view .score-line > strong {
  display: none;
}

.list-view .score-line {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.list-view .card-play-button {
  min-width: 96px;
  padding: 10px 11px;
}

.library-console-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex: 0 0 38px;
  min-height: 0;
  margin-top: 4px;
}

.carousel-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7f8ca0;
  font: 500 .59rem/1 "DM Mono", monospace;
  letter-spacing: .11em;
}

.carousel-progress strong {
  color: #fff;
  font-size: .76rem;
}

.library-pagination,
.ranking-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #8794a7;
  font: 600 .6rem/1 "DM Mono", monospace;
  letter-spacing: .1em;
}

.library-pagination button,
.ranking-pagination button {
  width: 33px;
  height: 28px;
  color: #fff;
  border: 1px solid var(--rc-line);
  border-radius: 7px;
  background: #151d2c;
}

.library-pagination button:disabled,
.ranking-pagination button:disabled {
  opacity: .3;
}

.surprise-button {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  color: #e9effa;
  font: 600 .62rem/1 "DM Mono", monospace;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: #182235;
}

.surprise-button:hover {
  color: #fff;
  background: #263653;
}

/* Rankings */
.ranking-order-note {
  color: #aeb8c8;
  border-color: var(--rc-line);
  background: rgba(15, 21, 33, .72);
}

.ranking-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
  margin: 0;
  overflow: hidden;
}

.ranking-summary-card {
  height: 100%;
  min-height: 0;
  padding: 11px;
  overflow: hidden;
  color: var(--rc-text);
  border: 1px solid var(--rc-line);
  border-radius: 13px;
  background: rgba(17, 23, 36, .78);
  box-shadow: 0 17px 38px rgba(0, 0, 0, .18);
}

.ranking-summary-card header {
  min-height: 45px;
  padding-bottom: 8px;
  border-color: var(--rc-line);
}

.ranking-summary-card header img {
  width: 38px;
  height: 46px;
  border-radius: 6px;
}

.ranking-summary-card header h3 {
  overflow: hidden;
  color: #fff;
  font-size: clamp(.8rem, 1vw, 1rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-summary-card header span,
.ranking-summary-card header strong small,
.ranking-summary-card footer,
.ranking-summary-card li.empty {
  color: #7f8ba0;
}

.ranking-summary-card ol {
  min-height: 0;
  margin: 4px 0;
}

.ranking-summary-card li {
  min-height: 24px;
  padding: 3px 2px;
  color: #dce4f2;
  border-color: rgba(255, 255, 255, .07);
  font-size: .68rem;
}

.rank-mini-avatar {
  width: 20px;
  height: 20px;
  color: #fff;
  background: #426ed0;
}

.ranking-summary-card footer {
  min-height: 24px;
  padding-top: 6px;
  border-color: var(--rc-line);
}

.ranking-summary-card footer a {
  color: #7aa4ff;
}

.ranking-pagination {
  flex: 0 0 36px;
}

/* Welcome and player identification */
.auth-dialog[open] {
  position: fixed !important;
  inset: 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(400px, .7fr);
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: clamp(24px, 4vw, 70px) !important;
  overflow: hidden !important;
  color: var(--rc-text);
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 18% 22%, rgba(53, 98, 199, .33), transparent 34%),
    radial-gradient(circle at 70% 84%, rgba(27, 159, 160, .2), transparent 35%),
    linear-gradient(145deg, #070a12, #111a2d 55%, #080c15);
  animation: rcWelcomeIn .55s ease both;
}

.auth-dialog::backdrop {
  background: #070a12;
  backdrop-filter: none;
}

.auth-dialog::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, #000, transparent 67%);
}

.auth-art {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 4px 6vw 5vh 0;
  color: #fff;
  background: none;
}

.auth-art::after {
  content: "Clásicos reinventados, multijugador local y online en un único sistema.";
  display: block;
  max-width: 520px;
  color: #9ba9bf;
  font: 500 clamp(.9rem, 1.15vw, 1.08rem)/1.6 Manrope, sans-serif;
}

.auth-logo {
  align-self: flex-start;
  color: #fff;
}

.auth-logo > span {
  color: #fff;
  background: linear-gradient(145deg, #5d8dff, #45d6ce);
  box-shadow: 0 12px 32px rgba(54, 111, 220, .28);
}

.auth-message {
  position: static;
  margin-top: auto;
}

.auth-message::before {
  content: "RETROCODE PLAY SYSTEM";
  display: block;
  margin-bottom: 13px;
  color: #60d7ce;
  font: 600 .67rem/1 "DM Mono", monospace;
  letter-spacing: .18em;
}

.auth-message p {
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: clamp(3.2rem, 6vw, 7rem);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.08em;
  text-shadow: 0 22px 70px rgba(0, 0, 0, .42);
}

.auth-message small,
.auth-pixels {
  display: none;
}

.auth-panel,
.welcome-member {
  position: relative;
  z-index: 3;
  align-self: center;
  width: 100%;
  max-height: calc(100dvh - 40px);
  padding: clamp(25px, 3vw, 44px);
  overflow: auto;
  color: var(--rc-text);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  background: rgba(13, 18, 30, .86);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
  backdrop-filter: blur(25px);
}

.auth-panel h2,
.welcome-member h2 {
  color: #fff;
}

.auth-subtitle,
.secure-note {
  color: #93a0b4;
}

.auth-tabs {
  border: 1px solid var(--rc-line);
  background: rgba(255, 255, 255, .04);
}

.auth-tabs button {
  color: #8d99ad;
}

.auth-tabs button.active {
  color: #fff;
  background: #436fd2;
}

.auth-form label {
  color: #aeb9ca;
}

.auth-form input {
  color: #fff;
  border-color: var(--rc-line);
  background: rgba(255, 255, 255, .055);
}

.auth-form input:focus {
  border-color: #5d91ff;
  box-shadow: 0 0 0 3px rgba(71, 120, 225, .17);
}

.auth-panel .primary-button {
  color: #fff;
  background: #4779df;
  box-shadow: 0 13px 32px rgba(34, 78, 178, .3);
}

.welcome-member {
  display: flex;
  min-height: min(570px, calc(100dvh - 70px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.welcome-member[hidden],
.auth-panel[hidden] {
  display: none !important;
}

.welcome-avatar {
  display: grid;
  width: 96px;
  height: 96px;
  margin-bottom: 23px;
  place-items: center;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  background: linear-gradient(145deg, #5d8dff, #42cfc8);
  box-shadow: 0 20px 46px rgba(43, 91, 190, .3);
}

.welcome-member > p {
  color: #62d7ce;
  font: 600 .63rem/1 "DM Mono", monospace;
  letter-spacing: .17em;
}

.welcome-member h2 {
  margin: 13px 0 5px;
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.welcome-member > small {
  color: #929fb3;
}

.enter-system-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 330px);
  margin-top: 34px;
  padding: 18px 19px 18px 23px;
  color: #fff;
  font: 800 1.08rem/1 Manrope, sans-serif;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: #4779df;
  box-shadow: 0 18px 40px rgba(35, 80, 181, .3);
  transition: background .2s ease, transform .2s ease;
}

.enter-system-button b {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
}

.enter-system-button:hover {
  background: #5a88ea;
  transform: translateY(-3px);
}

.welcome-switch-user {
  margin-top: 18px;
  padding: 8px;
  color: #8996aa;
  font: 600 .63rem/1 "DM Mono", monospace;
  border: 0;
  background: transparent;
}

/* Games: always fill the viewport, with or without native fullscreen permission. */
.game-dialog[open],
.game-dialog:fullscreen {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #05070c !important;
}

.game-dialog::backdrop {
  background: #05070c !important;
  backdrop-filter: none !important;
}

.game-dialog .game-shell,
.game-dialog:fullscreen .game-shell {
  display: grid !important;
  grid-template-rows: 68px minmax(0, 1fr) 38px;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.game-shell:fullscreen,
.game-shell:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
  color: #fff;
  background: #05070c !important;
}

.game-dialog .game-header {
  min-height: 0;
  padding: 9px clamp(15px, 2vw, 36px);
}

.game-dialog .game-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(235px, 18vw, 310px);
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.game-dialog .canvas-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.game-dialog #gameCanvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: fill;
}

.game-dialog[data-engine="shooter"] .canvas-wrap {
  background: #01030a;
}

.game-dialog[data-engine="shooter"] #gameCanvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain;
  image-rendering: auto;
}
body.high-contrast .game-dialog[data-engine="shooter"] #gameCanvas { filter: contrast(1.12) saturate(1.12) brightness(1.03); }

.game-dialog .game-title-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-dialog .game-sidebar {
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, .08);
}

.game-dialog .game-footer {
  min-height: 0;
}

.game-dialog .game-start-overlay,
.game-dialog .game-intro-overlay,
.game-dialog .pause-overlay,
.game-dialog .game-over-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.boot-screen {
  z-index: 10000;
}

.boot-screen.launching .boot-console,
.boot-screen.launching .boot-copy {
  animation: rcBootIn .55s ease both;
}

@keyframes rcGrid { to { background-position: 72px 72px, 72px 72px; } }
@keyframes rcFloat { from { transform: translate3d(-2%, -2%, 0) scale(.94); } to { transform: translate3d(4%, 5%, 0) scale(1.06); } }
@keyframes rcPageIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes rcHeroIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes rcWelcomeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rcBootIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .network-state,
  .profile-label {
    display: none;
  }

  .grid-view,
  .game-grid.grid-view {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .carousel-view .game-card {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 31vw);
    padding-right: 70px;
    padding-left: 70px;
  }
}

@media (max-width: 860px) {
  .topbar {
    height: 68px;
    padding: 0 13px;
  }

  .brand > span:last-child,
  .status-chip {
    display: none;
  }

  .main-nav {
    top: auto;
    right: 12px;
    bottom: 10px;
    left: 12px;
    width: auto;
    height: 58px;
    flex-direction: row;
    justify-content: center;
    transform: none;
  }

  .main-nav a {
    width: 48px;
    height: 40px;
  }

  .console-page {
    padding: 72px 12px 76px;
  }

  .section-heading {
    flex-basis: 58px;
  }

  .section-heading .page-subtitle,
  .ranking-order-note,
  .select-wrap,
  .filter-tabs button:nth-of-type(n+4) {
    display: none;
  }

  .carousel-view .game-card {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 34vw);
    gap: 20px;
    padding: 22px 54px;
  }

  .carousel-view .game-topline h3 {
    font-size: clamp(2rem, 6vw, 3.8rem);
  }

  .carousel-view .game-info > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .carousel-view .game-feature-tags span:nth-child(3) {
    display: none;
  }

  .list-view,
  .game-grid.list-view {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  .auth-dialog[open] {
    grid-template-columns: 1fr;
    padding: 16px !important;
  }

  .auth-art {
    position: absolute;
    inset: 18px 18px auto;
    height: auto;
    padding: 0;
  }

  .auth-message,
  .auth-art::after,
  .auth-noise {
    display: none;
  }

  .auth-panel,
  .welcome-member {
    align-self: end;
    justify-self: center;
    max-width: 560px;
    max-height: calc(100dvh - 95px);
    margin-top: 74px;
    padding: 23px;
  }

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

  .game-dialog .game-sidebar {
    display: none;
  }
}

@media (max-width: 600px) {
  .section-heading h2 { font-size: 1.8rem; }
  .view-toggle button { width: 34px; }
  .filter-tabs { display: none; }
  .search-box { flex: 1; }

  .carousel-view {
    height: calc(100% - 116px);
  }

  .carousel-view .game-card {
    grid-template-columns: 1fr;
    grid-template-rows: 45% 55%;
    gap: 0;
    padding: 14px 42px;
  }

  .carousel-view .game-cover {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    height: 100%;
    max-height: none;
    transform: none !important;
  }

  .carousel-view .game-info {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding-top: 10px;
  }

  .carousel-view .game-system-code { margin-bottom: 5px; font-size: .52rem; }
  .carousel-view .game-topline { flex-direction: row; align-items: center; }
  .carousel-view .game-topline h3 { font-size: 1.6rem; }
  .carousel-view .game-info > p { margin: 6px 0; font-size: .7rem; -webkit-line-clamp: 2; }
  .carousel-view .game-feature-tags { display: none; }
  .carousel-view .score-line { margin-top: auto; padding-top: 6px; }
  .carousel-view .score-line > span { display: none; }

  .carousel-rail {
    height: 116px;
    padding-bottom: 8px;
  }

  .carousel-rail-item { flex-basis: 60px; width: 60px; height: 80px; }
  .carousel-rail-item.is-active { flex-basis: 69px; width: 69px; height: 92px; }
  .carousel-rail-item span { display: none; }
  .carousel-arrow { top: calc(50% - 52px); width: 34px; height: 50px; }

  .grid-view,
  .game-grid.grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-console-footer { grid-template-columns: 1fr auto; }
  .surprise-button span { display: none; }
  .ranking-summary-grid { grid-template-columns: 1fr; }

  .auth-panel .eyebrow,
  .secure-note { display: none; }
  .auth-panel h2 { font-size: 1.7rem; }
  .auth-form { gap: 9px; }
  .auth-form .form-row { grid-template-columns: 1fr 1fr; }

  .game-dialog .game-shell { grid-template-rows: 58px minmax(0, 1fr) 34px; }
  .game-dialog .game-header h2 { font-size: 1rem; }
  .game-header-score { margin-left: auto; }
}

@media (max-height: 720px) {
  .console-page { padding-top: 74px; }
  .section-heading { flex-basis: 52px; }
  .section-heading .page-subtitle { display: none; }
  .carousel-view .game-cover { max-height: 41vh; }
  .auth-panel,
  .welcome-member { padding: 19px 25px; }
  .auth-form { gap: 8px; }
  .auth-form input { min-height: 38px; }
  .secure-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-world::before,
  .ambient-orb { animation: none !important; }
}

/* RetroCode Network */
.retro-title-menu .online-title-option {
  position: relative;
  grid-template-columns: 22px 1fr auto;
  color: #72e7dd;
  border-color: rgba(75, 225, 211, .28);
  background: linear-gradient(90deg, rgba(24, 107, 112, .28), rgba(26, 37, 66, .22));
}

.retro-title-menu .online-title-option small {
  color: rgba(220, 255, 252, .55);
  font: 500 .48rem/1 "DM Mono", monospace;
  letter-spacing: .1em;
}

.retro-title-menu .online-title-option:hover,
.retro-title-menu .online-title-option:focus-visible {
  color: #071416;
  background: #64e4d9;
  box-shadow: 0 0 35px rgba(79, 232, 218, .3);
}

.retro-title-menu .online-title-option:hover small,
.retro-title-menu .online-title-option:focus-visible small { color: rgba(5, 23, 25, .62); }

.online-lobby-dialog[open] {
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr);
  width: min(1180px, calc(100vw - 44px));
  height: min(760px, calc(100dvh - 44px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: #eef6ff;
  border: 1px solid rgba(139, 185, 255, .2);
  border-radius: 25px;
  background: rgba(7, 13, 27, .96);
  box-shadow: 0 45px 130px rgba(4, 9, 25, .72), inset 0 1px rgba(255, 255, 255, .05);
}

.online-lobby-dialog::backdrop {
  background: rgba(4, 10, 25, .64);
  backdrop-filter: blur(22px) saturate(1.3);
}

.online-lobby-header {
  display: grid;
  grid-template-columns: 1fr auto 42px;
  align-items: center;
  padding: 14px 20px 14px 26px;
  border-bottom: 1px solid rgba(146, 183, 239, .14);
  background: rgba(255, 255, 255, .025);
}

.online-lobby-header h2 { margin: 4px 0 0; color: #fff; font-size: 1.45rem; }
.online-lobby-header .eyebrow { margin: 0; color: #7891b5; }

.online-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  padding: 8px 11px;
  color: #6ee9dd;
  font: 600 .55rem/1 "DM Mono", monospace;
  letter-spacing: .12em;
  border: 1px solid rgba(73, 226, 213, .2);
  border-radius: 99px;
  background: rgba(58, 205, 195, .08);
}

.online-live-badge i,
.online-dot,
.online-player-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #61e4d8;
  box-shadow: 0 0 13px #52d7cd;
}

.online-dot.pulse { animation: onlinePulse 1.25s ease-in-out infinite; }

.online-lobby-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 0;
}

.online-lobby-game {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 22px;
  border-right: 1px solid rgba(146, 183, 239, .13);
  background: linear-gradient(180deg, rgba(54, 101, 188, .12), rgba(10, 17, 34, .55));
}

.online-cover-wrap {
  position: relative;
  width: min(100%, 205px);
  margin: 0 auto 20px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12);
}

.online-cover-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 34%, transparent 66%, rgba(49,228,209,.15));
}

.online-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }

.online-cover-wrap span {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  color: #071618;
  font: 800 .5rem/1 "DM Mono", monospace;
  letter-spacing: .1em;
  border-radius: 5px;
  background: #65e3d8;
}

.online-lobby-game .eyebrow { margin: 0 0 8px; color: #5fdacf; }
.online-lobby-game h3 { margin: 0; color: #fff; font-size: 1.45rem; }
.online-lobby-game > p:not(.eyebrow) { margin: 10px 0 18px; color: #8d9cb3; font-size: .76rem; line-height: 1.6; }

.online-own-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(140, 179, 236, .13);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}

.online-own-stats div { display: grid; padding: 10px; text-align: center; border-right: 1px solid rgba(140, 179, 236, .1); }
.online-own-stats div:last-child { border: 0; }
.online-own-stats strong { color: #fff; font: 600 1.1rem/1.2 "DM Mono", monospace; }
.online-own-stats span { margin-top: 3px; color: #71839e; font: 600 .5rem/1 "DM Mono", monospace; }

.online-refresh {
  width: 100%;
  margin-top: 12px;
  color: #b9c9df;
  border-color: rgba(142, 177, 226, .16);
  background: rgba(255,255,255,.035);
}

.online-lobby-content {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 22px 25px 18px;
}

.online-invites-section { flex: 0 0 auto; margin-bottom: 20px; }
.online-players-section { display: flex; min-height: 0; flex: 1; flex-direction: column; }

.online-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.online-section-heading > div { display: flex; align-items: center; gap: 10px; }
.online-section-heading h3 { margin: 0; color: #fff; font-size: .85rem; }
.online-section-heading small { color: #687b97; font: 500 .55rem/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }

.online-invites { display: grid; gap: 8px; }

.online-invite-card,
.online-player-card {
  display: grid;
  align-items: center;
  gap: 13px;
  min-width: 0;
  border: 1px solid rgba(141, 181, 240, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.online-invite-card { grid-template-columns: 39px minmax(0, 1fr) auto; padding: 10px 11px; border-color: rgba(74, 225, 212, .25); background: rgba(51, 199, 189, .07); }
.online-invite-card > div:nth-child(2) { display: grid; gap: 2px; }
.online-invite-card strong { color: #fff; font-size: .78rem; }
.online-invite-card span:not(.avatar) { color: #7f93ae; font-size: .64rem; }
.online-invite-card .avatar,
.online-player-card .avatar { width: 39px; height: 39px; font-size: .67rem; border-radius: 9px; }

.online-invite-actions { display: flex; gap: 7px; }
.online-invite-actions button,
.online-invite-button {
  padding: 9px 12px;
  color: #c5d5e9;
  font: 700 .53rem/1 "DM Mono", monospace;
  letter-spacing: .06em;
  border: 1px solid rgba(143, 181, 236, .18);
  border-radius: 6px;
  background: rgba(255,255,255,.045);
}

.online-invite-actions .online-accept,
.online-invite-button:not(:disabled) { color: #061516; border-color: transparent; background: #63e2d7; }
.online-invite-actions button:hover,
.online-invite-button:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.08); }

.online-players-list {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 148, 207, .35) transparent;
}

.online-player-card { grid-template-columns: 39px minmax(120px, 1fr) auto auto 90px; padding: 10px 11px; }
.online-player-card:hover { border-color: rgba(130, 173, 237, .27); background: rgba(255,255,255,.055); transform: translateX(3px); }
.online-player-card.is-busy { opacity: .58; }
.online-player-identity { display: grid; min-width: 0; gap: 2px; }
.online-player-identity strong { overflow: hidden; color: #f3f7ff; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.online-player-identity span { overflow: hidden; color: #6f829e; font: 500 .56rem/1.2 "DM Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.online-player-record { display: flex; gap: 8px; color: #687d99; font: 500 .52rem/1 "DM Mono", monospace; }
.online-player-record b { color: #a9bad0; }
.online-player-status { display: flex; align-items: center; gap: 6px; color: #7f93af; font: 600 .48rem/1 "DM Mono", monospace; }
.online-player-status i { width: 5px; height: 5px; }
.online-player-card.is-busy .online-player-status i { background: #ffb666; box-shadow: 0 0 10px #f1a75b; }
.online-invite-button:disabled { cursor: default; color: #63748c; opacity: .7; }

.online-empty {
  display: grid;
  min-height: 170px;
  place-content: center;
  justify-items: center;
  color: #657892;
  text-align: center;
  border: 1px dashed rgba(140, 180, 237, .16);
  border-radius: 12px;
}

.online-empty i { margin-bottom: 7px; color: #56d8cd; font: 400 2rem/1 "DM Mono", monospace; animation: onlineSpin 2.4s linear infinite; }
.online-empty strong { color: #afbdd0; font-size: .76rem; }
.online-empty span { margin-top: 5px; font-size: .62rem; }

.online-lobby-message {
  flex: 0 0 auto;
  min-height: 20px;
  padding-top: 12px;
  color: #7890af;
  font: 500 .58rem/1.4 "DM Mono", monospace;
}

.online-profile-stats { border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(68, 217, 204, .035); }
.online-profile-heading { display: flex; align-items: center; gap: 9px; padding: 17px 27px 0; }
.online-profile-heading h3 { margin: 0; color: #74ddd4; font: 700 .66rem/1 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.online-profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.online-profile-grid div { display: grid; padding: 15px 28px 19px; border-right: 1px solid rgba(255,255,255,.07); }
.online-profile-grid div:last-child { border: 0; }
.online-profile-grid strong { color: #fff; font: 500 1.2rem/1.3 "DM Mono", monospace; }
.online-profile-grid span { color: #74869f; font-size: .55rem; text-transform: uppercase; }

@keyframes onlinePulse { 50% { opacity: .28; transform: scale(.7); } }
@keyframes onlineSpin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .online-lobby-dialog[open] { grid-template-rows: 64px minmax(0, 1fr); width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .online-lobby-layout { grid-template-columns: 1fr; }
  .online-lobby-game { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 13px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid rgba(146,183,239,.13); }
  .online-cover-wrap { grid-row: 1 / 3; width: 66px; height: 82px; margin: 0; border-radius: 8px; }
  .online-cover-wrap span, .online-lobby-game > p:not(.eyebrow), .online-refresh { display: none; }
  .online-lobby-game .eyebrow { align-self: end; margin: 0; }
  .online-lobby-game h3 { font-size: 1rem; }
  .online-own-stats { grid-column: 3; grid-row: 1 / 3; align-self: center; margin: 0; }
  .online-lobby-content { padding: 15px; }
  .online-player-card { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .online-player-record, .online-player-status { display: none; }
  .online-live-badge { display: none; }
  .online-lobby-header { grid-template-columns: 1fr 40px; padding: 10px 14px; }
}
