

:root {
  
  --pk-bg: #010a13;
  --pk-panel: #0a1e2c;
  --pk-panel-2: #0e2733;
  --pk-panel-3: #123245;
  --pk-line: rgba(200, 170, 110, 0.22);
  --pk-line-2: rgba(200, 170, 110, 0.45);
  --pk-line-3: rgba(200, 170, 110, 0.12);
  --pk-gold-1: #f0e6d2;
  --pk-gold-2: #c8aa6e;
  --pk-gold-3: #785a28;
  --pk-gold-deep: #a8863f;
  --pk-aqua: #0ac8b9;
  --pk-aqua-2: #0397ab;
  --pk-aqua-3: #005a82;
  --pk-aqua-soft: rgba(10, 200, 185, 0.14);
  --pk-text: #a09b8c;
  --pk-text-2: #cdbe91;
  --pk-text-muted: #8a8577;
  --pk-danger: #e08080;

  
  --pk-surface-1: rgba(10, 30, 44, 0.96); 
  --pk-surface-2: rgba(6, 23, 37, 0.96); 
  --pk-surface-3: rgba(14, 39, 51, 0.85); 
  --pk-surface-hover-1: #123245; 
  --pk-surface-hover-2: #0a1e2c; 
  --pk-glass-bar-1: rgba(1, 10, 19, 0.94); 
  --pk-glass-bar-2: rgba(1, 10, 19, 0.72); 
  --pk-glass-tint: rgba(1, 10, 19, 0.55); 
  --pk-glass-tint-strong: rgba(1, 10, 19, 0.72);
  --pk-overlay: rgba(1, 10, 19, 0.78); 
  --pk-crop-mask: rgba(1, 10, 19, 0.62); 
  --pk-input-bg: rgba(1, 10, 19, 0.65); 
  --pk-scrim: rgba(1, 10, 19, 0.35); 
  --pk-modal-backdrop: #010a13; 
  
  --pk-media-scrim-1: rgba(1, 10, 19, 0.92);
  --pk-media-scrim-2: rgba(1, 10, 19, 0.35);
  --pk-media-scrim-3: rgba(1, 10, 19, 0.08);
  --pk-media-chip: rgba(3, 9, 16, 0.6); 

  --pk-profile-scrim: rgba(0, 0, 0, 0.65); 
  --pk-overlay-soft: rgba(0, 0, 0, 0.5); 
  --pk-overlay-faint: rgba(0, 0, 0, 0.25); 
  --pk-canvas-tint: rgba(0, 0, 0, 0.189); 
  --pk-logo-invert: 1; 
  --pk-text-halo: rgba(0, 0, 0, 0.85); 
  --pk-text-halo-soft: rgba(0, 0, 0, 0.5);

  --pk-shadow-color: #000; 
  --pk-on-gold: #1a1408; 
  --pk-on-aqua: #03151b; 
  --pk-lobby-bg: #061725; 
  --pk-page-deep: #030d19; 

  
  --pk-reply-bg: rgba(19, 53, 70, 0.72); 
  --pk-reply-bg-hover: rgba(19, 53, 70, 0.95);
  --pk-reply-border: rgba(200, 170, 110, 0.2);
  --pk-reply-bar-bg: rgba(1, 10, 19, 0.94); 
  --pk-reply-text: #d3c49a; 
  --pk-reply-rail: #0ac8b9; 
  --pk-reply-rail-mine: #c8aa6e; 

  
  --pk-ok: #0b9b5e;
  --pk-ok-2: #22c55e;

  
  --pk-grad-gold: linear-gradient(
    135deg,
    var(--pk-gold-2),
    var(--pk-gold-deep)
  );
  --pk-grad-gold-hover: linear-gradient(135deg, #d9bd82, var(--pk-gold-2));
  --pk-grad-aqua: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-2));
  --pk-grad-aqua-3stop: linear-gradient(
    135deg,
    var(--pk-aqua),
    var(--pk-aqua-2) 55%,
    var(--pk-aqua-3)
  );
  --pk-grad-aqua-hover: linear-gradient(135deg, #3bdccf, var(--pk-aqua));
  --pk-aqua-hairline: rgba(205, 250, 250, 0.35);

  --pk-grad-panel: linear-gradient(
    160deg,
    var(--pk-surface-3),
    var(--pk-surface-2)
  );
  --pk-grad-panel-lit: linear-gradient(
    160deg,
    rgba(200, 170, 110, 0.16),
    var(--pk-surface-2)
  );
  --pk-grad-panel-hover: linear-gradient(
    160deg,
    var(--pk-surface-hover-1),
    var(--pk-surface-hover-2)
  );
  --pk-grad-chrome: linear-gradient(
    180deg,
    var(--pk-surface-1),
    var(--pk-glass-bar-2)
  );
  --pk-grad-chrome-soft: linear-gradient(
    180deg,
    var(--pk-glass-bar-1),
    var(--pk-glass-bar-2)
  );
  --pk-grad-page: linear-gradient(
    180deg,
    var(--pk-bg) 0%,
    var(--pk-lobby-bg) 46%,
    var(--pk-page-deep) 100%
  );

  
  --pk-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --pk-shadow-md: 0 6px 14px -6px rgba(0, 0, 0, 0.6);
  --pk-shadow-lg: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  --pk-shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.8);
  --pk-shadow-card: 0 12px 26px -20px rgba(0, 0, 0, 1);
  --pk-glow-aqua: 0 0 20px -10px rgba(10, 200, 185, 0.45);

  
  --primary: var(--pk-aqua-2);
  --primary-dark: var(--pk-aqua-3);
  --secondary: var(--pk-text-2);
  --secondary-dark: var(--pk-text);
  --success: var(--pk-ok);
  --success-dark: #0a7f4e;
  --danger: #b91c1c;
  --danger-dark: #991b1b;
  --warning: #b45309;
  --warning-dark: #92400e;
  --info: var(--pk-aqua-2);
  --info-dark: var(--pk-aqua-3);
  --light: #f8fafc;
  --dark: var(--pk-gold-1);
  --border-color: var(--pk-line);
  --border-light: var(--pk-line-3);
  --text-muted: var(--pk-text);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 18px 34px -14px rgba(0, 0, 0, 0.85);
  --transition: all 0.15s ease;

  
  --lobby-bg: var(--pk-lobby-bg);
  --lobby-surface: var(--pk-panel);
  --lobby-surface-2: var(--pk-panel-2);
  --lobby-accent: var(--pk-aqua);
  --lobby-accent-light: rgba(10, 200, 185, 0.14);

  
  --chui-bg: var(--pk-lobby-bg);

  --chui-surface: var(--pk-panel);
  --chui-surface-alt: var(--pk-panel-2);
  --chui-border: var(--pk-line);
  --chui-border-light: var(--pk-line-3);
  --chui-text: var(--pk-gold-1);
  --chui-text-secondary: var(--pk-text-2);
  --chui-text-muted: var(--pk-text-muted);
  --chui-accent: var(--pk-aqua-2);
  --chui-accent-light: rgba(10, 200, 185, 0.14);
  --chui-accent-soft: rgba(10, 200, 185, 0.28);
  --chui-danger: var(--pk-danger);
  --chui-danger-light: rgba(224, 128, 128, 0.14);
  --chui-danger-border: rgba(224, 128, 128, 0.5);
  --chui-success: var(--pk-ok-2);
  --chui-success-light: rgba(34, 197, 94, 0.14);
  --chui-warning: #f59e0b;
  --chui-warning-light: rgba(245, 158, 11, 0.14);
  --chui-warning-border: rgba(245, 158, 11, 0.4);
  --chui-shadow-sm: var(--pk-shadow-sm);
  --chui-shadow: var(--pk-shadow-sm);
  --chui-shadow-md: var(--pk-shadow-md);
  --chui-shadow-lg: var(--pk-shadow-lg);
  --chui-shadow-xl: var(--pk-shadow-xl);
  --chui-radius-sm: 8px;
  --chui-radius: 12px;
  --chui-radius-lg: 16px;
  --chui-radius-xl: 20px;
  --chui-radius-2xl: 24px;
  --chui-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --chui-transition-smooth: 0.3s cubic-bezier(0.32, 0.72, 0, 1);

  
  --nav-height: 68px;
  
  --topbar-height: calc(48px + env(safe-area-inset-top, 0px));
  --fab-size: 58px;
  --fab-accent: var(--pk-aqua);
}



@font-face {
  font-family: isans;
  src: url(assets/fonts/isans.ttf);
  font-display: swap;
}
@font-face {
  font-family: btitr;
  src: url(assets/fonts/btitr.ttf);
  font-display: swap;
}



*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  overflow: hidden;
  padding: 0 !important;
  margin: 0;
  background-color: var(--pk-bg);
  font-family:
    "Vazirmatn",
    "Segoe UI",
    Tahoma,
    system-ui,
    -apple-system,
    Roboto,
    "Helvetica Neue",
    sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 5px;
  color: var(--pk-text);
}


* {
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
}
*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background-color: var(--pk-gold-3);
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: var(--pk-gold-2);
}

#gamedisplay {
  touch-action: none;
  overflow: hidden;
  margin: 0 auto;
  display: block;
  max-height: 1200px;
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  opacity: 1;
  background: var(--pk-canvas-tint);
}


#gamedisplay > canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.ui_holder {
  background:
    radial-gradient(
      ellipse 60% 42% at 88% -6%,
      rgba(10, 200, 185, 0.14),
      transparent 62%
    ),
    radial-gradient(
      ellipse 55% 38% at 6% 14%,
      rgba(200, 170, 110, 0.12),
      transparent 62%
    ),
    var(--pk-grad-page);
  color: var(--pk-text);
  width: 100vw;
  height: 100vh;
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  direction: rtl;
  padding: 3px;
}

.ui_holder h1,
.ui_holder h2,
.ui_holder h3,
.ui_holder h4,
.ui_holder h5 {
  color: var(--pk-gold-1);
}

.ui_holder p,
.ui_holder sub,
.ui_holder hr {
  color: var(--pk-text);
}

.ui_holder hr {
  border: none;
  border-top: 1px solid var(--pk-line);
  width: 100%;
  max-width: 420px;
  margin: 10px 0;
  opacity: 0.8;
}

.ui_holder a {
  color: var(--pk-gold-2);
}

.ui_login > * {
  max-width: 800px;
  color: var(--pk-text);
}


.ui_login #logo {
  filter: invert(var(--pk-logo-invert, 1)) !important;
}

.ui_holder #logo,
.ui_holder #logo_verify {
  max-width: 200px;
  filter: drop-shadow(0 6px 22px rgba(10, 200, 185, 0.35));
}

.fit-single-line {
  padding: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  text-align: center;
  margin: 10px 0;
}

.bringTop {
  z-index: 999999;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ui-page {
  display: none;
}
.ui-page.active {
  display: block;
}
.ui-page .ui_holder {
  display: flex;
}



#fullScreenBTN {
  width: 30px;
  height: 30px;
  background: var(--pk-grad-chrome);
  border: 1px solid var(--pk-line);
  color: var(--pk-gold-2);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border-top-right-radius: 0;
  right: 0px;
  top: 0px;
  position: fixed;
  z-index: 9999;
  font-size: 8pt;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
#fullScreenBTN:hover {
  color: var(--pk-gold-1);
  border-color: var(--pk-line-2);
}



.newbieTrainPage {
  width: 100vw;
  max-width: 1200px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.newbieTrainPage p {
  text-wrap: wrap;
  text-justify: distribute-all-lines;
}



.timer-digits {
  font-family: "Fira Mono", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--pk-gold-1);
  text-shadow: 0 0 12px rgba(10, 200, 185, 0.45);
  line-height: 1.2;
}



.ui_topMenu {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--topbar-height);
  
  z-index: 900;

  display: flex;
  align-items: center;
  
  justify-content: flex-start;
  gap: 8px;
  padding-inline: 10px;
  box-sizing: border-box;

  background: var(--pk-grad-chrome-soft);
  border-bottom: 1px solid var(--pk-line);
  
  color: var(--pk-gold-1);
  direction: rtl;
  
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.ui_topMenu::-webkit-scrollbar {
  display: none;
}


.ui_topMenu > .pk-themeSwitch {
  margin-inline-start: auto;
  flex-shrink: 0;
}


@media (max-width: 419px) {
  .ui_topMenu {
    gap: 6px;
    padding-inline: 8px;
  }
  #obtain_coin {
    padding: 0 10px;
    font-size: 12.5px;
  }
  
  .ui_topMenu .wheelTopBtn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .ui_topMenu .wheelTopBtn {
    padding: 0 9px;
    min-width: 34px;
  }
}


@media (max-width: 299px) {
  #obtain_coin {
    padding: 0 9px;
  }
  #obtain_coin .coin-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}


.ui_topMenu > img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}


:root:fullscreen .ui_topMenu,
:root:-webkit-full-screen .ui_topMenu {
  --topbar-height: 40px;
}



.ui_bottomNav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-height);
  background: var(--pk-grad-chrome);
  border-top: 1px solid var(--pk-line);
  box-shadow:
    0 -14px 30px -18px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(10, 200, 185, 0.1) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  direction: ltr; 
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.ui_bottomNav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pk-text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 4px 4px;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.1px;
}
.ui_bottomNav .nav-icon {
  font-size: 22px;
  line-height: 1;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.ui_bottomNav .nav-label {
  font-size: 10.5px;
  letter-spacing: -0.2px;
}
.ui_bottomNav .nav-item.active {
  color: var(--pk-gold-1);
}
.ui_bottomNav .nav-item.active .nav-icon {
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(10, 200, 185, 0.55));
}
.ui_bottomNav .nav-item.active::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 26px;
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pk-gold-2), var(--pk-aqua));
  box-shadow: 0 0 12px rgba(10, 200, 185, 0.7);
}
.ui_bottomNav .nav-item:active {
  transform: scale(0.94);
}


