:root {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #96a5b8;
  --quiet: #68778a;
  --bg: #050a14;
  --panel: rgba(8, 18, 32, 0.9);
  --panel-strong: rgba(6, 12, 24, 0.96);
  --line: rgba(71, 224, 208, 0.28);
  --line-strong: rgba(71, 224, 208, 0.58);
  --line-dim: rgba(69, 98, 126, 0.46);
  --cyan: #63ffe7;
  --teal: #2f8f8e;
  --blue: #6d91c7;
  --gold: #ffc85c;
  --violet: #7b5cf0;
  --coral: #ff7a72;
  --leaf: #62d98b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.55;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

h3 {
  font-size: 1.18rem;
}

.game-viewport {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 50, 50, 0.18), transparent 18%, transparent 78%, rgba(43, 38, 104, 0.22)),
    linear-gradient(180deg, #071321, #060b17 52%, #040813),
    var(--bg);
}

.game-viewport:fullscreen,
.game-viewport:-webkit-full-screen,
.game-viewport:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

.game-viewport::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(99, 255, 231, 0.22) 0 1px, transparent 1.5px);
  background-position: 18px 24px, 86px 112px;
  background-size: 128px 128px, 192px 192px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.game-viewport:not([data-active-panel="map"])::after {
  opacity: 0.32;
}

.world-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 16, 29, 0.16), rgba(6, 12, 22, 0.6)),
    url("../assets/bg-game.png") center / cover no-repeat,
    #07101d;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.world-layer::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(2, 7, 18, 0.1), rgba(3, 7, 16, 0.02) 28%, rgba(2, 5, 14, 0.66) 100%),
    linear-gradient(120deg, rgba(99, 255, 231, 0.2), transparent 30%, rgba(123, 92, 240, 0.24) 68%, rgba(255, 200, 92, 0.1));
  mix-blend-mode: screen;
}

.world-layer::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 255, 231, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 92, 240, 0.052) 1px, transparent 1px);
  background-size: 86px 86px, 86px 86px;
  content: "";
  mix-blend-mode: screen;
  opacity: 0.46;
}

.world-layer.is-dragging {
  cursor: grabbing;
}

.mapbox-map,
.mapbox-static-map,
.fallback-map,
.marker-layer {
  position: absolute;
  inset: 0;
}

.mapbox-map {
  z-index: 1;
  background: #08111f;
  filter: saturate(1.35) contrast(1.12) brightness(0.86) hue-rotate(14deg);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 240ms ease;
}

.world-layer .mapbox-map.mapboxgl-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.world-layer .mapbox-map .mapboxgl-canvas-container,
.world-layer .mapbox-map .mapboxgl-canvas {
  width: 100%;
  height: 100%;
}

.world-layer .mapbox-map .mapboxgl-ctrl-bottom-left {
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: min(280px, calc(100vw - 80px));
  opacity: 0.34;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
}

.world-layer .mapbox-map .mapboxgl-ctrl-bottom-left:hover,
.world-layer .mapbox-map .mapboxgl-ctrl-bottom-left:focus-within {
  opacity: 0.92;
}

.world-layer .mapbox-map .mapboxgl-ctrl-logo {
  width: 48px;
  height: 13px;
  margin: 0;
  background-size: 48px 13px;
  filter: brightness(0) saturate(100%);
  opacity: 0.46;
}

.world-layer .mapbox-map .mapboxgl-ctrl-attrib {
  min-height: 22px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: rgba(244, 247, 251, 0.42);
}

.world-layer .mapbox-map .mapboxgl-ctrl-attrib a {
  color: rgba(99, 255, 231, 0.92);
}

.world-layer .mapbox-map .mapboxgl-ctrl-attrib-button {
  background-color: transparent;
  opacity: 0.58;
  width: 22px;
  height: 22px;
}

.mapbox-static-map {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  filter: saturate(1.55) contrast(1.2) brightness(0.78) hue-rotate(20deg);
  opacity: 0;
  transform-origin: center;
  transition: opacity 240ms ease, filter 240ms ease;
  user-select: none;
  will-change: transform, opacity;
}

.world-layer.is-dragging .mapbox-static-map,
.world-layer.is-dragging .fallback-map,
.world-layer.is-dragging .marker-layer {
  transition: none;
}

.fallback-map {
  z-index: 0;
  width: 100%;
  height: 100%;
}

.world-layer.is-mapbox-ready .mapbox-map {
  opacity: 1;
}

.world-layer.is-mapbox-ready .fallback-map {
  opacity: 0;
  pointer-events: none;
}

.world-layer.is-mapbox-ready .mapbox-static-map {
  opacity: 0;
  pointer-events: none;
}

.world-layer.is-mapbox-static-ready .mapbox-static-map {
  opacity: 1;
}

.world-layer.is-mapbox-static-ready .fallback-map {
  opacity: 0;
}

.boot-splash {
  position: absolute;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(69, 107, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #01030a, #06101d 48%, #01030a);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 180ms ease, visibility 180ms ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  visibility: hidden;
}

.boot-splash * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.boot-splash.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  visibility: visible;
}

.boot-splash.is-exiting {
  animation: bootSplashExit 720ms cubic-bezier(0.2, 0.9, 0.28, 1) forwards;
  pointer-events: none;
}

.boot-splash-stars,
.boot-splash-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.boot-splash-stars {
  inset: -10%;
  background:
    radial-gradient(circle at 7% 18%, rgba(255, 255, 255, 0.54) 0 1px, transparent 1.7px),
    radial-gradient(circle at 14% 72%, rgba(99, 255, 231, 0.3) 0 0.8px, transparent 1.45px),
    radial-gradient(circle at 25% 39%, rgba(255, 255, 255, 0.32) 0 0.7px, transparent 1.35px),
    radial-gradient(circle at 38% 9%, rgba(99, 255, 231, 0.24) 0 0.85px, transparent 1.5px),
    radial-gradient(circle at 51% 84%, rgba(255, 255, 255, 0.28) 0 0.7px, transparent 1.32px),
    radial-gradient(circle at 66% 27%, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.7px),
    radial-gradient(circle at 78% 68%, rgba(134, 110, 255, 0.28) 0 0.86px, transparent 1.52px),
    radial-gradient(circle at 91% 13%, rgba(255, 255, 255, 0.38) 0 0.78px, transparent 1.44px),
    radial-gradient(circle at 98% 88%, rgba(99, 255, 231, 0.26) 0 0.76px, transparent 1.42px);
  filter: drop-shadow(0 0 5px rgba(99, 255, 231, 0.18));
  opacity: 0.72;
  animation: bootStarsFloat 7s ease-in-out infinite alternate;
}

.boot-splash-grid {
  inset: -18%;
  background-image:
    linear-gradient(rgba(99, 255, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 145, 199, 0.06) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse at 50% 48%, black 0 42%, transparent 70%);
  opacity: 0.5;
  transform: perspective(820px) rotateX(64deg) translateY(18%);
  animation: bootGridFlow 3600ms linear infinite;
}

.boot-splash-logo {
  position: relative;
  margin-left: clamp(-26px, -2.2vw, -12px);
  width: min(500px, 62vw);
  transform: translateY(-8px);
  animation: bootLogoReveal 1180ms cubic-bezier(0.16, 0.86, 0.24, 1.08) both, bootLogoHover 2600ms ease-in-out 1180ms infinite;
}

.boot-splash-logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  pointer-events: none;
  user-select: none;
}

.boot-splash-line {
  position: absolute;
  left: 50%;
  top: calc(50% + min(18vw, 128px));
  width: min(430px, 56vw);
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(99, 255, 231, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(14, 25, 39, 0.92), rgba(4, 10, 20, 0.96)),
    rgba(49, 70, 96, 0.38);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(99, 255, 231, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateX(-50%);
}

.boot-splash-line::before,
.boot-splash-line::after {
  position: absolute;
  inset: 3px;
  z-index: 2;
  border-radius: 3px;
  content: "";
  pointer-events: none;
}

.boot-splash-line::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 48%, rgba(0, 0, 0, 0.18));
  opacity: 0.62;
}

.boot-splash-line::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.34);
}

.boot-splash-line span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(99, 255, 231, 0.92), rgba(255, 255, 255, 0.95) 58%, rgba(255, 200, 92, 0.96)),
    var(--cyan);
  box-shadow:
    0 0 18px rgba(99, 255, 231, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: scaleX(0);
  transform-origin: left center;
  animation: bootLineCharge 2050ms cubic-bezier(0.16, 0.8, 0.24, 1) 220ms both;
}

.boot-splash-line span::after {
  position: absolute;
  top: -34%;
  right: -20px;
  width: 42px;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  content: "";
  filter: blur(1px);
  transform: skewX(-18deg);
}

.login-gate {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 0, 102, 0.36), transparent 46%),
    radial-gradient(circle at 82% 26%, rgba(0, 74, 102, 0.32), transparent 46%),
    radial-gradient(circle at 50% 45%, transparent 8%, rgba(0, 0, 0, 0.62) 86%),
    #060812;
  color: #fff;
  font-family: "Quicksand", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 240ms ease, visibility 240ms ease;
  visibility: visible;
}

.login-gate.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.login-gate::before {
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(circle at 6% 18%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.7px),
    radial-gradient(circle at 18% 72%, rgba(99, 255, 231, 0.36) 0 1px, transparent 1.7px),
    radial-gradient(circle at 31% 28%, rgba(255, 255, 255, 0.36) 0 1.25px, transparent 2px),
    radial-gradient(circle at 44% 84%, rgba(134, 110, 255, 0.38) 0 1px, transparent 1.8px),
    radial-gradient(circle at 57% 16%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.7px),
    radial-gradient(circle at 71% 62%, rgba(99, 255, 231, 0.28) 0 1.35px, transparent 2.15px),
    radial-gradient(circle at 83% 33%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.65px),
    radial-gradient(circle at 93% 77%, rgba(150, 0, 255, 0.32) 0 1.2px, transparent 2px),
    radial-gradient(circle at 11% 38%, rgba(255, 255, 255, 0.32) 0 0.7px, transparent 1.35px),
    radial-gradient(circle at 25% 91%, rgba(99, 255, 231, 0.22) 0 0.9px, transparent 1.55px),
    radial-gradient(circle at 36% 13%, rgba(255, 255, 255, 0.46) 0 0.8px, transparent 1.45px),
    radial-gradient(circle at 48% 67%, rgba(255, 255, 255, 0.25) 0 0.72px, transparent 1.32px),
    radial-gradient(circle at 61% 42%, rgba(134, 110, 255, 0.3) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 74% 88%, rgba(255, 255, 255, 0.38) 0 0.78px, transparent 1.45px),
    radial-gradient(circle at 87% 12%, rgba(99, 255, 231, 0.26) 0 0.9px, transparent 1.55px),
    radial-gradient(circle at 98% 53%, rgba(255, 255, 255, 0.34) 0 0.75px, transparent 1.35px),
    radial-gradient(circle at 3% 49%, rgba(255, 255, 255, 0.28) 0 0.68px, transparent 1.28px),
    radial-gradient(circle at 20% 6%, rgba(255, 255, 255, 0.36) 0 0.74px, transparent 1.36px),
    radial-gradient(circle at 33% 62%, rgba(99, 255, 231, 0.24) 0 0.72px, transparent 1.34px),
    radial-gradient(circle at 54% 78%, rgba(255, 255, 255, 0.3) 0 0.66px, transparent 1.26px),
    radial-gradient(circle at 78% 5%, rgba(255, 255, 255, 0.32) 0 0.7px, transparent 1.32px),
    radial-gradient(circle at 91% 96%, rgba(99, 255, 231, 0.24) 0 0.76px, transparent 1.42px);
  background-repeat: no-repeat;
  content: "";
  opacity: 0.68;
  transform: translate3d(0, 0, 0);
  animation: loginStarParallax 68s ease-in-out infinite alternate, loginStarShimmer 8.5s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.login-gate::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 18, 0.08), rgba(6, 8, 18, 0.26) 52%, rgba(2, 3, 8, 0.62)),
    radial-gradient(circle at 50% 70%, rgba(0, 229, 255, 0.08), transparent 36%);
  content: "";
  pointer-events: none;
}

.login-stars {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 9% 11%, rgba(255, 255, 255, 0.9) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 14% 48%, rgba(255, 255, 255, 0.38) 0 0.8px, transparent 1.5px),
    radial-gradient(circle at 23% 82%, rgba(99, 255, 231, 0.46) 0 1px, transparent 1.75px),
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.68) 0 1.15px, transparent 1.85px),
    radial-gradient(circle at 52% 58%, rgba(134, 110, 255, 0.38) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 67% 9%, rgba(255, 255, 255, 0.42) 0 0.9px, transparent 1.55px),
    radial-gradient(circle at 76% 74%, rgba(99, 255, 231, 0.5) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 88% 41%, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.7px),
    radial-gradient(circle at 96% 89%, rgba(255, 255, 255, 0.34) 0 0.8px, transparent 1.45px),
    radial-gradient(circle at 4% 88%, rgba(255, 255, 255, 0.46) 0 0.85px, transparent 1.5px),
    radial-gradient(circle at 17% 24%, rgba(99, 255, 231, 0.32) 0 0.75px, transparent 1.4px),
    radial-gradient(circle at 29% 56%, rgba(255, 255, 255, 0.58) 0 0.95px, transparent 1.65px),
    radial-gradient(circle at 41% 5%, rgba(255, 255, 255, 0.36) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 57% 91%, rgba(99, 255, 231, 0.38) 0 0.82px, transparent 1.52px),
    radial-gradient(circle at 64% 35%, rgba(255, 255, 255, 0.28) 0 0.68px, transparent 1.28px),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.62) 0 0.92px, transparent 1.6px),
    radial-gradient(circle at 81% 96%, rgba(134, 110, 255, 0.34) 0 0.86px, transparent 1.55px),
    radial-gradient(circle at 92% 63%, rgba(255, 255, 255, 0.44) 0 0.78px, transparent 1.42px),
    radial-gradient(circle at 7% 34%, rgba(255, 255, 255, 0.34) 0 0.72px, transparent 1.34px),
    radial-gradient(circle at 12% 71%, rgba(255, 255, 255, 0.26) 0 0.68px, transparent 1.25px),
    radial-gradient(circle at 34% 36%, rgba(99, 255, 231, 0.3) 0 0.76px, transparent 1.42px),
    radial-gradient(circle at 47% 11%, rgba(255, 255, 255, 0.48) 0 0.85px, transparent 1.5px),
    radial-gradient(circle at 69% 82%, rgba(255, 255, 255, 0.32) 0 0.7px, transparent 1.32px),
    radial-gradient(circle at 84% 54%, rgba(99, 255, 231, 0.28) 0 0.74px, transparent 1.4px),
    radial-gradient(circle at 95% 17%, rgba(255, 255, 255, 0.4) 0 0.78px, transparent 1.42px),
    radial-gradient(circle at 6% 58%, rgba(255, 255, 255, 0.34) 0 0.72px, transparent 1.36px),
    radial-gradient(circle at 25% 14%, rgba(255, 255, 255, 0.26) 0 0.66px, transparent 1.24px),
    radial-gradient(circle at 45% 86%, rgba(99, 255, 231, 0.28) 0 0.74px, transparent 1.38px),
    radial-gradient(circle at 63% 3%, rgba(255, 255, 255, 0.42) 0 0.78px, transparent 1.42px),
    radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.3) 0 0.68px, transparent 1.28px);
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 5px rgba(99, 255, 231, 0.22));
  opacity: 0.76;
  animation: loginStarDrift 52s ease-in-out infinite alternate, loginStarPulse 7.8s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.login-stars::before,
