html,
body,
#overlayContainer {
  max-width: 100%;
  overflow-x: hidden !important;
}

.gaming-shell {
  --gaming-gold: #facc15;
  --gaming-amber: #f59e0b;
  --gaming-green: #34d399;
  --gaming-sky: #38bdf8;
  --gaming-ink: #09090b;
  --gaming-panel: rgba(24, 24, 27, 0.92);
  --gaming-border: rgba(250, 204, 21, 0.2);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.gaming-shell,
.gaming-shell * {
  box-sizing: border-box;
}

.gaming-shell :where(h1, h2, h3, p, li, span, strong, small, code, label) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gaming-hero-panel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--gaming-border);
}

.gaming-hero-compact {
  min-height: 52vh;
}

.gaming-hero-content,
.gaming-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.gaming-hero-content {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 0 4rem;
}

.gaming-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fde68a;
}

.gaming-hero-content h1,
.gaming-section-heading h2,
.gaming-terms-panel h2,
.gaming-modal-panel h2 {
  margin: 0;
  color: #fff;
  font-weight: 950;
  line-height: 0.98;
}

.gaming-hero-content h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.gaming-hero-content p,
.gaming-section-heading p,
.gaming-muted {
  max-width: 700px;
  color: #e5e7eb;
  line-height: 1.75;
}

.gaming-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.gaming-primary-btn,
.gaming-secondary-btn,
.gaming-disabled-btn,
.gaming-disabled-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.gaming-primary-btn {
  background: linear-gradient(135deg, #facc15, #34d399);
  color: #08111f;
  box-shadow: 0 16px 34px rgba(52, 211, 153, 0.22);
}

.gaming-secondary-btn {
  background: rgba(9, 9, 11, 0.82);
  color: #fff;
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.gaming-primary-btn:hover,
.gaming-secondary-btn:hover {
  transform: translateY(-2px);
}

.gaming-wide-btn {
  width: 100%;
}

.gaming-band {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(250, 204, 21, 0.1);
  background: #09090b;
}

.gaming-band-alt {
  background: linear-gradient(135deg, rgba(12, 10, 9, 0.98), rgba(15, 23, 42, 0.95));
}

.gaming-section-heading {
  margin-bottom: 2rem;
}

.gaming-section-heading h2,
.gaming-terms-panel h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.gaming-tile-grid,
.gaming-shop-grid,
.gaming-sub-grid {
  display: grid;
  gap: 1.1rem;
}

.gaming-tile-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.gaming-sub-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: stretch;
  margin-top: 1.8rem;
}

.gaming-shop-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.gaming-image-tile,
.gaming-disabled-tile,
.gaming-server-tile,
.gaming-disabled-card {
  min-height: 15rem;
  border-radius: 0.65rem;
  border: 1px solid var(--gaming-border);
  background: var(--gaming-panel);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.gaming-image-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  padding: 1.35rem;
  text-align: left;
}

.gaming-image-tile span,
.gaming-disabled-tile span,
.gaming-server-tile strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 950;
}

.gaming-image-tile small,
.gaming-disabled-tile small,
.gaming-server-tile small {
  display: block;
  margin-top: 0.4rem;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gaming-disabled-tile,
.gaming-disabled-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  color: #71717a;
  border-color: rgba(113, 113, 122, 0.28);
}

.gaming-server-tile {
  display: flex;
  min-height: 11rem;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.gaming-server-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.56);
}

.gaming-server-logo {
  width: 6.5rem;
  height: 6.5rem;
  flex: 0 0 auto;
  border-radius: 0.55rem;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.22);
}

.gaming-server-disabled {
  min-height: 11rem;
}

.gaming-reward-table,
.gaming-terms-panel,
.gaming-popup-content,
.gaming-modal-panel {
  border: 1px solid var(--gaming-border);
  background: linear-gradient(145deg, rgba(24, 24, 27, 0.96), rgba(12, 10, 9, 0.94));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.gaming-reward-table {
  overflow: hidden;
  border-radius: 0.75rem;
}

.gaming-reward-head,
.gaming-reward-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
}