#ui_mainMenu {
  width: 100vw;
  background:
    radial-gradient(
      ellipse 60% 40% at 90% -5%,
      rgba(10, 200, 185, 0.16),
      transparent 62%
    ),
    radial-gradient(
      ellipse 55% 36% at 5% 12%,
      rgba(200, 170, 110, 0.13),
      transparent 62%
    ),
    var(--pk-grad-page);
  color: var(--pk-text);
}


.mainMenu-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 45% 26% at 50% 0%,
    rgba(10, 200, 185, 0.1),
    transparent 70%
  );
  z-index: 0;
}

.mainMenu-root {
  padding-bottom: calc(
    var(--nav-height) + env(safe-area-inset-bottom, 0)
  ) !important;
  overflow: hidden;
}

.mainMenu-content {
  position: absolute;
  inset: var(--topbar-height) 0
    calc(var(--nav-height) + env(safe-area-inset-bottom, 0)) 0;
  display: flex;
  overflow: hidden;
}

.mainSection {
  display: none;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  height: 100%;
  overflow: hidden;
  animation: section-fade 0.22s ease;
  position: relative;
}
.mainSection.active {
  display: flex;
  flex-direction: column;
}

@keyframes section-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.lobbies-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
}

.lobbies-header {
  padding: 14px 8px 10px;
  text-align: center;
  flex-shrink: 0;
}
.lobbies-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pk-gold-1);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.lobbies-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--pk-gold-2),
    transparent
  );
}
.lobbies-sub {
  font-size: 0.82rem;
  color: var(--pk-text);
  opacity: 0.85;
  margin: 0;
}

.lobbies-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 4px 90px; 
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
}


.lobby-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pk-grad-panel);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--pk-line);
  box-shadow: var(--pk-shadow-card);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
  position: relative;
}
.lobby-card::before {
  content: "";
  position: absolute;
  inset-inline: 14px;
  top: 0;
  height: 1px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 170, 110, 0.55),
    transparent
  );
}
.lobby-card:hover {
  transform: translateY(-2px);
  border-color: var(--pk-line-2);
  box-shadow: var(--pk-shadow-card), var(--pk-glow-aqua);
}
.lobby-card:active {
  transform: scale(0.985);
}

.lobby-card__gameIcon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(10, 200, 185, 0.12);
  border: 1px solid rgba(10, 200, 185, 0.28);
  color: var(--pk-text-2);
  flex-shrink: 0;
  overflow: hidden;
}


.lobby-card__gameIcon img.pk-game-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: none;
  background: none;
  object-fit: cover;
}


.lobby-card__badge img.pk-game-icon,
img.pk-game-icon.pk-game-icon--chip {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 26%;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
}
.lobby-card__badge img.pk-game-icon {
  margin-inline-end: 2px;
}

.gamePicker-item__icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(10, 200, 185, 0.3));
}
.gamePicker-item__icon img.pk-game-icon,
img.pk-game-icon.pk-game-icon--tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 18px -12px #000;
  filter: none;
}


.lobby-empty__icon img.pk-game-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(10, 200, 185, 0.35));
}


.ui_bottomNav .nav-icon img.pk-game-icon,
img.pk-game-icon.pk-game-icon--nav {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: transparent;
  box-shadow: 0 4px 10px -8px #000;
  object-fit: cover;
}
#ludoRollBtn .pk-game-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
}

.lobby-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--pk-panel-2);
  flex-shrink: 0;
  border: 2px solid rgba(200, 170, 110, 0.35);
  box-shadow: 0 0 0 3px rgba(10, 200, 185, 0.08);
}

.lobby-card__info {
  flex: 1;
  min-width: 0;
}
.lobby-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pk-gold-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 3px;
}
.lobby-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--pk-text);
}
.lobby-card__meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pk-gold-3);
}
.lobby-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(200, 170, 110, 0.12);
  border: 1px solid rgba(200, 170, 110, 0.2);
  color: var(--pk-text-2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.lobby-card__join {
  border: none;
  background: var(--pk-grad-gold);
  color: var(--pk-on-gold);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -8px rgba(200, 170, 110, 0.8);
  transition:
    background 0.15s,
    transform 0.15s;
}
.lobby-card__join:hover {
  background: var(--pk-grad-gold-hover);
}
.lobby-card__join:active {
  transform: scale(0.95);
}


.lobby-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--pk-text);
  padding: 60px 20px;
  gap: 8px;
}
.lobby-empty__icon {
  font-size: 48px;
  opacity: 0.7;
  filter: drop-shadow(0 0 18px rgba(10, 200, 185, 0.35));
}
.lobby-empty__title {
  font-weight: 700;
  color: var(--pk-text-2);
  margin: 4px 0 0;
}
.lobby-empty__hint {
  font-size: 0.82rem;
}


.fab {
  position: absolute;
  bottom: 70px;
  right: 18px;
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  background: var(--pk-grad-aqua-3stop);
  color: var(--pk-on-aqua);
  border: 1px solid var(--pk-aqua-hairline);
  cursor: pointer;
  font-size: 30px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 28px -10px rgba(3, 151, 171, 0.75),
    0 0 0 4px rgba(10, 200, 185, 0.08);
  z-index: 50;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 18px 32px -10px rgba(10, 200, 185, 0.9),
    0 0 0 6px rgba(10, 200, 185, 0.12);
}
.fab:active {
  transform: scale(0.93);
}
.fab-icon {
  line-height: 1;
  margin-top: -2px;
}


.gamePicker-content {
  width: min(92%, 460px);
  max-height: 86vh;
  padding: 20px 18px 18px;
  border-radius: 24px;
  overflow-y: auto;
  direction: rtl;
  color: var(--pk-text);
}
.gamePicker-title {
  margin: 0 0 2px;
  font-size: 1.1rem;
  text-align: center;
  color: var(--pk-gold-1);
}
.gamePicker-sub {
  margin: 0 0 16px;
  text-align: center;
  color: var(--pk-text);
  opacity: 0.85;
  font-size: 0.8rem;
}
.gamePicker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gamePicker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px 14px;
  background: var(--pk-grad-panel);
  border: 1px solid var(--pk-line);
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  color: var(--pk-text-2);
  transition:
    transform 0.15s,
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.gamePicker-item:hover {
  background: linear-gradient(
    160deg,
    rgba(10, 200, 185, 0.14),
    var(--pk-surface-hover-2)
  );
  border-color: rgba(10, 200, 185, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -14px rgba(10, 200, 185, 0.85);
  color: var(--pk-gold-1);
}
.gamePicker-item:active {
  transform: scale(0.97);
}
.gamePicker-item__icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(10, 200, 185, 0.3));
}
.gamePicker-item__title {
  font-weight: 700;
  font-size: 0.88rem;
}
.gamePicker-item__players {
  font-size: 0.7rem;
  color: var(--pk-text);
}




#GameCategories,
#GamesContainer {
  display: none !important;
}


#rotateDeviceAlert {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  background: var(--pk-bg);
  color: var(--pk-gold-1);
  border: none;
  font-family: "Vazirmatn", btitr, "Segoe UI", Tahoma, sans-serif;
  font-size: xx-large;
  z-index: 20000;
  text-align: center;
}
#UI {
  width: 100vw;
  height: 100vh;
  display: block;
}



.lobby-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  height: 100%;
  max-height: 100%;
  background: linear-gradient(
    180deg,
    var(--pk-lobby-bg) 0%,
    var(--pk-page-deep) 100%
  );
  border: 1px solid var(--pk-line);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--pk-shadow-xl);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  color: var(--pk-text);
  direction: rtl;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 480px) {
  .lobby-container {
    border-radius: 0;
    max-width: 100vw;
    box-shadow: none;
  }
}

.lobby-header {
  display: grid;
  
  grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(0, 1fr) auto;
  grid-template-areas: "lead title . actions";
  align-items: center;
  height: 56px;
  min-height: 56px;
  padding: 0 4px 0 10px;
  background: var(--lobby-surface);
  border-bottom: 1px solid var(--pk-line);
  column-gap: 6px;
  z-index: 5;
  flex-shrink: 0;
  
  --lobby-hit: 36px;
}


.lobby-header__lead {
  grid-area: lead;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.lobby-header__title {
  grid-area: title;
}
.lobby-header__back {
  grid-area: back;
}


.lobby-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}


.lobby-header__back {
  position: relative;
  margin-inline-start: 4px;
}
.lobby-header__back::before {
  content: "";
  position: absolute;
  inset-inline-start: -3px;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--pk-line);
}


.lobby-header__share,
.lobby-header__settings,
.lobby-header__status,
.lobby-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--lobby-hit);
  height: var(--lobby-hit);
  min-width: var(--lobby-hit);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--pk-text-2);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}


.lobby-header__share svg,
.lobby-header__settings svg,
.lobby-header__status svg,
.lobby-header__back svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}


.lobby-header__share {
  color: var(--pk-aqua);
}
.lobby-header__settings {
  color: var(--pk-text-2);
}
.lobby-header__back {
  color: var(--pk-gold-1);
}


@media (hover: hover) {
  .lobby-header__share:hover,
  .lobby-header__settings:hover,
  .lobby-header__status:hover,
  .lobby-header__back:hover {
    background-color: rgba(240, 230, 210, 0.09);
  }
}
.lobby-header__share:active,
.lobby-header__settings:active,
.lobby-header__status:active,
.lobby-header__back:active {
  background-color: rgba(240, 230, 210, 0.16);
  transform: scale(0.92);
}


.lobby-header__share:focus-visible,
.lobby-header__settings:focus-visible,
.lobby-header__status:focus-visible,
.lobby-header__back:focus-visible {
  outline: 2px solid var(--pk-aqua);
  outline-offset: 2px;
}


.lobby-header__status {
  position: relative;
  color: var(--pk-text);
}
.lobby-header__status > span {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
}


#voice_connectedBTN {
  display: none;
}


.lobby-header__status.is-connected #voice_connectedBTN {
  display: flex;
}
.lobby-header__status.is-connected #voice_disconnectedBTN {
  display: none;
}
.lobby-header__status.is-connected {
  color: var(--pk-ok-2);
}


.lobby-header__status:not(.is-connected) {
  color: var(--pk-text-muted);
}


.lobby-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 200, 185, 0.12);
  border: 1px solid rgba(10, 200, 185, 0.28);
  color: var(--pk-aqua);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.lobby-header__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}


.lobby-header__config {
  min-width: 0;
  color: var(--pk-text);
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(200, 170, 110, 0.08);
  border: 1px solid var(--pk-line);
}


.lobby-header__title {
  grid-area: title;
  margin: 0;
  
  max-width: min(46vw, 220px);
  padding-inline: 4px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--pk-gold-1);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}



#ui_setNewName_Cost,
.nc-cost {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 10px auto 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--pk-line);
  background: var(--pk-surface-3);
  color: var(--pk-text-2);
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: right;
  direction: rtl;
  box-sizing: border-box;
}
.nc-cost[hidden] {
  display: none !important;
}
.nc-cost__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}
.nc-cost__text {
  min-width: 0;
  flex: 1;
}
.nc-cost__text b {
  color: var(--pk-gold-1);
  font-weight: 700;
}
.nc-cost__text small {
  color: var(--pk-text);
  font-size: 0.76rem;
}


.nc-cost--free {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
}
.nc-cost--free .nc-cost__text b {
  color: var(--pk-ok-2);
}


.nc-cost--ok {
  border-color: var(--pk-line-2);
  background: rgba(200, 170, 110, 0.1);
}


.nc-cost--poor {
  border-color: rgba(224, 128, 128, 0.5);
  background: rgba(224, 128, 128, 0.1);
}
.nc-cost--poor .nc-cost__text b {
  color: var(--pk-danger);
}


.nc-cost--off {
  border-color: rgba(224, 128, 128, 0.35);
  background: rgba(224, 128, 128, 0.07);
  color: var(--pk-text);
}


.nc-cost--unknown {
  border-color: rgba(10, 200, 185, 0.35);
  background: rgba(10, 200, 185, 0.09);
}


#ui_btn_setNewName:disabled,
#ui_btn_setNewName.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
}


@media (max-width: 400px) {
  #ui_setNewName_Cost,
  .nc-cost {
    max-width: 100%;
    font-size: 0.78rem;
    padding: 9px 10px;
  }
}





@media (min-width: 420px) {
  .lobby-header {
    --lobby-hit: 40px;
    height: 60px;
    min-height: 60px;
    padding: 0 8px 0 14px;
    column-gap: 12px;
  }
  .lobby-header__title {
    font-size: 1.05rem;
  }
}


@media (max-width: 419px) {
  .lobby-header__config {
    display: none !important;
  }
  .lobby-header__title {
    font-size: 0.95rem;
  }
}


@media (max-width: 359px) {
  .lobby-header {
    --lobby-hit: 34px;
    column-gap: 6px;
    padding: 0 4px 0 8px;
  }
  .lobby-header__actions {
    gap: 0;
  }
  .lobby-header__title {
    font-size: 0.9rem;
  }
  .lobby-header__badge {
    padding: 4px 7px;
    font-size: 0.7rem;
  }
  .lobby-header__share svg,
  .lobby-header__settings svg,
  .lobby-header__status svg,
  .lobby-header__back svg {
    width: 18px;
    height: 18px;
  }
}


@media (max-width: 299px) {
  .lobby-header__share {
    display: none;
  }
}