.login-stars::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 7% 64%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 29% 7%, rgba(99, 255, 231, 0.42) 0 1px, transparent 1.75px),
    radial-gradient(circle at 46% 39%, rgba(255, 255, 255, 0.48) 0 0.9px, transparent 1.6px),
    radial-gradient(circle at 63% 91%, rgba(99, 255, 231, 0.35) 0 1.1px, transparent 1.85px),
    radial-gradient(circle at 82% 19%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.7px),
    radial-gradient(circle at 15% 4%, rgba(255, 255, 255, 0.26) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 22% 45%, rgba(99, 255, 231, 0.3) 0 0.82px, transparent 1.48px),
    radial-gradient(circle at 39% 77%, rgba(255, 255, 255, 0.54) 0 0.88px, transparent 1.58px),
    radial-gradient(circle at 55% 6%, rgba(134, 110, 255, 0.34) 0 0.8px, transparent 1.48px),
    radial-gradient(circle at 70% 48%, rgba(255, 255, 255, 0.32) 0 0.72px, transparent 1.34px),
    radial-gradient(circle at 88% 69%, rgba(99, 255, 231, 0.28) 0 0.9px, transparent 1.6px),
    radial-gradient(circle at 97% 8%, rgba(255, 255, 255, 0.42) 0 0.76px, transparent 1.4px),
    radial-gradient(circle at 4% 22%, rgba(99, 255, 231, 0.23) 0 0.74px, transparent 1.34px),
    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, 0.36) 0 0.8px, transparent 1.45px),
    radial-gradient(circle at 42% 59%, rgba(255, 255, 255, 0.26) 0 0.68px, transparent 1.28px),
    radial-gradient(circle at 59% 26%, rgba(255, 255, 255, 0.42) 0 0.78px, transparent 1.42px),
    radial-gradient(circle at 78% 81%, rgba(134, 110, 255, 0.3) 0 0.78px, transparent 1.44px),
    radial-gradient(circle at 94% 46%, rgba(255, 255, 255, 0.32) 0 0.72px, transparent 1.34px),
    radial-gradient(circle at 10% 52%, rgba(255, 255, 255, 0.26) 0 0.64px, transparent 1.22px),
    radial-gradient(circle at 31% 19%, rgba(99, 255, 231, 0.25) 0 0.72px, transparent 1.34px),
    radial-gradient(circle at 52% 95%, rgba(255, 255, 255, 0.34) 0 0.72px, transparent 1.34px),
    radial-gradient(circle at 76% 34%, rgba(255, 255, 255, 0.28) 0 0.66px, transparent 1.26px);
  background-repeat: no-repeat;
  content: "";
  opacity: 0.38;
  animation: loginTwinkle 9.2s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.login-stars::after {
  background:
    radial-gradient(circle at 12% 27%, rgba(99, 255, 231, 0.3) 0 0.9px, transparent 1.6px),
    radial-gradient(circle at 35% 93%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.75px),
    radial-gradient(circle at 58% 12%, rgba(255, 255, 255, 0.36) 0 0.8px, transparent 1.45px),
    radial-gradient(circle at 74% 52%, rgba(134, 110, 255, 0.38) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91% 83%, rgba(255, 255, 255, 0.74) 0 1px, transparent 1.7px),
    radial-gradient(circle at 6% 6%, rgba(255, 255, 255, 0.34) 0 0.7px, transparent 1.35px),
    radial-gradient(circle at 19% 76%, rgba(255, 255, 255, 0.44) 0 0.78px, transparent 1.45px),
    radial-gradient(circle at 43% 28%, rgba(99, 255, 231, 0.26) 0 0.75px, transparent 1.4px),
    radial-gradient(circle at 51% 71%, rgba(255, 255, 255, 0.3) 0 0.66px, transparent 1.28px),
    radial-gradient(circle at 66% 31%, rgba(255, 255, 255, 0.52) 0 0.82px, transparent 1.5px),
    radial-gradient(circle at 80% 7%, rgba(99, 255, 231, 0.31) 0 0.84px, transparent 1.52px),
    radial-gradient(circle at 99% 36%, rgba(255, 255, 255, 0.4) 0 0.72px, transparent 1.35px),
    radial-gradient(circle at 2% 82%, rgba(255, 255, 255, 0.3) 0 0.7px, transparent 1.32px),
    radial-gradient(circle at 27% 39%, rgba(255, 255, 255, 0.24) 0 0.66px, transparent 1.26px),
    radial-gradient(circle at 48% 4%, rgba(99, 255, 231, 0.26) 0 0.74px, transparent 1.38px),
    radial-gradient(circle at 71% 65%, rgba(255, 255, 255, 0.34) 0 0.76px, transparent 1.4px),
    radial-gradient(circle at 89% 91%, rgba(255, 255, 255, 0.28) 0 0.72px, transparent 1.34px),
    radial-gradient(circle at 16% 59%, rgba(255, 255, 255, 0.32) 0 0.68px, transparent 1.3px),
    radial-gradient(circle at 40% 83%, rgba(99, 255, 231, 0.24) 0 0.72px, transparent 1.36px),
    radial-gradient(circle at 63% 54%, rgba(255, 255, 255, 0.26) 0 0.64px, transparent 1.24px),
    radial-gradient(circle at 96% 66%, rgba(255, 255, 255, 0.34) 0 0.7px, transparent 1.32px);
  background-repeat: no-repeat;
  opacity: 0.32;
  animation-duration: 12.4s;
  animation-delay: -4.2s;
}

.login-auth {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(333px, calc(100vw - 42px));
  justify-items: center;
  gap: 24px;
  transform: translateY(-14px);
}

.login-logo {
  display: block;
  width: min(168px, 42vw);
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 229, 255, 0.24));
  animation: loginLogoHover 4200ms ease-in-out infinite;
}

.login-form {
  display: grid;
  width: 100%;
  gap: 12px;
}

.login-message {
  position: relative;
  margin: -2px 0 2px;
  color: rgba(244, 247, 251, 0.88);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 18px rgba(99, 255, 231, 0.22);
}

.login-message::after {
  display: block;
  width: 78px;
  height: 2px;
  margin: 9px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(99, 255, 231, 0.92), rgba(255, 255, 255, 0.68), transparent);
  box-shadow: 0 0 18px rgba(99, 255, 231, 0.3);
  content: "";
  opacity: 0.86;
}

.login-field {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 50px;
  grid-template-columns: 46px minmax(0, 1fr) 48px;
  align-items: center;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(24, 38, 52, 0.98), rgba(14, 25, 39, 0.98)),
    #101b2a;
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(0, 229, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-field:focus-within {
  border-color: rgba(0, 229, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(27, 44, 60, 0.99), rgba(15, 28, 43, 0.99)),
    #111e2e;
  box-shadow:
    0 14px 22px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(0, 229, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.login-field-icon,
.login-clear,
.forgot-close {
  display: grid;
  place-items: center;
}

.login-field-icon {
  color: rgba(0, 229, 255, 0.9);
}

.login-field svg {
  width: 19px;
  height: 19px;
}

.login-field path,
.forgot-close path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.login-field input,
.login-textbox {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  padding: 0;
}

.login-textbox {
  min-height: 20px;
  overflow: hidden;
  caret-color: #00e5ff;
  line-height: 1.25;
  white-space: nowrap;
}

.login-textbox:empty::before {
  color: rgba(255, 255, 255, 0.78);
  content: attr(data-placeholder);
  pointer-events: none;
}

.login-textbox[aria-disabled="true"] {
  pointer-events: none;
}

.login-field input[data-secret="true"]:not(.is-password-visible) {
  -webkit-text-security: disc;
}

.login-field input::-ms-clear,
.login-field input::-ms-reveal {
  display: none;
}

.login-field input::-webkit-contacts-auto-fill-button,
.login-field input::-webkit-credentials-auto-fill-button,
.login-field input::-webkit-caps-lock-indicator,
.login-field input::-webkit-strong-password-auto-fill-button {
  position: absolute;
  right: 0;
  display: none;
  visibility: hidden;
  pointer-events: none;
}

.login-field input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.login-clear {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: color 160ms ease, opacity 160ms ease;
}

.login-clear.is-visible,
#togglePasswordButton {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.login-clear:hover,
.login-clear:focus-visible,
#togglePasswordButton[aria-pressed="true"] {
  color: rgba(0, 229, 255, 0.92);
  outline: none;
}

.login-submit {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #9600ff, #00e5ff);
  box-shadow:
    0 10px 18px rgba(0, 229, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 950;
  text-align: center;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  filter: brightness(1.07) saturate(1.08);
  outline: none;
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
}

.login-terms {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.36;
}

.login-terms input {
  appearance: none;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.46);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.login-terms input::after {
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #06101d;
  border-left: 2px solid #06101d;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.login-terms input:checked {
  border-color: rgba(0, 229, 255, 0.95);
  background: #00e5ff;
}

.login-terms input:checked::after {
  opacity: 1;
}

.login-terms .legal-popup-link,
.forgot-link {
  border: 0;
  background: transparent;
  color: rgba(0, 229, 255, 0.94);
  font: inherit;
  font-weight: 950;
  padding: 0;
  text-decoration: none;
}

.login-terms .legal-popup-link {
  display: inline;
  cursor: pointer;
}

.forgot-link {
  justify-self: end;
  min-height: 30px;
  border: 0;
  background: transparent;
  padding: 0;
}

.forgot-link:hover,
.forgot-link:focus-visible,
.login-terms .legal-popup-link:hover,
.login-terms .legal-popup-link:focus-visible {
  color: #63ffe7;
  outline: none;
}

.login-feedback {
  min-height: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.login-feedback[data-tone="error"] {
  color: #ffb4ac;
}

.login-terms.is-attention {
  animation: loginTermsNudge 620ms ease;
}

.forgot-sheet {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(2, 4, 12, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.forgot-sheet.is-visible,
.legal-sheet.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.legal-sheet {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 229, 255, 0.16), transparent 32%),
    rgba(2, 4, 12, 0.82);
  opacity: 0;
  padding: 18px;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.forgot-panel {
  position: relative;
  display: grid;
  width: min(360px, calc(100vw - 34px));
  gap: 14px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(20, 40, 62, 0.86), rgba(6, 9, 20, 0.96)),
    rgba(6, 8, 18, 0.94);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    0 0 34px rgba(0, 229, 255, 0.12);
  padding: 28px 22px 24px;
}

.legal-panel {
  position: relative;
  display: grid;
  width: min(880px, calc(100vw - 28px));
  height: min(760px, calc(100vh - 34px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(20, 40, 62, 0.9), rgba(6, 9, 20, 0.98)),
    rgba(6, 8, 18, 0.96);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.68),
    0 0 42px rgba(0, 229, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.legal-panel header,
.legal-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.14);
  padding: 18px 20px;
}

.legal-panel footer {
  border-top: 1px solid rgba(0, 229, 255, 0.14);
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 800;
}

.legal-panel header span {
  color: rgba(99, 255, 231, 0.95);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-panel h2 {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(1.2rem, 4vw, 1.85rem);
  line-height: 1;
}

.legal-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.legal-panel footer a {
  color: rgba(0, 229, 255, 0.96);
  font-weight: 950;
  text-decoration: none;
}

.legal-panel footer a:hover,
.legal-panel footer a:focus-visible {
  color: #63ffe7;
  outline: none;
}

.forgot-panel img {
  justify-self: center;
  width: 84px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 229, 255, 0.24));
}

.forgot-panel h2 {
  font-size: 1.55rem;
  text-align: center;
}

.forgot-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.forgot-close:hover,
.forgot-close:focus-visible {
  color: #00e5ff;
  outline: none;
}

.forgot-email {
  grid-template-columns: 46px minmax(0, 1fr);
}

.game-viewport[data-authenticated="false"] .bottom-tabs,
.game-viewport[data-authenticated="false"] .shop-action,
.game-viewport[data-authenticated="false"] .app-drawer,
.game-viewport[data-authenticated="false"] .profile-screen {
  opacity: 0;
  pointer-events: none;
}

.marker-layer {
  z-index: 4;
  pointer-events: none;
}

.world-layer.is-mapbox-ready .marker-layer {
  display: none;
}

.player-puck,
.gotcha-mapbox-player {
  width: 26px;
  height: 26px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 14px rgba(71, 224, 208, 0.14), 0 14px 24px rgba(0, 0, 0, 0.32);
}

.player-puck {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  padding: 0;
  transform: translate(-50%, -50%);
}

.world-layer.is-mapbox-ready .player-puck {
  opacity: 0;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid rgba(255, 184, 83, 0.86);
  border-radius: 999px;
  background: rgba(12, 23, 32, 0.88);
  box-shadow: 0 0 0 7px rgba(255, 184, 83, 0.18), 0 0 26px rgba(255, 184, 83, 0.34);
  color: var(--gold);
  font-weight: 950;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.map-marker::after {
  position: absolute;
  bottom: -19px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffad54;
  box-shadow: 0 0 18px rgba(255, 174, 85, 0.8);
  content: "";
  transform: translateX(-50%);
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-selected {
  border-color: var(--cyan);
  color: var(--cyan);
  outline: none;
  transform: translate(-50%, -50%) scale(1.08);
}

.map-marker[data-rarity="rare"] {
  border-color: rgba(137, 89, 255, 0.9);
  color: var(--violet);
}

.map-marker[data-rarity="jackpot"] {
  border-color: rgba(255, 200, 92, 0.96);
  color: var(--gold);
}

.gotcha-mapbox-marker {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(255, 184, 83, 0.86);
  border-radius: 999px;
  background: rgba(12, 23, 32, 0.88);
  box-shadow: 0 0 0 7px rgba(255, 184, 83, 0.16), 0 0 26px rgba(255, 184, 83, 0.34);
  padding: 9px;
}

.gotcha-mapbox-marker::after {
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffad54;
  content: "";
  transform: translateX(-50%);
}

.gotcha-mapbox-marker img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.gotcha-mapbox-marker:hover,
.gotcha-mapbox-marker:focus-visible,
.gotcha-mapbox-marker.is-selected {
  border-color: var(--cyan);
  outline: none;
}

.entry-cinematic {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(99, 255, 231, 0.2), transparent 22%),
    radial-gradient(circle at 50% 54%, rgba(255, 200, 92, 0.16), transparent 14%),
    linear-gradient(180deg, rgba(2, 6, 15, 0.88), rgba(4, 8, 19, 0.42) 48%, rgba(2, 4, 10, 0.86));
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.entry-cinematic.is-visible {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.entry-cinematic.is-exiting {
  animation: entryOverlayExit 680ms cubic-bezier(0.2, 0.9, 0.28, 1) forwards;
}

.entry-grid {
  position: absolute;
  inset: -12%;
  background-image:
    linear-gradient(rgba(99, 255, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 145, 199, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle, black 0 44%, transparent 72%);
  opacity: 0.58;
  transform: perspective(780px) rotateX(62deg) translateY(12%);
  animation: entryGridFlow 3200ms linear infinite;
}

.entry-scanner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.entry-scanner span {
  position: absolute;
  width: min(74vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(99, 255, 231, 0.28);
  border-radius: 999px;
  box-shadow:
    inset 0 0 34px rgba(99, 255, 231, 0.07),
    0 0 42px rgba(99, 255, 231, 0.1);
  opacity: 0;
  transform: scale(0.38);
  animation: entryScanRing 2200ms cubic-bezier(0.16, 0.8, 0.34, 1) infinite;
}

.entry-scanner span:nth-child(2) {
  border-color: rgba(255, 200, 92, 0.24);
  animation-delay: 460ms;
}

.entry-scanner span:nth-child(3) {
  border-color: rgba(109, 145, 199, 0.28);
  animation-delay: 920ms;
}

.entry-lock {
  position: relative;
  display: grid;
  width: clamp(118px, 18vw, 190px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.52);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 48%, rgba(99, 255, 231, 0.18), rgba(8, 18, 32, 0.92) 58%, rgba(3, 8, 17, 0.96)),
    rgba(7, 16, 29, 0.88);
  box-shadow:
    0 0 0 14px rgba(99, 255, 231, 0.06),
    0 0 56px rgba(99, 255, 231, 0.22),
    inset 0 0 36px rgba(255, 255, 255, 0.06);
  transform: translateY(-38px);
  animation: entryLockIn 900ms cubic-bezier(0.16, 0.88, 0.28, 1.18) both, entryLockPulse 1300ms ease-in-out infinite 980ms;
}

.entry-lock img {
  width: 106%;
  height: 106%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(99, 255, 231, 0.32));
  transform: translateY(-1px);
}

.entry-ring {
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background:
    conic-gradient(from 0deg, transparent 0 18%, rgba(99, 255, 231, 0.9) 23%, transparent 30% 55%, rgba(255, 200, 92, 0.86) 62%, transparent 70% 100%);
  mask: radial-gradient(circle, transparent 0 64%, black 65% 70%, transparent 72%);
  animation: entryRingSpin 1200ms linear infinite;
}

.entry-copy {
  position: absolute;
  left: 50%;
  top: calc(50% + clamp(98px, 16vw, 150px));
  display: grid;
  width: min(520px, calc(100vw - 46px));
  gap: 10px;
  transform: translateX(-50%);
  text-align: center;
}

.entry-copy p {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: entryTextSnap 420ms ease both;
}

.entry-copy h2 {
  font-size: 4.8rem;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(99, 255, 231, 0.22);
  animation: entryTextSnap 520ms ease both 80ms;
}

.entry-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(69, 98, 126, 0.68);
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 44px rgba(0, 0, 0, 0.34);
  padding: 10px 14px;
  text-align: left;
}

.entry-status span {
  color: rgba(244, 247, 251, 0.86);
  font-weight: 850;
}

.entry-status b {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.entry-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(49, 70, 96, 0.55);
}

.entry-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 22px rgba(99, 255, 231, 0.46);
  transition: width 460ms cubic-bezier(0.16, 0.8, 0.24, 1);
}

.game-viewport.is-entry-cinematic .world-layer {
  animation: entryWorldDive 2850ms cubic-bezier(0.16, 0.78, 0.22, 1) both;
}

.game-viewport.is-entry-cinematic .bottom-tabs {
  animation: entryTabsLand 3100ms cubic-bezier(0.16, 0.86, 0.26, 1) both;
}

.game-viewport.is-entry-cinematic .shop-action {
  opacity: 0;
  transform: translate(8px, -50%) scale(0.94);
}

.game-viewport.is-entry-cinematic .map-marker {
  animation: entryMarkerWake 2600ms cubic-bezier(0.16, 0.8, 0.24, 1) both;
}

.game-viewport.is-entry-cinematic .gotcha-mapbox-marker {
  animation: entryMapboxMarkerWake 2600ms cubic-bezier(0.16, 0.8, 0.24, 1) both;
}

.app-drawer,
.profile-screen,
.bottom-tabs,
.toast {
  position: absolute;
  z-index: 9;
}

.app-drawer {
  top: 76px;
  right: 24px;
  bottom: 120px;
  display: grid;
  width: min(540px, calc(100vw - 48px));
  align-content: start;
  gap: 14px;
  overflow: auto;
  border: 1px solid var(--line-dim);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(13, 31, 48, 0.72), rgba(7, 13, 26, 0.92)),
    rgba(5, 10, 20, 0.86);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 36px));
  transition: opacity 180ms ease, transform 220ms ease;
  backdrop-filter: blur(18px);
  scrollbar-color: rgba(71, 224, 208, 0.38) transparent;
}

.game-viewport[data-active-panel="lobbies"] #lobbiesPanel,
.game-viewport[data-active-panel="wallet"] #walletPanel,
.game-viewport[data-active-panel="shop"] #shopPanel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-card,
.leaderboard-card,
.wallet-pane,
.profile-card,
.profile-section,
.profile-link,
.trade-row,
.shop-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dim);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 39, 58, 0.78), rgba(8, 13, 26, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.drawer-card::before,
.leaderboard-card::before,
.wallet-pane::before,
.profile-card::before,
.profile-section::before,
.profile-link::before,
.trade-row::before,
.shop-item::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(270deg, rgba(71, 224, 208, 0.08), transparent 48%);
  content: "";
  pointer-events: none;
}

