/* PindolCasino lobby 2026
   A scoped, asset-led skin for the authenticated hub. */

.hub-app {
  --hub-sidebar-width: 148px;
  --hub-topbar-height: 108px;
  --lobby-bg: #000000;
  --lobby-panel: #0a0a0a;
  --lobby-panel-soft: #121212;
  --lobby-line: rgba(233, 32, 79, .35);
  --lobby-line-bright: rgba(233, 32, 79, .75);
  --lobby-gold: #e9204f;
  --lobby-gold-soft: #ff4d79;
  --lobby-magenta: #e9204f;
  --lobby-purple: #e9204f;
  --lobby-blue: #3a86ff;
  --lobby-red: #e9204f;
  --lobby-turquoise: #2ec4b6;
  --lobby-muted: #9e9e9e;
  --lobby-radius: 22px;
  min-height: 100vh;
  overflow-x: clip;
  color: #f3f3f3;
  background: #000000;
}

body.hub-authenticated {
  overflow-x: clip;
  background: #000000;
}

.hub-app button,
.hub-app a {
  -webkit-tap-highlight-color: transparent;
}

.hub-app button:focus-visible,
.hub-app a:focus-visible {
  outline: 3px solid #ffe071;
  outline-offset: 3px;
}

/* Sidebar */

.game-sidebar {
  z-index: 360;
  width: var(--hub-sidebar-width);
  min-height: 100dvh;
  overflow: hidden;
  padding: 0 10px 90px;
  border: 1px solid rgba(233, 32, 79, .3);
  border-left: 0;
  border-radius: 0 24px 24px 0;
  background: #121212;
  box-shadow: 18px 0 45px rgba(0, 0, 0, .6), inset -1px 0 rgba(255, 255, 255, .03);
  scrollbar-width: none;
  transition: width .28s ease, transform .28s ease;
}

.game-sidebar::-webkit-scrollbar {
  display: none;
}

.game-sidebar .sidebar-profile {
  position: relative;
  flex: 0 0 auto;
  min-height: 136px;
  padding: 11px 9px 12px;
  overflow: visible;
  border: 1px solid rgba(233, 32, 79, .3);
  border-radius: 20px;
  background: #1b1b1b;
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 14px 28px rgba(0, 0, 0, .4);
}

.game-sidebar .sidebar-profile-main {
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.game-sidebar .sidebar-avatar {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  overflow: visible;
  border: 2px solid #e9204f;
  border-radius: 17px;
  color: #fff;
  background: #121212;
  box-shadow: 0 0 0 3px rgba(27, 27, 27, .9), 0 8px 18px rgba(0, 0, 0, .5);
}

.game-sidebar .sidebar-avatar > img:first-child {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  clip-path: inset(0 round 14px);
  pointer-events: none;
}

.game-sidebar .sidebar-avatar > b {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 950;
}

.sidebar-level-emblem {
  position: absolute;
  z-index: 2;
  right: -10px;
  bottom: -13px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.sidebar-level-emblem img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .6));
}

.sidebar-level-emblem b {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: .66rem;
  font-weight: 950;
  text-shadow: 0 2px 3px #321061;
}

.game-sidebar .sidebar-profile-copy {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-login-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.game-sidebar .sidebar-profile-copy strong {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: .83rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-sidebar .sidebar-profile-copy > small {
  margin-top: 8px;
  color: #b3b8d0;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: none;
}

.game-sidebar .online-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin: 0;
  border: 2px solid #0d1020;
  border-radius: 50%;
  background: #e9204f;
  box-shadow: 0 0 12px #e9204f;
}

.game-sidebar .compact-level {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 15px;
}

.game-sidebar .compact-level > i {
  order: 1;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 99px;
  background: #121212;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .54);
}

.game-sidebar .compact-level > i b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #e9204f;
  box-shadow: 0 0 10px rgba(233, 32, 79, .7);
  transition: width .85s cubic-bezier(.22, .8, .22, 1);
}

.game-sidebar .compact-level > span {
  order: 2;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.game-sidebar .compact-level small {
  overflow: hidden;
  color: #aab0ca;
  font-size: .49rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-sidebar .compact-level [data-level-next] {
  max-width: 66px;
  text-align: right;
}

.game-sidebar-nav {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 8px;
  padding: 20px 0 8px;
}

.game-sidebar-nav p {
  display: none;
}

.game-sidebar-nav a {
  position: relative;
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 9px 5px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #aeb5cf;
  background: transparent;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .01em;
  text-align: center;
}

.game-sidebar-nav a::before {
  display: none;
}

.game-sidebar-nav .nav-icon {
  display: grid;
  width: 44px;
  height: 38px;
  place-items: center;
  border: 0;
  color: #abb5d3;
  background: transparent;
  font-size: 1.52rem;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .42));
  transition: color .18s ease, transform .18s ease, filter .18s ease;
}

.game-sidebar-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .035);
}

.game-sidebar-nav a:hover .nav-icon {
  border: 0;
  color: #fff0c6;
  background: transparent;
  transform: translateY(-2px) scale(1.05);
}

.game-sidebar-nav a.active {
  border-color: #e9204f;
  color: #fff;
  background: #e9204f;
  box-shadow: 0 0 17px rgba(233, 32, 79, .45), inset 0 1px 1px rgba(255, 255, 255, .3);
}

.game-sidebar-nav a.active .nav-icon {
  border: 0;
  color: #fff;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .7)) drop-shadow(0 5px 4px rgba(0, 0, 0, .45));
}

.game-sidebar-nav .nav-count {
  position: absolute;
  top: 8px;
  right: 12px;
  min-width: 20px;
  height: 20px;
  border: 2px solid #0b0c18;
  color: #fff;
  background: #e44355;
}

.game-sidebar-footer {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
}

.game-sidebar-footer button {
  display: grid;
  width: 44px;
  height: 38px;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  color: #b8a8d0;
  background: #241830;
  font-size: .85rem;
  text-align: center;
}

.game-sidebar-footer button:hover {
  color: #fff;
  background: #352044;
}

.hub-app.sidebar-collapsed {
  --hub-sidebar-width: 78px;
}

.hub-app.sidebar-collapsed .game-sidebar {
  padding-inline: 7px;
}

.hub-app.sidebar-collapsed .sidebar-profile {
  min-height: 82px;
  padding: 10px 4px;
}

.hub-app.sidebar-collapsed .sidebar-profile-copy,
.hub-app.sidebar-collapsed .compact-level,
.hub-app.sidebar-collapsed .game-sidebar-nav a span {
  display: none;
}

.hub-app.sidebar-collapsed .sidebar-profile-main {
  justify-content: center;
}

.hub-app.sidebar-collapsed .game-sidebar-nav a {
  min-height: 68px;
}

.hub-app.sidebar-collapsed .game-sidebar-footer i {
  transform: rotate(180deg);
}

/* Top controls */

.hub-main {
  min-height: 100vh;
  margin-left: var(--hub-sidebar-width);
  transition: margin-left .28s ease;
}

.game-topbar {
  position: relative;
  z-index: 210;
  top: auto;
  display: flex;
  min-height: calc(var(--hub-topbar-height) - 24px);
  gap: 20px;
  padding: 0 20px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.game-topbar .topbar-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.game-topbar .topbar-wallet {
  display: flex;
  gap: 18px;
  margin: 0;
}

.game-topbar .currency-chip {
  position: relative;
  display: grid;
  width: clamp(220px, 18vw, 290px);
  min-width: 0;
  height: 78px;
  grid-template-columns: 66px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 7px;
  overflow: visible;
  padding: 8px 10px 8px 2px;
  border: 1px solid rgba(233, 32, 79, .3);
  border-radius: 26px;
  background: #121212 !important;
  box-shadow: 0 13px 30px rgba(0, 0, 0, .4);
}

.game-topbar .currency-chip.rubies {
  border-color: rgba(233, 32, 79, .3);
  background: #121212 !important;
}

.game-topbar .currency-chip > img {
  width: 68px;
  height: 68px;
  margin-left: -5px;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .45));
  animation: lobby-currency-float 4.5s ease-in-out infinite;
}

.game-topbar .currency-chip.rubies > img {
  animation-delay: -1.7s;
}

.game-topbar .currency-chip > span {
  min-width: 0;
}

.game-topbar .currency-chip small,
.game-topbar .currency-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-topbar .currency-chip small {
  color: #e9c88e;
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.game-topbar .currency-chip.rubies small {
  color: #e8a6d8;
}

.game-topbar .currency-chip strong {
  margin-top: 2px;
  color: #ffe087;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 950;
  letter-spacing: -.03em;
  text-shadow: 0 2px 10px rgba(255, 190, 52, .25);
}

.game-topbar .currency-chip.rubies strong {
  color: #f68ad4;
  text-shadow: 0 2px 10px rgba(255, 72, 179, .28);
}

.game-topbar .currency-add {
  display: grid;
  width: 46px;
  height: 50px;
  place-items: center;
  border: 2px solid #693e15;
  border-radius: 13px;
  color: #291400;
  background: linear-gradient(180deg, #ffe782 0%, #ffb923 52%, #df7d08 100%);
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, .45), 0 5px 0 #6d3511, 0 9px 16px rgba(0, 0, 0, .36);
  font-size: 1.12rem;
  text-decoration: none;
  transition: transform .14s ease, filter .14s ease;
}

.game-topbar .rubies .currency-add {
  border-color: #6f154b;
  color: #35031e;
  background: linear-gradient(180deg, #ff6ec3 0%, #e7298c 56%, #a50e5c 100%);
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, .35), 0 5px 0 #62103f, 0 9px 16px rgba(0, 0, 0, .36);
}

.game-topbar .currency-add:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.game-topbar .currency-add:active {
  transform: translateY(3px);
}

.game-topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.game-topbar .topbar-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(233, 32, 79, .3);
  border-radius: 17px;
  color: #f3f3f3;
  background: #121212 !important;
  box-shadow: 0 7px 0 rgba(0, 0, 0, .55), 0 12px 22px rgba(0, 0, 0, .4);
  transition: color .15s ease, transform .15s ease, border-color .15s ease, background .15s ease;
}

.game-topbar .topbar-icon > i {
  font-size: 1.25rem;
  color: #f3f3f3;
}

.game-topbar .topbar-icon:hover {
  border-color: #e9204f;
  color: #fff;
  background: #e9204f !important;
  transform: translateY(-2px);
}

.game-topbar .topbar-icon:active {
  transform: translateY(3px);
}

.game-topbar .topbar-icon b {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  border: 3px solid #080a15;
  color: #fff;
  background: #f04a51;
  font-size: .58rem;
}

.lobby-right-toggle {
  display: none !important;
}

/* Main lobby composition */

.hub-route-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 22px 136px;
}

.lobby-home {
  display: block;
  animation: lobby-enter .48s cubic-bezier(.18, .75, .25, 1) both;
}

.lobby-screen {
  display: grid;
  max-width: 1740px;
  grid-template-columns: minmax(0, 1fr) clamp(286px, 20vw, 334px);
  gap: 20px;
  margin: 0 auto;
}

.lobby-main-column {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.lobby-stage {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  height: clamp(520px, calc(100vh - 320px), 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 199, 115, .28);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(147, 51, 234, .25), transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(245, 158, 11, .15), transparent 45%),
    #120c1b;
  box-shadow:
    0 25px 65px rgba(0, 0, 0, .6),
    0 0 35px rgba(139, 92, 246, .15),
    inset 0 1px 1px rgba(255, 255, 255, .1);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.lobby-stage:hover {
  border-color: rgba(255, 215, 0, .4);
  box-shadow:
    0 30px 75px rgba(0, 0, 0, .7),
    0 0 45px rgba(255, 190, 40, .2),
    inset 0 1px 1px rgba(255, 255, 255, .15);
}

.lobby-hostess-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #120c1b;
  pointer-events: none;
  width: 100%;
  height: 100%;
  isolation: isolate;
  contain: layout paint;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.lobby-hostess-scene-fallback,
.lobby-hostess-scene canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.lobby-hostess-scene-fallback {
  object-fit: cover;
  object-position: 50% 50%;
  transition: opacity .25s ease;
  filter: saturate(1.08) contrast(1.05) brightness(.92);
}
.lobby-hostess-scene canvas {
  z-index: 1;
}
.lobby-hostess-scene.is-ready .lobby-hostess-scene-fallback {
  opacity: 0;
}

.lobby-stage-vignette {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, transparent 40%, rgba(4, 2, 10, .55) 90%),
    linear-gradient(90deg, rgba(4, 3, 12, .45), transparent 28%, transparent 72%, rgba(4, 3, 12, .35)),
    linear-gradient(180deg, rgba(6, 4, 13, .04) 40%, rgba(5, 3, 10, .7) 100%);
  box-shadow: inset 0 0 90px rgba(4, 2, 10, .45);
  pointer-events: none;
}