.lobby-players {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.lobby-players::-webkit-scrollbar {
  width: 3px;
}
.lobby-players::-webkit-scrollbar-track {
  background: transparent;
}
.lobby-players::-webkit-scrollbar-thumb {
  background: var(--pk-gold-3);
  border-radius: 10px;
}
.player-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  min-height: 42px;
  height: 75px;
  border-radius: 14px;
  background: var(--pk-grad-panel);
  border: 1px solid var(--pk-line-3);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.player-slot:active {
  background: var(--pk-grad-panel-hover);
  border-color: var(--pk-line-2);
  transform: scale(0.985);
}
.player-slot--empty {
  opacity: 0.5;
  cursor: default;
  background: transparent;
  border: 1.5px dashed var(--pk-line);
}
.player-slot--empty:active {
  transform: none;
  background: transparent;
  border-color: var(--pk-line);
}
.player-slot--owner {
  border-color: var(--pk-line-2);
  background: linear-gradient(
    160deg,
    rgba(200, 170, 110, 0.14),
    var(--pk-surface-2)
  );
}

.player-slot__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  letter-spacing: 0;
  background-size: cover !important;
  border: 1px solid rgba(200, 170, 110, 0.28);
}
.player-slot__avatar--p1 {
  background: #ef4444;
}
.player-slot__avatar--p2 {
  background: #3b82f6;
}
.player-slot__avatar--p3 {
  background: #22c55e;
}
.player-slot__avatar--p4 {
  background: #f59e0b;
}
.player-slot__avatar--p5 {
  background: #8b5cf6;
}
.player-slot__avatar--p6 {
  background: #ec4899;
}
.player-slot__avatar--p7 {
  background: #06b6d4;
}
.player-slot__avatar--p8 {
  background: #f97316;
}
.player-slot__avatar--empty {
  background: var(--pk-panel-2);
  color: var(--pk-text-muted);
  font-weight: 400;
  border-style: dashed;
  border-color: var(--pk-line);
}
.player-slot__crown {
  position: absolute;
  top: -7px;
  right: -5px;
  font-size: 0.7rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
  z-index: 3;
}
.player-slot__avatar .player-solt-frame {
  position: absolute;
  width: 60px !important;
  height: 60px !important;
  right: 50%;
  top: 50% !important;
  left: auto !important;
  bottom: auto !important;
  transform: translate(50%, -50%) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  pointer-events: none;
  z-index: 2;
}
.player-slot__info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-slot__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pk-gold-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.player-slot__name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-slot__color {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}
.player-slot__color--c1 {
  background: #d93636;
  border-color: #ff8b8b;
}

.player-slot__color--c2 {
  background: #2f6fd0;
  border-color: #8fbcff;
}

.player-slot__color--c3 {
  background: #27a75e;
  border-color: #8ee0b0;
}

.player-slot__color--c4 {
  background: #d8a10f;
  border-color: #ffe08a;
  color: #241a00;
}

.player-slot__color--c5 {
  background: #f2f2f2;
  border-color: #ffffff;
  color: #1b1b1b;
}

.player-slot__color--c6 {
  background: #2a2a2a;
  border-color: #8c8c8c;
}
.player-slot__name--empty {
  color: var(--pk-text-muted);
  font-weight: 400;
  font-size: 0.82rem;
}
.player-slot__rank {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.player-slot--empty .player-slot__rank {
  opacity: 0.3;
}
.player-slot__status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.player-slot__status--ready {
  color: var(--pk-ok-2);
}
.player-slot__status--not-ready {
  color: var(--pk-text-muted);
}
.player-slot__status-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}
.player-slot__status-icon--ready {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: var(--pk-ok-2);
}
.player-slot__status-icon--not-ready {
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line);
  color: var(--pk-text-muted);
}

.lobby-members {
  flex-shrink: 0;
  padding: 6px 12px;
  border-top: 1px solid var(--pk-line);
  background: linear-gradient(180deg, var(--pk-surface-1), var(--pk-surface-2));
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  min-height: 50px;
  direction: rtl;
}
.lobby-members::-webkit-scrollbar {
  height: 0;
}
.lobby-members__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pk-text);
  flex-shrink: 0;
  margin-left: 2px;
  letter-spacing: -0.01em;
}
.member-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
  letter-spacing: 0;
}
.member-bubble:active {
  transform: scale(0.9);
  border-color: var(--pk-line-2);
}
.member-bubble--c1 {
  background: #ef4444;
}
.member-bubble--c2 {
  background: #3b82f6;
}
.member-bubble--c3 {
  background: #22c55e;
}
.member-bubble--c4 {
  background: #f59e0b;
}
.member-bubble--c5 {
  background: #8b5cf6;
}
.member-bubble--c6 {
  background: #ec4899;
}
.member-bubble--c7 {
  background: #06b6d4;
}
.member-bubble--c8 {
  background: #f97316;
}
.member-bubble--c9 {
  background: #6366f1;
}
.member-bubble--c10 {
  background: #14b8a6;
}
.member-bubble--c11 {
  background: #d946ef;
}
.member-bubble--c12 {
  background: #84cc16;
}
.member-bubble__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pk-surface-3);
  color: var(--pk-text);
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
  cursor: pointer;
  border: 1.5px dashed var(--pk-line);
  transition: var(--transition);
}
.member-bubble__more:active {
  background: rgba(10, 200, 185, 0.14);
  color: var(--pk-gold-1);
}

.lobby-chat {
  flex-shrink: 0;
  border-top: 1px solid var(--pk-line);
  background: linear-gradient(180deg, var(--pk-surface-2), var(--pk-surface-1));
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}
.lobby-chat:active {
  background: rgba(10, 200, 185, 0.08);
}
.lobby-chat__preview {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--pk-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.lobby-chat__preview strong {
  color: var(--pk-gold-1);
  font-weight: 600;
}
.lobby-chat__arrow {
  font-size: 0.7rem;
  color: var(--pk-text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.lobby-chat--has-unread .lobby-chat__preview {
  color: var(--pk-gold-1);
  font-weight: 500;
}
.lobby-chat--has-unread .lobby-chat__arrow {
  color: var(--pk-aqua);
}

.chat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--pk-lobby-bg) 0%,
    var(--pk-page-deep) 100%
  );
  z-index: 20;
  display: flex;
  flex-direction: column;
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  pointer-events: none;
}
.chat-overlay--open {
  transform: translateY(0);
  pointer-events: auto;
  z-index: 10000;
}
.chat-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pk-line);
  flex-shrink: 0;
  min-height: 48px;
  background: var(--pk-surface-1);
}
.chat-overlay__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pk-gold-1);
  letter-spacing: -0.01em;
}
.chat-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--pk-line);
  background: var(--pk-glass-tint);
  cursor: pointer;
  color: var(--pk-text-2);
  font-size: 1.1rem;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.chat-overlay__close:active {
  background: rgba(10, 200, 185, 0.16);
  color: var(--pk-gold-1);
  transform: scale(0.92);
}
.chat-overlay__messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  direction: ltr;
}
.chat-message {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 85%;
  animation: msg-in 0.25s ease-out;
}
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-message--sent {
  align-self: flex-end;
  text-align: left;
}
.chat-message--received {
  align-self: flex-start;
}
.chat-message__bubble {
  padding: 8px 13px;
  border-radius: 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
  letter-spacing: -0.01em;
  direction: rtl;
}
.chat-message--sent .chat-message__bubble {
  background: var(--pk-grad-aqua);
  color: var(--pk-on-aqua);
  border-bottom-left-radius: 6px;
}
.chat-message--received .chat-message__bubble {
  background: var(--pk-panel-2);
  border: 1px solid var(--pk-line-3);
  color: var(--pk-gold-1);
  border-bottom-right-radius: 6px;
}
.chat-message__sender {
  font-size: 0.7rem;
  color: var(--pk-text);
  font-weight: 500;
  padding: 0 4px;
}
.chat-message--sent .chat-message__sender {
  text-align: left;
}
.chat-overlay__input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--pk-line);
  flex-shrink: 0;
  background: var(--pk-surface-1);
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  direction: ltr;
}
.chat-overlay__input {
  flex: 1;
  border: 1.5px solid var(--pk-line);
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
  background: var(--pk-glass-tint-strong);
  color: var(--pk-gold-1);
  transition: var(--transition);
  min-width: 0;
  font-family: inherit;
  letter-spacing: -0.01em;
  direction: rtl;
}
.chat-overlay__input::placeholder {
  color: var(--pk-text-muted);
}
.chat-overlay__input:focus {
  border-color: var(--pk-aqua);
  box-shadow: 0 0 0 3px rgba(10, 200, 185, 0.14);
}
.chat-overlay__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--pk-grad-aqua);
  color: var(--pk-on-aqua);
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 16px -9px rgba(10, 200, 185, 0.85);
}
.chat-overlay__send:active {
  transform: scale(0.9);
}
.chat-overlay__send svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--pk-on-aqua);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lobby-action {
  flex-shrink: 0;
  padding: 8px 14px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  background: linear-gradient(180deg, var(--pk-surface-2), var(--pk-surface-1));
  border-top: 1px solid var(--pk-line);
  z-index: 2;
}
.lobby-action__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.lobby-action__btn--ready {
  background: linear-gradient(135deg, #22c55e, #0b9b5e);
  color: var(--pk-on-aqua);
  box-shadow: 0 10px 24px -12px rgba(34, 197, 94, 0.9);
}
.lobby-action__btn--ready:active {
  transform: scale(0.97);
}
.lobby-action__btn--ready.is-ready {
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line);
  color: var(--pk-text-2);
  box-shadow: none;
}
.lobby-action__btn--ready.is-ready:active {
  background: rgba(10, 200, 185, 0.12);
  color: var(--pk-gold-1);
}
.lobby-action__btn--start {
  background: var(--pk-grad-gold);
  color: var(--pk-on-gold);
  box-shadow: 0 12px 26px -12px rgba(200, 170, 110, 0.9);
}
.lobby-action__btn--start:active {
  transform: scale(0.97);
}
.lobby-action__btn--start:disabled {
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line);
  color: var(--pk-text-muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.lobby-action__btn-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.context-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: transparent;
  pointer-events: none;
  transition: background 0.2s;
}
.context-menu-backdrop--visible {
  pointer-events: auto;
  background: var(--pk-glass-tint);
}
.context-menu {
  position: absolute;
  z-index: 35;
  background: var(--pk-grad-panel);
  border: 1px solid var(--pk-line);
  border-radius: 18px;
  padding: 6px 0;
  box-shadow: var(--pk-shadow-xl);
  min-width: 190px;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}
.context-menu--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.context-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pk-text-2);
  cursor: pointer;
  transition: background 0.1s;
  white-space: nowrap;
  letter-spacing: -0.01em;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.context-menu__item:active {
  background: rgba(10, 200, 185, 0.12);
  color: var(--pk-gold-1);
}
.context-menu__item--danger {
  color: var(--pk-danger);
}
.context-menu__item--danger:active {
  background: rgba(224, 128, 128, 0.14);
}
.context-menu__icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.context-menu__divider {
  height: 1px;
  background: var(--pk-line-3);
  margin: 4px 0;
}

@media (min-width: 481px) {
  .lobby-container {
    max-height: 92vh;
    border-radius: 24px;
    margin: 0 auto;
  }
  .chat-overlay {
    border-radius: 20px;
  }
}
@media (max-height: 640px) {
  .lobby-header {
    height: 50px;
    min-height: 50px;
    padding: 0 8px;
  }
  .player-slot {
    min-height: 36px;
    padding: 4px 8px;
    gap: 6px;
  }
  .player-slot__avatar {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }
  .player-slot__name {
    font-size: 0.8rem;
  }
  .lobby-members {
    min-height: 40px;
    padding: 4px 10px;
  }
  .member-bubble {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }
  .lobby-chat {
    min-height: 36px;
    padding: 4px 8px;
  }
  .lobby-action {
    padding: 5px 10px;
  }
  .lobby-action__btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 14px;
  }
}



.inLobby_profile-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: var(--pk-profile-scrim);
  backdrop-filter: blur(6px);
  z-index: 1000;
}
.inLobby_profile-modal {
  width: 95%;
  max-width: 420px;
  background: var(--pk-grad-panel);
  border: 1px solid var(--pk-line);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--pk-shadow-xl);
  text-align: center;
  color: var(--pk-text);
}
.inLobby_profile-modal__close {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--pk-line);
  border-radius: 50%;
  background: var(--pk-glass-tint);
  color: var(--pk-gold-1);
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.inLobby_profile-cover {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.inLobby_profile-avatar-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: -75px auto 0;
  z-index: 2;
}
.inLobby_profile-avatar-frame {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.inLobby_profile-avatar-frame-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
}
.inLobby_profile-avatar {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pk-panel-2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
#inLobby_profile-avatar {
  width: 100%;
  height: 100%;
  background-size: cover;
}
#inLobby_profile-avatar p {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: xx-large;
}
.inLobby_profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inLobby_profile-status {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pk-ok-2);
  border: 3px solid var(--pk-bg);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.7);
  z-index: 10;
}
.inLobby_profile-name {
  margin: 15px 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--pk-gold-1);
}
.inLobby_profile-rank {
  margin-bottom: 16px;
  color: var(--pk-text);
  font-size: 13px;
}
.inLobby_profile-bio {
  margin: 0 20px;
  padding: 15px;
  border-radius: 14px;
  background: var(--pk-glass-tint);
  border: 1px solid var(--pk-line-3);
  color: var(--pk-text-2);
  line-height: 1.8;
  direction: rtl;
}
.inLobby_profile-stats {
  display: flex;
  gap: 12px;
  margin: 20px;
}
.inLobby_profile-stat {
  flex: 1;
  background: var(--pk-glass-tint);
  border: 1px solid var(--pk-line-3);
  border-radius: 14px;
  padding: 14px 8px;
}
.inLobby_profile-stat .value {
  display: block;
  font-size: large;
  font-weight: 500;
  color: var(--pk-aqua);
}
#inLobby_profileReportbtn {
  color: var(--pk-danger);
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: smaller;
  background-color: var(--pk-surface-3);
  border: 1px solid rgba(224, 128, 128, 0.4);
  border-radius: 5px;
  padding: 5px;
  cursor: pointer;
}
#inLobby_profileReportbtn:hover {
  padding: 3px;
  box-shadow: 0 0 8px rgba(224, 128, 128, 0.6);
}
.inLobby_profile-stat .label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--pk-text);
  font-weight: 600;
  font-family: inherit;
}
.inLobby_profile-meta {
  margin: 0 20px 20px;
  padding: 14px;
  background: var(--pk-glass-tint);
  border: 1px solid var(--pk-line-3);
  border-radius: 14px;
  direction: rtl;
}
.inLobby_profile-meta .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--pk-text);
}
.inLobby_profile-meta .row:not(:last-child) {
  border-bottom: 1px solid var(--pk-line-3);
}
.inLobby_profile-add-friend {
  width: calc(100% - 100px);
  margin: 0 50px 24px;
  height: 52px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: var(--pk-on-aqua);
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-2));
  box-shadow: 0 10px 22px -12px rgba(10, 200, 185, 0.9);
  transition: 0.2s;
}
.inLobby_profile-add-friend:hover {
  transform: translateY(-2px);
  background: var(--pk-grad-aqua-hover);
}