.drawer-card > *,
.leaderboard-card > *,
.wallet-pane > *,
.profile-card > *,
.profile-section > *,
.profile-link > *,
.trade-row > *,
.shop-item > * {
  position: relative;
  z-index: 1;
}

.leaderboard-card,
.drawer-card,
.wallet-pane,
.profile-section {
  padding: 22px;
}

.panel-head,
.wallet-title,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head p,
.drawer-card p,
.wallet-card p,
.profile-title p,
.profile-section p,
.detail-row small,
.profile-link small,
.ready-item small,
.feed-item small {
  color: var(--muted);
  font-weight: 700;
}

.rank-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(71, 224, 208, 0.18), rgba(71, 224, 208, 0.06));
  color: var(--cyan);
  padding: 0 20px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.circle-icon,
.profile-icon {
  box-sizing: border-box;
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 5px solid currentColor;
  border-radius: 999px;
  box-shadow: inset 0 -8px 0 -5px currentColor;
}

.podium-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr 0.95fr;
  gap: 14px;
  align-items: end;
  margin-top: 28px;
}

.podium-card {
  display: grid;
  min-height: 160px;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(109, 145, 199, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(155deg, rgba(48, 89, 145, 0.78), rgba(11, 20, 38, 0.88)),
    rgba(7, 18, 30, 0.9);
  padding: 16px 10px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.podium-card.first {
  min-height: 204px;
  border-color: rgba(255, 200, 92, 0.62);
  background: linear-gradient(155deg, rgba(118, 91, 52, 0.76), rgba(31, 23, 45, 0.82));
}

.podium-card.third {
  border-color: rgba(123, 92, 240, 0.44);
  background: linear-gradient(155deg, rgba(55, 39, 105, 0.78), rgba(12, 8, 33, 0.84));
}

.podium-card span {
  color: var(--blue);
  font-weight: 950;
}

.podium-card.first span,
.podium-card.first b {
  color: var(--gold);
}

.podium-card.third span,
.podium-card.third b {
  color: var(--violet);
}

.podium-card b {
  color: var(--blue);
  font-size: 1.72rem;
}

.section-kicker {
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.drawer-card h2,
.wallet-card h2,
.profile-title h2 {
  margin-top: 6px;
}

.lobby-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.lobby-row,
.trade-row,
.profile-link {
  display: grid;
  width: 100%;
  min-height: 82px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(69, 98, 126, 0.46);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(28, 48, 69, 0.64), rgba(8, 13, 26, 0.82)),
    rgba(255, 255, 255, 0.03);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.shop-grid {
  display: grid;
  gap: 12px;
}

.shop-item {
  display: grid;
  width: 100%;
  min-height: 118px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.shop-item.is-featured {
  border-color: var(--line-strong);
  box-shadow: 0 0 30px rgba(71, 224, 208, 0.1), inset 4px 0 0 var(--cyan);
}

.shop-item-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 200, 92, 0.42);
  border-radius: 14px;
  background: rgba(255, 200, 92, 0.12);
  color: var(--gold);
  font-weight: 950;
}

.shop-item-icon.teal {
  border-color: rgba(71, 224, 208, 0.38);
  background: rgba(71, 224, 208, 0.12);
  color: var(--cyan);
}

.shop-item-icon.blue {
  border-color: rgba(109, 145, 199, 0.44);
  background: rgba(109, 145, 199, 0.14);
  color: var(--blue);
}

.shop-item strong {
  display: block;
  font-size: 1.04rem;
  text-transform: uppercase;
}

.shop-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.shop-item b {
  color: var(--cyan);
}

.lobby-row.is-active {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(71, 224, 208, 0.18), rgba(12, 26, 39, 0.9)),
    rgba(71, 224, 208, 0.08);
  box-shadow: 0 0 30px rgba(71, 224, 208, 0.1), inset 4px 0 0 var(--cyan);
}

.lobby-row:hover,
.trade-row:hover,
.profile-link:hover {
  transform: translateY(-2px);
}

.lobby-icon,
.wallet-icon,
.trade-row span,
.profile-link span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(71, 224, 208, 0.38);
  border-radius: 14px;
  background: rgba(71, 224, 208, 0.12);
  color: var(--cyan);
  font-weight: 950;
}

.lobby-icon.blue {
  border-color: rgba(115, 162, 255, 0.45);
  background: rgba(115, 162, 255, 0.13);
  color: var(--blue);
}

.lobby-icon.violet {
  border-color: rgba(137, 89, 255, 0.5);
  background: rgba(137, 89, 255, 0.14);
  color: var(--violet);
}

.lobby-icon.gold {
  border-color: rgba(255, 200, 92, 0.45);
  background: rgba(255, 200, 92, 0.13);
  color: var(--gold);
}

.lobby-row strong,
.profile-link strong,
.trade-row strong {
  display: block;
  font-size: 1.04rem;
  text-transform: uppercase;
}

.lobby-row small,
.profile-link small,
.trade-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.lobby-row b,
.profile-link b {
  color: var(--cyan);
  font-size: 1.8rem;
}

.wallet-panel-view {
  gap: 14px;
}

.wallet-title {
  justify-content: start;
}

.shop-icon span {
  color: var(--gold);
  font-weight: 950;
}

.wallet-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.wallet-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
  border: 1px solid rgba(69, 98, 126, 0.52);
  border-radius: 14px;
  background: rgba(3, 8, 17, 0.72);
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.wallet-tab {
  display: inline-flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 950;
}

.wallet-tab.is-active {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(71, 224, 208, 0.28), rgba(71, 224, 208, 0.12));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(71, 224, 208, 0.12);
}

.trade-row {
  grid-template-columns: 68px minmax(0, 1fr);
  justify-content: start;
}

.wallet-pane {
  display: none;
}

.wallet-pane.is-active {
  display: grid;
  gap: 16px;
}

.ready-list {
  display: grid;
  gap: 14px;
}

.ready-item {
  border: 1px solid rgba(69, 98, 126, 0.48);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(19, 38, 57, 0.68), rgba(8, 13, 26, 0.84)),
    rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.ready-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ready-item h3 {
  margin: 0;
}

.ready-item.is-stealable {
  border-color: rgba(255, 122, 114, 0.4);
}

.lock-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.lock-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--leaf));
}

.ready-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.ready-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 122, 114, 0.32);
  border-radius: 8px;
  background: rgba(255, 122, 114, 0.14);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 900;
}

.vault-empty {
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px solid rgba(71, 224, 208, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(19, 38, 57, 0.62), rgba(8, 13, 26, 0.86)),
    rgba(255, 255, 255, 0.035);
  padding: 34px;
  text-align: center;
}

.vault-empty img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.vault-empty p {
  color: var(--muted);
}

.profile-screen {
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 50, 50, 0.18), transparent 18%, transparent 78%, rgba(43, 38, 104, 0.22)),
    linear-gradient(180deg, rgba(7, 19, 33, 0.98), rgba(4, 8, 17, 0.98)),
    #050a14;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.game-viewport[data-active-panel="profile"] #profilePanel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-scroll {
  height: 100%;
  overflow: auto;
  padding: 64px min(7vw, 64px) 140px;
  scrollbar-color: rgba(71, 224, 208, 0.38) transparent;
}

.profile-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.profile-title h2 {
  color: var(--cyan);
}

.profile-card {
  display: grid;
  max-width: 880px;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 34px auto 0;
  padding: 26px;
}

.avatar {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #06101d;
  font-size: 2rem;
  font-weight: 950;
}

.profile-name h3 {
  font-size: 2rem;
}

.profile-name p {
  color: var(--muted);
  font-size: 1.04rem;
}

.plan-pill,
.status-pill {
  border: 1px solid rgba(109, 145, 199, 0.42);
  border-radius: 14px;
  background: rgba(115, 162, 255, 0.15);
  color: var(--ink);
  padding: 12px 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: none;
}

.status-pill {
  text-transform: none;
}

.status-pill.delivery {
  border-color: rgba(71, 224, 208, 0.4);
  background: rgba(71, 224, 208, 0.13);
}

.profile-section {
  display: grid;
  max-width: 880px;
  gap: 16px;
  margin: 28px auto 0;
}

.detail-row {
  display: grid;
  min-height: 108px;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  border: 1px solid rgba(69, 98, 126, 0.52);
  border-radius: 14px;
  background: rgba(6, 16, 30, 0.72);
  padding: 18px;
}

.detail-row span {
  color: var(--cyan);
  font-weight: 950;
}

.detail-row strong {
  display: block;
  margin-top: 5px;
  font-size: 1.18rem;
  overflow-wrap: anywhere;
}

.profile-link {
  max-width: 880px;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  margin: 18px auto 0;
}

.shop-action {
  position: absolute;
  top: 50%;
  right: 22px;
  z-index: 8;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(42, 215, 255, 0.58);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 28%, rgba(42, 215, 255, 0.28), transparent 48%),
    linear-gradient(150deg, rgba(18, 58, 82, 0.88), rgba(7, 12, 31, 0.98) 64%),
    rgba(5, 10, 24, 0.96);
  clip-path: polygon(18% 0, 82% 0, 100% 24%, 100% 76%, 82% 100%, 18% 100%, 0 76%, 0 24%);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 30px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(42, 215, 255, 0.22);
  color: rgba(223, 250, 255, 0.98);
  transform: translateY(-50%);
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, right 220ms ease, opacity 160ms ease, transform 160ms ease;
}

.shop-action::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(42, 215, 255, 0.32);
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(42, 215, 255, 0.18) 12% 16%, transparent 16% 84%, rgba(42, 215, 255, 0.18) 84% 88%, transparent 88%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%);
  clip-path: inherit;
  content: "";
  pointer-events: none;
}

.shop-action::after {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  content: "";
  opacity: 0.42;
  transform: translateX(-50%);
}

.shop-action:hover,
.shop-action:focus-visible,
.shop-action.is-active {
  border-color: rgba(94, 244, 255, 0.94);
  color: var(--cyan);
  outline: none;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -18px 30px rgba(0, 0, 0, 0.24),
    0 0 40px rgba(42, 215, 255, 0.34);
}

.shop-action.is-active {
  animation: hudShopPulse 2.8s ease-in-out infinite;
}

.shop-action:hover,
.shop-action:focus-visible {
  transform: translateY(calc(-50% - 2px));
}

.game-viewport[data-active-panel="profile"] .shop-action {
  opacity: 0;
  pointer-events: none;
  transform: translate(10px, -50%) scale(0.92);
}

.shop-action-icon,
.shop-action-icon svg {
  display: block;
  width: 44px;
  height: 44px;
}

.shop-action-icon {
  position: relative;
  z-index: 1;
}

.shop-action-icon path {
  filter: drop-shadow(0 0 7px rgba(42, 215, 255, 0.54));
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.65;
}

@media (min-width: 1101px) {
  .game-viewport[data-active-panel="lobbies"] .shop-action,
  .game-viewport[data-active-panel="wallet"] .shop-action,
  .game-viewport[data-active-panel="shop"] .shop-action {
    right: min(584px, calc(100vw - 88px));
  }
}

@media (max-width: 1100px) {
  .game-viewport:not([data-active-panel="map"]) .shop-action {
    opacity: 0;
    pointer-events: none;
    transform: translate(8px, -50%) scale(0.94);
  }
}

.bottom-tabs {
  left: 50%;
  bottom: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 0;
  width: min(900px, calc(100vw - 64px));
  min-height: 106px;
  border: 1px solid rgba(42, 215, 255, 0.42);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0, rgba(42, 215, 255, 0.15), transparent 35%),
    linear-gradient(180deg, rgba(13, 25, 49, 0.94), rgba(5, 8, 24, 0.98)),
    rgba(5, 8, 24, 0.96);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -18px 36px rgba(1, 4, 14, 0.48),
    0 0 34px rgba(42, 215, 255, 0.14);
  padding: 8px;
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
}

.bottom-tabs::before {
  position: absolute;
  left: 22px;
  right: 22px;
  top: -1px;
  height: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(42, 215, 255, 0.9), transparent);
  box-shadow: 0 0 18px rgba(42, 215, 255, 0.46);
  content: "";
  pointer-events: none;
  z-index: 2;
}

.bottom-tabs::after {
  position: absolute;
  inset: 10px 14px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(42, 215, 255, 0.12) 24.1% 24.4%, transparent 24.5% 49.7%, rgba(42, 215, 255, 0.12) 49.8% 50.1%, transparent 50.2% 75.5%, rgba(42, 215, 255, 0.12) 75.6% 75.9%, transparent 76%),
    linear-gradient(0deg, transparent 0 52%, rgba(42, 215, 255, 0.06) 52.4% 53%, transparent 53.4%),
    radial-gradient(circle at 14% 50%, rgba(42, 215, 255, 0.1), transparent 18%),
    radial-gradient(circle at 86% 50%, rgba(42, 215, 255, 0.08), transparent 18%);
  content: "";
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
}

