.hidden,
[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

:root {
  color-scheme: dark;
  --bg-0: #070f0c;
  --bg-1: #102018;
  --panel-bg: #121d19;
  --panel-bg-soft: #0f1714;
  --panel-border: rgba(218, 233, 223, 0.15);
  --text-main: #edf5ef;
  --text-muted: #9bb1a4;
  --accent: #cdb387;
  --danger: #ff7d73;
  --tg-safe-top: 0px;
  --tg-safe-right: 0px;
  --tg-safe-bottom: 0px;
  --tg-safe-left: 0px;
  --ios-safe-bottom-fallback: 0px;
  --grid-gap: clamp(8px, 1.5vh, 12px);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --table-shell-1: #56131f;
  --table-shell-2: #3e0d16;
  --table-shell-3: #28070e;
  --table-shell-glow: rgba(86, 11, 20, 0.44);
  --table-border: rgba(191, 126, 108, 0.46);
}

/* ==========================================================================
   IN-GAME PLAYER BARS — opponent on top, self at bottom (in-flow grid rows)
   ========================================================================== */
.hud-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 8px 12px;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(226, 194, 117, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 46%),
    rgba(6, 16, 12, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 22px rgba(0, 0, 0, 0.42);
  font-family: 'Outfit', sans-serif;
  position: relative;
  z-index: 6;
  transition: border-color 0.25s ease;
}

.hud-bar.active {
  border-color: rgba(226, 194, 117, 0.7);
}

/* ---- Avatar with turn-clock ring around it ---- */
.hud-bar-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.hud-bar-avatar-wrap .hud-clock-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hud-bar.active .hud-bar-avatar-wrap .hud-clock-svg {
  opacity: 1;
}

.hud-clock-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
}

.hud-clock-progress {
  fill: none;
  stroke: #e2c275;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s linear, stroke 0.3s ease;
}

.hud-bar-avatar {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background-color: #0e1f18;
  border: 1px solid rgba(226, 194, 117, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #f5e4b8;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hud-bar-avatar.has-photo {
  color: transparent;
}

/* Seconds bubble pinned to avatar corner, only while active */
.hud-clock-num {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e2c275;
  color: #06120c;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hud-bar.active .hud-clock-num {
  opacity: 1;
  transform: scale(1);
}

.hud-clock-num.warn {
  background: #ff6b6b;
  color: #fff;
  animation: hud-turn-warn 0.9s ease-in-out infinite;
}

@keyframes hud-turn-warn {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

/* ---- Body ---- */
.hud-bar-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hud-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.hud-bar-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #f0f7f3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hud-bar.active .hud-bar-name {
  color: #fbe69b;
}

.hud-group-label {
  flex-shrink: 0;
  max-width: 42%;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7f978b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Mini pool-ball track (styled like real balls) ---- */
.hud-balls-track {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.track-dot {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.3),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

/* Solid ball: full color */
.track-dot.solid {
  background: radial-gradient(circle at 34% 28%, #ff6b5e 0%, #d92e22 55%, #a01810 100%);
}

/* Stripe ball: white with a color band */
.track-dot.stripe {
  background:
    linear-gradient(180deg,
      #f4f6f5 0%, #f4f6f5 24%,
      #2f6fd8 24%, #1a56c4 76%,
      #f4f6f5 76%, #f4f6f5 100%);
}

.track-dot.pocketed {
  opacity: 0.18;
  transform: scale(0.62);
  filter: grayscale(100%);
}

/* ---- Big remaining counter ---- */
.hud-bar-count {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-bar-count strong {
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  color: #e2c275;
  font-variant-numeric: tabular-nums;
}

.hud-count-cap {
  font-weight: 700;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f978b;
  margin-top: 2px;
}

/* ---- Exit button ---- */
.hud-exit-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2c275;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.2s ease;
}

.hud-exit-btn:active {
  transform: scale(0.9);
  background: rgba(226, 194, 117, 0.2);
}

.hud-exit-btn svg {
  width: 15px;
  height: 15px;
}

/* ---- Turn status chip (inside self bar, floats above it) ---- */
.hud-status-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5e4b8 0%, #e2c275 55%, #c9a259 100%);
  border: 1px solid rgba(6, 16, 12, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #06120c;
  white-space: nowrap;
  pointer-events: none;
}

/* ---- Hide in-game chrome when an overlay screen is active ---- */
.app.menu-open .hud-bar,
.app.menu-open .hud-status-badge,
.app.leaderboard-open .hud-bar,
.app.leaderboard-open .hud-status-badge,
.app.shop-open .hud-bar,
.app.shop-open .hud-status-badge,
.app.app-booting .hud-bar,
.app.app-booting .hud-status-badge {
  display: none !important;
}

/* Main menu refresh */
.bug-report-btn {
  min-height: 48px;
  border-radius: 17px;
  border: 1px solid rgba(255, 122, 122, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #4b1e24, #311217 68%, #1f0b0e 100%);
  color: #ffd8dc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -10px 12px rgba(0, 0, 0, 0.22),
    0 12px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, filter 0.16s ease, border-color 0.18s ease;
}

@keyframes menu-float-main {

  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }

  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@keyframes menu-float-side {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes menu-pulse-accent {

  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 16px 28px rgba(0, 0, 0, 0.26),
      0 0 0 0 rgba(114, 203, 255, 0.12);
  }

  50% {
    transform: scale(1.05);
    box-shadow:
      0 18px 32px rgba(0, 0, 0, 0.28),
      0 0 0 12px rgba(114, 203, 255, 0);
  }
}

.menu-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: transparent;
}

#menu-3d-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 15%, rgba(4, 10, 8, 0.2) 0%, rgba(4, 10, 8, 0.75) 100%),
    linear-gradient(180deg, rgba(4, 10, 8, 0.45) 0%, rgba(4, 10, 8, 0.7) 100%);
  pointer-events: none;
}

.menu-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 100dvh;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.brand-overlay {
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 6.5vw, 30px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #b2d8c9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.brand-sub {
  font-size: 10px;
  color: #8fa89b;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1px;
}

.menu-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 31, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(46, 140, 102, 0.18);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
}

.menu-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce99f 0%, #d4af37 60%, #9e7a1b 100%);
  padding: 2px;
  flex-shrink: 0;
}

.menu-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #0e1f18;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fbe69b;
}

.menu-avatar-inner.has-photo,
.avatar.has-photo {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
}

.menu-lvl-tag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: linear-gradient(135deg, #fce99f 0%, #d4af37 60%, #9e7a1b 100%);
  color: #040a08;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 8px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid #040a08;
}

.menu-user-details {
  display: flex;
  flex-direction: column;
}

.menu-name-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #f0f7f3;
}

.menu-online-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #4de2b3;
  font-weight: 600;
}

.menu-dot-pulse {
  width: 6px;
  height: 6px;
  background: #00ffaa;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ffaa;
}

.menu-currency-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 31, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-currency-pill:hover {
  background: rgba(212, 175, 55, 0.15);
}

.menu-currency-pill svg {
  width: 16px;
  height: 16px;
  color: #d4af37;
}

.menu-currency-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #fbe69b;
}

/* 15-BALL TRIANGLE RACK HERO */
.billiard-rack-hero {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 255, 170, 0.1) 0%, transparent 65%),
    linear-gradient(180deg, rgba(14, 31, 24, 0.6) 0%, rgba(7, 16, 12, 0.8) 100%);
  border: 1px solid rgba(46, 140, 102, 0.18);
  border-radius: 24px;
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rack-stage {
  position: relative;
  width: 220px;
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 6px;
  animation: floating-rack 5s ease-in-out infinite;
}