.news-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  padding: 0 0 20px;
  direction: rtl;
  overflow: hidden;
}
.news-header {
  text-align: center;
  padding: 1.2rem 1rem 0.8rem;
  flex-shrink: 0;
}
.news-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pk-gold-1);
  margin-bottom: 0.3rem;
}
.news-subtitle {
  font-size: 0.85rem;
  color: var(--pk-text);
  opacity: 0.85;
}
.news-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
}
.news-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--pk-grad-panel);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 14px 28px -22px rgba(0, 0, 0, 1);
  border: 1px solid var(--pk-line);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.news-card:active {
  transform: scale(0.98);
  border-color: var(--pk-line-2);
}
.news-card__icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 0 14px rgba(10, 200, 185, 0.28));
}
.news-card__content {
  flex: 1;
  min-width: 0;
}
.news-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pk-gold-1);
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card__snippet {
  font-size: 0.8rem;
  color: var(--pk-text);
  line-height: 1.5;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__date {
  font-size: 0.7rem;
  color: var(--pk-gold-2);
  opacity: 0.9;
  font-weight: 500;
}



.shop-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  height: 100%;
  direction: rtl;
  overflow: hidden;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: transparent;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(180deg, var(--pk-surface-1), var(--pk-surface-2));
  border-bottom: 1px solid var(--pk-line);
  flex-shrink: 0;
  gap: 0.8rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.shop-coin-balance {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(
    135deg,
    rgba(200, 170, 110, 0.18),
    rgba(200, 170, 110, 0.06)
  );
  border: 1px solid var(--pk-line-2);
  padding: 0.3rem 1rem;
  border-radius: 2.5rem;
  box-shadow: var(--pk-shadow-sm);
  white-space: nowrap;
}
.shop-coin-balance img {
  width: 26px;
  height: 26px;
}
.shop-coin-balance__amount {
  font-weight: 800;
  color: var(--pk-gold-1);
  font-size: 0.9rem;
}
.shop-coin-balance__label {
  font-size: 0.7rem;
  color: var(--pk-text);
  margin-right: 0.2rem;
}
.shop-header__search {
  position: relative;
  flex-shrink: 1;
  min-width: 120px;
}
.shop-header__search input {
  width: 100%;
  border: 1px solid var(--pk-line);
  border-radius: 2rem;
  padding: 0.5rem 2.2rem 0.5rem 1rem;
  font-size: 0.8rem;
  background: var(--pk-glass-tint-strong);
  color: var(--pk-gold-1);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.shop-header__search input::placeholder {
  color: var(--pk-text-muted);
}
.shop-header__search input:focus {
  border-color: rgba(10, 200, 185, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 200, 185, 0.14);
}
.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--pk-gold-2);
  pointer-events: none;
}

.shop-categories {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: transparent;
  flex-shrink: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shop-categories::-webkit-scrollbar {
  display: none;
}
.shop-category-item {
  background: var(--pk-surface-3);
  color: var(--pk-text-2);
  border: 1px solid var(--pk-line);
  border-radius: 2rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: var(--pk-shadow-sm);
}
.shop-category-item:hover {
  background: rgba(10, 200, 185, 0.14);
  color: var(--pk-gold-1);
  border-color: rgba(10, 200, 185, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(10, 200, 185, 0.8);
}
.shop-category-item.active {
  background: var(--pk-grad-gold);
  color: var(--pk-on-gold);
  border-color: var(--pk-gold-2);
  box-shadow: 0 8px 20px -12px rgba(200, 170, 110, 0.9);
}

.shop-products {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
}

.shop-product-card {
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  height: 220px;
  box-shadow: 0 14px 28px -22px rgba(0, 0, 0, 1);
  border: 1px solid var(--pk-line);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  cursor: pointer;
  text-align: center;
}
.shop-product-card:hover {
  transform: translateY(-6px);
  border-color: var(--pk-line-2);
  box-shadow: var(--pk-shadow-lg);
}
.shop-product-card__overlay {
  position: absolute;
  inset: 0;
  
  background: linear-gradient(
    to top,
    var(--pk-media-scrim-1) 0%,
    var(--pk-media-scrim-2) 60%,
    var(--pk-media-scrim-3) 100%
  );
  z-index: 1;
}

.shop-product-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 2;
  color: var(--pk-gold-1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.shop-product-card__name {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: var(--pk-gold-1);
  text-shadow: 0 2px 4px var(--pk-text-halo);
  background-color: var(--pk-glass-tint);
  border-radius: 8px;
  padding: 2px 6px;
}
.shop-product-card__desc {
  font-size: 0.7rem;
  color: var(--pk-text);
  opacity: 0.92;
  margin: 0;
  text-shadow: 0 1px 2px var(--pk-text-halo-soft);
  line-height: 1.3;
}
.shop-product-card__price {
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--pk-grad-gold);
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  color: var(--pk-on-gold);
  align-self: flex-start;
  margin-top: 0.3rem;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.9);
}
.shop-product-card__btn {
  width: 100%;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 200, 185, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--pk-gold-1);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid rgba(10, 200, 185, 0.4);
  transition: all 0.2s ease;
  font-family: inherit;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.shop-product-card__btn:hover {
  background: rgba(10, 200, 185, 0.3);
  border-color: rgba(10, 200, 185, 0.7);
  box-shadow: 0 6px 16px -8px rgba(10, 200, 185, 0.8);
}

.shop-load-more-btn {
  grid-column: 1 / -1;
  width: 100%;
  margin: 6px 0 14px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line);
  color: var(--pk-text-2);
  border-radius: 14px;
}
.shop-load-more-btn:hover {
  border-color: var(--pk-line-2);
  color: var(--pk-gold-1);
}

@media (max-width: 480px) {
  .shop-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
  }
  .shop-product-card {
    height: 200px;
  }
  .shop-header {
    padding: 0.6rem 0.8rem;
  }
}



#ui_MainMenus_ChatsUI {
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100% !important;
  width: 100%;
}
.ui_MainMenus_ChatsUI__container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 100%;
  background: var(--chui-surface);
  border: 1px solid var(--pk-line);
  border-radius: var(--chui-radius-2xl);
  box-shadow: var(--chui-shadow-xl);
  overflow: hidden;
  position: relative;
  direction: rtl;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}
.ui_MainMenus_ChatsUI__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, var(--pk-surface-1), var(--pk-surface-2));
  border-bottom: 1px solid var(--chui-border);
  flex-shrink: 0;
}
.ui_MainMenus_ChatsUI__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pk-gold-1);
}
.ui_MainMenus_ChatsUI__header-spacer {
  width: 24px;
}
.ui_MainMenus_ChatsUI__top-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--pk-glass-tint);
  border-bottom: 1px solid var(--chui-border);
  overflow-x: auto;
  flex-shrink: 0;
}
.ui_MainMenus_ChatsUI__tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  background: var(--pk-surface-3);
  color: var(--pk-text-2);
  border: 1px solid var(--chui-border);
  border-radius: var(--chui-radius-xl);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--chui-transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.ui_MainMenus_ChatsUI__tab-btn:hover {
  background: rgba(10, 200, 185, 0.12);
  border-color: rgba(10, 200, 185, 0.4);
  color: var(--pk-gold-1);
}
.ui_MainMenus_ChatsUI__tab-btn.active {
  background: var(--pk-grad-gold);
  border-color: var(--pk-gold-2);
  color: var(--pk-on-gold);
  box-shadow: 0 8px 20px -12px rgba(200, 170, 110, 0.9);
}
.ui_MainMenus_ChatsUI__chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--chui-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--chui-border) transparent;
}
.ui_MainMenus_ChatsUI__chat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--pk-grad-panel);
  border-radius: var(--chui-radius-lg);
  box-shadow: var(--pk-shadow-sm);
  cursor: pointer;
  transition: var(--chui-transition);
  position: relative;
  border: 1px solid rgba(200, 170, 110, 0.14);
}
.ui_MainMenus_ChatsUI__chat-item:hover {
  background: var(--pk-grad-panel-hover);
  border-color: var(--pk-line-2);
  box-shadow: var(--chui-shadow-md);
}
.ui_MainMenus_ChatsUI__chat-item:active {
  transform: scale(0.98);
}
.ui_MainMenus_ChatsUI__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(200, 170, 110, 0.35);
  box-shadow: 0 0 0 3px rgba(10, 200, 185, 0.08);
}
.ui_MainMenus_ChatsUI__avatar--c0 {
  background: #ef4444;
}
.ui_MainMenus_ChatsUI__avatar--c1 {
  background: #f59e0b;
}
.ui_MainMenus_ChatsUI__avatar--c2 {
  background: #10b981;
}
.ui_MainMenus_ChatsUI__avatar--c3 {
  background: #3b82f6;
}
.ui_MainMenus_ChatsUI__avatar--c4 {
  background: #8b5cf6;
}
.ui_MainMenus_ChatsUI__avatar--c5 {
  background: #ec4899;
}
.ui_MainMenus_ChatsUI__avatar--c6 {
  background: #06b6d4;
}
.ui_MainMenus_ChatsUI__avatar--c7 {
  background: #84cc16;
}
.ui_MainMenus_ChatsUI__item-content {
  flex: 1;
  min-width: 0;
}
.ui_MainMenus_ChatsUI__item-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ui_MainMenus_ChatsUI__item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--chui-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui_MainMenus_ChatsUI__item-preview {
  display: block;
  color: var(--chui-text-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui_MainMenus_ChatsUI__item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--chui-text-muted);
  flex-shrink: 0;
}
.ui_MainMenus_ChatsUI__item-time {
  white-space: nowrap;
}
.ui_MainMenus_ChatsUI__item-menu-btn {
  background: none;
  border: none;
  color: var(--chui-text-muted);
  font-size: 1.2rem;
  padding: 0.2rem 0.4rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--chui-transition);
  flex-shrink: 0;
  line-height: 1;
}
.ui_MainMenus_ChatsUI__item-menu-btn:hover {
  background: var(--chui-border-light);
  color: var(--chui-text);
}
.ui_MainMenus_ChatsUI__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--chui-text-muted);
  gap: 1rem;
  padding: 2rem;
}
.ui_MainMenus_ChatsUI__empty-state svg {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}
.ui_MainMenus_ChatsUI__empty-state p {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--chui-text-secondary);
}
.ui_MainMenus_ChatsUI__empty-state span {
  font-size: 0.8rem;
}

.ui_MainMenus_ChatsUI__floating-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 92%;
  max-width: 400px;
  max-height: 72%;
  background: var(--pk-grad-panel);
  border-radius: var(--chui-radius-xl);
  border: 1px solid var(--pk-line);
  box-shadow: var(--pk-shadow-xl);
  z-index: 16;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.ui_MainMenus_ChatsUI__floating-panel--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.ui_MainMenus_ChatsUI__floating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--chui-border);
  font-weight: 700;
  color: var(--pk-gold-1);
}
.ui_MainMenus_ChatsUI__floating-close {
  background: none;
  border: none;
  color: var(--chui-text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--chui-transition);
}
.ui_MainMenus_ChatsUI__floating-close:hover {
  background: rgba(10, 200, 185, 0.14);
  color: var(--pk-gold-1);
}
.ui_MainMenus_ChatsUI__floating-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ui_MainMenus_ChatsUI__floating-backdrop {
  position: absolute;
  inset: 0;
  background: var(--pk-overlay-soft);
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  border-radius: inherit;
}
.ui_MainMenus_ChatsUI__floating-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}
.ui_MainMenus_ChatsUI__request-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: var(--chui-bg);
  border-radius: var(--chui-radius-lg);
  box-shadow: var(--chui-shadow-sm);
}
.ui_MainMenus_ChatsUI__request-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--chui-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--pk-text);
  flex-shrink: 0;
  font-size: 0.9rem;
}
.ui_MainMenus_ChatsUI__request-info {
  flex: 1;
  min-width: 0;
}
.ui_MainMenus_ChatsUI__request-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--chui-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui_MainMenus_ChatsUI__request-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.ui_MainMenus_ChatsUI__request-btn {
  padding: 0.3rem 0.9rem;
  border: none;
  border-radius: var(--chui-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--chui-transition);
  white-space: nowrap;
}
.ui_MainMenus_ChatsUI__request-btn--accept,
.ui_MainMenus_ChatsUI__request-btn--unblock {
  background: var(--chui-success);
  color: #fff;
}
.ui_MainMenus_ChatsUI__request-btn--block {
  background: var(--chui-danger);
  color: #fff;
}
.ui_MainMenus_ChatsUI__request-btn-incoming-cancel,
.ui_MainMenus_ChatsUI__request-btn-sent-cancel {
  background: var(--chui-warning);
  color: #000;
}