.app-tab {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 53px 18px;
  min-height: 90px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border: 0;
  border-radius: 23px;
  background: transparent;
  color: rgba(211, 232, 249, 0.74);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.app-tab + .app-tab {
  border-left: 1px solid rgba(119, 158, 206, 0.18);
}

.app-tab::before {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 58px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-tab::after {
  position: absolute;
  inset: 0;
  border-radius: 23px;
  background: transparent;
  content: "";
  opacity: 0;
  transform: scaleX(0.96);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.app-tab > * {
  position: relative;
  z-index: 1;
}

.app-tab > span:last-child {
  display: block;
  text-align: center;
  text-shadow: 0 0 10px rgba(42, 215, 255, 0.18);
  text-transform: uppercase;
}

.app-tab:hover,
.app-tab:focus-visible {
  color: rgba(248, 251, 255, 0.96);
  outline: none;
  transform: translateY(-2px);
}

.app-tab.is-active {
  color: var(--cyan);
}

.app-tab.is-active::before {
  opacity: 0.94;
  transform: translateX(-50%) scaleX(1);
}

.app-tab.is-active::after {
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(255, 255, 255, 0.16) 28%, transparent 38% 100%),
    linear-gradient(135deg, rgba(42, 215, 255, 0.2), rgba(42, 215, 255, 0.04) 64%),
    linear-gradient(180deg, rgba(7, 40, 59, 0.72), rgba(4, 10, 26, 0.4));
  background-size: 220% 100%, auto, auto;
  border: 1px solid rgba(42, 215, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 22px rgba(42, 215, 255, 0.17);
  animation: hudActiveScan 3.4s ease-in-out infinite;
  opacity: 1;
  transform: scale(1);
}

.nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 50px;
  color: currentColor;
}

.nav-icon::before {
  position: absolute;
  inset: 2px 0;
  border: 1px solid rgba(42, 215, 255, 0.22);
  background:
    radial-gradient(circle at 50% 50%, rgba(42, 215, 255, 0.13), transparent 56%),
    linear-gradient(180deg, rgba(42, 215, 255, 0.06), transparent);
  clip-path: polygon(18% 0, 82% 0, 100% 26%, 100% 74%, 82% 100%, 18% 100%, 0 74%, 0 26%);
  content: "";
  opacity: 0.44;
  transform: scale(0.9);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.nav-icon::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background:
    conic-gradient(from 0deg, transparent 0 12%, rgba(42, 215, 255, 0.34) 16%, transparent 22% 54%, rgba(42, 215, 255, 0.22) 60%, transparent 66% 100%);
  content: "";
  filter: blur(0.2px);
  opacity: 0.2;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-icon svg {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 7px rgba(42, 215, 255, 0.22));
}

.nav-icon path,
.nav-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.nav-icon .icon-accent {
  stroke-width: 2.6;
}

.nav-icon .icon-dot {
  fill: currentColor;
  stroke: none;
}

.app-tab:hover .nav-icon::before,
.app-tab:focus-visible .nav-icon::before,
.app-tab.is-active .nav-icon::before {
  border-color: rgba(42, 215, 255, 0.68);
  opacity: 1;
  transform: scale(1);
}

.app-tab:hover .nav-icon::after,
.app-tab:focus-visible .nav-icon::after,
.app-tab.is-active .nav-icon::after {
  opacity: 0.75;
  transform: translate(-50%, -50%) scale(1);
}

.app-tab.is-active .nav-icon::after {
  animation: hudOrbSpin 5.8s linear infinite;
}

.app-tab.is-active .nav-icon svg {
  filter:
    drop-shadow(0 0 6px rgba(42, 215, 255, 0.58))
    drop-shadow(0 0 16px rgba(42, 215, 255, 0.24));
}

.wallet-tab-icon b {
  position: absolute;
  top: -2px;
  right: 2px;
  min-width: 28px;
  border: 2px solid #07101d;
  border-radius: 999px;
  background: var(--cyan);
  color: #06101d;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1.55;
  text-align: center;
}

@keyframes hudActiveScan {
  0%,
  100% {
    background-position: 135% 0, 0 0, 0 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 18px rgba(42, 215, 255, 0.14);
  }
  46% {
    background-position: -35% 0, 0 0, 0 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 0 30px rgba(42, 215, 255, 0.24);
  }
}

@keyframes hudOrbSpin {
  to {
    transform: translate(-50%, -50%) scale(1) rotate(1turn);
  }
}

@keyframes hudShopPulse {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.28) brightness(1.08);
  }
}

.toast {
  left: 50%;
  bottom: 118px;
  max-width: min(560px, calc(100vw - 32px));
  border: 1px solid rgba(71, 224, 208, 0.28);
  border-radius: 8px;
  background: rgba(6, 12, 23, 0.94);
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes loginStarDrift {
  0% {
    transform: translate3d(-1.2%, 0.8%, 0) scale(1);
  }
  48% {
    transform: translate3d(1.6%, -2%, 0) scale(1.018);
  }
  100% {
    transform: translate3d(3%, -0.9%, 0) scale(1.036);
  }
}

@keyframes loginStarParallax {
  0% {
    transform: translate3d(-1.4%, 1.2%, 0) scale(1);
  }
  52% {
    transform: translate3d(1.1%, -1.8%, 0) scale(1.012);
  }
  100% {
    transform: translate3d(2.5%, -0.5%, 0) scale(1.026);
  }
}

@keyframes loginStarShimmer {
  0%,
  100% {
    opacity: 0.52;
    filter: brightness(0.9) blur(0);
  }
  42% {
    opacity: 0.74;
    filter: brightness(1.2) blur(0.1px);
  }
  68% {
    opacity: 0.6;
    filter: brightness(1.02) blur(0);
  }
}

@keyframes loginStarPulse {
  0%,
  100% {
    opacity: 0.58;
    filter: brightness(0.96) drop-shadow(0 0 4px rgba(99, 255, 231, 0.15));
  }
  48% {
    opacity: 0.84;
    filter: brightness(1.17) drop-shadow(0 0 8px rgba(99, 255, 231, 0.28));
  }
}

@keyframes loginTwinkle {
  0%,
  100% {
    opacity: 0.14;
    transform: translate3d(-0.8%, 0.6%, 0) scale(1);
  }
  45% {
    opacity: 0.46;
    transform: translate3d(1.1%, -0.9%, 0) scale(1.015);
  }
  72% {
    opacity: 0.26;
    transform: translate3d(0.3%, -1.4%, 0) scale(1.006);
  }
}

@keyframes loginLogoHover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes loginTermsNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  42% {
    transform: translateX(5px);
  }
  64% {
    transform: translateX(-3px);
  }
  82% {
    transform: translateX(3px);
  }
}

@keyframes bootSplashExit {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
    filter: brightness(1.35);
  }
}

@keyframes bootStarsFloat {
  0% {
    transform: translate3d(-1%, 0.8%, 0) scale(1);
    opacity: 0.58;
  }
  100% {
    transform: translate3d(1.6%, -1.2%, 0) scale(1.02);
    opacity: 0.82;
  }
}

@keyframes bootGridFlow {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 152px, 152px 0;
  }
}

@keyframes bootLogoReveal {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.86);
    filter: blur(8px);
  }
  58% {
    opacity: 1;
    transform: translateY(-10px) scale(1.035);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
    filter: blur(0);
  }
}

@keyframes bootLogoHover {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-13px);
  }
}

