@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #6c56f5;
  --secondary-color: #7c6ef6;
  --background-color: #141423;
  --element-background: #171925;
  --element-dark: #171925;
  --border-color: #202233;
  --text-muted: #9ca3af;
  --text-accent: #a78bfa;
  --subheader-text: #6089b9;
  --success: #10b981;
  --danger: #ef4444;
  --footer-height: 80px;

  --button-color: #6c56f5;
  --button-color_hover: #7c6ef6;
  --button-color_text: #ffffff;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background-color: #141423;
  color: white;
}

/* ===== CRAZY MODE FIRE ANIMATION ===== */
.game-container.crazy-mode::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 300px;
  pointer-events: none;
  z-index: 15;
}

.game-container.crazy-mode::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(255, 100, 0, 0.8) 0%, rgba(255, 50, 0, 0.6) 30%, transparent 70%);
  pointer-events: none;
  z-index: 14;
  filter: blur(20px);
  animation: crazy-mode-fire 0.6s ease-in-out infinite;
}

@keyframes crazy-mode-fire {
  0% {
    background: radial-gradient(ellipse at center, rgba(255, 150, 0, 0.8) 0%, rgba(255, 80, 0, 0.6) 30%, transparent 70%);
    filter: blur(20px);
  }
  50% {
    background: radial-gradient(ellipse at center, rgba(255, 80, 0, 0.9) 0%, rgba(255, 30, 0, 0.7) 30%, transparent 70%);
    filter: blur(25px);
  }
  100% {
    background: radial-gradient(ellipse at center, rgba(255, 150, 0, 0.8) 0%, rgba(255, 80, 0, 0.6) 30%, transparent 70%);
    filter: blur(20px);
  }
}

.game-container.crazy-mode .coin {
  filter: drop-shadow(0 0 20px rgba(255, 100, 0, 0.8));
  animation: crazy-mode-glow 0.6s ease-in-out infinite;
}

@keyframes crazy-mode-glow {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255, 100, 0, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(255, 150, 0, 0.9)) drop-shadow(0 0 15px rgba(255, 50, 0, 0.8));
  }
}

/* Crazy Mode Toggle Button - removed special styling */

#crazy-mode-btn.active {
  background-color: var(--border-color);
  color: #fff;
  border-color: #8b5cf6;
}

/* Fire emoji in crazy mode games */
.match-side.crazy-fire {
  position: relative;
}

.fire-emoji {
  position: absolute;
  top: 50%;
  left: -30%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  z-index: 10;
}

/* Legal/FAQ page (ToS-like layout) */
.legal-page {
  gap: 12px;
}

.legal-wrap {
  background: rgb(19, 21, 32);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 16px;
}

.legal-wrap,
.legal-wrap * {
  min-width: 0;
}

.legal-header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}

.legal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.legal-effective-date {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.legal-toc-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(26, 29, 46, 0.9);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.legal-toc-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.1);
  background: rgba(26, 29, 46, 1);
}

.legal-section {
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.legal-section-header {
  margin-bottom: 8px;
}

.legal-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.legal-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(229,231,235,0.92);
}

.legal-text a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.legal-list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(229,231,235,0.92);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-item-number {
  width: 20px;
  flex: 0 0 auto;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
}

.legal-highlight {
  color: #f97316;
}

.legal-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--primary-color);
  background: rgba(23,25,37,0.6);
  border-radius: 0.5rem;
  color: rgba(229,231,235,0.92);
  font-size: 0.875rem;
}

.legal-warning {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--danger);
  background: rgba(239, 68, 68, 0.06);
  border-radius: 0.5rem;
  color: rgba(229,231,235,0.92);
  font-size: 0.875rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.legal-warning-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: rgba(239, 68, 68, 0.95);
}

@media (max-width: 600px) {
  .legal-wrap {
    padding: 12px;
  }
  .legal-title {
    font-size: 1.25rem;
  }
}

/* Без анимаций у кнопок и интерактивных элементов */
button,
input[type="button"],
input[type="submit"],
.btn,
.btn-primary,
.btn-secondary,
.btn-tertiary,
.button,
.buttonsecond,
.selector-btn,
.game-type-tab,
.chat-send-btn,
.chat-emoji-btn,
.chat-cmd-btn,
.sub-header-link,
.selitemcontainer,
.selitemcontainer .black,
.selitemcontainer .black2,
.galaxy-value-inventory-btn {
  transition: none !important;
  animation: none !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--element-dark);
  border-bottom: 1px solid var(--border-color);
  color: #fff;
  overflow: visible;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--element-dark);
  border-bottom: 1px solid var(--border-color);
  color: #fff;
  padding: 0 32px;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(80px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-logo img {
  height: 55px;
  width: auto;
}

@media (max-width: 1279px) {
  .header-left {
    display: none !important;
  }
  
  .header-left .header-logo {
    display: none !important;
  }
}

.header-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 32px;
  font-size: 0.875rem;
}

.header-nav-tab {
  display: flex;
  align-items: center;
}

.header-nav-tab-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 80px;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  position: relative;
  letter-spacing: -0.3px;
}

.header-nav-tab-link:hover {
  color: rgba(255, 255, 255, 0.8);
  opacity: 0.85;
}

.header-nav-tab-link.active {
  color: rgba(255, 255, 255, 1);
  border-bottom-color: rgba(255, 255, 255, 1);
}

.header-nav-tab-link.active:hover {
  opacity: 1;
}

.header-nav-tab-link.header-nav-tab-locked {
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
}

.header-nav-tab-link.header-nav-tab-locked:hover {
  color: rgba(255, 255, 255, 0.35);
  opacity: 0.6;
  border-bottom-color: transparent;
}

.header-nav-tab-link svg {
  width: 1em;
  height: 1em;
  color: currentColor;
}

.trades-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
}

.trades-nav-badge-mobile {
  margin-left: 6px;
  font-size: 0.7rem;
}

.header-nav-icon {
  padding: 0 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-wallet {
  display: flex;
  align-items: stretch;
}

.header-wallet-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(28, 31, 46, 0.8);
  border-radius: 0.5rem 0 0 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.header-wallet-icon {
  width: 20px;
  height: 20px;
}

.header-wallet-btn {
  display: flex;
  align-items: stretch;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.header-wallet-btn:hover {
  opacity: 0.9;
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-profile:hover {
  background: rgba(108, 86, 245, 0.1);
}

.header-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.header-profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.header-mobile {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
}
.header-mobile-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.header-mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.header-mobile-menu-btn:hover,
.header-mobile-menu-btn:active {
  background: rgba(108, 86, 245, 0.15);
  color: var(--primary-color);
}
.header-mobile-menu-icon {
  width: 22px;
  height: 22px;
}
.header-mobile-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}
.header-mobile-logo-img {
  height: 32px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.header-mobile-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1279px) {
  .header-mobile {
    display: flex;
  }
  
  .header-left {
    display: none !important;
  }
}

.header-mobile-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-mobile-profile:hover {
  background: rgba(108, 86, 245, 0.1);
}

.header-mobile-profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-mobile-profile-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.5;
  color: #fff;
}

.header-mobile-profile-balance {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.header-mobile-profile-balance span {
  display: inline-block !important;
  min-width: 20px;
  text-align: left;
  visibility: visible !important;
  opacity: 1 !important;
}

.header-wallet-icon-small {
  width: 16px;
  height: 16px;
}

@media (max-width: 1279px) {
  .header-nav {
    display: none;
  }
  
  .header-right {
    display: none;
  }
  
  .header-mobile {
    display: flex;
  }
  
  .header-left {
    gap: 0;
  }
}


.it_box {
    font-size:20px;
    font-weight:bold;
    font-style:italic;
}


.logo {
  display: none;
}

nav {
  height: 100%;

  gap: 15px;

  display: flex;

  align-items: center;
}

.selitemcontainer2 {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: var(--element-background);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  position: relative;
  width: 100px;
}

.selitemcontainer:hover {
  border-color: var(--border-color);
}
.selitemcontainer.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color);
  background: var(--element-background);
}
@media (pointer: fine) {
  .black:hover { opacity: 1; cursor: pointer; }
  .black2:hover { cursor: pointer; }
}
.black {
  position: absolute;
  height: 100%;
  width: 100%;
  opacity: 0;
  background-color: rgba(37,40,57,0.7);
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
}
.black2 {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(37,40,57,0.7);
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--button-color_text);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
  background-color: var(--primary-color);
}

.btn-primary:focus {
  background-color: var(--primary-color);
}

.btn-primary:active {
  background-color: var(--primary-color);
}