.ui_MainMenus_ChatsUI__chat-overlay {
  position: absolute;
  inset: 0;
  background: var(--chui-surface);
  display: flex;
  flex-direction: column;
  z-index: 20;
  direction: ltr;
  transform: translateX(110%);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s;
  border-radius: inherit;
  height: 100%;
}
.ui_MainMenus_ChatsUI__chat-overlay--open {
  transform: translateX(0);
  opacity: 1;
}
.ui_MainMenus_ChatsUI__chat-header {
  display: flex;
  align-items: center;
  direction: rtl;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(10, 200, 185, 0.22),
    rgba(3, 151, 171, 0.32)
  );
  color: var(--pk-gold-1);
  font-weight: 700;
  flex-shrink: 0;
  border-radius: inherit inherit 0 0;
  border-bottom: 1px solid rgba(10, 200, 185, 0.3);
}
.ui_MainMenus_ChatsUI__chat-close {
  background: none;
  border: none;
  color: var(--pk-gold-1);
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ui_MainMenus_ChatsUI__chat-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.ui_MainMenus_ChatsUI__chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--chui-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--chui-border) transparent;
}
.ui_MainMenus_ChatsUI__chat-messages::-webkit-scrollbar {
  width: 4px;
}
.ui_MainMenus_ChatsUI__chat-messages::-webkit-scrollbar-thumb {
  background: var(--chui-border);
  border-radius: 4px;
}
.ui_MainMenus_ChatsUI__chat-message {
  display: flex;
  flex-direction: column;
  max-width: 78%;
  position: relative;
}
.ui_MainMenus_ChatsUI__chat-message--sent {
  align-self: flex-end;
  text-align: left;
}
.ui_MainMenus_ChatsUI__chat-message--received {
  align-self: flex-start;
  text-align: right;
}
.ui_MainMenus_ChatsUI__chat-message__sender {
  font-size: 0.7rem;
  color: var(--chui-text-secondary);
  margin-bottom: 0.15rem;
  padding: 0 0.4rem;
}

.ui_MainMenus_ChatsUI__reply-quote {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid var(--pk-reply-border);
  border-radius: 0.7rem;
  background: var(--pk-reply-bg);
  font-family: inherit;
  direction: rtl;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.ui_MainMenus_ChatsUI__reply-quote:hover {
  background: var(--pk-reply-bg-hover);
  transform: translateY(-1px);
}
.ui_MainMenus_ChatsUI__reply-quote:focus-visible {
  outline: none;
  box-shadow: var(--pk-focus);
}

.ui_MainMenus_ChatsUI__reply-quote__mark {
  flex: 0 0 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--pk-reply-rail);
  opacity: 0.95;
}
.ui_MainMenus_ChatsUI__reply-quote--sent
  .ui_MainMenus_ChatsUI__reply-quote__mark {
  background: var(--pk-reply-rail-mine);
}
.ui_MainMenus_ChatsUI__reply-quote__body {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.ui_MainMenus_ChatsUI__reply-quote__text {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--pk-reply-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
}


.ui_MainMenus_ChatsUI__reply-bar {
  display: none;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  background: var(--pk-reply-bar-bg);
  border-top: 1px solid var(--pk-reply-border);
  direction: rtl;
  flex: 0 0 auto;
}
.ui_MainMenus_ChatsUI__reply-bar--visible {
  display: flex;
  animation: replyBarIn 0.2s ease-out;
}
@keyframes replyBarIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ui_MainMenus_ChatsUI__reply-bar__mark {
  flex: 0 0 3px;
  width: 3px;
  border-radius: 999px;
  background: var(--pk-reply-rail);
}
.ui_MainMenus_ChatsUI__reply-bar__body {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.ui_MainMenus_ChatsUI__reply-bar__text {
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--pk-reply-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
}
.ui_MainMenus_ChatsUI__reply-bar__close {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--pk-line-3);
  border-radius: 50%;
  background: transparent;
  color: var(--pk-text-muted);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.ui_MainMenus_ChatsUI__reply-bar__close:hover {
  background: var(--pk-surface-hover-1);
  border-color: var(--pk-line);
  color: var(--pk-text);
}


.ui_MainMenus_ChatsUI__chat-message--flash
  .ui_MainMenus_ChatsUI__chat-message__bubble {
  animation: msgFlash 1.1s ease-out;
}
@keyframes msgFlash {
  0%,
  100% {
    box-shadow: var(--pk-shadow-sm);
  }
  25% {
    box-shadow:
      var(--pk-shadow-sm),
      0 0 0 3px var(--pk-aqua-soft);
  }
}
.ui_MainMenus_ChatsUI__chat-message__bubble {
  padding: 0.6rem 1rem;
  border-radius: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  direction: rtl;
  word-break: break-word;
  background: var(--pk-panel-2);
  color: var(--pk-gold-1);
  box-shadow: var(--chui-shadow-sm);
  border: 1px solid rgba(200, 170, 110, 0.14);
}
.ui_MainMenus_ChatsUI__chat-message--sent
  .ui_MainMenus_ChatsUI__chat-message__bubble {
  background: var(--pk-grad-aqua);
  color: var(--pk-on-aqua);
  border-color: rgba(10, 200, 185, 0.4);
  border-bottom-left-radius: 0.25rem;
}
.ui_MainMenus_ChatsUI__chat-message--received
  .ui_MainMenus_ChatsUI__chat-message__bubble {
  background: var(--pk-panel-2);
  border-bottom-right-radius: 0.25rem;
}
.ui_MainMenus_ChatsUI__chat-message__time {
  font-size: 0.68rem;
  color: var(--chui-text-muted);
  margin-top: 0.2rem;
  padding: 0 0.4rem;
}

.ui_MainMenus_ChatsUI__chat-message--deleted
  .ui_MainMenus_ChatsUI__chat-message__bubble {
  opacity: 0.55;
  font-style: italic;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}
.ui_MainMenus_ChatsUI__chat-message--deleted
  .ui_MainMenus_ChatsUI__chat-message__sender {
  opacity: 0.6;
}
.msg-reply-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--chui-surface);
  border: 1px solid var(--chui-border);
  border-radius: 50%;
  color: var(--chui-text-muted);
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--chui-transition);
}
.ui_MainMenus_ChatsUI__chat-message:hover .msg-reply-btn {
  display: flex;
}

.ui_MainMenus_ChatsUI__chat-message--received .msg-reply-btn {
  right: auto;
  left: -6px;
}
.msg-reply-btn:hover {
  background: var(--chui-accent-light);
  color: var(--chui-accent);
}
.ui_MainMenus_ChatsUI__chat-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: var(--chui-surface);
  border-top: 1px solid var(--chui-border);
  flex: 0 0 auto;
}
.ui_MainMenus_ChatsUI__chat-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--chui-border);
  border-radius: 1.5rem;
  background: var(--pk-glass-tint-strong);
  color: var(--pk-gold-1);
  font-size: 0.9rem;
  outline: none;
  transition: var(--chui-transition);
  font-family: inherit;
  direction: rtl;
}
.ui_MainMenus_ChatsUI__chat-input::placeholder {
  color: var(--pk-text-muted);
}
.ui_MainMenus_ChatsUI__chat-input:focus {
  border-color: var(--pk-aqua);
  box-shadow: 0 0 0 3px rgba(10, 200, 185, 0.14);
}
.ui_MainMenus_ChatsUI__chat-send {
  background: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-2));
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--chui-transition);
  flex-shrink: 0;
  box-shadow: 0 6px 16px -8px rgba(10, 200, 185, 0.8);
}
.ui_MainMenus_ChatsUI__chat-send:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 22px -8px rgba(10, 200, 185, 0.95);
}
.ui_MainMenus_ChatsUI__chat-send svg {
  width: 18px;
  height: 18px;
  stroke: var(--pk-on-aqua);
  stroke-width: 2.2;
  fill: none;
}
.ui_MainMenus_ChatsUI__context-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.ui_MainMenus_ChatsUI__context-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
  background: var(--pk-overlay-faint);
}
.ui_MainMenus_ChatsUI__context-menu {
  position: absolute;
  z-index: 31;
  background: var(--pk-grad-panel);
  border-radius: var(--chui-radius-lg);
  border: 1px solid var(--pk-line);
  box-shadow: var(--pk-shadow-lg);
  min-width: 180px;
  padding: 0.4rem 0;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  overflow: hidden;
}
.ui_MainMenus_ChatsUI__context-menu--visible {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.ui_MainMenus_ChatsUI__context-menu__item {
  display: block;
  width: 100%;
  padding: 0.7rem 1.2rem;
  background: none;
  border: none;
  color: var(--pk-text-2);
  text-align: right;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.ui_MainMenus_ChatsUI__context-menu__item:hover {
  background: rgba(10, 200, 185, 0.12);
  color: var(--pk-gold-1);
}
.ui_MainMenus_ChatsUI__context-menu__item--danger {
  color: var(--chui-danger);
}
.ui_MainMenus_ChatsUI__context-menu__item--danger:hover {
  background: var(--chui-danger-light);
}
.ui_MainMenus_ChatsUI__context-menu__item--danger {
  color: var(--chui-danger);
}
.ui_MainMenus_ChatsUI__context-menu__item--danger:hover {
  background: var(--chui-danger-light);
}

@media (max-width: 500px) {
  
  #ui_MainMenus_ChatsUI.active {
    animation: none;
  }
  .ui_MainMenus_ChatsUI__container {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .ui_MainMenus_ChatsUI__chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    z-index: 1200;
  }
  .ui_MainMenus_ChatsUI__chat-messages {
    padding: 0.8rem;
    gap: 0.5rem;
  }
  
  .ui_MainMenus_ChatsUI__chat-header {
    padding-top: calc(0.8rem + env(safe-area-inset-top, 0px));
  }
  .ui_MainMenus_ChatsUI__chat-input-area {
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }
  .ui_MainMenus_ChatsUI__chat-message {
    max-width: 85%;
  }
  .ui_MainMenus_ChatsUI__avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}



#ui_MainMenus_UserUI {
  width: 100%;
  height: 100%;
  position: relative;
  padding-top: 20px;
}

#ui_MainMenus_UserUI_Banner {
  background-color: var(--pk-panel);
  background-image: linear-gradient(
    135deg,
    rgba(10, 200, 185, 0.22),
    rgba(200, 170, 110, 0.18)
  );
  width: calc(100% - 4px);
  height: 100%;
  max-height: 140px;
  position: absolute;
  top: 2px;
  left: 0px;
  border-radius: 10px 10px 0 0;
  margin-left: 2px;
  margin-right: 2px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid var(--pk-line);
}

#ui_MainMenus_UserUI_coll {
  position: absolute;
  right: 0px;
  bottom: 0;
  transform: translateY(50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 105px;
  padding: 9px 16px;
  border: 1px solid var(--pk-line-2);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(200, 170, 110, 0.75),
    rgba(200, 170, 110, 0.355)
  );
  color: var(--pk-gold-1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    var(--pk-shadow-md),
    inset 0 1px 0 rgba(240, 230, 210, 0.18);
  cursor: pointer;
  user-select: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
#ui_MainMenus_UserUI_coll::before {
  font-size: 13px;
  color: var(--pk-gold-2);
}
#ui_MainMenus_UserUI_coll:hover {
  background: var(--pk-grad-gold);
  border-color: var(--pk-gold-2);
  color: var(--pk-on-gold);
  transform: translateY(-3px);
  box-shadow:
    0 12px 26px -12px rgba(200, 170, 110, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
#ui_MainMenus_UserUI_coll:hover::before {
  color: var(--pk-on-gold);
}
#ui_MainMenus_UserUI_coll:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

#ui_MainMenus_UserUI_Avatar_Holder {
  position: absolute;
  top: 140px;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  left: 50%;
}

#ui_MainMenus_UserUI_Avatar_Border {
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateZ(20px);
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.65));
}

#ui_MainMenus_UserUI_Avatar {
  background-color: var(--pk-panel-2);
  width: 96px;
  height: 96px;
  border-radius: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: xxx-large;
  font-weight: 400;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-size: cover;
  color: var(--pk-gold-1);
  border: 2px solid rgba(200, 170, 110, 0.4);
}

#ui_MainMenus_UserUI_Info {
  position: absolute;
  top: 160px;
  left: 5px;
  padding: 5px;
  font-size: small;
  color: var(--pk-text);
}
#ui_MainMenus_UserUI_UID {
  font-size: smaller;
  font-weight: 500;
  user-select: text;
  direction: ltr;
  text-align: left;
  color: var(--pk-text-2);
}
#ui_MainMenus_UserUI_AccuntDays {
  font-size: smaller;
  font-weight: 500;
  direction: ltr;
  text-align: left;
  color: var(--pk-text-2);
}
#ui_MainMenus_UserUI_phone {
  font-size: smaller;
  font-weight: 500;
  direction: ltr;
  text-align: left;
  color: var(--pk-text-2);
}
#ui_MainMenus_UserUI_UserName_row {
  position: absolute;
  top: 200px;
  width: max-content;
  display: block;
  text-align: center;
  padding: 3px;
  left: 50%;
  transform: translateX(-50%);
}
#ui_MainMenus_UserUI_UserName {
  display: inline-block;
  transform: translateY(10px);
  color: var(--pk-gold-1);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
#ui_MainMenus_UserUI_UserName_Edit {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-120%, 5px);
  background-color: var(--pk-surface-1);
  border: 1px solid var(--pk-line-2);
  color: var(--pk-gold-1);
  padding: 2px 5px;
  border-radius: 10px;
  cursor: pointer;
}
#ui_MainMenus_UserUI_BioRow {
  position: absolute;
  top: 240px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#ui_MainMenus_UserUI_Bio {
  background: var(--pk-grad-panel);
  border: 1px solid var(--pk-line);
  width: calc(100% - 100px);
  height: auto;
  max-height: 80px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  font-size: small;
  font-weight: 500;
  color: var(--pk-text-2);
  box-shadow: var(--pk-shadow-md);
}
#ui_MainMenus_UserUI_BioEdit {
  position: absolute;
  left: 40px;
  bottom: 0;
  background-color: var(--pk-surface-1);
  border: 1px solid var(--pk-line-2);
  color: var(--pk-gold-1);
  padding: 2px 5px;
  border-radius: 10px;
  transform: translate(-10px, 0px);
  cursor: pointer;
}