.gaming-reward-head {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gaming-reward-row {
  border-top: 1px solid rgba(250, 204, 21, 0.1);
  color: #f4f4f5;
}

.gaming-reward-head > *,
.gaming-reward-row > * {
  min-width: 0;
}

.gaming-reward-row small {
  display: block;
  margin-top: 0.25rem;
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gaming-sub-card {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  border-radius: 0.75rem !important;
}

.gaming-sub-card > .flex {
  min-width: 0;
  flex-wrap: wrap;
}

.gaming-sub-card h3 {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
}

.gaming-pill {
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gaming-sub-price {
  margin-top: 1rem;
  color: #fde68a;
  font-size: 2.6rem;
  font-weight: 950;
}

.gaming-sub-price span {
  margin-left: 0.25rem;
  color: #a1a1aa;
  font-size: 1rem;
  font-weight: 700;
}

.gaming-sub-perks {
  flex: 1 1 auto;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.gaming-sub-perks li {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
  line-height: 1.45;
}

.gaming-sub-action {
  margin-top: auto;
  padding-top: 1.25rem;
}

.gaming-manage-panel {
  margin-top: 1.4rem;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(24, 24, 27, 0.94), rgba(12, 10, 9, 0.96));
  padding: 1.2rem;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.gaming-manage-panel h3 {
  margin: 0.15rem 0 0.45rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
}

.gaming-manage-panel p {
  margin: 0;
  color: #d4d4d8;
}

.gaming-manage-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gaming-manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: 0.65rem;
  background: rgba(9, 9, 11, 0.72);
  padding: 0.9rem;
}

.gaming-manage-row strong,
.gaming-manage-row span,
.gaming-manage-row small {
  display: block;
}

.gaming-manage-row strong {
  color: #fff;
  font-weight: 950;
}

.gaming-manage-row span {
  margin-top: 0.18rem;
  color: #fde68a;
  font-size: 0.9rem;
}

.gaming-manage-row small {
  margin-top: 0.18rem;
  color: #a1a1aa;
}

.gaming-cancel-sub-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.38);
  padding: 0.65rem 0.9rem;
  color: #fecaca;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gaming-cancel-sub-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.gaming-active-label,
.gaming-cancelled-label {
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 0.55rem;
  padding: 0.6rem;
  text-align: center;
  font-weight: 900;
}

.gaming-active-label {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.gaming-cancelled-label {
  background: rgba(113, 113, 122, 0.28);
  color: #d4d4d8;
}

.gaming-disabled-btn,
.gaming-disabled-card button {
  width: 100%;
  cursor: not-allowed;
  background: rgba(63, 63, 70, 0.72);
  color: #a1a1aa;
}

.gaming-disabled-card h2 {
  margin: 0;
  color: #e4e4e7;
  font-size: 1.4rem;
  font-weight: 900;
}

.gaming-disabled-card p {
  color: #a1a1aa;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gaming-terms-panel {
  border-radius: 0.75rem;
  padding: 2rem;
}

.gaming-terms-panel ul {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: #e5e7eb;
  line-height: 1.75;
}

.gaming-terms-panel code {
  color: #fde68a;
  white-space: normal;
  word-break: break-word;
}

.gaming-input,
.gaming-shell input,
.gaming-shell textarea,
.gaming-shell select {
  border: 1px solid rgba(250, 204, 21, 0.22) !important;
  background: #09090b !important;
  color: #fff !important;
  caret-color: #facc15 !important;
}

.gaming-input::placeholder,
.gaming-shell input::placeholder {
  color: #a1a1aa !important;
}

.gaming-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gaming-modal.hidden {
  display: none;
}

.gaming-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.86);
  backdrop-filter: blur(5px);
}

.gaming-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border-radius: 1rem;
  padding: 2rem;
}

.gaming-modal-panel h2 {
  font-size: 2.4rem;
}

.gaming-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #d4d4d8;
  font-size: 2rem;
  cursor: pointer;
}

.gaming-form-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.gaming-form-grid label span {
  display: block;
  margin-bottom: 0.45rem;
  color: #fde68a;
  font-size: 0.88rem;
  font-weight: 900;
}

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

.gaming-status {
  margin-top: 0.85rem;
  color: #fde68a;
  font-weight: 800;
}

.paint-editor-panel {
  border: 1px solid var(--gaming-border);
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(24, 24, 27, 0.96), rgba(12, 10, 9, 0.94));
  padding: 1.4rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.paint-editor-panel h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
}

.paint-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.paint-toolbar-grid label > span {
  display: block;
  margin-bottom: 0.45rem;
  color: #fde68a;
  font-size: 0.88rem;
  font-weight: 900;
}

.paint-wide {
  grid-column: span 2;
}