@keyframes floating-rack {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.ball-row {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: -4px;
  position: relative;
  z-index: 2;
}

.pool-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.7),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pool-ball-inner {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 8px;
  color: #111;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ball-1 {
  background: radial-gradient(circle at 35% 30%, #fadb4d, #d49f05, #5e4400);
}

.ball-2 {
  background: radial-gradient(circle at 35% 30%, #4a8dff, #1a56c4, #0a2561);
}

.ball-3 {
  background: radial-gradient(circle at 35% 30%, #ff5252, #c91818, #590505);
}

.ball-4 {
  background: radial-gradient(circle at 35% 30%, #be5aff, #8014c4, #3a045c);
}

.ball-5 {
  background: radial-gradient(circle at 35% 30%, #ff9d42, #d46505, #5e2800);
}

.ball-6 {
  background: radial-gradient(circle at 35% 30%, #42d47e, #0e8c43, #033b1a);
}

.ball-7 {
  background: radial-gradient(circle at 35% 30%, #9e4638, #6e2014, #2e0904);
}

.ball-8 {
  background: radial-gradient(circle at 35% 30%, #3a3a3a, #111111, #000000);
}

.ball-8 .pool-ball-inner {
  background: #ffffff;
  color: #000;
}

.ball-stripe {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #d8e3de 50%, #9cb0a6 100%);
}

.ball-stripe::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  bottom: 6px;
  border-radius: 3px;
  z-index: 1;
}

.ball-9::before {
  background: #d49f05;
}

.ball-10::before {
  background: #1a56c4;
}

.ball-11::before {
  background: #c91818;
}

.ball-12::before {
  background: #8014c4;
}

.ball-13::before {
  background: #d46505;
}

.ball-14::before {
  background: #0e8c43;
}

.ball-15::before {
  background: #6e2014;
}

.ball-stripe .pool-ball-inner {
  position: relative;
  z-index: 2;
}

.cue-group-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18px;
  position: relative;
}

.cue-ball {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e6f0ec 60%, #a8beb5 100%);
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.6),
    inset 0 -4px 6px rgba(0, 0, 0, 0.3),
    inset 0 3px 5px rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.cue-stick {
  width: 6px;
  height: 70px;
  background: linear-gradient(180deg, #f0e6d2 0%, #b89868 25%, #4a3424 70%, #291a10 100%);
  border-radius: 3px 3px 1px 1px;
  margin-top: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: transform 0.3s ease;
}

.cue-stick::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #ffffff;
  border-radius: 3px 3px 0 0;
}

.billiard-rack-hero.striking .cue-stick {
  animation: cue-strike 0.5s ease-in-out;
}

.billiard-rack-hero.striking .cue-ball {
  animation: ball-hit 0.5s ease-in-out;
}

.billiard-rack-hero.striking .pool-ball {
  animation: rack-break 0.6s ease-out;
}

@keyframes cue-strike {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(12px);
  }

  50% {
    transform: translateY(-16px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes ball-hit {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes rack-break {
  0% {
    transform: translate(0, 0);
  }

  40% {
    transform: translate(var(--dx, 2px), var(--dy, -4px));
  }

  100% {
    transform: translate(0, 0);
  }
}

.rack-title-text {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #b2d6c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}

.rack-sub-text {
  font-size: 11px;
  color: #7d968a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* MAIN ACTIONS & THEMATIC BILLIARD-SHAPED BUTTONS */
.menu-main-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* SEGMENTED MODE DIAL SWITCHER (1-CLICK MAIN MENU DIRECT SWITCH) */
.menu-main-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  min-height: 164px !important;
  height: 164px !important;
  justify-content: flex-start !important;
}

.menu-mode-dial {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  background: rgba(6, 16, 12, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(226, 194, 117, 0.3) !important;
  border-radius: 999px !important;
  padding: 4px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  height: 44px !important;
}

.mode-tab-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 8px 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: #8da497 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  box-shadow: none !important;
  outline: none !important;
}

.mode-tab-btn svg {
  width: 15px !important;
  height: 15px !important;
  color: #8da497 !important;
  transition: color 0.2s ease !important;
}

.mode-tab-btn.active {
  background: linear-gradient(135deg, #f5e4b8 0%, #e2c275 50%, #b88a44 100%) !important;
  color: #06120c !important;
  box-shadow: 0 4px 12px rgba(226, 194, 117, 0.35) !important;
}

.mode-tab-btn.active svg {
  color: #06120c !important;
}

.menu-btn-primary {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 32, 24, 0.92) 0%, rgba(8, 20, 15, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(203, 163, 88, 0.35);
  border-radius: 28px 12px 28px 12px;
  /* Asymmetrical Billiard Capsule Notch */
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  height: 68px !important;
  min-height: 68px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.menu-btn-primary:hover {
  transform: translateY(-2px);
  border-color: #cba358;
  background: linear-gradient(135deg, rgba(18, 42, 31, 0.95) 0%, rgba(10, 26, 19, 0.98) 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.menu-btn-primary:active {
  transform: translateY(1px);
}

.menu-play-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5e4b8 0%, #cba358 60%, #82632b 100%);
  color: #030806;
  display: grid;
  place-items: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.menu-play-icon svg {
  width: 22px;
  height: 22px;
}

.menu-play-copy {
  display: flex;
  flex-direction: column;
}

.menu-play-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f2f7f4;
}

.menu-play-sub {
  font-size: 11px;
  color: #cba358;
  font-weight: 600;
  margin-top: 1px;
}

.menu-arrow-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(203, 163, 88, 0.12);
  border: 1px solid rgba(203, 163, 88, 0.35);
  color: #f7e7c4;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.menu-btn-primary:hover .menu-arrow-icon {
  transform: translateX(3px);
  background: linear-gradient(135deg, #f5e4b8 0%, #cba358 60%, #82632b 100%);
  color: #030806;
  border-color: #cba358;
}

.menu-arrow-icon svg {
  width: 16px;
  height: 16px;
}

.menu-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-btn-sub {
  background: rgba(6, 16, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px 8px 18px 18px;
  /* Chamfered Billiard Pocket Shape */
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.menu-btn-sub:hover {
  background: rgba(12, 30, 22, 0.92);
  border-color: rgba(203, 163, 88, 0.35);
  transform: translateY(-2px);
}

.menu-sub-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.menu-sub-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(3, 8, 6, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #cba358;
  flex-shrink: 0;
}

.menu-sub-icon svg {
  width: 18px;
  height: 18px;
}

.menu-sub-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #f2f7f4;
  white-space: nowrap;
}

.menu-bot-card {
  cursor: default;
}

.menu-bot-main-btn {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
  width: 100%;
}

.menu-diff-pills {
  display: flex !important;
  gap: 6px !important;
  margin-top: 2px !important;
  width: 100% !important;
  height: 32px !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

.menu-diff-pills.hidden {
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.menu-diff-chip {
  flex: 1;
  padding: 4px 0;
  text-align: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 700;
  color: #859c90;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-diff-chip.active {
  background: linear-gradient(135deg, #f5e4b8 0%, #cba358 60%, #82632b 100%);
  color: #030806;
  border-color: #cba358;
}

.menu-nav-tiles {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
}

.menu-tile-btn {
  background: rgba(6, 16, 12, 0.82) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.menu-tile-btn:hover {
  background: rgba(12, 30, 22, 0.92);
  border-color: #cba358;
  transform: translateY(-2px);
}

.menu-tile-icon {
  color: #cba358;
}

.menu-tile-icon svg {
  width: 20px;
  height: 20px;
}

.menu-tile-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #f2f7f4;
}

.menu-minimal-footer {
  text-align: center;
  font-size: 11px;
  color: #859c90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
}

#bug-report-btn,
.menu-footer-link {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #859c90 !important;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: color 0.2s ease;
}

#bug-report-btn:hover,
.menu-footer-link:hover {
  color: #cba358 !important;
}

/* GLASS SUBPAGE SCREENS (LEADERBOARD & SHOP) */
/* GLASS SUBPAGE SCREENS (LEADERBOARD & SHOP) */
.leaderboard-screen,
.shop-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 200 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(3, 10, 7, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
  display: flex !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.leaderboard-screen.visible,
.shop-screen.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.leaderboard-screen.hidden,
.shop-screen.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.glass-subpage-viewport {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glass-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.brass-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(203, 163, 88, 0.14) !important;
  border: 1px solid rgba(203, 163, 88, 0.4) !important;
  color: #f7e7c4 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  padding: 6px 14px 6px 10px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.brass-back-btn:hover {
  background: linear-gradient(135deg, #f5e4b8 0%, #cba358 60%, #82632b 100%) !important;
  color: #030806 !important;
  border-color: #cba358 !important;
}

.brass-back-btn svg {
  width: 16px;
  height: 16px;
}

.glass-page-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #f2f7f4 !important;
  margin: 0 !important;
}

.glass-subpage-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* LEADERBOARD ITEM STYLES */
.leaderboard-subtitle {
  font-size: 12px;
  color: #859c90;
  margin-top: -4px;
}

/* ==========================================================================
   HALL OF CHAMPIONS - PODIUM LEADERBOARD UI
   ========================================================================== */
.leaderboard-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 300 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: radial-gradient(circle at 50% 20%, #0d1e16 0%, #040907 85%) !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.leaderboard-screen.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.hall-viewport {
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.hall-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 48px !important;
  flex-shrink: 0 !important;
  width: 100% !important;
}

.hall-back-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #e2c275 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
}

.hall-back-btn:active {
  transform: scale(0.92) !important;
  background: rgba(226, 194, 117, 0.2) !important;
}

.hall-back-btn svg {
  width: 20px !important;
  height: 20px !important;
  color: #e2c275 !important;
  display: block !important;
  margin: 0 !important;
}

.hall-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  letter-spacing: 0.15em !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-align: center !important;
}

.hall-header-spacer {
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0 !important;
}

/* 3D PODIUM CONTAINER */
.hall-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  height: 210px;
  flex-shrink: 0;
  position: relative;
}

.podium-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.podium-crown {
  width: 28px;
  height: 28px;
  color: #f0c95a;
  margin-bottom: -6px;
  animation: crownFloat 2s ease-in-out infinite alternate;
  z-index: 10;
}

.leaderboard-crown-icon {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(226, 194, 117, 0.55));
}

@keyframes crownFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

.podium-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}

.podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.podium-step.rank-1 .podium-avatar {
  width: 64px;
  height: 64px;
  border-color: #e2c275;
  box-shadow: 0 0 20px rgba(226, 194, 117, 0.5);
}

.podium-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2d3748;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.podium-badge.gold {
  background: #e2c275;
  color: #06120c;
  border: none;
}

.podium-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #ffffff;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}

.podium-wins {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 11px;
  color: #e2c275;
  margin-bottom: 6px;
}

.podium-wins,
.contender-wins,
.self-wins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.leaderboard-trophy-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: currentColor;
  filter: drop-shadow(0 1px 3px rgba(226, 194, 117, 0.24));
}

.leaderboard-avatar-icon {
  width: 54%;
  height: 54%;
  color: rgba(232, 242, 235, 0.82);
  pointer-events: none;
}

.podium-block {
  width: 100%;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
}

.podium-step.rank-1 .podium-block {
  height: 90px;
  background: linear-gradient(180deg, rgba(226, 194, 117, 0.25), rgba(6, 16, 12, 0.8));
  border-color: rgba(226, 194, 117, 0.4);
}

.podium-step.rank-2 .podium-block {
  height: 65px;
  background: linear-gradient(180deg, rgba(210, 215, 225, 0.18), rgba(6, 16, 12, 0.8));
}

.podium-step.rank-3 .podium-block {
  height: 48px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.18), rgba(6, 16, 12, 0.8));
}

/* CONTENDERS LIST (#4+) */
.hall-contenders-wrap {
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
  margin-bottom: 70px;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.hall-contenders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contender-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 16, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
}

.contender-rank {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #7d9487;
  width: 30px;
}

.contender-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.contender-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background-size: cover !important;
  background-position: center !important;
}

.contender-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
}

.contender-wins {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #e2c275;
}

/* STICKY BOTTOM USER RANK CARD */
.hall-self-card {
  position: absolute;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  right: 16px;
  height: 56px;
  background: linear-gradient(135deg, rgba(226, 194, 117, 0.2), rgba(6, 16, 12, 0.95));
  border: 1px solid rgba(226, 194, 117, 0.5);
  border-radius: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 50;
}

.self-rank-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #e2c275;
}

.self-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #e2c275;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  background-size: cover !important;
  background-position: center !important;
}

.self-info {
  flex: 1;
}

.self-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #ffffff;
}

.self-sub {
  font-size: 10px;
  color: #8da497;
}

.self-wins {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #e2c275;
}

/* ==========================================================================
   BATTLE ARENA MODE SELECTOR & MATCHMAKING CYBER-LUX MODAL
   ========================================================================== */
.arena-modal-panel,
.menu-online-panel,
.matchmaking-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 500 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(2, 6, 4, 0.88) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.arena-modal-panel:not(.hidden),
.menu-online-panel:not(.hidden),
.matchmaking-overlay:not(.hidden) {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.arena-modal-card,
.matchmaking-card {
  width: 100% !important;
  max-width: 380px !important;
  background: radial-gradient(circle at 50% 0%, #10261c 0%, #050c09 85%) !important;
  border: 1px solid rgba(226, 194, 117, 0.4) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.arena-modal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(226, 194, 117, 0.15) !important;
  padding-bottom: 12px !important;
}

.arena-modal-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  letter-spacing: 0.12em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.arena-close-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #e2c275 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
}

.arena-close-btn:active {
  transform: scale(0.9) !important;
  background: rgba(226, 194, 117, 0.2) !important;
}

.arena-close-btn svg {
  width: 18px !important;
  height: 18px !important;
  color: #e2c275 !important;
}

.arena-cards-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.arena-mode-card {
  background: rgba(6, 16, 12, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  position: relative !important;
  transition: all 0.2s ease !important;
}

.arena-mode-card.featured {
  background: linear-gradient(135deg, rgba(226, 194, 117, 0.14), rgba(6, 16, 12, 0.9)) !important;
  border-color: rgba(226, 194, 117, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.arena-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.arena-icon-box {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #8da497 !important;
  flex-shrink: 0 !important;
}

.arena-icon-box.gold {
  background: linear-gradient(135deg, rgba(245, 228, 184, 0.2), rgba(226, 194, 117, 0.3)) !important;
  border-color: #e2c275 !important;
  color: #e2c275 !important;
}

.arena-icon-box svg {
  width: 22px !important;
  height: 22px !important;
}

.arena-card-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.arena-card-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  color: #ffffff !important;
}

.arena-card-sub {
  font-size: 11px !important;
  color: #8da497 !important;
  margin-top: 2px !important;
}

.arena-tag {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 9px !important;
  letter-spacing: 0.08em !important;
  color: #e2c275 !important;
  background: rgba(226, 194, 117, 0.15) !important;
  border: 1px solid rgba(226, 194, 117, 0.3) !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
}

.arena-live-queue {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  color: #8da497 !important;
  background: rgba(0, 0, 0, 0.3) !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  align-self: flex-start !important;
}

.arena-live-queue strong {
  color: #e2c275 !important;
  font-weight: 900 !important;
}

.arena-pulse-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  box-shadow: 0 0 10px #10b981 !important;
  animation: livePulse 1.5s ease-in-out infinite alternate !important;
}

@keyframes livePulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.arena-card-action {
  width: 100% !important;
  height: 44px !important;
  border-radius: 12px !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.arena-card-action.gold {
  background: linear-gradient(135deg, #f5e4b8 0%, #e2c275 50%, #b88a44 100%) !important;
  color: #06120c !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(226, 194, 117, 0.3) !important;
}

.arena-card-action:active {
  transform: scale(0.98) !important;
}

/* ==========================================================================
   THE ARSENAL - CYBER-LUX IMMERSIVE SHOWCASE & CAROUSEL SHOP UI
   ========================================================================== */
.shop-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 300 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: radial-gradient(circle at 50% 30%, #0c1a14 0%, #040907 80%) !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.shop-screen.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.arsenal-viewport {
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Header */
.arsenal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  flex-shrink: 0;
  position: relative;
}

.arsenal-back-btn {
  min-width: 84px;
  height: 42px;
  padding: 0 13px 0 10px;
  gap: 7px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(31, 48, 40, 0.95), rgba(9, 20, 15, 0.95));
  border: 1px solid rgba(226, 194, 117, 0.34);
  color: #e2c275;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.arsenal-back-btn:hover {
  border-color: rgba(226, 194, 117, 0.7);
  background: linear-gradient(145deg, rgba(55, 71, 52, 0.98), rgba(15, 29, 21, 0.98));
}

.arsenal-back-btn:active {
  transform: translateY(1px) scale(0.97);
}

.arsenal-back-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.arsenal-back-label {
  line-height: 1;
}

.arsenal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: #f2f7f4;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.arsenal-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 16, 12, 0.85);
  border: 1px solid rgba(226, 194, 117, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  color: #e2c275;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 14px;
}

.arsenal-balance svg {
  width: 16px;
  height: 16px;
  color: #e2c275;
}

/* Segmented Control Tabs */
.arsenal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
  margin-top: 12px;
  gap: 4px;
  flex-shrink: 0;
}

.arsenal-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #7d9487;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 10px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arsenal-tab-btn.active {
  background: linear-gradient(135deg, rgba(226, 194, 117, 0.25), rgba(12, 30, 22, 0.9));
  border: 1px solid rgba(226, 194, 117, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Tab Panels Container */
.arsenal-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  position: relative;
  margin-top: 12px;
  overflow: hidden;
}

.arsenal-panel.active {
  display: flex;
}

/* TAB 1: CUE SHOWCASE CAROUSEL */
.arsenal-showcase {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
}

.arsenal-bg-text {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(54px, 15vw, 76px);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* Stage Area */
.arsenal-stage {
  width: 100%;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: 18px;
  padding: 10px 0;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 34, 26, 0.72), rgba(5, 14, 10, 0.32));
  border: 1px solid rgba(141, 164, 151, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  box-sizing: border-box;
}

.arsenal-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2c275;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.arsenal-arrow-btn:active {
  transform: scale(0.9);
  background: rgba(226, 194, 117, 0.2);
}

.arsenal-arrow-btn svg {
  width: 20px;
  height: 20px;
}

.arsenal-cue-display {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.arsenal-pedestal-glow {
  position: absolute;
  width: 220px;
  height: 50px;
  background: radial-gradient(ellipse at center, rgba(226, 194, 117, 0.25) 0%, transparent 70%);
  bottom: 0;
  border-radius: 50%;
  pointer-events: none;
}

.arsenal-cue-canvas {
  width: 100% !important;
  max-width: 330px;
  min-height: 120px;
  height: auto !important;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.7));
  transform: rotate(-15deg);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Info Card */
.arsenal-cue-info {
  width: min(100%, 340px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 16px;
  padding: 15px 16px 14px;
  gap: 6px;
  border: 1px solid rgba(141, 164, 151, 0.16);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 38, 29, 0.72), rgba(6, 16, 11, 0.52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 12px 24px rgba(0, 0, 0, 0.16);
}

.arsenal-cue-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #e2c275;
  background: rgba(226, 194, 117, 0.12);
  border: 1px solid rgba(226, 194, 117, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.arsenal-cue-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 5.8vw, 25px);
  color: #ffffff;
  margin: 4px 0 0 0;
  letter-spacing: 0.04em;
}

.arsenal-cue-desc {
  font-size: 13px;
  color: #8da497;
  max-width: 300px;
  margin: 0;
  line-height: 1.45;
}

.arsenal-cue-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #e2c275;
  margin-top: 4px;
}

/* Dots Indicator */
.arsenal-dots {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}

.arsenal-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.arsenal-dots .dot.active {
  width: 20px;
  border-radius: 999px;
  background: #e2c275;
  box-shadow: 0 0 8px rgba(226, 194, 117, 0.5);
}

/* Primary Action Box & Button */
.arsenal-action-box {
  width: 100%;
  margin-top: auto;
  margin-bottom: 8px;
}

.arsenal-cta-btn {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5e4b8 0%, #e2c275 50%, #b88a44 100%);
  border: none;
  color: #06120c;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(226, 194, 117, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arsenal-cta-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(226, 194, 117, 0.2);
}

.arsenal-cta-btn.equipped {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #8da497;
  box-shadow: none;
}

/* TAB 2: DAILY REWARD VAULT */
.arsenal-daily-vault {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(6, 16, 12, 0.6);
  border: 1px solid rgba(226, 194, 117, 0.2);
  border-radius: 24px;
  padding: 24px 20px;
  box-sizing: border-box;
}

.vault-safe-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(226, 194, 117, 0.2), rgba(6, 16, 12, 0.9));
  border: 1px solid rgba(226, 194, 117, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2c275;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.vault-safe-icon svg {
  width: 40px;
  height: 40px;
}

.vault-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: 0.06em;
}

.vault-subtitle {
  font-size: 13px;
  color: #8da497;
  line-height: 1.4;
  margin: 0 0 24px 0;
  max-width: 280px;
}

.vault-claim-btn {
  max-width: 260px;
}

/* TAB 3: TELEGRAM STARS PACKS */
.arsenal-stars-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.stars-card {
  background: rgba(6, 16, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

.stars-card.featured {
  background: linear-gradient(135deg, rgba(226, 194, 117, 0.15), rgba(6, 16, 12, 0.9));
  border-color: rgba(226, 194, 117, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.stars-card-tag {
  position: absolute;
  top: -9px;
  right: 16px;
  background: #e2c275;
  color: #06120c;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
}

.stars-card-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
}

.stars-card-icon {
  font-size: 20px;
}

.stars-buy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stars-buy-btn.gold {
  background: #e2c275;
  border: none;
  color: #06120c;
  font-weight: 900;
}

.menu-hero {
  gap: 12px;
  border-radius: 24px;
  border: 1px solid rgba(226, 219, 194, 0.12);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 230, 158, 0.28), transparent 30%),
    radial-gradient(circle at 90% 94%, rgba(53, 197, 179, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #213830, #15241e 58%, #0d1713 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -18px 22px rgba(0, 0, 0, 0.28),
    0 16px 28px rgba(0, 0, 0, 0.3);
  padding: 18px;
}

.menu-hero::before {
  width: 220px;
  height: 220px;
  right: -92px;
  top: -112px;
  background: radial-gradient(circle at 42% 42%, rgba(255, 240, 206, 0.58), rgba(255, 240, 206, 0.14) 34%, rgba(255, 255, 255, 0) 72%);
  opacity: 0.6;
  filter: blur(6px);
}

.menu-hero::after {
  left: -12%;
  top: 45%;
  width: 130%;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 226, 255, 0), rgba(123, 226, 255, 0.42), rgba(123, 226, 255, 0));
  transform: rotate(-8deg);
}

.menu-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(124px, 0.85fr);
  gap: 12px;
  align-items: end;
}

.menu-hero-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.menu-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-kicker {
  padding: 5px 10px 4px;
  border: 1px solid rgba(214, 234, 226, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 48%),
    rgba(5, 11, 9, 0.32);
  color: #d7ece4;
  letter-spacing: 0.16em;
}

.menu-season-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(119, 220, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #223f4f, #172b37 100%);
  color: #daf6ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 16px rgba(0, 0, 0, 0.2);
}

.menu-title {
  margin: 2px 0 0;
  font-family: 'Arial Black', Impact, 'Trebuchet MS', sans-serif;
  font-size: clamp(40px, 9vw, 58px);
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-subtitle {
  font-size: 13px;
  line-height: 1.5;
  max-width: 34ch;
}

.menu-badges {
  margin-top: 0;
  gap: 8px;
}

.menu-badge {
  padding: 5px 10px;
  border: 1px solid rgba(221, 233, 228, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 44%),
    rgba(6, 12, 10, 0.38);
  letter-spacing: 0.08em;
}

.menu-stage {
  position: relative;
  min-height: 170px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 42%, rgba(27, 125, 96, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 24%),
    linear-gradient(165deg, #152720, #0d1713 70%, #08100d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -16px 18px rgba(0, 0, 0, 0.26),
    0 16px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.menu-stage-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  border: 1px solid rgba(101, 225, 255, 0.26);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 12px rgba(101, 225, 255, 0.04),
    0 0 40px rgba(101, 225, 255, 0.12);
}

.menu-stage-shadow {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 120px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0) 70%);
  transform: translateX(-50%);
}

.menu-stage-cue {
  position: absolute;
  right: -12px;
  bottom: 48px;
  width: 146px;
  height: 10px;
  border-radius: 999px;
  transform: rotate(-29deg);
  background: linear-gradient(90deg, #6d4928 0 18%, #f0e2c7 18% 84%, #73d6ff 84% 100%);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.menu-stage-ball {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.74);
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.44);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.menu-stage-ball-main {
  right: 24px;
  bottom: 18px;
  width: 76px;
  height: 76px;
  background: radial-gradient(circle at 30% 26%, #5ef2c7 0, #178a69 24%, #0d1714 58%, #040708 100%);
  font-size: 28px;
  animation: menu-float-main 5.8s ease-in-out infinite;
}

.menu-stage-ball-side {
  left: 18px;
  top: 24px;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 34% 30%, #ffe587 0, #dfa311 30%, #f6fbff 52%, #d2d8df 72%, #9ea7b5 100%);
  color: #2c2100;
  font-size: 21px;
  animation: menu-float-side 6.4s ease-in-out infinite;
}

.menu-stage-ball-accent {
  left: 48px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at 34% 30%, #7dd2ff 0, #228fdc 34%, #f6fbff 54%, #d7e4f4 72%, #a9b7c8 100%);
  color: #122439;
  font-size: 18px;
  animation: menu-pulse-accent 4.4s ease-in-out infinite;
}

.menu-hero-stats,
.menu-stack {
  display: grid;
  gap: 12px;
}

.menu-meta-title,
.menu-section-title,
.menu-difficulty-label {
  margin: 0;
  color: #9fc5ba;
  letter-spacing: 0.16em;
}

.menu-stats {
  gap: 10px;
}

.menu-stat-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  min-height: 70px;
  border-radius: 18px;
  border: 1px solid rgba(190, 223, 211, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #20332b, #15211b 72%, #0f1814 100%);
  padding: 10px;
}

.menu-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #33604f, #1f3d31 74%, #15281f 100%);
}

.menu-stat-icon.online {
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #2d5470, #233a4d 74%, #172633 100%);
}

.menu-stat-icon svg {
  width: 24px;
  height: 24px;
}

.menu-stat-copy {
  gap: 4px;
}

.menu-stat-label {
  letter-spacing: 0.12em;
}

.menu-stat-value {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.menu-profile-card {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  border-radius: 24px;
  border: 1px solid rgba(249, 214, 139, 0.18);
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 235, 190, 0.24), rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 92% 114%, rgba(108, 169, 134, 0.2), rgba(255, 255, 255, 0) 45%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #21332a, #16231d 76%, #0f1914 100%);
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 18px rgba(0, 0, 0, 0.28),
    0 14px 22px rgba(0, 0, 0, 0.28);
}

.menu-profile-card::before {
  border-radius: 22px;
}

.menu-profile-card::after {
  left: auto;
  right: -40px;
  top: -54px;
  bottom: auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 228, 171, 0.24), rgba(255, 228, 171, 0) 70%);
}

.menu-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  outline-offset: -4px;
  font-size: 28px;
}

.menu-profile-copy {
  gap: 8px;
}

.menu-profile-label {
  font-size: 10px;
  letter-spacing: 0.14em;
}

.menu-profile-name {
  font-size: 24px;
  line-height: 1;
}

.menu-profile-stats-grid {
  margin-top: 0;
  gap: 8px;
}

.menu-profile-stat-card {
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(203, 223, 212, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #182721, #101a16 100%);
  gap: 4px;
}

.menu-profile-stat-label {
  letter-spacing: 0.1em;
}

.menu-profile-stat-value {
  font-size: 17px;
  font-weight: 900;
}

.menu-profile-progress {
  margin-top: 0;
  gap: 6px;
}

.menu-profile-progress-label,
.menu-profile-progress-percent {
  font-size: 11px;
}

.menu-profile-progress-track {
  height: 10px;
  border: 1px solid rgba(190, 210, 198, 0.24);
}

.menu-profile-progress-fill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 44%),
    linear-gradient(90deg, #f0cf8b, #d99f3f 58%, #8a5d22 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 12px rgba(240, 207, 139, 0.34);
}

.menu-section {
  margin-top: 0;
  display: grid;
  gap: 10px;
}

.menu-actions {
  gap: 10px;
}

.menu-actions-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-actions-split .menu-btn:last-child {
  grid-column: 1 / -1;
}

.menu-btn {
  position: relative;
  overflow: hidden;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 22px rgba(0, 0, 0, 0.24);
  transition: transform 0.12s ease, filter 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-btn::before {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.menu-btn:active {
  transform: translateY(2px) scale(0.995);
}

.menu-btn-icon,
.menu-btn-copy,
.menu-btn-arrow {
  position: relative;
  z-index: 1;
}

.menu-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%),
    rgba(4, 10, 8, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 14px rgba(0, 0, 0, 0.18);
}

.menu-btn-icon svg {
  width: 22px;
  height: 22px;
}

.menu-btn-copy {
  gap: 4px;
}

.menu-btn-title {
  font-size: 16px;
  font-weight: 900;
}

.menu-btn-sub {
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.menu-btn.primary {
  border-color: rgba(244, 210, 133, 0.52);
  background:
    radial-gradient(circle at 0 0, rgba(255, 245, 222, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #f2c86f, #da9d39 56%, #905d22 100%);
}

.menu-btn.primary .menu-btn-icon {
  border-color: rgba(255, 244, 219, 0.58);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(122, 82, 39, 0.84), rgba(86, 57, 30, 0.9));
}

.menu-btn-launch {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  min-height: 90px;
  gap: 14px;
  padding: 16px 18px 16px 14px;
  border-radius: 24px;
}

.menu-btn-launch .menu-btn-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.menu-btn-launch .menu-btn-title {
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-btn-launch .menu-btn-sub {
  max-width: 28ch;
  color: rgba(41, 24, 7, 0.8);
}

.menu-btn-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(92, 56, 14, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 48%),
    rgba(255, 247, 231, 0.28);
  color: #482707;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 16px rgba(114, 73, 23, 0.18);
}

.menu-btn.compact {
  grid-template-columns: 1fr;
  align-content: space-between;
  justify-items: start;
  min-height: 132px;
  gap: 14px;
  padding: 14px 14px 12px;
}

.menu-btn.compact .menu-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.menu-btn.compact .menu-btn-title {
  font-size: 17px;
}

.menu-btn.compact .menu-btn-sub {
  font-size: 11px;
  line-height: 1.35;
  max-width: 16ch;
}

.menu-btn-leaderboard {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 216, 128, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #2d2638, #1b1f29 100%);
  border-color: rgba(255, 216, 128, 0.2);
}

.menu-btn-shop {
  background:
    radial-gradient(circle at 90% 0%, rgba(115, 221, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #1e3038, #141f26 100%);
  border-color: rgba(115, 221, 255, 0.18);
}

.menu-btn-settings {
  background:
    radial-gradient(circle at 12% 0%, rgba(112, 248, 196, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #20332d, #151f1c 100%);
  border-color: rgba(112, 248, 196, 0.16);
}

.menu-difficulty {
  gap: 9px;
  border: 1px solid rgba(185, 206, 194, 0.18);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 32%),
    rgba(8, 14, 11, 0.46);
}

.menu-difficulty-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-diff-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(186, 209, 196, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #22342b, #17231d 100%);
  font-weight: 800;
}

.menu-diff-btn.active {
  border-color: rgba(244, 210, 133, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #f2c86f, #da9d39 62%, #905d22 100%);
}

.menu-help {
  border-radius: 18px;
  padding: 12px 13px;
  border: 1px solid rgba(180, 203, 191, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 32%),
    rgba(8, 14, 11, 0.54);
  line-height: 1.5;
}

.menu-footer {
  display: grid;
  gap: 10px;
}

.menu-footnote {
  position: relative;
  margin: 0;
  padding: 14px 14px 14px 42px;
  border-radius: 18px;
  border: 1px solid rgba(178, 197, 188, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 32%),
    rgba(9, 15, 12, 0.56);
  font-size: 12px;
  line-height: 1.45;
}

.menu-footnote::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #68c4ff, #236db0);
  box-shadow: 0 0 0 4px rgba(104, 196, 255, 0.08);
}

@media (min-width: 480px) {
  .menu-actions-split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-actions-split .menu-btn:last-child {
    grid-column: auto;
  }
}

@media (max-width: 440px) {
  .menu-panel {
    padding: 12px;
  }

  .menu-hero {
    padding: 16px;
  }

  .menu-stage {
    min-height: 150px;
  }

  .menu-btn-launch {
    min-height: 82px;
    padding: 14px;
  }

  .menu-btn-launch .menu-btn-title {
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .menu-panel {
    padding: 10px;
    gap: 10px;
  }

  .menu-hero {
    padding: 14px;
  }

  .menu-hero-grid {
    grid-template-columns: 1fr;
  }

  .menu-stage {
    min-height: 142px;
  }

  .menu-title {
    font-size: 34px;
  }

  .menu-profile-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .menu-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 22px;
  }

  .menu-profile-name {
    font-size: 20px;
  }

  .menu-profile-stat-card {
    padding: 7px 8px;
  }

  .menu-btn-launch {
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    min-height: 74px;
    gap: 10px;
    padding: 12px;
  }

  .menu-btn-launch .menu-btn-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .menu-btn-launch .menu-btn-title {
    font-size: 20px;
  }

  .menu-btn-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .menu-actions-split {
    grid-template-columns: 1fr;
  }

  .menu-actions-split .menu-btn:last-child {
    grid-column: auto;
  }

  .menu-btn.compact {
    min-height: 108px;
  }

  .menu-footnote {
    padding-left: 40px;
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: var(--app-height, 100dvh);
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 2%, rgba(230, 194, 128, 0.14), transparent 30%),
    radial-gradient(circle at 92% 98%, rgba(79, 118, 98, 0.18), transparent 38%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  color: var(--text-main);
  font-family: 'Trebuchet MS', 'Segoe UI', Verdana, sans-serif;
}

.app {
  width: min(640px, 100%);
  max-width: 100%;
  min-height: var(--app-height, 100dvh);
  height: var(--app-height, 100dvh);
  margin: 0 auto;
  padding:
    calc(max(env(safe-area-inset-top), var(--tg-safe-top, 0px)) + 8px) calc(clamp(8px, 2.2vw, 14px) + max(var(--tg-safe-left, 0px), var(--tg-safe-right, 0px)) * 0.2) calc(max(env(safe-area-inset-bottom), var(--tg-safe-bottom, 0px), var(--ios-safe-bottom-fallback, 0px)) + 12px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--grid-gap);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  touch-action: none;
}

.app.app-booting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app.skin-walnut {
  --table-shell-1: #5e1f4a;
  --table-shell-2: #451536;
  --table-shell-3: #300d24;
  --table-shell-glow: rgba(210, 94, 171, 0.34);
  --table-border: rgba(255, 175, 224, 0.4);
}

.app.skin-carbon {
  --table-shell-1: #5f4515;
  --table-shell-2: #47320e;
  --table-shell-3: #2e2108;
  --table-shell-glow: rgba(227, 178, 70, 0.34);
  --table-border: rgba(255, 222, 133, 0.42);
}

.app::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 0 80px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(16, 37, 28, 0.44);
  pointer-events: none;
}

.chrome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  padding: 7px;
  border-radius: 16px;
  border: 1px solid rgba(190, 206, 197, 0.25);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.01) 44%),
    linear-gradient(180deg, #1a2a22, #121d18 70%, #0e1613 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -10px 14px rgba(0, 0, 0, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.26);
}

.chrome::before {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 208, 120, 0), rgba(255, 208, 120, 0.42), rgba(255, 208, 120, 0));
  pointer-events: none;
}

.timer-box {
  min-width: 108px;
  min-height: 56px;
  padding: 8px 10px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(205, 221, 212, 0.24);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.01) 52%),
    linear-gradient(180deg, rgba(12, 21, 17, 0.94), rgba(8, 14, 12, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -7px 10px rgba(0, 0, 0, 0.2),
    0 6px 12px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 3px;
  align-content: center;
}

.timer-label {
  color: #a8bdb2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

#game-timer {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #eef5f1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.turn-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.turn-label {
  color: #95ac9f;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

#turn-timer {
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #dfece5;
}

#turn-timer.warn {
  color: #ffc19a;
  text-shadow: 0 0 10px rgba(255, 160, 115, 0.32);
}

.exit-btn {
  border: 1px solid rgba(205, 179, 135, 0.58);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  min-width: 116px;
  min-height: 56px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 35%),
    linear-gradient(180deg, #b89a6b, #96754a 62%, #6f5438 100%);
  color: #1b1108;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -7px 10px rgba(71, 45, 19, 0.32),
    0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.13s ease, filter 0.15s ease, box-shadow 0.18s ease;
}

.exit-btn:hover {
  filter: brightness(1.03);
}

.exit-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -4px 7px rgba(71, 45, 19, 0.34),
    0 4px 10px rgba(0, 0, 0, 0.24);
}

.player-row {
  display: flex;
  align-items: center;
  min-height: 70px;
}

.player-row-top {
  justify-content: flex-start;
}

.player-row-bottom {
  justify-content: flex-end;
}

.player-card {
  min-width: min(76vw, 300px);
  width: min(100%, 370px);
  max-width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px 9px;
  border-radius: 15px;
  border: 1px solid rgba(183, 206, 194, 0.24);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 30%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01) 45%),
    linear-gradient(180deg, #17261f, #0f1915 78%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -10px 14px rgba(0, 0, 0, 0.2),
    0 8px 14px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.player-card::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 208, 120, 0), rgba(255, 208, 120, 0.28), rgba(255, 208, 120, 0));
  pointer-events: none;
}

.self-card {
  border-color: rgba(182, 219, 200, 0.26);
}