#ui_topbar_twoTimerPlayer {
  width: 100%;
  height: 70px;
  z-index: 1000;
  position: absolute;
  top: 65px;
  left: 0;
  right: 0;
  flex-direction: row;
  display: none;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}
#ui_topbar_twoTimerPlayer > div {
  width: 50%;
  height: 100%;
  border: 1px solid var(--pk-line);
  display: flex;
  flex-direction: column;
  background: var(--pk-glass-tint);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#ui_topbar_twoTimerPlayer > div:nth-child(1) > div {
  padding: 3px;
}
#ui_topbar_twoTimerPlayer > div:nth-child(1) > div {
  padding-left: 10px;
  justify-content: left;
  align-items: center;
}
#ui_topbar_twoTimerPlayer > div:nth-child(2) > div {
  padding-right: 10px;
  display: flex;
  justify-content: right;
  align-items: center;
}
#ui_topbar_twoTimerPlayer > div > div {
  width: 100%;
  height: 50%;
}
#ui_topbar_twoTimerPlayer .left-avatar {
  all: unset;
  width: 48px;
  height: 48px;
  border-radius: 40px;
  position: absolute;
  left: 7px;
  top: 3px;
  z-index: 1;
  transform: translate(11px, 11px);
  border: 1px solid var(--pk-line);
  background-size: cover;
}
#ui_topbar_twoTimerPlayer .left-avatar-border {
  all: unset;
  width: 70px;
  height: 70px;
  border-radius: 15px;
  position: absolute;
  left: 7px;
  top: 3px;
  z-index: 2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#ui_topbar_twoTimerPlayer .right-avatar {
  all: unset;
  width: 48px;
  height: 48px;
  border-radius: 40px;
  position: absolute;
  right: 7px;
  top: 3px;
  z-index: 1;
  transform: translate(-11px, 11px);
  border: 1px solid var(--pk-line);
  background-size: cover;
}
#ui_topbar_twoTimerPlayer .right-avatar-border {
  all: unset;
  width: 70px;
  height: 70px;
  border-radius: 15px;
  position: absolute;
  right: 7px;
  top: 3px;
  z-index: 2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#ui_topbar_twoTimerPlayer .right-name {
  all: unset;
  position: absolute;
  top: 3px;
  right: 80px;
  width: auto;
  font-size: small;
  color: var(--pk-gold-1);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
#ui_topbar_twoTimerPlayer .left-name {
  all: unset;
  position: absolute;
  top: 3px;
  left: 80px;
  width: auto;
  font-size: small;
  color: var(--pk-gold-1);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
#ui_topbar_twoTimerPlayer .left-time {
  all: unset;
  position: absolute;
  bottom: 3px;
  left: 85px;
  width: auto;
  font-size: small;
  color: var(--pk-aqua);
  font-weight: 700;
  letter-spacing: 1px;
}
#ui_topbar_twoTimerPlayer .right-time {
  all: unset;
  position: absolute;
  bottom: 3px;
  right: 85px;
  width: auto;
  font-size: small;
  color: var(--pk-aqua);
  font-weight: 700;
  letter-spacing: 1px;
}



#ludoPlayerBar {
  position: absolute;
  z-index: 1000;
  
  top: 0;
  left: 0;
  height: 0;
  
  pointer-events: none;
}
.ludo-player-bar {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 8px 2px;
  box-sizing: border-box;
}
.ludo-avatar-container {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.ludo-frame,
.ludo-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}
.ludo-frame {
  width: 100%;
  height: 100%;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
.ludo-avatar {
  width: 80%;
  height: 80%;
  z-index: 1;
}
.ludo-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--pk-gold-1);
  text-shadow:
    0 1px 3px #000,
    0 0 6px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.ludo-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--pk-aqua), var(--pk-aqua-2));
  box-shadow: 0 0 10px rgba(10, 200, 185, 0.7);
  border-radius: 2px;
  transition: width 0.1s linear;
}




#ludoRollBtn {
  position: fixed;
  
  display: none;
  pointer-events: none;
  z-index: 1500;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 16px;
  color: #201703;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: linear-gradient(180deg, #ffeec4 0%, #ffc65c 55%, #d9992a 100%);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateZ(0);
}

#ludoRollBtn .ludo-roll-btn-icon {
  font-size: 17px;
  line-height: 1;
}

#ludoRollBtn.is-on {
  display: flex;
  pointer-events: auto;
  animation: ludoRollBtnPulse 1.4s ease-in-out infinite;
}

#ludoRollBtn:active {
  transform: scale(0.96);
}

@keyframes ludoRollBtnPulse {
  0%,
  100% {
    box-shadow:
      0 6px 16px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  50% {
    box-shadow:
      0 6px 22px rgba(255, 197, 92, 0.75),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  #ludoRollBtn.is-on {
    animation: none;
  }
}



#ui_changeAvatar {
  position: fixed;
  inset: 0;
  background: var(--pk-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
  animation: ui_changeAvatar_fadeIn 0.2s ease-out;
  direction: rtl;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}
#ui_changeAvatar.active {
  display: flex;
}
@keyframes ui_changeAvatar_fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes ui_changeAvatar_slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#ui_changeAvatar .ui_changeAvatar_modal {
  width: 100%;
  max-width: 480px;
  background: var(--pk-grad-panel);
  border: 1px solid var(--pk-line);
  border-radius: 32px;
  box-shadow: var(--pk-shadow-xl);
  overflow: hidden;
  animation: ui_changeAvatar_slideUp 0.25s ease-out forwards;
  display: flex;
  flex-direction: column;
  max-height: 95vh;
}
#ui_changeAvatar .ui_changeAvatar_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--pk-line);
  background: linear-gradient(180deg, var(--pk-surface-1), var(--pk-surface-2));
  flex-shrink: 0;
}
#ui_changeAvatar .ui_changeAvatar_header .ui_changeAvatar_title {
  font-weight: 800;
  font-size: 17px;
  color: var(--pk-gold-1);
  display: flex;
  align-items: center;
  gap: 10px;
}
#ui_changeAvatar .ui_changeAvatar_header .ui_changeAvatar_title svg {
  width: 22px;
  height: 22px;
  fill: var(--pk-aqua);
}
#ui_changeAvatar .ui_changeAvatar_closeBtn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--pk-line);
  background: var(--pk-glass-tint);
  cursor: pointer;
  color: var(--pk-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: 0.15s;
}
#ui_changeAvatar .ui_changeAvatar_closeBtn:hover {
  background: rgba(10, 200, 185, 0.16);
  border-color: var(--pk-line-2);
  color: var(--pk-gold-1);
  transform: rotate(90deg);
}
#ui_changeAvatar .ui_changeAvatar_body {
  padding: 20px 24px 16px;
  overflow-y: auto;
  flex: 1;
}
#ui_changeAvatar .ui_changeAvatar_avatarPreview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
#ui_changeAvatar .ui_changeAvatar_avatarCircle {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: var(--pk-panel-2);
  border: 2px solid rgba(200, 170, 110, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ui_changeAvatar .ui_changeAvatar_avatarCircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#ui_changeAvatar .ui_changeAvatar_avatarCircle .ui_changeAvatar_placeholder {
  font-size: 34px;
  color: var(--pk-text-muted);
  user-select: none;
}
#ui_changeAvatar .ui_changeAvatar_avatarInfo {
  font-size: 14px;
  color: var(--pk-text);
  line-height: 1.6;
}
#ui_changeAvatar .ui_changeAvatar_avatarInfo strong {
  color: var(--pk-gold-1);
  display: block;
  font-size: 15px;
}
#ui_changeAvatar .ui_changeAvatar_cropWrapper {
  background: var(--pk-glass-tint-strong);
  border-radius: 20px;
  border: 1px solid var(--pk-line);
  overflow: hidden;
  position: relative;
  margin: 8px 0 14px;
  touch-action: none;
  user-select: none;
  display: none;
  width: 90%;
}
#ui_changeAvatar .ui_changeAvatar_cropWrapper.visible {
  display: block;
}
#ui_changeAvatar .ui_changeAvatar_cropContainer {
  position: relative;
  display: inline-block;
  width: 100%;
  line-height: 0;
}
#ui_changeAvatar .ui_changeAvatar_cropContainer img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
#ui_changeAvatar .ui_changeAvatar_cropBox {
  position: absolute;
  border: 2px solid var(--pk-aqua);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px var(--pk-crop-mask);
  cursor: move;
  touch-action: none;
  pointer-events: auto;
  left: 20%;
  top: 20%;
  width: 60%;
  height: 60%;
  background: transparent;
  transition: none;
}
#ui_changeAvatar .ui_changeAvatar_cropBox::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px dashed rgba(240, 230, 210, 0.45);
  pointer-events: none;
}
#ui_changeAvatar .ui_changeAvatar_resizeHandle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--pk-aqua);
  border: 2px solid var(--pk-on-aqua);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  touch-action: none;
  z-index: 5;
}
#ui_changeAvatar .ui_changeAvatar_resizeHandle.nw {
  top: -8px;
  left: -8px;
  cursor: nw-resize;
}
#ui_changeAvatar .ui_changeAvatar_resizeHandle.ne {
  top: -8px;
  right: -8px;
  cursor: ne-resize;
}
#ui_changeAvatar .ui_changeAvatar_resizeHandle.sw {
  bottom: -8px;
  left: -8px;
  cursor: sw-resize;
}
#ui_changeAvatar .ui_changeAvatar_resizeHandle.se {
  bottom: -8px;
  right: -8px;
  cursor: se-resize;
}
#ui_changeAvatar .ui_changeAvatar_cropHint {
  text-align: center;
  font-size: 13px;
  color: var(--pk-text);
  margin: 4px 0 10px;
}
#ui_changeAvatar .ui_changeAvatar_actionRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0 4px;
}
#ui_changeAvatar .ui_changeAvatar_btn {
  border: none;
  cursor: pointer;
  border-radius: 40px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 120px;
}
#ui_changeAvatar .ui_changeAvatar_btn-primary {
  background: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-2));
  color: var(--pk-on-aqua);
  box-shadow: 0 8px 20px -10px rgba(10, 200, 185, 0.85);
}
#ui_changeAvatar .ui_changeAvatar_btn-primary:hover {
  background: var(--pk-grad-aqua-hover);
  transform: translateY(-2px);
}
#ui_changeAvatar .ui_changeAvatar_btn-ghost {
  background: var(--pk-surface-3);
  color: var(--pk-text-2);
  border: 1px solid var(--pk-line);
}
#ui_changeAvatar .ui_changeAvatar_btn-ghost:hover {
  background: rgba(10, 200, 185, 0.14);
  border-color: rgba(10, 200, 185, 0.4);
  color: var(--pk-gold-1);
  transform: translateY(-2px);
}
#ui_changeAvatar .ui_changeAvatar_btn-danger {
  background: rgba(224, 128, 128, 0.14);
  color: var(--pk-danger);
  border: 1px solid rgba(224, 128, 128, 0.4);
}
#ui_changeAvatar .ui_changeAvatar_btn-danger:hover {
  background: rgba(224, 128, 128, 0.24);
  transform: translateY(-2px);
}
#ui_changeAvatar .ui_changeAvatar_btn-success {
  background: var(--pk-grad-gold);
  color: var(--pk-on-gold);
  box-shadow: 0 8px 20px -12px rgba(200, 170, 110, 0.9);
}
#ui_changeAvatar .ui_changeAvatar_btn-success:hover {
  background: var(--pk-grad-gold-hover);
  transform: translateY(-2px);
}
#ui_changeAvatar .ui_changeAvatar_btn:disabled {
  opacity: 0.5;
  pointer-events: none;
  transform: none !important;
}
#ui_changeAvatar .ui_changeAvatar_fileInput {
  display: none;
}
#ui_changeAvatar .ui_changeAvatar_fileMeta {
  background: var(--pk-glass-tint);
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--pk-text);
  border: 1px solid var(--pk-line);
  margin: 8px 0 4px;
  text-align: center;
}
#ui_changeAvatar .ui_changeAvatar_fileMeta .highlight {
  color: var(--pk-gold-1);
  font-weight: 600;
}
#ui_changeAvatar .ui_changeAvatar_error {
  background: rgba(224, 128, 128, 0.12);
  border: 1px solid rgba(224, 128, 128, 0.45);
  color: var(--pk-danger);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px;
  display: none;
  margin: 8px 0 4px;
}
#ui_changeAvatar .ui_changeAvatar_error.show {
  display: block;
}
#ui_changeAvatar .ui_changeAvatar_footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--pk-line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, var(--pk-surface-2), var(--pk-surface-1));
  flex-shrink: 0;
}
#ui_changeAvatar .ui_changeAvatar_emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 10px 28px;
  text-align: center;
}
#ui_changeAvatar .ui_changeAvatar_emptyState .icon-big {
  font-size: 56px;
  margin-bottom: 8px;
  opacity: 0.6;
  filter: drop-shadow(0 0 20px rgba(10, 200, 185, 0.35));
}
#ui_changeAvatar .ui_changeAvatar_emptyState h4 {
  color: var(--pk-gold-1);
  font-size: 18px;
  margin-bottom: 4px;
}
#ui_changeAvatar .ui_changeAvatar_emptyState p {
  color: var(--pk-text);
  font-size: 14px;
  max-width: 280px;
}
#ui_changeAvatar .ui_changeAvatar_hidden {
  display: none !important;
}
@media (max-width: 600px) {
  #ui_changeAvatar .ui_changeAvatar_modal {
    max-width: 100%;
    border-radius: 24px;
    max-height: 98vh;
  }
  #ui_changeAvatar .ui_changeAvatar_header {
    padding: 14px 16px;
  }
  #ui_changeAvatar .ui_changeAvatar_body {
    padding: 14px 16px 10px;
  }
  #ui_changeAvatar .ui_changeAvatar_footer {
    padding: 12px 16px 18px;
  }
  #ui_changeAvatar .ui_changeAvatar_avatarPreview {
    gap: 14px;
  }
  #ui_changeAvatar .ui_changeAvatar_avatarCircle {
    width: 64px;
    height: 64px;
  }
  #ui_changeAvatar .ui_changeAvatar_btn {
    font-size: 13px;
    padding: 8px 16px;
    min-height: 40px;
    min-width: 100px;
  }
  #ui_changeAvatar .ui_changeAvatar_resizeHandle {
    width: 14px;
    height: 14px;
  }
}