.stage-portal {
  position: absolute;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(215, 38, 61, .55);
  border-radius: 99px;
  color: #fff;
  background: rgba(2, 24, 43, .92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .6), 0 0 15px rgba(215, 38, 61, .3), inset 0 1px 1px rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stage-portal i:first-child {
  color: #D7263D;
  font-size: 1.05rem;
}

.stage-portal .portal-arrow {
  color: #ff4d6d;
  font-size: .7rem;
  transition: transform .2s ease;
}

.stage-portal:hover {
  border-color: #D7263D;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .75), 0 0 25px rgba(215, 38, 61, .5);
  transform: translateY(-4px) scale(1.05);
}

.stage-portal:hover .portal-arrow {
  transform: translateX(4px);
}

.stage-portal-slots {
  top: 42%;
  left: 12%;
}

.stage-portal-battles {
  top: 36%;
  left: 54%;
}

.stage-portal-crates {
  top: 46%;
  right: 14%;
}


/* The hostess is composed inside the Pixi lobby scene. */

.lobby-missions {
  position: absolute;
  z-index: 6;
  top: 72px;
  left: 18px;
  width: clamp(260px, 25%, 320px);
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(255, 218, 181, .2);
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .05), transparent 36%),
    rgba(10, 8, 16, .91);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}

.lobby-missions header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.lobby-missions h3 {
  margin: 0;
  color: #fff;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.missions-target {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #f14b6c;
  border-radius: 50%;
  color: #fff;
  background: #c8264e;
  box-shadow: inset 0 0 0 3px #4f1025;
  font-size: .7rem;
}

.lobby-missions .mission-stack {
  display: grid;
  gap: 9px;
}

.lobby-missions .mission-compact {
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) 62px;
  align-items: center;
  gap: 10px;
  padding: 10px 9px 9px 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035), transparent),
    rgba(18, 18, 31, .9);
  box-shadow: inset 0 -2px rgba(0, 0, 0, .18);
}

.lobby-missions .mission-compact > span:first-child {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
}

.lobby-missions .mission-compact strong {
  overflow: hidden;
  color: #e7e9f6;
  font-size: .61rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-missions .mission-compact small {
  color: #c6cadc;
  font-size: .52rem;
  font-weight: 800;
}

.lobby-missions .mission-progress {
  grid-column: 1 / -1;
  display: block;
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 99px;
  background: #242438;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5);
}

.lobby-missions .mission-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #35d887, #1ca75e);
  box-shadow: 0 0 10px rgba(36, 205, 117, .42);
  transition: width .85s cubic-bezier(.22, .8, .22, 1);
}

.lobby-missions .mission-reward {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding-top: 24px;
  color: #ffe683;
  background: url("ui/coin.png") center 1px / 27px 27px no-repeat;
  font-size: .49rem;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
}

.missions-all {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  color: #ffd75e;
  background: linear-gradient(180deg, #1c1d2d, #131421);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .32);
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}

.missions-all:hover {
  border-color: rgba(255, 207, 78, .36);
  color: #fff1b3;
}

.lobby-play-area {
  position: absolute;
  z-index: 8;
  bottom: 12px;
  left: 51%;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
}

.lobby-play-button {
  position: relative;
  display: grid;
  width: clamp(260px, 26vw, 370px);
  height: 156px;
  place-items: center;
  overflow: hidden;
  padding: 0 0 2px;
  border: 0;
  color: #3b1d03;
  background: url("newfronted/ui/playbutton.png") center 52% / 100% auto no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .65)) drop-shadow(0 0 20px rgba(255, 185, 30, .3));
  font-size: clamp(2.25rem, 3.6vw, 3.2rem);
  font-weight: 1000;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow: 0 3px 6px rgba(0, 0, 0, .4), 0 2px rgba(255, 255, 255, .3);
  animation: lobby-play-idle 2.9s ease-in-out infinite;
  transition: filter .18s ease, transform .18s ease;
}

.lobby-play-button::after {
  position: absolute;
  top: 30%;
  bottom: 29%;
  left: -28%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  content: "";
  opacity: .75;
  transform: skewX(-20deg);
  animation: lobby-button-shine 3.5s ease-in-out infinite;
}

.lobby-play-button span {
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.lobby-play-button:hover {
  filter: brightness(1.15) drop-shadow(0 22px 20px rgba(0, 0, 0, .75)) drop-shadow(0 0 30px rgba(255, 195, 50, .45));
  transform: translateY(-5px) scale(1.03);
}

.lobby-play-button:active {
  filter: brightness(.95) drop-shadow(0 10px 8px rgba(0, 0, 0, .6));
  transform: translateY(4px) scale(.985);
}

.lobby-last-game {
  display: grid;
  min-width: 250px;
  place-items: center;
  margin-top: -33px;
  padding: 9px 22px 10px;
  border: 1px solid rgba(255, 215, 120, .28);
  border-radius: 0 0 20px 20px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 15, 32, .92), rgba(10, 8, 18, .96));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .55),
    0 0 15px rgba(255, 195, 50, .15),
    inset 0 1px 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lobby-last-game:hover {
  border-color: rgba(255, 220, 100, .45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .65), 0 0 22px rgba(255, 195, 50, .25);
}

.lobby-last-game small {
  color: #ffd875;
  font-size: .48rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lobby-last-game strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.lobby-last-game i {
  color: #ffc42e;
  filter: drop-shadow(0 0 6px rgba(255, 196, 46, .6));
}

/* Mode tiles */

.lobby-modes {
  min-width: 0;
}

.lobby-modes .mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.lobby-modes .mode-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 148px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 16px 14px;
  border: 1px solid var(--mode-color, rgba(255, 255, 255, .18));
  border-radius: 19px;
  color: #fff;
  background-color: #171227;
  background-position: center;
  background-size: cover;
  box-shadow: 0 14px 25px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .04);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.lobby-modes .mode-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 6, 19, .7) 0%, rgba(10, 6, 19, .14) 64%),
    linear-gradient(0deg, rgba(7, 5, 14, .84), transparent 68%);
  box-shadow: inset 0 -70px 60px rgba(4, 3, 11, .34);
  content: "";
}

.lobby-modes .mode-card::after {
  position: absolute;
  z-index: -2;
  inset: -2px;
  background: radial-gradient(circle at 75% 35%, var(--mode-glow, transparent), transparent 58%);
  content: "";
  opacity: .42;
}

.lobby-modes .mode-slots {
  --mode-color: rgba(178, 62, 255, .68);
  --mode-glow: rgba(187, 49, 255, .65);
  background-image: url("ui/sloty.png");
  background-position: 57% 50%;
}

.lobby-modes .mode-crates {
  --mode-color: rgba(56, 135, 255, .68);
  --mode-glow: rgba(36, 130, 255, .65);
  background-image: url("ui/skrzynki.png");
  background-position: 51% 48%;
}

.lobby-modes .mode-battles {
  --mode-color: rgba(255, 76, 55, .72);
  --mode-glow: rgba(255, 77, 42, .62);
  background-image: url("ui/battle.png");
  background-position: 53% 47%;
}


.lobby-modes .mode-card:hover {
  border-color: var(--mode-color);
  box-shadow: 0 20px 34px rgba(0, 0, 0, .42), 0 0 22px var(--mode-glow);
  filter: saturate(1.12) brightness(1.06);
  transform: translateY(-6px) scale(1.015);
}

.lobby-modes .mode-card > div {
  position: relative;
  z-index: 1;
}

.lobby-modes .mode-card strong {
  color: #fff;
  font-size: clamp(.9rem, 1.3vw, 1.22rem);
  font-weight: 1000;
  letter-spacing: -.02em;
  text-shadow: 0 3px 5px #000, 0 0 18px var(--mode-glow);
  text-transform: uppercase;
}

.lobby-modes .mode-card small {
  display: block;
  max-width: 155px;
  overflow: hidden;
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: #dce1ef;
  background: rgba(6, 6, 15, .58);
  font-size: .52rem;
  font-weight: 750;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px #000;
  white-space: nowrap;
}

.mode-enter {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  color: #fff3c6;
  background: rgba(10, 8, 18, .65);
  font-size: .68rem;
  transition: transform .18s ease, background .18s ease;
}

.mode-card:hover .mode-enter {
  background: color-mix(in srgb, var(--mode-color) 38%, rgba(10, 8, 18, .75));
  transform: translateX(3px);
}

/* Right rail */

.lobby-right-column {
  display: grid;
  min-width: 0;
  grid-template-rows: 128px minmax(330px, 1fr) minmax(235px, auto);
  gap: 16px;
}

.lobby-right-column > .panel-card {
  border: 1px solid rgba(233, 32, 79, .3);
  border-radius: 22px;
  background: #121212 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .6);
}

.daily-reward-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  grid-template-rows: 1fr auto;
  gap: 0 8px;
  overflow: hidden;
  padding: 14px 12px 13px 18px;
  border-color: rgba(162, 70, 255, .42) !important;
  background:
    radial-gradient(circle at 86% 42%, rgba(118, 44, 214, .39), transparent 44%),
    linear-gradient(145deg, #16102a, #0d0b1d) !important;
}

.daily-reward-card::after {
  position: absolute;
  z-index: -1;
  right: -28px;
  bottom: -38px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(117, 45, 210, .17);
  filter: blur(18px);
  content: "";
}

.daily-reward-card p {
  margin: 0;
  color: #ffd35e;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.daily-reward-card h3 {
  max-width: 165px;
  margin: 7px 0 0;
  color: #fff;
  font-size: .65rem;
  line-height: 1.35;
}

.daily-reward-card > img {
  position: absolute;
  z-index: 0;
  right: -4px;
  bottom: -17px;
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .48));
  transform: rotate(-3deg);
}

.daily-reward-card button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 112px;
  height: 48px;
  grid-column: 1;
  place-items: center;
  margin-top: 5px;
  overflow: hidden;
  border: 0;
  color: #261400;
  background: url("newfronted/ui/colllectbutton.png") center 50% / 112px 112px no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 7px 6px rgba(0, 0, 0, .42));
  font-size: .62rem;
  font-weight: 1000;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: filter .15s ease, transform .15s ease;
}

.daily-reward-card button:hover {
  filter: brightness(1.1) drop-shadow(0 9px 7px rgba(0, 0, 0, .45));
  transform: translateY(-2px);
}

.daily-reward-card button:active {
  transform: translateY(3px);
}

.daily-reward-card button.claimed {
  filter: grayscale(.75) brightness(.75);
}

.lobby-event-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px 14px 16px;
  background:
    linear-gradient(180deg, transparent 42%, rgba(6, 5, 13, .38) 58%, rgba(7, 6, 15, .98) 84%),
    url("newfronted/ui/eventincoming.png") center 45% / cover no-repeat !important;
}

.lobby-event-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), transparent 45%, rgba(3, 3, 8, .6));
  content: "";
}

.event-countdown {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr 9px);
  align-items: end;
  margin-top: auto;
  padding: 10px 5px 7px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.event-countdown > span {
  display: grid;
  place-items: center;
}

.event-countdown > span:nth-of-type(4) {
  grid-column: 7;
}

.event-countdown > i:last-of-type {
  grid-column: 6;
}