.player-card.active {
  border-color: rgba(224, 204, 157, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -10px 14px rgba(0, 0, 0, 0.22),
    0 10px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(227, 197, 143, 0.25);
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 24% 20%, #6b7f74 0, #3f5148 54%, #22302a 100%);
  color: #f7fbf9;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
}

.avatar.has-photo {
  background-size: 122% 122%;
  background-position: center;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

.player-text {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.player-role {
  color: #a1b6ab;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#opponent-name,
#self-name {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #eff6f2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.player-stats {
  min-width: 108px;
  padding: 6px 7px 6px;
  border-radius: 10px;
  border: 1px solid rgba(196, 216, 206, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 52%),
    rgba(8, 13, 11, 0.78);
  display: grid;
  gap: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -5px 8px rgba(0, 0, 0, 0.2);
}

.player-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.player-stat-label {
  color: #96aca1;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#opponent-group,
#self-group,
#opponent-remaining,
#self-remaining {
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #e8f1eb;
}

.table-wrap {
  height: 100%;
  min-height: 0;
  width: 100%;
  overflow: visible;
  display: grid;
  place-items: center;
  position: relative;
}

#pool-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  margin: 0;
  z-index: 2;
  touch-action: none;
  display: block;
}

.power-meter {
  position: absolute;
  right: calc(clamp(6px, 1.8vw, 12px) + max(env(safe-area-inset-right), var(--tg-safe-right, 0px)) * 0.2);
  top: calc(50% - clamp(12px, 1.8vh, 24px));
  z-index: 8;
  width: 38px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 5px;
  padding: 7px 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(226, 194, 117, 0.28);
  background: rgba(6, 16, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-50%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.2s ease;
}

.power-meter.visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.power-meter-track {
  position: relative;
  width: 12px;
  height: min(30vh, 190px);
  border-radius: 12px;
  border: 1px solid rgba(197, 214, 205, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, rgba(26, 54, 43, 0.74), rgba(44, 27, 20, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -3px 6px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.power-meter-fill {
  display: block;
  width: 100%;
  height: 0%;
  border-radius: 10px 10px 11px 11px;
  background:
    linear-gradient(180deg, #de5b4b 0%, #efac4f 30%, #cde15c 58%, #66d27b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 12px rgba(232, 183, 95, 0.28);
  transition: height 0.08s linear;
}

.power-meter-value {
  display: block;
  min-width: 0;
  text-align: center;
  color: #e2c275;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.turn-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 12;
  min-width: min(84vw, 360px);
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(228, 211, 173, 0.64);
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(11, 20, 16, 0.82), rgba(7, 13, 11, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -10px 14px rgba(0, 0, 0, 0.26),
    0 14px 24px rgba(0, 0, 0, 0.34);
  color: #f4ede0;
  text-align: center;
  font-size: clamp(26px, 5.2vw, 36px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.42),
    0 8px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
}

.turn-flash.show {
  animation: turn-flash-in-out 1260ms cubic-bezier(0.2, 0.76, 0.22, 1) both;
}

@keyframes turn-flash-in-out {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px)) scale(0.9);
    filter: blur(1px);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }

  64% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 8px)) scale(1.04);
    filter: blur(0.5px);
  }
}

.result-modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 10, 8, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

.result-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.result-panel {
  width: min(92vw, 380px);
  border-radius: 22px;
  border: 1px solid rgba(226, 194, 117, 0.4);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 24%),
    linear-gradient(180deg, #1a2a22, #111c17 76%, #0d1612 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 16px rgba(0, 0, 0, 0.24),
    0 20px 30px rgba(0, 0, 0, 0.44);
  padding: 18px 16px 14px;
  display: grid;
  gap: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
}

.result-panel::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 208, 120, 0), rgba(255, 208, 120, 0.45), rgba(255, 208, 120, 0));
  pointer-events: none;
}

.result-kicker {
  font-size: 11px;
  color: #e2c275;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
}

#result-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
  color: #f1f7f3;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

#result-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: #dce8e1;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 4px;
}

.result-btn {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 48px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 14px rgba(0, 0, 0, 0.23);
  transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.18s ease;
}

.result-btn:active {
  transform: translateY(1px);
}

.result-btn.primary {
  color: #06120c;
  border-color: rgba(226, 194, 117, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #f5e4b8 0%, #e2c275 50%, #b88a44 100%);
}

.result-btn.secondary {
  color: #e8f0eb;
  border-color: rgba(198, 213, 204, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #25352d, #1b2722 70%, #131d19 100%);
}

.result-btn:disabled {
  opacity: 0.56;
  cursor: default;
}

.bug-report-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(239, 141, 141, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #d45454, #ba3434 64%, #7f1f1f 100%);
  color: #fff2f2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 9px 16px rgba(0, 0, 0, 0.27);
}

.bug-report-btn:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}

.menu-screen {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: start center;
  width: 100%;
  min-height: 100%;
  padding: 6px clamp(8px, 2.8vw, 16px) 12px;
  background:
    radial-gradient(circle at 12% 8%, rgba(218, 176, 95, 0.24), transparent 28%),
    radial-gradient(circle at 92% 90%, rgba(78, 137, 108, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(6, 12, 10, 0.76), rgba(4, 8, 7, 0.9));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.26s;
}

.menu-screen.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.menu-panel {
  width: min(100%, 540px);
  margin-inline: auto;
  border-radius: 24px;
  border: 1px solid rgba(214, 201, 171, 0.36);
  background:
    radial-gradient(circle at 16% 4%, rgba(255, 224, 153, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 22%),
    linear-gradient(180deg, #15221c, #0e1713 72%, #09110d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -14px 22px rgba(0, 0, 0, 0.24),
    0 28px 44px rgba(0, 0, 0, 0.48);
  padding: 12px;
  display: grid;
  gap: 12px;
  text-align: left;
  position: relative;
  opacity: 0;
  transform: translateY(14px) scale(0.988);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.menu-screen.visible .menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.menu-panel::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.menu-hero {
  position: relative;
  display: grid;
  gap: 9px;
  border-radius: 18px;
  border: 1px solid rgba(206, 196, 168, 0.46);
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 233, 186, 0.2), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 88% 92%, rgba(100, 160, 128, 0.2), rgba(255, 255, 255, 0) 42%),
    linear-gradient(138deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #1b2c24, #112019 68%, #0b1511 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -16px 22px rgba(0, 0, 0, 0.28),
    0 14px 26px rgba(0, 0, 0, 0.34);
  padding: 15px 15px 14px;
  overflow: hidden;
}

.menu-hero::before {
  content: '';
  position: absolute;
  width: 128px;
  height: 128px;
  right: -38px;
  top: -60px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 240, 206, 0.68), rgba(255, 221, 156, 0.2) 38%, rgba(255, 255, 255, 0) 72%);
  opacity: 0.55;
  pointer-events: none;
}

.menu-hero::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 210, 130, 0), rgba(255, 210, 130, 0.62), rgba(255, 210, 130, 0));
}

.menu-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px 3px;
  border-radius: 999px;
  border: 1px solid rgba(207, 223, 214, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 48%),
    rgba(9, 15, 12, 0.44);
  color: #d0dfd7;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  opacity: 0.95;
}

.menu-title {
  margin: 1px 0 1px;
  font-family: 'Cambria', 'Times New Roman', serif;
  font-size: clamp(36px, 8.4vw, 50px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #f4efe1;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 10px 26px rgba(0, 0, 0, 0.42);
}

.menu-subtitle {
  margin: 0;
  color: #d8e4de;
  font-size: 12px;
  line-height: 1.45;
  max-width: 38ch;
}

.menu-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.menu-badge {
  border: 1px solid rgba(206, 197, 170, 0.34);
  border-radius: 999px;
  padding: 4px 9px 4px;
  color: #dee8e2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 44%),
    rgba(9, 15, 12, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.menu-stat-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-radius: 13px;
  border: 1px solid rgba(190, 211, 201, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #203128, #16221c 72%, #101914 100%);
  padding: 8px 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.menu-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #325546, #213b31 72%, #172920 100%);
  border: 1px solid rgba(216, 233, 223, 0.24);
}

.menu-stat-icon.online {
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #446548, #30503a 72%, #22372b 100%);
}

.menu-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(228, 240, 234, 0.95);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-stat-copy {
  min-width: 0;
  text-align: left;
  display: grid;
  gap: 1px;
}

.menu-stat-label {
  color: #a8bcb1;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.menu-stat-value {
  color: #edf5f0;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menu-meta-title {
  margin: -2px 0 -4px;
  color: #a9beb2;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.menu-profile-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid rgba(210, 193, 160, 0.56);
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 235, 190, 0.24), rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 92% 114%, rgba(108, 169, 134, 0.2), rgba(255, 255, 255, 0) 45%),
    linear-gradient(138deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #1f3128, #15231c 74%, #0f1914 100%);
  padding: 12px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -10px 16px rgba(0, 0, 0, 0.28),
    0 12px 20px rgba(0, 0, 0, 0.28);
}

.menu-profile-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.menu-profile-card::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 204, 116, 0), rgba(255, 204, 116, 0.58), rgba(255, 204, 116, 0));
  pointer-events: none;
}

.menu-profile-avatar {
  width: 66px;
  height: 66px;
  border-radius: 17px;
  border: 1px solid rgba(241, 227, 197, 0.52);
  outline: 2px solid rgba(255, 255, 255, 0.06);
  outline-offset: -3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 16px rgba(0, 0, 0, 0.32);
  font-size: 23px;
}

.menu-profile-copy {
  min-width: 0;
  text-align: left;
  display: grid;
  gap: 6px;
}

.menu-profile-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.menu-profile-label {
  color: #ccdad2;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.menu-profile-name {
  color: #f2f8f4;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-profile-stats-grid {
  margin-top: 1px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.menu-profile-stat-card {
  padding: 6px 7px;
  border-radius: 10px;
  border: 1px solid rgba(197, 215, 205, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #192820, #121d18 100%);
  display: grid;
  gap: 3px;
  min-width: 0;
}

.menu-profile-stat-label {
  color: #c2d1c9;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-profile-stat-value {
  color: #f5f9f7;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-profile-progress {
  margin-top: 2px;
  display: grid;
  gap: 5px;
}

.menu-profile-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.menu-profile-progress-label {
  color: #cddbd3;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-profile-progress-percent {
  color: #f0f7f3;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menu-profile-progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(190, 210, 198, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #1a2a22, #111c17 100%);
  overflow: hidden;
}

.menu-profile-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 44%),
    linear-gradient(90deg, #d8bd8d, #b39162 58%, #8b6c47 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.23),
    0 0 10px rgba(216, 189, 141, 0.35);
  transition: width 0.25s ease;
}

.menu-section {
  margin-top: 2px;
  text-align: left;
}

.menu-section-title {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b3c7bc;
}

.menu-actions {
  display: grid;
  gap: 9px;
  margin-top: 0;
}

.menu-actions-split {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.menu-btn {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 12px 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 58px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.2s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 16px rgba(0, 0, 0, 0.24);
}

.menu-btn:active {
  transform: translateY(1px);
}

.menu-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f1f6f3;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%),
    rgba(4, 10, 8, 0.34);
}

.menu-btn-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-btn-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.menu-btn-title {
  color: #eef5f1;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
}