#ui_shop_item_modal {
  display: none;
  direction: rtl;
}
#ui_shop_item_modal > div {
  display: block;
  background: var(--pk-grad-panel);
  border: 1px solid var(--pk-line);
  width: 100%;
  height: 500px;
  margin: 10px;
  max-width: 414px;
  border-radius: 20px;
  position: relative;
  box-shadow: var(--pk-shadow-xl);
}
#ui_shop_item_modal_image {
  width: 100%;
  aspect-ratio: 1620 / 972;
  background-image: url();
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 40px;
}
#ui_shop_item_modal_title {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--pk-gold-1);
  font-weight: 700;
}
#ui_shop_item_modal_text {
  margin: 8px;
  color: var(--pk-text);
}
#ui_shop_item_modal_buybtn {
  display: block;
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 60%;
  background: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-2));
  padding: 20px 10px;
  text-align: center;
  color: var(--pk-on-aqua);
  font-size: larger;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  transition-duration: 0.3s;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(10, 200, 185, 0.9);
}
#ui_shop_item_modal_buybtn:hover {
  box-shadow: 0 14px 28px -12px rgba(10, 200, 185, 1);
}
#ui_shop_item_modal_cancelbtn {
  display: block;
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 30%;
  background: rgba(224, 128, 128, 0.16);
  border: 1px solid rgba(224, 128, 128, 0.45);
  padding: 20px 10px;
  text-align: center;
  color: var(--pk-danger);
  font-size: large;
  font-weight: 500;
  font-family: inherit;
  border-radius: 10px;
  transition-duration: 0.3s;
  cursor: pointer;
}
#ui_shop_item_modal_cancelbtn:hover {
  background: rgba(224, 128, 128, 0.26);
}



#ui_items_coll {
  width: 100vw;
  max-width: 750px;
  height: 100vh;
  margin: 0 auto;
  background: var(--pk-grad-page);
  display: none;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
  text-align: center;
  z-index: 4000;
  color: var(--pk-text);
}
#ui_items_coll .close-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(224, 128, 128, 0.4);
  background-color: rgba(224, 128, 128, 0.14);
  color: var(--pk-danger);
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#ui_items_coll .close-btn:hover {
  background-color: rgba(224, 128, 128, 0.26);
}
#ui_items_coll h4 {
  margin: 20px 0 10px;
  color: var(--pk-gold-1);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
#ui_items_coll_header {
  width: 100%;
  padding: 0 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--pk-text);
  font-size: 0.9rem;
  background: transparent;
}
#ui_items_coll_items {
  flex: 1;
  width: 100%;
  padding: 15px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  background-color: transparent;
  border-top: 1px solid var(--pk-line);
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
}
.ui_items_coll_item_card {
  background: var(--pk-grad-panel);
  border: 1px solid var(--pk-line);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: var(--pk-shadow-card);
  position: relative;
}
.ui_items_coll_item_card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pk-shadow-card), var(--pk-glow-aqua);
  border-color: var(--pk-line-2);
}
.ui_items_coll_item_card.selected {
  border-color: var(--pk-aqua);
  box-shadow: 0 0 0 3px rgba(10, 200, 185, 0.2);
  background: linear-gradient(
    160deg,
    rgba(10, 200, 185, 0.16),
    var(--pk-surface-2)
  );
}
.ui_items_coll_item_image {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: 0.2s ease;
}
.ui_items_coll_item_card:hover .ui_items_coll_item_image {
  transform: scale(1.03);
}
.ui_items_coll_item_title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pk-gold-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ui_items_coll_item_usebtn {
  width: 100%;
  padding: 8px 0;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: 0.2s ease;
  cursor: pointer;
  user-select: none;
}
.ui_items_coll_item_usebtn.use {
  background: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-2));
  color: var(--pk-on-aqua);
  border: none;
  box-shadow: 0 6px 16px -10px rgba(10, 200, 185, 0.85);
}
.ui_items_coll_item_usebtn.use:hover {
  background: var(--pk-grad-aqua-hover);
  box-shadow: 0 8px 20px -10px rgba(10, 200, 185, 1);
}
.ui_items_coll_item_usebtn.unuse {
  background-color: var(--pk-surface-3);
  color: var(--pk-text-2);
  border: 1px solid var(--pk-line);
}
.ui_items_coll_item_usebtn.unuse:hover {
  background-color: rgba(224, 128, 128, 0.16);
  color: var(--pk-danger);
  border-color: rgba(224, 128, 128, 0.45);
}
.ui_items_coll_item_usebtn.hidden {
  display: none !important;
}
@media (max-width: 550px) {
  #ui_items_coll_items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }
  .ui_items_coll_item_image {
    height: 70px;
  }
}
@media (min-width: 551px) {
  #ui_items_coll_items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}




body .modal {
  color: var(--pk-text);
}
body .modal-content {
  background: var(--pk-grad-panel);
  border: 1px solid var(--pk-line);
  color: var(--pk-text);
  border-radius: 18px;
  box-shadow: var(--pk-shadow-xl);
}
body .modal-content h3,
body .modal-content h4,
body .modal-content h5 {
  color: var(--pk-gold-1);
}
body .modal-content sub,
body .modal-content small {
  color: var(--pk-text);
}
body .modal-content .error {
  color: var(--pk-danger);
}

body .modal-content .btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-family: inherit;
}
body .modal-content .btn-info,
body .modal-content .btn-primary {
  background: var(--pk-grad-aqua);
  color: var(--pk-on-aqua);
  border-color: rgba(205, 250, 250, 0.3);
}
body .modal-content .btn-success {
  background: var(--pk-grad-gold);
  color: var(--pk-on-gold);
}
body .modal-content .btn-danger {
  background: rgba(224, 128, 128, 0.14);
  border-color: rgba(224, 128, 128, 0.5);
  color: var(--pk-danger);
}
body .modal-content .btn-danger:hover {
  background: rgba(224, 128, 128, 0.26);
}
body .modal-content .btn-info:hover,
body .modal-content .btn-primary:hover,
body .modal-content .btn-success:hover {
  filter: brightness(1.1);
}
body .modal-content .close,
body .modal-content button.close {
  color: var(--pk-text-2);
  opacity: 0.85;
  text-shadow: none;
}
body .modal-content .close:hover {
  color: var(--pk-gold-1);
  opacity: 1;
}

.modal-backdrop,
.modal-backdrop.in {
  background-color: var(--pk-modal-backdrop);
}
.modal-backdrop.in {
  opacity: 0.72;
}

#ui_mainMenu .btn-secondary {
  background: var(--pk-grad-gold);
  color: var(--pk-on-gold);
  border: none;
}
#ui_mainMenu .btn-secondary:hover {
  filter: brightness(1.1);
}

#ui_avatar_frame_modal_closeBTN {
  background: var(--pk-surface-1) !important;
  border: 1px solid var(--pk-line);
  color: var(--pk-text-2);
}


input,
textarea,
select {
  font-family: inherit;
}
#ui_mainMenu .form-control,
#ui_mainMenu input[type="text"],
#ui_mainMenu input[type="search"],
#ui_mainMenu input[type="password"] {
  background-color: var(--pk-input-bg);
  border: 1px solid var(--pk-line);
  color: var(--pk-gold-1);
  border-radius: 10px;
}
#ui_mainMenu .form-control::placeholder,
#ui_mainMenu input::placeholder {
  color: var(--pk-text-muted);
}
#ui_mainMenu .form-control:focus,
#ui_mainMenu input[type="text"]:focus,
#ui_mainMenu input[type="search"]:focus,
#ui_mainMenu input[type="password"]:focus {
  border-color: rgba(10, 200, 185, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 200, 185, 0.14);
  outline: none;
}


.ball-grid-beat,
.ball-grid-beat > div {
  color: var(--pk-aqua);
}
.ball-grid-beat > div {
  background-color: var(--pk-aqua) !important;
}
#onloadcontentscreen {
  background:
    radial-gradient(
      ellipse 60% 40% at 50% 0%,
      rgba(10, 200, 185, 0.16),
      transparent 62%
    ),
    var(--pk-bg);
}
#onloadcontentscreen h1 {
  color: var(--pk-gold-1);
}



#obtain_coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  min-width: 0;
  max-width: 100%;
  padding: 0 14px;
  box-sizing: border-box;
  flex-shrink: 0;          

  border: 1px solid var(--pk-line-2);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(200, 170, 110, 0.24),
    rgba(200, 170, 110, 0.08)
  );
  color: var(--pk-gold-1);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    var(--pk-shadow-md),
    inset 0 1px 0 rgba(240, 230, 210, 0.16);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}


#obtain_coin .coin-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--pk-gold-2);
}

#obtain_coin .coin-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: hover) {
  #obtain_coin:hover {
    background: var(--pk-grad-gold);
    border-color: var(--pk-gold-2);
    color: var(--pk-on-gold);
    transform: translateY(-1px);
    box-shadow:
      0 10px 22px -14px rgba(200, 170, 110, 0.95),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }
  #obtain_coin:hover .coin-icon {
    color: currentColor;
  }
}

#obtain_coin:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#obtain_coin:focus-visible {
  outline: 2px solid var(--pk-aqua);
  outline-offset: 2px;
}




.inLobby_profile-status-label {
  color: var(--pk-text-2);
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}


.player-slot__voice,
.member-bubble__voice {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  background: var(--pk-surface-1);
  border: 1px solid var(--pk-line);
  color: var(--pk-aqua);
  z-index: 4;
  pointer-events: none;
}
.player-slot__voice.is-muted,
.member-bubble__voice.is-muted {
  color: var(--pk-danger);
  border-color: rgba(224, 128, 128, 0.5);
}


.msg-edit-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--pk-aqua);
  border-radius: 10px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--pk-overlay);
  color: var(--pk-gold-1);
  outline: none;
  direction: rtl;
}


#lobbySearch {
  position: relative;
  width: calc(100% - 40px);
  margin-right: 15px;
}

#lobbySearch input {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  text-align: center;
  padding-right: 40px;
  padding-left: 40px;
  border: 1px solid #ccc;
  outline: none;
  font: inherit;
  transition: border-color 0.2s;
}

#lobbySearch input:focus {
  border-color: #4a90e2;
}

#lobbySearch .search-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  font-size: 16px;
  border-radius: 4px;
  transition:
    background 0.15s,
    color 0.15s;
}

#lobbySearch .search-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

#searchBtn {
  right: 8px;
}

#clearBtn {
  left: 8px;
  color: #888;
  font-size: 13px;
  display: none;
}

#clearBtn.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#clearBtn:hover {
  color: #d9534f;
}





.wheelTopBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  height: 36px;
  padding: 0 15px;
  margin-inline-start: 8px;
  border: 1px solid var(--pk-line-2);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(10, 200, 185, 0.24),
    rgba(10, 200, 185, 0.08)
  );
  color: var(--pk-aqua);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  box-shadow:
    var(--pk-shadow-md),
    inset 0 1px 0 rgba(240, 230, 210, 0.16);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.wheelTopBtn:hover {
  background: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-3));
  border-color: var(--pk-aqua);
  color: var(--pk-on-aqua);
  transform: translateY(-2px);
  box-shadow:
    0 12px 26px -12px rgba(10, 200, 185, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.wheelTopBtn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.wheelTopBtn.is-disabled {
  filter: grayscale(0.6) brightness(0.85);
  opacity: 0.78;
}
.wheelTopBtn.is-ready {
  animation: wheelPulse 1.8s ease-in-out infinite;
}
.wheelTopBtn__icon {
  font-size: 17px;
  line-height: 1;
}
.wheelTopBtn__badge {
  position: absolute;
  inset-inline-end: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pk-gold-2);
  color: var(--pk-on-gold);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.wheelTopBtn {
  position: relative;
}

@keyframes wheelPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(10, 200, 185, 0.55),
      var(--pk-shadow-md);


.wheelPage {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 12px 12px 90px;
  direction: rtl;
  width: 100vw;
  height: 100vh;
  color: var(--pk-text);
  background:
    radial-gradient(
      ellipse 60% 42% at 88% -6%,
      rgba(10, 200, 185, 0.16),
      transparent 62%
    ),
    radial-gradient(
      ellipse 55% 38% at 6% 14%,
      rgba(200, 170, 110, 0.13),
      transparent 62%
    ),
    var(--pk-grad-page, #010a13);
}
.wheelPage.wheelPage--open {
  display: flex !important;
}
.wheelPage__inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.wheelPage__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 44px;
}
.wheelPage__back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px 6px 4px;
  border: 1px solid var(--pk-line);
  border-radius: 10px;
  background: var(--pk-surface-3);
  color: var(--pk-text-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.wheelPage__back:hover { color: var(--pk-gold-1); border-color: var(--pk-line-2); }
.wheelPage__back svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1);
}
.wheelPage__title {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--pk-gold-1);
  text-align: center;
}
.wheelPage__coins {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--pk-line);
  border-radius: 999px;
  background: var(--pk-surface-3);
  color: var(--pk-gold-2);
  font-size: 13px;
  font-weight: 800;
}
.wheelPage__stats {
  display: flex;
  gap: 8px;
}
.wheelStat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: 1px solid var(--pk-line-3);
  border-radius: 12px;
  background: var(--pk-surface-3);
}
.wheelStat span {
  font-size: 10px;
  color: var(--pk-text-muted);
}
.wheelStat b {
  font-size: 13px;
  color: var(--pk-gold-1);
  font-variant-numeric: tabular-nums;
}
.wheelProgress {
  height: 6px;
  border-radius: 999px;
  background: rgba(1, 10, 19, 0.7);
  overflow: hidden;
}
.wheelProgress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pk-aqua-3), var(--pk-aqua));
  transition: width 0.35s ease;
}