@keyframes bootLineCharge {
  0% {
    transform: scaleX(0);
  }
  48% {
    transform: scaleX(0.38);
  }
  76% {
    transform: scaleX(0.74);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes entryOverlayExit {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes entryGridFlow {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 144px, 144px 0;
  }
}

@keyframes entryScanRing {
  0% {
    opacity: 0;
    transform: scale(0.28);
  }
  18% {
    opacity: 0.82;
  }
  76% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes entryLockIn {
  0% {
    opacity: 0;
    transform: translateY(-38px) scale(0.62) rotate(-12deg);
  }
  68% {
    opacity: 1;
    transform: translateY(-38px) scale(1.08) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(-38px) scale(1) rotate(0deg);
  }
}

@keyframes entryLockPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 14px rgba(99, 255, 231, 0.06),
      0 0 56px rgba(99, 255, 231, 0.22),
      inset 0 0 36px rgba(255, 255, 255, 0.06);
  }
  50% {
    box-shadow:
      0 0 0 22px rgba(99, 255, 231, 0.08),
      0 0 78px rgba(255, 200, 92, 0.22),
      inset 0 0 42px rgba(255, 255, 255, 0.08);
  }
}

@keyframes entryRingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes entryTextSnap {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes entryWorldDive {
  0% {
    filter: saturate(1.85) brightness(0.5) blur(3px);
    transform: scale(1.18) rotate(-1.2deg);
  }
  45% {
    filter: saturate(1.52) brightness(0.74) blur(1px);
    transform: scale(1.08) rotate(0.4deg);
  }
  100% {
    filter: saturate(1) brightness(1) blur(0);
    transform: scale(1) rotate(0deg);
  }
}

@keyframes entryTabsLand {
  0% {
    opacity: 0;
    transform: translate(-50%, 42px) scale(0.9);
  }
  72% {
    opacity: 0;
    transform: translate(-50%, 42px) scale(0.9);
  }
  88% {
    opacity: 1;
    transform: translate(-50%, -4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes entryMarkerWake {
  0%,
  62% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.16);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes entryMapboxMarkerWake {
  0%,
  62% {
    opacity: 0;
    filter: saturate(1.4) brightness(0.5);
  }
  80% {
    opacity: 1;
    filter: saturate(1.8) brightness(1.36) drop-shadow(0 0 22px rgba(99, 255, 231, 0.35));
  }
  100% {
    opacity: 1;
    filter: saturate(1) brightness(1);
  }
}

.game-viewport.is-mobile-lite .mapbox-map,
.game-viewport.is-mobile-lite .mapbox-static-map {
  filter: saturate(1.12) contrast(1.04) brightness(0.84);
  transition-duration: 160ms;
}

.game-viewport.is-mobile-lite::after,
.game-viewport.is-mobile-lite .world-layer::after {
  opacity: 0.24;
}

.game-viewport.is-mobile-lite .boot-splash-stars,
.game-viewport.is-mobile-lite .boot-splash-grid,
.game-viewport.is-mobile-lite .login-gate::before,
.game-viewport.is-mobile-lite .login-stars,
.game-viewport.is-mobile-lite .login-stars::before,
.game-viewport.is-mobile-lite .login-stars::after,
.game-viewport.is-mobile-lite .entry-grid,
.game-viewport.is-mobile-lite .entry-scanner span,
.game-viewport.is-mobile-lite .entry-ring,
.game-viewport.is-mobile-lite .app-tab.is-active::after,
.game-viewport.is-mobile-lite .shop-action {
  animation: none;
  filter: none;
  will-change: auto;
}

.game-viewport.is-mobile-lite .login-gate::before {
  opacity: 0.48;
}

.game-viewport.is-mobile-lite .login-stars {
  opacity: 0.62;
}

.game-viewport.is-mobile-lite .login-stars::before {
  opacity: 0.28;
}

.game-viewport.is-mobile-lite .login-stars::after {
  opacity: 0.2;
}

.game-viewport.is-mobile-lite .login-logo {
  animation: none;
  filter: drop-shadow(0 10px 18px rgba(0, 229, 255, 0.18));
}

.game-viewport.is-mobile-lite .entry-lock {
  animation: entryLockIn 620ms cubic-bezier(0.16, 0.88, 0.28, 1.18) both;
  box-shadow:
    0 0 0 8px rgba(99, 255, 231, 0.05),
    0 0 28px rgba(99, 255, 231, 0.16),
    inset 0 0 24px rgba(255, 255, 255, 0.05);
}

.game-viewport.is-mobile-lite .app-drawer,
.game-viewport.is-mobile-lite .drawer-card,
.game-viewport.is-mobile-lite .leaderboard-card,
.game-viewport.is-mobile-lite .wallet-pane,
.game-viewport.is-mobile-lite .profile-card,
.game-viewport.is-mobile-lite .profile-section,
.game-viewport.is-mobile-lite .profile-link,
.game-viewport.is-mobile-lite .trade-row,
.game-viewport.is-mobile-lite .shop-item,
.game-viewport.is-mobile-lite .bottom-tabs {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.game-viewport.is-mobile-lite .app-drawer,
.game-viewport.is-mobile-lite .profile-screen {
  contain: layout paint style;
  transition: opacity 110ms ease, transform 130ms ease;
}

.game-viewport.is-mobile-lite .app-drawer::after,
.game-viewport.is-mobile-lite .profile-screen::before {
  display: none;
}

.game-viewport.is-mobile-lite:not([data-active-panel="map"]) .world-layer {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.game-viewport.is-mobile-lite:not([data-active-panel="lobbies"]) #lobbiesPanel,
.game-viewport.is-mobile-lite:not([data-active-panel="wallet"]) #walletPanel,
.game-viewport.is-mobile-lite:not([data-active-panel="shop"]) #shopPanel,
.game-viewport.is-mobile-lite:not([data-active-panel="profile"]) #profilePanel {
  content-visibility: hidden;
  contain-intrinsic-size: 720px 1000px;
  visibility: hidden;
}

.game-viewport.is-mobile-lite[data-active-panel="lobbies"] #lobbiesPanel,
.game-viewport.is-mobile-lite[data-active-panel="wallet"] #walletPanel,
.game-viewport.is-mobile-lite[data-active-panel="shop"] #shopPanel,
.game-viewport.is-mobile-lite[data-active-panel="profile"] #profilePanel {
  content-visibility: auto;
  visibility: visible;
}

.game-viewport.is-mobile-lite .bottom-tabs {
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 26px rgba(1, 4, 14, 0.42),
    0 0 22px rgba(42, 215, 255, 0.1);
}

@media (min-width: 901px) {
  .game-viewport[data-active-panel="lobbies"] .world-layer,
  .game-viewport[data-active-panel="wallet"] .world-layer,
  .game-viewport[data-active-panel="shop"] .world-layer {
    filter: saturate(0.9) brightness(0.72);
  }
}

@media (max-width: 760px) {
  h2 {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .game-viewport {
    min-height: 100svh;
  }

  .boot-splash-logo {
    margin-left: -12px;
    width: min(330px, 70vw);
  }

  .boot-splash-line {
    top: calc(50% + 25vw);
    width: min(290px, 62vw);
  }

  .login-gate {
    min-height: 100svh;
  }

  .login-gate::before {
    opacity: 0.56;
  }

  .login-auth {
    width: min(333px, calc(100vw - 46px));
    gap: 20px;
    transform: translateY(-18px);
  }

  .login-logo {
    width: min(154px, 42vw);
  }

  .login-field,
  .login-submit {
    min-height: 49px;
  }

  .forgot-panel {
    width: min(348px, calc(100vw - 30px));
    padding: 26px 20px 22px;
  }

  .shop-action {
    right: 13px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .shop-action::before {
    inset: 6px;
    border-radius: 14px;
  }

  .shop-action-icon,
  .shop-action-icon svg {
    width: 34px;
    height: 34px;
  }

  .app-drawer {
    inset: 0;
    width: auto;
    align-content: start;
    background:
      linear-gradient(90deg, rgba(9, 50, 50, 0.18), transparent 18%, transparent 78%, rgba(43, 38, 104, 0.22)),
      linear-gradient(180deg, rgba(7, 19, 33, 0.97), rgba(3, 8, 16, 0.98)),
      #050a14;
    border: 0;
    border-radius: 0;
    padding: 82px max(16px, 5vw) 118px;
    transform: translateY(24px);
  }

  .game-viewport[data-active-panel="lobbies"] #lobbiesPanel,
  .game-viewport[data-active-panel="wallet"] #walletPanel,
  .game-viewport[data-active-panel="shop"] #shopPanel {
    transform: translateY(0);
  }

  .leaderboard-card,
  .drawer-card,
  .wallet-pane,
  .profile-section {
    padding: 18px;
  }

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

  .podium-card {
    min-height: 150px;
    padding: 14px 8px;
  }

  .podium-card.first {
    min-height: 190px;
  }

  .rank-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .lobby-row,
  .trade-row,
  .profile-link {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .profile-scroll {
    padding: 84px max(18px, 5vw) 140px;
  }

  .profile-title {
    justify-content: start;
    text-align: left;
  }

  .profile-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .plan-pill,
  .status-pill {
    grid-column: span 1;
  }

  .profile-name h3 {
    font-size: 1.55rem;
  }

  .detail-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .bottom-tabs {
    bottom: 34px;
    width: calc(100vw - 22px);
    min-height: 82px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px;
    border-radius: 24px;
  }

  .app-tab {
    grid-template-rows: 39px 13px;
    min-height: 70px;
    gap: 4px;
    border-radius: 18px;
    font-size: 0.66rem;
    letter-spacing: 0;
  }

  .nav-icon {
    width: 43px;
    height: 37px;
  }

  .nav-icon svg {
    width: 32px;
    height: 32px;
  }

  .wallet-tab-icon b {
    top: -5px;
    right: -2px;
    min-width: 25px;
    font-size: 0.52rem;
  }

  .app-tab::before {
    bottom: 5px;
    width: 42px;
  }

  .app-tab::after {
    border-radius: 18px;
  }

  .entry-lock {
    width: 132px;
    transform: translateY(-48px);
  }

  .entry-copy {
    top: calc(50% + 94px);
    width: calc(100vw - 34px);
  }

  .entry-copy h2 {
    font-size: 3.2rem;
  }

  .entry-copy p {
    font-size: 0.72rem;
  }

  .entry-status {
    padding: 9px 12px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .app-drawer {
    left: 50%;
    right: auto;
    top: 76px;
    bottom: 112px;
    width: min(640px, calc(100vw - 44px));
    transform: translate(-50%, 24px);
  }

  .game-viewport[data-active-panel="lobbies"] #lobbiesPanel,
  .game-viewport[data-active-panel="wallet"] #walletPanel,
  .game-viewport[data-active-panel="shop"] #shopPanel {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 520px) {
  .login-auth {
    width: min(333px, calc(100vw - 36px));
    transform: translateY(-10px);
  }

  .login-logo {
    width: min(142px, 42vw);
  }

  .login-form {
    gap: 11px;
  }

  .login-terms {
    font-size: 0.72rem;
  }

  .panel-head {
    align-items: start;
  }

  .podium-card strong {
    font-size: 0.8rem;
  }

  .podium-card b {
    font-size: 1rem;
  }

  .lobby-icon,
  .wallet-icon,
  .trade-row span,
  .profile-link span {
    width: 48px;
    height: 48px;
  }

  .wallet-title {
    align-items: start;
  }

  .wallet-tabs {
    gap: 6px;
    padding: 6px;
  }

  .wallet-tab {
    min-height: 58px;
  }

  .profile-card {
    grid-template-columns: 66px minmax(0, 1fr);
    padding: 16px;
  }

  .entry-lock {
    width: 116px;
  }

  .entry-copy {
    top: calc(50% + 82px);
  }

  .entry-copy h2 {
    font-size: 2.55rem;
  }

  .entry-status {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    border-radius: 18px;
    text-align: center;
  }

  .avatar {
    width: 62px;
    height: 62px;
  }

  .plan-pill,
  .status-pill {
    grid-column: 1 / -1;
  }
}

.app-drawer {
  top: 56px;
  right: 22px;
  bottom: 150px;
  width: min(610px, calc(100vw - 52px));
  gap: 16px;
  border: 1px solid rgba(42, 215, 255, 0.46);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(42, 215, 255, 0.08), transparent 22%, transparent 78%, rgba(123, 92, 240, 0.1)),
    linear-gradient(180deg, rgba(7, 20, 36, 0.94), rgba(2, 6, 17, 0.98)),
    rgba(3, 8, 20, 0.96);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -22px 42px rgba(0, 0, 0, 0.36),
    0 0 38px rgba(42, 215, 255, 0.12);
  padding: 18px;
  clip-path: polygon(0 22px, 22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.app-drawer::before {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  z-index: 1;
  border-top: 2px solid rgba(42, 215, 255, 0.62);
  box-shadow: 0 0 22px rgba(42, 215, 255, 0.34);
  content: "";
  pointer-events: none;
}

.app-drawer::after {
  position: absolute;
  inset: 14px;
  z-index: 0;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(42, 215, 255, 0.08) 15.2% 15.5%, transparent 15.7% 84%, rgba(42, 215, 255, 0.08) 84.2% 84.5%, transparent 84.7%),
    linear-gradient(0deg, transparent 0 36%, rgba(42, 215, 255, 0.055) 36.2% 36.6%, transparent 36.8% 72%, rgba(42, 215, 255, 0.04) 72.2% 72.6%, transparent 72.8%);
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.app-drawer > * {
  position: relative;
  z-index: 1;
}

.drawer-card,
.leaderboard-card,
.wallet-pane,
.profile-card,
.profile-section,
.profile-link,
.trade-row,
.lobby-row,
.shop-item,
.ready-item,
.detail-row,
.vault-empty,
.podium-card {
  border-color: rgba(42, 215, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(42, 215, 255, 0.09), transparent 22% 74%, rgba(123, 92, 240, 0.08)),
    linear-gradient(160deg, rgba(11, 33, 55, 0.9), rgba(4, 8, 22, 0.96)),
    rgba(4, 9, 22, 0.94);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 24px rgba(42, 215, 255, 0.08);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.drawer-card::after,
.leaderboard-card::after,
.wallet-pane::after,
.profile-card::after,
.profile-section::after,
.profile-link::after,
.trade-row::after,
.lobby-row::after,
.shop-item::after,
.ready-item::after,
.detail-row::after,
.vault-empty::after {
  position: absolute;
  inset: 8px;
  border-top: 1px solid rgba(42, 215, 255, 0.16);
  border-right: 1px solid rgba(42, 215, 255, 0.09);
  content: "";
  pointer-events: none;
}

.panel-head h2,
.wallet-title h2,
.panel-title h2,
.profile-title h2,
.drawer-card h2,
.shop-card h2 {
  color: var(--cyan);
  font-size: clamp(1.62rem, 2.8vw, 2.2rem);
  text-shadow: 0 0 18px rgba(42, 215, 255, 0.28);
  text-transform: uppercase;
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(42, 215, 255, 0.28);
  border-radius: 999px;
  background: rgba(42, 215, 255, 0.08);
  color: var(--cyan);
  padding: 0 12px;
  text-shadow: 0 0 12px rgba(42, 215, 255, 0.2);
}

.rank-button,
.wallet-tab,
.ready-actions button {
  border-color: rgba(42, 215, 255, 0.5);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(42, 215, 255, 0.15), rgba(42, 215, 255, 0.04)),
    rgba(5, 13, 28, 0.86);
  color: var(--cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 18px rgba(42, 215, 255, 0.1);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.podium-card {
  border-color: rgba(42, 215, 255, 0.34);
  background:
    radial-gradient(circle at 50% 26%, rgba(42, 215, 255, 0.16), transparent 42%),
    linear-gradient(150deg, rgba(18, 44, 72, 0.86), rgba(5, 10, 25, 0.96));
}

.podium-card.first {
  border-color: rgba(255, 200, 92, 0.62);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 200, 92, 0.2), transparent 42%),
    linear-gradient(150deg, rgba(65, 48, 18, 0.86), rgba(12, 9, 22, 0.96));
}

.podium-card.third {
  border-color: rgba(123, 92, 240, 0.58);
  background:
    radial-gradient(circle at 50% 24%, rgba(123, 92, 240, 0.22), transparent 42%),
    linear-gradient(150deg, rgba(40, 22, 76, 0.86), rgba(8, 7, 24, 0.96));
}

.lobby-row,
.trade-row,
.profile-link,
.shop-item {
  min-height: 88px;
  border-color: rgba(42, 215, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(42, 215, 255, 0.12), transparent 18% 76%, rgba(123, 92, 240, 0.09)),
    linear-gradient(160deg, rgba(7, 26, 45, 0.9), rgba(4, 8, 20, 0.96));
}

.lobby-row:hover,
.trade-row:hover,
.profile-link:hover,
.shop-item:hover {
  border-color: rgba(42, 215, 255, 0.68);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 28px rgba(42, 215, 255, 0.16);
}

.lobby-row.is-active,
.shop-item.is-featured {
  border-color: rgba(42, 215, 255, 0.72);
  background:
    linear-gradient(90deg, rgba(42, 215, 255, 0.22), transparent 28%),
    linear-gradient(160deg, rgba(8, 45, 62, 0.94), rgba(5, 10, 24, 0.98));
  box-shadow:
    inset 4px 0 0 var(--cyan),
    0 0 34px rgba(42, 215, 255, 0.18);
}

.lobby-icon,
.wallet-icon,
.trade-row span,
.profile-link span,
.shop-item-icon {
  border-color: rgba(42, 215, 255, 0.42);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 35%, rgba(42, 215, 255, 0.2), transparent 58%),
    rgba(42, 215, 255, 0.08);
  box-shadow:
    inset 0 0 18px rgba(42, 215, 255, 0.08),
    0 0 16px rgba(42, 215, 255, 0.12);
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.lobby-row strong,
.profile-link strong,
.trade-row strong,
.shop-item strong,
.ready-item h3 {
  color: #dffaff;
  text-shadow: 0 0 12px rgba(42, 215, 255, 0.12);
}

.wallet-tabs {
  border-color: rgba(42, 215, 255, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(42, 215, 255, 0.08), transparent),
    rgba(1, 5, 16, 0.78);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.wallet-tab.is-active {
  border-color: rgba(42, 215, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(42, 215, 255, 0.3), rgba(42, 215, 255, 0.1)),
    rgba(4, 18, 30, 0.9);
  color: #06101d;
  text-shadow: none;
}

.wallet-pane,
.ready-item,
.vault-empty {
  border-color: rgba(42, 215, 255, 0.3);
}

.ready-item {
  padding: 18px;
}

.ready-item.is-stealable {
  border-color: rgba(123, 92, 240, 0.62);
  background:
    linear-gradient(90deg, rgba(123, 92, 240, 0.16), transparent 34%),
    linear-gradient(160deg, rgba(24, 14, 55, 0.88), rgba(4, 8, 20, 0.96));
}

.lock-track {
  height: 10px;
  border: 1px solid rgba(42, 215, 255, 0.18);
  background: rgba(2, 7, 18, 0.92);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.42);
}

.lock-fill {
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold));
  box-shadow: 0 0 14px rgba(42, 215, 255, 0.42);
}

.profile-screen {
  background:
    linear-gradient(90deg, rgba(9, 50, 50, 0.18), transparent 18%, transparent 78%, rgba(43, 38, 104, 0.22)),
    radial-gradient(circle at 50% 8%, rgba(42, 215, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(4, 14, 29, 0.98), rgba(2, 5, 15, 0.99)),
    #020612;
}

.profile-screen::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 215, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 215, 255, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  content: "";
  opacity: 0.32;
  pointer-events: none;
}

.profile-scroll {
  position: relative;
  z-index: 1;
}

.profile-card {
  grid-template-columns: 118px minmax(0, 1fr) auto;
  border-color: rgba(42, 215, 255, 0.46);
}

.avatar {
  border: 1px solid rgba(42, 215, 255, 0.72);
  background:
    radial-gradient(circle at 50% 34%, rgba(42, 215, 255, 0.36), transparent 52%),
    linear-gradient(180deg, rgba(42, 215, 255, 0.22), rgba(123, 92, 240, 0.16)),
    #081627;
  color: var(--cyan);
  box-shadow:
    inset 0 0 24px rgba(42, 215, 255, 0.16),
    0 0 28px rgba(42, 215, 255, 0.18);
}

.plan-pill,
.status-pill {
  border-color: rgba(42, 215, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(42, 215, 255, 0.14), rgba(42, 215, 255, 0.05)),
    rgba(4, 12, 25, 0.88);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.status-pill.delivery {
  border-color: rgba(98, 217, 139, 0.46);
  background:
    linear-gradient(180deg, rgba(98, 217, 139, 0.16), rgba(42, 215, 255, 0.05)),
    rgba(4, 12, 25, 0.88);
}

.lobby-row > *,
.ready-item > *,
.detail-row > *,
.vault-empty > * {
  position: relative;
  z-index: 1;
}

.detail-row {
  border-color: rgba(42, 215, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(42, 215, 255, 0.08), transparent 22%),
    rgba(3, 12, 26, 0.84);
}

.vault-empty {
  background:
    radial-gradient(circle at 50% 30%, rgba(42, 215, 255, 0.16), transparent 38%),
    linear-gradient(160deg, rgba(8, 24, 43, 0.9), rgba(4, 8, 20, 0.96));
}

@media (max-width: 760px) {
  .app-drawer {
    inset: 0;
    width: auto;
    border: 0;
    border-radius: 0;
    clip-path: none;
    padding: 86px max(16px, 5vw) 128px;
  }

  .drawer-card,
  .leaderboard-card,
  .wallet-pane,
  .profile-card,
  .profile-section,
  .profile-link,
  .trade-row,
  .lobby-row,
  .shop-item,
  .ready-item,
  .detail-row,
  .vault-empty,
  .podium-card {
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  }

  .profile-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .panel-head h2,
  .wallet-title h2,
  .panel-title h2,
  .profile-title h2,
  .drawer-card h2,
  .shop-card h2 {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .app-drawer {
    left: 50%;
    right: auto;
    top: 62px;
    bottom: 132px;
    width: min(680px, calc(100vw - 44px));
    transform: translate(-50%, 24px);
  }

  .game-viewport[data-active-panel="lobbies"] #lobbiesPanel,
  .game-viewport[data-active-panel="wallet"] #walletPanel,
  .game-viewport[data-active-panel="shop"] #shopPanel {
    transform: translate(-50%, 0);
  }
}

/* High-fidelity HUD screen pass: asset-ready frames, richer color, deeper glow. */
.game-viewport:not([data-active-panel="map"]) {
  background:
    radial-gradient(circle at 18% 16%, rgba(123, 92, 240, 0.18), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(42, 215, 255, 0.16), transparent 32%),
    radial-gradient(circle at 50% 92%, rgba(255, 200, 92, 0.08), transparent 28%),
    linear-gradient(180deg, #020614, #050a18 48%, #02050e);
}

.game-viewport:not([data-active-panel="map"])::after {
  background-image:
    linear-gradient(rgba(42, 215, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 215, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle, rgba(99, 255, 231, 0.34) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(123, 92, 240, 0.28) 0 1px, transparent 1.8px);
  background-position: 0 0, 0 0, 26px 34px, 98px 126px;
  background-size: 96px 96px, 96px 96px, 144px 144px, 220px 220px;
  opacity: 0.52;
}

.app-drawer {
  border-color: rgba(53, 226, 255, 0.72);
  background:
    radial-gradient(circle at 26% 5%, rgba(53, 226, 255, 0.22), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(123, 92, 240, 0.22), transparent 36%),
    linear-gradient(90deg, rgba(53, 226, 255, 0.12), transparent 20%, transparent 76%, rgba(123, 92, 240, 0.15)),
    linear-gradient(180deg, rgba(5, 18, 38, 0.97), rgba(1, 4, 14, 0.99)),
    #020612;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -30px 54px rgba(0, 0, 0, 0.48),
    0 0 54px rgba(42, 215, 255, 0.2),
    0 0 86px rgba(123, 92, 240, 0.08);
}

.app-drawer::before {
  left: 22px;
  right: 22px;
  border-top-color: rgba(99, 255, 231, 0.92);
  box-shadow:
    0 0 18px rgba(99, 255, 231, 0.72),
    0 0 46px rgba(42, 215, 255, 0.28);
}

.app-drawer::after {
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(53, 226, 255, 0.12) 11.15% 11.45%, transparent 11.6% 33%, rgba(123, 92, 240, 0.09) 33.15% 33.45%, transparent 33.6% 66%, rgba(53, 226, 255, 0.1) 66.15% 66.45%, transparent 66.6% 89%, rgba(255, 200, 92, 0.07) 89.15% 89.45%, transparent 89.6%),
    linear-gradient(0deg, transparent 0 18%, rgba(53, 226, 255, 0.07) 18.15% 18.55%, transparent 18.7% 51%, rgba(53, 226, 255, 0.055) 51.15% 51.55%, transparent 51.7% 78%, rgba(123, 92, 240, 0.055) 78.15% 78.55%, transparent 78.7%),
    radial-gradient(circle at 12% 8%, rgba(53, 226, 255, 0.16), transparent 17%),
    radial-gradient(circle at 88% 94%, rgba(123, 92, 240, 0.12), transparent 19%);
  opacity: 0.86;
}

.drawer-card,
.leaderboard-card,
.wallet-pane,
.profile-card,
.profile-section,
.profile-link,
.trade-row,
.lobby-row,
.shop-item,
.ready-item,
.detail-row,
.vault-empty,
.podium-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(53, 226, 255, 0.48);
  background:
    linear-gradient(110deg, rgba(53, 226, 255, 0.14), transparent 20% 72%, rgba(123, 92, 240, 0.13)),
    radial-gradient(circle at 14% 18%, rgba(53, 226, 255, 0.13), transparent 28%),
    linear-gradient(155deg, rgba(7, 31, 55, 0.96), rgba(2, 5, 18, 0.98));
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -20px 34px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(53, 226, 255, 0.11);
}

.drawer-card::before,
.leaderboard-card::before,
.wallet-pane::before,
.profile-card::before,
.profile-section::before,
.profile-link::before,
.trade-row::before,
.lobby-row::before,
.shop-item::before,
.ready-item::before,
.detail-row::before,
.vault-empty::before,
.podium-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255, 255, 255, 0.16) 28%, transparent 38% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 36%);
  background-size: 240% 100%, auto;
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.drawer-card::after,
.leaderboard-card::after,
.wallet-pane::after,
.profile-card::after,
.profile-section::after,
.profile-link::after,
.trade-row::after,
.lobby-row::after,
.shop-item::after,
.ready-item::after,
.detail-row::after,
.vault-empty::after {
  inset: 9px;
  border-top-color: rgba(99, 255, 231, 0.28);
  border-right-color: rgba(123, 92, 240, 0.18);
  box-shadow:
    inset 18px 0 0 -17px rgba(99, 255, 231, 0.16),
    inset -18px 0 0 -17px rgba(123, 92, 240, 0.14);
}

.panel-head,
.wallet-title,
.panel-title,
.profile-title {
  position: relative;
  border-bottom: 1px solid rgba(53, 226, 255, 0.18);
  padding-bottom: 14px;
}

.panel-head::after,
.wallet-title::after,
.panel-title::after,
.profile-title::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(99, 255, 231, 0.5);
  content: "";
}

.panel-head h2,
.wallet-title h2,
.panel-title h2,
.profile-title h2,
.drawer-card h2,
.shop-card h2 {
  color: #42f6ff;
  font-weight: 950;
  text-shadow:
    0 0 10px rgba(66, 246, 255, 0.72),
    0 0 28px rgba(66, 246, 255, 0.22);
}

.panel-head p,
.drawer-card p,
.wallet-card p,
.profile-title p,
.profile-section p,
.detail-row small,
.profile-link small,
.ready-item small,
.feed-item small,
.shop-item small,
.lobby-row small {
  color: rgba(181, 210, 238, 0.78);
}

.section-kicker {
  border-color: rgba(99, 255, 231, 0.52);
  background:
    linear-gradient(90deg, rgba(99, 255, 231, 0.22), rgba(66, 246, 255, 0.07)),
    rgba(2, 8, 18, 0.84);
  color: #8ffff1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 20px rgba(99, 255, 231, 0.14);
}

.rank-button,
.wallet-tab,
.ready-actions button,
.login-submit {
  background:
    linear-gradient(180deg, rgba(99, 255, 231, 0.3), rgba(42, 215, 255, 0.12)),
    rgba(1, 11, 24, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 24px rgba(42, 215, 255, 0.22);
}

.podium-card {
  min-height: 180px;
  background:
    radial-gradient(circle at 50% 20%, rgba(53, 226, 255, 0.32), transparent 42%),
    linear-gradient(160deg, rgba(9, 47, 77, 0.94), rgba(2, 6, 19, 0.99));
}

.podium-card.first {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 200, 92, 0.38), transparent 42%),
    linear-gradient(160deg, rgba(92, 61, 14, 0.92), rgba(12, 7, 18, 0.99));
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.52),
    0 0 38px rgba(255, 200, 92, 0.14);
}

.podium-card.third {
  background:
    radial-gradient(circle at 50% 18%, rgba(137, 89, 255, 0.38), transparent 42%),
    linear-gradient(160deg, rgba(48, 20, 92, 0.92), rgba(7, 5, 21, 0.99));
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.52),
    0 0 38px rgba(123, 92, 240, 0.16);
}

.lobby-row,
.trade-row,
.profile-link,
.shop-item,
.ready-item {
  min-height: 98px;
}

.lobby-row::before,
.shop-item::before,
.ready-item::before {
  animation: hudCardSweep 5.8s ease-in-out infinite;
}

.lobby-row.is-active,
.shop-item.is-featured {
  border-color: rgba(99, 255, 231, 0.95);
  background:
    radial-gradient(circle at 18% 50%, rgba(99, 255, 231, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(99, 255, 231, 0.26), transparent 34%),
    linear-gradient(160deg, rgba(5, 55, 70, 0.98), rgba(2, 7, 19, 0.99));
  box-shadow:
    inset 5px 0 0 #63ffe7,
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 42px rgba(99, 255, 231, 0.24);
}

.lobby-row:nth-child(2),
.shop-item:nth-child(3),
.ready-item.is-stealable {
  border-color: rgba(123, 92, 240, 0.68);
  background:
    radial-gradient(circle at 18% 50%, rgba(123, 92, 240, 0.22), transparent 32%),
    linear-gradient(160deg, rgba(27, 14, 62, 0.94), rgba(2, 7, 19, 0.99));
}

.lobby-row:nth-child(4),
.shop-item:nth-child(2) {
  border-color: rgba(255, 200, 92, 0.58);
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 200, 92, 0.18), transparent 32%),
    linear-gradient(160deg, rgba(51, 35, 10, 0.9), rgba(2, 7, 19, 0.99));
}

.lobby-icon,
.wallet-icon,
.trade-row span,
.profile-link span,
.shop-item-icon {
  width: 58px;
  height: 58px;
  border-color: rgba(99, 255, 231, 0.6);
  background:
    radial-gradient(circle at 50% 36%, rgba(99, 255, 231, 0.32), transparent 55%),
    conic-gradient(from 45deg, rgba(99, 255, 231, 0.24), transparent 20% 48%, rgba(123, 92, 240, 0.22), transparent 68% 100%),
    rgba(1, 12, 26, 0.92);
  color: #9ffff3;
  box-shadow:
    inset 0 0 22px rgba(99, 255, 231, 0.16),
    0 0 24px rgba(99, 255, 231, 0.16);
}

.lobby-icon.violet,
.shop-item-icon.blue {
  border-color: rgba(123, 92, 240, 0.7);
  background:
    radial-gradient(circle at 50% 36%, rgba(123, 92, 240, 0.36), transparent 55%),
    rgba(12, 8, 32, 0.92);
  color: #a98cff;
}

.lobby-icon.gold,
.shop-item-icon {
  border-color: rgba(255, 200, 92, 0.7);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 200, 92, 0.32), transparent 55%),
    rgba(22, 16, 6, 0.92);
  color: #ffd676;
}

