:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090806;
  color: #f5f7fb;
}

html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  background:
    radial-gradient(circle at 20% 0%, rgba(191, 145, 48, 0.28), transparent 34%),
    linear-gradient(180deg, #100e0a 0%, #090806 100%);
}

.app {
  width: min(100%, 520px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.home-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.home-header > div:not(.online-badge) {
  min-width: 0;
}

.home-title {
  font-size: 24px;
}

.online-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(49, 214, 105, 0.22);
  border-radius: 999px;
  background: rgba(49, 214, 105, 0.1);
  color: #bfffd3;
  font-size: 13px;
  font-weight: 900;
}

.online-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31d669;
  box-shadow: 0 0 0 4px rgba(49, 214, 105, 0.14);
}

.online-badge b {
  display: inline-block;
  color: #e8ffef;
  min-width: 1.2em;
  text-align: center;
  transform-origin: center;
}

.online-badge b.is-changing {
  animation: onlineFlip 0.34s ease;
}

@keyframes onlineFlip {
  0% {
    opacity: 0.35;
    transform: translateY(-7px) scale(0.9);
  }

  58% {
    opacity: 1;
    transform: translateY(2px) scale(1.08);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.menu-button {
  display: grid;
  gap: 5px;
  place-content: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  background: #a77b26;
  box-shadow: 0 10px 28px rgba(191, 145, 48, 0.28);
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.side-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.54);
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 21;
  width: min(82vw, 310px);
  max-height: 100vh;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0d0d12;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 26px 0 70px rgba(0, 0, 0, 0.48);
}

.side-card {
  display: grid;
  gap: 18px;
}

.side-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(191, 145, 48, 0.28), rgba(255, 255, 255, 0.06));
}

.side-profile-info {
  min-width: 0;
  flex: 1;
}

.side-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-profile b,
.side-profile span {
  display: block;
}

.side-profile b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-profile span {
  margin-top: 4px;
  color: #b9bfcc;
  font-size: 13px;
}

.side-profile strong {
  color: #f5c16c;
  font-weight: 900;
  white-space: nowrap;
}

.side-deposit {
  min-height: 30px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff;
  color: #121217;
  font-size: 12px;
}

.side-profile-button {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(245, 193, 108, 0.28);
  border-radius: 50%;
  background: rgba(245, 193, 108, 0.12);
  color: #f5c16c;
  font-size: 16px;
}

.side-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  background: #a77b26;
  color: #fff;
  font-weight: 900;
}

.side-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
  text-align: left;
}

.side-nav-inventory {
  border: 1px solid rgba(245, 193, 108, 0.24);
  background: rgba(245, 193, 108, 0.1);
  color: #f5c16c;
  font-weight: 900;
}

.side-nav-item.is-active {
  background: #a77b26;
  box-shadow: 0 12px 30px rgba(191, 145, 48, 0.28);
}

.side-fao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.side-fao > span {
  color: #aab1c5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.side-socials {
  display: flex;
  gap: 8px;
}

.side-social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(245, 193, 108, 0.22);
  border-radius: 50%;
  background: rgba(191, 145, 48, 0.18);
  color: #f5c16c;
  font-size: 20px;
}

.side-social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.profile-screen {
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}

.inventory-screen {
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
}

.inventory-hero {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(191, 145, 48, 0.22), transparent 58%),
    rgba(255, 255, 255, 0.055);
}

.inventory-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: #a77b26;
  color: #fff;
  font-weight: 900;
}

.inventory-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-hero span,
.inventory-hero h2 {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.inventory-hero span {
  color: #aab1c5;
  font-size: 13px;
  font-weight: 800;
}

.inventory-hero h2 {
  margin: 4px 0 0;
  color: #f5f7fb;
  font-size: 24px;
}

.inventory-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  border: 1px dashed rgba(245, 193, 108, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.inventory-empty[hidden] {
  display: none !important;
}

.inventory-empty span {
  color: #f5c16c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.inventory-empty b {
  color: #d7dbe7;
  font-size: 18px;
}

.inventory-empty-inner {
  display: grid;
  place-items: center;
  gap: 9px;
}

.empty-buy-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(245, 193, 108, 0.3);
  border-radius: 8px;
  background: rgba(245, 193, 108, 0.16);
  color: #f5c16c;
  font-size: 13px;
  font-weight: 900;
}

.inventory-list {
  display: grid;
  gap: 8px;
}

.inventory-list[hidden] {
  display: none !important;
}

.inventory-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 193, 108, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(191, 145, 48, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.055);
}

.inventory-item.no-image {
  grid-template-columns: minmax(0, 1fr) auto;
}

.inventory-item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.inventory-item span,
.inventory-item b,
.inventory-item small {
  display: block;
  min-width: 0;
}

.inventory-item b {
  color: #f5f7fb;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-item small {
  color: #aab1c5;
  font-size: 12px;
}

.inventory-item strong {
  color: #f5c16c;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.inventory-sell {
  grid-column: 1 / -1;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(245, 193, 108, 0.18);
  border-radius: 7px;
  background: #a77b26;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.upgrade-screen {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  gap: 12px;
  min-height: calc(100vh - 96px);
  padding-bottom: 24px;
}

.upgrade-wins-banner {
  min-height: 54px;
  border: 1px solid rgba(245, 193, 108, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 193, 108, 0.08), transparent 54%),
    rgba(255, 255, 255, 0.045);
}

.upgrade-main {
  display: grid;
  place-items: center;
  align-self: center;
  gap: 12px;
}

.upgrade-stage {
  display: grid;
  grid-template-columns: 58px minmax(0, 260px) 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 390px;
}

.upgrade-circle {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: min(58vw, 260px);
  aspect-ratio: 1;
}

.upgrade-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(#f5c16c 0deg var(--upgrade-deg, 0deg), rgba(255, 255, 255, 0.1) var(--upgrade-deg, 0deg) 360deg);
  box-shadow:
    0 0 0 1px rgba(245, 193, 108, 0.16),
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(191, 145, 48, 0.28);
}

.upgrade-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.08), transparent 42%),
    #111118;
}

.upgrade-pointer {
  position: absolute;
  z-index: 4;
  inset: -10px;
  border-radius: 50%;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.upgrade-pointer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 15px solid #f5c16c;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 10px rgba(245, 193, 108, 0.76));
}

.upgrade-circle.is-spinning .upgrade-pointer {
  animation: upgrade-pointer-spin 2.5s cubic-bezier(0.14, 0.76, 0.18, 1) both;
}

@keyframes upgrade-pointer-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(var(--upgrade-spin-end, 1620deg));
  }
}

.upgrade-center {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #f5f7fb;
}

.upgrade-center span {
  color: #f5c16c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.upgrade-center b {
  font-size: 42px;
  line-height: 1;
}

.upgrade-center.is-result {
  width: 62%;
  text-align: center;
}

.upgrade-result-image {
  width: min(86px, 23vw);
  height: min(86px, 23vw);
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.52));
}

.upgrade-result-title {
  max-width: 100%;
  color: #f5f7fb;
  font-size: 17px !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere;
}

.upgrade-center.is-win .upgrade-result-title {
  color: #f5c16c;
  font-size: 22px !important;
}

.upgrade-result-gold {
  color: #f5c16c !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
}

.upgrade-start {
  width: min(100%, 220px);
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #a77b26;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(191, 145, 48, 0.28);
}

.upgrade-start:disabled,
.upgrade-start.is-disabled {
  background: #3b2e16;
  color: rgba(255, 255, 255, 0.62);
  box-shadow: none;
  cursor: not-allowed;
}

.upgrade-status {
  min-height: 16px;
  color: #ff8b98;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.upgrade-status[hidden] {
  display: none;
}

.upgrade-side-controls {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  justify-self: end;
  align-self: center;
  gap: 7px;
  transform: translateY(14px);
}

.upgrade-quick-filters {
  display: grid;
  gap: 7px;
}

.upgrade-quick-filter,
.upgrade-filter-settings {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(245, 193, 108, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #f5c16c;
  font-size: 13px;
  font-weight: 900;
}

.upgrade-quick-filter.is-active,
.upgrade-quick-filter.is-flashing {
  background: #a77b26;
  color: #fff;
  box-shadow: 0 10px 24px rgba(191, 145, 48, 0.24);
}

.upgrade-quick-filter.is-flashing {
  animation: upgrade-filter-flash 0.34s ease-out both;
}

@keyframes upgrade-filter-flash {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.055);
    color: #f5c16c;
  }

  42%,
  72% {
    background: #a77b26;
    color: #fff;
  }
}

.upgrade-filter-settings {
  font-size: 17px;
}

.upgrade-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upgrade-panel {
  display: grid;
  grid-template-rows: auto minmax(86px, 1fr);
  min-width: 0;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid rgba(245, 193, 108, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(191, 145, 48, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.055);
  color: #f5f7fb;
}

.upgrade-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.upgrade-panel-head h3 {
  min-width: 0;
  margin: 0;
  color: #f5c16c;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upgrade-filter-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(245, 193, 108, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.upgrade-filter-card > span {
  color: #f5c16c;
  font-size: 12px;
  font-weight: 900;
}

.upgrade-filters {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  min-width: 0;
}

.upgrade-sort {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(245, 193, 108, 0.24);
  border-radius: 7px;
  background: rgba(245, 193, 108, 0.12);
  color: #f5c16c;
  font-size: 18px;
  line-height: 1;
}

.upgrade-price-field {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.upgrade-price-field span {
  color: #aab1c5;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.upgrade-price-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
  color: #f5c16c;
  font-size: 14px;
  font-weight: 900;
}

.upgrade-panel-body {
  display: block;
  min-width: 0;
  max-height: 230px;
  min-height: 0;
  padding: 8px;
  overflow-y: auto;
}

.upgrade-empty {
  margin: 24px 0;
  color: #aab1c5;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.upgrade-empty-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 132px;
}

.upgrade-empty-card b {
  color: #d7dbe7;
  font-size: 13px;
}

.upgrade-empty-card .empty-buy-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
}

.upgrade-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.upgrade-item {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.08), transparent 52%),
    rgba(0, 0, 0, 0.26);
}

.upgrade-item img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.48));
}

.upgrade-item span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  padding: 3px 4px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.68);
  color: #f5c16c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upgrade-item.is-selected {
  border-color: #f5c16c;
  background:
    radial-gradient(circle at 50% 28%, rgba(245, 193, 108, 0.2), transparent 56%),
    rgba(245, 193, 108, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(245, 193, 108, 0.62),
    0 0 18px rgba(245, 193, 108, 0.24);
}