.wheelStage {
  position: relative;
  width: min(88vw, 340px);
  aspect-ratio: 1 / 1;
  margin: 6px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheelStage__glow {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(10, 200, 185, 0.18),
    transparent 68%
  );
  pointer-events: none;
}
.wheelStage__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -11px;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid var(--pk-gold-2);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.7));
  z-index: 4;
}
.wheelDisc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  will-change: transform;
}
.wheelDisc__svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(1, 10, 19, 0.85),
    0 0 0 7px var(--pk-line-2),
    0 18px 40px -18px rgba(0, 0, 0, 0.95);
}
.wheelDisc__label {
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  fill: var(--pk-gold-1);
  pointer-events: none;
}
.wheelDisc__empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pk-surface-3);
  color: var(--pk-text-muted);
  font-size: 12px;
}
.wheelHub {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #0a1e2c;
  background: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-3));
  color: var(--pk-on-aqua);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.9);
}
.wheelHub:hover:not(:disabled) { transform: scale(1.05); }
.wheelHub:active:not(:disabled) { transform: scale(0.97); }
.wheelHub:disabled {
  background: var(--pk-surface-3);
  border-color: var(--pk-line-3);
  color: var(--pk-text-muted);
  cursor: not-allowed;
}
.wheelHub.is-ready { animation: wheelPulse 1.6s ease-in-out infinite; }
.wheelHub.is-spinning { opacity: 0.5; }

.wheelHint {
  text-align: center;
  font-size: 12px;
  color: var(--pk-text-2);
  min-height: 18px;
}



.wheelActions {
  display: flex;
  gap: 10px;
}
.wheelBtn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--pk-line-2);
  background: var(--pk-surface-3);
  color: var(--pk-gold-1);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.wheelBtn--primary {
  background: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-3));
  border-color: var(--pk-aqua);
  color: var(--pk-on-aqua);
}
.wheelBtn--ghost {
  background: transparent;
  color: var(--pk-text-2);
}
.wheelBtn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.wheelBtn:active:not(:disabled) { transform: translateY(0); }
.wheelBtn:disabled {
  filter: grayscale(0.75) brightness(0.8);
  opacity: 0.7;
  cursor: not-allowed;
}
.wheelBtn__icon { font-size: 15px; line-height: 1; }

.wheelSlotsList__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--pk-text-muted);
  margin-bottom: 8px;
}
.wheelSlotsList__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}
.wheelSlotChip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--pk-line-3);
  border-radius: 10px;
  background: var(--pk-surface-3);
  min-width: 0;
}
.wheelSlotChip__num {
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pk-aqua-3);
  color: var(--pk-gold-1);
  font-size: 10px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.wheelSlotChip__name {
  font-size: 12px;
  color: var(--pk-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.wheelHistory {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--pk-overlay);
  backdrop-filter: blur(6px);
}
.wheelHistory__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 460px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pk-line-3);
}
.wheelHistory__head h2 {
  margin: 0;
  font-size: 15px;
  color: var(--pk-gold-1);
}
.wheelHistory__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--pk-line);
  background: var(--pk-surface-3);
  color: var(--pk-text-2);
  font-size: 14px;
  cursor: pointer;
}
.wheelHistory__body {
  width: 100%;
  max-width: 460px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 8px 12px 16px;
}
.wheelHistory {
  background: transparent;
}
.wheelHistory > .wheelHistory__head,
.wheelHistory > .wheelHistory__body {
  background: var(--pk-panel);
  border-inline: 1px solid var(--pk-line-3);
}
.wheelHistory > .wheelHistory__head {
  border-radius: 14px 14px 0 0;
}
.wheelHistory > .wheelHistory__body {
  border-radius: 0 0 14px 14px;
  border-bottom: 1px solid var(--pk-line-3);
}
.wheelHistory__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--pk-line-3);
}
.wheelHistory__row:last-child { border-bottom: 0; }
.wheelHistory__art {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--pk-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wheelHistory__art img { width: 100%; height: 100%; object-fit: contain; }
.wheelHistory__emoji { font-size: 18px; }
.wheelHistory__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wheelHistory__meta b {
  font-size: 12.5px;
  color: var(--pk-gold-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wheelHistory__meta span { font-size: 10.5px; color: var(--pk-text-muted); }
.wheelHistory__badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 155, 94, 0.18);
  color: var(--pk-ok-2);
  font-size: 10px;
  font-weight: 700;
}
.wheelHistory__empty {
  padding: 26px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--pk-text-muted);
}







.wheelPrize {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--pk-overlay);
  backdrop-filter: blur(7px);
  animation: wheelFadeIn 0.22s ease;
}
.wheelPrize__box {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 22px 20px 18px;
  border: 1px solid var(--pk-line-2);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200, 170, 110, 0.2), transparent 70%),
    var(--pk-panel);
  text-align: center;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.95);
  animation: wheelPop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.wheelPrize__art {
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line);
  overflow: hidden;
}
.wheelPrize__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wheelPrize__emoji { font-size: 40px; }
.wheelPrize__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.wheelPrize__sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--pk-text-2);
  line-height: 1.7;
}
.wheelPrize__box .wheelBtn {
  flex: none;
  width: 100%;
}

@keyframes wheelFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wheelPop {
  from { opacity: 0; transform: scale(0.9) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}



.wheelToastHost {
  position: fixed;
  inset-inline: 0;
  
  bottom: 50%;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}
.wheel-toast {
  max-width: 420px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--pk-line-2);
  background: var(--pk-surface-1);
  color: var(--pk-gold-1);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.9);
  animation: wheelToastIn 0.25s ease;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.wheel-toast--error {
  border-color: rgba(224, 128, 128, 0.5);
  color: var(--pk-danger);
}
.wheel-toast--success {
  border-color: rgba(34, 197, 94, 0.45);
  color: var(--pk-ok-2);
}
.wheel-toast--warning {
  border-color: rgba(200, 170, 110, 0.55);
  color: var(--pk-gold-2);
}
.wheel-toast.is-out {
  opacity: 0;
  transform: translateY(6px);
}

@keyframes wheelToastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}



@media (max-width: 480px) {
  .wheelPage { padding-bottom: 80px; }
  .wheelStage { width: min(92vw, 300px); }
  .wheelHub { width: 76px; height: 76px; font-size: 12px; }
  .wheelPage__title { font-size: 16px; }
  .wheelTopBtn { min-width: 0; padding: 0 11px; }
  .wheelTopBtn__label { display: none; }
}


  }
  50% {
    box-shadow:
      0 0 0 8px rgba(10, 200, 185, 0),
      var(--pk-shadow-md);
  }
}





#ui_login_inviteRow {
  width: 100%;
  max-width: 420px;
  margin: 4px 0 0;
}
#ui_login_inviteRow .form-control {
  text-align: center;
  direction: ltr;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
#ui_login_inviteHint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pk-text-muted);
  text-align: center;
  transition: color 0.2s ease;
}
#ui_login_inviteHint.is-bad {
  color: var(--pk-danger);
}


.invite-page {
  width: 100%;
  max-width: 520px;
  height: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 12px 18px;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.invite-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px 10px;
  background: linear-gradient(
    to bottom,
    var(--pk-glass-bar-1) 60%,
    transparent
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.invite-head__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.invite-head__back {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--pk-line);
  border-radius: var(--radius-sm);
  background: var(--pk-surface-2);
  color: var(--pk-gold-2);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.invite-head__back:hover {
  background: var(--pk-surface-hover-1);
  border-color: var(--pk-line-2);
}
.invite-head__back:active {
  transform: scale(0.94);
}
.invite-head__back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.invite-state {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
}
.invite-state[hidden] {
  display: none;
}
.invite-state p {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--pk-text);
}
.invite-state__icon {
  font-size: 38px;
  line-height: 1;
}
.invite-state__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--pk-line-3);
  border-top-color: var(--pk-aqua);
  animation: inviteSpin 0.85s linear infinite;
}
@keyframes inviteSpin {
  to {
    transform: rotate(360deg);
  }
}
.invite-state--err .invite-state__icon {
  filter: saturate(1.2);
}


.invite-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.invite-body[hidden] {
  display: none;
}

.invite-card {
  padding: 14px;
  border: 1px solid var(--pk-line);
  border-radius: var(--radius);
  background: var(--pk-surface-1);
  box-shadow: var(--pk-shadow-card);
  box-sizing: border-box;
}
.invite-card--code {
  background:
    radial-gradient(
      ellipse 80% 120% at 100% 0%,
      rgba(10, 200, 185, 0.12),
      transparent 62%
    ),
    var(--pk-surface-1);
}
.invite-card__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pk-text-2);
}


.invite-code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  direction: ltr;
}
.invite-code {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 1px dashed var(--pk-line-2);
  border-radius: var(--radius-sm);
  background: var(--pk-input-bg);
  color: var(--pk-gold-1);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: clamp(20px, 6.2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-indent: 0.2em; 
  line-height: 1.2;
  text-transform: uppercase;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}


.invite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--pk-line-2);
  border-radius: var(--radius-sm);
  background: var(--pk-surface-3);
  color: var(--pk-gold-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.invite-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.invite-btn:hover:not(:disabled) {
  border-color: var(--pk-gold-2);
  color: var(--pk-gold-1);
  transform: translateY(-1px);
}
.invite-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}
.invite-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.invite-btn--sm {
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  font-size: 12px;
}
.invite-btn--sm svg {
  width: 16px;
  height: 16px;
}
.invite-btn--primary {
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pk-aqua), var(--pk-aqua-3));
  color: var(--pk-on-aqua);
  font-size: 15px;
  box-shadow:
    var(--pk-shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.invite-btn--primary:hover:not(:disabled) {
  color: var(--pk-on-aqua);
  box-shadow:
    0 12px 26px -12px rgba(10, 200, 185, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.invite-btn--ghost {
  background: transparent;
  border-color: var(--pk-line);
}


.invite-reward {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--pk-text-muted);
  text-align: center;
}
.invite-reward b {
  color: var(--pk-gold-2);
  font-weight: 800;
}
.invite-limit {
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(224, 128, 128, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(224, 128, 128, 0.1);
  color: var(--pk-danger);
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
}
.invite-limit[hidden] {
  display: none;
}


.invite-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.invite-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid var(--pk-line-3);
  border-radius: var(--radius-sm);
  background: var(--pk-surface-3);
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.invite-stat.is-limit {
  border-color: rgba(224, 128, 128, 0.45);
  background: rgba(224, 128, 128, 0.08);
}
.invite-stat__value {
  font-size: clamp(16px, 4.6vw, 19px);
  font-weight: 800;
  color: var(--pk-gold-1);
  line-height: 1.2;
  direction: rtl;
}
.invite-stat.is-limit .invite-stat__value {
  color: var(--pk-danger);
}
.invite-stat__label {
  font-size: 11px;
  color: var(--pk-text-muted);
  white-space: nowrap;
}


.invite-progress {
  position: relative;
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--pk-input-bg);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.invite-progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pk-aqua-3), var(--pk-aqua));
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}
.invite-progress__bar.is-full {
  background: linear-gradient(90deg, var(--pk-gold-3), var(--pk-gold-2));
}
.invite-progress__bar.is-limit {
  background: linear-gradient(90deg, #8a3a3a, var(--pk-danger));
}


.invite-summary {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--pk-text);
  text-align: center;
}
.invite-summary b {
  color: var(--pk-gold-2);
  font-weight: 800;
}
.invite-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.85;
  text-align: center;
}
.invite-hint[hidden] {
  display: none;
}
.invite-hint--warn {
  border: 1px solid var(--pk-line);
  background: var(--pk-surface-3);
  color: var(--pk-text-muted);
}


.invite-gift {
  font-size: 52px;
  line-height: 1.15;
  text-align: center;
  animation: inviteGiftPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  filter: drop-shadow(0 8px 18px rgba(200, 170, 110, 0.45));
}
@keyframes inviteGiftPop {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-12deg);
  }
  60% {
    transform: scale(1.12) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
.invite-gift__sub {
  font-size: 12.5px;
  color: var(--pk-text-muted);
}


@media (max-width: 400px) {
  .invite-page {
    padding: 0 8px 16px;
    gap: 10px;
  }
  .invite-card {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
  }
  .invite-head__title {
    font-size: 15px;
  }
  .invite-code {
    padding: 10px 6px;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }
  .invite-btn--sm {
    padding: 7px 9px;
    font-size: 11px;
  }
  .invite-stat {
    padding: 8px 5px;
  }
  .invite-stat__label {
    font-size: 10px;
  }
  .invite-btn--primary {
    font-size: 13.5px;
    padding: 11px 12px;
  }
}


@media (max-height: 480px) {
  .invite-page {
    gap: 8px;
    padding-bottom: 10px;
  }
  .invite-state {
    padding: 18px 12px;
  }
  .invite-gift {
    font-size: 40px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .invite-state__spinner,
  .invite-gift {
    animation: none;
  }
  .invite-progress__bar,
  .invite-btn,
  .invite-head__back {
    transition: none;
  }
}