.lobby-row strong,
.profile-link strong,
.trade-row strong,
.shop-item strong,
.ready-item h3,
.detail-row strong {
  color: #effdff;
  text-shadow:
    0 0 12px rgba(99, 255, 231, 0.26),
    0 0 24px rgba(42, 215, 255, 0.12);
}

.wallet-tabs {
  padding: 8px;
  border-color: rgba(99, 255, 231, 0.48);
  background:
    linear-gradient(90deg, rgba(99, 255, 231, 0.12), transparent 50%, rgba(123, 92, 240, 0.08)),
    rgba(0, 4, 14, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 26px rgba(42, 215, 255, 0.09);
}

.wallet-tab.is-active {
  background:
    linear-gradient(180deg, rgba(99, 255, 231, 0.94), rgba(42, 215, 255, 0.68)),
    #63ffe7;
  color: #020816;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 0 30px rgba(99, 255, 231, 0.34);
}

.ready-item {
  border-color: rgba(99, 255, 231, 0.36);
}

.lock-track {
  height: 12px;
  border-color: rgba(99, 255, 231, 0.32);
}

.lock-fill {
  background: linear-gradient(90deg, #8d5cff, #42f6ff 52%, #ffd676);
  box-shadow:
    0 0 14px rgba(66, 246, 255, 0.58),
    0 0 28px rgba(123, 92, 240, 0.22);
}

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

.shop-item.is-featured {
  grid-column: 1 / -1;
}

.shop-item b {
  display: inline-grid;
  min-width: 78px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.5);
  background: rgba(99, 255, 231, 0.09);
  color: #9ffff3;
  box-shadow: 0 0 18px rgba(99, 255, 231, 0.12);
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.vault-empty {
  border-color: rgba(99, 255, 231, 0.38);
  background:
    radial-gradient(circle at 50% 34%, rgba(99, 255, 231, 0.24), transparent 36%),
    radial-gradient(circle at 74% 20%, rgba(123, 92, 240, 0.14), transparent 26%),
    linear-gradient(160deg, rgba(7, 28, 50, 0.96), rgba(2, 6, 18, 0.99));
}

.vault-empty img {
  filter:
    drop-shadow(0 0 18px rgba(99, 255, 231, 0.35))
    drop-shadow(0 0 38px rgba(123, 92, 240, 0.18));
}

.profile-screen {
  background:
    radial-gradient(circle at 20% 8%, rgba(123, 92, 240, 0.22), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(42, 215, 255, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(9, 50, 50, 0.18), transparent 18%, transparent 78%, rgba(43, 38, 104, 0.22)),
    linear-gradient(180deg, rgba(2, 10, 24, 0.99), rgba(1, 3, 10, 1)),
    #01030a;
}

.profile-card {
  max-width: 960px;
  border-color: rgba(99, 255, 231, 0.62);
}

.avatar {
  border-radius: 0;
  clip-path: polygon(22% 0, 78% 0, 100% 28%, 100% 72%, 78% 100%, 22% 100%, 0 72%, 0 28%);
  background:
    radial-gradient(circle at 50% 30%, rgba(99, 255, 231, 0.52), transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(123, 92, 240, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(12, 57, 82, 0.96), rgba(2, 8, 19, 0.98));
  box-shadow:
    inset 0 0 30px rgba(99, 255, 231, 0.2),
    0 0 36px rgba(99, 255, 231, 0.24);
}

.plan-pill,
.status-pill {
  border-color: rgba(99, 255, 231, 0.48);
  background:
    linear-gradient(180deg, rgba(99, 255, 231, 0.18), rgba(66, 246, 255, 0.06)),
    rgba(2, 10, 24, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 18px rgba(99, 255, 231, 0.1);
}

.detail-row {
  background:
    linear-gradient(90deg, rgba(99, 255, 231, 0.12), transparent 28%),
    rgba(2, 10, 24, 0.9);
}

.detail-row span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.36);
  background: rgba(99, 255, 231, 0.08);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

@keyframes hudCardSweep {
  0%,
  100% {
    background-position: 130% 0, 0 0;
    opacity: 0.36;
  }
  48% {
    background-position: -30% 0, 0 0;
    opacity: 0.68;
  }
}

@media (max-width: 760px) {
  .app-drawer {
    background:
      radial-gradient(circle at 18% 7%, rgba(123, 92, 240, 0.18), transparent 34%),
      radial-gradient(circle at 84% 8%, rgba(42, 215, 255, 0.16), transparent 34%),
      linear-gradient(180deg, rgba(2, 10, 24, 0.99), rgba(1, 3, 10, 1));
  }

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

  .lobby-row,
  .trade-row,
  .profile-link,
  .shop-item,
  .ready-item {
    min-height: 88px;
  }

  .lobby-icon,
  .wallet-icon,
  .trade-row span,
  .profile-link span,
  .shop-item-icon {
    width: 52px;
    height: 52px;
  }
}

.app-drawer,
.profile-screen {
  isolation: isolate;
}

.app-drawer {
  border-width: 1px;
}

.app-drawer .panel-head,
.app-drawer .wallet-title,
.app-drawer .panel-title {
  min-height: 58px;
}

.app-drawer .panel-head::before,
.app-drawer .wallet-title::before,
.app-drawer .panel-title::before,
.profile-title::before {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 86px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 92, 240, 0.9));
  box-shadow: 0 0 16px rgba(123, 92, 240, 0.42);
  content: "";
}

.app-drawer > .leaderboard-card:first-child,
.app-drawer > .drawer-card:first-child,
.app-drawer > .wallet-card:first-child,
.app-drawer > .shop-card:first-child,
.profile-hero {
  position: relative;
}

.app-drawer > .leaderboard-card:first-child::after,
.app-drawer > .drawer-card:first-child::after,
.app-drawer > .wallet-card:first-child::after,
.app-drawer > .shop-card:first-child::after,
.profile-hero::after {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 10px;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(99, 255, 231, 0.42), transparent);
  box-shadow: 0 0 14px rgba(99, 255, 231, 0.22);
  content: "";
  pointer-events: none;
}

.lobby-icon,
.wallet-icon,
.trade-row span,
.profile-link span,
.shop-item-icon,
.circle-icon,
.profile-icon {
  position: relative;
  overflow: hidden;
}

.lobby-icon::before,
.wallet-icon::before,
.trade-row span::before,
.profile-link span::before,
.shop-item-icon::before,
.circle-icon::before,
.profile-icon::before {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(99, 255, 231, 0.32);
  background:
    conic-gradient(from 90deg, transparent 0 18%, rgba(99, 255, 231, 0.3) 22%, transparent 28% 58%, rgba(123, 92, 240, 0.22) 64%, transparent 72% 100%);
  content: "";
  opacity: 0.58;
  transform: rotate(0deg);
  animation: hudMicroSpin 7.5s linear infinite;
}

.lobby-icon::after,
.wallet-icon::after,
.trade-row span::after,
.profile-link span::after,
.shop-item-icon::after {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 11px currentColor;
  content: "";
  opacity: 0.42;
  transform: translateX(-50%);
}

.lobby-row b,
.profile-link b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.28);
  background: rgba(99, 255, 231, 0.06);
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.drawer-card,
.leaderboard-card,
.wallet-pane,
.profile-card,
.profile-section,
.profile-link,
.trade-row,
.lobby-row,
.shop-item,
.ready-item,
.detail-row,
.vault-empty,
.podium-card {
  outline: 1px solid rgba(255, 255, 255, 0.025);
  outline-offset: -5px;
}

.drawer-card:hover,
.leaderboard-card:hover,
.wallet-pane:hover,
.profile-card:hover,
.profile-section:hover,
.vault-empty:hover {
  border-color: rgba(99, 255, 231, 0.64);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -20px 34px rgba(0, 0, 0, 0.28),
    0 0 38px rgba(99, 255, 231, 0.16);
}

.bottom-tabs {
  box-shadow:
    0 34px 82px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -22px 42px rgba(1, 4, 14, 0.56),
    0 0 44px rgba(42, 215, 255, 0.22),
    0 0 90px rgba(123, 92, 240, 0.08);
}

.app-tab.is-active {
  color: #8ffff1;
}