.event-countdown small {
  color: #aaa8b5;
  font-size: .42rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.event-countdown strong {
  margin-top: 5px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.event-countdown > i {
  align-self: end;
  margin-bottom: 1px;
  color: #eee6db;
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 900;
}

.lobby-event-card > button {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(190px, 82%);
  height: 64px;
  place-items: center;
  margin-top: 3px;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: url("newfronted/ui/eventbutton.png") center 50% / 170px 170px no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 8px 7px rgba(0, 0, 0, .45));
  font-size: .65rem;
  font-weight: 1000;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-shadow: 0 2px 3px rgba(74, 0, 11, .65);
  transition: filter .15s ease, transform .15s ease;
}

.lobby-event-card > button:hover {
  filter: brightness(1.12) drop-shadow(0 10px 9px rgba(0, 0, 0, .48));
  transform: translateY(-2px);
}

.lobby-event-card > button:active {
  transform: translateY(3px);
}

.lobby-friends {
  min-height: 235px;
  overflow: hidden;
  padding: 14px 13px;
}

.lobby-friends > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 3px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.lobby-friends h3 {
  margin: 0;
  color: #ffd65f;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.lobby-friends > header button {
  padding: 4px;
  border: 0;
  color: #b4b9cf;
  background: transparent;
  box-shadow: none;
  font-size: .47rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lobby-friends > header button:hover {
  color: #fff;
}

.lobby-friends .compact-list {
  display: grid;
  gap: 0;
}

.lobby-friends .compact-friend {
  display: grid;
  min-height: 53px;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.lobby-friends .compact-friend .avatar {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 2px solid #d94f91;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #463164, #15162c);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .4);
  font-size: .68rem;
  font-weight: 900;
}

.lobby-friends .compact-friend .avatar::after {
  position: absolute;
  right: -3px;
  bottom: 0;
  width: 9px;
  height: 9px;
  border: 2px solid #0b0c19;
  border-radius: 50%;
  background: #27d682;
  box-shadow: 0 0 7px rgba(39, 214, 130, .7);
  content: "";
}

.lobby-friends .compact-friend > span:nth-child(2) {
  min-width: 0;
}

.lobby-friends .compact-friend strong,
.lobby-friends .compact-friend small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-friends .compact-friend strong {
  color: #f0f1f7;
  font-size: .59rem;
  font-weight: 850;
}

.lobby-friends .compact-friend small {
  margin-top: 3px;
  color: #969db7;
  font-size: .48rem;
}

.lobby-friends .compact-friend button {
  display: grid;
  width: 28px;
  height: 28px;
  overflow: hidden;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 216, 119, .16);
  border-radius: 9px;
  color: transparent;
  background: rgba(255, 255, 255, .035);
  box-shadow: none;
  font-size: 0;
}

.lobby-friends .compact-friend button::after {
  color: #d6c790;
  content: "\f054";
  font-family: "Font Awesome 7 Free";
  font-size: .55rem;
  font-weight: 900;
}

.lobby-friends .compact-friend button:hover {
  border-color: rgba(255, 216, 119, .4);
  background: rgba(255, 205, 72, .09);
}

/* Bottom game dock */

.game-bottom-dock {
  position: fixed;
  z-index: 330;
  right: auto;
  bottom: 0;
  left: calc(var(--hub-sidebar-width) + (100vw - var(--hub-sidebar-width)) / 2);
  display: grid;
  width: min(880px, calc(100vw - var(--hub-sidebar-width) - 90px));
  height: 104px;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0;
  padding: 12px 24px 7px;
  border: 1px solid rgba(233, 32, 79, .4);
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
  background: #000000;
  box-shadow: 0 -10px 34px rgba(0, 0, 0, .95);
  transform: translateX(-50%);
}

.game-bottom-dock::before,
.game-bottom-dock::after {
  position: absolute;
  top: 20px;
  width: 110px;
  height: 48px;
  border-top: 2px solid rgba(255, 222, 177, .12);
  content: "";
  pointer-events: none;
}

.game-bottom-dock::before {
  right: 100%;
  border-radius: 0 80% 0 0;
}

.game-bottom-dock::after {
  left: 100%;
  border-radius: 80% 0 0;
}

.game-bottom-dock a,
.game-bottom-dock button {
  position: relative;
  display: grid;
  min-width: 0;
  height: 82px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 5px 8px;
  border: 0;
  color: #aeb4cf;
  background: transparent;
  box-shadow: none;
  font-size: .62rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease, transform .18s ease;
}

.game-bottom-dock a > i,
.game-bottom-dock button > i {
  color: #9da6c5;
  font-size: 1.55rem;
  filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .52));
}

.game-bottom-dock a:hover,
.game-bottom-dock button:hover {
  color: #fff;
  transform: translateY(-4px);
}

.game-bottom-dock a:hover > i,
.game-bottom-dock button:hover > i {
  color: #fff1c5;
}

.game-bottom-dock a.active:not(.dock-lobby) {
  color: #ffe78c;
}

.game-bottom-dock a.active:not(.dock-lobby) > i {
  color: #ffd75d;
}

.game-bottom-dock .dock-lobby {
  isolation: isolate;
  height: 118px;
  margin-top: -33px;
  color: #fff3c7;
  transform: none;
}

.game-bottom-dock .dock-lobby::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 126px;
  height: 104px;
  border: 2px solid #e9204f;
  border-radius: 50% 50% 30% 30%;
  background: #e9204f;
  box-shadow: 0 0 22px rgba(233, 32, 79, .6);
  content: "";
  transform: translateX(-50%);
}

.game-bottom-dock .dock-lobby > i {
  color: #ffffff;
  font-size: 2.05rem;
  filter: drop-shadow(0 0 13px rgba(255, 255, 255, .8)) drop-shadow(0 6px 4px rgba(0, 0, 0, .45));
}

.game-bottom-dock .dock-lobby > span {
  position: relative;
  padding: 5px 11px;
  border-radius: 8px;
  color: #ffffff;
  background: #e9204f;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .4);
}

.game-bottom-dock b {
  position: absolute;
  top: 5px;
  right: 20%;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid #151627;
  border-radius: 50%;
  color: #fff;
  background: #e8424d;
  font-size: .5rem;
}

/* Other hub routes keep their usable content area with the new shell. */

.hub-route-content > .hub-view:not(.lobby-home) {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: 16px 6px 28px;
}

/* Responsive behavior */

@media (max-width: 1500px) {
  .hub-app {
    --hub-sidebar-width: 118px;
  }

  .game-sidebar {
    padding-inline: 8px;
  }

  .game-sidebar .sidebar-profile {
    padding-inline: 7px;
  }

  .game-sidebar .sidebar-avatar {
    flex-basis: 49px;
    width: 49px;
    height: 49px;
  }

  .game-sidebar-nav a {
    min-height: 78px;
  }

  .game-sidebar-nav .nav-icon {
    font-size: 1.35rem;
  }

  .lobby-screen {
    grid-template-columns: minmax(0, 1fr) 292px;
  }

  .game-topbar .currency-chip {
    width: 235px;
  }

  .lobby-missions {
    width: 275px;
  }

  .lobby-modes .mode-card {
    min-height: 135px;
  }
}

@media (max-width: 1199px) {
  .lobby-screen {
    grid-template-columns: minmax(0, 1fr);
  }

  .lobby-right-toggle {
    display: grid !important;
  }

  .lobby-right-column {
    position: fixed;
    z-index: 520;
    top: 94px;
    right: 12px;
    bottom: 18px;
    display: grid;
    width: min(330px, calc(100vw - 24px));
    max-height: calc(100dvh - 112px);
    grid-template-rows: 128px minmax(330px, 1fr) minmax(235px, auto);
    overflow-y: auto;
    padding: 3px 4px 22px;
    opacity: 0;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .62));
    pointer-events: none;
    transform: translateX(calc(100% + 24px));
    transition: opacity .22s ease, transform .3s cubic-bezier(.2, .75, .2, 1);
  }

  .hub-app.lobby-rail-open .lobby-right-column {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .lobby-stage {
    height: clamp(520px, calc(100vh - 300px), 680px);
  }

  .game-bottom-dock {
    width: min(820px, calc(100vw - var(--hub-sidebar-width) - 40px));
  }
}

@media (max-width: 900px) {
  .hub-app {
    --hub-sidebar-width: 0px;
    --hub-topbar-height: 94px;
  }

  .game-sidebar {
    width: min(150px, 84vw);
    transform: translateX(-110%);
  }

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

  .hub-main {
    margin-left: 0;
  }

  .game-topbar {
    min-height: var(--hub-topbar-height);
    gap: 10px;
    padding: 12px 14px 9px;
  }

  .game-topbar .mobile-menu-button {
    display: grid !important;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
  }

  .game-topbar .currency-chip {
    width: 205px;
    height: 68px;
    grid-template-columns: 56px minmax(0, 1fr) 40px;
    border-radius: 21px;
  }

  .game-topbar .currency-chip > img {
    width: 58px;
    height: 58px;
  }

  .game-topbar .currency-add {
    width: 38px;
    height: 43px;
  }

  .game-topbar .topbar-actions {
    gap: 7px;
  }

  .game-topbar .topbar-icon {
    width: 48px;
    height: 48px;
  }

  .game-topbar .topbar-actions > :nth-child(1),
  .game-topbar .topbar-actions > :nth-child(2) {
    display: none;
  }

  .hub-route-content {
    padding: 2px 14px 112px;
  }

  .lobby-stage {
    min-height: 530px;
    height: calc(100dvh - 250px);
    max-height: 680px;
  }

  .lobby-modes .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-modes .mode-card {
    min-height: 140px;
  }

  .game-bottom-dock {
    left: 50%;
    width: calc(100vw - 20px);
    height: 88px;
    padding-inline: 10px;
  }

  .game-bottom-dock a,
  .game-bottom-dock button {
    height: 68px;
    font-size: .55rem;
  }

  .game-bottom-dock .dock-lobby {
    height: 102px;
    margin-top: -26px;
  }

  .game-bottom-dock .dock-lobby::before {
    width: 100px;
    height: 91px;
  }
}

@media (max-width: 690px) {
  .hub-app {
    --hub-topbar-height: 82px;
  }

  .game-topbar {
    min-height: 82px;
    padding-inline: 9px;
  }

  .game-topbar .mobile-menu-button {
    flex-basis: 45px;
    width: 45px;
    height: 45px;
  }

  .game-topbar .topbar-wallet {
    flex: 1;
    gap: 7px;
  }

  .game-topbar .currency-chip {
    width: auto;
    height: 60px;
    flex: 1;
    grid-template-columns: 42px minmax(0, 1fr);
    padding-right: 8px;
    border-radius: 18px;
  }

  .game-topbar .currency-chip > img {
    width: 47px;
    height: 47px;
  }

  .game-topbar .currency-chip small {
    font-size: .44rem;
  }

  .game-topbar .currency-chip strong {
    font-size: .92rem;
  }

  .game-topbar .currency-add {
    display: none;
  }

  .game-topbar .topbar-actions {
    margin-left: 0;
  }

  .game-topbar .topbar-actions > :nth-child(3),
  .game-topbar .topbar-actions > :nth-child(4) {
    display: none;
  }

  .game-topbar .lobby-right-toggle {
    display: grid !important;
    width: 45px;
    height: 45px;
  }

  .hub-route-content {
    padding: 1px 8px 100px;
  }

  .lobby-main-column {
    gap: 10px;
  }

  .lobby-stage {
    min-height: 560px;
    height: calc(100dvh - 178px);
    max-height: 650px;
    border-radius: 20px;
  }

  .lobby-hostess-scene-fallback {
    object-position: 50% 50%;
  }

  .stage-portal {
    display: none;
  }

  .lobby-missions {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    padding: 11px;
    border-radius: 17px;
  }

  .lobby-missions header {
    margin-bottom: 7px;
  }

  .lobby-missions h3 {
    font-size: .7rem;
  }

  .lobby-missions .mission-stack {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .lobby-missions .mission-compact {
    min-height: 59px;
    grid-template-columns: 1fr;
    padding: 8px 9px;
  }

  .lobby-missions .mission-compact:nth-child(3) {
    display: none;
  }

  .lobby-missions .mission-reward {
    display: none;
  }

  .missions-all {
    min-height: 33px;
    margin-top: 7px;
    padding: 7px 10px;
    font-size: .5rem;
  }

  /* Pixi keeps the complete scene responsive at this breakpoint. */

  .lobby-play-area {
    bottom: 3px;
    left: 50%;
  }

  .lobby-play-button {
    width: 270px;
    height: 134px;
    font-size: 2.2rem;
  }

  .lobby-last-game {
    min-width: 220px;
    margin-top: -28px;
  }

  .lobby-modes .mode-grid {
    gap: 8px;
  }

  .lobby-modes .mode-card {
    min-height: 120px;
    padding: 11px;
    border-radius: 15px;
  }

  .lobby-modes .mode-card strong {
    font-size: .82rem;
  }

  .lobby-modes .mode-card small {
    max-width: 120px;
    margin-top: 5px;
    padding: 5px 6px;
    font-size: .45rem;
  }

  .mode-enter {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .lobby-right-column {
    top: 76px;
    bottom: 84px;
    max-height: calc(100dvh - 162px);
  }

  .game-bottom-dock {
    width: calc(100vw - 8px);
    height: 78px;
    padding: 7px 2px 4px;
    border-radius: 26px 26px 0 0;
  }

  .game-bottom-dock::before,
  .game-bottom-dock::after {
    display: none;
  }

  .game-bottom-dock a,
  .game-bottom-dock button {
    height: 62px;
    gap: 5px;
    padding-inline: 2px;
    font-size: .45rem;
  }

  .game-bottom-dock a > i,
  .game-bottom-dock button > i {
    font-size: 1.2rem;
  }

  .game-bottom-dock .dock-lobby {
    height: 88px;
    margin-top: -19px;
  }

  .game-bottom-dock .dock-lobby::before {
    width: 78px;
    height: 79px;
  }

  .game-bottom-dock .dock-lobby > i {
    font-size: 1.5rem;
  }

  .game-bottom-dock .dock-lobby > span {
    padding: 4px 7px;
  }
}

@media (max-width: 410px) {
  .game-topbar .currency-chip small {
    display: none;
  }

  .game-topbar .currency-chip {
    height: 53px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding-left: 1px;
  }

  .game-topbar .currency-chip > img {
    width: 42px;
    height: 42px;
  }

  .lobby-stage {
    min-height: 525px;
  }

  .lobby-missions .mission-compact strong {
    font-size: .54rem;
  }

  /* Pixi keeps the complete scene responsive at this breakpoint. */
}

@keyframes lobby-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lobby-currency-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

/* Hostess idle motion is driven by the Pixi ticker. */

@keyframes lobby-play-idle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.018); }
}