.upgrade-item.is-selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5c16c;
  color: #161217;
  font-size: 12px;
  font-weight: 1000;
}

.upgrade-item.no-image {
  color: #f5c16c;
  font-size: 11px;
  font-weight: 900;
}

.upgrade-filter-modal {
  display: grid;
  gap: 12px;
}

.upgrade-filter-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-screen .section-heading {
  margin-bottom: 0;
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(191, 145, 48, 0.22), rgba(255, 255, 255, 0.045)),
    #101016;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-top b,
.profile-top span {
  display: block;
}

.profile-top span {
  margin-top: 5px;
  color: #aab1c5;
  font-size: 13px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: #a77b26;
  color: #fff;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-stats {
  display: grid;
  gap: 8px;
}

.profile-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.profile-stats span {
  color: #b9bfcc;
  font-size: 13px;
}

.profile-stats b {
  color: #f5c16c;
  font-size: 15px;
  white-space: nowrap;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-actions button {
  min-height: 44px;
}

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.welcome-modal[hidden] {
  display: none;
}

.welcome-card {
  width: min(100%, 380px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(191, 145, 48, 0.22), transparent 44%),
    #111117;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.welcome-badge {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #a77b26;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.welcome-card h2 {
  margin: 16px 0 10px;
  font-size: 24px;
}

.welcome-card p {
  margin: 0 0 18px;
  color: #c9ced8;
  line-height: 1.45;
}

.placeholder-screen {
  min-height: 62vh;
  display: grid;
  place-items: center;
}

.placeholder-screen[hidden] {
  display: none;
}

.pvp-screen[hidden] {
  display: none !important;
}

.market-screen[hidden],
.deposit-screen[hidden],
.inventory-screen[hidden],
.upgrade-screen[hidden],
.profile-screen[hidden],
.bonus-screen[hidden],
.withdraw-screen[hidden],
.market-view[hidden] {
  display: none !important;
}

.bonus-screen {
  min-height: 62vh;
  display: grid;
  place-items: center;
}

.bonus-card {
  width: min(100%, 360px);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(245, 193, 108, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(191, 145, 48, 0.24), transparent 50%),
    rgba(12, 12, 18, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.bonus-badge {
  justify-self: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 193, 108, 0.14);
  color: #f5c16c;
  font-size: 12px;
  font-weight: 900;
}

.bonus-card h2 {
  margin: 0;
  color: #f5f7fb;
  font-size: 30px;
}

.bonus-card p {
  margin: 0;
  color: #c9ced8;
  line-height: 1.45;
}

.bonus-card p b,
.bonus-card small {
  color: #f5c16c;
}

.bonus-card button {
  min-height: 46px;
}

.bonus-card button.is-disabled {
  background: #3a141a;
  color: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.bonus-promocode {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.bonus-promocode span {
  color: #cbd1df;
  font-size: 13px;
  font-weight: 800;
}

.bonus-promocode small {
  min-height: 18px;
  color: #f5c16c;
}

.placeholder-card {
  width: min(100%, 360px);
  padding: 34px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(191, 145, 48, 0.24), transparent 46%),
    rgba(12, 12, 18, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.placeholder-card span {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(191, 145, 48, 0.24);
  color: #ff9aa5;
  font-size: 12px;
  font-weight: 900;
}

.placeholder-card h2 {
  margin: 18px 0 8px;
  font-size: 36px;
}

.placeholder-card p {
  margin: 0;
  color: #c9ced8;
  font-size: 18px;
}

.market-screen {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow-x: hidden;
}

.deposit-screen {
  display: grid;
  gap: 14px;
}

.withdraw-screen {
  display: grid;
  gap: 14px;
}

.market-view {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.deposit-view,
.withdraw-view {
  display: grid;
  gap: 14px;
}

.deposit-view[hidden],
.withdraw-view[hidden] {
  display: none !important;
}

.section-heading {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(191, 145, 48, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.055);
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.market-actions {
  display: grid;
  gap: 10px;
}

.market-action {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-areas:
    "icon title"
    "icon subtitle";
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.065);
  color: #f5f7fb;
  text-align: left;
}

.market-action span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(191, 145, 48, 0.24);
  font-size: 22px;
}

.market-action b {
  grid-area: title;
  font-size: 16px;
}

.market-action small {
  grid-area: subtitle;
  margin-top: 4px;
  color: #b9bfcc;
  font-size: 12px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-category {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 94px;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(191, 145, 48, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
  text-align: center;
}

.market-category img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.42));
}

.market-category span {
  font-size: 14px;
  font-weight: 800;
}

.rarity-grid {
  display: grid;
  gap: 10px;
}

.rarity-button {
  min-height: 58px;
  width: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.rarity-button[hidden] {
  display: none;
}

.rarity-button:disabled {
  opacity: 0.45;
}

.rarity-rare {
  background: linear-gradient(135deg, #1777ff, #0f4fb3);
  box-shadow: 0 14px 34px rgba(23, 119, 255, 0.24);
}

.rarity-epic {
  background: linear-gradient(135deg, #8d3cff, #5518b8);
  box-shadow: 0 14px 34px rgba(141, 60, 255, 0.24);
}

.rarity-legendary {
  background: linear-gradient(135deg, #ff4fb8, #bb1a7c);
  box-shadow: 0 14px 34px rgba(255, 79, 184, 0.24);
}

.rarity-arcane {
  background: linear-gradient(135deg, #e02032, #8f101c);
  box-shadow: 0 14px 34px rgba(224, 32, 50, 0.28);
}

.market-search {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.market-search span {
  color: #aab1c5;
  font-size: 12px;
  font-weight: 700;
}

.market-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 8px;
}

.market-search input {
  min-height: 42px;
  padding: 0 12px;
  border-color: rgba(245, 193, 108, 0.22);
  background: rgba(10, 10, 14, 0.82);
  font-size: 15px;
}

.keyboard-hide {
  display: grid;
  place-items: center;
  min-height: 42px;
  width: 42px;
  padding: 0;
  background: rgba(245, 193, 108, 0.18);
  color: #f5c16c;
  font-size: 22px;
  font-weight: 900;
}

.price-sort-button {
  color: #f5c16c;
}

.market-items-list {
  display: grid;
  gap: 8px;
}

.market-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
  text-align: left;
}

.market-item.text-only {
  grid-template-columns: 1fr;
}

.market-item.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.market-item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.market-item span,
.market-item b,
.market-item small {
  display: block;
  min-width: 0;
}

.market-item b {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-item small,
.market-loading {
  color: #b9bfcc;
  font-size: 13px;
}

.market-item.has-price {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.market-item.has-price.no-image {
  grid-template-columns: minmax(0, 1fr) auto;
}

.market-item-price {
  justify-self: end;
  color: #f5c16c;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.market-loading {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.market-trade-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(191, 145, 48, 0.18), transparent 54%),
    rgba(255, 255, 255, 0.055);
}

.market-trade-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.46));
}

.market-trade-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.market-trade-id {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #b9bfcc;
  font-size: 13px;
}

.market-stats {
  display: grid;
  gap: 10px;
}

.compact-list .market-item {
  min-height: 58px;
}

.sticker-summary {
  display: grid;
  gap: 10px;
}

.sticker-summary div {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sticker-summary img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.sticker-summary span {
  font-weight: 800;
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sticker-count-button {
  min-height: 58px;
  padding: 0;
  border: 1px solid rgba(245, 193, 108, 0.24);
  background: rgba(245, 193, 108, 0.14);
  color: #f5c16c;
  font-size: 20px;
  font-weight: 900;
}

.sticker-results-list {
  display: grid;
  gap: 10px;
}

.sticker-results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.sticker-results-heading > div {
  min-width: 0;
}

.sticker-results-heading h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mini-new-search {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(245, 193, 108, 0.28);
  border-radius: 7px;
  background: rgba(245, 193, 108, 0.13);
  color: #f5c16c;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.queue-spinner {
  display: inline-grid;
  position: relative;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 50%;
  transform: translateZ(0);
}

.queue-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid rgba(245, 193, 108, 0.18);
  border-top-color: #f5c16c;
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
  will-change: transform;
}

.queue-position-ring {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border: 3px solid rgba(245, 193, 108, 0.72);
  border-radius: 50%;
  color: #f5c16c;
  font-size: 15px;
  font-weight: 900;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.market-loading b,
.market-loading small {
  display: block;
}

.market-loading small {
  margin-top: 5px;
  color: #8f97ab;
}

.sticker-result-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(191, 145, 48, 0.15), transparent 54%),
    rgba(255, 255, 255, 0.055);
}

.sticker-result-head,
.sticker-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.sticker-result-head b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sticker-result-head strong {
  color: #f5c16c;
  white-space: nowrap;
}

.sticker-result-meta {
  color: #b9bfcc;
  font-size: 13px;
}

.sticker-result-meta b {
  color: #f5f7fb;
}

.sticker-result-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.sticker-result-stickers span {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7dbe7;
  font-size: 12px;
  overflow: hidden;
}

.sticker-result-stickers img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  margin: auto;
}

.sticker-result-stickers small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.sticker-result-stickers .is-target {
  background: rgba(245, 193, 108, 0.16);
  color: #f5c16c;
}

.sticker-result-card code {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #aab1c5;
  font-size: 12px;
}

@media (max-width: 390px) {
  .upgrade-screen {
    grid-template-rows: auto minmax(230px, 1fr) auto auto;
  }

  .upgrade-circle {
    width: min(56vw, 210px);
  }

  .upgrade-stage {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    gap: 8px;
    max-width: 340px;
  }

  .upgrade-quick-filter,
  .upgrade-filter-settings {
    width: 44px;
    min-height: 36px;
    font-size: 12px;
  }

  .upgrade-side-controls {
    transform: translateY(10px);
  }

  .upgrade-start {
    min-height: 42px;
  }

  .upgrade-slots {
    gap: 8px;
  }

  .upgrade-panel {
    min-height: 150px;
  }

  .market-trade-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .market-trade-image {
    width: 64px;
    height: 64px;
  }

  .market-trade-card h2 {
    font-size: 19px;
  }

  .market-stat {
    align-items: flex-start;
    gap: 6px;
    padding: 11px 12px;
  }

  .market-stat b {
    font-size: 16px;
  }

  .market-item.has-price {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .market-item.has-price.no-image {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .market-item-price {
    font-size: 13px;
  }

  .sticker-results-heading {
    align-items: stretch;
  }

  .mini-new-search {
    min-height: 30px;
    padding: 0 7px;
    font-size: 10px;
  }

  .sticker-result-card {
    padding: 11px;
  }

  .sticker-result-stickers span {
    width: 38px;
    height: 38px;
  }

  .sticker-result-stickers img {
    width: 31px;
    height: 31px;
  }
}

.market-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.market-stat span {
  min-width: 0;
  color: #b9bfcc;
  font-size: 13px;
}

.market-stat b {
  min-width: 0;
  color: #fff;
  font-size: 18px;
  text-align: right;
  overflow-wrap: anywhere;
}

.digit-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  min-width: 92px;
}

.digit-price img {
  width: auto;
  height: 22px;
  object-fit: contain;
}

.digit-price span {
  margin-left: 4px;
  color: #f5c16c;
  font-size: 17px;
  font-weight: 900;
}

.gold-price {
  color: #f5c16c !important;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(245, 193, 108, 0.2);
}

.full-button {
  width: 100%;
}

.inline-placeholder {
  width: 100%;
}

.deposit-status {
  margin: 0;
  color: #b9bfcc;
  font-size: 13px;
}

.deposit-limit {
  display: inline-block;
  margin-left: 6px;
  color: #f5c16c;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

#depositAmount {
  color: #f5c16c;
  font-weight: 900;
}

#withdrawAmount,
#withdrawPattern,
#withdrawUid {
  color: #f5c16c;
  font-weight: 900;
}

.select-line {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.07);
  color: #f5f7fb;
  text-align: left;
}

.select-line::after {
  content: "⌄";
  margin-left: auto;
  color: #f5c16c;
}

.withdraw-summary {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(245, 193, 108, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 193, 108, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.06);
}

.withdraw-summary span,
.withdraw-summary small {
  color: #b9bfcc;
  font-size: 13px;
}

.withdraw-summary b {
  color: #f5c16c;
  font-size: 28px;
  line-height: 1;
}

.withdraw-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.withdraw-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.withdraw-skin-modal {
  max-height: min(78vh, 560px);
  overflow: hidden;
}

.withdraw-skin-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  margin: 12px 0;
  overflow-y: auto;
  padding-right: 2px;
}

.withdraw-skin-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.07);
  color: #f5f7fb;
  text-align: left;
}

.withdraw-skin-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.withdraw-skin-item span,
.withdraw-skin-item b,
.withdraw-skin-item small {
  display: block;
  min-width: 0;
}

.withdraw-skin-item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.withdraw-skin-item small {
  margin-top: 3px;
  color: #b9bfcc;
  font-size: 12px;
}

.is-disabled {
  opacity: 0.55;
  filter: saturate(0.65);
}

.deposit-submit {
  width: 46px;
  min-width: 46px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.deposit-amount-row {
  grid-template-columns: minmax(112px, 1fr) 46px 46px;
  max-width: 270px;
}

.deposit-promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  max-width: 270px;
}

.deposit-promo-row input {
  color: #f5c16c;
  font-weight: 900;
  text-transform: uppercase;
}

.deposit-promo-status {
  min-height: 18px;
  margin: -4px 0 0;
  color: #f06c7c;
  font-size: 12px;
  font-weight: 800;
}

.deposit-promo-status.is-ok {
  color: #57d987;
}

.deposit-active-button {
  width: 46px;
  min-width: 46px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
}

.deposit-fast-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.deposit-fast-buttons button {
  min-height: 42px;
  padding: 0 8px;
  background:
    linear-gradient(180deg, rgba(245, 193, 108, 0.24), rgba(191, 145, 48, 0.72));
  color: #fff;
  box-shadow: 0 12px 28px rgba(191, 145, 48, 0.18);
}

.deposit-pay-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 18px;
  line-height: 1.2;
}

.deposit-timer {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  z-index: 0;
}

.deposit-timer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    conic-gradient(from 0deg, #f5c16c, rgba(245, 193, 108, 0.18), #f5c16c);
  animation: deposit-timer-spin 7s linear infinite;
}

.deposit-timer::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: inherit;
  background: #151116;
}