.app-tab.is-active::after {
  border-color: rgba(99, 255, 231, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 28px rgba(99, 255, 231, 0.1),
    0 0 32px rgba(99, 255, 231, 0.28);
}

@media (min-width: 1101px) {
  .profile-screen {
    top: 56px;
    right: 22px;
    bottom: 150px;
    left: auto;
    display: grid;
    width: min(610px, calc(100vw - 52px));
    border: 1px solid rgba(53, 226, 255, 0.72);
    border-radius: 24px;
    background:
      radial-gradient(circle at 26% 5%, rgba(53, 226, 255, 0.22), transparent 28%),
      radial-gradient(circle at 100% 0, rgba(123, 92, 240, 0.22), transparent 36%),
      linear-gradient(90deg, rgba(53, 226, 255, 0.12), transparent 20%, transparent 76%, rgba(123, 92, 240, 0.15)),
      linear-gradient(180deg, rgba(5, 18, 38, 0.97), rgba(1, 4, 14, 0.99)),
      #020612;
    box-shadow:
      0 36px 110px rgba(0, 0, 0, 0.68),
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -30px 54px rgba(0, 0, 0, 0.48),
      0 0 54px rgba(42, 215, 255, 0.2),
      0 0 86px rgba(123, 92, 240, 0.08);
    clip-path: polygon(0 22px, 22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
    transform: translateX(calc(100% + 36px));
  }

  .game-viewport[data-active-panel="profile"] #profilePanel {
    transform: translateX(0);
  }

  .profile-screen::before {
    z-index: 0;
    opacity: 0.4;
  }

  .profile-screen::after {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    z-index: 1;
    border-top: 2px solid rgba(99, 255, 231, 0.92);
    box-shadow:
      0 0 18px rgba(99, 255, 231, 0.72),
      0 0 46px rgba(42, 215, 255, 0.28);
    content: "";
    pointer-events: none;
  }

  .profile-scroll {
    padding: 18px 18px 24px;
  }

  .profile-title {
    justify-content: start;
    text-align: left;
  }

  .profile-card {
    grid-template-columns: 84px minmax(0, 1fr);
    max-width: none;
    gap: 14px;
    margin: 18px 0 0;
    padding: 18px;
  }

  .avatar {
    width: 84px;
    height: 84px;
  }

  .profile-name h3 {
    font-size: 1.58rem;
  }

  .plan-pill,
  .status-pill {
    grid-column: span 1;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .profile-section {
    max-width: none;
    margin: 16px 0 0;
    padding: 18px;
  }

  .detail-row {
    min-height: 82px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 12px;
  }

  .detail-row strong {
    font-size: 1rem;
  }

  .profile-link {
    max-width: none;
    min-height: 86px;
    margin: 14px 0 0;
  }

  .game-viewport[data-active-panel="profile"] .world-layer {
    filter: saturate(0.9) brightness(0.72);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .profile-screen {
    left: 50%;
    right: auto;
    top: 62px;
    bottom: 132px;
    width: min(680px, calc(100vw - 44px));
    border: 1px solid rgba(53, 226, 255, 0.72);
    border-radius: 24px;
    clip-path: polygon(0 22px, 22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
    transform: translate(-50%, 24px);
  }

  .game-viewport[data-active-panel="profile"] #profilePanel {
    transform: translate(-50%, 0);
  }

  .profile-scroll {
    padding: 24px 24px 120px;
  }
}

@keyframes hudMicroSpin {
  to {
    transform: rotate(1turn);
  }
}

/* Prestige profile pass: cleaner HUD surfaces and a rebuilt player tab. */
.app-drawer,
.profile-screen {
  color: #effdff;
}

.app-drawer {
  scrollbar-width: thin;
}

.drawer-card,
.leaderboard-card,
.wallet-pane,
.trade-row,
.lobby-row,
.shop-item,
.ready-item,
.vault-empty {
  border-color: rgba(78, 235, 255, 0.38);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -18px 28px rgba(0, 0, 0, 0.24),
    0 0 26px rgba(66, 246, 255, 0.08);
}

.bottom-tabs {
  border-color: rgba(99, 255, 231, 0.58);
  background:
    radial-gradient(circle at 18% 0, rgba(99, 255, 231, 0.16), transparent 34%),
    radial-gradient(circle at 80% 100%, rgba(123, 92, 240, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(9, 20, 42, 0.97), rgba(2, 5, 17, 0.99)),
    rgba(2, 5, 17, 0.96);
}

.app-tab {
  color: rgba(242, 250, 255, 0.82);
}

.app-tab:not(.is-active) .nav-icon svg {
  opacity: 0.96;
}

.app-tab.is-active::after {
  background:
    linear-gradient(180deg, rgba(99, 255, 231, 0.16), rgba(99, 255, 231, 0.04)),
    rgba(4, 17, 28, 0.52);
}

.profile-screen {
  background:
    radial-gradient(circle at 20% 8%, rgba(123, 92, 240, 0.18), transparent 34%),
    radial-gradient(circle at 83% 13%, rgba(42, 215, 255, 0.2), transparent 34%),
    radial-gradient(circle at 50% 96%, rgba(99, 255, 231, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(2, 10, 24, 0.99), rgba(1, 3, 10, 1)),
    #01030a;
}

.profile-screen::before {
  background-image:
    linear-gradient(rgba(99, 255, 231, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 255, 231, 0.045) 1px, transparent 1px),
    radial-gradient(circle, rgba(66, 246, 255, 0.3) 0 1px, transparent 1.6px);
  background-position: 0 0, 0 0, 34px 42px;
  background-size: 92px 92px, 92px 92px, 160px 160px;
  opacity: 0.34;
}

.profile-scroll {
  display: grid;
  align-content: start;
  gap: 14px;
}

.profile-hero {
  display: grid;
  gap: 14px;
}

.profile-title {
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
}

.profile-title h2 {
  font-size: clamp(1.64rem, 5vw, 2.32rem);
  line-height: 1;
}

.profile-title p {
  margin-top: 5px;
  font-size: 0.92rem;
}

.profile-icon {
  width: 54px;
  height: 54px;
  border-width: 2px;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(99, 255, 231, 0.28), transparent 56%),
    rgba(1, 12, 26, 0.92);
  clip-path: polygon(22% 0, 78% 0, 100% 28%, 100% 72%, 78% 100%, 22% 100%, 0 72%, 0 28%);
  color: #9ffff3;
}

.profile-card.player-card,
.profile-section,
.profile-achievements,
.profile-link,
.profile-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 255, 231, 0.46);
  background:
    linear-gradient(110deg, rgba(99, 255, 231, 0.14), transparent 22% 72%, rgba(123, 92, 240, 0.12)),
    radial-gradient(circle at 15% 8%, rgba(66, 246, 255, 0.16), transparent 30%),
    linear-gradient(155deg, rgba(6, 25, 47, 0.97), rgba(1, 5, 17, 0.99));
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 34px rgba(0, 0, 0, 0.3),
    0 0 34px rgba(66, 246, 255, 0.12);
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.profile-card.player-card {
  grid-template-areas:
    "avatar name"
    "avatar level"
    "badges badges";
  grid-template-columns: 116px minmax(0, 1fr);
  max-width: none;
  gap: 12px 16px;
  margin: 0;
  padding: 18px;
}

.profile-card.player-card::before,
.profile-section::before,
.profile-achievements::before,
.profile-link::before,
.profile-stat::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0 22%, rgba(255, 255, 255, 0.13) 31%, transparent 40% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
  background-size: 260% 100%, auto;
  content: "";
  opacity: 0.48;
  pointer-events: none;
}

.profile-card.player-card > *,
.profile-section > *,
.profile-achievements > *,
.profile-link > *,
.profile-stat > * {
  position: relative;
  z-index: 1;
}

.avatar-frame {
  grid-area: avatar;
  position: relative;
  display: grid;
  width: 112px;
  height: 136px;
  place-items: center;
}

.avatar-frame::before,
.avatar-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(99, 255, 231, 0.42);
  content: "";
  clip-path: polygon(22% 0, 78% 0, 100% 28%, 100% 72%, 78% 100%, 22% 100%, 0 72%, 0 28%);
  pointer-events: none;
}

.avatar-frame::before {
  box-shadow:
    inset 0 0 26px rgba(99, 255, 231, 0.16),
    0 0 24px rgba(99, 255, 231, 0.16);
}

.avatar-frame::after {
  inset: 9px;
  border-color: rgba(123, 92, 240, 0.3);
}

.avatar {
  position: relative;
  z-index: 1;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.82);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(99, 255, 231, 0.52), transparent 50%),
    radial-gradient(circle at 50% 76%, rgba(123, 92, 240, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(12, 57, 82, 0.96), rgba(2, 8, 19, 0.98));
  clip-path: polygon(22% 0, 78% 0, 100% 28%, 100% 72%, 78% 100%, 22% 100%, 0 72%, 0 28%);
  color: #020816;
  font-size: 1.8rem;
  font-weight: 950;
  box-shadow:
    inset 0 0 30px rgba(99, 255, 231, 0.24),
    0 0 32px rgba(99, 255, 231, 0.28);
}

.avatar img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.has-image img {
  display: block;
}

.avatar.has-image span {
  display: none;
}

.avatar-scan-line {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 28px;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 255, 231, 0.95), transparent);
  box-shadow: 0 0 18px rgba(99, 255, 231, 0.74);
  animation: profileScanLine 3.8s ease-in-out infinite;
}

.profile-name {
  grid-area: name;
  min-width: 0;
  align-self: end;
}