.btn-primary:disabled {
  box-shadow: none;
  background-color: var(--border-color);
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: rgba(37,40,57,0.5);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-secondary:hover {
  background-color: var(--border-color);
  color: #fff;
  border-color: var(--primary-color);
}

.btn-secondary:focus, .btn-secondary:active {
  background-color: var(--border-color);
  color: #fff;
}

.btn-secondary:disabled {
  background-color: unset;
  color: var(--border-color);
  border-color: var(--border-color);
  cursor: not-allowed;
}

.btn-no-hover:hover {
  background-color: rgba(37,40,57,0.5);
  color: var(--primary-color);
  border-color: var(--border-color);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--primary-color);
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-tertiary:hover, .btn-tertiary:focus, .btn-tertiary:active {
  background-color: transparent;
  color: var(--text-accent);
}

.btn-tertiary:disabled {
  background-color: unset;
  color: var(--border-color);
  cursor: not-allowed;
}

button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 15px;
  border-radius: 0.5rem;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
}

button.mobile {
  padding: 5px 10px;
}

button svg {
  margin-right: 0;

  margin-left: 0;

  height: 25px;
}

.userthumb {
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--element-background);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.userthumb::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.45) 40%, transparent 80%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.userthumb:hover {
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.userthumb:hover::before {
  transform: translateX(130%);
  opacity: 1;
}

.leftsidebar {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  top: 56px;
  left: 80px;
  width: 100px;
  bottom: 0;
  padding: 8px;
  background-color: var(--element-dark);
  border: 1px solid var(--border-color);
  border-top: none;
  border-left: none;
  border-bottom: none;
  overflow: hidden;
  border-radius: 0;
  z-index: 5;
  box-sizing: border-box;
}

.leftsidebar.sidebar-visible {
  display: flex;
}

.leftsidebar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--element-dark);
  z-index: 6;
}

.leftsidebar .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  color: var(--text-muted);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: color 0.2s;
  box-sizing: border-box;
  padding: 4px;
}

.leftsidebar .item:hover {
  color: #fff;
}

.rightsidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: fixed;
  top: 80px;
  left: 0;
  right: auto;
  width: 320px;
  max-width: 320px;
  bottom: 0;
  padding: 12px;
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  border-top: none;
  border-right: 1px solid var(--border-color);
  overflow: hidden;
  border-radius: 0;
  gap: 8px;
  z-index: 5;
  box-sizing: border-box;
}

@media (min-width: 1280px) {
  .chat-sidebar {
    display: flex;
  }
}

@media (max-width: 1279px) {
  .chat-sidebar:not(.desktop-only),
  .rightsidebar:not(.desktop-only) {
    display: flex !important;
  }
  
  body:has(.rightsidebar.desktop-only) .main {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body:has(.rightsidebar:not(.desktop-only)) .main {
    left: 320px;
    width: calc(100% - 320px);
    max-width: none;
  }
  
  .rightsidebar {
    top: calc(80px + env(safe-area-inset-top, 0px));
    height: calc(100vh - 80px - env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 767px) {
  .rightsidebar:not(.desktop-only) {
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0;
    z-index: 200;
  }
  body:has(.rightsidebar:not(.desktop-only)) .main {
    display: none !important;
  }
}

.rightsidebar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--element-dark);
  z-index: 6;
}


.widthcontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.heightcontainer {
  display: flex;

  flex-direction: row;

  align-items: center;

  gap: 10px;

  height: 100%;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(28, 31, 46, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(156, 163, 175, 0.5);
  font-family: 'Poppins', sans-serif;
}

/* Chat - Messages layout (header, list, footer) */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.chat-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(156, 163, 175, 1);
  font-family: 'Poppins', sans-serif;
  text-transform: capitalize;
}

.chat-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  color: rgba(156, 163, 175, 1);
}

.chat-close-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: -8px 0 -8px -8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-accent);
  cursor: pointer;
}
.chat-close-mobile:hover,
.chat-close-mobile:active {
  color: #fff;
  background: rgba(108, 86, 245, 0.15);
}
@media (min-width: 1280px) {
  .chat-close-mobile {
    display: none !important;
  }
}
@media (max-width: 1279px) {
  .rightsidebar:not(.desktop-only) .chat-close-mobile {
    display: flex;
  }
}

.chat-online-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

@keyframes chat-dot-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

#chatindicator {
  animation: chat-dot-pulse 1.5s ease-in-out infinite;
}

#chatindicator circle {
  transition: fill 0.2s ease;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  background: transparent;
}

.chat-footer {
  margin-left: -12px;
  margin-right: -12px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: calc(100% + 24px);
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.chat-send-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 20px;
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.chat-emoji-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(28, 31, 46, 0.8);
  border: 2px solid transparent;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.chat-emoji-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.chat-cmd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(28, 31, 46, 0.8);
  border: 2px solid transparent;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

.chat-cmd-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.chat-commands-dropdown {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  margin-bottom: 8px;
  background: #1C1F2E;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  max-height: 240px;
  z-index: 50;
  outline: none;
  border: 1px solid #252839;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-commands-dropdown.hidden {
  display: none;
}

.chat-commands-header {
  padding: 8px;
  background: #252839;
  border-bottom: 1px solid #1C1F2E;
}

.chat-commands-header-title {
  font-size: 0.7rem;
  color: #A6B2D3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-commands-list {
  overflow-y: auto;
  flex: 1 1 auto;
  padding: 4px;
}

.chat-command-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 0.375rem;
  text-align: left;
  background: #252839;
  border: 0;
  outline: none;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.chat-command-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  background: #292F45;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #A6B2D3;
  font-weight: 700;
  font-size: 0.8rem;
}

.chat-command-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.chat-command-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-command-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.chat-command-item-usage {
  font-size: 0.7rem;
  color: #68749C;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.chat-command-item-desc {
  font-size: 0.7rem;
  color: #A6B2D3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-command-item:hover {
  background: #303756;
}

.chat-status #chatindicator {
  width: 12px;
  height: 12px;
}

.chat-status #chatcount {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(156, 163, 175, 0.5);
}

.chat-messages-count {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-messages-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(156, 163, 175, 0.5);
  font-family: 'Poppins', sans-serif;
}

.chat-messages-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.chat-messages-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(156, 163, 175, 0.5);
  font-family: 'Poppins', sans-serif;
}

.chat-messages-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.chatbox {
  height: 48px;
  background: rgba(28, 31, 46, 0.8);
  color: #fff;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 16px;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.chatbox:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
}

.chatbox::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

#chatbtn:hover:not(:disabled):not(.chat-send-btn) {
  box-shadow: 0 0 20px rgba(108,86,245,0.4) !important;
  transform: scale(1.05);
}

#chatbtn:active:not(:disabled):not(.chat-send-btn) {
  transform: scale(0.95);
}

#chatbtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#chatbtn {
  padding: 0;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(108,86,245,0.2);
  transition: all 0.2s ease;
}

#chatbtn:not(.chat-send-btn) {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#chatbtn.chat-send-btn {
  width: 100%;
  display: block;
  padding: 12px 20px;
  min-height: 48px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

#chatbtn svg {
  width: 20px;
  height: 20px;
}

#chatform.chat-form,
.chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  width: 100%;
  flex-shrink: 0;
  min-height: 48px;
}

#chatcontainer_2 {
  display: flex;

  justify-content: flex-end;

  overflow: hidden;

  position: absolute;

  top: 65px;

  bottom: 65px;
}

#chatcontainer {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 12px 10px;
  background: transparent;
  border-radius: 0;
  margin-bottom: 8px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#chatcontainer::-webkit-scrollbar {
  width: 6px;
}

#chatcontainer::-webkit-scrollbar-thumb {
  background: #424967;
  border-radius: 3px;
}

#chatcontainer::-webkit-scrollbar-track {
  background: transparent;
}

.chatline {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  overflow: visible;
  position: relative;
  padding: 10px 4px;
  margin: 0 -4px;
  border-bottom: 1px solid rgba(37, 40, 57, 0.5);
}

.chatline:last-child {
  border-bottom: none;
}

.chatline .userthumb {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  object-fit: cover;
  border: none;
  position: relative;
  z-index: 1;
}

.chatline .chat-msg-wrap {
  flex: 1;
  min-width: 0;
}

.chatline .username-row,
.chatline .chat-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.chatline .username-row h2 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chatline .level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.chatline .level p {
  margin: 0;
  line-height: 1;
}