.menu-btn-sub {
  color: #bdd0c6;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-btn.primary {
  border-color: rgba(205, 179, 135, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #b89a6b, #96754a 62%, #6f5438 100%);
}

.menu-btn.primary .menu-btn-icon {
  border-color: rgba(255, 236, 202, 0.46);
  color: #fff8ef;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(122, 82, 39, 0.8), rgba(86, 57, 30, 0.88));
}

.menu-btn.primary .menu-btn-title {
  color: #1c1208;
}

.menu-btn.primary .menu-btn-sub {
  color: rgba(31, 20, 11, 0.78);
}

.menu-btn.secondary {
  border-color: rgba(175, 220, 197, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #305041, #234035 67%, #1a3028 100%);
}

.menu-btn.ghost {
  border-color: rgba(188, 205, 195, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #24332c, #1a2621 72%, #141d19 100%);
}

.menu-btn.compact {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  min-height: 52px;
  padding: 8px 9px 8px 8px;
}

.menu-btn.compact .menu-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 11px;
}

.menu-btn.compact .menu-btn-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.85;
}

.menu-btn.compact .menu-btn-title {
  font-size: 14px;
}

.menu-btn.compact .menu-btn-sub {
  font-size: 10px;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.menu-online-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(3, 8, 6, 0.72);
  backdrop-filter: blur(3px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0s;
}

.menu-online-dialog {
  width: min(92vw, 392px);
  max-width: 392px;
  margin: 0 auto;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(185, 206, 194, 0.24);
  border-radius: 16px;
  padding: 12px 12px 11px;
  background:
    radial-gradient(circle at 20% 4%, rgba(255, 222, 165, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 24%),
    linear-gradient(180deg, #14211b, #101b16 70%, #0b130f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -10px 16px rgba(0, 0, 0, 0.22),
    0 26px 36px rgba(0, 0, 0, 0.48);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.22s ease,
    transform 0.24s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.menu-online-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s, 0.22s;
}

.menu-online-panel.hidden .menu-online-dialog {
  opacity: 0.72;
  transform: translateY(10px) scale(0.984);
}

.menu-online-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.menu-online-title {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.menu-online-close {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(186, 209, 196, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #23352c, #18261f 72%, #111b16 100%);
  color: #d8e6de;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.menu-online-meta {
  margin: 0;
  color: #d6e4dc;
  font-size: 12px;
  line-height: 1.4;
}

.menu-online-meta strong {
  color: #edf5f0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menu-online-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.menu-online-btn {
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(186, 209, 196, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #23352c, #18261f 72%, #111b16 100%);
  color: #d8e6de;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease, border-color 0.15s ease;
}

.menu-online-btn:active {
  transform: translateY(1px);
}

.menu-online-btn.primary {
  border-color: rgba(205, 179, 135, 0.62);
  color: #1b130a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #b89a6b, #96754a 62%, #6f5438 100%);
}

.menu-online-btn.searching {
  border-color: rgba(214, 225, 194, 0.5);
  color: #f1f6f3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #365645, #294337 67%, #1d3228 100%);
}

.menu-difficulty {
  margin-top: 2px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(185, 206, 194, 0.2);
  border-radius: 13px;
  padding: 11px 11px 9px;
  background: rgba(8, 14, 11, 0.5);
  overflow: hidden;
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.24s ease,
    opacity 0.2s ease,
    transform 0.22s ease,
    padding 0.22s ease,
    margin 0.22s ease,
    border-color 0.2s ease;
}

.menu-difficulty.hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
}

.menu-difficulty-label {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.menu-difficulty-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.menu-diff-btn {
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(186, 209, 196, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #23352c, #18261f 72%, #111b16 100%);
  color: #d8e6de;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease, border-color 0.15s ease;
}

.menu-diff-btn:active {
  transform: translateY(1px);
}

.menu-diff-btn.active {
  border-color: rgba(205, 179, 135, 0.62);
  color: #1b130a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #b89a6b, #96754a 62%, #6f5438 100%);
}

.menu-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #d6e4dc;
  border: 1px solid rgba(180, 203, 191, 0.22);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(9, 15, 12, 0.64);
  overflow: hidden;
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.24s ease,
    opacity 0.2s ease,
    transform 0.22s ease,
    padding 0.22s ease,
    margin 0.22s ease,
    border-color 0.2s ease;
}

.menu-help.hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
}

.menu-footnote {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #9cb4a7;
  border-top: 1px solid rgba(178, 197, 188, 0.15);
  padding: 9px 2px 2px;
}

.matchmaking-overlay {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 214, 138, 0.16), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(90, 161, 128, 0.18), transparent 38%),
    rgba(3, 8, 6, 0.78);
  backdrop-filter: blur(4px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0s;
}

.matchmaking-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s, 0.22s;
}

.matchmaking-card {
  width: min(92vw, 392px);
  border-radius: 18px;
  border: 1px solid rgba(193, 215, 203, 0.3);
  padding: 16px 14px 14px;
  background:
    radial-gradient(circle at 20% 4%, rgba(255, 229, 170, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 22%),
    linear-gradient(180deg, #16261f, #111d17 70%, #0b130f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -11px 16px rgba(0, 0, 0, 0.22),
    0 28px 36px rgba(0, 0, 0, 0.48);
  text-align: center;
  display: grid;
  gap: 10px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.22s ease,
    transform 0.26s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.matchmaking-overlay.hidden .matchmaking-card {
  opacity: 0.72;
  transform: translateY(12px) scale(0.984);
}

.matchmaking-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 2px;
  border-radius: 50%;
  border: 3px solid rgba(234, 245, 238, 0.22);
  border-top-color: rgba(255, 220, 150, 0.95);
  border-right-color: rgba(255, 220, 150, 0.65);
  animation: matchmaking-spin 0.86s linear infinite;
  box-shadow: 0 0 18px rgba(255, 214, 138, 0.24);
}

@keyframes matchmaking-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.matchmaking-title {
  margin: 0;
  color: #eef6f2;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
}

.matchmaking-text {
  margin: 0;
  color: #cfe0d7;
  font-size: 13px;
  line-height: 1.4;
}

.matchmaking-meta {
  margin: 0;
  color: #d7e6de;
  font-size: 13px;
  line-height: 1.35;
}

.matchmaking-meta strong {
  color: #f0f6f2;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.matchmaking-cancel-btn {
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(186, 209, 196, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #274035, #1a2d25 72%, #13211b 100%);
  color: #e3eee9;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.matchmaking-cancel-btn:disabled {
  opacity: 0.58;
  cursor: default;
}

.leaderboard-screen {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: start center;
  width: 100%;
  min-height: 100%;
  padding: 6px clamp(8px, 2.8vw, 16px) 12px;
  background:
    radial-gradient(circle at 12% 8%, rgba(218, 176, 95, 0.24), transparent 28%),
    radial-gradient(circle at 92% 90%, rgba(78, 137, 108, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(6, 12, 10, 0.76), rgba(4, 8, 7, 0.9));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.26s;
}

.leaderboard-screen.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.leaderboard-panel {
  width: min(100%, 540px);
  margin-inline: auto;
  border-radius: 24px;
  border: 1px solid rgba(214, 201, 171, 0.36);
  background:
    radial-gradient(circle at 16% 4%, rgba(255, 224, 153, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 22%),
    linear-gradient(180deg, #15221c, #0e1713 72%, #09110d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -14px 22px rgba(0, 0, 0, 0.24),
    0 28px 44px rgba(0, 0, 0, 0.48);
  padding: 12px;
  display: grid;
  gap: 10px;
  position: relative;
  opacity: 0;
  transform: translateY(14px) scale(0.988);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.leaderboard-screen.visible .leaderboard-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.leaderboard-panel::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.leaderboard-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.leaderboard-back {
  min-height: 38px;
  min-width: 84px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(188, 205, 195, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #24332c, #1a2621 72%, #141d19 100%);
  color: #d7e2dc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.leaderboard-title {
  margin: 0;
  font-family: 'Cambria', 'Times New Roman', serif;
  font-size: clamp(31px, 6.2vw, 40px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.3);
}

.leaderboard-subtitle {
  margin: 0;
  color: #d3e1d9;
  font-size: 13px;
  line-height: 1.42;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 42px 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 13px;
  border: 1px solid rgba(190, 211, 201, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #203128, #16221c 72%, #101914 100%);
  padding: 8px 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.leaderboard-rank {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(216, 233, 223, 0.24);
  display: grid;
  place-items: center;
  color: #edf5f0;
  font-size: 13px;
  font-weight: 800;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #325546, #213b31 72%, #172920 100%);
}

.leaderboard-rank.rank-gold {
  color: #2a1c08;
  border-color: rgba(248, 224, 170, 0.76);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #e5c98d, #c9a768 62%, #9b7b48 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px rgba(233, 202, 136, 0.28),
    0 6px 12px rgba(0, 0, 0, 0.22);
}

.leaderboard-rank.rank-silver {
  color: #20242a;
  border-color: rgba(227, 233, 241, 0.72);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #d8dee6, #b9c1cd 62%, #8f99a8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 0 1px rgba(212, 220, 232, 0.24),
    0 6px 12px rgba(0, 0, 0, 0.22);
}

.leaderboard-rank.rank-bronze {
  color: #2a1b12;
  border-color: rgba(226, 182, 142, 0.72);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, #d2a273, #b07e51 62%, #865b38 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(214, 162, 118, 0.24),
    0 6px 12px rgba(0, 0, 0, 0.22);
}

.leaderboard-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 24% 20%, #6b7f74 0, #3f5148 54%, #22302a 100%);
  color: #f7fbf9;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.28);
}

.leaderboard-avatar.has-photo {
  background-size: 122% 122%;
  background-position: center;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

.leaderboard-player {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.leaderboard-name {
  color: #eef5f1;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-meta {
  color: #a8bcb1;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leaderboard-wins {
  min-width: 72px;
  text-align: right;
  color: #edf5f0;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.leaderboard-wins-label {
  color: #9cb4a7;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 3px;
}

.leaderboard-empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #d6e4dc;
  border: 1px solid rgba(180, 203, 191, 0.22);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(9, 15, 12, 0.64);
  text-align: center;
}

.shop-screen {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: start center;
  width: 100%;
  min-height: 100%;
  padding: 6px clamp(8px, 2.8vw, 16px) 12px;
  background:
    radial-gradient(circle at 10% 4%, rgba(228, 191, 121, 0.2), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(53, 109, 84, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(5, 11, 9, 0.78), rgba(4, 8, 7, 0.92));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.26s;
}

.shop-screen.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.shop-panel {
  width: min(100%, 540px);
  margin-inline: auto;
  border-radius: 24px;
  border: 1px solid rgba(221, 200, 159, 0.42);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 224, 153, 0.14), transparent 28%),
    radial-gradient(circle at 88% 100%, rgba(53, 109, 84, 0.22), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 18%),
    linear-gradient(180deg, #1a2922, #101a16 70%, #0a1310 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -20px 28px rgba(0, 0, 0, 0.24),
    0 28px 44px rgba(0, 0, 0, 0.5);
  padding: 12px;
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.988);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.shop-screen.visible .shop-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.shop-panel::before {
  content: '';
  position: absolute;
  inset: 10px 10px 11px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.shop-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    repeating-linear-gradient(32deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 8px);
  pointer-events: none;
}

.shop-head {
  display: grid;
  gap: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(184, 203, 192, 0.14);
}

.shop-topbar {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 44px;
}

.shop-back {
  justify-self: start;
  min-height: 40px;
  min-width: 90px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(188, 205, 195, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #2a3932, #1d2b25 72%, #151f1b 100%);
  color: #d7e2dc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.shop-title {
  margin: 0;
  font-family: 'Cambria', 'Times New Roman', serif;
  font-size: clamp(27px, 5.8vw, 35px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.3);
}

.shop-balance {
  justify-self: end;
  min-width: 98px;
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(205, 179, 135, 0.46);
  background:
    radial-gradient(circle at 28% 8%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #5b472f, #403021 70%, #2b2016 100%);
  padding: 4px 8px 5px;
  display: grid;
  gap: 1px;
  justify-items: end;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -8px 12px rgba(0, 0, 0, 0.2),
    0 8px 14px rgba(0, 0, 0, 0.24);
}

.shop-balance-label {
  color: #efddbf;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.shop-balance-line {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px;
}

.shop-balance-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: #f9e4bf;
}

.shop-balance-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-balance-value {
  color: #fff5e0;
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.shop-section {
  border: 1px solid rgba(180, 203, 191, 0.22);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 219, 147, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 36%),
    rgba(9, 15, 12, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -8px 14px rgba(0, 0, 0, 0.2);
}

.shop-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-section-title {
  margin: 0;
  color: #edf5ef;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.shop-pill {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(200, 218, 208, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dce9e2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 38%),
    rgba(23, 37, 31, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-pill.available {
  color: #e6f4ec;
  border-color: rgba(147, 211, 171, 0.4);
  background:
    linear-gradient(180deg, rgba(170, 224, 184, 0.28), rgba(170, 224, 184, 0) 34%),
    rgba(32, 74, 52, 0.82);
}

.shop-pill.claimed {
  color: #f1dcc2;
  border-color: rgba(226, 193, 142, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 212, 153, 0.22), rgba(255, 212, 153, 0) 34%),
    rgba(78, 58, 38, 0.82);
}

.shop-pill.muted {
  opacity: 0.86;
}

.shop-section-subtitle {
  margin: 0;
  color: #cfe0d7;
  font-size: 12px;
  line-height: 1.4;
}

.shop-daily-claim-btn {
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(221, 189, 141, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #5d4630, #443220 72%, #302215 100%);
  color: #faebd2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.shop-daily-claim-btn:disabled {
  opacity: 0.62;
  cursor: default;
  filter: saturate(0.7);
}

.shop-daily-result {
  min-height: 16px;
  margin: 0;
  color: #f4dfbd;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.shop-skins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.shop-skin-card {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(188, 206, 195, 0.22);
  border-radius: 11px;
  padding: 7px;
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 38%),
    rgba(12, 20, 16, 0.68);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.shop-skin-card:active {
  transform: translateY(1px);
}

.shop-skin-card:focus-visible {
  outline: 2px solid rgba(228, 201, 153, 0.75);
  outline-offset: 2px;
}

.shop-skin-card.selected {
  border-color: rgba(226, 199, 147, 0.62);
  box-shadow:
    0 0 0 1px rgba(226, 199, 147, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.shop-skin-card.unaffordable {
  border-color: rgba(229, 138, 120, 0.42);
}

.shop-skin-card.affordable.locked .shop-skin-status {
  color: #f8e6c4;
  border-color: rgba(231, 192, 132, 0.5);
}

.shop-skin-card.pending {
  opacity: 0.72;
  pointer-events: none;
}

.shop-skin-card[data-skin='walnut'] {
  background:
    radial-gradient(140% 120% at 14% 0%, rgba(255, 193, 236, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 34%),
    rgba(44, 20, 36, 0.72);
}

.shop-skin-card[data-skin='carbon'] {
  background:
    radial-gradient(140% 120% at 14% 0%, rgba(255, 226, 142, 0.26), transparent 48%),
    linear-gradient(180deg, rgba(255, 245, 198, 0.1), rgba(255, 255, 255, 0) 34%),
    rgba(46, 33, 12, 0.76);
}

.shop-skin-card[data-skin='telegram'] {
  border-color: rgba(130, 218, 255, 0.36);
  background:
    repeating-linear-gradient(135deg,
      rgba(170, 231, 255, 0.06) 0 6px,
      rgba(7, 24, 36, 0.06) 6px 12px),
    radial-gradient(140% 120% at 12% 0%, rgba(138, 228, 255, 0.28), transparent 48%),
    linear-gradient(180deg, rgba(207, 242, 255, 0.12), rgba(255, 255, 255, 0) 34%),
    linear-gradient(160deg, rgba(12, 46, 62, 0.95), rgba(10, 24, 37, 0.97));
}

.shop-skin-card[data-skin='telegram'].selected {
  border-color: rgba(152, 230, 255, 0.86);
  box-shadow:
    0 0 0 1px rgba(146, 222, 255, 0.34),
    0 0 14px rgba(66, 196, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.shop-skin-card[data-skin='telegram'] .shop-skin-price {
  color: #c7efff;
}

.shop-skin-card[data-skin='telegram'] .shop-skin-status {
  color: #d5f3ff;
  border-color: rgba(126, 212, 246, 0.48);
  background:
    linear-gradient(180deg, rgba(140, 224, 255, 0.2), rgba(140, 224, 255, 0) 34%),
    rgba(18, 49, 67, 0.86);
}

.shop-cue-preview-canvas {
  width: 100%;
  height: 54px;
  border-radius: 8px;
  border: 1px solid rgba(235, 244, 239, 0.16);
  display: block;
  background:
    radial-gradient(110% 105% at 8% 14%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 44%),
    linear-gradient(145deg, rgba(44, 62, 53, 0.84), rgba(21, 30, 26, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -10px 18px rgba(0, 0, 0, 0.2);
}

.shop-cue-preview-canvas[data-skin-preview='walnut'] {
  background:
    radial-gradient(110% 105% at 8% 14%, rgba(255, 220, 243, 0.24), rgba(255, 255, 255, 0) 44%),
    linear-gradient(145deg, rgba(99, 42, 77, 0.87), rgba(53, 21, 40, 0.95));
}

.shop-cue-preview-canvas[data-skin-preview='carbon'] {
  background:
    radial-gradient(110% 105% at 8% 14%, rgba(255, 234, 152, 0.26), rgba(255, 255, 255, 0) 44%),
    linear-gradient(145deg, rgba(112, 82, 24, 0.9), rgba(57, 40, 9, 0.96));
}

.shop-cue-preview-canvas[data-skin-preview='telegram'] {
  background:
    repeating-linear-gradient(145deg,
      rgba(166, 230, 255, 0.08) 0 8px,
      rgba(8, 29, 41, 0.08) 8px 16px),
    radial-gradient(110% 105% at 8% 14%, rgba(176, 237, 255, 0.32), rgba(255, 255, 255, 0) 45%),
    linear-gradient(145deg, rgba(18, 74, 96, 0.92), rgba(10, 35, 49, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(222, 245, 255, 0.2),
    inset 0 -10px 18px rgba(0, 0, 0, 0.24),
    0 0 12px rgba(88, 198, 255, 0.16);
}

.shop-skin-name {
  color: #dce8e2;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shop-skin-price {
  color: #f2d9af;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
}

.shop-skin-card.locked .shop-skin-price {
  color: #f5c58e;
}

.shop-skin-card.owned .shop-skin-price {
  color: #bdd2c6;
}

.shop-skin-status {
  align-self: start;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(188, 206, 195, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c5d8cd;
  background: rgba(10, 16, 13, 0.55);
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.shop-skin-card.selected .shop-skin-status {
  color: #f2e3c8;
  border-color: rgba(226, 199, 147, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 219, 161, 0.2), rgba(255, 219, 161, 0) 42%),
    rgba(78, 57, 35, 0.82);
}

.shop-empty {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #a8bcb1;
}

.shop-stars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.shop-stars-pack {
  border: 1px solid rgba(202, 219, 209, 0.26);
  border-radius: 11px;
  padding: 8px 7px;
  min-height: 104px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  gap: 7px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 220, 151, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #203129, #16221c 72%, #111a15 100%);
  color: #ebf4ef;
  cursor: pointer;
}

.shop-stars-pack:active {
  transform: translateY(1px);
}

.shop-stars-pack.pending {
  opacity: 0.74;
  pointer-events: none;
}

.shop-pack-balls {
  color: #dce9e2;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
}

.shop-pack-price {
  color: #f8dfb6;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.shop-pack-buy {
  min-height: 24px;
  min-width: 58px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(216, 185, 140, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7e9cf;
  background:
    linear-gradient(180deg, rgba(255, 212, 153, 0.2), rgba(255, 212, 153, 0) 34%),
    rgba(74, 56, 38, 0.85);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-stars-note {
  margin: 0;
  color: #9eb3a8;
  font-size: 11px;
  line-height: 1.35;
}

.app.menu-open {
  grid-template-rows: 1fr;
  align-content: stretch;
}

.app.menu-open .menu-screen {
  height: 100%;
}

.app.menu-open .chrome,
.app.menu-open .player-row,
.app.menu-open #result-modal,
.app.menu-open .shop-screen,
.app.menu-open .power-meter,
.app.menu-open .turn-flash {
  display: none;
}

.app.menu-open .matchmaking-overlay:not(.hidden) {
  display: grid;
}

.app.menu-open::before {
  opacity: 0;
}

.app.leaderboard-open {
  grid-template-rows: 1fr;
  align-content: stretch;
}

.app.leaderboard-open .leaderboard-screen {
  height: 100%;
}

.app.leaderboard-open .chrome,
.app.leaderboard-open .player-row,
.app.leaderboard-open .table-wrap,
.app.leaderboard-open #result-modal,
.app.leaderboard-open .menu-screen,
.app.leaderboard-open .shop-screen,
.app.leaderboard-open .power-meter,
.app.leaderboard-open .turn-flash {
  display: none;
}

.app.leaderboard-open::before {
  opacity: 0;
}

.app.shop-open {
  grid-template-rows: 1fr;
  align-content: stretch;
}

.app.shop-open .shop-screen {
  height: 100%;
}

.app.shop-open .chrome,
.app.shop-open .player-row,
.app.shop-open .table-wrap,
.app.shop-open #result-modal,
.app.shop-open .menu-screen,
.app.shop-open .leaderboard-screen,
.app.shop-open .power-meter,
.app.shop-open .turn-flash {
  display: none;
}

.app.shop-open::before {
  opacity: 0;
}

@media (min-width: 680px) {
  .app {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 440px) {
  .menu-actions-split {
    grid-template-columns: 1fr;
  }

  .shop-skins-grid,
  .shop-stars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-stars-pack {
    min-height: 92px;
  }

  .power-meter {
    right: calc(clamp(4px, 1.6vw, 9px) + max(env(safe-area-inset-right), var(--tg-safe-right, 0px)) * 0.2);
    width: 34px;
    padding: 6px 5px 7px;
  }

  .power-meter-track {
    width: 10px;
    height: min(26vh, 150px);
  }
}

@media (max-width: 360px) {
  .app {
    padding-left: 7px;
    padding-right: 7px;
  }

  .menu-stats {
    grid-template-columns: 1fr;
  }

  .menu-panel {
    padding: 10px;
    gap: 10px;
  }

  .leaderboard-panel,
  .shop-panel {
    padding: 10px;
    gap: 9px;
  }

  .menu-title {
    font-size: 33px;
  }

  .menu-subtitle {
    font-size: 12px;
  }

  .menu-profile-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px;
  }

  .menu-profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    font-size: 19px;
  }

  .menu-profile-name {
    font-size: 17px;
  }

  .menu-profile-stats-grid {
    gap: 6px;
  }

  .menu-profile-stat-card {
    padding: 5px 7px;
  }

  .menu-profile-stat-value {
    font-size: 14px;
  }

  .menu-profile-progress {
    gap: 4px;
  }

  .menu-profile-progress-label,
  .menu-profile-progress-percent {
    font-size: 9px;
  }

  .menu-profile-progress-track {
    height: 7px;
  }

  .menu-btn {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 54px;
    padding: 8px 10px 8px 8px;
  }

  .menu-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 11px;
  }

  .menu-btn-title {
    font-size: 14px;
  }

  .menu-btn-sub {
    font-size: 10px;
  }

  .menu-online-actions {
    grid-template-columns: 1fr;
  }

  .menu-actions-split {
    grid-template-columns: 1fr;
  }

  .menu-badges {
    gap: 6px;
  }

  .menu-badge {
    padding: 4px 8px;
    font-size: 9px;
  }

  .bug-report-btn {
    min-height: 40px;
    font-size: 12px;
  }

  .leaderboard-row {
    grid-template-columns: 36px 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 8px;
  }

  .leaderboard-rank,
  .leaderboard-avatar {
    width: 36px;
    height: 36px;
  }

  .leaderboard-name {
    font-size: 13px;
  }

  .leaderboard-meta {
    font-size: 9px;
  }

  .leaderboard-wins {
    min-width: 64px;
    font-size: 16px;
  }

  .shop-head {
    gap: 0;
  }

  .shop-title {
    font-size: clamp(21px, 7vw, 27px);
  }

  .shop-topbar {
    grid-template-columns: minmax(74px, 1fr) auto minmax(74px, 1fr);
    gap: 7px;
    min-height: 40px;
  }

  .shop-back {
    min-width: 74px;
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  .shop-balance {
    min-width: 80px;
    min-height: 34px;
    padding: 3px 6px 4px;
  }

  .shop-balance-value {
    font-size: 16px;
  }

  .shop-section {
    padding: 8px;
    gap: 7px;
  }

  .shop-section-title {
    font-size: 12px;
  }

  .shop-pill {
    min-height: 22px;
    padding: 0 8px;
    font-size: 9px;
  }

  .shop-section-subtitle {
    font-size: 11px;
  }

  .shop-daily-claim-btn {
    min-height: 36px;
    font-size: 12px;
  }

  .shop-skins-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-cue-preview-canvas {
    height: 46px;
  }

  .shop-skin-name {
    font-size: 9px;
  }

  .shop-stars-grid {
    grid-template-columns: 1fr;
  }

  .shop-stars-pack {
    min-height: 74px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-content: center;
    align-items: center;
    justify-items: start;
    column-gap: 10px;
    row-gap: 0;
  }

  .shop-pack-balls {
    font-size: 11px;
  }

  .shop-pack-price {
    font-size: 14px;
  }

  .shop-pack-buy {
    min-width: 54px;
    font-size: 9px;
  }

  .timer-box {
    min-width: 78px;
    min-height: 52px;
  }

  .exit-btn {
    min-width: 78px;
    min-height: 52px;
    padding: 0 10px;
  }

  .player-card {
    min-width: min(72vw, 250px);
    width: min(100%, 320px);
  }
}

/* Main menu minimalist redesign */
.menu-screen {
  padding: 12px clamp(12px, 3vw, 18px) 18px;
  background:
    radial-gradient(circle at top, rgba(98, 138, 121, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(7, 12, 10, 0.94), rgba(6, 11, 9, 0.98));
}

.menu-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
  opacity: 0.08;
  pointer-events: none;
}

.menu-screen::after {
  content: none;
}

.menu-panel {
  width: min(100%, 540px);
  padding: 16px;
  gap: 12px;
  border-radius: 28px;
  border: 1px solid rgba(214, 226, 220, 0.14);
  background: rgba(12, 20, 17, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.34);
}

.menu-panel::before {
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-hero,
.menu-profile-card,
.menu-section,
.menu-difficulty,
.menu-help,
.menu-footnote {
  border-radius: 20px;
  border: 1px solid rgba(214, 226, 220, 0.12);
  background: rgba(16, 26, 22, 0.96);
  box-shadow: none;
}

.menu-hero {
  padding: 16px;
  gap: 8px;
}

.menu-hero::before,
.menu-hero::after,
.menu-profile-card::before,
.menu-profile-card::after {
  content: none;
}

.menu-season-pill,
.menu-badges,
.menu-stage {
  display: none !important;
}

.menu-kicker {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #89a398;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-title {
  margin: 0;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: clamp(32px, 8.5vw, 40px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f2f6f3;
  text-shadow: none;
}

.menu-subtitle {
  margin: 0;
  max-width: none;
  color: #aabeb4;
  font-size: 13px;
  line-height: 1.45;
}

.menu-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menu-profile-card,
.menu-section,
.menu-difficulty,
.menu-help,
.menu-footer {
  grid-column: 1 / -1;
}

.menu-profile-card {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.menu-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid rgba(214, 226, 220, 0.18);
  outline: none;
  box-shadow: none;
  font-size: 22px;
}

.menu-profile-copy {
  gap: 8px;
}

.menu-profile-label,
.menu-meta-title,
.menu-section-title,
.menu-difficulty-label {
  margin: 0;
  color: #89a398;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-profile-name {
  font-size: 22px;
  line-height: 1.05;
  color: #f1f5f2;
}

.menu-profile-stats-grid {
  margin-top: 0;
  gap: 8px;
}

.menu-profile-stat-card {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(214, 226, 220, 0.1);
  background: rgba(9, 15, 13, 0.9);
  gap: 4px;
}

.menu-profile-stat-label {
  color: #91aa9f;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.menu-profile-stat-value {
  color: #edf3ef;
  font-size: 17px;
  font-weight: 800;
}

.menu-profile-progress {
  margin-top: 0;
  gap: 6px;
}

.menu-profile-progress-label,
.menu-profile-progress-percent {
  color: #aabeb4;
  font-size: 10px;
}

.menu-profile-progress-track {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(214, 226, 220, 0.12);
  background: rgba(9, 15, 13, 0.88);
}

.menu-profile-progress-fill {
  background: linear-gradient(90deg, #67bd96, #d3b16f);
  box-shadow: none;
}

.menu-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-top: 0;
}

.menu-section-stats {
  gap: 8px;
}

.menu-actions {
  gap: 8px;
}

.menu-stats,
.menu-actions-split,
.menu-difficulty-options {
  gap: 8px;
}

.menu-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-stat-card {
  min-height: 86px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(214, 226, 220, 0.1);
  background: rgba(9, 15, 13, 0.9);
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
}

.menu-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(214, 226, 220, 0.12);
  background: rgba(19, 31, 26, 0.98);
}

.menu-stat-icon.online {
  background: rgba(15, 30, 27, 0.98);
}

.menu-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: #dde7e1;
}

.menu-stat-copy {
  gap: 5px;
}

.menu-stat-label {
  color: #91aa9f;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.menu-stat-value {
  color: #f0f4f1;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.menu-actions-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-actions-split .menu-btn:last-child {
  grid-column: 1 / -1;
}

.menu-btn {
  min-height: 72px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(214, 226, 220, 0.12);
  background: rgba(9, 15, 13, 0.9);
  box-shadow: none;
}

.menu-btn::before {
  content: none;
}

.menu-btn:active {
  transform: translateY(1px);
}

.menu-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(214, 226, 220, 0.12);
  background: rgba(19, 31, 26, 0.98);
  box-shadow: none;
}

.menu-btn-icon svg {
  width: 18px;
  height: 18px;
}

.menu-btn-title {
  color: #eef4f0;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
}

.menu-btn-sub {
  color: #9eb5aa;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.menu-btn-launch {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  min-height: 76px;
  gap: 12px;
}

.menu-btn.primary {
  border-color: rgba(241, 231, 205, 0.2);
  background: #f1ede5;
}

.menu-btn.primary .menu-btn-icon {
  border-color: transparent;
  background: #132019;
  color: #ffffff;
}

.menu-btn.primary .menu-btn-title {
  color: #152018;
}

.menu-btn.primary .menu-btn-sub {
  color: #435247;
}

.menu-btn-arrow {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  background: rgba(17, 26, 22, 0.08);
  color: #152018;
  font-size: 18px;
  font-weight: 800;
  box-shadow: none;
}

.menu-btn.compact {
  grid-template-columns: 36px minmax(0, 1fr);
  align-content: center;
  justify-items: stretch;
  min-height: 72px;
  gap: 12px;
  padding: 12px;
}

.menu-btn.compact .menu-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.menu-btn.compact .menu-btn-title {
  font-size: 15px;
}

.menu-btn.compact .menu-btn-sub {
  max-width: none;
}

.menu-btn-leaderboard,
.menu-btn-shop,
.menu-btn-settings,
.menu-btn.ghost {
  background: rgba(9, 15, 13, 0.9);
  border-color: rgba(214, 226, 220, 0.1);
}

.menu-btn-leaderboard .menu-btn-icon {
  color: #d4c18f;
}

.menu-btn-shop .menu-btn-icon {
  color: #9ad0d0;
}

.menu-btn-settings .menu-btn-icon {
  color: #b0c6b7;
}

.menu-difficulty {
  gap: 10px;
  padding: 14px;
}

.menu-difficulty-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-diff-btn {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(214, 226, 220, 0.12);
  background: rgba(9, 15, 13, 0.9);
  color: #dbe5df;
  font-weight: 700;
}

.menu-diff-btn.active {
  border-color: rgba(241, 231, 205, 0.2);
  background: #f1ede5;
  color: #152018;
}

.menu-help {
  padding: 14px;
  color: #aabeb4;
  line-height: 1.5;
}

.menu-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.menu-footnote {
  margin: 0;
  padding: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #aabeb4;
}

.menu-footnote::before {
  content: none;
}

.bug-report-btn {
  width: auto;
  min-width: 132px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(214, 226, 220, 0.12);
  background: rgba(16, 26, 22, 0.96);
  color: #dbe5df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: none;
}

@media (min-width: 460px) {

  .menu-profile-card,
  .menu-section-stats {
    grid-column: span 1;
  }
}

@media (max-width: 420px) {
  .menu-panel {
    padding: 14px;
  }

  .menu-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .menu-panel {
    padding: 12px;
    gap: 10px;
  }

  .menu-stack {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .menu-profile-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .menu-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 19px;
  }

  .menu-title {
    font-size: 30px;
  }

  .menu-btn-launch {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
  }

  .menu-btn-arrow {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .menu-actions-split {
    grid-template-columns: 1fr;
  }

  .menu-actions-split .menu-btn:last-child {
    grid-column: auto;
  }
}

/* Main menu premium billiards redesign */
.menu-screen {
  --menu-bg: #09131c;
  --menu-panel-bg: #10202a;
  --menu-panel-edge: rgba(201, 224, 216, 0.14);
  --menu-card: #132733;
  --menu-card-strong: #17342f;
  --menu-card-soft: #1a2431;
  --menu-ink: #081016;
  --menu-text: #f4ecda;
  --menu-copy: #b2c2c5;
  --menu-muted: #87a29b;
  --menu-gold: #d5a05b;
  --menu-gold-soft: #f0d8a6;
  --menu-cyan: #60c7c2;
  --menu-coral: #ef7f63;
  padding: 14px clamp(12px, 3vw, 18px) 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(213, 160, 91, 0.22), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(96, 199, 194, 0.18), transparent 22%),
    radial-gradient(circle at 84% 88%, rgba(239, 127, 99, 0.14), transparent 28%),
    linear-gradient(180deg, #081118, #060d13 100%);
}

.menu-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.07), transparent 32%);
  pointer-events: none;
  opacity: 1;
}

.menu-panel {
  width: min(100%, 560px);
  padding: 16px;
  gap: 14px;
  border-radius: 30px;
  border: 1px solid var(--menu-panel-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #10202a, #0c1821 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 30px rgba(0, 0, 0, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.42);
}

.menu-panel::before {
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-hero,
.menu-profile-card,
.menu-section,
.menu-difficulty,
.menu-help,
.menu-footnote {
  border-radius: 24px;
  border: 1px solid rgba(206, 223, 216, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 24px rgba(0, 0, 0, 0.2);
}

.menu-hero {
  padding: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(213, 160, 91, 0.24), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(96, 199, 194, 0.14), transparent 28%),
    linear-gradient(135deg, #183947, #10252f 55%, #142f2b 100%);
}

.menu-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(152px, 0.95fr);
  gap: 14px;
  align-items: stretch;
}

.menu-hero-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.menu-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-kicker {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--menu-muted);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-season-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 230, 191, 0.18);
  background: linear-gradient(180deg, var(--menu-gold-soft), var(--menu-gold));
  color: #24170c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 9vw, 48px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--menu-text);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.menu-subtitle {
  margin: 0;
  max-width: 34ch;
  color: var(--menu-copy);
  font-size: 13px;
  line-height: 1.5;
}

.menu-badges {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.menu-badge {
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 15, 20, 0.26);
  color: #eff4ef;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-hero-visual {
  position: relative;
  min-height: 188px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 30%),
    linear-gradient(160deg, #102127, #0a161a 100%);
  overflow: hidden;
}

.menu-visual-felt {
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(211, 235, 223, 0.08);
  background:
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 80% 76%, rgba(0, 0, 0, 0.16), transparent 26%),
    linear-gradient(145deg, #1b6051, #123a35 58%, #0d2523 100%);
}

.menu-visual-line {
  position: absolute;
  background: rgba(238, 246, 241, 0.24);
  border-radius: 999px;
}

.menu-visual-line-v {
  top: 30px;
  bottom: 30px;
  left: 50%;
  width: 1px;
}

.menu-visual-line-h {
  left: 30px;
  right: 30px;
  top: 50%;
  height: 1px;
}

.menu-visual-cue {
  position: absolute;
  right: -8px;
  bottom: 54px;
  width: 156px;
  height: 9px;
  border-radius: 999px;
  transform: rotate(-26deg);
  background: linear-gradient(90deg, #724825 0 16%, #f7ebd7 16% 84%, #78dfdb 84% 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.menu-visual-ball {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.34);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.menu-visual-ball-eight {
  right: 26px;
  bottom: 26px;
  width: 78px;
  height: 78px;
  background: radial-gradient(circle at 30% 24%, #5e6b77, #161f26 58%, #090e12 100%);
  font-size: 28px;
}

.menu-visual-ball-two {
  left: 24px;
  top: 26px;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 34% 28%, #ffd772, #e19d1e 34%, #f7fbfc 54%, #d8dee1 72%, #a9b3bc 100%);
  color: #352300;
  font-size: 20px;
}

.menu-visual-ball-nine {
  left: 56px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 34% 28%, #7fe0db, #3ba8a0 34%, #f7fbfc 54%, #d8dee1 72%, #a9b3bc 100%);
  color: #113635;
  font-size: 18px;
}

.menu-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.menu-profile-card,
.menu-section-stats {
  grid-column: span 1;
}

.menu-section-play,
.menu-section:not(.menu-section-stats):not(.menu-section-play),
.menu-difficulty,
.menu-help,
.menu-footer {
  grid-column: 1 / -1;
}

.menu-profile-card {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(96, 199, 194, 0.16), transparent 24%),
    linear-gradient(145deg, #153139, #11232d 100%);
}

.menu-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid rgba(220, 236, 228, 0.18);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 18px rgba(0, 0, 0, 0.18);
  font-size: 24px;
}

.menu-profile-copy {
  gap: 8px;
}

.menu-profile-label,
.menu-meta-title,
.menu-section-title,
.menu-difficulty-label {
  color: var(--menu-muted);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-profile-name {
  color: var(--menu-text);
  font-size: 24px;
  line-height: 1.04;
  font-weight: 900;
}

.menu-profile-stats-grid {
  gap: 8px;
}

.menu-profile-stat-card {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(214, 226, 220, 0.1);
  background: rgba(9, 17, 22, 0.32);
}

.menu-profile-stat-label {
  color: #9bb0b7;
}

.menu-profile-stat-value {
  color: #eef4f0;
  font-weight: 800;
}

.menu-profile-progress-label,
.menu-profile-progress-percent {
  color: #aec0c3;
}

.menu-profile-progress-track {
  height: 8px;
  border: 1px solid rgba(214, 226, 220, 0.12);
  background: rgba(9, 17, 22, 0.32);
}

.menu-profile-progress-fill {
  background: linear-gradient(90deg, var(--menu-cyan), var(--menu-gold));
}

.menu-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(145deg, #132733, #101f29 100%);
}

.menu-section-stats {
  background:
    radial-gradient(circle at 100% 0, rgba(213, 160, 91, 0.16), transparent 28%),
    linear-gradient(145deg, #1a2431, #121e29 100%);
}

.menu-stats {
  gap: 8px;
}

.menu-section-stats .menu-stats {
  grid-template-columns: 1fr;
}

.menu-stat-card {
  min-height: 88px;
  padding: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(214, 226, 220, 0.08);
  background: rgba(7, 14, 18, 0.28);
}

.menu-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(214, 226, 220, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.menu-stat-icon.online {
  background: rgba(96, 199, 194, 0.08);
}

.menu-stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: #e8f0ec;
}

.menu-stat-label {
  color: #9bb0b7;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.menu-stat-value {
  color: var(--menu-text);
  font-size: 22px;
  font-weight: 800;
}

.menu-section-play {
  background:
    radial-gradient(circle at 0 0, rgba(239, 127, 99, 0.14), transparent 24%),
    linear-gradient(145deg, #14242f, #10202a 100%);
}

.menu-actions {
  gap: 8px;
}

.menu-btn {
  border-radius: 20px;
  border: 1px solid rgba(214, 226, 220, 0.1);
  background: rgba(8, 15, 20, 0.26);
  box-shadow: none;
}

.menu-btn::before {
  content: none;
}

.menu-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(214, 226, 220, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.menu-btn-icon svg {
  width: 18px;
  height: 18px;
}

.menu-btn-title {
  color: #eef4f0;
  font-size: 15px;
  font-weight: 800;
}

.menu-btn-sub {
  color: #9eb0b5;
  font-size: 11px;
  line-height: 1.35;
}

.menu-btn-launch {
  min-height: 92px;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
}

.menu-btn.primary {
  border-color: rgba(246, 222, 186, 0.18);
  background:
    linear-gradient(145deg, #ef7f63, #d8924c 56%, #d5a05b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 26px rgba(0, 0, 0, 0.16);
}

.menu-btn.primary .menu-btn-icon {
  background: rgba(26, 17, 11, 0.18);
  border-color: rgba(255, 247, 229, 0.18);
  color: #fffdf8;
}

.menu-btn.primary .menu-btn-title {
  color: #24160d;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.menu-btn.primary .menu-btn-sub {
  color: rgba(37, 23, 14, 0.8);
  font-size: 12px;
}

.menu-btn-arrow {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(36, 22, 13, 0.08);
  background: rgba(255, 249, 238, 0.3);
  color: #24160d;
  font-size: 18px;
  font-weight: 900;
  box-shadow: none;
}

.menu-actions-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.menu-actions-split .menu-btn:last-child {
  grid-column: 1 / -1;
}

.menu-btn.compact {
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: start;
  min-height: 128px;
  gap: 16px;
  padding: 14px;
}

.menu-btn.compact .menu-btn-icon {
  width: 40px;
  height: 40px;
}

.menu-btn.compact .menu-btn-title {
  font-size: 16px;
}

.menu-btn.compact .menu-btn-sub {
  max-width: 16ch;
}

.menu-btn.ghost,
.menu-btn-leaderboard,
.menu-btn-shop,
.menu-btn-settings {
  border-color: rgba(214, 226, 220, 0.1);
}

.menu-btn-leaderboard {
  background:
    linear-gradient(180deg, rgba(213, 160, 91, 0.14), rgba(213, 160, 91, 0) 36%),
    linear-gradient(145deg, #162331, #101c28 100%);
}

.menu-btn-leaderboard .menu-btn-icon {
  color: var(--menu-gold-soft);
}

.menu-btn-shop {
  background:
    linear-gradient(180deg, rgba(96, 199, 194, 0.14), rgba(96, 199, 194, 0) 36%),
    linear-gradient(145deg, #143039, #101f29 100%);
}

.menu-btn-shop .menu-btn-icon {
  color: #92ece1;
}

.menu-btn-settings {
  background:
    linear-gradient(180deg, rgba(239, 127, 99, 0.14), rgba(239, 127, 99, 0) 36%),
    linear-gradient(145deg, #18222e, #121a24 100%);
}

.menu-btn-settings .menu-btn-icon {
  color: #ffb5a0;
}

.menu-difficulty {
  padding: 14px;
  background: linear-gradient(145deg, #132733, #101f29 100%);
}

.menu-difficulty-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.menu-diff-btn {
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(214, 226, 220, 0.1);
  background: rgba(8, 15, 20, 0.26);
  color: #dce7e1;
  font-weight: 700;
}

.menu-diff-btn.active {
  border-color: rgba(246, 222, 186, 0.18);
  background: linear-gradient(145deg, #ef7f63, #d5a05b 100%);
  color: #26180f;
}

.menu-help {
  padding: 14px;
  background: linear-gradient(145deg, #162331, #101b26 100%);
  color: #aec0c3;
  line-height: 1.5;
}

.menu-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.menu-footnote {
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(145deg, #132733, #101f29 100%);
  color: #aec0c3;
  font-size: 12px;
  line-height: 1.45;
}

.menu-footnote::before {
  content: none;
}

.bug-report-btn {
  min-width: 144px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(239, 127, 99, 0.22);
  background: linear-gradient(145deg, rgba(239, 127, 99, 0.14), rgba(239, 127, 99, 0.06));
  color: #ffd8cf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.menu-online-panel {
  background: rgba(5, 11, 16, 0.74);
  backdrop-filter: blur(8px);
}

.menu-online-dialog {
  width: min(92vw, 400px);
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(206, 223, 216, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 18%),
    linear-gradient(145deg, #132733, #101f29 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 36px rgba(0, 0, 0, 0.32);
}

.menu-online-title {
  color: var(--menu-muted);
  letter-spacing: 0.14em;
}

.menu-online-close,
.menu-online-btn {
  border-radius: 16px;
  border: 1px solid rgba(214, 226, 220, 0.1);
  background: rgba(8, 15, 20, 0.28);
  color: #e3ece7;
  box-shadow: none;
}

.menu-online-btn {
  min-height: 44px;
  font-weight: 800;
}

.menu-online-btn.primary {
  border-color: rgba(246, 222, 186, 0.18);
  background: linear-gradient(145deg, #ef7f63, #d5a05b 100%);
  color: #24160d;
}

.menu-online-btn.searching {
  border-color: rgba(96, 199, 194, 0.22);
  background: linear-gradient(145deg, rgba(96, 199, 194, 0.22), rgba(96, 199, 194, 0.08));
  color: #ecf8f6;
}

@media (min-width: 490px) {
  .menu-actions-split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-actions-split .menu-btn:last-child {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .menu-panel {
    padding: 14px;
  }

  .menu-stack {
    grid-template-columns: 1fr;
  }

  .menu-profile-card,
  .menu-section-stats {
    grid-column: 1 / -1;
  }

  .menu-hero-grid {
    grid-template-columns: 1fr;
  }

  .menu-hero-visual {
    min-height: 156px;
  }

  .menu-section-stats .menu-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .menu-hero {
    padding: 16px;
  }

  .menu-title {
    font-size: 31px;
  }

  .menu-profile-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }

  .menu-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 20px;
  }

  .menu-section,
  .menu-difficulty,
  .menu-help,
  .menu-footnote {
    padding: 13px;
  }

  .menu-btn-launch {
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    min-height: 84px;
    gap: 12px;
    padding: 14px;
  }

  .menu-btn.primary .menu-btn-title {
    font-size: 20px;
  }

  .menu-actions-split {
    grid-template-columns: 1fr;
  }

  .menu-actions-split .menu-btn:last-child {
    grid-column: auto;
  }

  .menu-section-stats .menu-stats {
    grid-template-columns: 1fr;
  }
}

/* Main menu luxury lounge pass */
.menu-screen {
  --menu-bg: #060d12;
  --menu-panel-bg: #101a1f;
  --menu-panel-edge: rgba(214, 191, 144, 0.2);
  --menu-card: #122028;
  --menu-card-strong: #183d38;
  --menu-card-soft: #1f2631;
  --menu-ink: #071015;
  --menu-text: #f7efdd;
  --menu-copy: #becac6;
  --menu-muted: #9caca1;
  --menu-gold: #c48a3c;
  --menu-gold-soft: #f1ddb0;
  --menu-cyan: #76d3c5;
  --menu-coral: #bb6a3f;
  background:
    radial-gradient(circle at 14% 0%, rgba(244, 217, 170, 0.22), transparent 24%),
    radial-gradient(circle at 100% 14%, rgba(118, 211, 197, 0.18), transparent 24%),
    radial-gradient(circle at 86% 88%, rgba(196, 138, 60, 0.18), transparent 30%),
    linear-gradient(180deg, #071015, #04090d 100%);
}

.menu-screen::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.014) 0 10px, transparent 10px 20px),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.06), transparent 34%);
}

.menu-panel {
  border-radius: 32px;
  border-color: var(--menu-panel-edge);
  background:
    radial-gradient(circle at 10% 0%, rgba(241, 221, 176, 0.12), transparent 26%),
    radial-gradient(circle at 100% 20%, rgba(118, 211, 197, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 16%),
    linear-gradient(180deg, #121e24, #0b151a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -20px 32px rgba(0, 0, 0, 0.22),
    0 28px 64px rgba(0, 0, 0, 0.46);
}

.menu-panel::before {
  inset: 11px;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.05);
}

.menu-hero,
.menu-profile-card,
.menu-section,
.menu-difficulty,
.menu-help,
.menu-footnote {
  border-color: rgba(232, 218, 187, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 28px rgba(0, 0, 0, 0.24);
}

.menu-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(244, 217, 170, 0.26), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(118, 211, 197, 0.16), transparent 32%),
    linear-gradient(135deg, #1a403d, #10262d 56%, #0f1b22 100%);
}

.menu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.016) 0 12px, transparent 12px 24px);
  pointer-events: none;
}

.menu-hero-grid {
  position: relative;
  gap: 16px;
}

.menu-kicker {
  color: #c4d0c2;
  letter-spacing: 0.24em;
}

.menu-season-pill {
  border-color: rgba(241, 221, 176, 0.3);
  background: linear-gradient(180deg, #f4e3bd, #c78d3f);
  color: #24170c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 18px rgba(0, 0, 0, 0.16);
}

.menu-title {
  font-size: clamp(38px, 9vw, 52px);
  letter-spacing: 0.03em;
}

.menu-subtitle {
  color: #d6dfdb;
  font-size: 13px;
  line-height: 1.55;
}

.menu-badges {
  gap: 9px;
}

.menu-badge {
  border-color: rgba(241, 221, 176, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 55%),
    rgba(6, 14, 17, 0.34);
  color: #f6efdc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.menu-hero-visual {
  min-height: 194px;
  border-radius: 24px;
  border-color: rgba(241, 221, 176, 0.12);
  background:
    radial-gradient(circle at 12px 12px, #07090b 0 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 12px) 12px, #07090b 0 8px, transparent 8.5px),
    radial-gradient(circle at 12px calc(100% - 12px), #07090b 0 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #07090b 0 8px, transparent 8.5px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 26%),
    linear-gradient(160deg, #1d2624, #111719 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 28px rgba(0, 0, 0, 0.22);
}

.menu-visual-felt {
  inset: 14px;
  border-radius: 18px;
  border-color: rgba(236, 230, 210, 0.08);
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.1), transparent 24%),
    radial-gradient(circle at 84% 80%, rgba(0, 0, 0, 0.22), transparent 24%),
    linear-gradient(145deg, #1f6857, #14423b 58%, #102b28 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    inset 0 14px 20px rgba(255, 255, 255, 0.03),
    inset 0 -18px 24px rgba(0, 0, 0, 0.18);
}

.menu-visual-line {
  background: rgba(248, 241, 226, 0.22);
}

.menu-visual-cue {
  right: -4px;
  bottom: 52px;
  width: 166px;
  height: 10px;
  transform: rotate(-24deg);
  background: linear-gradient(90deg, #6f4527 0 14%, #f6ebd6 14% 86%, #7ad7ca 86% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

.menu-visual-ball {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.14),
    0 16px 26px rgba(0, 0, 0, 0.26);
}

.menu-profile-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(241, 221, 176, 0.16), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(118, 211, 197, 0.14), transparent 28%),
    linear-gradient(145deg, #183039, #112026 100%);
}

.menu-profile-card::before {
  content: '';
  position: absolute;
  right: -38px;
  bottom: -44px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 221, 176, 0.16), transparent 68%);
  pointer-events: none;
}

.menu-profile-avatar {
  border-color: rgba(244, 226, 192, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 22px rgba(0, 0, 0, 0.22);
}

.menu-profile-progress-track {
  border-color: rgba(241, 221, 176, 0.14);
  background: rgba(7, 14, 17, 0.38);
}

.menu-profile-progress-fill {
  background: linear-gradient(90deg, #7ad7ca, #f0d298);
}

.menu-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #14232b, #0f1b22 100%);
}

.menu-section::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(241, 221, 176, 0.18), rgba(255, 255, 255, 0));
}

.menu-section-stats {
  background:
    radial-gradient(circle at 100% 0, rgba(241, 221, 176, 0.14), transparent 26%),
    linear-gradient(145deg, #201f2d, #151926 100%);
}

.menu-stat-card {
  border-color: rgba(241, 221, 176, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 50%),
    rgba(7, 13, 17, 0.34);
}

.menu-stat-icon {
  border-color: rgba(241, 221, 176, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.menu-section-play {
  background:
    radial-gradient(circle at 0 0, rgba(241, 221, 176, 0.14), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(118, 211, 197, 0.12), transparent 30%),
    linear-gradient(145deg, #182c30, #101b20 100%);
}

.menu-btn {
  border-color: rgba(233, 220, 190, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 48%),
    rgba(7, 13, 17, 0.36);
}

.menu-btn-icon {
  border-color: rgba(233, 220, 190, 0.1);
}

.menu-btn.primary {
  border-color: rgba(244, 226, 192, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 28%),
    linear-gradient(160deg, #f2dfb7, #d59b49 62%, #945627 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 16px 28px rgba(0, 0, 0, 0.22);
}

.menu-btn.primary .menu-btn-icon {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(122, 82, 39, 0.82), rgba(86, 57, 30, 0.9));
  border-color: rgba(255, 244, 219, 0.4);
}

.menu-btn.primary .menu-btn-title {
  color: #25170d;
}

.menu-btn.primary .menu-btn-sub {
  color: rgba(40, 24, 13, 0.8);
}

.menu-btn-arrow {
  border-color: rgba(83, 54, 28, 0.08);
  background: rgba(255, 249, 238, 0.42);
}

.menu-btn-feature {
  position: relative;
  overflow: hidden;
}

.menu-btn-feature::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  border-radius: 999px;
}

.menu-btn-leaderboard::before {
  background: linear-gradient(90deg, #f2ddb2, #c48a3c);
}

.menu-btn-shop::before {
  background: linear-gradient(90deg, #7fd8cc, #2ea79b);
}

.menu-btn-settings::before {
  background: linear-gradient(90deg, #f0be8c, #bb6a3f);
}

.menu-btn-leaderboard {
  background:
    linear-gradient(180deg, rgba(196, 138, 60, 0.14), rgba(196, 138, 60, 0) 34%),
    linear-gradient(145deg, #1b2231, #101925 100%);
}

.menu-btn-shop {
  background:
    linear-gradient(180deg, rgba(118, 211, 197, 0.14), rgba(118, 211, 197, 0) 34%),
    linear-gradient(145deg, #123239, #0f2028 100%);
}

.menu-btn-settings {
  background:
    linear-gradient(180deg, rgba(187, 106, 63, 0.16), rgba(187, 106, 63, 0) 34%),
    linear-gradient(145deg, #211f2d, #151a25 100%);
}

.menu-help {
  background:
    radial-gradient(circle at 100% 0, rgba(241, 221, 176, 0.08), transparent 24%),
    linear-gradient(145deg, #17242c, #101920 100%);
  color: #c2cdc7;
}

.menu-footnote {
  background:
    radial-gradient(circle at 0 0, rgba(118, 211, 197, 0.1), transparent 28%),
    linear-gradient(145deg, #142028, #0f171d 100%);
  color: #b9c6c0;
}

.bug-report-btn {
  border-color: rgba(244, 226, 192, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%),
    rgba(196, 138, 60, 0.14);
  color: #f5dfb4;
}

.menu-online-panel {
  background: rgba(3, 7, 10, 0.78);
}

.menu-online-dialog {
  border-color: rgba(232, 218, 187, 0.16);
  background:
    radial-gradient(circle at 0 0, rgba(241, 221, 176, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 18%),
    linear-gradient(145deg, #14222a, #0f1a21 100%);
}

.menu-online-title {
  color: #a9baae;
}

.menu-online-close,
.menu-online-btn {
  border-color: rgba(232, 218, 187, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 60%),
    rgba(7, 13, 17, 0.34);
}

.menu-online-btn.primary {
  border-color: rgba(244, 226, 192, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 30%),
    linear-gradient(160deg, #f2dfb7, #d59b49 62%, #945627 100%);
}

.menu-online-btn.searching {
  border-color: rgba(118, 211, 197, 0.24);
  background: linear-gradient(145deg, rgba(118, 211, 197, 0.24), rgba(118, 211, 197, 0.08));
}

@media (max-width: 460px) {
  .menu-hero {
    padding: 18px;
  }

  .menu-hero-visual {
    min-height: 166px;
  }

  .menu-btn.compact {
    min-height: 120px;
  }
}

/* Main menu Telegram redesign */
.menu-screen {
  --tg-bg-top: #f7fbff;
  --tg-bg-bottom: #dff1ff;
  --tg-card: rgba(255, 255, 255, 0.94);
  --tg-card-strong: #ffffff;
  --tg-border: rgba(69, 154, 212, 0.16);
  --tg-border-strong: rgba(42, 171, 238, 0.2);
  --tg-text: #17384d;
  --tg-copy: #54758c;
  --tg-muted: #7f98ab;
  --tg-blue: #2aabee;
  --tg-blue-strong: #229ed9;
  --tg-blue-soft: #e9f6ff;
  --tg-blue-deep: #1d6fa4;
  padding: 16px clamp(12px, 3vw, 18px) 20px;
  background:
    radial-gradient(circle at 14% 0%, rgba(90, 193, 255, 0.16), transparent 24%),
    radial-gradient(circle at 100% 18%, rgba(42, 171, 238, 0.14), transparent 24%),
    radial-gradient(circle at 12% 100%, rgba(155, 221, 255, 0.28), transparent 30%),
    linear-gradient(180deg, var(--tg-bg-top), var(--tg-bg-bottom) 100%);
}

.menu-screen::before {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.7), transparent 34%),
    repeating-linear-gradient(135deg, rgba(42, 171, 238, 0.025) 0 12px, transparent 12px 24px);
  opacity: 0.72;
}

.menu-panel {
  width: min(100%, 560px);
  padding: 0;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.menu-panel::before {
  content: none;
}

.menu-hero,
.menu-profile-card,
.menu-section,
.menu-difficulty,
.menu-help,
.menu-footnote,
.menu-online-dialog {
  border-radius: 26px;
  border: 1px solid var(--tg-border);
  background: var(--tg-card);
  box-shadow:
    0 18px 38px rgba(47, 124, 182, 0.1),
    0 4px 12px rgba(57, 134, 192, 0.05);
}

.menu-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #ffffff, #eef8ff 52%, #dff2ff 100%);
}

.menu-hero::before {
  content: '';
  position: absolute;
  right: -48px;
  top: -56px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.18), transparent 66%);
  pointer-events: none;
}

.menu-hero::after {
  content: '';
  position: absolute;
  left: -36px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 209, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.menu-hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
}

.menu-hero-copy {
  gap: 12px;
}

.menu-kicker,
.menu-profile-label,
.menu-meta-title,
.menu-section-title,
.menu-difficulty-label,
.menu-online-title {
  color: var(--tg-muted);
  letter-spacing: 0.1em;
}

.menu-kicker {
  font-size: 11px;
  font-weight: 800;
}

.menu-season-pill {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  background: linear-gradient(145deg, var(--tg-blue), var(--tg-blue-strong));
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(42, 171, 238, 0.26);
}

.menu-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(34px, 8.4vw, 44px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--tg-text);
  text-shadow: none;
}

.menu-subtitle {
  max-width: 34ch;
  color: var(--tg-copy);
  font-size: 13px;
  line-height: 1.55;
}

.menu-badges {
  gap: 8px;
}

.menu-badge {
  padding: 7px 11px;
  border: 1px solid rgba(42, 171, 238, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--tg-blue-deep);
  font-size: 10px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.menu-hero-visual {
  min-height: 164px;
  border-radius: 22px;
  border: 1px solid rgba(42, 171, 238, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0) 24%),
    linear-gradient(145deg, #ffffff, #e9f6ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 20px rgba(52, 132, 191, 0.08);
}

.menu-visual-felt {
  inset: 14px;
  border-radius: 18px;
  border: 0;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.64), transparent 20%),
    linear-gradient(145deg, #d6f0ff, #a8ddff 58%, #80cbf7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -10px 18px rgba(39, 126, 184, 0.14);
}

.menu-visual-line {
  background: rgba(255, 255, 255, 0.72);
}

.menu-visual-line-v {
  top: 28px;
  bottom: 28px;
}

.menu-visual-line-h {
  left: 28px;
  right: 28px;
}

.menu-visual-cue {
  right: 6px;
  bottom: 48px;
  width: 140px;
  height: 10px;
  transform: rotate(-22deg);
  background: linear-gradient(90deg, #5f95b7 0 15%, #ffffff 15% 84%, #229ed9 84% 100%);
  box-shadow: 0 8px 18px rgba(42, 171, 238, 0.18);
}

.menu-visual-ball {
  border: 4px solid rgba(255, 255, 255, 0.88);
  color: #ffffff;
  text-shadow: none;
  box-shadow: 0 16px 28px rgba(41, 123, 181, 0.16);
}

.menu-visual-ball-eight {
  width: 72px;
  height: 72px;
  right: 24px;
  bottom: 20px;
  background: radial-gradient(circle at 30% 26%, #8ac8ec, #3476a2 58%, #214d69 100%);
}

.menu-visual-ball-two {
  left: 22px;
  top: 24px;
  background: radial-gradient(circle at 32% 28%, #ffffff, #d7f1ff 42%, #8ad0f7 100%);
  color: #1d6fa4;
}

.menu-visual-ball-nine {
  left: 60px;
  bottom: 28px;
  background: radial-gradient(circle at 32% 28%, #ffffff, #def4ff 40%, #9ee0ff 100%);
  color: #1d6fa4;
}

.menu-stack {
  grid-template-columns: 1fr;
  gap: 12px;
}

.menu-profile-card,
.menu-section-stats,
.menu-section-play,
.menu-section,
.menu-difficulty,
.menu-help,
.menu-footer {
  grid-column: 1 / -1;
}

.menu-profile-card {
  position: relative;
  overflow: hidden;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(42, 171, 238, 0.1), transparent 24%),
    linear-gradient(145deg, #ffffff, #f2faff 100%);
}

.menu-profile-avatar {
  border: 0;
  border-radius: 22px;
  background: linear-gradient(145deg, #54bdf4, #229ed9);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(42, 171, 238, 0.24);
}

.menu-profile-name,
.menu-stat-value,
.menu-btn-title,
.menu-online-meta strong,
.menu-matchmaking-count,
.menu-profile-stat-value {
  color: var(--tg-text);
}

.menu-profile-stat-card {
  border: 1px solid rgba(42, 171, 238, 0.1);
  background: var(--tg-blue-soft);
}

.menu-profile-stat-label,
.menu-profile-progress-label,
.menu-profile-progress-percent,
.menu-stat-label,
.menu-btn-sub,
.menu-help,
.menu-footnote,
.menu-online-meta {
  color: var(--tg-copy);
}

.menu-profile-progress-track {
  height: 8px;
  border: 0;
  background: rgba(42, 171, 238, 0.12);
}

.menu-profile-progress-fill {
  background: linear-gradient(90deg, #6ac8fb, #229ed9);
}

.menu-section {
  gap: 12px;
  padding: 16px;
  background: var(--tg-card);
}

.menu-section::before {
  content: none;
}

.menu-section-stats .menu-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-stat-card {
  min-height: 84px;
  padding: 12px;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(42, 171, 238, 0.1);
  background: linear-gradient(145deg, #ffffff, #eff9ff 100%);
}

.menu-stat-icon {
  border: 0;
  background: linear-gradient(145deg, #d9f1ff, #bfe7ff);
}

.menu-stat-icon svg {
  stroke: var(--tg-blue-strong);
}

.menu-section-play {
  border-color: rgba(42, 171, 238, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 24%),
    linear-gradient(145deg, #2aabee, #58bef4 100%);
  box-shadow: 0 20px 42px rgba(42, 171, 238, 0.2);
}

.menu-section-play .menu-section-title,
.menu-section-play .menu-btn-title,
.menu-section-play .menu-btn-sub {
  color: #ffffff;
}

.menu-btn {
  border-radius: 22px;
  border: 1px solid rgba(42, 171, 238, 0.12);
  background: linear-gradient(145deg, #ffffff, #f2faff 100%);
  box-shadow: none;
}

.menu-btn::before {
  content: none;
}

.menu-btn-icon {
  border: 0;
  background: linear-gradient(145deg, #d8f0ff, #bde5ff);
  color: var(--tg-blue-strong);
}

.menu-btn-icon svg {
  stroke: currentColor;
}

.menu-btn-launch {
  min-height: 94px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.menu-btn.primary {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.menu-btn.primary .menu-btn-icon {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.menu-btn.primary .menu-btn-title {
  font-size: 22px;
}

.menu-btn.primary .menu-btn-sub {
  color: rgba(255, 255, 255, 0.78);
}

.menu-btn-arrow {
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.menu-actions-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-actions-split .menu-btn:last-child {
  grid-column: 1 / -1;
}

.menu-btn.compact {
  min-height: 118px;
  gap: 14px;
  padding: 14px;
}

.menu-btn-leaderboard {
  background: linear-gradient(145deg, #ffffff, #f3fbff 100%);
}

.menu-btn-shop {
  background: linear-gradient(145deg, #ffffff, #eef8ff 100%);
}

.menu-btn-settings {
  background: linear-gradient(145deg, #ffffff, #f7fbff 100%);
}

.menu-difficulty {
  padding: 14px;
}

.menu-difficulty-options {
  gap: 10px;
}

.menu-diff-btn {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(42, 171, 238, 0.12);
  background: #f2faff;
  color: var(--tg-text);
}

.menu-diff-btn.active {
  border: 0;
  background: linear-gradient(145deg, #2aabee, #58bef4);
  color: #ffffff;
}

.menu-help {
  padding: 15px 16px;
  line-height: 1.55;
}

.menu-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.menu-footnote {
  margin: 0;
  padding: 15px 16px;
}

.menu-footnote::before {
  content: none;
}

.bug-report-btn {
  min-width: 150px;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, #2aabee, #58bef4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(42, 171, 238, 0.22);
}

.menu-online-panel {
  background: rgba(232, 245, 255, 0.68);
  backdrop-filter: blur(10px);
}

.menu-online-dialog {
  width: min(92vw, 404px);
  gap: 12px;
  padding: 16px;
}

.menu-online-close,
.menu-online-btn {
  border: 1px solid rgba(42, 171, 238, 0.12);
  background: #f2faff;
  color: var(--tg-text);
}

.menu-online-btn.primary {
  border: 0;
  background: linear-gradient(145deg, #2aabee, #58bef4);
  color: #ffffff;
}

.menu-online-btn.searching {
  border-color: rgba(42, 171, 238, 0.22);
  background: rgba(42, 171, 238, 0.12);
}

@media (min-width: 490px) {
  .menu-actions-split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-actions-split .menu-btn:last-child {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .menu-hero-grid {
    grid-template-columns: 1fr;
  }

  .menu-hero-visual {
    min-height: 148px;
  }

  .menu-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .menu-screen {
    padding-inline: 10px;
  }

  .menu-hero,
  .menu-profile-card,
  .menu-section,
  .menu-difficulty,
  .menu-help,
  .menu-footnote {
    border-radius: 22px;
  }

  .menu-actions-split {
    grid-template-columns: 1fr;
  }

  .menu-actions-split .menu-btn:last-child {
    grid-column: auto;
  }

  .menu-section-stats .menu-stats {
    grid-template-columns: 1fr;
  }
}

/* Main menu Telegram minimal pass */
.menu-screen {
  padding: 14px clamp(12px, 3vw, 18px) 18px;
  background:
    linear-gradient(180deg, #f7fbff, #eaf6ff 100%);
}

.menu-screen::before {
  content: none;
}

.menu-panel {
  gap: 10px;
}

.menu-hero,
.menu-profile-card,
.menu-section,
.menu-difficulty,
.menu-help,
.menu-footnote,
.menu-online-dialog {
  border-radius: 20px;
  border: 1px solid rgba(42, 171, 238, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(42, 112, 164, 0.08);
}

.menu-hero,
.menu-profile-card,
.menu-section,
.menu-difficulty,
.menu-help,
.menu-footnote,
.menu-online-dialog,
.menu-stat-card,
.menu-profile-stat-card,
.menu-btn,
.menu-diff-btn,
.menu-online-close,
.menu-online-btn,
.bug-report-btn {
  backdrop-filter: none;
}

.menu-hero {
  padding: 18px;
}

.menu-hero::before,
.menu-hero::after,
.menu-profile-card::before,
.menu-btn-feature::before {
  content: none;
}

.menu-hero-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.menu-hero-topline,
.menu-badges,
.menu-hero-visual {
  display: none !important;
}

.menu-title {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #17384d;
}

.menu-subtitle {
  max-width: none;
  color: #648095;
  font-size: 14px;
  line-height: 1.5;
}

.menu-stack {
  gap: 10px;
}

.menu-profile-card {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
}

.menu-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, #2aabee, #58bef4);
  box-shadow: none;
}

.menu-profile-copy {
  gap: 10px;
}

.menu-profile-label,
.menu-meta-title,
.menu-section-title,
.menu-difficulty-label,
.menu-online-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7f98ab;
}

.menu-profile-name {
  font-size: 22px;
  line-height: 1.08;
  font-weight: 700;
  color: #17384d;
}

.menu-profile-stats-grid {
  gap: 8px;
}

.menu-profile-stat-card {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(42, 171, 238, 0.08);
  background: #f3fafe;
}

.menu-profile-stat-label,
.menu-profile-progress-label,
.menu-profile-progress-percent,
.menu-stat-label,
.menu-btn-sub,
.menu-help,
.menu-footnote,
.menu-online-meta {
  color: #648095;
}

.menu-profile-stat-value,
.menu-stat-value,
.menu-btn-title,
.menu-online-meta strong {
  color: #17384d;
}

.menu-profile-progress-track {
  border: 0;
  background: rgba(42, 171, 238, 0.12);
}

.menu-profile-progress-fill {
  background: linear-gradient(90deg, #7ecefb, #2aabee);
}

.menu-section {
  gap: 10px;
  padding: 14px;
}

.menu-section-stats .menu-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.menu-stat-card {
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(42, 171, 238, 0.08);
  background: #f7fbfe;
}

.menu-stat-icon {
  border: 0;
  background: #edf7ff;
}

.menu-stat-icon svg {
  stroke: #229ed9;
}

.menu-section-play {
  border-color: rgba(42, 171, 238, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(42, 112, 164, 0.08);
}

.menu-section-play .menu-section-title {
  color: #7f98ab;
}

.menu-actions {
  gap: 8px;
}

.menu-btn {
  border-radius: 18px;
  border: 1px solid rgba(42, 171, 238, 0.1);
  background: #ffffff;
  box-shadow: none;
}

.menu-btn.ghost,
.menu-btn.ghost.menu-btn-leaderboard,
.menu-btn.ghost.menu-btn-shop,
.menu-btn.ghost.menu-btn-settings {
  border-color: rgba(42, 171, 238, 0.1);
  background: #ffffff;
  box-shadow: none;
}

.menu-btn::before {
  content: none;
}

.menu-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 0;
  background: #edf7ff;
  color: #229ed9;
}

.menu-btn-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.menu-btn-title {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.menu-btn-sub {
  font-size: 13px;
  line-height: 1.4;
}

.menu-btn-launch {
  min-height: 78px;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: linear-gradient(145deg, #2aabee, #58bef4);
}

.menu-btn.primary {
  background: linear-gradient(145deg, #2aabee, #58bef4);
  box-shadow: none;
}

.menu-btn.primary .menu-btn-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.menu-btn.primary .menu-btn-title {
  font-size: 18px;
  color: #ffffff;
}

.menu-btn.primary .menu-btn-sub {
  color: rgba(255, 255, 255, 0.82);
}

.menu-btn-arrow {
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  color: #ffffff;
  font-size: 20px;
}

.menu-actions-split {
  grid-template-columns: 1fr;
  gap: 8px;
}

.menu-actions-split .menu-btn:last-child {
  grid-column: auto;
}

.menu-btn.compact {
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  justify-items: stretch;
  min-height: 72px;
  gap: 12px;
  padding: 13px 14px;
}

.menu-btn.compact .menu-btn-icon {
  width: 40px;
  height: 40px;
}

.menu-btn.compact .menu-btn-copy {
  align-self: center;
}

.menu-btn.compact .menu-btn-sub {
  max-width: none;
}

.menu-btn.compact::after {
  content: '›';
  justify-self: end;
  color: #8ca3b3;
  font-size: 22px;
  line-height: 1;
}

.menu-btn-leaderboard,
.menu-btn-shop,
.menu-btn-settings {
  background: #ffffff;
}

.menu-difficulty {
  padding: 14px;
}

.menu-diff-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(42, 171, 238, 0.1);
  background: #f4fbff;
  color: #17384d;
  font-weight: 600;
}

.menu-diff-btn.active {
  border: 0;
  background: #2aabee;
  color: #ffffff;
}

.menu-help {
  padding: 14px;
  line-height: 1.5;
}

.menu-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.menu-footnote {
  margin: 0;
  padding: 14px;
}

.menu-footnote::before {
  content: none;
}

.bug-report-btn {
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(42, 171, 238, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: #229ed9;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.menu-online-panel {
  background: rgba(235, 246, 255, 0.76);
  backdrop-filter: blur(8px);
}

.menu-online-dialog {
  width: min(92vw, 396px);
  gap: 10px;
  padding: 16px;
}

.menu-online-close,
.menu-online-btn {
  border: 1px solid rgba(42, 171, 238, 0.1);
  border-radius: 16px;
  background: #ffffff;
  color: #17384d;
  box-shadow: none;
}

.menu-online-btn {
  min-height: 44px;
  font-weight: 600;
}

.menu-online-btn.primary {
  border: 0;
  background: #2aabee;
  color: #ffffff;
}

.menu-online-btn.searching {
  border-color: rgba(42, 171, 238, 0.16);
  background: #edf7ff;
  color: #229ed9;
}

@media (min-width: 490px) {
  .menu-actions-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .menu-screen {
    padding-inline: 10px;
  }

  .menu-title {
    font-size: 30px;
  }

  .menu-section-stats .menu-stats {
    grid-template-columns: 1fr;
  }
}

/* Main menu stat-card style transfer */
.menu-screen {
  --menu-stat-surface: linear-gradient(180deg, #ffffff, #f7fbfe 100%);
  --menu-stat-surface-soft: linear-gradient(180deg, #fbfdff, #f3f9fd 100%);
  --menu-stat-border: rgba(42, 171, 238, 0.08);
  --menu-stat-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 0 rgba(208, 226, 238, 0.92),
    0 10px 20px rgba(74, 129, 165, 0.1);
}

.menu-hero,
.menu-profile-card,
.menu-section,
.menu-section-play,
.menu-difficulty,
.menu-help,
.menu-footnote,
.menu-online-dialog {
  border-color: var(--menu-stat-border);
  background: var(--menu-stat-surface);
  box-shadow: var(--menu-stat-shadow);
}

.menu-profile-card {
  background:
    radial-gradient(circle at 100% 0, rgba(42, 171, 238, 0.06), transparent 24%),
    linear-gradient(180deg, #ffffff, #f7fbfe 100%);
}

.menu-profile-stat-card {
  border-color: var(--menu-stat-border);
  background: var(--menu-stat-surface-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(208, 226, 238, 0.72);
}

.menu-btn,
.menu-btn.ghost,
.menu-btn.ghost.menu-btn-leaderboard,
.menu-btn.ghost.menu-btn-shop,
.menu-btn.ghost.menu-btn-settings,
.menu-diff-btn,
.bug-report-btn,
.menu-online-close,
.menu-online-btn {
  border-color: var(--menu-stat-border);
  background: var(--menu-stat-surface);
  box-shadow: var(--menu-stat-shadow);
}

.menu-btn-icon,
.menu-stat-icon {
  background: linear-gradient(180deg, #f7fcff, #e9f5fd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(208, 226, 238, 0.72);
}

.menu-btn-title,
.menu-btn-sub,
.menu-online-btn,
.menu-online-close,
.bug-report-btn {
  color: #17384d;
}

.menu-btn-sub,
.menu-help,
.menu-footnote,
.menu-online-meta {
  color: #648095;
}

.menu-btn-launch,
.menu-btn.primary {
  border: 1px solid var(--menu-stat-border);
  background: var(--menu-stat-surface);
  box-shadow: var(--menu-stat-shadow);
}

.menu-btn.primary .menu-btn-icon {
  background: linear-gradient(180deg, #f7fcff, #e9f5fd 100%);
  color: #229ed9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(208, 226, 238, 0.72);
}

.menu-btn.primary .menu-btn-title {
  color: #17384d;
}

.menu-btn.primary .menu-btn-sub {
  color: #648095;
}

.menu-btn-arrow {
  color: #229ed9;
}

.menu-diff-btn.active,
.menu-online-btn.primary {
  border: 1px solid var(--menu-stat-border);
  background: var(--menu-stat-surface);
  color: #17384d;
  box-shadow: var(--menu-stat-shadow);
}

.menu-online-btn.searching {
  border-color: rgba(42, 171, 238, 0.12);
  background: var(--menu-stat-surface-soft);
}

/* Main menu exact stat-card button match */
.menu-btn,
.menu-btn.ghost,
.menu-btn.ghost.menu-btn-leaderboard,
.menu-btn.ghost.menu-btn-shop,
.menu-btn.ghost.menu-btn-settings,
.menu-btn.primary,
.menu-btn-launch,
.menu-diff-btn,
.menu-diff-btn.active,
.bug-report-btn,
.menu-online-close,
.menu-online-btn,
.menu-online-btn.primary,
.menu-online-btn.searching {
  border: 1px solid rgba(42, 171, 238, 0.08);
  border-radius: 16px;
  background: #f7fbfe;
  box-shadow: 0 8px 18px rgba(74, 129, 165, 0.08);
}

.menu-btn-icon,
.menu-btn.primary .menu-btn-icon {
  background: #edf7ff;
  color: #229ed9;
  box-shadow: none;
}

.menu-btn-title,
.menu-btn.primary .menu-btn-title {
  color: #17384d;
  font-size: 17px;
}

.menu-btn-sub,
.menu-btn.primary .menu-btn-sub {
  color: #648095;
  font-size: 13px;
  line-height: 1.4;
}

.menu-btn-launch {
  min-height: 80px;
  border-radius: 16px;
}

.menu-btn.compact {
  min-height: 80px;
  border-radius: 16px;
}

.menu-btn-arrow,
.menu-btn.compact::after {
  color: #229ed9;
}

/* Main menu section and card contrast fix */
.menu-hero,
.menu-profile-card,
.menu-section,
.menu-section-play,
.menu-difficulty,
.menu-help,
.menu-footnote,
.menu-online-dialog {
  background: #ffffff;
  border-color: rgba(42, 171, 238, 0.08);
  box-shadow: 0 8px 24px rgba(42, 112, 164, 0.08);
}

.menu-profile-card {
  background:
    radial-gradient(circle at 100% 0, rgba(42, 171, 238, 0.05), transparent 24%),
    #ffffff;
}

.menu-btn,
.menu-btn.ghost,
.menu-btn.ghost.menu-btn-leaderboard,
.menu-btn.ghost.menu-btn-shop,
.menu-btn.ghost.menu-btn-settings,
.menu-btn.primary,
.menu-btn-launch,
.menu-diff-btn,
.menu-diff-btn.active,
.bug-report-btn,
.menu-online-close,
.menu-online-btn,
.menu-online-btn.primary,
.menu-online-btn.searching {
  background: linear-gradient(180deg, #edf5fb 0%, #f8fbfe 100%);
  border: 1px solid rgba(207, 226, 239, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 18px rgba(182, 196, 208, 0.55);
}

.menu-btn,
.menu-btn.ghost,
.menu-btn.ghost.menu-btn-leaderboard,
.menu-btn.ghost.menu-btn-shop,
.menu-btn.ghost.menu-btn-settings,
.menu-btn.primary,
.menu-btn-launch {
  border-radius: 22px;
}

.menu-btn-icon,
.menu-btn.primary .menu-btn-icon {
  background: linear-gradient(180deg, #ecf7ff 0%, #e4f2fd 100%);
  color: #229ed9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* Main menu literal stat-card copy */
.menu-screen .menu-btn,
.menu-screen .menu-btn.ghost,
.menu-screen .menu-btn.ghost.menu-btn-leaderboard,
.menu-screen .menu-btn.ghost.menu-btn-shop,
.menu-screen .menu-btn.ghost.menu-btn-settings,
.menu-screen .menu-btn.primary,
.menu-screen .menu-btn-launch {
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(42, 171, 238, 0.08);
  background: #f7fbfe;
  box-shadow: none;
}

.menu-screen .menu-btn-launch {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
}

.menu-screen .menu-btn.compact {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 80px;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
}

.menu-screen .menu-btn-icon,
.menu-screen .menu-btn.primary .menu-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 0;
  background: #edf7ff;
  color: #229ed9;
  box-shadow: none;
}

.menu-screen .menu-btn-title,
.menu-screen .menu-btn.primary .menu-btn-title {
  color: #17384d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.menu-screen .menu-btn-sub,
.menu-screen .menu-btn.primary .menu-btn-sub {
  color: #648095;
  font-size: 13px;
  line-height: 1.4;
}

.menu-screen .menu-btn-arrow,
.menu-screen .menu-btn.compact::after {
  color: #229ed9;
}

/* Main menu absolute final card clone */
.menu-screen .menu-btn,
.menu-screen .menu-btn.ghost,
.menu-screen .menu-btn.ghost.menu-btn-leaderboard,
.menu-screen .menu-btn.ghost.menu-btn-shop,
.menu-screen .menu-btn.ghost.menu-btn-settings,
.menu-screen .menu-btn.primary,
.menu-screen .menu-btn-launch {
  display: grid;
  align-items: center;
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(42, 171, 238, 0.08);
  background: #f7fbfe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.menu-screen .menu-btn-launch,
.menu-screen .menu-btn.compact {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  align-content: center;
  justify-items: stretch;
}

.menu-screen .menu-btn-icon,
.menu-screen .menu-btn.primary .menu-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 0;
  background: #edf7ff;
  color: #229ed9;
  box-shadow: none;
}

.menu-screen .menu-btn-title,
.menu-screen .menu-btn.primary .menu-btn-title {
  color: #17384d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.menu-screen .menu-btn-sub,
.menu-screen .menu-btn.primary .menu-btn-sub {
  color: #648095;
  font-size: 13px;
  line-height: 1.4;
}

.menu-screen .menu-btn-arrow,
.menu-screen .menu-btn.compact::after {
  color: #229ed9;
}

/* Main menu EOF stat-card clone */
.menu-screen .menu-btn,
.menu-screen .menu-btn.ghost,
.menu-screen .menu-btn.ghost.menu-btn-leaderboard,
.menu-screen .menu-btn.ghost.menu-btn-shop,
.menu-screen .menu-btn.ghost.menu-btn-settings,
.menu-screen .menu-btn.primary,
.menu-screen .menu-btn-launch {
  display: grid;
  align-items: center;
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(42, 171, 238, 0.08);
  background: #f7fbfe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.menu-screen .menu-btn-launch,
.menu-screen .menu-btn.compact {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  align-content: center;
  justify-items: stretch;
}

.menu-screen .menu-btn-icon,
.menu-screen .menu-btn.primary .menu-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 0;
  background: #edf7ff;
  color: #229ed9;
  box-shadow: none;
}

.menu-screen .menu-btn-title,
.menu-screen .menu-btn.primary .menu-btn-title {
  color: #17384d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.menu-screen .menu-btn-sub,
.menu-screen .menu-btn.primary .menu-btn-sub {
  color: #648095;
  font-size: 13px;
  line-height: 1.4;
}

.menu-screen .menu-btn-arrow,
.menu-screen .menu-btn.compact::after {
  color: #229ed9;
}

/* Main menu ultimate stat-card clone */
.menu-screen .menu-btn,
.menu-screen .menu-btn.ghost,
.menu-screen .menu-btn.ghost.menu-btn-leaderboard,
.menu-screen .menu-btn.ghost.menu-btn-shop,
.menu-screen .menu-btn.ghost.menu-btn-settings,
.menu-screen .menu-btn.primary,
.menu-screen .menu-btn-launch {
  display: grid;
  align-items: center;
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(42, 171, 238, 0.08);
  background: #f7fbfe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.menu-screen .menu-btn-launch,
.menu-screen .menu-btn.compact {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  align-content: center;
  justify-items: stretch;
}

.menu-screen .menu-btn-icon,
.menu-screen .menu-btn.primary .menu-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 0;
  background: #edf7ff;
  color: #229ed9;
  box-shadow: none;
}

.menu-screen .menu-btn-title,
.menu-screen .menu-btn.primary .menu-btn-title {
  color: #17384d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.menu-screen .menu-btn-sub,
.menu-screen .menu-btn.primary .menu-btn-sub {
  color: #648095;
  font-size: 13px;
  line-height: 1.4;
}

.menu-screen .menu-btn-arrow,
.menu-screen .menu-btn.compact::after {
  color: #229ed9;
}

/* Main menu exact card shadow clone */
.menu-screen .menu-btn,
.menu-screen .menu-btn.ghost,
.menu-screen .menu-btn.ghost.menu-btn-leaderboard,
.menu-screen .menu-btn.ghost.menu-btn-shop,
.menu-screen .menu-btn.ghost.menu-btn-settings,
.menu-screen .menu-btn.primary,
.menu-screen .menu-btn-launch {
  display: grid;
  align-items: center;
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(42, 171, 238, 0.08);
  background: #f7fbfe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.menu-screen .menu-btn-launch,
.menu-screen .menu-btn.compact {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  align-content: center;
  justify-items: stretch;
}

.menu-screen .menu-btn-icon,
.menu-screen .menu-btn.primary .menu-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 0;
  background: #edf7ff;
  color: #229ed9;
  box-shadow: none;
}

/* Main menu final stat-card sync */
.menu-screen .menu-btn,
.menu-screen .menu-btn.ghost,
.menu-screen .menu-btn.ghost.menu-btn-leaderboard,
.menu-screen .menu-btn.ghost.menu-btn-shop,
.menu-screen .menu-btn.ghost.menu-btn-settings,
.menu-screen .menu-btn.primary,
.menu-screen .menu-btn-launch {
  display: grid;
  align-items: center;
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(42, 171, 238, 0.08);
  background: #f7fbfe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.menu-screen .menu-btn-launch,
.menu-screen .menu-btn.compact {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 80px;
  padding: 12px;
  border-radius: 16px;
  align-content: center;
  justify-items: stretch;
}

.menu-screen .menu-btn-icon,
.menu-screen .menu-btn.primary .menu-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 0;
  background: #edf7ff;
  color: #229ed9;
  box-shadow: none;
}

.menu-screen .menu-btn-title,
.menu-screen .menu-btn.primary .menu-btn-title {
  color: #17384d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.menu-screen .menu-btn-sub,
.menu-screen .menu-btn.primary .menu-btn-sub {
  color: #648095;
  font-size: 13px;
  line-height: 1.4;
}

.menu-screen .menu-btn-arrow,
.menu-screen .menu-btn.compact::after {
  color: #229ed9;
}


.menu-screen {
  background: transparent !important;
}

/* Live menu table: the scene stays behind the controls and never affects layout. */
#menu-screen.menu-screen {
  isolation: isolate;
  background: transparent !important;
}

#menu-screen.menu-screen::before,
#menu-screen.menu-screen::after {
  content: none !important;
}

#menu-screen #menu-3d-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

#menu-screen #menu-3d-bg-canvas canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#menu-screen .bg-vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 37%, rgba(0, 0, 0, 0) 0 23%, rgba(0, 12, 7, 0.1) 53%, rgba(0, 7, 4, 0.56) 100%),
    linear-gradient(180deg, rgba(0, 10, 5, 0.14), rgba(0, 10, 5, 0.04) 42%, rgba(0, 8, 4, 0.34));
}

#menu-screen .menu-viewport {
  position: relative;
  z-index: 2;
}

/* 3D showroom: keep the cue long enough to read its silhouette and details. */
#arsenal-cue-canvas.arsenal-cue-canvas {
  display: block;
  width: min(100%, 360px) !important;
  max-width: 360px;
  min-height: 0;
  height: 154px !important;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(226, 194, 117, 0.2), transparent 54%),
    linear-gradient(145deg, rgba(13, 35, 24, 0.72), rgba(3, 12, 8, 0.28));
}

#arsenal-cue-canvas.arsenal-cue-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Immersive 3D arsenal. The model is the primary content, not a small card preview. */
#shop-panel-cues.arsenal-panel,
#shop-panel-cues.arsenal-panel.active,
#shop-panel-cues .arsenal-showcase {
  min-height: 0;
}

#shop-panel-cues.arsenal-panel.active {
  flex: 1 1 auto;
}

#shop-panel-cues .arsenal-showcase {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(230px, 1fr) auto auto auto;
  align-items: stretch;
  gap: 9px;
}

#shop-panel-cues .arsenal-stage {
  min-height: 230px;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(226, 194, 117, 0.18), transparent 42%),
    radial-gradient(ellipse at 18% 18%, rgba(73, 153, 124, 0.16), transparent 39%),
    linear-gradient(145deg, rgba(16, 42, 30, 0.92), rgba(3, 12, 8, 0.9));
  border-color: rgba(171, 207, 185, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    inset 0 -54px 80px rgba(0, 0, 0, 0.22),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

#shop-panel-cues .arsenal-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.52;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 50% 50% / 42px 42px,
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 50% 50% / 42px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 80%, transparent);
}

#shop-panel-cues .arsenal-bg-text {
  top: 22px;
  z-index: 2;
  font-size: clamp(54px, 16vw, 88px);
  color: rgba(237, 247, 241, 0.045);
}

#shop-panel-cues .arsenal-cue-display {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

#shop-panel-cues .arsenal-pedestal-glow {
  z-index: 0;
  width: min(84%, 400px);
  height: 34%;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  opacity: 0.75;
}

#arsenal-cue-canvas.arsenal-cue-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  max-width: none;
  height: 100% !important;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  filter: none;
  transform: none !important;
  touch-action: none;
  cursor: grab;
}

#arsenal-cue-canvas.arsenal-cue-canvas.is-dragging {
  cursor: grabbing;
}

#shop-panel-cues .arsenal-arrow-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#shop-panel-cues .arsenal-arrow-btn.left {
  left: 12px;
}

#shop-panel-cues .arsenal-arrow-btn.right {
  right: 12px;
}

#shop-panel-cues .arsenal-cue-info {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 12px 16px;
  gap: 3px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(20, 38, 29, 0.82), rgba(6, 16, 11, 0.74));
}

#shop-panel-cues .arsenal-cue-badge {
  font-size: 9px;
  padding: 3px 10px;
}

#shop-panel-cues .arsenal-cue-name {
  margin-top: 2px;
  font-size: clamp(20px, 5.8vw, 25px);
}

#shop-panel-cues .arsenal-cue-desc {
  display: -webkit-box;
  max-width: 330px;
  max-height: 38px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#shop-panel-cues .arsenal-cue-price {
  margin-top: 2px;
  font-size: 15px;
}

#shop-panel-cues .arsenal-dots {
  justify-content: center;
  margin: 2px 0 1px;
}

#shop-panel-cues .arsenal-action-box {
  margin: 0;
  padding-top: 1px;
}

@media (max-height: 680px) {
  #shop-panel-cues .arsenal-showcase {
    grid-template-rows: minmax(208px, 1fr) auto auto auto;
    gap: 6px;
  }

  #shop-panel-cues .arsenal-stage {
    min-height: 208px;
    border-radius: 22px;
  }

  #shop-panel-cues .arsenal-cue-info {
    padding: 9px 14px;
  }

  #shop-panel-cues .arsenal-cue-desc {
    display: none;
  }

  #shop-panel-cues .arsenal-dots {
    margin: 0;
  }
}

/* Rarity seal: each cue family gets its own illuminated alloy and accent. */
#shop-panel-cues .arsenal-cue-badge {
  --rarity-edge: #e7bd61;
  --rarity-glow: rgba(231, 189, 97, 0.32);
  --rarity-ink: #ffe196;
  --rarity-wash: rgba(231, 189, 97, 0.28);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 15px 0 25px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--rarity-edge);
  border-radius: 5px 12px 5px 12px;
  color: var(--rarity-ink);
  letter-spacing: 0.13em;
  text-shadow: 0 1px 12px var(--rarity-glow);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.055) 0 2px, transparent 2px 7px),
    linear-gradient(105deg, var(--rarity-wash), rgba(8, 19, 14, 0.9) 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 18px var(--rarity-glow),
    0 4px 15px rgba(0, 0, 0, 0.22);
}

#shop-panel-cues .arsenal-cue-badge::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 10px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--rarity-ink);
  background: var(--rarity-edge);
  box-shadow: 0 0 10px var(--rarity-glow);
  transform: rotate(45deg);
}

#shop-panel-cues .arsenal-cue-badge::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: -40%;
  left: -36%;
  width: 22%;
  height: 180%;
  opacity: 0.48;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-22deg);
  animation: arsenal-rarity-glint 5.2s ease-in-out infinite;
}

#shop-panel-cues .arsenal-cue-badge[data-tier='bone'] {
  --rarity-edge: #d28758;
  --rarity-glow: rgba(210, 135, 88, 0.3);
  --rarity-ink: #ffd3aa;
  --rarity-wash: rgba(210, 135, 88, 0.28);
}

#shop-panel-cues .arsenal-cue-badge[data-tier='diamond'] {
  --rarity-edge: #71dfff;
  --rarity-glow: rgba(77, 198, 255, 0.35);
  --rarity-ink: #d6f9ff;
  --rarity-wash: rgba(77, 198, 255, 0.26);
}

#shop-panel-cues .arsenal-cue-badge[data-tier='gold'] {
  --rarity-edge: #ffd33d;
  --rarity-glow: rgba(255, 196, 38, 0.36);
  --rarity-ink: #fff2a9;
  --rarity-wash: rgba(255, 196, 38, 0.28);
}

#shop-panel-cues .arsenal-cue-badge[data-tier='telegram'] {
  --rarity-edge: #48d3ff;
  --rarity-glow: rgba(27, 184, 255, 0.38);
  --rarity-ink: #d5f6ff;
  --rarity-wash: rgba(27, 184, 255, 0.28);
}

@keyframes arsenal-rarity-glint {
  0%, 64% { transform: translateX(0) skewX(-22deg); opacity: 0; }
  74% { opacity: 0.48; }
  100% { transform: translateX(740%) skewX(-22deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #shop-panel-cues .arsenal-cue-badge::after {
    animation: none;
  }
}

/* Rarity is a floating signal, not another card inside the card. */
#shop-panel-cues .arsenal-cue-badge {
  min-height: 18px;
  padding: 0 13px;
  overflow: visible;
  isolation: auto;
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: none;
  box-shadow: none;
  color: var(--rarity-ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-shadow: 0 0 12px var(--rarity-glow);
}

#shop-panel-cues .arsenal-cue-badge::before,
#shop-panel-cues .arsenal-cue-badge::after {
  content: '';
  position: absolute;
  top: 50%;
  z-index: 0;
  width: 36px;
  height: 1px;
  margin-top: -0.5px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--rarity-edge));
  box-shadow: 0 0 8px var(--rarity-glow);
  transform: none;
  animation: none;
}

#shop-panel-cues .arsenal-cue-badge::before {
  left: -31px;
}

#shop-panel-cues .arsenal-cue-badge::after {
  right: -31px;
  left: auto;
  transform: scaleX(-1);
}

/* Vector pack icons replace platform-dependent emoji in the Stars store. */
.stars-card .stars-pack-visual {
  width: 94px;
  min-width: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0;
}

.stars-card .pack-ball {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 27%, rgba(255, 255, 255, 0.94) 0 4%, rgba(255, 232, 121, 0.98) 13%, #f5bb2f 46%, #b86a0a 76%, #512600 100%);
  box-shadow:
    inset -3px -4px 5px rgba(72, 29, 0, 0.42),
    inset 2px 2px 3px rgba(255, 255, 255, 0.58),
    0 5px 9px rgba(0, 0, 0, 0.34);
}

.stars-card .pack-ball--bright {
  background:
    radial-gradient(circle at 32% 27%, rgba(255, 255, 255, 0.96) 0 4%, #ffe692 13%, #ffd24e 44%, #dd900b 73%, #784000 100%);
  box-shadow:
    inset -3px -4px 5px rgba(99, 53, 0, 0.36),
    inset 2px 2px 3px rgba(255, 255, 255, 0.66),
    0 0 12px rgba(255, 205, 65, 0.22);
}

.stars-card .pack-symbol {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  overflow: visible;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.34));
}

.stars-card .pack-symbol--spark {
  fill: #ffd35b;
  filter: drop-shadow(0 0 7px rgba(255, 196, 53, 0.5));
}

.stars-card .pack-symbol--crown {
  fill: #efb940;
  stroke: #ffe59b;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stars-card .pack-symbol--gem {
  fill: #4fd7ff;
  stroke: #d5f9ff;
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(54, 204, 255, 0.4));
}

.stars-card .pack-symbol--trophy {
  fill: #f0b63a;
  stroke: #fff0ad;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stars-card .stars-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.stars-card .stars-currency-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

/* Full player profile — shared by the menu and the in-match player cards. */
.player-profile-screen {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  justify-content: center;
  overflow: hidden auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(226, 194, 117, 0.18), transparent 45%),
    radial-gradient(ellipse at 96% 84%, rgba(49, 138, 104, 0.16), transparent 42%),
    linear-gradient(165deg, rgba(4, 14, 10, 0.98), rgba(2, 8, 6, 0.99));
  transition: none;
}

.player-profile-screen.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#menu-screen.menu-screen.profile-return {
  transition: none !important;
}

/* Startup cover keeps the game canvas out of sight until the menu is ready. */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  color: #f6e5a7;
  background:
    radial-gradient(circle at 50% 43%, rgba(51, 131, 92, 0.24), transparent 27%),
    radial-gradient(circle at 50% 102%, rgba(226, 194, 117, 0.14), transparent 43%),
    linear-gradient(160deg, #04130c, #020805 68%, #000403);
  transition: opacity 0.26s ease, visibility 0s linear 0.28s;
}

.app-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loader-table {
  position: relative;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
}

.app-loader-orbit {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 199, 119, 0.28);
  border-top-color: #f3d77f;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(233, 198, 105, 0.12), inset 0 0 16px rgba(52, 173, 115, 0.08);
  animation: app-loader-orbit 1.35s linear infinite;
}

.app-loader-ball {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 25%, rgba(255, 255, 255, 0.94) 0 5%, rgba(159, 171, 171, 0.76) 12%, #263735 31%, #0c1212 65%, #020303 100%);
  box-shadow:
    inset -10px -12px 14px rgba(0, 0, 0, 0.76),
    inset 4px 4px 8px rgba(255, 255, 255, 0.18),
    0 14px 22px rgba(0, 0, 0, 0.64),
    0 0 24px rgba(75, 203, 139, 0.16);
  animation: app-loader-ball 1.35s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.app-loader-ball::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(245, 231, 181, 0.28);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-32deg);
}

.app-loader-ball span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #101614;
  background: #f8f4e8;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.26), 0 2px 4px rgba(0, 0, 0, 0.42);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.app-loader-cue {
  position: absolute;
  width: 100px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e9d5aa, #a56d36 52%, #28170d);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  transform: translateY(47px) rotate(-18deg);
  transform-origin: 17% 50%;
  animation: app-loader-cue 1.35s ease-in-out infinite;
}

.app-loader > strong {
  margin-top: 2px;
  color: #f4e6bd;
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.19em;
}

.app-loader > span {
  color: #93b2a3;
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.23em;
}

@keyframes app-loader-orbit {
  to { transform: rotate(360deg); }
}

@keyframes app-loader-ball {
  0%, 100% { transform: rotateY(0deg) translateY(0); }
  48% { transform: rotateY(180deg) translateY(-5px); }
  52% { transform: rotateY(180deg) translateY(-5px); }
}

@keyframes app-loader-cue {
  0%, 100% { transform: translateY(47px) rotate(-18deg); }
  50% { transform: translateY(43px) rotate(-10deg); }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader-orbit,
  .app-loader-ball,
  .app-loader-cue {
    animation: none;
  }
}

/* Minimal loader: a flat, correctly centred spin instead of a fake 3D turn. */
.app-loader {
  gap: 16px;
}

.app-loader-ball {
  width: 64px;
  height: 64px;
  animation: app-loader-ball-spin 1.1s linear infinite;
  transform: none;
}

.app-loader-ball::before {
  inset: 7px;
  border-color: rgba(245, 231, 181, 0.36);
  border-right-color: transparent;
  transform: rotate(-32deg);
}

.app-loader > span {
  color: #c8d8cf;
  font-size: 10px;
  letter-spacing: 0.2em;
}

@keyframes app-loader-ball-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader-ball {
    animation: none !important;
  }
}

.player-profile-viewport {
  width: min(100%, 460px);
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px calc(20px + env(safe-area-inset-bottom, 0px));
}

.player-profile-header {
  min-height: 48px;
  display: grid;
  grid-template-columns: 96px 1fr 20px;
  align-items: center;
  gap: 8px;
}

.player-profile-back-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px 0 9px;
  border: 1px solid rgba(226, 194, 117, 0.38);
  border-radius: 14px;
  color: #e9c878;
  background: linear-gradient(145deg, rgba(34, 51, 41, 0.9), rgba(7, 19, 13, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.player-profile-back-btn:active {
  transform: scale(0.97);
}

.player-profile-back-btn svg {
  width: 17px;
  height: 17px;
}

.player-profile-kicker {
  justify-self: center;
  color: #dce9e2;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.player-profile-online-mark {
  width: 8px;
  height: 8px;
  justify-self: end;
  border-radius: 50%;
  background: #4ee0ae;
  box-shadow: 0 0 13px rgba(78, 224, 174, 0.86);
}

.player-profile-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(178, 210, 191, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(228, 192, 117, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(21, 46, 33, 0.94), rgba(6, 19, 13, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 30px rgba(0, 0, 0, 0.24);
}

.player-profile-identity::after {
  content: '';
  position: absolute;
  right: -26px;
  bottom: -38px;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(226, 194, 117, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(226, 194, 117, 0.025), 0 0 0 42px rgba(226, 194, 117, 0.02);
  pointer-events: none;
}

.player-profile-avatar {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #e2c275;
  border-radius: 24px;
  color: #112419;
  background:
    radial-gradient(circle at 30% 26%, #fff5bf 0 7%, #eec858 33%, #a66a1f 72%, #4b2a08 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.54);
  font-family: 'Outfit', sans-serif;
  font-size: 29px;
  font-weight: 900;
}

.player-profile-avatar.has-photo {
  color: transparent;
}

.player-profile-name-block {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.player-profile-name-block h2 {
  margin: 0;
  overflow: hidden;
  color: #f6fbf8;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(23px, 6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile-level-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #9db9aa;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.player-profile-level-line strong {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 8px;
  color: #102319;
  background: linear-gradient(135deg, #fff0ae, #dbaa43);
  font-size: 14px;
  text-align: center;
}

.player-profile-xp-card,
.player-profile-details {
  border: 1px solid rgba(179, 210, 192, 0.14);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 35, 25, 0.84), rgba(5, 16, 11, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-profile-xp-card {
  padding: 14px 15px 13px;
}

.player-profile-xp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #9eb9aa;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.player-profile-xp-head strong {
  color: #f2d786;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.player-profile-xp-track {
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
}

.player-profile-xp-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c18d31, #fce79b 55%, #e5bd5c);
  box-shadow: 0 0 14px rgba(247, 209, 113, 0.55);
  transition: width 0.35s ease;
}

.player-profile-xp-card p {
  margin: 8px 0 0;
  color: #799789;
  font-size: 11px;
  text-align: right;
}

.player-profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.player-profile-stat {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 13px;
  border: 1px solid rgba(179, 210, 192, 0.12);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(17, 39, 28, 0.86), rgba(5, 15, 10, 0.86));
  box-sizing: border-box;
}

.player-profile-stat span,
.player-profile-detail span {
  color: #86a596;
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.115em;
}

.player-profile-stat strong {
  color: #f2f8f4;
  font-family: 'Outfit', sans-serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.player-profile-stat.accent {
  border-color: rgba(226, 194, 117, 0.28);
  background: linear-gradient(145deg, rgba(91, 69, 25, 0.32), rgba(11, 25, 16, 0.9));
}

.player-profile-stat.accent strong {
  color: #f0cf75;
}

.player-profile-details {
  overflow: hidden;
}

.player-profile-detail {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(179, 210, 192, 0.1);
}

.player-profile-detail:last-child {
  border-bottom: 0;
}

.player-profile-detail strong {
  max-width: 63%;
  overflow: hidden;
  color: #eaf4ee;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile-detail.cooldown strong {
  color: #f0cf75;
}

.menu-user-pill[role='button'],
.hud-bar {
  -webkit-tap-highlight-color: transparent;
}

.menu-user-pill[role='button'] {
  cursor: pointer;
}

.menu-user-pill[role='button']:active,
.hud-bar:active {
  transform: scale(0.985);
}

.hud-bar {
  cursor: pointer;
}

.hud-bar .hud-exit-btn {
  cursor: pointer;
}

.app.profile-open .power-meter,
.app.profile-open .turn-flash {
  display: none !important;
}

/* Locale packs can opt into RTL (for example Arabic) without changing the
   game canvas or its touch controls. Text-centric screens follow reading
   direction while score values retain their natural number order. */
html[dir='rtl'] .menu-screen,
html[dir='rtl'] .matchmaking-overlay,
html[dir='rtl'] .leaderboard-screen,
html[dir='rtl'] .shop-screen,
html[dir='rtl'] .player-profile-screen,
html[dir='rtl'] .result-modal {
  direction: rtl;
}

html[dir='rtl'] .menu-user-details,
html[dir='rtl'] .matchmaking-card,
html[dir='rtl'] .arsenal-cue-info,
html[dir='rtl'] .player-profile-name-block,
html[dir='rtl'] .player-profile-xp-card,
html[dir='rtl'] .player-profile-detail {
  text-align: right;
}

html[dir='rtl'] .player-profile-detail strong,
html[dir='rtl'] .arsenal-balance,
html[dir='rtl'] .menu-currency-pill {
  direction: ltr;
}

@media (max-height: 690px) {
  .player-profile-viewport {
    gap: 9px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .player-profile-identity {
    padding: 13px;
    border-radius: 20px;
  }

  .player-profile-avatar {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 20px;
    font-size: 24px;
  }

  .player-profile-xp-card {
    padding: 11px 13px;
  }

  .player-profile-stat {
    min-height: 60px;
  }

  .player-profile-detail {
    min-height: 46px;
  }
}

/* ==========================================================================
   SETTINGS MODAL & TOGGLES
   ========================================================================== */
.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 10, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.settings-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.settings-panel {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #16241e 0%, #0d1713 100%);
  border: 1px solid rgba(226, 194, 117, 0.3);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-header h2 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f5e4b8;
}

.settings-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2c275;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.settings-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
}

.settings-close-btn svg {
  width: 18px;
  height: 18px;
}

.settings-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
}

.settings-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-item-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #edf5ef;
}

.settings-tag-exp {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(226, 194, 117, 0.18);
  color: #e2c275;
  border: 1px solid rgba(226, 194, 117, 0.35);
}

.settings-item-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #9bb1a4;
}

.settings-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle-slider {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.settings-toggle-slider::before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.settings-toggle input:checked + .settings-toggle-slider {
  background-color: #e2c275;
  border-color: #e2c275;
}

.settings-toggle input:checked + .settings-toggle-slider::before {
  transform: translateX(22px);
  background-color: #0d1713;
}

/* ==========================================================================
   DISCORD MOBILE STYLE PLAYER PROFILE (FULL-SCREEN VIEW)
   ========================================================================== */
.player-profile-screen {
  position: fixed;
  inset: 0;
  z-index: 1100;
  width: 100vw !important;
  height: 100vh !important;
  box-sizing: border-box;
  background: #070f0c !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-profile-screen.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.player-profile-viewport {
  width: 100% !important;
  max-width: 500px !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #13221b 0%, #0d1713 100%) !important;
  border-left: 1px solid rgba(226, 194, 117, 0.15) !important;
  border-right: 1px solid rgba(226, 194, 117, 0.15) !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

.dc-profile-banner {
  position: relative;
  height: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1f3b2d 0%, #0f241a 50%, #291c13 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(226, 194, 117, 0.2);
}

.dc-profile-back-btn {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 14px));
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(6, 16, 12, 0.75);
  border: 1px solid rgba(226, 194, 117, 0.35);
  border-radius: 20px;
  color: #f5e4b8;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 10;
}

.dc-profile-back-btn:hover {
  background: rgba(6, 16, 12, 0.95);
  transform: scale(1.04);
}

.dc-profile-back-btn svg {
  width: 15px;
  height: 15px;
}

.dc-profile-content {
  padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dc-avatar-row {
  position: relative;
  margin-top: -42px;
  margin-bottom: 2px;
  display: flex;
  align-items: flex-end;
  z-index: 5;
}

.dc-avatar-container {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #0d1713;
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.dc-avatar-main {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  border: 2.5px solid #e2c275 !important;
  background-color: #16241e !important;
  color: #f5e4b8 !important;
  font-size: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.dc-online-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #2ea043;
  border: 3px solid #0d1713;
  box-shadow: 0 0 8px rgba(46, 160, 67, 0.6);
}

.dc-identity-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dc-profile-title {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #edf5ef;
  letter-spacing: -0.01em;
}

.dc-profile-username {
  font-size: 13px;
  color: #86a596;
  font-weight: 500;
}

.dc-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.dc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dc-badge-lvl {
  background: rgba(88, 166, 255, 0.15);
  color: #58a6ff;
  border: 1px solid rgba(88, 166, 255, 0.3);
}

.dc-badge-rank {
  background: rgba(226, 194, 117, 0.15);
  color: #e2c275;
  border: 1px solid rgba(226, 194, 117, 0.3);
}

.dc-action-row {
  margin-top: 2px;
}

.dc-edit-profile-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: rgba(226, 194, 117, 0.12);
  border: 1px solid rgba(226, 194, 117, 0.35);
  border-radius: 14px;
  color: #f5e4b8;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.dc-edit-profile-btn:hover {
  background: rgba(226, 194, 117, 0.22);
  border-color: rgba(226, 194, 117, 0.5);
  transform: translateY(-1px);
}

.dc-edit-profile-btn svg {
  width: 15px;
  height: 15px;
}

.dc-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dc-card-title {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #86a596;
}

.dc-card-bio {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #edf5ef;
  white-space: pre-wrap;
  word-break: break-word;
}

.dc-card-bio.empty {
  color: #657e71;
  font-style: italic;
}

.dc-member-since-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #edf5ef;
  font-weight: 500;
}

.dc-member-since-row svg {
  width: 16px;
  height: 16px;
  color: #86a596;
}

.edit-profile-label {
  font-size: 13px;
  font-weight: 700;
  color: #e2c275;
}

.edit-profile-textarea {
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  resize: none;
}

.edit-profile-textarea:focus {
  border-color: #e2c275;
}

/* ========================================================================
   SEASON TABLE LEADERBOARD
   The old podium was a generic card stack.  This screen deliberately uses
   the game's own table language: real WebGL balls roll over the felt while
   the UI only supplies labels and accessible hit targets.
   ======================================================================== */
.leaderboard-screen {
  position: absolute !important;
  inset: 0 !important;
  z-index: 34 !important;
  display: block !important;
  width: 100% !important;
  min-height: 100% !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  color: #eff5f0;
  background:
    radial-gradient(circle at 15% 4%, rgba(225, 182, 85, .15), transparent 24rem),
    radial-gradient(circle at 94% 72%, rgba(42, 115, 83, .2), transparent 28rem),
    linear-gradient(180deg, #0c1712 0%, #07100c 56%, #040806 100%) !important;
}

.leaderboard-screen.visible {
  display: block !important;
}

.season-board-viewport {
  width: min(100%, 490px);
  min-height: 100%;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(22px + env(safe-area-inset-bottom, 0px));
}

.season-board-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
}

.season-board-header .leaderboard-back-btn {
  min-height: 37px !important;
  padding: 0 10px 0 7px !important;
  border-color: rgba(221, 234, 224, .18) !important;
  color: #dfece3 !important;
  background: rgba(255, 255, 255, .045) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .07) !important;
}

.season-board-header .leaderboard-back-btn svg { width: 18px; height: 18px; }
.season-board-heading { min-width: 0; text-align: center; }
.season-board-heading > span {
  display: block;
  margin-bottom: 2px;
  color: #9cb4a2;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.season-board-heading h2 {
  margin: 0;
  overflow: hidden;
  color: #f4f8f4;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-number-badge {
  display: grid;
  width: 38px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(234, 202, 116, .45);
  border-radius: 9px;
  color: #f4d887;
  background: linear-gradient(145deg, rgba(184, 132, 36, .24), rgba(38, 29, 13, .35));
  box-shadow: inset 0 1px rgba(255, 255, 255, .09);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
}

.season-board-status {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 29px;
  margin: 7px 5px 10px;
  color: #a8bdaf;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}
.season-board-status strong { color: #edd17b; font-size: 10px; font-weight: 900; }
.season-board-status-divider { width: 3px; height: 3px; border-radius: 50%; background: #567062; }

.season-table-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.42;
  min-height: 228px;
  overflow: hidden;
  border: 10px solid #2d2119;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(71, 145, 103, .28), transparent 48%),
    linear-gradient(145deg, #174b38, #0d2d22 68%, #091d17);
  box-shadow:
    inset 0 0 0 1px rgba(224, 181, 104, .28),
    inset 0 0 38px rgba(0, 0, 0, .38),
    0 15px 30px rgba(0, 0, 0, .37);
}

.season-table-stage::before {
  position: absolute;
  z-index: 3;
  inset: 8px;
  border: 1px solid rgba(221, 238, 225, .1);
  border-radius: 14px;
  content: '';
  pointer-events: none;
}

.leaderboard-3d-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}
.leaderboard-3d-canvas canvas { display: block; width: 100%; height: 100%; }

.season-table-route {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.season-table-route path {
  fill: none;
  stroke: rgba(228, 242, 231, .3);
  stroke-width: .42;
  stroke-dasharray: 2.5 6.7;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2));
}

.leaderboard-ball-markers { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.leaderboard-ball-marker {
  position: absolute;
  display: grid;
  width: 72px;
  height: 76px;
  padding: 0;
  border: 0;
  place-items: start center;
  color: #edf6ef;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -38%);
  -webkit-tap-highlight-color: transparent;
}
.leaderboard-ball-marker::before {
  position: absolute;
  top: 3px;
  width: 49px;
  height: 49px;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow: 0 0 0 0 transparent;
  content: '';
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.leaderboard-ball-marker:hover::before,
.leaderboard-ball-marker:focus-visible::before,
.leaderboard-ball-marker.selected::before {
  border-color: rgba(246, 210, 105, .92);
  box-shadow: 0 0 0 4px rgba(245, 202, 90, .17), 0 0 14px rgba(246, 206, 104, .28);
  transform: scale(1.1);
}
.leaderboard-ball-marker:focus-visible { outline: none; }
.leaderboard-ball-marker-label {
  display: none;
}
.leaderboard-ball-marker.self .leaderboard-ball-marker-label { color: #ffe9a1; }
.season-table-caption {
  display: none;
}

.leaderboard-focus-card {
  display: grid;
  grid-template-columns: auto 42px minmax(0, 1fr) auto 16px;
  gap: 9px;
  align-items: center;
  width: calc(100% - 16px);
  min-height: 57px;
  margin: -9px auto 0;
  padding: 10px 11px;
  border: 1px solid rgba(225, 238, 228, .18);
  border-radius: 15px;
  color: #edf6ef;
  background: linear-gradient(120deg, rgba(41, 73, 56, .98), rgba(14, 30, 22, .98));
  box-shadow: 0 12px 24px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .07);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.leaderboard-focus-card:not(:disabled):hover { border-color: rgba(237, 199, 94, .52); background: linear-gradient(120deg, rgba(50, 84, 63, .98), rgba(16, 36, 26, .98)); }
.leaderboard-focus-card:not(:disabled):active { transform: translateY(1px); }
.leaderboard-focus-card:disabled { cursor: default; opacity: .72; }
.leaderboard-focus-rank { color: #f0cf73; font-size: 16px; font-weight: 950; letter-spacing: -.04em; }
.leaderboard-focus-avatar {
  display: grid;
  width: 41px;
  height: 41px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 50%;
  color: #f2f7f3;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.34), transparent 25%), linear-gradient(145deg, #557765, #254336 72%, #15281f);
  background-position: center;
  background-size: cover;
  font-size: 12px;
  font-weight: 900;
}
.leaderboard-focus-avatar.has-photo { color: transparent; text-indent: -9999px; }
.leaderboard-focus-copy { min-width: 0; }
.leaderboard-focus-copy strong { display: block; overflow: hidden; color: #f6faf6; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-focus-copy small { display: none; }
.leaderboard-focus-score { min-width: 32px; text-align: right; }
.leaderboard-focus-score strong { display: block; color: #f0cf74; font-size: 13px; font-variant-numeric: tabular-nums; }
.leaderboard-focus-score small { display: none; }
.leaderboard-focus-arrow { width: 15px; height: 15px; color: #a7bbad; }

.season-standings-section { margin-top: 14px; }
.season-standings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 7px;
  color: #9fb4a6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.season-standings-head span:last-child { color: #d6bd6d; }
.season-standings-list { display: grid; overflow: hidden; border: 1px solid rgba(220, 236, 225, .12); border-radius: 15px; background: rgba(13, 28, 20, .66); }
.season-standings-row {
  display: grid;
  grid-template-columns: 31px 37px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  border: 0;
  border-top: 1px solid rgba(224, 241, 229, .075);
  color: #edf6ef;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.season-standings-row:first-child { border-top: 0; }
.season-standings-row:hover { background: rgba(255, 255, 255, .035); }
.season-standings-row:focus-visible { position: relative; z-index: 1; outline: 1px solid rgba(240, 203, 102, .72); outline-offset: -1px; }
.season-standings-row.selected { background: linear-gradient(90deg, rgba(218, 170, 55, .15), rgba(255, 255, 255, .035)); }
.season-standings-row.self { box-shadow: inset 3px 0 #e4bd5d; }
.season-row-rank { color: #a9bcae; font-size: 11px; font-weight: 950; text-align: center; }
.season-standings-row.rank-top .season-row-rank { color: #efd078; }
.season-row-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #eff7f1;
  background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.32), transparent 25%), linear-gradient(145deg, #597666, #2d4c3d 72%, #182c22);
  background-position: center;
  background-size: cover;
  font-size: 11px;
  font-weight: 900;
}
.season-row-avatar.has-photo { color: transparent; text-indent: -9999px; }
.season-row-player { min-width: 0; }
.season-row-player strong { display: block; overflow: hidden; color: #edf6ef; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.season-row-player small { display: none; }
.season-row-score { color: #e7c96e; font-size: 12px; font-weight: 950; font-variant-numeric: tabular-nums; text-align: right; }
.leaderboard-empty { margin: 10px 0 0; color: #b8c8bd; background: rgba(16, 32, 24, .6); }

html[dir='rtl'] .season-board-header .leaderboard-back-btn svg { transform: rotate(180deg); }
html[dir='rtl'] .season-standings-row { text-align: right; }
html[dir='rtl'] .season-row-score { text-align: left; }

@media (min-width: 680px) {
  .season-board-viewport { min-height: 760px; margin-top: 16px; margin-bottom: 16px; border: 1px solid rgba(226, 239, 229, .09); border-radius: 27px; background: rgba(6, 14, 10, .22); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
  .season-table-stage { min-height: 330px; }
}


/* ==========================================================================
/* ==========================================================================
/* ==========================================================================
/* ==========================================================================
/* ==========================================================================
/* ==========================================================================
/* ==========================================================================
/* ==========================================================================
/* ==========================================================================
/* ==========================================================================
   LEADERBOARD SEASON BREAK DESIGN (PURE GREEN BILLIARD FELT FLOOR)
   ========================================================================== */
.break-body {
  background:
    radial-gradient(circle at 50% -12%, rgba(63, 93, 76, .34), transparent 34rem),
    linear-gradient(180deg, #141a17, #090c0a 82%) !important;
}

.break-shell {
  width: min(100%, 480px) !important;
  min-height: 100vh !important;
  margin: 0 auto !important;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

.break-top {
  display: grid !important;
  grid-template-columns: 38px 1fr 38px !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 42px !important;
}

.break-back,
.break-info {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  border: 1px solid rgba(235, 241, 236, .16) !important;
  border-radius: 12px !important;
  color: #deebe0 !important;
  background: rgba(255, 255, 255, .05) !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

.break-back:active,
.break-info:active {
  transform: scale(0.95) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Hide any text label injected by JS into back button */
.break-back span,
.break-back .arsenal-back-label,
#leaderboard-back-btn span,
#leaderboard-back-btn .arsenal-back-label {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
}

.break-back svg,
.break-info svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

.break-headline {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.break-headline strong {
  display: block !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #f0f6f1 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

.break-headline span {
  display: block !important;
  margin-top: 2px !important;
  color: #e2c275 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* Clean subheader pill - No grid conflict */
.break-season-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 14px 0 10px 0 !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.break-season-line::before,
.break-season-line::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

.break-line-label {
  color: #9eb4a5 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.break-line-badge {
  color: #e9c96f !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
}

.break-line-status {
  color: #86a596 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* Pool Table Stage - Pure Green Billiard Felt Surface Without Wooden Rails */
.break-table,
.season-table-stage {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 0.85 !important;
  min-height: 340px !important;
  margin: 6px 0 14px 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  border: 1px solid rgba(226, 194, 117, 0.25) !important;
  background:
    radial-gradient(ellipse at 50% 40%, #1c654b 0%, #114835 55%, #0a2f22 100%) !important;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.5),
    0 12px 30px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
}

.break-table::before,
.break-table::after {
  display: none !important;
  content: none !important;
}

.leaderboard-table-canvas {
  display: none !important;
}

.break-table-caption {
  display: none !important;
}

.break-route {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: .75 !important;
  pointer-events: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.break-route path {
  stroke: rgba(225, 238, 226, 0.38) !important;
  stroke-dasharray: 3 7 !important;
  stroke-linecap: round !important;
  stroke-width: 0.55 !important;
}

/* Rank 8-Balls on Table */
.rank-ball {
  position: absolute !important;
  z-index: 5 !important;
  left: calc(var(--x) * 1%) !important;
  top: calc(var(--y) * 1%) !important;
  display: grid !important;
  width: var(--size, 52px) !important;
  height: var(--size, 52px) !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #1e231f !important;
  cursor: pointer !important;
  transform: translate(-50%, -50%) !important;
  transition: left .84s cubic-bezier(.2,.8,.22,1), top .84s cubic-bezier(.2,.8,.22,1), transform .2s ease, filter .2s ease !important;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.85) 0 5%, rgba(255,255,255,.24) 13%, transparent 26%),
    radial-gradient(circle at 61% 78%, rgba(0,0,0,.32), transparent 42%),
    var(--ball, #cfb045) !important;
  box-shadow: inset -7px -8px 11px rgba(0,0,0,.3), inset 2px 2px 2px rgba(255,255,255,.34), 0 7px 11px rgba(0,0,0,.38) !important;
}

.rank-ball::after {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  width: 42% !important;
  height: 42% !important;
  place-items: center !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  border-radius: 50% !important;
  color: #1e2420 !important;
  background: #f4f0e5 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.18) !important;
  content: attr(data-rank) !important;
  font-size: calc(var(--size, 52px) * .19) !important;
  font-weight: 1000 !important;
}

.rank-ball .ball-name {
  position: absolute !important;
  left: 50% !important;
  top: calc(100% + 5px) !important;
  min-width: max-content !important;
  color: rgba(248, 253, 249, 0.95) !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85) !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
}

.rank-ball:hover,
.rank-ball.selected {
  filter: brightness(1.15) !important;
  outline: none !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
}

.rank-ball.selected {
  box-shadow: 0 0 0 3px rgba(240,205,104,.86), 0 0 0 7px rgba(240,205,104,.16), inset -7px -8px 11px rgba(0,0,0,.3), inset 2px 2px 2px rgba(255,255,255,.34), 0 7px 11px rgba(0,0,0,.38) !important;
}

.rank-ball.self {
  --size: 58px !important;
  z-index: 7 !important;
}

.rank-ball.self .ball-name {
  color: #ffeca6 !important;
  font-size: 10px !important;
}

/* Selected Player Dock */
.break-dock {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 64px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(226, 194, 117, 0.35) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(29, 55, 43, 0.95), rgba(13, 26, 20, 0.95)) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35) !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
  box-sizing: border-box !important;
  margin-bottom: 12px !important;
}

.break-dock:hover {
  border-color: rgba(226, 194, 117, 0.6) !important;
  transform: translateY(-1px) !important;
}

.dock-ball {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  border: 2px solid rgba(247, 211, 111, 0.8) !important;
  border-radius: 50% !important;
  color: #20231e !important;
  background: radial-gradient(circle at 30% 21%, rgba(255,255,255,.85), transparent 21%), radial-gradient(circle at 66% 79%, rgba(0,0,0,.23), transparent 42%), #d5b140 !important;
  box-shadow: inset -5px -5px 8px rgba(0,0,0,.24) !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}

.dock-copy {
  min-width: 0 !important;
}

.dock-copy strong {
  display: block !important;
  overflow: hidden !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #f0f6f1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.dock-copy span {
  display: block !important;
  margin-top: 3px !important;
  color: #9eb4a5 !important;
  font-size: 11px !important;
}

.dock-score {
  color: #f1d278 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-align: right !important;
}

.dock-score small {
  display: block !important;
  margin-top: 2px !important;
  color: #98ad9f !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
}

/* Action Toggle Button */
.break-action.primary {
  width: 100% !important;
  height: 46px !important;
  border: 1px solid rgba(226, 194, 117, 0.45) !important;
  border-radius: 14px !important;
  color: #fce8ad !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  background: linear-gradient(180deg, rgba(226, 194, 117, 0.18), rgba(160, 125, 45, 0.22)) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.12) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.break-action.primary:active {
  transform: translateY(1px) !important;
}

/* Full Leaderboard Sheet */
.break-sheet {
  max-height: 0;
  overflow: hidden;
  margin-top: 10px !important;
  border: 1px solid transparent;
  border-radius: 16px !important;
  background: rgba(13, 23, 18, 0.9) !important;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.22s ease, border-color 0.22s ease !important;
  box-sizing: border-box !important;
}

.break-sheet.open {
  max-height: 380px !important;
  border-color: rgba(225, 239, 228, 0.12) !important;
  opacity: 1 !important;
}

.break-sheet-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 14px 8px !important;
  color: #a5baaa !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(225, 239, 228, 0.08) !important;
}

.break-sheet-head span:last-child {
  color: #e9cb76 !important;
}

.break-sheet-row {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  border-top: 1px solid rgba(229, 241, 230, 0.07) !important;
  box-sizing: border-box !important;
}

.break-sheet-row b:first-child {
  color: #9db3a4 !important;
  font-size: 12px !important;
  text-align: center !important;
}

.break-sheet-row strong {
  display: block !important;
  font-size: 13px !important;
  color: #f0f6f1 !important;
}

.break-sheet-row small {
  display: block !important;
  margin-top: 2px !important;
  color: #84998b !important;
  font-size: 10px !important;
}

.break-sheet-row b:last-child {
  color: #d6e4da !important;
  font-size: 12px !important;
}

.break-sheet-row.me {
  background: rgba(222, 174, 54, 0.12) !important;
  border-radius: 10px !important;
}

.break-sheet-row.me b:last-child {
  color: #efd277 !important;
}

@media (min-width: 680px) {
  .break-shell {
    min-height: 720px !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    border: 1px solid rgba(236, 242, 232, 0.08) !important;
    border-radius: 28px !important;
    background: rgba(7, 13, 10, 0.32) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24) !important;
  }
}