.profile-name small,
.profile-stat span,
.profile-level span,
.achievement-grid small {
  color: rgba(162, 206, 236, 0.82);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-name h3 {
  margin-top: 4px;
  color: #f7feff;
  font-size: clamp(1.46rem, 4.8vw, 2.05rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 14px rgba(99, 255, 231, 0.28),
    0 0 30px rgba(66, 246, 255, 0.12);
}

.profile-name p {
  margin-top: 6px;
  color: rgba(205, 226, 242, 0.75);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.profile-level {
  grid-area: level;
  align-self: start;
  display: grid;
  gap: 6px;
}

.profile-level span {
  color: #ffd676;
}

.profile-level small {
  color: rgba(205, 226, 242, 0.66);
  font-size: 0.74rem;
  font-weight: 800;
}

.profile-xp {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(99, 255, 231, 0.28);
  background: rgba(1, 5, 17, 0.92);
  clip-path: polygon(0 4px, 4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.profile-xp i {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #63ffe7, #42f6ff, #ffd676);
  box-shadow: 0 0 14px rgba(99, 255, 231, 0.58);
}

.profile-badges {
  grid-area: badges;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.plan-pill,
.status-pill {
  min-height: 46px;
  align-content: center;
  border-color: rgba(99, 255, 231, 0.45);
  background:
    linear-gradient(180deg, rgba(99, 255, 231, 0.16), rgba(66, 246, 255, 0.05)),
    rgba(1, 10, 24, 0.92);
  color: #effdff;
  font-size: 0.76rem;
  text-align: center;
}

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

.profile-stat {
  min-height: 74px;
  padding: 14px;
}

.profile-stat strong {
  display: block;
  margin-top: 5px;
  color: #9ffff3;
  font-size: 1.34rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(99, 255, 231, 0.28);
}

.profile-section,
.profile-achievements {
  display: grid;
  max-width: none;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.profile-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.profile-section-head.compact {
  align-items: center;
}

.profile-sync {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.4);
  background: rgba(99, 255, 231, 0.08);
  color: #8ffff1;
  padding: 0 10px;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.detail-row {
  min-height: 72px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 12px;
}

.detail-row span {
  width: 40px;
  height: 40px;
  font-size: 0.72rem;
}

.detail-row small {
  font-size: 0.74rem;
}

.detail-row strong {
  margin-top: 3px;
  font-size: 0.98rem;
}

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

.achievement-grid article {
  position: relative;
  display: grid;
  min-height: 92px;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(99, 255, 231, 0.28);
  background:
    radial-gradient(circle at 20% 24%, rgba(99, 255, 231, 0.14), transparent 34%),
    rgba(1, 9, 22, 0.82);
  padding: 12px 12px 12px 58px;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.achievement-grid article span {
  position: absolute;
  left: 12px;
  top: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.44);
  background: rgba(99, 255, 231, 0.1);
  color: #9ffff3;
  font-weight: 950;
  transform: translateY(-50%);
  clip-path: polygon(22% 0, 78% 0, 100% 28%, 100% 72%, 78% 100%, 22% 100%, 0 72%, 0 28%);
}

.achievement-grid strong {
  color: #effdff;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.profile-actions {
  display: grid;
  gap: 10px;
}

.profile-link {
  max-width: none;
  min-height: 72px;
  margin: 0;
  grid-template-columns: 54px minmax(0, 1fr) 34px;
  padding: 10px 12px;
}

.profile-link span {
  width: 46px;
  height: 46px;
  font-size: 0.66rem;
}

.profile-link strong {
  font-size: 0.96rem;
}

.profile-link b {
  width: 30px;
  height: 30px;
  font-size: 1.32rem;
}

.profile-link-danger {
  border-color: rgba(255, 92, 122, 0.42);
}

.profile-link-danger span,
.profile-link-danger b {
  border-color: rgba(255, 92, 122, 0.36);
  background: rgba(255, 92, 122, 0.08);
  color: #ff8da2;
}

@media (min-width: 1101px) {
  .profile-screen {
    width: min(640px, calc(100vw - 52px));
  }

  .profile-scroll {
    padding: 16px 16px 22px;
  }

  .profile-card.player-card {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 16px;
  }

  .avatar-frame {
    width: 108px;
    height: 132px;
  }
}

@media (max-width: 760px) {
  .profile-scroll {
    padding: 82px max(16px, 5vw) 128px;
  }

  .profile-title {
    justify-content: start;
    text-align: left;
  }

  .profile-card.player-card {
    grid-template-areas:
      "avatar name"
      "level level"
      "badges badges";
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 15px;
  }

  .avatar-frame {
    width: 88px;
    height: 106px;
  }

  .avatar {
    width: 66px;
    height: 66px;
    font-size: 1.4rem;
  }

  .profile-badges {
    grid-template-columns: 1fr;
  }

  .profile-stats-grid {
    gap: 8px;
  }

  .profile-stat {
    min-height: 64px;
    padding: 12px 8px;
    text-align: center;
  }

  .profile-stat strong {
    font-size: 1.06rem;
  }

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

@keyframes profileScanLine {
  0%,
  100% {
    opacity: 0.12;
    transform: translateY(0);
  }
  45% {
    opacity: 0.95;
    transform: translateY(74px);
  }
}

/* Profile optimisation pass: fix collapsed cards and action row wrapping. */
.profile-scroll {
  gap: 12px;
}

.profile-card.player-card {
  gap: 10px 14px;
  padding: 15px;
}

.profile-stats-grid {
  gap: 8px;
}

.profile-stat {
  min-height: 64px;
  padding: 11px 12px;
}

.profile-stat strong {
  font-size: 1.22rem;
}

.profile-section,
.profile-achievements {
  height: auto !important;
  margin: 0;
  overflow: hidden;
}

.profile-section {
  min-height: 330px;
}

.profile-achievements {
  min-height: 286px;
}

.profile-section-head {
  min-width: 0;
}

.profile-section-head > div {
  min-width: 0;
}

.profile-section-head p {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.detail-row {
  align-items: center;
  min-height: 70px;
}

.achievement-grid article {
  min-height: 84px;
}

.profile-actions {
  gap: 9px;
}

.profile-link {
  min-height: 78px;
  grid-template-areas:
    "icon title arrow"
    "icon meta arrow";
  grid-template-columns: 50px minmax(0, 1fr) 32px;
  grid-template-rows: auto auto;
  column-gap: 13px;
  row-gap: 4px;
  align-items: center;
  padding: 12px 13px;
}

.profile-link > span {
  grid-area: icon;
  align-self: center;
  justify-self: start;
}

.profile-link strong {
  grid-area: title;
  align-self: end;
  min-width: 0;
  line-height: 1.05;
}

.profile-link small {
  grid-area: meta;
  align-self: start;
  min-width: 0;
  margin-top: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.profile-link b {
  grid-area: arrow;
  align-self: center;
  justify-self: end;
}

@media (min-width: 1101px) {
  .profile-screen {
    width: min(620px, calc(100vw - 52px));
  }

  .profile-scroll {
    padding: 14px 14px 22px;
  }
}

@media (max-width: 760px) {
  .profile-scroll {
    gap: 11px;
  }

  .profile-section {
    min-height: 330px;
  }

  .profile-achievements {
    min-height: 462px;
  }

  .profile-link {
    min-height: 76px;
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    padding: 11px 12px;
  }
}

/* Profile account center: live settings, plans, teams, support, and legal. */
.profile-hub {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(75, 255, 235, 0.46);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(14, 62, 76, 0.92), rgba(8, 14, 34, 0.96) 52%, rgba(28, 20, 67, 0.92)),
    rgba(5, 10, 24, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(150, 255, 246, 0.08),
    0 0 30px rgba(54, 246, 232, 0.1);
  overflow: hidden;
}

.profile-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(75, 255, 235, 0.13) 50%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
  opacity: 0.28;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.profile-hub > * {
  position: relative;
}

.profile-hub-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.profile-hub-head h3 {
  margin: 4px 0 3px;
  color: #f4fbff;
  font-size: 1.26rem;
  line-height: 1;
  text-transform: uppercase;
}

.profile-hub-head p {
  margin: 0;
  color: rgba(222, 236, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-hub-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(74, 255, 235, 0.25);
  border-radius: 12px;
  background: rgba(2, 7, 18, 0.62);
}

.profile-hub-tab {
  min-width: 0;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(12, 20, 40, 0.72);
  color: rgba(226, 236, 255, 0.72);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.profile-hub-tab.is-active {
  border-color: rgba(72, 255, 235, 0.86);
  background: linear-gradient(135deg, rgba(45, 255, 231, 0.27), rgba(26, 82, 124, 0.45));
  color: #53fff0;
  box-shadow: inset 0 0 16px rgba(72, 255, 235, 0.12), 0 0 16px rgba(42, 246, 230, 0.16);
}

.profile-hub-pane {
  display: none;
  gap: 11px;
}

.profile-hub-pane.is-active {
  display: grid;
}

.profile-form,
.profile-inline-form {
  display: grid;
  gap: 10px;
}

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

.profile-inline-form {
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: end;
}

.profile-form label,
.profile-inline-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: rgba(220, 235, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-form input,
.profile-form textarea,
.profile-form select,
.profile-inline-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(78, 255, 235, 0.28);
  border-radius: 10px;
  background: rgba(6, 14, 29, 0.82);
  color: #f4fbff;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
  box-shadow: inset 0 0 18px rgba(22, 216, 230, 0.05);
}

.profile-form input,
.profile-form select,
.profile-inline-form input {
  height: 42px;
  padding: 0 12px;
}

.profile-form textarea {
  min-height: 84px;
  padding: 11px 12px;
  resize: vertical;
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus,
.profile-inline-form input:focus {
  border-color: rgba(78, 255, 235, 0.85);
  box-shadow: 0 0 0 3px rgba(64, 255, 234, 0.1), inset 0 0 18px rgba(22, 216, 230, 0.08);
}

.profile-form-wide {
  grid-column: 1 / -1;
}

.profile-primary-action,
.profile-secondary-action,
.profile-inline-form button,
.profile-package button,
.profile-legal-grid a,
.profile-legal-grid button {
  min-height: 42px;
  border: 1px solid rgba(80, 255, 236, 0.62);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 245, 223, 0.22), rgba(14, 42, 70, 0.72));
  color: #f4fbff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(67, 255, 238, 0.1);
}

.profile-primary-action {
  color: #06101b;
  background: linear-gradient(135deg, #4bffe9, #5fb5ff);
}

.profile-secondary-action {
  color: rgba(245, 250, 255, 0.92);
  background: linear-gradient(135deg, rgba(255, 80, 111, 0.18), rgba(12, 27, 48, 0.82));
  border-color: rgba(255, 120, 142, 0.48);
}

.profile-primary-action:disabled,
.profile-secondary-action:disabled,
.profile-inline-form button:disabled,
.profile-package button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.profile-data-list,
.profile-package-grid,
.profile-legal-grid {
  display: grid;
  gap: 9px;
}

.profile-data-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-data-list article,
.profile-package,
.profile-empty-row,
.profile-legal-grid a,
.profile-legal-grid button {
  min-width: 0;
  border: 1px solid rgba(75, 255, 235, 0.24);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(17, 44, 67, 0.9), rgba(7, 12, 27, 0.9));
}

.profile-data-list article,
.profile-empty-row {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
}

.profile-data-list span,
.profile-package span {
  color: #54fff0;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-data-list strong,
.profile-package strong {
  min-width: 0;
  color: #f4fbff;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.profile-data-list small,
.profile-package small {
  min-width: 0;
  color: rgba(222, 235, 255, 0.62);
  font-size: 0.7rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.profile-package {
  display: grid;
  gap: 7px;
  min-height: 142px;
  padding: 12px;
}

.profile-package b {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(90, 255, 235, 0.28);
  border-radius: 999px;
  color: rgba(225, 236, 255, 0.78);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.profile-package button {
  align-self: end;
  width: 100%;
}

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

.profile-legal-grid a,
.profile-legal-grid button {
  display: grid;
  place-items: center;
  padding: 12px 10px;
}

@media (min-width: 1101px) {
  .profile-screen {
    width: min(700px, calc(100vw - 52px));
  }
}

@media (max-width: 760px) {
  .profile-hub {
    padding: 12px;
    border-radius: 13px;
  }

  .profile-hub-head {
    align-items: start;
  }

  .profile-hub-head h3 {
    font-size: 1.08rem;
  }

  .profile-hub-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-form,
  .profile-inline-form,
  .profile-data-list,
  .profile-package-grid,
  .profile-legal-grid {
    grid-template-columns: 1fr;
  }

  .profile-hub-tab {
    min-height: 38px;
  }
}

/* Connected profile logic: existing rows open this matching HUD panel. */
.detail-row {
  width: 100%;
  border: 1px solid rgba(99, 255, 231, 0.28);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.detail-row:hover,
.profile-link:hover {
  border-color: rgba(99, 255, 231, 0.72);
  box-shadow:
    inset 0 0 22px rgba(99, 255, 231, 0.08),
    0 0 28px rgba(66, 246, 255, 0.18);
}

.profile-hub {
  display: none;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(99, 255, 231, 0.46);
  border-radius: 0;
  background:
    linear-gradient(110deg, rgba(99, 255, 231, 0.14), transparent 22% 72%, rgba(123, 92, 240, 0.12)),
    radial-gradient(circle at 15% 8%, rgba(66, 246, 255, 0.16), transparent 30%),
    linear-gradient(155deg, rgba(6, 25, 47, 0.97), rgba(1, 5, 17, 0.99));
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 34px rgba(0, 0, 0, 0.3),
    0 0 34px rgba(66, 246, 255, 0.12);
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.profile-hub.is-open {
  display: grid;
}

.profile-hub-tabs {
  display: none;
}

.profile-hub-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 34px;
  align-items: center;
}

.profile-hub-icon,
.profile-pane-orb,
.profile-row-avatar,
.profile-settings-grid span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.44);
  background:
    radial-gradient(circle at 50% 35%, rgba(99, 255, 231, 0.25), transparent 58%),
    rgba(99, 255, 231, 0.08);
  color: #9ffff3;
  font-size: 0.68rem;
  font-weight: 950;
  clip-path: polygon(22% 0, 78% 0, 100% 28%, 100% 72%, 78% 100%, 22% 100%, 0 72%, 0 28%);
}

.profile-hub-icon {
  width: 40px;
  height: 40px;
}

.profile-hub-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.4);
  background: rgba(2, 12, 27, 0.72);
  color: #9ffff3;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 900;
  cursor: pointer;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.profile-pane-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border: 1px solid rgba(99, 255, 231, 0.28);
  background:
    linear-gradient(100deg, rgba(99, 255, 231, 0.11), transparent 55%, rgba(123, 92, 240, 0.12)),
    rgba(1, 9, 22, 0.82);
  padding: 12px;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.profile-pane-orb,
.profile-row-avatar,
.profile-settings-grid span {
  width: 40px;
  height: 40px;
}

.profile-pane-hero strong {
  color: #effdff;
  font-size: 0.96rem;
  text-transform: uppercase;
}

.profile-pane-hero small {
  display: block;
  margin-top: 4px;
  color: rgba(205, 226, 242, 0.7);
  font-size: 0.74rem;
  line-height: 1.35;
}

.profile-pane-hero b,
.profile-team-row b,
.profile-ticket-row b {
  border: 1px solid rgba(99, 255, 231, 0.34);
  background: rgba(99, 255, 231, 0.08);
  color: #8ffff1;
  padding: 6px 9px;
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.profile-form,
.profile-inline-form {
  border: 1px solid rgba(99, 255, 231, 0.24);
  background: rgba(1, 9, 22, 0.66);
  padding: 12px;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.profile-settings-grid {
  display: grid;
  gap: 9px;
}

.profile-settings-grid button,
.profile-pane-actions button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  grid-template-areas:
    "icon title arrow"
    "icon meta arrow";
  align-items: center;
  gap: 3px 12px;
  min-height: 68px;
  border: 1px solid rgba(99, 255, 231, 0.28);
  background:
    linear-gradient(100deg, rgba(99, 255, 231, 0.1), transparent 55%, rgba(123, 92, 240, 0.1)),
    rgba(1, 9, 22, 0.8);
  color: inherit;
  font: inherit;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.profile-settings-grid span {
  grid-area: icon;
}

.profile-settings-grid strong {
  grid-area: title;
  color: #effdff;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.profile-settings-grid small {
  grid-area: meta;
  color: rgba(205, 226, 242, 0.66);
  font-size: 0.72rem;
}

.profile-settings-grid b {
  grid-area: arrow;
  justify-self: end;
  color: #8ffff1;
  font-size: 1.1rem;
}

.profile-pane-actions {
  display: grid;
  gap: 9px;
}

.profile-pane-actions button {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #8ffff1;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.profile-data-list {
  grid-template-columns: 1fr;
}

.profile-plan-overview {
  grid-column: 1 / -1;
}

.profile-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.profile-metric-grid div {
  border: 1px solid rgba(99, 255, 231, 0.2);
  background: rgba(2, 12, 27, 0.74);
  padding: 10px;
}

.profile-package ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
  color: rgba(205, 226, 242, 0.7);
  font-size: 0.72rem;
}

.profile-package-price {
  color: #ffd676;
  font-size: 1.18rem;
  font-weight: 950;
}

.profile-package-price small {
  color: rgba(205, 226, 242, 0.64);
  font-size: 0.68rem;
}

.profile-empty-row,
.profile-team-row,
.profile-ticket-row {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
}

.profile-empty-row {
  min-height: 74px;
}

.profile-empty-row div,
.profile-team-row div {
  min-width: 0;
}

.profile-team-row,
.profile-ticket-row {
  display: grid;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
}

.profile-ticket-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.profile-ticket-row span,
.profile-ticket-row strong,
.profile-ticket-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .profile-hub-head {
    grid-template-columns: 42px minmax(0, 1fr) auto 30px;
    gap: 9px;
  }

  .profile-pane-hero {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .profile-pane-hero b {
    grid-column: 2;
    justify-self: start;
  }

  .profile-metric-grid,
  .profile-package-grid {
    grid-template-columns: 1fr;
  }
}

/* Connected wallet: live Ready, Vault, fulfillment, and trade state. */
.wallet-status-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(99, 255, 231, 0.28);
  background:
    linear-gradient(100deg, rgba(99, 255, 231, 0.11), transparent 55%, rgba(123, 92, 240, 0.12)),
    rgba(1, 9, 22, 0.82);
  padding: 13px;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.wallet-status-summary {
  color: #effdff;
  font-size: 0.82rem;
  font-weight: 900;
}

.wallet-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.wallet-timeline article {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(99, 255, 231, 0.2);
  background: rgba(2, 12, 27, 0.74);
  padding: 9px;
}

.wallet-timeline article[data-status="active"],
.wallet-timeline article[data-status="ready"] {
  border-color: rgba(99, 255, 231, 0.5);
  background: rgba(99, 255, 231, 0.1);
}

.wallet-timeline span,
.wallet-prize-meta span {
  color: rgba(162, 206, 236, 0.82);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wallet-timeline strong {
  color: #9ffff3;
  font-size: 1.02rem;
  line-height: 1;
}

.wallet-timeline small {
  color: rgba(205, 226, 242, 0.62);
  font-size: 0.64rem;
}

.ready-item header {
  align-items: center;
  justify-content: start;
}

.ready-item header > div {
  min-width: 0;
  flex: 1;
}

.ready-item header b {
  border: 1px solid rgba(99, 255, 231, 0.34);
  background: rgba(99, 255, 231, 0.08);
  color: #8ffff1;
  padding: 6px 9px;
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wallet-prize-icon {
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(99, 255, 231, 0.44);
  background:
    radial-gradient(circle at 50% 35%, rgba(99, 255, 231, 0.25), transparent 58%),
    rgba(99, 255, 231, 0.08);
  color: #9ffff3;
  font-size: 0.8rem;
  font-weight: 950;
  clip-path: polygon(22% 0, 78% 0, 100% 28%, 100% 72%, 78% 100%, 22% 100%, 0 72%, 0 28%);
}

.wallet-prize-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wallet-prize-meta {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.vault-item[data-status="processing"] {
  border-color: rgba(255, 214, 118, 0.44);
}

.vault-item[data-status="shipped"],
.vault-item[data-status="delivered"] {
  border-color: rgba(95, 181, 255, 0.48);
}

.wallet-empty-state {
  min-height: 210px;
}

.wallet-empty-state .wallet-prize-icon {
  width: 64px;
  height: 64px;
}

.ready-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.ready-actions button,
.ready-actions .wallet-link-action {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(99, 255, 231, 0.42);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(30, 245, 223, 0.18), rgba(14, 42, 70, 0.74));
  color: #effdff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 950;
  padding: 0 14px;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.ready-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 760px) {
  .wallet-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ready-item header {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ready-item header b {
    grid-column: 2;
    justify-self: start;
  }
}

.game-viewport.is-mobile-lite .boot-splash-logo,
.game-viewport.is-mobile-lite .lobby-icon::before,
.game-viewport.is-mobile-lite .wallet-icon::before,
.game-viewport.is-mobile-lite .trade-row span::before,
.game-viewport.is-mobile-lite .profile-link span::before,
.game-viewport.is-mobile-lite .shop-item-icon::before,
.game-viewport.is-mobile-lite .circle-icon::before,
.game-viewport.is-mobile-lite .profile-icon::before {
  animation: none;
  will-change: auto;
}

.game-viewport.is-mobile-lite .bottom-tabs {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -12px 26px rgba(1, 4, 14, 0.42),
    0 0 22px rgba(42, 215, 255, 0.1);
}

.game-viewport.is-mobile-lite .app-drawer,
.game-viewport.is-mobile-lite .drawer-card,
.game-viewport.is-mobile-lite .leaderboard-card,
.game-viewport.is-mobile-lite .wallet-pane,
.game-viewport.is-mobile-lite .profile-card,
.game-viewport.is-mobile-lite .profile-section,
.game-viewport.is-mobile-lite .profile-link,
.game-viewport.is-mobile-lite .trade-row,
.game-viewport.is-mobile-lite .shop-item {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.game-viewport.is-mobile-lite .app-tab,
.game-viewport.is-mobile-lite .shop-action {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.game-viewport.is-mobile-lite:not([data-active-panel="map"]) .world-layer {
  display: none;
}

.game-viewport.is-mobile-lite .app-drawer,
.game-viewport.is-mobile-lite .profile-screen {
  display: none;
  opacity: 1;
  transform: none;
  transition: none;
}

.game-viewport.is-mobile-lite[data-active-panel="lobbies"] #lobbiesPanel,
.game-viewport.is-mobile-lite[data-active-panel="wallet"] #walletPanel,
.game-viewport.is-mobile-lite[data-active-panel="shop"] #shopPanel {
  display: grid;
  opacity: 1;
  transform: none;
}

.game-viewport.is-mobile-lite[data-active-panel="profile"] #profilePanel {
  display: block;
  opacity: 1;
  transform: none;
}

.game-viewport.is-mobile-lite .drawer-card::before,
.game-viewport.is-mobile-lite .leaderboard-card::before,
.game-viewport.is-mobile-lite .wallet-pane::before,
.game-viewport.is-mobile-lite .profile-card::before,
.game-viewport.is-mobile-lite .profile-section::before,
.game-viewport.is-mobile-lite .profile-link::before,
.game-viewport.is-mobile-lite .trade-row::before,
.game-viewport.is-mobile-lite .shop-item::before {
  display: none;
}

.game-viewport.is-low-power .world-layer {
  background:
    linear-gradient(180deg, rgba(7, 16, 29, 0.18), rgba(6, 12, 22, 0.58)),
    linear-gradient(135deg, #071321, #040813),
    #07101d;
}

.game-viewport.is-low-power .drawer-card,
.game-viewport.is-low-power .leaderboard-card,
.game-viewport.is-low-power .wallet-pane,
.game-viewport.is-low-power .profile-card,
.game-viewport.is-low-power .profile-section,
.game-viewport.is-low-power .profile-link,
.game-viewport.is-low-power .trade-row,
.game-viewport.is-low-power .lobby-row,
.game-viewport.is-low-power .shop-item,
.game-viewport.is-low-power .ready-item,
.game-viewport.is-low-power .detail-row,
.game-viewport.is-low-power .vault-empty,
.game-viewport.is-low-power .podium-card {
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 1px 150px;
  border-radius: 14px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  clip-path: none;
  outline: 0;
}

.game-viewport.is-low-power .app-drawer,
.game-viewport.is-low-power .profile-screen {
  clip-path: none;
  scrollbar-gutter: stable;
}

.game-viewport.is-low-power .drawer-card:hover,
.game-viewport.is-low-power .leaderboard-card:hover,
.game-viewport.is-low-power .wallet-pane:hover,
.game-viewport.is-low-power .profile-card:hover,
.game-viewport.is-low-power .profile-section:hover,
.game-viewport.is-low-power .vault-empty:hover {
  border-color: rgba(99, 255, 231, 0.4);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-viewport.is-low-power .map-marker,
.game-viewport.is-low-power .player-puck,
.game-viewport.is-low-power .gotcha-mapbox-marker {
  filter: none;
  box-shadow: none;
}

.game-viewport.is-low-power .profile-scroll,
.game-viewport.is-low-power .app-drawer {
  overscroll-behavior: contain;
}