@keyframes deposit-timer-spin {
  to {
    transform: rotate(360deg);
  }
}

.deposit-card,
.deposit-avatar-card,
.deposit-meta {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(191, 145, 48, 0.22), rgba(255, 255, 255, 0.055));
}

.deposit-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.deposit-skin {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.deposit-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.deposit-info b {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.deposit-info span {
  color: #b9bfcc;
  font-size: 13px;
}

.deposit-info strong {
  color: #f5c16c;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(245, 193, 108, 0.18);
}

.deposit-avatar-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.deposit-avatar-card img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.deposit-avatar-card span {
  display: block;
  color: #b9bfcc;
  font-size: 13px;
}

.deposit-avatar-card b {
  display: block;
  margin-top: 4px;
}

.deposit-meta {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: #dfe3ee;
  font-size: 13px;
}

.deposit-meta b {
  color: #f5c16c;
}

.deposit-meta code {
  color: #fff;
  overflow-wrap: anywhere;
}

.topbar,
.panel,
.controls {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}

.topbar h1 {
  margin: 0;
  color: #f5c16c;
  font-size: 24px;
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(245, 193, 108, 0.18);
}

.top-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px;
}

.top-actions button {
  min-height: 36px;
  padding: 0 9px;
  font-size: 12px;
}

.label {
  margin: 0 0 6px;
  color: #aab1c5;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #a77b26;
  color: #fff;
  font-weight: 800;
}

.danger {
  background: #a77b26;
  color: #fff;
}

.danger.is-disabled,
button.danger:disabled {
  background: #3b2e16;
  color: rgba(255, 255, 255, 0.62);
}

button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.roulette {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 330px;
}

.history-button,
.top-day-button {
  position: absolute;
  top: 6px;
  z-index: 5;
  min-height: 34px;
  padding: 0 10px;
  background: #1b1c24;
  color: #f5f7fb;
  font-size: 12px;
}

.history-button {
  right: 0;
}

.top-day-button {
  left: 0;
}

.pointer {
  position: absolute;
  top: 10px;
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 30px solid #f5f7fb;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.pointer::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -38px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #f5f7fb;
}

.wheel {
  position: relative;
  display: grid;
  place-items: center;
  width: min(78vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #555b66;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  transition: none;
}

.wheel.is-waiting {
  animation: idle-spin 8s linear infinite;
  background: conic-gradient(#555b66, #383d47, #555b66);
}

.wheel.is-spinning {
  transition: none;
}

.center {
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
  padding: 6px;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.players-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.player-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: var(--color);
  color: #fff;
  font-weight: 900;
  overflow: hidden;
  transform:
    rotate(var(--angle))
    translate(var(--radius))
    rotate(calc(-1 * var(--angle)))
    translate(-50%, -50%);
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.controls {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
}

.quick-bets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-bet,
.edit-bets {
  min-height: 46px;
  padding: 0 8px;
}

.field {
  display: grid;
  gap: 8px;
  color: #cbd1df;
  font-size: 13px;
}

.field[hidden],
.field.is-hidden {
  display: none !important;
}

.bet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  background: #191d27;
  color: #f5f7fb;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.pin {
  min-height: 46px;
  padding: 0 10px;
  font-size: 14px;
  letter-spacing: 0;
}

.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
}

.stat {
  display: grid;
  gap: 4px;
}

.stat span {
  color: #aab1c5;
  font-size: 13px;
}

.stat b {
  font-size: 18px;
}

.panel p {
  grid-column: 1 / -1;
  min-height: 36px;
  margin: 0;
  color: #cbd1df;
}

.players-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-height: 50px;
  max-height: 172px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.player-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.list-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--color);
  border-radius: 50%;
  background: #191d27;
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.player-meta b,
.player-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta span {
  color: #aab1c5;
  font-size: 13px;
}

.player-chance {
  font-weight: 900;
  color: #f4c84a;
}

.empty-list {
  color: #aab1c5;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

.modal[hidden] {
  display: none;
}

.modal-content {
  display: grid;
  grid-template-rows: auto;
  gap: 14px;
  width: min(100%, 360px);
  max-height: min(86vh, 680px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: #191d27;
  overflow: hidden;
}

.modal-content h2 {
  margin: 0;
  font-size: 19px;
}

.modal-note {
  margin: -6px 0 0;
  color: #aab1c5;
  font-size: 13px;
}

.deposit-success-card {
  text-align: center;
  background:
    linear-gradient(145deg, rgba(245, 193, 108, 0.12), rgba(191, 145, 48, 0.22)),
    #191d27;
}

.success-badge {
  justify-self: center;
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(245, 193, 108, 0.16);
  color: #f5c16c;
  font-size: 12px;
  font-weight: 900;
}

.deposit-success-card p {
  margin: 0;
  color: #c9ced8;
}

.success-balance {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(245, 193, 108, 0.22);
  border-radius: 8px;
  background: rgba(245, 193, 108, 0.08);
}

.success-balance span {
  color: #aab1c5;
  font-size: 13px;
}

.success-balance b {
  color: #f5c16c;
  font-size: 26px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(245, 193, 108, 0.2);
}

.slot-list,
.modal-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.slot {
  min-height: 42px;
  background: #2a303d;
  color: #f5f7fb;
}

.slot.selected {
  outline: 3px solid #f4c84a;
  outline-offset: 2px;
}

.modal-actions {
  grid-template-columns: 1fr 1fr;
}

.history-list,
.top-day-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  max-height: min(52vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #f4c84a #2a303d;
}

.history-list::-webkit-scrollbar,
.top-day-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track,
.top-day-list::-webkit-scrollbar-track {
  background: #2a303d;
  border-radius: 999px;
}

.history-list::-webkit-scrollbar-thumb,
.top-day-list::-webkit-scrollbar-thumb {
  background: #f4c84a;
  border-radius: 999px;
}

.history-row,
.top-day-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.top-day-row {
  grid-template-columns: 38px minmax(0, 1fr);
}

.top-day-row.has-prize {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.history-meta,
.top-day-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.history-meta b,
.history-meta span,
.top-day-meta b,
.top-day-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-meta span,
.top-day-meta span {
  color: #aab1c5;
  font-size: 13px;
}

.history-chance {
  color: #f4c84a;
  font-weight: 900;
}

.top-day-prize {
  min-width: 58px;
  justify-self: end;
  border-radius: 999px;
  padding: 6px 9px;
  border: 1px solid rgba(244, 200, 74, 0.42);
  background: rgba(244, 200, 74, 0.1);
  color: #f4c84a;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.secondary {
  background: #2a303d;
  color: #f5f7fb;
}

.winner-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 20;
  width: min(calc(100% - 36px), 360px);
  transform: translateX(-50%);
}

.winner-toast[hidden] {
  display: none;
}

.winner-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid rgba(244, 200, 74, 0.45);
  border-radius: 8px;
  padding: 12px 14px;
  background: #191d27;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.winner-card span {
  color: #aab1c5;
  font-size: 13px;
}

.winner-card b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-card strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #f4c84a;
  font-size: 22px;
}

.purchase-toast {
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.purchase-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.purchase-card {
  grid-template-columns: 1fr;
}

.purchase-toast-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.purchase-toast-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.purchase-toast-item b {
  color: #f5f7fb;
}

@keyframes idle-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* MRKT website visual system */
:root {
  --mrkt-bg: #0c0e12;
  --mrkt-surface: #14171e;
  --mrkt-line: #ffffff0d;
  --mrkt-muted: #858b9b;
  --mrkt-accent: #d5ac4e;
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-synthesis: none;
}
html.website-ready body {
  background: radial-gradient(ellipse at 75% -25%, #29304744, transparent 60%), var(--mrkt-bg);
  color: #ecedf3;
  -webkit-font-smoothing: antialiased;
}
html.website-ready button { font-family: inherit; font-weight: 600; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
html.website-ready button:disabled { cursor: not-allowed; }
html.website-ready button:focus-visible, html.website-ready a:focus-visible { outline: 2px solid #fa8395; outline-offset: 4px; }
html.website-ready .home-header { border-color: var(--mrkt-line); margin-bottom: 28px; }
html.website-ready .home-header .label { color: var(--mrkt-muted); font-size: 12px; letter-spacing: .04em; margin-bottom: 10px; }
html.website-ready .home-title { font-weight: 650; letter-spacing: -.8px; }
html.website-ready .online-badge { border: 1px solid #7fd8a11a; background: #7fd8a109; box-shadow: none; font-size: 12px; color: #9bcca9; }
html.website-ready .online-badge::after { content: "онлайн"; color: #7f998a; font-weight: 400; }
html.website-ready .online-badge span { width: 6px; height: 6px; box-shadow: none; }
html.website-ready .side-menu { background: #111319; border-color: var(--mrkt-line); border-radius: 20px; }
html.website-ready .side-card { gap: 24px; }
.brand-lockup { display: flex; gap: 12px; align-items: center; padding: 8px 6px 4px; text-decoration: none; color: #f3f4f8; font-size: 23px; font-weight: 750; letter-spacing: 2px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: linear-gradient(135deg, #f1cd70, #b78a2d); border-radius: 12px; color: white; font-size: 24px; font-weight: 800; letter-spacing: -2px; box-shadow: 0 5px 20px #c39a3820; }
.brand-lockup small { display: block; margin-top: 3px; color: #737b8b; font-size: 9px; letter-spacing: 2px; font-weight: 600; }
html.website-ready .side-profile { background: #ffffff03; border: 1px solid var(--mrkt-line); border-radius: 12px; padding: 12px; gap: 10px; }
html.website-ready .side-avatar { width: 36px; height: 36px; flex: 0 0 36px; background: #313444; color: #c8cddd; font-size: 14px; }
html.website-ready .side-profile b { font-size: 12px; font-weight: 600; }
html.website-ready .side-profile span { font-size: 11px; }
html.website-ready .side-profile strong { color: #dec591; }
html.website-ready .side-profile-button { background: transparent; border: 0; color: #929aaf; }
html.website-ready .side-deposit { background: #d5ac4e12; border: 1px solid #d5ac4e24; color: #f47f92; font-size: 11px; min-height: 28px; }
html.website-ready .side-nav { gap: 5px; }
html.website-ready .side-nav::before { content: "НАВИГАЦИЯ"; padding: 0 14px 9px; font-size: 9px; letter-spacing: 1.8px; color: #656d7d; }
html.website-ready .side-nav-item { position: relative; background: transparent; border: 1px solid transparent; box-shadow: none; border-radius: 10px; min-height: 44px; color: #939bac; font-size: 13px; font-weight: 500; gap: 12px; }
html.website-ready .side-nav-item::after { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 4px; background: var(--mrkt-accent); opacity: 0; transform: scaleY(.3); transition: transform .2s ease, opacity .2s ease; }
html.website-ready .side-nav-item.is-active { background: linear-gradient(90deg, #d5ac4e1a, #d5ac4e05); color: #f0d48f; border-color: #d5ac4e18; }
html.website-ready .side-nav-item.is-active::after { opacity: 1; transform: scaleY(1); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
html.website-ready .side-fao { padding: 16px 4px 0; border: 0; border-top: 1px solid var(--mrkt-line); background: none; border-radius: 0; }
html.website-ready .side-fao > span { font-size: 10px; font-weight: 500; letter-spacing: 0; color: #747d90; }
html.website-ready .side-social { width: 30px; height: 30px; min-height: 30px; background: #ffffff05; border-color: var(--mrkt-line); font-size: 14px; }
html.website-ready .side-social img { width: 17px; height: 17px; }
html.website-ready .website-logout { margin-top: 0; background: transparent; color: #7f889a; border-color: #ffffff0d; font-size: 11px; }
html.website-ready .pvp-layout { gap: 20px; }
html.website-ready .pvp-layout .topbar { background: linear-gradient(110deg, #1b1e27, #14171e); border: 1px solid var(--mrkt-line); padding: 20px 24px; }
html.website-ready .pvp-layout .topbar .label { color: #959dad; font-size: 11px; }
html.website-ready .pvp-layout .topbar h1 { color: #eee7d8; font-size: 25px; font-weight: 600; letter-spacing: -.5px; }
html.website-ready .top-actions button { border-radius: 9px; font-size: 12px; padding: 0 18px; background: #df3e59; }
html.website-ready #refresh { background: #ffffff05; color: #b4bdcd; border: 1px solid #ffffff10; }
html.website-ready .pvp-layout .roulette { background: radial-gradient(ellipse at center, #20263166, transparent 70%), #11141a; border-color: var(--mrkt-line); padding-bottom: 30px; }
html.website-ready .pvp-layout .wheel { width: min(100%, 350px); border: 8px solid #202631; box-shadow: 0 0 0 1px #ffffff0d, 0 0 0 14px #ffffff02, 0 24px 55px #00000040; }
html.website-ready .wheel .center { width: 69%; background: radial-gradient(circle at 50% 15%, #202630, #13171f 75%); box-shadow: 0 0 0 1px #ffffff0d, 0 0 30px #00000035; border: 7px solid #1b2029; font-size: clamp(12px, 1.2vw, 16px); font-weight: 500; color: #dbe0eb; padding: 20px; }
html.website-ready .wheel .center::before { content: "MRKT BATTLE"; display: block; position: absolute; top: 22%; left: 0; right: 0; font-size: 8px; font-weight: 600; letter-spacing: 2px; color: #798396; }
html.website-ready .player-avatar { z-index: 4; box-shadow: 0 3px 12px #0006; }
html.website-ready .pvp-layout .roulette::after { content: "Шансы зависят от суммы ставки"; margin-top: 30px; color: #626d80; font-size: 11px; letter-spacing: .2px; }
html.website-ready .pvp-layout .history-button, html.website-ready .pvp-layout .top-day-button { background: #ffffff04; border: 1px solid #ffffff0b; color: #909bad; font-size: 11px; min-height: 32px; border-radius: 8px; }
html.website-ready .pvp-layout .pointer { border-left-width: 9px; border-right-width: 9px; border-top: 23px solid #f1e6d2; }
html.website-ready .pointer::before { display: none; }
html.website-ready .pvp-layout .controls, html.website-ready .pvp-layout .panel { background: #14171e; border-color: var(--mrkt-line); padding: 22px; gap: 18px; }
html.website-ready .controls::before { content: "Сделать ставку"; font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
html.website-ready .quick-bet, html.website-ready .edit-bets { background: #1e232e; border: 1px solid #ffffff07; color: #b7c0d1; min-height: 40px; font-size: 12px; border-radius: 8px; }
html.website-ready input { background: #0e1118; border-color: #ffffff0e; color: #e4e8f0; font-weight: 500; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
html.website-ready input:focus { outline: none; border-color: #d5ac4e70; box-shadow: 0 0 0 3px #d5ac4e0a; }
html.website-ready .field { color: #858fa2; font-size: 11px; }
html.website-ready .pin { background: #df3e59; font-size: 12px; border-radius: 8px; }
html.website-ready .panel .stat { padding-bottom: 16px; border-bottom: 1px solid var(--mrkt-line); }
html.website-ready .stat span { font-size: 11px; color: #7d889d; }
html.website-ready .stat b { font-size: 21px; font-weight: 550; letter-spacing: -.5px; }
html.website-ready .panel p { margin: 0; color: #8893a6; font-size: 12px; line-height: 1.7; }
html.website-ready .player-row { background: #ffffff03; border-color: var(--mrkt-line); padding: 12px; border-radius: 10px; }
html.website-ready .player-meta b { font-size: 12px; font-weight: 550; }
html.website-ready .player-meta span { color: #727f94; }
html.website-ready .player-chance { color: #d6bf91; font-size: 12px; font-weight: 500; }
html.website-ready .market-action, html.website-ready .market-category, html.website-ready .market-item, html.website-ready .inventory-item, html.website-ready .profile-card, html.website-ready .bonus-card, html.website-ready .upgrade-panel { background: var(--mrkt-surface); border-color: var(--mrkt-line); border-radius: 14px; }
html.website-ready .modal-content { background: #171b24; border-color: #ffffff12; box-shadow: 0 30px 100px #0008; }
html.website-ready .website-auth-controls .website-auth-register { background: #df3e59; border-color: transparent; }
html.website-ready .website-auth-controls .website-auth-login { background: transparent; color: #aab4c5; border-color: #ffffff12; }
html.website-ready .menu-button { background: #1d222d; border: 1px solid #ffffff0d; box-shadow: none; }
html.website-ready .pvp-layout:not([hidden]), html.website-ready .app > section:not(.home-header):not([hidden]) { animation: screen-arrive .25s ease-out both; }
@keyframes screen-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  html.website-ready .side-nav-item:hover { color: #eff1f7; background: #ffffff07; transform: translateX(3px); }
  html.website-ready .side-nav-item:hover .nav-icon { transform: translateY(-1px); }
  html.website-ready .side-nav-item:hover::after { opacity: .6; transform: scaleY(1); }
  html.website-ready .side-nav-item.is-active:hover { background: #d5ac4e1f; color: #f0d48f; }
  html.website-ready button:not(:disabled):not(.side-nav-item):hover { filter: brightness(1.12); transform: translateY(-1px); }
  html.website-ready .market-action:hover, html.website-ready .market-category:hover { border-color: #d5ac4e40; box-shadow: 0 10px 30px #0002; }
}
@media (min-width: 1100px) {
  html.website-ready .side-menu { bottom: 32px; }
  html.website-ready .pvp-layout { grid-template-columns: minmax(0, 1fr) minmax(310px, 350px); }
}
@media (max-width: 699px) {
  html.website-ready .pvp-layout { gap: 14px; }
  html.website-ready .pvp-layout .topbar { padding: 18px; }
  html.website-ready .pvp-layout .wheel { width: min(100%, 290px); border-width: 6px; }
  html.website-ready .pvp-layout .roulette { padding: 64px 24px 24px; }
  html.website-ready .pvp-layout .controls, html.website-ready .pvp-layout .panel { padding: 18px; }
  html.website-ready .online-badge::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.website-ready *, html.website-ready *::before, html.website-ready *::after { animation: none !important; transition: none !important; }
}

/* Entry screens and responsive layout are bundled below. */
html:not(.website-ready) .app { display: none; }
.entry-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.entry-card { width: min(100%, 420px); padding: 32px 24px; border: 1px solid #34343d; border-radius: 24px; background: #15151c; text-align: center; }
.entry-brand { color: #efc45b; font-size: 14px; font-weight: 800; letter-spacing: 3px; }
.entry-card h1 { font-size: 26px; overflow-wrap: anywhere; }
.entry-card p { color: #b9bbc9; line-height: 1.6; }
.entry-card a { display: block; padding: 16px 12px; border-radius: 14px; background: #b58a32; color: white; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.entry-card a:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.entry-status { min-height: 24px; font-size: 14px; }
.website-logout { border: 1px solid #41414e; border-radius: 10px; padding: 10px 14px; background: #24242c; color: white; margin-top: 12px; cursor: pointer; }
.website-auth-dialog { border: 0; padding: 0; background: transparent; color: #f5f7fb; width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 32px); }
.website-auth-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.website-auth-dialog .entry-screen { min-height: 0; padding: 0; }
.website-auth-close { margin-top: 12px; padding: 10px 18px; background: #292932; color: white; border: 1px solid #444452; border-radius: 10px; cursor: pointer; }
.home-header { flex-wrap: wrap; }
.website-auth-controls { display: flex; justify-content: flex-end; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.website-auth-controls button { padding: 10px 12px; border: 1px solid #42424d; border-radius: 10px; color: white; background: #202028; font-size: 12px; cursor: pointer; }
.website-auth-controls .website-auth-register { background: #b58a32; border-color: #b58a32; }
.website-auth-controls button:focus-visible, .website-auth-close:focus-visible { outline: 2px solid white; outline-offset: 3px; }

/* Website layout: document scrolling, fluid content and device-sized grids. */
html { height: auto; min-height: 100%; overflow: auto; overscroll-behavior: auto; }
body { height: auto; min-height: 100dvh; overflow: visible; background-attachment: fixed; }
.app { width: 100%; max-width: 1440px; height: auto; min-height: 100dvh; padding: 20px; overflow: visible; scrollbar-gutter: auto; }
.app > *, .pvp-layout > *, .home-header > * { min-width: 0; }
.home-header { gap: 12px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #ffffff14; }
.home-title { font-size: clamp(22px, 2.4vw, 30px); }
.home-header .website-auth-controls { flex: 0 1 auto; margin-left: auto; }
.website-auth-controls button { min-height: 44px; font-size: 13px; padding: 10px 16px; }
.pvp-layout { display: grid; gap: 16px; }
.pvp-layout[hidden] { display: none; }
.pvp-layout .controls { margin: 0; }
.pvp-layout .topbar { flex-wrap: wrap; gap: 16px; padding: 20px; }
.pvp-layout .topbar h1 { font-size: clamp(20px, 2.2vw, 28px); overflow-wrap: anywhere; }
.pvp-layout .top-actions { flex-wrap: wrap; }
.pvp-layout .top-actions button { min-height: 42px; }
.pvp-layout .roulette { min-height: 0; display: flex; justify-content: flex-start; align-items: center; flex-direction: column; padding: 64px 16px 24px; border: 1px solid #ffffff12; border-radius: 16px; background: #111118b3; }
.pvp-layout .wheel { width: min(100%, 440px); flex-shrink: 0; }
.pvp-layout .pointer { top: 56px; }
.pvp-layout .top-day-button { top: 16px; left: 16px; }
.pvp-layout .history-button { top: 16px; right: 16px; }
.pvp-layout .panel, .pvp-layout .controls, .pvp-layout .topbar { border-radius: 16px; }
.pvp-layout .panel { align-content: start; padding: 20px; }
.players-list { max-height: 420px; overflow-y: auto; }
.player-meta { min-width: 0; }
.market-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.market-items-list, .inventory-list, .sticker-results-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.market-items-list > .market-loading, .market-items-list > .inline-placeholder { grid-column: 1 / -1; }
.market-category { min-height: 130px; border-radius: 14px; }
.market-category img { width: 76px; height: 76px; }
.market-search { width: 100%; max-width: 700px; }
.market-item, .inventory-item { min-width: 0; }
.market-screen .full-button { max-width: 400px; }
.market-trade-card { width: 100%; max-width: 760px; margin-inline: auto; }
.deposit-screen, .withdraw-screen, .profile-screen, .bonus-screen { width: 100%; max-width: 760px; margin-inline: auto; }
.upgrade-screen { min-height: 0; gap: 20px; }
.upgrade-items-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.modal { padding: 20px; }
.modal-content { width: min(100%, 560px); max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 16px; padding: 24px; }
.side-menu { max-height: 100dvh; }
.website-auth-dialog { max-height: calc(100dvh - 32px); }
button, input, select { max-width: 100%; }

@media (min-width: 700px) {
  .app { padding: 28px; }
  .pvp-layout { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 20px; align-items: start; }
  .pvp-layout .topbar { grid-column: 1 / -1; }
  .pvp-layout .roulette { grid-column: 1; grid-row: 2 / 4; }
  .pvp-layout .controls { grid-column: 2; grid-row: 2; padding: 20px; }
  .pvp-layout .panel { grid-column: 2; grid-row: 3; }
  .market-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .market-action { grid-template-columns: 1fr; grid-template-areas: "icon" "title" "subtitle"; gap: 12px; align-content: start; padding: 24px; border-radius: 16px; }
  .rarity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .app { padding: 32px 32px 48px 288px; }
  .home-header { flex-wrap: nowrap; min-height: 70px; }
  .home-header .menu-button { display: none; }
  .side-menu, .side-menu[hidden] { display: block; position: fixed; top: 32px; bottom: 32px; left: max(32px, calc((100vw - 1440px) / 2 + 32px)); width: 232px; max-height: calc(100dvh - 64px); border: 1px solid #ffffff14; border-radius: 18px; padding: 16px; background: #101016; box-shadow: none; }
  .side-profile { padding: 10px; gap: 8px; flex-wrap: wrap; }
  .side-backdrop, #closeSideMenu { display: none !important; }
  .side-nav-item { min-height: 46px; }
  .pvp-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 24px; }
  .pvp-layout .roulette { padding: 72px 24px 32px; }
  .pvp-layout .pointer { top: 64px; }
  .market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rarity-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .upgrade-main { padding: 24px; }
}

@media (max-width: 699px) {
  .app { padding: 16px; }
  .home-header { gap: 10px; margin-bottom: 16px; padding-bottom: 16px; }
  .home-header .website-auth-controls { flex-basis: 100%; }
  .website-auth-controls button { flex: 0 1 auto; }
  .pvp-layout .wheel { width: min(100%, 360px); }
  .pvp-layout .topbar { padding: 16px; }
  .top-actions { width: 100%; }
  .top-actions button { flex: 1; }
  .upgrade-stage { grid-template-columns: 0 minmax(0, 1fr) 48px; gap: 8px; }
  .upgrade-circle { width: min(100%, 260px); justify-self: center; }
  .modal { padding: 12px; }
  .modal-content { padding: 18px; max-height: calc(100dvh - 24px); }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 359px) {
  .app { padding: 12px; }
  .home-header .menu-button { width: 40px; height: 40px; min-height: 40px; flex-shrink: 0; }
  .home-title { font-size: 20px; }
  .website-auth-controls { gap: 6px; }
  .website-auth-controls button { padding-inline: 10px; font-size: 12px; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Full browser website shell. This file is the only stylesheet loaded by index.html. */
html.website-ready { --sidebar-width: 240px; --page-gutter: clamp(20px, 2.2vw, 48px); }
html.website-ready .app { width: 100%; max-width: none; margin: 0; padding: 0; min-height: 100dvh; }
html.website-ready .home-header { margin: 0; padding: 18px var(--page-gutter); min-height: 88px; background: #11141be8; border-bottom: 1px solid #ffffff0b; }
html.website-ready .home-header .home-title { font-size: 26px; }
html.website-ready .home-header .label { margin-bottom: 6px; }
html.website-ready .app > section:not(.home-header), html.website-ready .pvp-layout { margin: 24px var(--page-gutter); width: auto; max-width: none; }
html.website-ready .pvp-layout { gap: 20px; }
html.website-ready .side-menu { border-radius: 0; top: 0; bottom: 0; left: 0; max-height: 100dvh; border: 0; border-right: 1px solid #ffffff0c; }
html.website-ready .brand-lockup { padding: 6px 8px 24px; border-bottom: 1px solid #ffffff0b; }
html.website-ready .side-card { gap: 18px; }
html.website-ready .side-profile { display: grid; grid-template-columns: 32px minmax(0, 1fr); padding: 10px; gap: 10px; }
html.website-ready .side-avatar { width: 32px; height: 32px; }
html.website-ready .side-name-row { gap: 4px; }
html.website-ready .side-profile-button { flex: 0 0 24px; width: 24px; min-height: 24px; }
html.website-ready .nav-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; }
html.website-ready .side-nav-item { overflow: hidden; }
html.website-ready .pvp-layout .roulette { justify-content: center; padding: 80px 28px 28px; }
html.website-ready .wheel-stage { position: relative; width: min(100%, 360px); aspect-ratio: 1; flex: 0 0 auto; }
html.website-ready .pvp-layout .wheel-stage .wheel { width: 100%; }
html.website-ready .pvp-layout .wheel-stage .pointer { top: -6px; left: 50%; transform: translateX(-50%); }
html.website-ready .wheel.is-waiting { animation: none; }
html.website-ready .pvp-layout .roulette::after { margin-top: 32px; }
html.website-ready .pvp-layout .topbar { align-content: start; }
html.website-ready .pvp-layout .topbar h1 { line-height: 1.25; }
html.website-ready .market-search { max-width: none; }
html.website-ready .market-trade-card { max-width: none; }
html.website-ready .profile-card { padding: 28px; }
html.website-ready .profile-top { gap: 20px; }
html.website-ready .upgrade-screen { grid-template-rows: auto auto auto auto; }
html.website-ready .upgrade-stage { max-width: 520px; grid-template-columns: 58px minmax(0, 340px) 58px; }
html.website-ready .upgrade-circle { width: 100%; max-width: 340px; }
html.website-ready .deposit-amount-row, html.website-ready .deposit-promo-row { max-width: none; }

@media (min-width: 1100px) {
  html.website-ready .app { padding-left: var(--sidebar-width); }
  html.website-ready .side-menu, html.website-ready .side-menu[hidden] { width: var(--sidebar-width); padding: 24px 16px; inset: 0 auto 0 0; max-height: 100dvh; }
  html.website-ready .home-header { position: sticky; top: 0; z-index: 8; backdrop-filter: blur(16px); }
  html.website-ready .pvp-layout { grid-template-columns: minmax(0, 1fr) clamp(310px, 25vw, 420px); grid-template-rows: auto auto minmax(0, 1fr); align-items: start; }
  html.website-ready .pvp-layout .roulette { grid-column: 1; grid-row: 1 / 4; min-height: max(570px, calc(100dvh - 136px)); }
  html.website-ready .pvp-layout .topbar { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  html.website-ready .top-actions { width: 100%; }
  html.website-ready .top-actions button { flex: 1; }
  html.website-ready .pvp-layout .controls { grid-column: 2; grid-row: 2; }
  html.website-ready .pvp-layout .panel { grid-column: 2; grid-row: 3; }
  html.website-ready .wheel-stage { width: min(100%, 34vw, 56dvh, 620px); }
  html.website-ready .pvp-layout .roulette::before { content: "PVP BATTLE / LIVE"; color: #6d798e; font-size: 10px; letter-spacing: 2px; position: absolute; top: 30px; left: 50%; transform: translateX(-50%); }
  html.website-ready .pvp-layout .top-day-button, html.website-ready .pvp-layout .history-button { top: 22px; }
  html.website-ready .market-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  
  html.website-ready .upgrade-wins-banner { grid-column: 1 / -1; }
  html.website-ready .upgrade-main { grid-column: 1; grid-row: 2 / 4; align-self: start; padding: 32px 16px; background: #14171e; border: 1px solid #ffffff0c; border-radius: 16px; }
  html.website-ready .upgrade-filter-card { grid-column: 2; }
  html.website-ready .upgrade-slots { grid-column: 2; }
  html.website-ready .deposit-screen .deposit-view:not([hidden]), html.website-ready .withdraw-screen .withdraw-view:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
  html.website-ready .deposit-view > .section-heading, html.website-ready .withdraw-view > .section-heading { grid-column: 1 / -1; }
  html.website-ready .bonus-screen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 1700px) {
  html.website-ready { --sidebar-width: 256px; }
  html.website-ready .home-header { min-height: 96px; }
  html.website-ready .pvp-layout .roulette { min-height: max(620px, calc(100dvh - 144px)); }
}
@media (max-width: 1099px) {
  html.website-ready .home-header { min-height: 80px; }
  html.website-ready .side-menu { width: min(310px, 88vw); }
}
@media (max-width: 699px) {
  html.website-ready { --page-gutter: 16px; }
  html.website-ready .app > section:not(.home-header), html.website-ready .pvp-layout { margin-block: 16px; }
  html.website-ready .home-header .home-title { font-size: 22px; }
  html.website-ready .pvp-layout .roulette { padding: 64px 24px 26px; }
  html.website-ready .wheel-stage { width: min(100%, 300px); }
  html.website-ready .upgrade-stage { grid-template-columns: 0 minmax(0, 1fr) 48px; max-width: 390px; }
  html.website-ready .upgrade-circle { max-width: 260px; }
}
/* Premium reference: premium/web/app/static/css/{style,responsive,panel-dark}.css */
html.website-ready { --sidebar-width:258px; --page-gutter:clamp(20px,4vw,76px); --mrkt-bg:#09090b; --mrkt-surface:#141416; --mrkt-line:#303034; --mrkt-muted:#a1a1aa; --mrkt-accent:#dedee3; font-family:Inter,system-ui,sans-serif; }
html.website-ready body { background:radial-gradient(ellipse at 55% 0%,#20202455,transparent 60%),#09090b; color:#f0f0f2; }
html.website-ready .home-header { min-height:106px; padding:24px var(--page-gutter); background:#101012ee; border-color:#262629; gap:20px; }
html.website-ready .home-header .label { color:#96969f; font-size:11px; letter-spacing:.16em; text-transform:uppercase; }
html.website-ready .home-header .home-title { margin-top:7px; color:#fafafa; font-size:27px; letter-spacing:-.03em; font-weight:700; }
html.website-ready .side-menu, html.website-ready .side-menu[hidden] { background:#0d0d0ff5; border-color:#262629; }
html.website-ready .side-card { display:flex; flex-direction:column; min-height:calc(100dvh - 48px); gap:18px; }
html.website-ready .brand-lockup { color:#fafafa; font-size:14px; letter-spacing:.18em; padding:0 12px 10px; border:0; gap:11px; }
html.website-ready .brand-mark { background:transparent; border:0; box-shadow:none; color:#eeeeef; border-radius:0; width:56px; height:56px; font-size:22px; }
html.website-ready .brand-mark.brand-avatar { overflow:visible; padding:0; background:transparent; }
html.website-ready .brand-mark.brand-avatar img { display:block; width:100%; height:100%; object-fit:contain; }
html.website-ready .brand-lockup small { color:#96969f; font-size:8px; letter-spacing:.2em; }
html.website-ready .side-profile { display:grid; grid-template-columns:34px minmax(0,1fr); background:#171719; border:1px solid #303034; border-radius:13px; padding:13px 12px; }
html.website-ready .side-avatar { color:#eeeef0; background:linear-gradient(145deg,#45454c,#232326); border:1px solid #505057; }
html.website-ready .side-profile b { font-size:13px; color:#eeeef0; }
html.website-ready .side-profile span { color:#a1a1aa; }
html.website-ready .side-profile strong { color:#eeeef0; }
html.website-ready.anonymous-mode .side-profile { display:none; }
html.website-ready .side-deposit { background:#242427; border-color:#444449; color:#dedee5; }
html.website-ready .side-nav { gap:4px; }
html.website-ready .side-nav::before { content:none; }
html.website-ready .nav-section-label { margin:8px 12px 6px; font-size:10px; font-weight:600; letter-spacing:.14em; color:#96969f; text-transform:uppercase; }
html.website-ready .side-nav-item { min-height:44px; border-radius:11px; color:#b0b0b8; font-size:13px; gap:12px; padding:0 12px; }
html.website-ready .side-nav-item .nav-icon { color:#bfbfc6; width:20px; height:20px; flex-basis:20px; }
html.website-ready .side-nav-item::after { display:none; }
html.website-ready .side-nav-item.is-active { color:#fff; border-color:#404045; background:linear-gradient(90deg,#303035,#202023); box-shadow:inset 3px 0 #dedee3; }
html.website-ready .side-fao { margin-top:auto; border-color:#262629; padding-top:18px; }
html.website-ready .side-social { color:#bcbcc4; background:#222225; border-color:#303034; }
html.website-ready .website-logout { color:#b0b0b8; border:0; min-height:44px; justify-content:flex-start; text-align:left; padding:0 12px; font-size:13px; font-weight:500; }
html.website-ready .app > section:not(.home-header), html.website-ready .pvp-layout { margin:32px var(--page-gutter) 48px; }
html.website-ready button { color:#131315; background:#dedee4; border-radius:10px; font-size:13px; font-weight:600; }
html.website-ready button:focus-visible, html.website-ready a:focus-visible { outline-color:#eeeef2; }
html.website-ready .website-auth-controls button { min-height:42px; padding:10px 18px; }
html.website-ready .website-auth-controls .website-auth-register, html.website-ready .pin, html.website-ready #deposit, html.website-ready .upgrade-start { color:#131315; background:#dedee4; border-color:#dedee4; }
html.website-ready .website-auth-controls .website-auth-login, html.website-ready #refresh, html.website-ready .secondary { color:#dedee5; background:#242427; border:1px solid #444449; }
html.website-ready .pvp-layout .topbar, html.website-ready .pvp-layout .controls, html.website-ready .pvp-layout .panel { background:#141416; border:1px solid #303034; border-radius:16px; padding:24px; }
html.website-ready .pvp-layout .topbar h1 { color:#f0f0f2; font-weight:650; font-size:26px; }
html.website-ready .pvp-layout .topbar .label, html.website-ready .field, html.website-ready .stat span { color:#a1a1ab; font-size:12px; }
html.website-ready .pvp-layout .roulette { background:radial-gradient(ellipse at 85% 20%,#4c4c5530,transparent 55%),linear-gradient(120deg,#17171b,#111113); border:1px solid #36363b; border-radius:22px; padding:100px 32px 40px; min-height:620px; }
html.website-ready .pvp-layout .roulette::before { display:none; }
.game-stage-heading { position:absolute; top:28px; left:30px; display:grid; gap:7px; }
.game-stage-heading strong { color:#f4f4f5; font-size:20px; font-weight:650; letter-spacing:-.02em; }
.game-stage-heading span { color:#a1a1aa; font-size:12px; }
html.website-ready .pvp-layout .top-day-button, html.website-ready .pvp-layout .history-button { top:28px; min-height:36px; color:#dedee5; background:#242427; border:1px solid #444449; padding:0 12px; }
html.website-ready .pvp-layout .top-day-button { left:auto; right:108px; }
html.website-ready .pvp-layout .history-button { right:24px; }
html.website-ready .pvp-layout .wheel { border-color:#28282e; box-shadow:0 0 0 1px #424248,0 0 0 12px #ffffff03,0 20px 50px #0005; }
html.website-ready .wheel .center { position:relative; background:radial-gradient(ellipse at top,#29292f,#17171b); border-color:#25252b; color:#eeeef2; font-size:16px; white-space:pre-line; }
html.website-ready .wheel .center::before { color:#a1a1ab; }
html.website-ready .wheel .center.result-win { animation:center-result-win 3.8s ease-in-out 1 both; }
html.website-ready .wheel .center.result-lose { animation:center-result-lose 3.8s ease-in-out 1 both; }
html.website-ready .wheel .center.result-win::after { content:""; position:absolute; inset:8%; border-radius:50%; pointer-events:none; opacity:0; background:radial-gradient(circle at 18% 28%,#b7ffbd 0 2px,transparent 3px),radial-gradient(circle at 78% 20%,#fff3a8 0 2px,transparent 3px),radial-gradient(circle at 86% 68%,#9ee7ff 0 2px,transparent 3px),radial-gradient(circle at 22% 76%,#ffd0e5 0 2px,transparent 3px); animation:result-confetti 2.8s ease-out 1 both; }
@keyframes center-result-win { 0%,100% { background-color:#202024; } 18%,30% { background-color:#245e3d; } }
@keyframes center-result-lose { 0%,100% { background-color:#202024; } 18%,30% { background-color:#682b35; } }
@keyframes result-confetti { 0%,100% { opacity:0; transform:scale(.7); } 35%,75% { opacity:.95; transform:scale(1.12); } }
html.website-ready .pvp-layout .wheel-stage .pointer { border-top-color:#eeeef2; }
html.website-ready .pvp-layout .roulette::after { color:#a1a1ab; font-size:12px; }
html.website-ready .controls::before { color:#f0f0f2; font-size:17px; }
html.website-ready .quick-bet, html.website-ready .edit-bets { background:#242427; border:1px solid #444449; color:#dedee5; font-size:13px; }
html.website-ready input, html.website-ready select { background:#0b0b0d; color:#f5f5f6; border:1px solid #3e3e44; border-radius:10px; }
html.website-ready input:focus { border-color:#c3c3cb; box-shadow:0 0 0 3px #ffffff12; }
html.website-ready .panel .stat { border-color:#303034; }
html.website-ready .panel p { color:#a1a1ab; font-size:13px; }
html.website-ready .player-row { background:#1b1b1e; border-color:#303034; }
html.website-ready .player-meta span { color:#a1a1ab; }
html.website-ready .player-chance { color:#eeeef2; }
html.website-ready .market-action, html.website-ready .market-category, html.website-ready .market-item, html.website-ready .inventory-item, html.website-ready .profile-card, html.website-ready .bonus-card, html.website-ready .upgrade-panel, html.website-ready .upgrade-main { background:#141416; border-color:#303034; border-radius:16px; color:#f0f0f2; }
html.website-ready .market-action span { color:#dedee4; background:#29292e; }
html.website-ready .market-action small, html.website-ready .market-item small { color:#a1a1ab; }
html.website-ready .upgrade-start:disabled { background:#29292e; color:#898994; }
html.website-ready .upgrade-quick-filter, html.website-ready .upgrade-filter-settings { color:#dedee5; background:#242427; border-color:#444449; }
html.website-ready .modal-content, html.website-ready .entry-card { background:#17171b; border-color:#50505a; color:#ededf2; box-shadow:0 24px 90px #0009; }
html.website-ready .entry-brand { color:#dedee4; }
html.website-ready .placeholder-card { background:#141416; border:1px solid #303034; border-radius:16px; min-height:260px; }
html.website-ready .placeholder-card span { color:#96969f; }
html.website-ready .menu-button { background:#242428; border-color:#303034; }
@media (hover:hover) and (pointer:fine) {
 html.website-ready .side-nav-item:hover { color:#fff; background:#242428; transform:translateX(3px); }
 html.website-ready .side-nav-item.is-active:hover { color:#fff; background:#303035; }
 html.website-ready .website-logout:hover { color:#f0d48f; background:#302511; }
 html.website-ready .market-action:hover, html.website-ready .market-category:hover { border-color:#777780; }
}
@media (min-width:1100px) {
 html.website-ready .side-menu, html.website-ready .side-menu[hidden] { width:258px; padding:28px 18px 20px; }
 html.website-ready .app { padding-left:258px; }
 html.website-ready .pvp-layout { grid-template-columns:minmax(0,1fr) minmax(300px,360px); gap:20px; }
 html.website-ready .pvp-layout .roulette { min-height:max(620px,calc(100dvh - 186px)); }
 html.website-ready .wheel-stage { width:min(100%,30vw,46dvh,460px); }
 html.website-ready .market-actions { gap:20px; }
 html.website-ready .market-action { min-height:210px; padding:28px; }
 html.website-ready .upgrade-main { min-height:460px; }
}
@media (max-width:1099px) {
 html.website-ready .pvp-layout .roulette { min-height:500px; }
 .game-stage-heading { left:20px; top:20px; }
 .game-stage-heading strong { font-size:17px; }
 .game-stage-heading span { font-size:11px; }
 html.website-ready .pvp-layout .top-day-button, html.website-ready .pvp-layout .history-button { top:74px; }
 html.website-ready .pvp-layout .roulette { padding-top:140px; }
}
@media (max-width:699px) {
 html.website-ready .home-header { min-height:80px; padding:16px; }
 html.website-ready .home-header .home-title { font-size:21px; }
 html.website-ready .home-header .label { font-size:9px; }
 html.website-ready .app > section:not(.home-header), html.website-ready .pvp-layout { margin:16px 12px 32px; }
 html.website-ready .pvp-layout .roulette { min-height:0; padding:132px 24px 28px; }
 html.website-ready .pvp-layout .controls, html.website-ready .pvp-layout .panel, html.website-ready .pvp-layout .topbar { padding:18px; }
 html.website-ready .wheel .center { font-size:13px; }
}
html.website-ready .section-heading { background:linear-gradient(120deg,#202024,#111113); border-color:#36363b; border-radius:16px; padding:24px; }
html.website-ready .section-heading h2 { font-size:24px; font-weight:650; color:#f4f4f5; }
html.website-ready .upgrade-wins-banner:empty { display:none; }
html.website-ready .upgrade-filter-card { background:#17171a; border-color:#35353b; border-radius:14px; padding:16px; }
html.website-ready .upgrade-filter-card > span, html.website-ready .upgrade-panel-head h3, html.website-ready .upgrade-center span { color:#d0d0d7; font-weight:600; }
html.website-ready .upgrade-panel-head { border-color:#303034; }
html.website-ready .upgrade-ring { box-shadow:0 0 24px #ffffff09; border-color:#444449; }
html.website-ready .upgrade-ring::after { background:#17171b; }
html.website-ready .market-action b, html.website-ready .upgrade-empty-card b { font-weight:600; }
html.website-ready .market-action small { font-weight:400; font-size:13px; line-height:1.6; }
@media(min-width:1100px) {
 html.website-ready .upgrade-screen:has(.upgrade-wins-banner:empty) .upgrade-main { grid-row:1 / 3; }
 html.website-ready .upgrade-screen { grid-template-rows:auto minmax(0,1fr); }
}

html.website-ready #status { white-space:pre-line; }

/* Keep the result visible even when system settings disable animations. */
html.website-ready .wheel .center.result-win,
html.website-ready .wheel .center.result-lose { background-image:none; animation-duration:5.5s; }
html.website-ready .wheel .center.result-win { background-color:#245e3d; }
html.website-ready .wheel .center.result-lose { background-color:#682b35; }
@media (prefers-reduced-motion: reduce) {
  html.website-ready .wheel .center.result-win::after { display:none; }
}

/* Black and gold theme */
html.website-ready { --mrkt-bg:#090806; --mrkt-surface:#15120d; --mrkt-line:#3c311e; --mrkt-muted:#a99b80; --mrkt-accent:#efc45b; }
html.website-ready body { background:radial-gradient(ellipse at 60% 0%,#6b491522,transparent 65%),#090806; color:#f5ecd7; }
html.website-ready .home-header { background:#100e0bee; border-color:#382d1b; }
html.website-ready .side-menu, html.website-ready .side-menu[hidden] { background:#0c0b08f5; border-color:#382d1b; }
html.website-ready .home-header .label, html.website-ready .brand-lockup small, html.website-ready .nav-section-label { color:#ac925c; }
html.website-ready .brand-lockup, html.website-ready .home-title, html.website-ready .game-stage-heading strong, html.website-ready .section-heading h2 { color:#f5e5bd; }
html.website-ready .side-profile, html.website-ready .pvp-layout .topbar, html.website-ready .pvp-layout .controls, html.website-ready .pvp-layout .panel,
html.website-ready .market-action, html.website-ready .market-category, html.website-ready .upgrade-main, html.website-ready .upgrade-panel,
html.website-ready .profile-card, html.website-ready .bonus-card, html.website-ready .modal-content, html.website-ready .entry-card,
html.website-ready .upgrade-filter-card, html.website-ready .placeholder-card { background:#15120e; border-color:#3c311f; }
html.website-ready .pvp-layout .roulette, html.website-ready .section-heading { background:radial-gradient(ellipse at 80% 15%,#85601e18,transparent 60%),linear-gradient(120deg,#19150e,#0e0d0a); border-color:#4a3a20; }
html.website-ready .side-nav-item { color:#c4b697; }
html.website-ready .side-nav-item .nav-icon { color:#b99b59; }
html.website-ready .side-nav-item.is-active { color:#ffe3a0; background:linear-gradient(90deg,#49371a,#241e12); border-color:#715525; box-shadow:inset 3px 0 #e8bb50; }
html.website-ready button { background:linear-gradient(135deg,#f1cd70,#b78a2d); color:#211807; border-color:#b89442; }
html.website-ready .website-auth-controls .website-auth-register, html.website-ready #deposit, html.website-ready .upgrade-start { background:linear-gradient(135deg,#f1cd70,#b78a2d); color:#211807; border-color:#b89442; }
html.website-ready .website-auth-controls .website-auth-login, html.website-ready #refresh, html.website-ready .secondary,
html.website-ready .quick-bet, html.website-ready .edit-bets, html.website-ready .side-deposit, html.website-ready .side-social,
html.website-ready .menu-button, html.website-ready .upgrade-quick-filter, html.website-ready .upgrade-filter-settings,
html.website-ready .pvp-layout .top-day-button, html.website-ready .pvp-layout .history-button { color:#e5c77d; background:#282113; border-color:#594523; }
html.website-ready input, html.website-ready select { background:#0d0b08; border-color:#483a23; color:#f5ecd7; }
html.website-ready input:focus { border-color:#d3ac50; box-shadow:0 0 0 3px #d3ac501c; }
html.website-ready button:focus-visible, html.website-ready a:focus-visible { outline-color:#f1cb68; }
html.website-ready .pvp-layout .wheel { border-color:#352b1b; box-shadow:0 0 0 1px #6e5426,0 0 0 12px #d6ad4505,0 20px 50px #0005; }
html.website-ready .wheel .center:not(.result-win):not(.result-lose) { background:radial-gradient(ellipse at top,#292318,#14110c); }
html.website-ready .wheel .center { border-color:#302719; color:#f6e6be; }
html.website-ready .wheel .center::before { color:#ac925c; }
html.website-ready .pvp-layout .wheel-stage .pointer { border-top-color:#f2cd6b; }
html.website-ready .player-row, html.website-ready .inventory-item, html.website-ready .market-item { background:#1c1810; border-color:#44351d; }
html.website-ready .side-profile strong, html.website-ready .player-chance, html.website-ready .entry-brand { color:#efc45b; }
html.website-ready .upgrade-panel-head, html.website-ready .side-fao { border-color:#3c311f; }
html.website-ready .upgrade-ring { background:conic-gradient(#e8bd56 var(--upgrade-deg,0deg),#352b19 0); border-color:#765927; box-shadow:0 0 24px #dcae4212; }
html.website-ready .upgrade-ring::after { background:#15120e; }
html.website-ready .upgrade-center { background:#15120e; }
html.website-ready .upgrade-item { background:#211b10; border:1px solid #44351e; }
html.website-ready .upgrade-item.is-selected { border-color:#f2ca63; box-shadow:0 0 0 1px #f2ca63; }
html.website-ready .upgrade-item span { color:#f1cc73; background:#100d08dd; }
html.website-ready .upgrade-start:disabled { background:#302819; color:#8f7d56; border-color:#44351e; }
html.website-ready .upgrade-filter-card > span, html.website-ready .upgrade-panel-head h3, html.website-ready .upgrade-center span { color:#d8c18c; }
@media (hover:hover) and (pointer:fine) {
 html.website-ready .side-nav-item:hover { color:#ffe3a0; background:#2c2313; }
 html.website-ready .side-nav-item.is-active:hover { background:#49371a; }
 html.website-ready .market-action:hover, html.website-ready .market-category:hover, html.website-ready .upgrade-item:hover { border-color:#b48b36; }
}

/* Gold surfaces also apply before website initialization completes. */
.entry-card { background:#15120e; border-color:#44351e; }
.entry-card a { color:#211807; background:linear-gradient(135deg,#f1cd70,#b78a2d); }
html.website-ready .inventory-hero,
html.website-ready .profile-card { background:linear-gradient(120deg,#302415,#15120d 75%); border-color:#4b391e; }
html.website-ready .inventory-avatar,
html.website-ready .profile-avatar { color:#211807; background:linear-gradient(135deg,#edc968,#aa7f2b); }
html.website-ready .upgrade-quick-filter.is-active,
html.website-ready .upgrade-quick-filter.is-flashing { color:#ffe6a6; background:#49371a; border-color:#bf9540; }

/* Upgrade: selection arena above two searchable catalogs. */
html.website-ready #upgradeScreen { display:flex; flex-direction:column; align-items:stretch; gap:24px; min-width:0; }
html.website-ready #upgradeScreen[hidden] { display:none; }
#upgradeScreen .upgrade-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; }
#upgradeScreen .upgrade-heading .label { color:#a68b50; letter-spacing:.18em; font-size:10px; }
#upgradeScreen .upgrade-heading h2 { margin:8px 0 0; font-size:clamp(26px,3vw,40px); letter-spacing:-.04em; color:#f6efdc; }
#upgradeScreen .upgrade-heading h2 span { color:#edc05a; }
#upgradeScreen .upgrade-heading > p { color:#a89e88; font-size:12px; line-height:1.7; margin:0; }
#upgradeScreen .upgrade-arena { display:grid; width:100%; min-width:0; grid-template-columns:minmax(0,1fr) minmax(240px,.9fr) minmax(0,1fr); gap:24px; align-items:stretch; }
html.website-ready #upgradeScreen .upgrade-selection { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:24px; min-width:0; min-height:330px; padding:24px 18px; border:1px dashed #57431e; border-radius:20px; background:radial-gradient(ellipse at 50% 65%,#97712616,transparent 65%),#13110e; color:#f3e6c7; box-shadow:inset 0 1px #ffffff04; }
#upgradeScreen .upgrade-selection-label { font-size:10px; font-weight:700; letter-spacing:.16em; color:#bcaa81; }
#upgradeScreen .upgrade-selection-content { display:flex; flex:1; flex-direction:column; justify-content:center; align-items:center; gap:12px; width:100%; min-width:0; }
#upgradeScreen .upgrade-selection-content img { width:100%; max-width:220px; height:155px; object-fit:contain; filter:drop-shadow(0 12px 24px #0008); }
#upgradeScreen .upgrade-selection-content img[hidden] { display:none; }
#upgradeScreen .upgrade-selection-content strong { font-size:15px; line-height:1.4; overflow-wrap:anywhere; }
#upgradeScreen .upgrade-selection-content small { color:#a99b7b; font-size:12px; }
#upgradeScreen .upgrade-selection-icon { display:grid; place-items:center; width:72px; height:72px; border:1px solid #a77e2a; border-radius:22px; color:#f2c659; font-size:38px; font-weight:400; background:#322713; box-shadow:0 0 35px #c4932019; margin-bottom:12px; }
html.website-ready #upgradeScreen .upgrade-main { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:330px; min-width:0; width:100%; align-self:stretch; padding:10px 0; gap:18px; border:0; background:transparent; grid-column:auto; grid-row:auto; }
html.website-ready #upgradeScreen .upgrade-stage { display:block; max-width:360px; width:100%; }
#upgradeScreen .upgrade-circle { width:100%; max-width:360px; margin:auto; }
#upgradeScreen .upgrade-ring::after { inset:9px; background:radial-gradient(ellipse at top,#292316,#11100d); }
#upgradeScreen .upgrade-center { background:transparent; gap:8px; }
#upgradeScreen .upgrade-center > span { font-size:9px; letter-spacing:.15em; color:#b4a171; }
#upgradeScreen .upgrade-center > b { font-size:clamp(32px,3.4vw,52px); color:#f0c35b; letter-spacing:-.04em; }
#upgradeScreen .upgrade-center.is-result > b { font-size:18px; }
html.website-ready #upgradeScreen .upgrade-start { width:100%; max-width:280px; min-height:50px; border-radius:12px; font-size:15px; box-shadow:0 8px 24px #c79b2820; }
#upgradeScreen .upgrade-status { min-height:0; }
#upgradeScreen .upgrade-side-controls { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:12px; transform:none; justify-self:stretch; align-self:stretch; width:100%; padding:14px 18px; background:#16130e; border:1px solid #3b301d; border-radius:14px; }
#upgradeScreen .upgrade-side-controls > span { margin-right:auto; font-size:12px; color:#c4b28c; }
#upgradeScreen .upgrade-quick-filters { display:flex; flex-wrap:wrap; gap:8px; }
#upgradeScreen .upgrade-quick-filter { width:52px; min-height:34px; }
#upgradeScreen .upgrade-filter-settings { width:36px; min-height:34px; }
html.website-ready #upgradeScreen .upgrade-slots { display:grid; width:100%; min-width:0; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; grid-column:auto; }
#upgradeScreen .upgrade-panel { display:flex; flex-direction:column; min-height:360px; border-radius:18px; }
#upgradeScreen .upgrade-panel-head { padding:18px; min-height:64px; }
#upgradeScreen .upgrade-panel-head h3 { font-size:17px; color:#f3e6c7; }
html.website-ready #upgradeScreen .upgrade-shop-link { padding:8px 10px; background:#282113; color:#e2bf6b; border:1px solid #554021; font-size:11px; }
#upgradeScreen .upgrade-catalog-note { color:#a89b7b; font-size:10px; }
#upgradeScreen .upgrade-catalog-tools { padding:14px 18px; display:grid; gap:12px; border-bottom:1px solid #332a1b; }
#upgradeScreen .upgrade-search { display:grid; gap:6px; font-size:10px; color:#aa9b7a; }
#upgradeScreen .upgrade-search input { width:100%; min-width:0; min-height:42px; padding:10px 12px; border-radius:10px; font-size:13px; }
#upgradeScreen .upgrade-panel-body { max-height:480px; min-height:200px; padding:14px; overflow:auto; }
#upgradeScreen .upgrade-items-grid { grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:10px; }
#upgradeScreen .upgrade-item { min-height:112px; border-radius:12px; }
#upgradeScreen .upgrade-item img { height:80px; object-fit:contain; }
#upgradeScreen .upgrade-empty { color:#a4977a; }
@media(max-width:850px) {
 #upgradeScreen .upgrade-arena { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 html.website-ready #upgradeScreen .upgrade-main { grid-row:2; grid-column:1 / -1; min-height:0; }
 html.website-ready #upgradeScreen .upgrade-selection { min-height:220px; padding:18px 12px; gap:16px; }
 #upgradeScreen .upgrade-selection-content img { height:110px; }
 #upgradeScreen .upgrade-heading > p { display:none; }
}
@media(max-width:600px) {
 html.website-ready #upgradeScreen .upgrade-slots { grid-template-columns:minmax(0,1fr); }
 #upgradeScreen .upgrade-side-controls { justify-content:flex-start; }
 #upgradeScreen .upgrade-side-controls > span { flex-basis:100%; }
 #upgradeScreen .upgrade-selection-content strong { font-size:12px; }
 #upgradeScreen .upgrade-selection-label { font-size:9px; }
 #upgradeScreen .upgrade-selection-icon { width:56px; height:56px; border-radius:16px; font-size:30px; }
}

@media(min-width:1100px) {
 html.website-ready #upgradeScreen .upgrade-selection { min-height:400px; }
 html.website-ready #upgradeScreen .upgrade-main { min-height:400px; }
 #upgradeScreen .upgrade-selection-content img { max-width:300px; height:200px; }
}
@media(max-width:850px) {
 html.website-ready #upgradeScreen .upgrade-stage { max-width:280px; }
}

html.website-ready #marketBuyConfirmOpen.is-purchased:disabled {
  background:#302512; color:#efcd7a; border:1px solid #765a27;
  opacity:1; cursor:default; box-shadow:none;
}