.paint-toggle {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(250, 204, 21, 0.14);
  border-radius: 0.65rem;
  background: #09090b;
  padding: 0.75rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 800;
}

.paint-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: 1rem;
  margin-top: 1rem;
}

.paint-preview {
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(250, 204, 21, 0.2);
  border-radius: 0.65rem;
  background:
    linear-gradient(45deg, rgba(63, 63, 70, 0.28) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(63, 63, 70, 0.28) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(63, 63, 70, 0.28) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(63, 63, 70, 0.28) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.paint-preview-img {
  max-width: 100%;
  max-height: 22rem;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.paint-preview-result {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  width: 100%;
}

.paint-preview-result span {
  color: #fde68a;
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.paint-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
}

.paint-target-group {
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: 0.65rem;
  background: rgba(9, 9, 11, 0.72);
  padding: 1rem;
}

.paint-target-group h3 {
  margin: 0 0 0.9rem;
  color: #fde68a;
  font-size: 1rem;
  font-weight: 950;
}

.paint-target-option {
  display: flex;
  gap: 0.75rem;
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: 0.6rem;
  background: #09090b;
  padding: 0.75rem;
  color: #e5e7eb;
}

.paint-target-option b {
  color: #fff;
}

.paint-target-option small {
  display: block;
  margin-top: 0.25rem;
  color: #a1a1aa;
  line-height: 1.35;
}

.paint-subscribe-tray {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: grid;
  gap: 0.45rem;
  width: min(22rem, calc(100vw - 2rem));
  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(24, 24, 27, 0.98), rgba(69, 26, 3, 0.96));
  padding: 1rem;
  color: #fef3c7;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 28px rgba(250, 204, 21, 0.14);
}

.paint-subscribe-tray strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.paint-subscribe-tray span {
  color: #fde68a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.paint-subscribe-tray a {
  justify-self: start;
  border-radius: 999px;
  background: #facc15;
  padding: 0.55rem 0.9rem;
  color: #18181b;
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
}

@media (max-width: 720px) {
  #overlayContainer,
  #wheelHeader,
  #blue-widget-layout-row,
  #blue-widget-container,
  #blue-widget-bar {
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }

  .quick-popup-modal {
    left: 0 !important;
    right: 0 !important;
    max-width: calc(100% - 1rem) !important;
  }

  .blue-widget-status-ribbon {
    right: 0.5rem !important;
    max-width: calc(100% - 1rem) !important;
  }

  #wheelTooltip {
    left: 0.5rem !important;
    right: 0.5rem !important;
    max-width: calc(100% - 1rem) !important;
  }

  .gaming-hero-content,
  .gaming-inner {
    width: min(100% - 1rem, 1180px);
  }

  .gaming-hero-content {
    padding: 5.5rem 0 3rem;
  }

  .gaming-band {
    padding: 3rem 0;
  }

  .gaming-reward-head {
    display: none;
  }

  .gaming-reward-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .gaming-reward-row > span:first-child {
    padding-bottom: 0.15rem;
  }

  .gaming-reward-row > span:nth-child(2),
  .gaming-reward-row > span:nth-child(3) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: 0.6rem;
    background: rgba(9, 9, 11, 0.64);
    padding: 0.7rem 0.8rem;
    text-align: right;
  }

  .gaming-reward-row > span:nth-child(2)::before,
  .gaming-reward-row > span:nth-child(3)::before {
    flex: 0 0 auto;
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .gaming-reward-row > span:nth-child(2)::before {
    content: "Premium";
  }

  .gaming-reward-row > span:nth-child(3)::before {
    content: "Premium+";
  }

  .gaming-sub-card,
  .gaming-terms-panel,
  .gaming-modal-panel {
    padding: 1.1rem !important;
  }

  .gaming-sub-price {
    font-size: 2.15rem;
  }

  .gaming-server-tile {
    align-items: flex-start;
    flex-direction: column;
  }

  .gaming-server-logo {
    width: 5.25rem;
    height: 5.25rem;
  }

  .gaming-form-grid {
    grid-template-columns: 1fr;
  }

  .paint-toolbar-grid,
  .paint-layout {
    grid-template-columns: 1fr;
  }

  .paint-wide {
    grid-column: auto;
  }

  .gaming-primary-btn,
  .gaming-secondary-btn {
    width: 100%;
  }

  .gaming-manage-row {
    align-items: stretch;
    flex-direction: column;
  }

  .gaming-cancel-sub-btn {
    width: 100%;
  }
}