.chatline .level.gray { background-color: #9ca3af; }
.chatline .level.green { background-color: #22c55e; }
.chatline .level.cyan { background-color: #06b6d4; }
.chatline .level.blue { background-color: #3b82f6; }
.chatline .level.purple { background-color: #8b5cf6; }
.chatline .level.pink { background-color: #ec4899; }
.chatline .level.orange { background-color: #f97316; }
.chatline .level.gold { background-color: #eab308; }
.chatline .level.red { background-color: #ef4444; }
.chatline .level.violet { background-color: #a855f7; }
.chatline .level.indigo { background-color: #6366f1; }
.chatline .level.max { background-color: #e0e7ff; color: #1a1d2e; }

.chatline .chat-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.chatline .name {
  font-weight: 600;
  word-wrap: break-word;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chatline .msg {
  width: 100%;
  word-wrap: break-word;
  font-size: 0.8125rem;
  color: rgba(209, 213, 219, 1);
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  margin-top: 1px;
}

.chatline .name.server {
  display: flex;
  align-items: center;
  color: #ff0000;
}

.chatline .name.server:after {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  display: inline-block;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff0000'%3E%3Cpath d='m2.344 15.271l2 3.46a1 1 0 0 0 1.366.365l1.396-.806c.58.457 1.221.832 1.895 1.112V21a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1.598a8.094 8.094 0 0 0 1.895-1.112l1.396.806c.477.275 1.091.11 1.366-.365l2-3.46a1.004 1.004 0 0 0-.365-1.366l-1.372-.793a7.683 7.683 0 0 0-.002-2.224l1.372-.793c.476-.275.641-.89.365-1.366l-2-3.46a1 1 0 0 0-1.366-.365l-1.396.806A8.034 8.034 0 0 0 15 4.598V3a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v1.598A8.094 8.094 0 0 0 7.105 5.71L5.71 4.904a.999.999 0 0 0-1.366.365l-2 3.46a1.004 1.004 0 0 0 .365 1.366l1.372.793a7.683 7.683 0 0 0 0 2.224l-1.372.793c-.476.275-.641.89-.365 1.366zM12 8c2.206 0 4 1.794 4 4s-1.794 4-4 4s-4-1.794-4-4s1.794-4 4-4z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.chatline .name.custom {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), var(--success));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chatline .name.mod {
  display: flex;
  align-items: center;
  color: #a855f7;
}

.chatline .name.mod:after {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  display: inline-block;
  content: "";
  background-image: url("../img/shield.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.chatline .name.whale {
  display: flex;
  align-items: center;
  color: #06b6d4;
}

.chatline .name.whale:after {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  display: inline-block;
  content: "";
  background-image: url("../img/whale.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.chatline .name.highroller {
  display: flex;
  align-items: center;
  color: #dc2626;
}

.chatline .name.highroller:after {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  display: inline-block;
  content: "";
  background-image: url("../img/dice.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.chatline .name.owner {
  display: flex;
  align-items: center;
  color: #eab308;
}

.chatline .name.owner:after {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  display: inline-block;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' role='img' width='20' height='20' preserveAspectRatio='xMidYMid meet' viewBox='0 0 64 64'%3E%3Cpath fill='%23eab308' d='M61.287 53.542c-2.649-2.041-9.702-7.678-16.271-14.452c-4.366-4.505-6.223-9.015-9.533-12.429c-2.998-3.092-5.725-4.894-5.725-4.894l-.768.792l-5.188-5.35l2.004-2.067a.912.912 0 0 0 0-1.262l-.414-.427c.002-.002 5.898-7.936 13.353-5.742c.866.257 1.638.694 1.857.471c.298-.306-.837-1.482-1.502-2.162c-9.431-9.65-19.834 1.104-19.839 1.109l-.367-.379a.846.846 0 0 0-1.222 0l-9.239 9.528a.912.912 0 0 0 0 1.262s1.131 1.979-1.835 2.335c-1.194.145-1.942.414-2.366.769a431.18 431.18 0 0 0-1.979 2.009a.912.912 0 0 0 0 1.262l6.914 7.132a.847.847 0 0 0 1.223 0s1.906-1.99 1.947-2.042c.343-.438.605-1.208.743-2.44c.348-3.06 2.264-1.892 2.264-1.892a.846.846 0 0 0 1.224 0l2.004-2.067l5.186 5.349l-.768.793s1.748 2.813 4.746 5.905c3.309 3.413 7.683 5.328 12.05 9.833c6.567 6.774 12.032 14.047 14.014 16.78c.748 1.029.867.934 1.78-.009l2.849-2.938l2.847-2.937c.915-.946 1.009-1.068.011-1.84'%3E%3C/path%3E%3Cpath fill='%23eab308' d='M34.008 22.689a53.27 53.27 0 0 1 2.497 2.408c1.592 1.642 2.924 3.479 4.259 5.44l8.942-8.943A9.938 9.938 0 0 0 61.72 9.584L53.604 17.7l-5.76-1.543l-1.544-5.763l8.114-8.111a9.92 9.92 0 0 0-9.381 2.63a9.932 9.932 0 0 0-2.631 9.38l-8.394 8.396m-7.519 12.74a53.723 53.723 0 0 1-2.479-2.743l-9.717 9.718a9.926 9.926 0 0 0-9.381 2.629c-3.883 3.88-3.882 10.174 0 14.055a9.934 9.934 0 0 0 14.054 0a9.939 9.939 0 0 0 2.631-9.384l10.004-10.003c-1.84-1.338-3.567-2.679-5.112-4.272M13.483 57.821l-5.761-1.544l-1.543-5.762l4.218-4.215l5.76 1.541l1.543 5.763l-4.217 4.217'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.clickable {
  cursor: pointer;
}

.clickable:hover {
  box-shadow: 0 0 0 2px var(--primary-color);
}

.clickable:focus, .clickable:active {
  box-shadow: 0 0 0 2px var(--primary-color);
}

.hidden {
  display: none !important;
}

.blur {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(15, 15, 30, 0.8);
  backdrop-filter: blur(4px);
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 101;
  width: 48em;
  max-width: 90%;
  max-height: calc(90% - 2.5em);
  overflow-y: auto;
  padding: 1.25em 0;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--element-dark);
  color: #fff;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.coin-side-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  padding: 0;
}

.coin-side-btn img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.coin-side-btn.coin-side-active {
  border-color: #8b5cf6; /* фиолетовая обводка */
  box-shadow: none;
}

.popup * {
  flex: 0 0 auto;
}

.streak-container {
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.streak-container.win-streak {
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.15), rgba(15, 23, 42, 0.95));
  border-color: rgba(250, 204, 21, 0.35);
}

.streak-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.streak-avatar-wrap img {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
}

.streak-details {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.streak-details .username {
  font-weight: 600;
}

.streak-text strong {
  color: #facc15;
}

.streak-icon-right {
  margin-left: auto;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Selitem (Create Coinflip) modal */
#selitem {
  padding: 1.25rem 1.5rem;
}

#selitem .selitem-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 768px) {
  #selitem .selitem-header-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

#selitem-search {
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background: transparent;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  box-sizing: border-box;
}

#selitem-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#selitem-search:focus {
  outline: none;
  border-color: var(--primary-color);
}

#selitem-sort-btn,
#selitem-game-btn {
  height: 2.25rem;
}

.selitem-items-wrapper {
  margin-top: 0.75rem;
  max-height: calc(90vh - 220px);
  overflow: auto;
}

.selitem-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  text-align: center;
}

.selitem-empty-state h1 {
  margin: 0;
  font-size: 1.4rem;
}

.selitem-empty-state p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.selitem-empty-state .button {
  margin-top: 1rem;
}


.main {
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 119px;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: transparent;
  z-index: 1;
  box-sizing: border-box;
  transition: left 0.2s ease, width 0.2s ease, top 0.2s ease;
  width: 100%;
  max-width: 100%;
}

.main > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.main > .section {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 1280px) {
  .main {
    left: 320px;
    right: 0;
    width: calc(100% - 320px);
    max-width: none;
  }
}

.section {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0.5em;
  border-radius: 0.5rem;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  flex-grow: 1;
  overflow-x: hidden;
  overflow-y: visible;
}

.row {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0.5em;
  border-radius: 0.5rem;
  background-color: var(--element-background);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  flex: 0 0 auto;
}

/* Giveaway row styling */
.giveaway-row {
  background-color: var(--element-dark);
  border: 1px solid var(--border-color);
}

/* Match rows styling */
.match-row {
  align-items: stretch;
  justify-content: space-between;
}

.match-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.match-starter,
.match-opponent {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.match-username {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.match-value {
  font-size: 0.85rem;
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.match-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.match-actions {
  margin-top: 4px;
}

.match-actions-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.match-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-right: 10px;
  width: 120px;
  flex: 0 0 auto;
}

.match-range {
  color: var(--text-accent);
  font-size: 0.8rem;
}

.match-cta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 6px;
  width: 100px;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .match-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .match-main {
    gap: 4px;
  }

  .match-header {
    flex-direction: row;
    align-items: center;
  }

  .match-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .match-side {
    width: 100%;
    padding-right: 0;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 4px;
  }

  .match-cta {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }

  .match-cta .button,
  .match-cta .btn-primary,
  .match-cta .buttonsecond {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.giveaway-join-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--button-color_text);
  background-color: var(--primary-color);
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
}

.giveaway-join-btn[disabled] {
  background-color: var(--border-color);
  opacity: 0.6;
  cursor: default;
}

/* SweetAlert select styling for giveaway duration */
.swal2-select {
  background-color: var(--element-background);
  border: 1px solid var(--border-color);
  color: #ffffff;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}


h2 {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 1.5rem;

  font-weight: bold;

  margin: 0;
}

@media (max-width: 1080px) {
  h2 {
    flex-wrap: wrap;
  }
}

/* Scroll Bar */

/* width */

::-webkit-scrollbar {
  border-radius: 0.5em;

  width: 7px;
}

/* Handle */

::-webkit-scrollbar-thumb {
  border-radius: 0.5em;

  background: var(--primary-color);
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

@media only screen and (min-width: 1081px) {
  .mobile-only {
    display: none !important;
  }
}

@media only screen and (max-width: 1080px) {
  .rightsidebar.desktop-only {
    display: none !important;
  }

  .section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0.5em;
  }

  .desktop-only {
    display: none !important;
  }

  .main {
    position: fixed !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 80px !important;
    bottom: var(--footer-height) !important;
    padding: 12px !important;
    margin: 0 !important;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

.top-thead>* {
  text-transform: uppercase;
}

.top-thead,
.top-item {
  display: grid;
  /*grid-template-columns: 60px 1fr 1fr 1fr 50px;*/
  grid-template-columns: 60px 1fr 120px 155px 170px;
  grid-template-rows: 1fr;
  gap: 0px 0px;
}

.top-thead {
  grid-template-areas: "thead-number thead-name thead-profit thead-wagered thead-bets";
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  padding: 5px;
  text-align: start;
}

.thead-number {
  grid-area: thead-number;
}

.thead-name {
  grid-area: thead-name;
}

.thead-profit {
  grid-area: thead-profit;
}

.thead-wagered {
  grid-area: thead-wagered;
}

.thead-bets {
  grid-area: thead-bets;
}

.top-item {
  grid-template-areas: "item-number item-name item-profit item-wagered item-bets";
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  padding: 10px 5px;
}

.top-item:nth-child(2n) {
  background: var(--element-background);
}

.item-number {
  grid-area: item-number;
}

.item-name {
  grid-area: item-name;
}

.item-name img {
  width: 30px;
  height: 30px;
  border-radius: 50px;
  margin-right: 10px;
}

.item-profit {
  grid-area: item-profit;
  color: #fff;
}

.item-wagered {
  grid-area: item-wagered;
}

.item-bets {
  grid-area: item-bets;
}

.item-number,
.item-name,
.item-profit,
.item-wagered,
.item-bets {
  display: flex;
  align-items: center;
}

.item-profit,
.item-wagered,
.item-bets {
  justify-content: end;
}

.thead-bets,
.thead-wagered,
.thead-profit {
  text-align: right;
}

.item-number::before {
  content: "#";
}

.item-number.top1 {
  color: gold;
}

.item-number.top2 {
  color: silver;
}

.item-number.top3 {
  color: burlywood;
}

@media (max-width: 768px) {
  .top-item {
    grid-template-areas: "item-number item-name item-profit";
  }

  .top-thead {
    grid-template-areas: "thead-number thead-name thead-profit";
  }

  .top-item,
  .top-thead {
    grid-template-columns: 60px 1.6fr auto;
  }

  .thead-wagered,
  .thead-bets,
  .item-wagered,
  .item-bets {
    display: none;
  }
}

.top-thead>* {
  text-transform: uppercase;
}

.top-thead,
.top-item {
  display: grid;
  /* grid-template-columns: 60px 1fr 1fr 1fr 50px; */
  grid-template-columns: 60px 1fr 120px 155px 170px;
  grid-template-rows: 1fr;
  gap: 0px 0px;
}

.top-thead {
  grid-template-areas: "thead-number thead-name thead-profit thead-wagered thead-bets";
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  padding: 5px;
  text-align: start;
}

.thead-number {
  grid-area: thead-number;
}

.thead-name {
  grid-area: thead-name;
}

.thead-profit {
  grid-area: thead-profit;
}

.thead-wagered {
  grid-area: thead-wagered;
}

.thead-bets {
  grid-area: thead-bets;
}

.top-item {
  grid-template-areas: "item-number item-name item-profit item-wagered item-bets";
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  padding: 10px 5px;
}

.top-item:nth-child(2n) {
  background: var(--element-background);
}

.item-number {
  grid-area: item-number;
}

.item-name {
  grid-area: item-name;
}

.item-name img {
  width: 30px;
  height: 30px;
  border-radius: 50px;
  margin-right: 10px;
}

.item-profit {
  grid-area: item-profit;
  color: #fff;
}

.item-wagered {
  grid-area: item-wagered;
}

.item-bets {
  grid-area: item-bets;
}

.item-number,
.item-name,
.item-profit,
.item-wagered,
.item-bets {
  display: flex;
  align-items: center;
}

.item-profit,
.item-wagered,
.item-bets {
  justify-content: end;
}

.thead-bets,
.thead-wagered,
.thead-profit {
  text-align: end;
}

.item-number::before {
  content: "#";
}

.item-number.top1 {
  color: gold;
}

.item-number.top2 {
  color: silver;
}

.item-number.top3 {
  color: burlywood;
}

@media (max-width: 768px) {
  .top-item {
    grid-template-areas: "item-number item-name item-profit";
  }

  .top-thead {
    grid-template-areas: "thead-number thead-name thead-profit";
  }

  .top-item,
  .top-thead {
    grid-template-columns: 60px 1fr 1fr;
  }

  .thead-wagered,
  .thead-bets,
  .item-wagered,
  .item-bets {
    display: none;
  }
}

.stats-list {
  display: flex;
  flex-direction: column;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  padding: 5px;
}

.stats-item-value {
  color: var(--primary-color);
}

/* Top toast notification – цвет и обводка как у карточек, круглое */
.toast-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 0;
  pointer-events: none;
}

.top-toast {
  display: block;
  width: 100%;
  max-width: 440px;
  padding: 0.75rem 1rem;
  margin-bottom: 8px;
  background: rgb(19, 21, 32);
  border: 1px solid #252839;
  border-radius: 0.5rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.top-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.top-toast-error {
  border-left: 3px solid #ef4444;
}

.top-toast-success {
  border-left: 3px solid #22c55e;
}

.top-toast-warning {
  border-left: 3px solid #eab308;
}

/* SweetAlert2 – upgrade-style overrides */
.swal2-title,
.swal2-html-container,
.swal2-footer,
.swal2-styled {
  font-family: 'Poppins', sans-serif;
}

/* Stats Cards - 1:1 style */
.grid {
  display: grid;
}

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

.gap-2 {
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .grid.sm-grid-cols-3 {
    grid-template-columns: repeat(3, calc((100% - 2 * 0.5rem) / 3));
  }
}

.stat-card {
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

@media (max-width: 600px) {
  .grid.sm-grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .stat-card {
    padding: 0.625rem 0.75rem;
  }
  .stat-value {
    font-size: 1.1rem;
  }
  .stat-title {
    font-size: 0.6875rem;
  }
  .section {
    padding: 0.5rem !important;
  }
  .row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 8px !important;
  }
  .row .btn-primary,
  .row .button,
  .row .btn {
    min-height: 44px;
    padding: 10px 16px;
  }
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  display: block;
}

.stat-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Games Header Component */
.my-2-5 {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2-5 {
  gap: 0.625rem;
}

.mr-auto {
  margin-right: auto;
}

.gap-4 {
  gap: 1rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.border {
  border-width: 1px;
}

.border-solid {
  border-style: solid;
}

.border-stats-bg {
  border-color: #252839;
}

.bg-stats-bg {
  background-color: var(--element-dark);
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-1-5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.gap-1-5 {
  gap: 0.375rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.text-white {
  color: #fff;
}

.hidden {
  display: none;
}

@media (min-width: 640px) {
  .sm-contents {
    display: contents;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.button-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.buttonsecond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: transparent;
  color: #fff;
  padding: 0.5rem 1rem;
}

.buttonsecond:hover {
  background: transparent;
  border-color: var(--border-color);
}

.buttonsecond.button-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.selector-btn {
  display: flex;
  height: 2.25rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  cursor: pointer;
  color: #fff;
}

.selector-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
}

.selector-btn:focus {
  outline: none;
  ring: 1px;
  ring-color: var(--primary-color);
}

.selector-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.selector-btn span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lucide-chevron-down {
  height: 1rem;
  width: 1rem;
  opacity: 0.5;
}

/* Games header row: tabs + Create/History (like shadcn layout) */
.games-header-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  min-width: 0;
}

.games-header-row .flex {
  flex-shrink: 0;
}

.games-header-row .button-sm,
.games-header-row .buttonsecond.button-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  height: 2rem;
}

/* Game type tabs: GAG, SAB, MM2 — компактно в одну строку */
.game-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: auto;
  min-width: 0;
  flex-shrink: 1;
  height: 2rem;
  padding: 2px;
  background: var(--stats-bg, rgba(37, 40, 57, 0.6));
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  box-sizing: border-box;
  color: var(--text-muted);
}

.game-type-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: 0 0.35rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: none;
  border-radius: 0.2rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  outline: none;
  box-sizing: border-box;
}

.game-type-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.game-type-tab:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.game-type-tab.active,
.game-type-tab[aria-selected="true"] {
  background: var(--primary-color);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}

/* Grid utilities for match cards */
.grid {
  display: grid;
}

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

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.border {
  border-width: 1px;
}

.border-solid {
  border-style: solid;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.flex {
  display: flex;
}

.justify-self-center {
  justify-self: center;
}

.justify-self-start {
  justify-self: start;
}

.place-self-center {
  place-self: center;
}

.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-white {
  color: #fff;
}

.text-\[#B0B8C1\] {
  color: #B0B8C1;
}

.text-\[#CCC\] {
  color: #CCC;
}

.leading-normal {
  line-height: 1.5;
}

.inline-flex {
  display: inline-flex;
}

.w-32 {
  width: 8rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-14 {
  width: 3.5rem;
}

.h-14 {
  height: 3.5rem;
}

.w-7 {
  width: 1.75rem;
}

.h-7 {
  height: 1.75rem;
}

.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

.max-w-full {
  max-width: 100%;
}

.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

.block {
  display: block;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.rounded-\[1\.125rem\] {
  border-radius: 1.125rem;
}

.rounded-\[5px\] {
  border-radius: 5px;
}

.rounded-full {
  border-radius: 9999px;
}

.cursor-pointer {
  cursor: pointer;
}

.place-content-center {
  place-content: center;
}

.flex-\[0_0_auto\] {
  flex: 0 0 auto;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:border-\[#6C56F5\]:hover {
  border-color: #6C56F5;
}

.ml-auto {
  margin-left: auto;
}

.mt-2 {
  margin-top: 0.5rem;
}

/* Responsive utilities */
@media (min-width: 1280px) {
  .xl\:grid-cols-\[repeat\(5\,auto\)\] {
    grid-template-columns: repeat(5, auto);
  }
  
  .xl\:grid {
    display: grid;
  }
  
  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  
  .xl\:justify-self-start {
    justify-self: start;
  }
  
  .xl\:justify-self-end {
    justify-self: end;
  }
  
  .xl\:flex {
    display: flex;
  }
  
  .xl\:flex-col {
    flex-direction: column;
  }
  
  .xl\:w-16 {
    width: 4rem;
  }
  
  .xl\:ml-auto {
    margin-left: auto;
  }
  
  .xl\:hidden {
    display: none;
  }
}

/* Overlap items on mobile */
@media (max-width: 1279px) {
  .item-overlap + .item-overlap {
    margin-left: -1.25rem;
  }
}

@media (min-width: 1280px) {
  .item-overlap {
    transform: var(--shift);
  }
}

/* Galaxy Value Component Styles */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1 1 0%;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.border {
  border-width: 1px;
}

.border-solid {
  border-style: solid;
}

.border-\[#393C49\] {
  border-color: #393C49;
}

.bg-\[#1C1F2D\] {
  background-color: #1C1F2D;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-semibold {
  font-weight: 600;
}

.text-white {
  color: #fff;
}

.inline-flex {
  display: inline-flex;
}

.w-full {
  width: 100%;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.w-6 {
  width: 1.5rem;
  height: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Galaxy Value Component - Upgrader Style */
.galaxy-value-wrapper {
  display: none;
}

.galaxy-value-container {
  display: flex;
  align-items: center;
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.galaxy-value-inventory-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-accent);
  cursor: pointer;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-right: 1px solid var(--border-color);
  font-family: 'Poppins', sans-serif;
}

.galaxy-value-inventory-btn:hover {
  background: rgba(108, 86, 245, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.galaxy-value-inventory-btn:active {
  background: rgba(108, 86, 245, 0.2);
}

.galaxy-value-inventory-btn svg {
  width: 1em;
  height: 1em;
}

.galaxy-value-inventory-btn:hover svg {
  color: var(--primary-color);
}

.galaxy-value-inventory-text {
  display: none;
}

/* Login Button Styles */
button[onclick="login()"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.625rem 2rem;
  height: 2.5rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 20px rgba(108, 86, 245, 0.25);
  transition: all 0.2s ease;
  outline: none;
}

button[onclick="login()"]:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 0 30px rgba(108, 86, 245, 0.4);
  transform: translateY(-1px);
}

button[onclick="login()"]:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button[onclick="login()"]:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(108, 86, 245, 0.3);
}

button[onclick="login()"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

button[onclick="login()"] svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

button[onclick="login()"] .mr-2 {
  margin-right: 0.5rem;
}

button[onclick="login()"].mobile {
  padding: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  height: 2.25rem;
}

/* Tailwind-like utility classes for login button */
.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.ring-offset-background {
  --tw-ring-offset-color: var(--background-color);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: var(--primary-color);
}

.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}

.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.bg-primary {
  background-color: var(--primary-color);
}

.text-primary-foreground {
  color: #ffffff;
}

.hover\:bg-primary\/90:hover {
  background-color: rgba(108, 86, 245, 0.9);
}

.h-10 {
  height: 2.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.font-semibold {
  font-weight: 600;
}

\[&_svg\]\:pointer-events-none svg {
  pointer-events: none;
}

\[&_svg\]\:size-4 svg {
  width: 1rem;
  height: 1rem;
}

\[&_svg\]\:shrink-0 svg {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .galaxy-value-inventory-text {
    display: inline;
  }
}

.galaxy-value-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--element-dark);
}

.galaxy-value-icon {
  width: 16px;
  height: 16px;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .galaxy-value-icon {
    width: 18px;
    height: 18px;
  }
}

.galaxy-value-text {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .galaxy-value-text {
    font-size: 1rem;
  }
}

/* Upgrade Match Cards - Upgrader Style */

.upgrade-match-card {
  font-family: 'Poppins', sans-serif;
  background: var(--element-dark);
  border: 1px solid #252839;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 16px;
}

.upgrade-match-header {
  background: var(--element-dark);
  border-bottom: 1px solid #252839;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upgrade-match-head {
  flex: 1;
}

.upgrade-match-title {
  color: #fff;
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.upgrade-match-sub {
  font-size: 0.75rem;
  color: rgba(156, 163, 175, 1);
  margin: 4px 0 0 0;
}

.upgrade-match-value {
  background: #171925;
  padding: 8px 12px;
  border-radius: 0.5rem;
  border: 1px solid #252839;
  display: flex;
  align-items: center;
  gap: 6px;
}

.upgrade-match-value img {
  width: 16px;
  height: 16px;
}

.upgrade-match-value span {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.upgrade-match-body {
  padding: 16px;
  background: #171925;
}

.upgrade-match-players {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.upgrade-match-player {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.upgrade-player-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.upgrade-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid #252839;
}

.upgrade-player-side {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: var(--element-dark);
  border: 2px solid #252839;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.upgrade-player-side img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
}

.upgrade-player-info {
  flex: 1;
  min-width: 0;
}

.upgrade-player-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upgrade-player-items {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.upgrade-player-items img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid #252839;
}

.upgrade-match-vs {
  color: rgba(156, 163, 175, 1);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.upgrade-player-waiting {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  border: 1px dashed #252839;
}

.upgrade-waiting-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--element-dark);
  border: 2px solid #252839;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(156, 163, 175, 1);
  font-size: 1.5rem;
  font-weight: 700;
}

.upgrade-waiting-text {
  color: rgba(156, 163, 175, 1);
  font-size: 0.75rem;
  text-align: center;
}

.upgrade-match-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #252839;
}

.upgrade-match-btn {
  padding: 8px 16px;
  background: #6C56F5;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(108, 86, 245, 0.2);
}

.upgrade-match-btn-cancel {
  background: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.upgrade-match-btn-bot {
  background: rgba(37, 40, 57, 0.8);
  box-shadow: 0 0 20px rgba(37, 40, 57, 0.2);
}

.upgrade-match-range {
  color: rgba(156, 163, 175, 1);
  font-size: 0.75rem;
  text-align: right;
  white-space: nowrap;
}

.upgrade-match-result {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.upgrade-result-coin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #252839;
  background: var(--element-dark);
}

.upgrade-result-coin img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.upgrade-result-red {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.upgrade-result-blue {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.upgrade-result-text {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .upgrade-match-header {
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .upgrade-match-title {
    font-size: 0.9375rem;
  }

  .upgrade-match-sub {
    font-size: 0.6875rem;
  }

  .upgrade-match-value {
    padding: 6px 10px;
  }

  .upgrade-match-value img {
    width: 14px;
    height: 14px;
  }

  .upgrade-match-value span {
    font-size: 0.8125rem;
  }

  .upgrade-match-body {
    padding: 12px;
  }

  .upgrade-match-players {
    flex-direction: column;
    gap: 12px;
  }

  .upgrade-match-vs {
    order: 2;
  }

  .upgrade-match-player {
    width: 100%;
  }

  .upgrade-player-avatar {
    width: 48px;
    height: 48px;
  }

  .upgrade-player-side {
    width: 20px;
    height: 20px;
  }

  .upgrade-player-name {
    font-size: 0.8125rem;
  }

  .upgrade-player-items img {
    width: 28px;
    height: 28px;
  }

  .upgrade-match-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .upgrade-match-btn {
    width: 100%;
  }

  .upgrade-match-range {
    text-align: center;
  }
}

@media (min-width: 640px) {
  .sm\:rounded-\[14px\] {
    border-radius: 14px;
  }
  
  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .sm\:gap-2 {
    gap: 0.5rem;
  }
  
  .sm\:px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .sm\:py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .sm\:w-8 {
    width: 2rem;
    height: 2rem;
  }
  
  .sm\:h-8 {
    height: 2rem;
  }
  
  .sm\:block {
    display: block;
  }
  
  .sm\:hidden {
    display: none;
  }
}

/* Game Card Styles */
.game-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #252839;
  background: radial-gradient(90% 100% at 0px 90%, rgba(0, 0, 0, 0.15) 0px, transparent 100%), rgb(28, 31, 46);
  padding: 0.75rem 1rem;
  position: relative;
  overflow: hidden;
}

.game-card > * {
  min-width: 0;
}

@media (min-width: 1280px) {
  .game-card {
    grid-template-columns: repeat(4, auto);
    gap: 0.75rem;
  }
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.text-\[#B0B8C1\] {
  color: #B0B8C1;
}

.text-\[1\.375rem\] {
  font-size: 1.375rem;
}

.leading-normal {
  line-height: 1.5;
}

.text-white {
  color: #fff;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-\[#CCC\] {
  color: #CCC;
}

.w-32 {
  width: 8rem;
}

.w-5 {
  width: 1.25rem;
  height: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-0 {
  width: 0;
}

.h-14 {
  height: 3.5rem;
}

.w-14 {
  width: 3.5rem;
}

.h-12 {
  height: 3rem;
}

.w-12 {
  width: 3rem;
}

.h-7 {
  height: 1.75rem;
}

.w-7 {
  width: 1.75rem;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-\[5px\] {
  border-radius: 5px;
}

.rounded-\[1\.125rem\] {
  border-radius: 1.125rem;
}

.border-4 {
  border-width: 4px;
}

.border-2 {
  border-width: 2px;
}

.border {
  border-width: 1px;
}

.border-solid {
  border-style: solid;
}

.border-\[#22283F\] {
  border-color: #22283F;
}

.border-\[#1C1F2E\] {
  border-color: var(--element-dark);
}

.border-\[#2F3347\] {
  border-color: #2F3347;
}

.bg-\[#1A1D2B\] {
  background-color: #1A1D2B;
}

.overflow-hidden {
  overflow: hidden;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.place-content-center {
  place-content: center;
}

.cursor-pointer {
  cursor: pointer;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:border-\[#6C56F5\]:hover {
  border-color: #6C56F5;
}

.place-self-center {
  place-self: center;
}

.text-center {
  text-align: center;
}

.inline-flex {
  display: inline-flex;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.mt-2 {
  margin-top: 0.5rem;
}

.game-item-btn {
  flex: 0 0 auto;
}

@media (max-width: 1279px) {
  .game-card .flex.justify-self-center .game-item-btn + .game-item-btn {
    margin-left: -1.25rem;
  }
}

@media (min-width: 1280px) {
  .game-card .flex.justify-self-center .game-item-btn {
    transform: var(--shift, translate(0%));
  }
}

@media (min-width: 1280px) {
  .xl\:grid {
    display: grid;
  }
  
  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  
  .xl\:justify-self-start {
    justify-self: start;
  }
  
  .xl\:justify-self-end {
    justify-self: end;
  }
  
  .xl\:ml-auto {
    margin-left: auto;
  }
  
  .xl\:flex-col {
    flex-direction: column;
  }
  
  .xl\:flex {
    display: flex;
  }
  
  .xl\:hidden {
    display: none;
  }
  
  .xl\:w-16 {
    width: 4rem;
  }
}

.box-border {
  box-sizing: border-box;
}

.grid {
  display: grid;
}

.block {
  display: block;
}

.object-contain {
  object-fit: contain;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.flex-\[0_0_auto\] {
  flex: 0 0 auto;
}

.max-w-full {
  max-width: 100%;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-self-center {
  justify-self: center;
}

.place-content-center {
  place-content: center;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 119px;
  height: calc(100vh - 119px);
  width: 80px;
  background: var(--element-dark);
  border-right: 1px solid #252839;
  z-index: 9;
  display: none;
  flex-direction: column;
  transition: width 0.2s ease;
  overflow: hidden;
}

.sidebar.sidebar-open {
  display: flex;
}

.sidebar.sidebar-open {
  width: 280px;
}

.sidebar.sidebar-open .sidebar-content {
  align-items: stretch;
  padding: 12px 0;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 0;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.sidebar.sidebar-open .sidebar-content {
  align-items: stretch;
  padding: 12px 0;
}

.sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: #424967;
  border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: #1a1d2e;
}

.top-menu-container {
  padding: 0 12px;
  margin-bottom: 8px;
}

.section {
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: rgba(156, 163, 175, 1);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  min-height: 32px;
  box-sizing: border-box;
}

.sidebar:not(.sidebar-open) .section-header {
  display: none !important;
}

.section-header:hover {
  color: rgba(255, 255, 255, 0.8);
}

.section-header .arrow {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
  color: rgba(156, 163, 175, 1);
}

.section-header.active .arrow {
  transform: rotate(180deg);
}

.section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.section-content-open {
  max-height: 500px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  margin: 2px 8px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.nav-link:hover {
  background: rgba(108, 86, 245, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.nav-link.active {
  background: rgba(108, 86, 245, 0.2);
  color: #6C56F5;
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon-container svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.link-text {
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.link-text-visible {
  opacity: 1;
  width: auto;
}

.sidebar.sidebar-open .link-text {
  opacity: 1;
  width: auto;
}

.social-section {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 12px;
  margin-top: auto;
  border-top: 1px solid #252839;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.action-link:hover {
  background: rgba(108, 86, 245, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.action-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

body:has(.sidebar.sidebar-open) .main {
  left: 280px;
  width: calc(100% - 280px);
  max-width: none;
}

.sidebar.sidebar-open ~ .main {
  left: 280px;
  width: calc(100% - 280px);
  max-width: none;
}

@media (min-width: 1280px) {
  body:has(.sidebar.sidebar-open) .main {
    left: calc(320px + 280px);
    width: calc(100% - 320px - 280px);
    max-width: none;
  }
  
  .sidebar.sidebar-open ~ .main {
    left: calc(320px + 280px);
    width: calc(100% - 320px - 280px);
    max-width: none;
  }
}


@media (max-width: 1279px) {
  .sidebar {
    display: none !important;
  }
  
  body:has(.sidebar.sidebar-open) .main,
  .sidebar.sidebar-open ~ .main,
  .main {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    bottom: var(--footer-height) !important;
  }
  
  .rightsidebar.desktop-only {
    display: none !important;
  }
  
  .mobile-footer-nav {
    display: flex !important;
  }
}

/* Mobile Footer Navigation - Clean Version */
.mobile-footer-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(80px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #171925;
  z-index: 1000;
  box-sizing: border-box;
  border-top: 1px solid var(--border-color);
}

.mobile-footer-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  position: relative;
}

.mobile-footer-nav-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  min-height: 44px;
  transition: all 0.2s ease;
  outline: none;
  color: inherit;
  font-family: inherit;
  text-decoration: none;
}

.mobile-footer-nav-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
  display: block;
  transition: color 0.2s ease;
}

.mobile-footer-nav-text {
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.mobile-footer-nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #6C56F5;
  border-radius: 3px 3px 0 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.mobile-footer-nav-btn.active .mobile-footer-nav-icon,
.mobile-footer-nav-btn.active .mobile-footer-nav-text {
  color: #6C56F5;
}

.mobile-footer-nav-btn:not(.active) .mobile-footer-nav-icon,
.mobile-footer-nav-btn:not(.active) .mobile-footer-nav-text {
  color: #9CA3AF;
}

/* Show on mobile only */
@media (max-width: 1279px) {
  .mobile-footer-nav {
    display: flex !important;
  }
  
  .main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px) + 12px);
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Hide on desktop */
@media (min-width: 1280px) {
  .mobile-footer-nav {
    display: none !important;
  }
}

/* Closed state - show only icons */
.sidebar:not(.sidebar-open) .section-header {
  display: none !important;
}

.sidebar:not(.sidebar-open) .link-text,
.sidebar:not(.sidebar-open) .link-text-visible {
  display: none !important;
}

.sidebar:not(.sidebar-open) .nav-link {
  justify-content: center !important;
  padding: 12px !important;
  margin: 4px 8px !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  box-sizing: border-box !important;
  gap: 0 !important;
  background: transparent !important;
  border-radius: 0.5rem !important;
  color: #8A9BC3 !important;
  transition: all 0.2s ease !important;
}

.sidebar:not(.sidebar-open) .nav-link:hover {
  color: #D1D5E8 !important;
  background: transparent !important;
}

.sidebar:not(.sidebar-open) .section-content {
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  overflow: visible !important;
  padding: 8px 0 !important;
  gap: 4px !important;
  width: 100%;
}

.sidebar:not(.sidebar-open) .section-content .nav-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  margin: 4px 8px !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  gap: 0 !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  border-radius: 0.5rem !important;
  color: #8A9BC3 !important;
  transition: all 0.2s ease !important;
}

.sidebar:not(.sidebar-open) .section-content .nav-link:hover {
  color: #D1D5E8 !important;
  background: transparent !important;
}

.sidebar:not(.sidebar-open) .section-content .nav-link .icon-container {
  margin: 0 !important;
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 24px !important;
  max-width: 24px !important;
}

.sidebar:not(.sidebar-open) .section {
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.sidebar:not(.sidebar-open) .social-section {
  flex-direction: column;
  padding: 12px 8px;
  gap: 12px;
  align-items: stretch;
}

.sidebar:not(.sidebar-open) .social-section .action-link {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A9BC3;
  background: transparent;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  padding: 0;
}

.sidebar:not(.sidebar-open) .social-section .action-link:hover {
  color: #fff;
  background: transparent;
  transform: scale(1.05);
}

.sidebar:not(.sidebar-open) .top-menu-container {
  padding: 0 12px;
  display: flex;
  justify-content: center;
}

.sidebar:not(.sidebar-open) .top-menu-container .nav-link {
  justify-content: center !important;
  padding: 8px !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  margin: 0 8px !important;
  gap: 0 !important;
  background: transparent !important;
  border-radius: 0.5rem !important;
  color: #8A9BC3 !important;
  transition: all 0.2s ease !important;
}

.sidebar:not(.sidebar-open) .top-menu-container .nav-link:hover {
  color: #D1D5E8 !important;
  background: transparent !important;
}

.sidebar:not(.sidebar-open) .icon-container {
  margin: 0 !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.sidebar:not(.sidebar-open) .icon-container svg {
  width: 24px !important;
  height: 24px !important;
}

.sidebar:not(.sidebar-open) .nav-link {
  gap: 0 !important;
}

.leftsidebar.sidebar-visible {
  display: flex;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: calc(80px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--element-dark);
  z-index: 99;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Sub Header Bar */
.sub-header-bar {
  display: none;
  position: fixed;
  top: 80px;
  left: 320px;
  right: 0;
  height: 39px;
  background: var(--element-dark);
  border-bottom: 1px solid var(--border-color);
  z-index: 35;
  box-sizing: border-box;
}

.sub-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 32px;
  height: 100%;
}

.sub-header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 9px;
  transition: all 0.2s ease;
  outline: none;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.sub-header-link-text {
  color: var(--subheader-text);
  text-decoration: none;
  white-space: nowrap;
}


.sub-header-link-violet {
  color: var(--primary-color);
  text-shadow: 0 0 12px rgba(108, 86, 245, 0.6);
}


.sub-header-link-blue {
  color: #5293FF;
  text-shadow: 0 0 10px rgba(82, 147, 255, 0.6);
}


.sub-header-link-text:not(.sub-header-link-violet):not(.sub-header-link-blue) {
  color: var(--subheader-text);
}


.sub-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 24px;
  height: 100%;
}

.sub-header-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-accent);
}


.sub-header-icon-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sub-header-icon-link svg path {
  fill: currentColor;
  stroke: currentColor;
}

@media (min-width: 1280px) {
  .sub-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .main {
    top: 119px;
  }
  
  .rightsidebar {
    top: 80px;
    height: calc(100vh - 80px);
  }
  
  .sidebar {
    top: 119px;
    height: calc(100vh - 119px);
  }
}

@media (max-width: 1279px) {
  .sub-header-bar {
    display: none !important;
  }
  
  .main {
    top: 80px;
  }
  
  .rightsidebar {
    top: 80px;
    height: calc(100vh - 80px);
  }
  
  .sidebar {
    top: 80px;
    height: calc(100vh - 80px);
  }
}

.mobile-menu-overlay.mobile-menu-open {
  display: block;
}

.mobile-menu-nav {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background: var(--element-dark);
}
.mobile-menu-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.mobile-menu-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu-close-btn:hover,
.mobile-menu-close-btn:active {
  background: rgba(108, 86, 245, 0.15);
  color: var(--primary-color);
}

.mobile-menu-content {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-menu-section {
  background: var(--element-dark);
  overflow: hidden;
}

.mobile-menu-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.mobile-menu-section-header h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8A75FF;
  margin: 0;
}

.mobile-menu-arrow {
  width: 12px;
  height: 12px;
  color: #8A9BC3;
  transition: transform 0.2s ease;
}

.mobile-menu-section-header.active .mobile-menu-arrow {
  transform: rotate(180deg);
}

.mobile-menu-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  padding: 0;
}

.mobile-menu-section-content.mobile-menu-section-open {
  max-height: 500px;
  opacity: 1;
  padding: 0;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 20px;
  color: #8A9BC3;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  box-sizing: border-box;
}

.mobile-menu-link:hover {
  color: #D1D5E8;
  background: rgba(138, 117, 255, 0.1);
}

.mobile-menu-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: currentColor;
}

@media (max-width: 1023px) {
  .mobile-menu-overlay {
    display: none;
  }
  
  .mobile-menu-overlay.mobile-menu-open {
    display: block;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* Mobile Menu Games Container */
.mobile-menu-games-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(rgba(15, 15, 30, 0.98), rgba(30, 20, 50, 0.98)) fixed, no-repeat rgb(15, 15, 30);
  background-blend-mode: luminosity;
  scrollbar-width: none;
}

.mobile-menu-games-container::-webkit-scrollbar {
  display: none;
}

/* Mobile Chat Container - same as games container */
.mobile-chat-container {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
}

.mobile-chat-container .chat-header {
  flex-shrink: 0;
}

.mobile-chat-container #chatcontainer {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.mobile-chat-container #chatform {
  flex-shrink: 0;
}

.mobile-menu-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-menu-stats .stat-card {
  background: var(--element-dark);
  border: 1px solid #252839;
  border-radius: 8px;
  padding: 12px;
}

.mobile-menu-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mobile-menu-buttons {
  display: flex;
  gap: 8px;
  flex: 1;
}

.mobile-menu-heads-tails {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #252839;
  background: #1C1F2E;
}

.mobile-menu-games-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-game-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid #252839;
  background: radial-gradient(90% 100% at 0px 90%, rgba(0, 0, 0, 0.15) 0px, transparent 100%), #1C1F2E;
  position: relative;
  overflow: hidden;
}

.mobile-game-players {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
}

.mobile-game-player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-game-avatar-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
}

.mobile-game-avatar-wrapper img,
.mobile-game-placeholder-avatar {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: 4px solid #22283F;
  background: linear-gradient(135deg, #1C1F2E 0%, #252839 50%, #1C1F2E 100%);
  object-fit: contain;
}

.mobile-game-placeholder-avatar {
  display: block;
  background: linear-gradient(135deg, #1C1F2E 0%, #252839 50%, #1C1F2E 100%);
}

.mobile-game-side-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  bottom: 0;
}

.mobile-game-player:first-child .mobile-game-side-icon {
  left: 0;
  transform: translate(-25%, 25%);
}

.mobile-game-player:last-child .mobile-game-side-icon {
  right: 0;
  transform: translate(25%, 25%);
}

.mobile-game-side-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
}

.mobile-game-vs {
  font-size: 18px;
  font-weight: bold;
  color: #B0B8C1;
}

.mobile-game-items {
  display: flex;
  gap: 8px;
  justify-self: center;
  flex-wrap: wrap;
  justify-content: center;
}

.mobile-game-item {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 5px;
  border: 2px solid #2F3347;
  background: #1A1D2B;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.mobile-game-item:hover {
  border-color: #6C56F5;
}

.mobile-game-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  border-radius: 0;
}

.mobile-game-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 25, 37, 0.8);
  backdrop-filter: blur(1px);
  color: white;
  font-weight: bold;
  pointer-events: none;
}

.mobile-game-value {
  text-align: center;
  justify-self: center;
}

.mobile-game-value-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: bold;
  color: white;
  margin: 0;
  line-height: normal;
}

.mobile-value-icon {
  width: 20px;
  height: 20px;
}

.mobile-game-value-range {
  font-size: 14px;
  color: #CCC;
  margin: 4px 0 0 0;
  line-height: normal;
}

.mobile-game-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1023px) {
  .mobile-game-card {
    grid-template-columns: 1fr;
  }
  
  .mobile-game-players,
  .mobile-game-items,
  .mobile-game-value,
  .mobile-game-actions {
    justify-self: center;
  }
}

/* New Mobile Menu Styles */
._mobilehome_1ngml_1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

._sectionHeader_1ngml_27 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8A75FF;
  margin: 0;
  padding: 8px 0;
  font-family: 'Poppins', sans-serif;
}

._gameItem_1ngml_39 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

._gameItem_1ngml_39:hover {
  background: rgba(108, 86, 245, 0.1);
  border-color: var(--primary-color);
  transform: translateX(4px);
}

._gameIcon_1ngml_78 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(108, 86, 245, 0.1);
  border-radius: 0.5rem;
  flex-shrink: 0;
  color: var(--primary-color);
}

._gameIcon_1ngml_78 svg {
  width: 1.6rem;
  height: 1.6rem;
}

._gameContent_1ngml_92 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

._gameTitle_1ngml_98 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

._gameDescription_1ngml_105 {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

._chevron_1ngml_110 {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 300;
  flex-shrink: 0;
}

._utilityGrid_1ngml_116 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

._utilityItem_1ngml_122 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--element-dark);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

._utilityItem_1ngml_122:hover {
  background: rgba(108, 86, 245, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

._utilityIcon_1ngml_152 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(108, 86, 245, 0.1);
  border-radius: 0.5rem;
  color: var(--primary-color);
  margin-bottom: 4px;
}

._utilityIcon_1ngml_152 svg {
  width: 1em;
  height: 1em;
}

._utilityTitle_1ngml_166 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

._utilityDescription_1ngml_173 {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

/* Hide mobile footer when chat is open */
.rightsidebar:not(.desktop-only) ~ #mobile-footer-nav,
body:has(.rightsidebar:not(.desktop-only)) #mobile-footer-nav {
  display: none !important;
}

/* Header Navigation Badge */
.header-nav-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  z-index: 1;
}

.header-nav-badge::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.45;
  filter: blur(4px);
  background: var(--primary-color);
  border-radius: 2px;
}

.header-nav-badge-icon {
  width: 16px;
  height: 12px;
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
}

.header-nav-badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

/* Header Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Header Wallet */
.header-wallet {
  display: flex;
  align-items: stretch;
}

.header-wallet-btn {
  display: flex;
  align-items: stretch;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.header-wallet-btn:hover {
  opacity: 0.9;
}

.header-wallet-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 25, 37, 0.8);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.header-wallet-icon {
  width: 20px;
  height: 20px;
  margin-top: -3px;
}

.header-wallet-text {
  font-weight: 600;
  font-size: 0.875rem;
}

.header-wallet-label {
  display: flex;
  align-items: center;
  background: var(--primary-color);
  padding: 12px 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--element-dark);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.05em;
}

/* Header User Button */
.header-user-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(23, 25, 37, 0.6);
}

.header-user-btn:hover {
  background: rgba(23, 25, 37, 0.8);
  opacity: 0.9;
}

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

.header-user-avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
}

.header-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.header-level-circle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.header-level-wrap {
  display: none;
  width: 112px;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 900px) {
  .header-level-wrap {
    display: flex;
  }
}

.header-level-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.header-level-label {
  color: rgba(255, 255, 255, 0.85);
}

.header-level-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
}

.header-level-next {
  color: rgba(255, 255, 255, 0.5);
}

.header-level-bar-bg {
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: #252839;
  overflow: hidden;
}

.header-level-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.profile-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  color: #fff;
  margin-top: 6px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Mobile Header - only visible in @media (max-width: 1279px) via rules above */
@media (max-width: 1279px) {
.header-mobile {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 12px;
  gap: 12px;
  min-height: 56px;
}

.header-mobile-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-mobile-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-mobile-wallet-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(23, 25, 37, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.header-mobile-wallet-btn:hover {
  background: rgba(23, 25, 37, 1);
}

.header-mobile-wallet-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.header-mobile-wallet-value {
  font-weight: 600;
  font-size: 0.875rem;
}

.header-mobile-level-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.header-mobile-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 6px 4px 4px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.header-mobile-user-btn:hover {
  background: rgba(23, 25, 37, 0.6);
}

.header-mobile-avatar-wrap {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--element-dark);
}

.header-mobile-user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: middle;
}

.header-mobile-user-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-mobile-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-mobile-user-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Poppins', sans-serif;
}

.header-mobile-user-balance {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.header-mobile-user-gem {
  width: 16px;
  height: 16px;
  margin-top: -2px;
}
}

/* Live Winnings Styles */
.live-winnings-container {
  background: #171925;
  border: 1px solid #252839;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.live-winnings-container .live-winnings-scroll-wrapper {
  margin-right: 3rem;
}

.live-winnings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.live-winnings-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

@media (min-width: 640px) {
  .live-winnings-title {
    font-size: 1.125rem;
  }
}

.live-winnings-mute-btn {
  transition: color 0.2s ease;
  color: rgba(156, 163, 175, 1);
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-winnings-mute-btn:hover {
  color: #fff;
}

.live-winnings-mute-icon {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .live-winnings-mute-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.live-winnings-scroll-wrapper {
  position: relative;
  overflow: hidden;
}

.live-winnings-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 0.25rem 0.25rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.live-winnings-scroll::-webkit-scrollbar {
  height: 4px;
}

.live-winnings-scroll::-webkit-scrollbar-thumb {
  background: #424967;
  border-radius: 2px;
}

.live-winnings-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.live-winnings-scroll-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease;
  z-index: 10;
  outline: none;
  border: 0;
  border-radius: 0 0.5rem 0.5rem 0;
  cursor: pointer;
}

.live-winnings-scroll-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.live-winnings-scroll-btn svg {
  color: #fff;
  font-size: 1.25rem;
  width: 1em;
  height: 1em;
}

.live-winning-card {
  flex-shrink: 0;
  width: 20rem;
  border-radius: 0.375rem;
  border: 1px solid #252839;
  background: #1C1F2E;
  padding: 0.75rem;
  user-select: none;
  transition: all 0.5s ease-out;
  box-sizing: border-box;
}

.live-winning-values {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  color: #6C56F5;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.live-winning-value-item,
.live-winning-value-total {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.live-winning-value-gain {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  background: rgba(108, 86, 245, 0.2);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.live-winning-items {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  overflow: visible;
}

.live-winning-items-left,
.live-winning-items-right {
  display: flex;
  align-items: center;
  overflow: visible;
}

.live-winning-items-left {
  margin-left: 0;
  padding-left: 0.5rem;
}

.live-winning-items-right {
  margin-left: -1rem;
}

.live-winning-item {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid #252839;
  background: #171925;
  position: relative;
  margin-left: -1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.live-winning-item:first-child {
  margin-left: 0;
}

.live-winning-item-img {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.live-winning-item-more {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid #252839;
  background: #171925;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 700;
  margin-left: -1rem;
  font-family: 'Poppins', sans-serif;
}

.live-winning-arrow {
  position: absolute;
  left: 50%;
  top: 33.333%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(156, 163, 175, 1);
  z-index: 100;
}

.live-winning-arrow svg {
  width: 1rem;
  height: 1rem;
}

.live-winning-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.live-winning-user {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.live-winning-avatar {
  position: relative;
  box-sizing: border-box;
  display: grid;
  aspect-ratio: 1;
  cursor: pointer;
  place-content: center;
  border-radius: 1.125rem;
  border: 2px solid #22283F;
  overflow: hidden;
  height: 2rem;
  width: 2rem;
  background: linear-gradient(135deg, rgb(28, 31, 46) 0%, rgb(37, 40, 57) 50%, rgb(28, 31, 46) 100%);
}

.live-winning-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(-4px + 1.125rem);
}

.live-winning-username {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(156, 163, 175, 1);
  font-family: 'Poppins', sans-serif;
}

.live-winning-multiplier {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.live-winning-multiplier-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  font-family: 'Poppins', sans-serif;
}