@keyframes lobby-button-shine {
  0%, 38% { left: -28%; opacity: 0; }
  50% { opacity: .7; }
  64%, 100% { left: 112%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lobby-home,
  .lobby-hostess-scene-fallback,
  .lobby-play-button,
  .lobby-play-button::after,
  .game-topbar .currency-chip > img {
    animation: none !important;
  }

  .game-sidebar,
  .hub-main,
  .lobby-right-column,
  .lobby-modes .mode-card,
  .lobby-play-button,
  .game-bottom-dock a {
    transition-duration: .01ms !important;
  }
}

.hub-reduced-motion .lobby-home,
.hub-reduced-motion .lobby-hostess-scene-fallback,
.hub-reduced-motion .lobby-play-button,
.hub-reduced-motion .lobby-play-button::after,
.hub-reduced-motion .game-topbar .currency-chip > img {
  animation: none !important;
}

/* Preserved utility actions from the previous hub shell. */
.game-sidebar-footer {
  grid-template-columns: repeat(2, 44px);
  gap: 8px;
}

.hub-app.sidebar-collapsed .game-sidebar-footer {
  grid-template-columns: 44px;
}

.hub-app.sidebar-collapsed .game-sidebar-footer #logout-button {
  display: none;
}

.lobby-global-search {
  position: absolute;
  z-index: 20;
  top: calc(100% - 10px);
  left: 24px;
  width: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: width .2s ease, opacity .2s ease;
}

.lobby-global-search:focus-within {
  width: min(360px, calc(100vw - 48px));
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
}

.lobby-global-search input {
  width: 100%;
  height: 46px;
  border-color: rgba(255, 213, 111, .38);
  border-radius: 14px;
  background: rgba(10, 10, 22, .97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .48);
}

@media (max-width: 900px) {
  .lobby-global-search {
    left: 12px;
  }
}
/* Keep the desktop dock inside the central column and above no content. */
@media (min-width: 1200px) {
  .game-bottom-dock {
    left: calc(var(--hub-sidebar-width) + (100vw - var(--hub-sidebar-width) - clamp(286px, 20vw, 334px) - 20px) / 2);
    width: min(860px, calc(100vw - var(--hub-sidebar-width) - clamp(286px, 20vw, 334px) - 100px));
  }
}

@media (min-width: 901px) and (max-width: 1500px) {
  .lobby-stage {
    min-height: 480px;
    height: clamp(480px, calc(100vh - 380px), 580px);
  }
}
@media (min-width: 901px) and (max-width: 1500px) {
  .lobby-stage {
    min-height: 350px;
    height: clamp(350px, calc(100vh - 350px), 520px);
  }

  .lobby-modes .mode-card {
    min-height: 120px;
  }
}
.lobby-main-column { align-content: start; }

/* Desktop lobby composition matched to the supplied mockup. */
@media (min-width: 1200px) {
  .hub-app {
    --hub-sidebar-width: clamp(118px, 7.7vw, 144px);
    --lobby-rail-width: clamp(320px, 19vw, 350px);
    --lobby-layout-gap: 18px;
  }

  .game-sidebar {
    overflow: visible;
    padding: 154px 10px 82px;
  }

  .game-sidebar .sidebar-profile {
    position: fixed;
    z-index: 390;
    top: 16px;
    left: 12px;
    width: clamp(286px, 17.5vw, 328px);
    min-height: 122px;
    padding: 14px 16px 13px;
    border: 1px solid rgba(233, 32, 79, .4);
    border-radius: 24px;
    background: #1b1b1b !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .8);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .game-sidebar .sidebar-profile-main {
    gap: 15px;
  }

  .game-sidebar .sidebar-avatar {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    max-width: 68px;
    max-height: 68px;
    border-radius: 20px;
  }

  .game-sidebar .sidebar-avatar > img:first-child {
    border-radius: 17px;
  }

  .sidebar-level-emblem {
    right: -11px;
    bottom: -13px;
    width: 41px;
    height: 41px;
  }

  .sidebar-level-emblem b {
    font-size: .72rem;
  }

  .game-sidebar .sidebar-profile-copy strong {
    max-width: 174px;
    font-size: 1.02rem;
  }

  .game-sidebar .sidebar-profile-copy > small {
    margin-top: 7px;
    font-size: .66rem;
  }

  .game-sidebar .online-dot {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .game-sidebar .compact-level {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 12px 0 0 84px;
  }

  .game-sidebar .compact-level > i {
    height: 8px;
  }

  .game-sidebar .compact-level small {
    font-size: .54rem;
  }

  .game-sidebar-nav {
    gap: 7px;
    padding: 0;
  }

  .game-sidebar-nav a {
    min-height: 91px;
  }

  .game-sidebar-footer {
    bottom: 16px;
  }

  .hub-app.sidebar-collapsed .game-sidebar .sidebar-profile {
    width: 70px;
    min-height: 88px;
    padding: 10px 5px;
  }

  .hub-app.sidebar-collapsed .game-sidebar .sidebar-avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
  }

  .hub-main:has(.lobby-home:not([hidden])) {
    position: relative;
    isolation: isolate;
  }

  .hub-main:has(.lobby-home:not([hidden]))::before {
    position: absolute;
    z-index: 0;
    top: -70px;
    right: -24px;
    left: -70px;
    height: 340px;
    background:
      linear-gradient(90deg, rgba(5, 7, 19, .5), transparent 22%, transparent 80%, rgba(5, 7, 19, .42)),
      url("hostessa/background/bg.png") center 8% / cover no-repeat;
    content: "";
    filter: blur(34px) brightness(.42) saturate(1.35);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .82) 56%, transparent 100%);
    opacity: .72;
    pointer-events: none;
    transform: scale(1.055);
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar {
    position: absolute;
    z-index: 270;
    top: 0;
    right: 0;
    left: 0;
    min-height: 112px;
    align-items: center;
    gap: 16px;
    padding: 18px calc(var(--lobby-rail-width) + 38px) 12px calc(clamp(286px, 17.5vw, 328px) - var(--hub-sidebar-width) + 98px);
    pointer-events: none;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar > * {
    pointer-events: auto;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-wallet {
    gap: 16px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip {
    width: clamp(240px, 15vw, 280px);
    height: 80px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip.rubies {
    width: clamp(220px, 13vw, 244px);
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-actions {
    gap: 10px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .hub-route-content {
    position: relative;
    z-index: 1;
    padding: 16px 14px 136px 18px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-screen {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) var(--lobby-rail-width);
    gap: var(--lobby-layout-gap);
    margin: 0;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-main-column {
    gap: 14px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage {
    min-height: 520px;
    height: clamp(520px, calc(100vh - 270px), 680px);
    overflow: visible;
    border: 0;
    border-radius: 30px;
    background: transparent;
    box-shadow:
      0 30px 70px rgba(0, 0, 0, .5),
      0 0 58px rgba(117, 45, 113, .2);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage::before {
    position: absolute;
    z-index: -1;
    inset: -24px;
    border-radius: 42px;
    background: url("hostessa/background/bg.png") center / cover no-repeat;
    content: "";
    filter: blur(30px) brightness(.7) saturate(1.22);
    opacity: .48;
    pointer-events: none;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-hostess-scene {
    inset: -16px;
    border-radius: 38px;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 4%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 4%, #000 94%, transparent 100%);
    mask-composite: intersect;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage-vignette {
    inset: -2px;
    border-radius: 30px;
    box-shadow:
      inset 0 0 95px rgba(4, 2, 10, .42),
      inset 0 -65px 85px rgba(4, 3, 12, .34);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-missions {
    top: 142px;
    left: 0;
    width: clamp(278px, 23%, 306px);
    border-color: rgba(255, 225, 193, .23);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 40%),
      rgba(9, 8, 17, .88);
    box-shadow:
      0 22px 46px rgba(0, 0, 0, .48),
      inset 0 1px rgba(255, 255, 255, .05);
    backdrop-filter: blur(14px) saturate(1.1);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-area {
    bottom: 4px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 144px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    position: relative;
    z-index: 280;
    grid-template-rows: 122px 340px 300px;
    gap: 18px;
    align-content: start;
  }

  .hub-main:has(.lobby-home:not([hidden])) .daily-reward-card {
    min-height: 122px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-event-card {
    min-height: 340px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-friends {
    min-height: 300px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-bottom-dock {
    left: calc(var(--hub-sidebar-width) + (100vw - var(--hub-sidebar-width) - var(--lobby-rail-width) - var(--lobby-layout-gap)) / 2);
    width: min(950px, calc(100vw - var(--hub-sidebar-width) - var(--lobby-rail-width) - 92px));
    height: 108px;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .hub-app {
    --lobby-rail-width: 292px;
  }

  .game-sidebar .sidebar-profile {
    width: 286px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar {
    padding-right: 320px;
    padding-left: 210px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip {
    width: 205px;
    height: 70px;
    grid-template-columns: 56px minmax(0, 1fr) 40px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip.rubies {
    width: 190px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip > img {
    width: 58px;
    height: 58px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-add {
    width: 38px;
    height: 44px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-actions {
    gap: 7px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-icon {
    width: 48px;
    height: 48px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage {
    min-height: 480px;
    height: clamp(480px, calc(100vh - 250px), 580px);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-missions {
    top: 118px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 120px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    grid-template-rows: 116px 318px 270px;
  }
}

/* Final desktop sizing after live comparison with the mockup. */
@media (min-width: 1501px) {
  .hub-app {
    --lobby-rail-width: 340px;
  }

  .game-sidebar {
    top: 154px;
    bottom: 94px;
    left: 12px;
    width: 124px;
    height: auto;
    min-height: 0;
    padding: 12px 8px 64px;
    border: 1px solid rgba(255, 218, 172, .2);
    border-radius: 24px;
  }

  .game-sidebar .sidebar-profile {
    width: 328px;
  }

  .game-sidebar-nav a {
    min-height: 88px;
  }

  .hub-app.sidebar-collapsed .game-sidebar {
    width: 70px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar {
    padding-right: 378px;
    padding-left: 288px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-wallet {
    gap: 14px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip {
    width: 244px;
    height: 72px;
    grid-template-columns: 60px minmax(0, 1fr) 44px;
    border-radius: 23px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip.rubies {
    width: 212px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip > img {
    width: 62px;
    height: 62px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip strong {
    font-size: 1.25rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-add {
    width: 42px;
    height: 46px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage {
    height: clamp(520px, calc(100vh - 305px), 645px);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-missions {
    left: 14px;
    width: 294px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    width: 310px;
    height: 128px;
    font-size: 2.48rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-last-game {
    min-width: 220px;
    margin-top: -27px;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .game-sidebar {
    top: 140px;
    bottom: 90px;
    left: 8px;
    width: 106px;
    height: auto;
    min-height: 0;
    padding: 10px 7px 62px;
    border: 1px solid rgba(255, 218, 172, .2);
    border-radius: 22px;
  }

  .game-sidebar-nav a {
    min-height: 76px;
  }

  .hub-app.sidebar-collapsed .game-sidebar {
    width: 68px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar {
    padding-left: 230px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip {
    width: 195px;
    height: 66px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip.rubies {
    width: 180px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    width: 286px;
    height: 120px;
    font-size: 2.25rem;
  }
}

/* Pixel-match adjustments from the 1712 x 918 browser comparison. */
@media (min-width: 1501px) {
  .hub-app {
    --lobby-layout-gap: 28px;
  }

  .game-sidebar {
    top: 165px;
  }

  .game-sidebar .sidebar-profile {
    min-height: 0;
    padding: 10px 14px 9px;
  }

  .game-sidebar .compact-level {
    gap: 4px;
    margin-top: 6px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-screen {
    width: calc(100% + 17px);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage {
    height: clamp(520px, calc(100vh - 312px), 638px);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-area {
    left: 60%;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    width: 296px;
    height: 118px;
    font-size: 2.35rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 151px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-friends {
    min-height: 310px;
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock {
    left: calc(var(--hub-sidebar-width) + (100vw - var(--hub-sidebar-width) - var(--lobby-rail-width)) / 2 + 80px);
    width: 930px;
  }
}
/* Cross-route wallet placement and final lobby polish from the latest visual review. */
@media (min-width: 1200px) {
  .game-topbar .topbar-wallet {
    margin-left: auto;
    gap: 12px;
  }

  .game-topbar .topbar-actions {
    margin-left: 0;
  }

  .game-topbar .currency-chip {
    width: 200px;
    height: 64px;
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    border-radius: 21px;
  }

  .game-topbar .currency-chip.rubies {
    width: 180px;
  }

  .game-topbar .currency-chip > img {
    width: 54px;
    height: 54px;
  }

  .game-topbar .currency-chip strong {
    font-size: 1.08rem;
  }

  .game-topbar .currency-add {
    width: 36px;
    height: 40px;
    border-radius: 11px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-wallet {
    margin-left: 0;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-actions {
    margin-left: auto;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .game-sidebar {
    top: 160px;
  }

  .game-sidebar-nav {
    gap: 2px;
  }

  .game-sidebar-nav a {
    min-height: 54px;
    gap: 4px;
    font-size: .51rem;
  }

  .game-sidebar-nav .nav-icon {
    height: 29px;
    font-size: 1.12rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar {
    padding-left: 246px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip {
    width: 182px;
    height: 60px;
    grid-template-columns: 48px minmax(0, 1fr) 32px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip.rubies {
    width: 166px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip > img {
    width: 50px;
    height: 50px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip strong {
    font-size: .9rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-add {
    width: 32px;
    height: 37px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-area {
    left: 57.5%;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    width: 258px;
    height: 104px;
    font-size: 2rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    transform: translateX(-6px);
  }
}

@media (min-width: 1501px) {
  .game-sidebar-nav {
    gap: 4px;
  }

  .game-sidebar-nav a {
    min-height: 67px;
    gap: 6px;
    font-size: .55rem;
  }

  .game-sidebar-nav .nav-icon {
    height: 34px;
    font-size: 1.28rem;
  }

  .game-sidebar-footer {
    bottom: 12px;
  }

  .hub-main:has(.lobby-home:not([hidden]))::before {
    filter: blur(28px) brightness(.56) saturate(1.3);
    opacity: .8;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar {
    padding-left: 310px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip {
    width: 218px;
    height: 64px;
    grid-template-columns: 54px minmax(0, 1fr) 36px;
    border-radius: 21px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip.rubies {
    width: 190px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip > img {
    width: 56px;
    height: 56px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip strong {
    font-size: 1.12rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-add {
    width: 36px;
    height: 40px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage::before {
    inset: -20px;
    filter: blur(23px) brightness(.86) saturate(1.17);
    opacity: .78;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-hostess-scene {
    -webkit-mask-image:
      linear-gradient(90deg, rgba(0, 0, 0, .34) 0%, #000 1.4%, #000 98.6%, rgba(0, 0, 0, .34) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, #000 2.4%, #000 97.2%, rgba(0, 0, 0, .26) 100%);
    mask-image:
      linear-gradient(90deg, rgba(0, 0, 0, .34) 0%, #000 1.4%, #000 98.6%, rgba(0, 0, 0, .34) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, #000 2.4%, #000 97.2%, rgba(0, 0, 0, .26) 100%);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage-vignette {
    background:
      linear-gradient(90deg, rgba(4, 3, 12, .2), transparent 25%, transparent 82%, rgba(4, 3, 12, .1)),
      linear-gradient(180deg, rgba(6, 4, 13, .02) 58%, rgba(5, 3, 10, .28) 100%);
    box-shadow:
      inset 0 0 54px rgba(4, 2, 10, .18),
      inset 0 -42px 60px rgba(4, 3, 12, .16);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-area {
    left: 58.5%;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    width: 270px;
    height: 108px;
    font-size: 2.12rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-last-game {
    min-width: 208px;
    margin-top: -25px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    transform: translateX(-8px);
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .game-sidebar-footer {
    bottom: 8px;
  }
}
/* Final scene cleanup: lower artwork, remove the dark frame, and compact the wallet. */
@media (min-width: 1200px) {
  .game-topbar .currency-chip {
    width: 190px;
    height: 58px;
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    border-radius: 19px;
  }

  .game-topbar .currency-chip.rubies {
    width: 170px;
  }

  .game-topbar .currency-chip > img {
    width: 50px;
    height: 50px;
  }

  .game-topbar .currency-chip strong {
    font-size: .9rem;
  }

  .game-topbar .currency-add {
    width: 32px;
    height: 36px;
    border-radius: 10px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-wallet {
    margin-left: auto;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-actions {
    margin-left: 0;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage {
    border-radius: 0;
    background: url("hostessa/background/bg.png") center / cover no-repeat;
    box-shadow: none;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage::before {
    display: none;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-hostess-scene {
    inset: 0;
    border-radius: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-hostess-scene-fallback {
    object-position: 50% calc(50% + 18px);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage-vignette {
    display: none;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip {
    width: 170px;
    height: 54px;
    grid-template-columns: 44px minmax(0, 1fr) 30px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip.rubies {
    width: 154px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip > img {
    width: 46px;
    height: 46px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip strong {
    font-size: .82rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-add {
    width: 30px;
    height: 34px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    width: 228px;
    height: 90px;
    font-size: 1.75rem;
  }
}

@media (min-width: 1501px) {
  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip {
    width: 190px;
    height: 58px;
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    border-radius: 19px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip.rubies {
    width: 170px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip > img {
    width: 50px;
    height: 50px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-chip strong {
    font-size: .9rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .currency-add {
    width: 32px;
    height: 36px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    width: 238px;
    height: 94px;
    font-size: 1.88rem;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-last-game {
    min-width: 194px;
    margin-top: -22px;
  }
}
/* Keep the animated scene clean: navigation stays in the mode cards below. */
.lobby-stage .stage-portal {
  display: none !important;
}

/* Soft, image-colored edge blend without a dark frame. */
@media (min-width: 1200px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage {
    overflow: visible;
    background: transparent;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage::before {
    display: block;
    inset: -24px;
    border-radius: 28px;
    background: url("hostessa/background/bg.png") center / cover no-repeat;
    filter: blur(28px) brightness(.9) saturate(1.22);
    opacity: .7;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-hostess-scene {
    inset: -3px;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    -webkit-mask-image:
      linear-gradient(90deg, rgba(0, 0, 0, .12) 0%, #000 3%, #000 97%, rgba(0, 0, 0, .12) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, #000 2.5%, #000 95.5%, rgba(0, 0, 0, .1) 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, rgba(0, 0, 0, .12) 0%, #000 3%, #000 97%, rgba(0, 0, 0, .12) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, #000 2.5%, #000 95.5%, rgba(0, 0, 0, .1) 100%);
    mask-composite: intersect;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage-vignette {
    display: block;
    inset: -3px;
    border-radius: 0;
    background:
      radial-gradient(circle at 19% 20%, rgba(255, 161, 68, .07), transparent 34%),
      radial-gradient(circle at 84% 28%, rgba(123, 64, 220, .08), transparent 38%);
    box-shadow: none;
    mix-blend-mode: screen;
    opacity: .9;
  }
}
/* Desktop lobby is a fixed, single-screen composition. Other routes remain scrollable. */
@media (min-width: 1200px) {
  html:has(.lobby-home:not([hidden])),
  body.hub-authenticated:has(.lobby-home:not([hidden])) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.hub-authenticated:has(.lobby-home:not([hidden])) .hub-app,
  body.hub-authenticated:has(.lobby-home:not([hidden])) .hub-main {
    height: 100dvh;
    min-height: 0;
    overflow: clip;
  }
}

/* Fill the desktop lobby footer space without changing the scene or typography. */
@media (min-width: 1501px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 169px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    grid-template-rows: 122px 340px 328px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-friends {
    min-height: 328px;
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock {
    width: min(1020px, calc(100vw - var(--hub-sidebar-width) - var(--lobby-rail-width) - 48px));
    background:
      radial-gradient(ellipse at 50% -8%, rgba(126, 74, 179, .18), transparent 60%),
      linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 15%),
      linear-gradient(180deg, #171729, #0b0d1c 70%);
    box-shadow:
      0 -14px 44px rgba(10, 5, 24, .66),
      0 -3px 34px rgba(105, 59, 154, .13),
      inset 0 3px 0 rgba(255, 255, 255, .04),
      inset 0 0 0 2px rgba(0, 0, 0, .32);
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock::before,
  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock::after {
    width: 130px;
    border-top-color: rgba(199, 171, 221, .13);
  }
}

@media (min-width: 1200px) and (max-width: 1500px) and (min-height: 850px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 136px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    grid-template-rows: 116px 318px 288px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-friends {
    min-height: 288px;
  }
}

/* Compact floating desktop dock; the reclaimed height belongs to lobby content. */
@media (min-width: 1200px) {
  html:has(.lobby-home:not([hidden])),
  body.hub-authenticated:has(.lobby-home:not([hidden])),
  body.hub-authenticated:has(.lobby-home:not([hidden])) .hub-app,
  body.hub-authenticated:has(.lobby-home:not([hidden])) .hub-main {
    width: 100vw;
    scrollbar-gutter: auto;
  }

  html:has(.lobby-home:not([hidden])) {
    scrollbar-gutter: auto;
  }

  .hub-main:has(.lobby-home:not([hidden])) .hub-route-content {
    padding-bottom: 92px;
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock {
    height: 80px;
    padding: 7px 24px 4px;
    border-radius: 36px 36px 0 0;
    background:
      radial-gradient(ellipse at 50% -12%, rgba(139, 82, 187, .17), transparent 56%),
      linear-gradient(180deg, rgba(34, 31, 55, .92), rgba(9, 10, 23, .94) 72%);
    box-shadow:
      0 -10px 30px rgba(8, 4, 20, .48),
      0 -2px 25px rgba(105, 59, 154, .1),
      inset 0 2px 0 rgba(255, 255, 255, .04),
      inset 0 0 0 1px rgba(0, 0, 0, .25);
    backdrop-filter: blur(16px) saturate(1.12);
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock::before,
  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock::after {
    top: 13px;
    height: 34px;
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock a,
  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock button {
    height: 62px;
    gap: 3px;
    padding: 3px 8px;
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock .dock-lobby {
    height: 94px;
    margin-top: -20px;
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock .dock-lobby::before {
    width: 108px;
    height: 88px;
    border-radius: 48% 48% 28% 28%;
    box-shadow:
      0 0 20px rgba(255, 178, 41, .4),
      inset 0 3px rgba(255, 246, 192, .2),
      0 6px 0 rgba(34, 18, 10, .68);
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock .dock-lobby > i {
    font-size: 1.8rem;
  }

  .hub-app:has(.lobby-home:not([hidden])) .game-bottom-dock .dock-lobby > span {
    padding: 4px 9px;
  }
}

@media (min-width: 1501px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 195px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    grid-template-rows: 122px 340px 354px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-friends {
    min-height: 354px;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 132px;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) and (min-height: 850px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 158px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    grid-template-rows: 116px 318px 310px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-friends {
    min-height: 310px;
  }
}

/* Local product typography: rounded UI, display accents, and calm microcopy. */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fredoka-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/nunito-sans-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/nunito-sans-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Titan One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/titan-one-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Titan One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/titan-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-ui: "Fredoka", "Arial Rounded MT Bold", Arial, sans-serif;
  --font-display: "Titan One", "Fredoka", "Arial Rounded MT Bold", Arial, sans-serif;
  --font-micro: "Nunito Sans", "Fredoka", Arial, sans-serif;
  font-family: var(--font-ui);
}

body,
button,
input,
textarea,
select,
.hub-app,
.dashboard,
.tg-game {
  font-family: var(--font-ui);
}

body {
  font-weight: 600;
}

.lobby-play-button,
.lobby-modes .mode-card strong,
.mode-grid .mode-card strong,
.game-tile h3,
.spin-button > span,
.tera-play-button {
  font-family: var(--font-display);
  font-weight: 400;
}

small,
.lobby-modes .mode-card small,
.lobby-last-game small,
.lobby-friends .compact-friend small,
.lobby-friends .compact-empty,
.game-topbar .currency-chip span {
  font-family: var(--font-micro);
  font-weight: 600;
}

/* Desktop optical alignment for the play artwork and wallet add controls. */
@media (min-width: 1200px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    background-position: center 47%;
  }

  .game-topbar .currency-add {
    align-self: center;
    justify-self: center;
    font-size: .96rem;
    transform: translateY(-2px);
  }

  .game-topbar .currency-add:hover {
    transform: translateY(-4px);
  }

  .game-topbar .currency-add:active {
    transform: translateY(1px);
  }

  .game-topbar .currency-add > i {
    line-height: 1;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    height: 100px;
  }

  .game-topbar .currency-add {
    width: 27px;
    height: 31px;
    border-radius: 9px;
    font-size: .9rem;
  }
}

@media (min-width: 1501px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-button {
    height: 104px;
  }

  .game-topbar .currency-add {
    width: 28px;
    height: 32px;
    border-radius: 9px;
  }
}

/* Permanent compact desktop rail layered over the lobby artwork. */
@media (min-width: 1200px) {
  .hub-app,
  .hub-app.sidebar-collapsed {
    --hub-sidebar-width: 0px;
  }

  .hub-main {
    margin-left: 0;
  }

  .hub-app .game-sidebar,
  .hub-app.sidebar-collapsed .game-sidebar {
    width: 70px;
    overflow: visible;
    padding-inline: 7px;
  }

  .hub-app .game-sidebar .sidebar-profile,
  .hub-app.sidebar-collapsed .game-sidebar .sidebar-profile {
    width: clamp(286px, 17.5vw, 328px);
    min-height: 122px;
    padding: 14px 16px 13px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .065), transparent 48%),
      rgba(9, 10, 20, .72);
  }

  .hub-app .game-sidebar .sidebar-profile-copy,
  .hub-app.sidebar-collapsed .game-sidebar .sidebar-profile-copy {
    display: block !important;
  }

  .hub-app .game-sidebar .compact-level,
  .hub-app.sidebar-collapsed .game-sidebar .compact-level {
    display: grid !important;
    margin: 12px 0 0 84px;
  }

  .hub-app .game-sidebar .sidebar-profile-main,
  .hub-app.sidebar-collapsed .game-sidebar .sidebar-profile-main {
    justify-content: flex-start;
  }

  .hub-app .game-sidebar .sidebar-avatar,
  .hub-app.sidebar-collapsed .game-sidebar .sidebar-avatar {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    max-width: 68px;
    max-height: 68px;
  }

  .game-sidebar-nav a {
    min-height: 62px;
    padding: 6px 4px;
  }

  .hub-app .game-sidebar-nav a > span,
  .hub-app.sidebar-collapsed .game-sidebar-nav a > span {
    position: absolute;
    z-index: 30;
    top: 50%;
    left: calc(100% + 12px);
    display: block !important;
    min-width: max-content;
    padding: 9px 13px;
    border: 1px solid rgba(255, 219, 159, .24);
    border-radius: 11px;
    color: #fff4d0;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .07), transparent 50%),
      rgba(12, 11, 24, .94);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .05);
    font-family: var(--font-ui);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .01em;
    opacity: 0;
    pointer-events: none;
    transform: translate(8px, -50%);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
    visibility: hidden;
    white-space: nowrap;
  }

  .hub-app .game-sidebar-nav a > span::before {
    position: absolute;
    top: 50%;
    right: 100%;
    border: 6px solid transparent;
    border-right-color: rgba(255, 219, 159, .24);
    content: "";
    transform: translateY(-50%);
  }

  .game-sidebar-nav a:hover > span,
  .game-sidebar-nav a:focus-visible > span {
    opacity: 1;
    transform: translate(0, -50%);
    transition-delay: 0s;
    visibility: visible;
  }

  .game-sidebar-footer {
    grid-template-columns: 44px;
  }

  .game-sidebar-footer [data-action="toggle-sidebar"] {
    display: none;
  }

  .hub-app .game-sidebar-footer #logout-button,
  .hub-app.sidebar-collapsed .game-sidebar-footer #logout-button {
    position: relative;
    display: grid !important;
  }

  .game-sidebar-footer #logout-button::after {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    padding: 8px 12px;
    border: 1px solid rgba(255, 219, 159, .2);
    border-radius: 10px;
    color: #fff4d0;
    background: rgba(12, 11, 24, .94);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .42);
    content: "Wyloguj";
    font-size: .62rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(8px, -50%);
    transition: opacity .16s ease, transform .16s ease;
    white-space: nowrap;
  }

  .game-sidebar-footer #logout-button:hover::after,
  .game-sidebar-footer #logout-button:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-missions {
    display: none !important;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes {
    width: calc(100% - 84px);
    margin-left: 84px;
  }

  .lobby-modes .mode-card strong {
    animation: none !important;
    filter: none !important;
    text-shadow: 0 3px 5px rgba(0, 0, 0, .95);
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .hub-app .game-sidebar,
  .hub-app.sidebar-collapsed .game-sidebar {
    width: 68px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 124px;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) and (min-height: 850px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 146px;
  }
}

@media (min-width: 1501px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-modes .mode-card {
    min-height: 178px;
  }
}

@media (min-width: 1200px) {
  .hub-app .game-sidebar-nav a:hover > span,
  .hub-app .game-sidebar-nav a:focus-visible > span,
  .hub-app.sidebar-collapsed .game-sidebar-nav a:hover > span,
  .hub-app.sidebar-collapsed .game-sidebar-nav a:focus-visible > span {
    opacity: 1;
    transform: translate(0, -50%);
    transition-delay: 0s;
    visibility: visible;
  }
}

.settings-panel .settings-logout-action {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: rgba(239, 93, 110, .48);
  color: #ffd9de;
  background: linear-gradient(180deg, rgba(122, 39, 52, .76), rgba(65, 22, 30, .92));
  box-shadow: 0 5px 0 rgba(31, 8, 13, .72);
  font-size: .64rem;
  font-weight: 700;
}

.settings-panel .settings-logout-action:hover {
  border-color: rgba(255, 131, 145, .7);
  background: linear-gradient(180deg, rgba(151, 47, 63, .84), rgba(77, 25, 35, .96));
  transform: translateY(-1px);
}

/* Keep the desktop dock centered and identical on every hub route. */
@media (min-width: 1200px) {
  body.hub-authenticated .hub-app .game-bottom-dock {
    left: 50vw !important;
    width: min(1020px, calc(100vw - 180px)) !important;
    height: 80px !important;
    padding: 7px 24px 4px;
    border-radius: 36px 36px 0 0;
    background: #121212;
    border: 1px solid #e9204f;
    border-bottom: 0;
    box-shadow: 0 -10px 34px rgba(0, 0, 0, .85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.hub-authenticated .hub-app .game-bottom-dock::before,
  body.hub-authenticated .hub-app .game-bottom-dock::after {
    top: 13px;
    width: 130px;
    height: 34px;
    border-top-color: rgba(233, 32, 79, .2);
  }

  body.hub-authenticated .hub-app .game-bottom-dock a,
  body.hub-authenticated .hub-app .game-bottom-dock button {
    height: 62px;
    gap: 3px;
    padding: 3px 8px;
    color: #9e9e9e;
  }

  body.hub-authenticated .hub-app .game-bottom-dock a:hover {
    color: #f3f3f3;
  }

  body.hub-authenticated .hub-app .game-bottom-dock .dock-lobby {
    height: 62px;
    margin-top: 0;
    color: #9e9e9e;
  }

  body.hub-authenticated .hub-app .game-bottom-dock .dock-lobby::before {
    display: none;
  }

  body.hub-authenticated .hub-app .game-bottom-dock .dock-lobby > i {
    color: #9e9e9e;
    font-size: 1.55rem;
    filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .52));
  }

  body.hub-authenticated .hub-app .game-bottom-dock .dock-lobby > span {
    padding: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
  }

  body.hub-authenticated .hub-app .game-bottom-dock .dock-lobby.active,
  body.hub-authenticated .hub-app .game-bottom-dock a.active {
    height: 94px;
    margin-top: -20px;
    color: #fff;
  }

  body.hub-authenticated .hub-app .game-bottom-dock .dock-lobby.active::before,
  body.hub-authenticated .hub-app .game-bottom-dock a.active::before {
    display: block;
    width: 108px;
    height: 88px;
    border-radius: 48% 48% 28% 28%;
    background: #e9204f;
    box-shadow:
      0 0 22px rgba(233, 32, 79, .5),
      inset 0 3px rgba(255, 255, 255, .3);
  }

  body.hub-authenticated .hub-app .game-bottom-dock .dock-lobby.active > i,
  body.hub-authenticated .hub-app .game-bottom-dock a.active > i {
    color: #fff;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 13px rgba(255, 255, 255, .7)) drop-shadow(0 6px 4px rgba(0, 0, 0, .45));
  }

  body.hub-authenticated .hub-app .game-bottom-dock .dock-lobby.active > span,
  body.hub-authenticated .hub-app .game-bottom-dock a.active > span {
    padding: 4px 9px;
    color: #fff;
    background: #e9204f;
    border-radius: 8px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .4);
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  body.hub-authenticated .hub-app .game-bottom-dock {
    width: min(860px, calc(100vw - 180px)) !important;
  }
}

/* Lobby composition without mode cards: center the animated scene and float the dock higher. */
@media (min-width: 1200px) {
  .hub-main:has(.lobby-home:not([hidden])) .game-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 250;
    pointer-events: none;
  }

  .hub-main:has(.lobby-home:not([hidden])) .game-topbar * {
    pointer-events: auto;
  }

  .hub-main:has(.lobby-home:not([hidden])) .hub-route-content {
    padding: 0 20px 80px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-screen {
    width: 100%;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-main-column {
    min-height: 0;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-stage {
    min-height: 0;
    height: calc(100dvh - 80px);
    max-height: none;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    height: 100%;
    grid-template-rows: 122px minmax(280px, 340px);
    gap: 18px;
    margin-top: 0;
    transform: none;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-friends,
  .lobby-friends {
    display: none !important;
  }

  body.hub-authenticated .hub-app .game-sidebar {
    left: 12px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-hostess-scene {
    inset: -3px -18px;
  }

  .hub-main:has(.lobby-home:not([hidden])) .lobby-play-area {
    bottom: 8px;
    left: 50vw;
  }

  body.hub-authenticated:has(.lobby-home:not([hidden])) .hub-app .game-bottom-dock {
    bottom: 0;
  }
}

@media (min-width: 1200px) and (max-height: 820px) {
}

/* ==========================================
   GAME HUD ENHANCEMENTS & MARQUEE TICKER
   ========================================== */

/* Live Marquee Ticker */
.lobby-marquee-ticker {
  position: absolute;
  top: clamp(118px, 16.5%, 148px);
  left: 50%;
  z-index: 10;
  width: min(520px, 55%);
  overflow: hidden;
  padding: 5px 14px;
  border: 1px solid rgba(233, 32, 79, .55);
  border-radius: 99px;
  color: #f3f3f3;
  background: rgba(27, 27, 27, .94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .8), 0 0 18px rgba(233, 32, 79, .3), inset 0 1px 1px rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: auto;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  animation: ticker-scroll 24s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-dot {
  color: rgba(233, 32, 79, .6);
}

.text-gold, .text-purple, .text-blue, .text-crimson { color: #e9204f; }

@keyframes ticker-scroll {
  0% { transform: translateX(30%); }
  100% { transform: translateX(-100%); }
}

/* Ambient Sparkles */
.lobby-sparkles {
  position: absolute;
  top: 0;
  left: 30%;
  z-index: 3;
  width: 40%;
  height: 180px;
  pointer-events: none;
}

.lobby-sparkles span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff4d79;
  box-shadow: 0 0 10px #e9204f, 0 0 20px #e9204f;
  opacity: 0;
  animation: sparkle-fall 4s ease-in-out infinite;
}

.lobby-sparkles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.lobby-sparkles span:nth-child(2) { left: 35%; animation-delay: 1.2s; }
.lobby-sparkles span:nth-child(3) { left: 60%; animation-delay: 2.1s; }
.lobby-sparkles span:nth-child(4) { left: 80%; animation-delay: 0.7s; }
.lobby-sparkles span:nth-child(5) { left: 92%; animation-delay: 3.0s; }

@keyframes sparkle-fall {
  0% { transform: translateY(0) scale(0.3); opacity: 0; }
  50% { opacity: 0.9; transform: translateY(80px) scale(1.2); }
  100% { transform: translateY(160px) scale(0.2); opacity: 0; }
}

/* Daily Reward Chest Pulse Animation */
.daily-reward-card .chest-animated {
  filter: drop-shadow(0 0 15px rgba(233, 32, 79, .4));
  animation: chest-pulse 3.2s ease-in-out infinite;
}

@keyframes chest-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.06) rotate(-2deg); }
  30% { transform: scale(1.06) rotate(2deg); }
  45% { transform: scale(1) rotate(0deg); }
}

.btn-claim-bonus {
  box-shadow: 0 0 18px rgba(233, 32, 79, .4), inset 0 1px 1px rgba(255, 255, 255, .3);
  animation: bonus-btn-glow 2.5s ease-in-out infinite alternate;
}

@keyframes bonus-btn-glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.25) drop-shadow(0 0 12px rgba(233, 32, 79, .6)); }
}

/* Dynamic Right Panel Tabs */
.friends-header-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-tab-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: #1b1b1b;
}

.panel-tab {
  padding: 5px 10px;
  border: 0;
  border-radius: 9px;
  color: #9e9e9e;
  background: transparent;
  font-size: .65rem;
  font-weight: 850;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.panel-tab.active {
  color: #f3f3f3;
  background: #e9204f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.btn-see-all {
  border: 0;
  color: #e9204f;
  background: transparent;
  font-size: .62rem;
  font-weight: 800;
  cursor: pointer;
}

/* Live Activity Feed List Items */
.live-feed-list {
  display: grid;
  gap: 8px;
  padding: 6px 0;
}

.live-activity-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(233, 32, 79, .2);
  border-radius: 11px;
  color: #f3f3f3;
  background: #121212;
  font-size: .65rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e9204f;
  box-shadow: 0 0 8px #e9204f;
}

.live-dot.gold { background: #e9204f; box-shadow: 0 0 8px #e9204f; }
.live-dot.purple { background: #ff4d79; box-shadow: 0 0 8px #ff4d79; }

/* ==========================================
   2-COLUMN CHARCOAL & ELECTRIC PINK SETTINGS SUITE
   ========================================== */

.lobby-marquee-ticker {
  display: none !important;
}

.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: none;
  animation: settings-fade-in .3s cubic-bezier(.18, .75, .25, 1) both;
}

.settings-panel[hidden] {
  display: none !important;
}

@keyframes settings-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.settings-suite-layout {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  width: min(1060px, 95vw);
  height: min(720px, 90vh);
  overflow: hidden;
  border: 1px solid rgba(233, 32, 79, .5);
  border-radius: 30px;
  color: #f3f3f3;
  background: #121212 !important;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, .95),
    0 0 50px rgba(233, 32, 79, .3);
  animation: settings-sheet-scale .35s cubic-bezier(.18, .75, .25, 1) both;
}

@keyframes settings-sheet-scale {
  from { transform: scale(.93) translateY(16px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Left Sidebar Navigation */
.settings-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px;
  border-right: 1px solid rgba(233, 32, 79, .2);
  background: #121212;
}

.settings-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(233, 32, 79, .18);
}

.brand-orb {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(233, 32, 79, .5);
  border-radius: 14px;
  color: #fff;
  background: #e9204f;
  box-shadow: 0 0 18px rgba(233, 32, 79, .45);
  font-size: 1.25rem;
}

.settings-brand .eyebrow {
  margin: 0;
  color: #ff4d79;
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .12em;
}

.settings-brand h3 {
  margin: 2px 0 0;
  color: #f3f3f3;
  font-size: .95rem;
  font-weight: 1000;
  letter-spacing: .02em;
}

.settings-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #9e9e9e;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all .2s ease;
}

.settings-nav-item .nav-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: #9e9e9e;
  background: #242424;
  font-size: .92rem;
  transition: all .2s ease;
}

.settings-nav-item .nav-text {
  min-width: 0;
  flex: 1;
}

.settings-nav-item .nav-text strong {
  display: block;
  overflow: hidden;
  color: #f3f3f3;
  font-size: .78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-nav-item .nav-text small {
  display: block;
  overflow: hidden;
  color: #7b84a5;
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-nav-item .nav-arrow {
  color: #555d78;
  font-size: .68rem;
  transition: transform .2s ease, color .2s ease;
}

.settings-nav-item:hover {
  border-color: rgba(233, 32, 79, .35);
  color: #fff;
  background: #1b1b1b;
}

.settings-nav-item:hover .nav-icon {
  border-color: rgba(233, 32, 79, .6);
  color: #fff;
  background: #e9204f;
}

.settings-nav-item:hover .nav-arrow {
  color: #e9204f;
  transform: translateX(3px);
}

.settings-nav-item.active {
  border-color: #e9204f;
  color: #fff;
  background: #e9204f;
  box-shadow: 0 8px 20px rgba(233, 32, 79, .4), inset 0 1px 1px rgba(255, 255, 255, .2);
}

.settings-nav-item.active .nav-icon {
  border-color: #fff;
  color: #e9204f;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .4);
}

.settings-nav-item.active .nav-arrow {
  color: #fff;
  transform: translateX(4px);
}

.settings-mini-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 32, 79, .3);
  border-radius: 18px;
  background: #121212;
}

.mini-avatar-ring {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #e9204f;
  border-radius: 50%;
  color: #fff;
  background: #1b1b1b;
  box-shadow: 0 0 10px rgba(233, 32, 79, .4);
  font-size: .88rem;
  font-weight: 1000;
}

.mini-profile-text strong {
  display: block;
  color: #f3f3f3;
  font-size: .78rem;
}

.mini-level-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ff4d79;
  font-size: .64rem;
  font-weight: 850;
}

/* Right Content Stage */
.settings-main-stage {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #121212 !important;
}

.settings-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.stage-badge {
  display: inline-block;
  margin-bottom: 3px;
  padding: 3px 9px;
  border: 1px solid rgba(233, 32, 79, .45);
  border-radius: 99px;
  color: #ff4d79;
  background: rgba(233, 32, 79, .15);
  font-size: .56rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.settings-stage-header h2 {
  margin: 0;
  color: #f3f3f3;
  font-size: 1.25rem;
  font-weight: 1000;
  letter-spacing: -.02em;
}

.close-settings-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  color: #9e9e9e;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  font-size: 1.15rem;
  transition: all .18s ease;
}

.close-settings-btn:hover {
  border-color: rgba(233, 32, 79, .6);
  color: #ff4d79;
  background: rgba(233, 32, 79, .2);
  transform: scale(1.06);
}

.settings-stage-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  scrollbar-color: rgba(233, 32, 79, .5) #1b1b1b;
  scrollbar-width: thin;
}

.settings-stage-scroll::-webkit-scrollbar {
  width: 8px;
}

.settings-stage-scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(233, 32, 79, .5);
}

/* Tab 1 Avatar Card Upgrade */
.avatar-upload-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px dashed rgba(233, 32, 79, .45);
  border-radius: 20px;
  background: rgba(233, 32, 79, .05);
  cursor: pointer;
  transition: all .2s ease;
}

.avatar-upload-card:hover {
  border-color: #e9204f;
  background: rgba(233, 32, 79, .12);
}

.avatar-halo-ring {
  position: relative;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 2px solid #e9204f;
  border-radius: 24px;
  box-shadow: 0 0 20px rgba(233, 32, 79, .4);
}

.profile-avatar-preview {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: #1b1b1b;
  font-size: 1.6rem;
  font-weight: 1000;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-info strong {
  display: block;
  color: #f3f3f3;
  font-size: .92rem;
}

.avatar-upload-info small {
  display: block;
  margin: 3px 0 10px;
  color: #9e9e9e;
  font-size: .68rem;
}

.btn-avatar-browse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid rgba(233, 32, 79, .6);
  border-radius: 10px;
  color: #fff;
  background: #e9204f;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Audio Mixer Card */
.settings-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audio-mixer-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(233, 32, 79, .25);
  border-radius: 18px;
  background: #1b1b1b;
}

.mixer-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mixer-header i {
  color: #e9204f;
  font-size: 1.3rem;
}

.mixer-header strong {
  display: block;
  color: #f3f3f3;
  font-size: .84rem;
}

.mixer-header small {
  color: #9e9e9e;
  font-size: .64rem;
}

.volume-badge {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid rgba(233, 32, 79, .5);
  border-radius: 8px;
  color: #fff;
  background: #e9204f;
  font-size: .75rem;
  font-weight: 1000;
}

.custom-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  accent-color: #e9204f;
  cursor: pointer;
}

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

/* Logout Button Card Section */
.logout-card-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(233, 32, 79, .18);
}

.settings-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(233, 32, 79, .6);
  border-radius: 14px;
  color: #fff;
  background: #e9204f;
  box-shadow: 0 6px 18px rgba(233, 32, 79, .35);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s ease;
}

.settings-logout-btn:hover {
  border-color: #ff3a69;
  color: #fff;
  background: #ff3a69;
  box-shadow: 0 8px 24px rgba(233, 32, 79, .5);
  transform: translateY(-2px);
}

/* Spin History Banner */
.history-stat-banner {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(233, 32, 79, .25);
  border-radius: 14px;
  color: #f3f3f3;
  background: #1b1b1b;
  font-size: .72rem;
}

.stat-chip i {
  color: #e9204f;
  font-size: 1.1rem;
}

.stat-chip strong {
  color: #fff;
}

@media (max-width: 860px) {
  .settings-suite-layout {
    grid-template-columns: 1fr;
    height: 92vh;
  }
  .settings-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .settings-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GLOBAL OVERRIDE: REMOVE ALL GREEN & BLUR ANIMATIONS (CHARCOAL #1b1b1b & #e9204f)
   ========================================================================== */

/* 1. Notification Drawer & Activity Center (Screenshot 1) */
.hub-drawer,
.drawer-overlay,
.notification-list,
.notification-item {
  background: #1b1b1b !important;
}

.notification-item.unread {
  border-color: rgba(233, 32, 79, .5) !important;
  background: rgba(233, 32, 79, .15) !important;
}

.notification-item > span,
.notification-item-icon,
.notification-icon {
  color: #ffffff !important;
  background: #e9204f !important;
  box-shadow: 0 0 10px rgba(233, 32, 79, .4) !important;
}

.notification-heading,
.drawer-section-title,
.drawer-header h2,
.notification-title,
.notification-filter button.active,
.compact-filters button.active,
.drawer-tools button.active {
  border-color: #e9204f !important;
  color: #e9204f !important;
}

.notification-filter button.active,
.compact-filters button.active {
  color: #ffffff !important;
  background: #e9204f !important;
}

.mark-all-read,
[data-action="mark-all-read"],
.drawer-footer-link,
.mark-all-read-btn {
  color: #e9204f !important;
  font-weight: 850 !important;
}

/* 2. Catalog Search & Filter Tabs (Screenshot 2) */
.catalog-toolbar .filter-tabs button.active,
.filter-tabs button.active,
[data-game-filter].active,
.filter-btn.active {
  border: 1px solid #e9204f !important;
  color: #ffffff !important;
  background: #e9204f !important;
  box-shadow: 0 4px 14px rgba(233, 32, 79, .4) !important;
}

.catalog-search input:focus,
#game-search:focus {
  border-color: #e9204f !important;
  box-shadow: 0 0 0 3px rgba(233, 32, 79, .2) !important;
}

/* 3. Game Stat Badges & Lobby Tags (Screenshot 3) */
.lobby-tags span i,
.lobby-tags span > i,
.lobby-tags span b {
  border: 1px solid #e9204f !important;
  color: #ffffff !important;
  background: #e9204f !important;
  box-shadow: 0 0 8px rgba(233, 32, 79, .4) !important;
}

.lobby-tags span {
  border: 1px solid rgba(233, 32, 79, .35) !important;
  color: #f3f3f3 !important;
  background: #121212 !important;
}

/* 5. Player Profile Card (Matching Left Panel Charcoal #1b1b1b) */
.sidebar-profile,
.game-sidebar .sidebar-profile {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #1b1b1b !important;
  border: 1px solid rgba(233, 32, 79, .4) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .85) !important;
}

.online-dot,
.game-sidebar .online-dot,
.live-dot.online {
  background: #e9204f !important;
  box-shadow: 0 0 10px #e9204f !important;
  border-color: #1b1b1b !important;
}

.compact-level > i b,
.sidebar-profile .compact-level i b {
  background: #e9204f !important;
  box-shadow: 0 0 10px rgba(233, 32, 79, .6) !important;
}

/* 6. Full Screen Animated Hostess Scene */
.hub-main:has(.lobby-home:not([hidden])) .hub-route-content {
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

html:has(body.hub-authenticated .lobby-home:not([hidden])),
body.hub-authenticated:has(.lobby-home:not([hidden])),
.hub-main:has(.lobby-home:not([hidden])) {
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}

.hub-view.lobby-home:not([hidden]) {
  animation: none !important;
  transform: none !important;
}

@media (max-width: 899px) {
  .hub-main:has(.lobby-home:not([hidden])) .lobby-missions,
  .lobby-home:not([hidden]) .lobby-missions {
    display: none !important;
  }
}

.hub-main:has(.lobby-home:not([hidden])) .lobby-stage,
.lobby-stage {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 0 !important;
}

.lobby-hostess-scene,
.lobby-hostess-scene-fallback,
.lobby-hostess-scene canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
}

.lobby-stage-vignette {
  opacity: .25 !important;
}

.hub-main:has(.lobby-home:not([hidden])) .lobby-screen {
  position: relative;
  z-index: 10;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  padding: 0 20px;
  pointer-events: none;
}

.hub-main:has(.lobby-home:not([hidden])) .lobby-screen * {
  pointer-events: auto;
}

/* 7. Bottom Dock & Panels matching Left Panel Charcoal Black (#1b1b1b / #121212) */
html,
body,
body.hub-authenticated,
.hub-app {
  background: #1b1b1b !important;
}

.game-bottom-dock,
body.hub-authenticated .hub-app .game-bottom-dock {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
  background: #121212 !important;
  border: 1px solid #e9204f !important;
  border-bottom: 0 !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .85) !important;
}

/* 8. Topbar Action Icons & Right Column Friends Panel (Solid Charcoal #121212, No Gradients/Transparency) */
.game-topbar .topbar-icon,
.topbar-icon {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #121212 !important;
  border: 1px solid rgba(233, 32, 79, .35) !important;
  color: #f3f3f3 !important;
}

.game-topbar .topbar-icon > i,
.topbar-icon > i {
  color: #f3f3f3 !important;
}

.game-topbar .topbar-icon:hover,
.topbar-icon:hover {
  border-color: #e9204f !important;
  color: #ffffff !important;
  background: #e9204f !important;
}

.game-topbar .topbar-icon:hover > i,
.topbar-icon:hover > i {
  color: #ffffff !important;
}

.currency-chip,
.game-topbar .currency-chip,
.game-topbar .currency-chip.rubies {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #121212 !important;
  border: 1px solid rgba(233, 32, 79, .35) !important;
}

.lobby-friends,
.lobby-right-column .lobby-friends,
.lobby-right-column > .panel-card:not(.lobby-event-card) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #121212 !important;
  border: 1px solid rgba(233, 32, 79, .35) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .6) !important;
}

.lobby-event-card,
.lobby-right-column .lobby-event-card {
  border: 1px solid rgba(233, 32, 79, .35) !important;
  background:
    linear-gradient(180deg, transparent 42%, rgba(6, 5, 13, .38) 58%, rgba(7, 6, 15, .98) 84%),
    url("newfronted/ui/eventincoming.png") center 45% / cover no-repeat !important;
}

/* 9. Topbar Controls Full Right + Daily Reward Directly Underneath Top-Right */
@media (min-width: 900px) {
  .game-topbar,
  .hub-main:has(.lobby-home:not([hidden])) .game-topbar {
    position: absolute !important;
    top: 16px !important;
    right: 24px !important;
    left: auto !important;
    z-index: 250 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: auto !important;
    padding: 0 !important;
  }

  .game-topbar .topbar-wallet,
  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-wallet {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .game-topbar .topbar-actions,
  .hub-main:has(.lobby-home:not([hidden])) .game-topbar .topbar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .lobby-right-column,
  .hub-main:has(.lobby-home:not([hidden])) .lobby-right-column {
    position: fixed !important;
    top: 106px !important;
    right: 24px !important;
    z-index: 240 !important;
    width: 340px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    height: auto !important;
    margin-top: 0 !important;
    transform: none !important;
  }
}




/* Shared PixiJS multiplayer world. The static map remains visible as a safe fallback. */
.multiplayer-world {
  overflow: hidden !important;
  background: #07111f !important;
  pointer-events: auto !important;
  touch-action: none;
}

.multiplayer-world-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-rows: 50% 50%;
  overflow: hidden;
  background: #07111f;
  transition: opacity .25s ease;
  pointer-events: none;
}

.multiplayer-world-fallback img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.multiplayer-world-fallback img:first-child { object-position: 50% 75%; }
.multiplayer-world-fallback img:last-child { object-position: 50% 10%; }
.multiplayer-world.is-ready .multiplayer-world-fallback { opacity: 0; }
.multiplayer-world.has-error .multiplayer-world-fallback { opacity: 1; }
.multiplayer-world .legacy-hostess-fallback { display: none !important; }

.multiplayer-world .multiplayer-world-canvas {
  position: absolute !important;
  z-index: 2;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  image-rendering: auto;
  cursor: crosshair;
  touch-action: none;
}

.multiplayer-world-status {
  position: absolute;
  z-index: 12;
  top: clamp(88px, 12vh, 128px);
  left: 50%;
  max-width: min(90vw, 420px);
  margin: 0;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 16, 27, .86);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
  font: 800 .86rem/1.2 "Nunito Sans", sans-serif;
  letter-spacing: .02em;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.multiplayer-world-status[data-state="offline"] {
  border-color: rgba(255, 193, 92, .55);
  color: #ffd58f;
}

.multiplayer-world-status[data-state="error"] {
  border-color: rgba(233, 32, 79, .65);
  color: #ffb4c4;
}

.multiplayer-world-status[hidden] { display: none !important; }

@media (max-width: 720px) {
  .multiplayer-world-status {
    top: 76px;
    font-size: .76rem;
  }
}

/* Decorative stage layers must never intercept pointer input intended for Pixi. */
.lobby-stage > .lobby-stage-vignette,
.lobby-stage > .lobby-sparkles,
.lobby-stage > .lobby-sparkles * {
  pointer-events: none !important;
}

/* Compact home navigation: the rail ends directly below the Crates item. */
@media (min-width: 1200px) {
  body.hub-authenticated:has(.lobby-home:not([hidden])) .game-sidebar {
    top: 16px !important;
    bottom: auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    padding: 0 7px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.hub-authenticated:has(.lobby-home:not([hidden])) .game-sidebar .sidebar-profile {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-left: -7px !important;
  }

  body.hub-authenticated:has(.lobby-home:not([hidden])) .game-sidebar-nav {
    flex: 0 0 auto !important;
    box-sizing: border-box;
    width: 70px;
    margin: 18px 0 0 -7px !important;
    padding: 10px 7px !important;
    border: 1px solid rgba(233, 32, 79, .3);
    border-radius: 20px;
    background: #121212;
    box-shadow: 12px 15px 34px rgba(0, 0, 0, .62);
  }

  body.hub-authenticated:has(.lobby-home:not([hidden])) .game-sidebar-footer {
    display: none !important;
  }
}

.world-chat {
  position: fixed;
  z-index: 350;
  left: 16px;
  bottom: 8px;
  display: grid;
  width: min(420px, calc(100vw - 118px));
  max-height: min(300px, calc(100dvh - 190px));
  padding: 12px;
  border: 1px solid rgba(233, 32, 79, .55);
  border-radius: 18px;
  color: #f5f5f5;
  background: rgba(18, 18, 18, .96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.world-chat > header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 8px;
}

.world-chat > header > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #e9204f;
}

.world-chat > header div { min-width: 0; flex: 1; }
.world-chat-toggle {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #ff527b;
  background: transparent;
  cursor: pointer;
}
.world-chat-toggle:hover { color: #fff; background: rgba(233, 32, 79, .18); }
.world-chat-toggle i { transition: transform .2s ease; }
.world-chat h3 {
  margin: 0;
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.05;
}
.world-chat header small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #9e9e9e;
  font-size: .61rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-chat-log {
  display: grid;
  gap: 5px;
  max-height: 112px;
  overflow: auto;
  margin: 0 0 8px;
  padding: 0 3px 0 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #e9204f transparent;
}

.world-chat-log:empty { display: none; }
.world-chat-log li {
  display: grid;
  grid-template-columns: 26px auto 1fr;
  align-items: start;
  gap: 6px;
  min-width: 0;
  font-size: .7rem;
  line-height: 1.3;
}
.world-chat-avatar {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(233, 32, 79, .65);
  border-radius: 50%;
  color: #fff;
  background: #e9204f;
  font-size: .62rem;
  font-weight: 950;
}
.world-chat-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world-chat-log strong {
  max-width: 92px;
  overflow: hidden;
  color: #ff6c8f;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.world-chat-log strong::after { content: ":"; }
.world-chat-log span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #ececec;
}

.world-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
}
.world-chat-form input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  outline: 0;
  color: #fff;
  background: #080808;
  font-size: .76rem;
  font-weight: 700;
}
.world-chat-form input:focus { border-color: #e9204f; }
.world-chat-form input::placeholder { color: #777; }
.world-chat-form button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #e9204f;
  cursor: pointer;
}
.world-chat-form button:hover { background: #ff3a69; }
.world-chat-form button:disabled,
.world-chat-form input:disabled { cursor: not-allowed; opacity: .55; }
.world-chat-status {
  min-height: 0;
  margin: 5px 2px 0;
  color: #ff9db4;
  font-size: .61rem;
  font-weight: 800;
}
.world-chat-status:empty { display: none; }
.world-chat.is-collapsed {
  width: 220px;
  max-height: none;
  padding: 9px 10px;
}
.world-chat.is-collapsed > header { margin-bottom: 0; }
.world-chat.is-collapsed > header > span { width: 30px; height: 30px; flex-basis: 30px; }
.world-chat.is-collapsed header small,
.world-chat.is-collapsed .world-chat-log,
.world-chat.is-collapsed .world-chat-form,
.world-chat.is-collapsed .world-chat-status { display: none; }
.world-chat.is-collapsed .world-chat-toggle i { transform: rotate(180deg); }

@media (min-width: 900px) and (max-width: 1199px) {
  .world-chat {
    left: 18px;
    width: min(390px, calc(100vw - 36px));
  }
}

@media (max-width: 899px) {
  .world-chat {
    right: 10px;
    bottom: 82px;
    left: 10px;
    width: auto;
    max-width: 440px;
    max-height: 185px;
    padding: 9px;
    border-radius: 15px;
  }
  .world-chat > header { margin-bottom: 7px; }
  .world-chat header small { display: none; }
  .world-chat-log { max-height: 68px; }
  .world-chat-form input { height: 36px; }
  .world-chat-form button { width: 36px; height: 36px; }
}
/* Lobby map must meet the viewport edge without legacy blurred background layers. */
body.hub-authenticated:has(.lobby-home:not([hidden])) .hub-main::before,
body.hub-authenticated:has(.lobby-home:not([hidden])) .lobby-stage::before,
body.hub-authenticated:has(.lobby-home:not([hidden])) .lobby-stage-vignette {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
}