:root {
  --page: #222729;
  --ink: #fff;
  --blue: #119af5;
  --line: rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.svg-filters {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

html,
body {
  height: 100%;
}

html.is-in,
body.is-in {
  overflow: hidden;
}

html.is-in body {
  padding: 0;
  align-items: stretch;
  overflow: hidden;
  height: 100%;
}

html.is-in .hero {
  display: none !important;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 220px 20px 32px;
  overflow: auto;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar[hidden] {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--page);
  position: relative;
  z-index: 20;
}

body.is-in {
  padding: 0;
  align-items: stretch;
  overflow: hidden;
  height: 100%;
}

body.is-in .hero {
  display: none !important;
}

.balance-badge,
.topbar-logout {
  appearance: none;
  height: 32px;
  border: 0;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  cursor: pointer;
  position: relative;
  z-index: 2;
  flex: none;
}

.balance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px 0 6px;
  border-radius: 999px;
  background: #2a3136;
  color: #fff;
}

.balance-badge:hover {
  background: #31383e;
}

.topbar-logout {
  padding: 0 16px;
  border-radius: 16px;
  background: #119af5;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
}

.topbar-logout:hover {
  background: #0d8ae0;
}

.balance-badge[hidden],
.topbar-logout[hidden] {
  display: none !important;
}

.balance-sticker {
  width: 22px;
  height: 22px;
  overflow: hidden;
  flex: none;
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.balance-sticker svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.balance-value {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.topbar-nav {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.topbar-nav-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #119af5;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 76px;
  padding: 6px 12px 8px;
  border: 0;
  background: transparent;
  color: #8b9198;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.28s ease;
}

.topbar-nav-item.is-active {
  color: #119af5;
}

.topbar-sticker {
  width: 26px;
  height: 26px;
  overflow: hidden;
  pointer-events: none;
  filter: brightness(0) invert(62%) sepia(6%) saturate(240%) hue-rotate(169deg)
    brightness(92%) contrast(88%);
  transition: filter 0.28s ease;
}

.topbar-nav-item.is-active .topbar-sticker {
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.topbar-sticker svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.topbar-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex: none;
}

.topbar-brand::after {
  content: "";
  position: absolute;
  left: calc(100% + 16px);
  top: calc(50% + 29px);
  width: 1px;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.topbar-brand-sticker {
  width: 28px;
  height: 28px;
  position: relative;
  overflow: hidden;
}

.topbar-brand-sticker svg {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
}

.hero-sticker {
  display: block;
  align-self: center;
  flex: none;
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
}

.hero-sticker svg {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-title {
  margin-bottom: 12px;
  text-align: center;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.hero-copy {
  width: 0;
  min-width: 100%;
  margin-bottom: 32px;
  text-align: center;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #999;
}

.hero-open {
  appearance: none;
  align-self: center;
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #119af5;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.hero-open:hover {
  color: #1090e5;
}

.tg-auth-button {
  appearance: none;
  width: fit-content;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 22px;
  background: #119af5;
  color: #fff;
  font-family: -apple-system, system-ui, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

.tg-auth-button:hover {
  background: #1090e5;
}

.tg-auth-icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}

.tg-auth-button > span:not(.tg-ripple-mask) {
  display: block;
  line-height: 1;
}

.tg-auth-button[data-style~="shine"]::after {
  content: " ";
  position: absolute;
  top: -2px;
  left: -75%;
  width: 70px;
  max-width: 50%;
  bottom: -2px;
  background: linear-gradient(
    95deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: tg-shine 4s infinite;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

@keyframes tg-shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.tg-ripple-mask {
  position: absolute;
  inset: 0;
  transform: translateZ(0);
  overflow: hidden;
  pointer-events: none;
}

.tg-ripple {
  position: absolute;
  width: 200%;
  left: 50%;
  top: 50%;
  margin: -100% 0 0 -100%;
  padding-top: 200%;
  border-radius: 50%;
  background-color: #ffffff1f;
  transition: transform 0.65s ease-out, opacity 0.65s ease-out,
    background-color 0.65s ease-out;
  opacity: 0;
}

.app[hidden] {
  display: none !important;
}

.app {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  clip-path: inset(0 0 0 -100vw);
}

.brand-dock {
  flex: none;
  align-self: stretch;
  width: var(--brand-rail, 168px);
  min-height: 0;
  padding: 16px 14px 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
  clip-path: inset(0 0 0 -100vw);
}

.brand-dock-grid {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  gap: 12px;
  overflow: visible;
}

.brand-tile {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #2a3136;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.brand-tile.is-enter {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

body.is-in .topbar-brand::after {
  display: none;
}

.view {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.view.is-active {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.view-upgrade.is-active {
  flex: 1;
  justify-content: flex-start;
  padding: 48px 32px 20px;
  overflow: hidden;
}

.view-shop.is-active {
  flex: 1;
  align-items: stretch;
  justify-content: flex-start;
  padding: 16px 24px 16px;
  overflow: hidden;
}

.shop-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 14px;
}

.shop-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 14px;
}

.shop-tile {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #2a3136;
  cursor: pointer;
}

.shop-tile:hover {
  background: #31383e;
}

.shop-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex: none;
}

.shop-fields {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  height: 42px;
  overflow: hidden;
}

.shop-name,
.shop-search,
.shop-range {
  min-width: 0;
  overflow: hidden;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #2a3136;
}

.shop-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  clip-path: inset(0 0 0 100% round 12px);
  transition: clip-path 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-filters.is-search .shop-name {
  clip-path: inset(0 round 12px);
  pointer-events: auto;
}

.shop-name input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  outline: 0;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.shop-name input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.shop-search {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-range {
  flex: 1.35;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-filters.is-search .shop-search,
.shop-filters.is-search .shop-range {
  opacity: 0;
  pointer-events: none;
}

.shop-range-side {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 8px;
}

.shop-range-side + .shop-range-side {
  border-left: 1.5px solid rgba(255, 255, 255, 0.1);
}

.shop-coin {
  width: 16px !important;
  height: 16px !important;
  flex: none;
  overflow: hidden;
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.shop-coin svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.shop-range-side input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.shop-range-side input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.shop-tool-btn,
.shop-cart-btn {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  font: inherit;
}

.shop-tool-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: #2a3136;
  color: rgba(255, 255, 255, 0.55);
}

.shop-tool-btn[aria-pressed="true"] {
  color: var(--blue);
  border-color: rgba(17, 154, 245, 0.45);
}

.shop-tool-btn svg,
.shop-cart-btn svg {
  width: 20px;
  height: 20px;
}

.shop-cart-btn {
  border: 0;
  background: var(--blue);
  color: #fff;
}

.shop-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  box-sizing: border-box;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-inventory.is-active {
  flex: 1;
  justify-content: center;
}

.inventory-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 28px;
}

.inventory-empty-sticker {
  width: 196px;
  height: 196px;
}

.inventory-empty-sticker svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.inventory-empty h1 {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.inventory-empty p {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.view-profile.is-active {
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 32px 32px 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.view-profile.is-active::-webkit-scrollbar {
  display: none;
}

.profile-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 14px;
  width: min(1120px, 100%);
  max-width: 100%;
  align-items: stretch;
}

.profile-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
  border-radius: 18px;
  background: #2a3136;
}

.profile-col-user {
  align-items: center;
  justify-content: center;
}

.profile-user-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar {
  flex: none;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #3a434a;
}

.profile-name {
  margin: 16px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.profile-handle {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #222729;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.profile-col-balance {
  gap: 8px;
}

.profile-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-balance-head h2,
.profile-drop h2,
.profile-stat h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-star {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  flex: none;
  overflow: hidden;
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.profile-star svg,
.profile-drop-icon svg,
.profile-drop-sticker svg,
.profile-stat-coin svg,
.profile-stat-mark svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.profile-balance-amount {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
}

.profile-balance-amount strong {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.profile-buy {
  width: 100%;
  height: 48px;
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 154, 245, 0.28);
}

.profile-col-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(148px, 1fr) minmax(118px, auto);
  gap: 14px;
}

.profile-drop {
  grid-column: 1 / -1;
  min-height: 148px;
}

.profile-drop-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-drop-icon {
  display: flex;
  width: 20px !important;
  height: 20px !important;
  flex: none;
  overflow: hidden;
  filter: url(#tint-blue);
}

.profile-drop h2 {
  color: var(--blue);
  font-size: 13px;
}

.profile-drop-sticker {
  display: flex;
  width: 88px !important;
  height: 88px !important;
  margin: auto;
  overflow: hidden;
  filter: brightness(0) invert(78%);
}

.profile-stat {
  min-height: 118px;
}

.profile-stat p {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}

.profile-stat-value {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.profile-stat-value strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
}

.profile-stat-coin,
.profile-stat-mark {
  width: 18px !important;
  height: 18px !important;
  flex: none;
  overflow: hidden;
}

.profile-stat-coin {
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.profile-stat-mark {
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  align-items: start;
  width: min(1120px, 100%);
  max-width: 100%;
  margin-top: 18px;
}

.profile-links {
  width: 100%;
  border-radius: 18px;
  background: #2a3136;
  overflow: hidden;
}

.profile-links-solo .profile-link {
  min-height: 58px;
}

.profile-top-wrap {
  width: 100%;
}

.profile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: #3a434a;
  transition: background 0.28s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-toggle[aria-checked="true"] .switch {
  background: var(--blue);
}

.profile-toggle[aria-checked="true"] .switch::after {
  transform: translateX(20px);
}

.profile-toggle + .profile-link::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-top-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}

.profile-top-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-top-note {
  margin: 8px 4px 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.42);
}

.profile-top-note-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.profile-links-block {
  width: 100%;
  grid-column: 1 / -1;
}

.profile-links-label {
  margin: 0 4px 6px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.profile-link {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.profile-link + .profile-link::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.profile-link-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: auto;
}

.profile-link-chevron {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
  .profile-board,
  .profile-actions {
    grid-template-columns: 1fr;
  }

  .profile-col-stats {
    grid-template-rows: auto;
  }
}

.upgrade-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 318px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 318px) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 20px 40px;
  flex: 1;
  width: min(1120px, 100%);
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.gift-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 14px 16px 18px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #2a3136;
  text-align: center;
  cursor: pointer;
  font-family: Inter, -apple-system, system-ui, sans-serif;
}

.gift-card:hover {
  background: #31383e;
}

.gift-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 44px;
}

.gift-card-copy-mid {
  justify-content: center;
}

.gift-card-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.gift-card-sub {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.gift-sticker {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 168px;
  height: 168px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.16;
  filter: brightness(0) invert(70%);
}

.gift-sticker svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.chance-row {
  display: flex;
  align-self: center;
  gap: 6px;
  width: 100%;
  height: 34px;
}

.upgrade-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 52px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a3136;
  cursor: pointer;
}

.icon-btn:hover {
  background: #31383e;
}

.info-mark {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  opacity: 0.45;
}

.bolt-sticker {
  width: 20px !important;
  height: 20px !important;
  overflow: hidden;
  pointer-events: none;
  filter: brightness(0) invert(1);
  opacity: 0.42;
}

.bolt-btn.is-on .bolt-sticker {
  opacity: 1;
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.bolt-sticker svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.sound-icon {
  width: 18px;
  height: 18px;
  color: #fff;
  opacity: 0.42;
}

.sound-btn.is-on .sound-icon {
  opacity: 1;
  color: #119af5;
}

.sound-mute {
  display: none;
}

.sound-btn:not(.is-on) .sound-wave {
  display: none;
}

.sound-btn:not(.is-on) .sound-mute {
  display: block;
}

.upgrade-panels {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 0;
  height: 100%;
}

.upgrade-panel {
  min-height: 0;
  height: 100%;
  border-radius: 16px;
  background: #2a3136;
}

.upgrade-btn {
  width: 318px;
  max-width: 100%;
  height: 52px;
  margin-top: 0;
  border: 0;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chip {
  flex: 1;
  height: 34px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #2a3136;
  color: rgba(255, 255, 255, 0.72);
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transform: skewX(-14deg);
}

.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform: skewX(14deg);
}

.chip.is-active {
  border-color: var(--blue);
  background: rgba(17, 154, 245, 0.16);
  color: var(--blue);
}

.chip:disabled {
  pointer-events: none;
  opacity: 0.72;
}

.gauge {
  position: relative;
  width: 318px;
  height: 318px;
  overflow: visible;
}

.gauge-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.gauge-ticks {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.15;
  stroke-linecap: round;
}

.gauge-center {
  fill: #3a4148;
}

.gauge-gap {
  fill: none;
  stroke: var(--page);
  stroke-width: 9;
}

.gauge-track,
.gauge-inner-track {
  fill: none;
  stroke: #3a4148;
  stroke-linecap: butt;
}

.gauge-track {
  stroke-width: 6;
}

.gauge-inner-track,
.gauge-inner-fill {
  fill: none;
  stroke-width: 18;
  stroke-linecap: butt;
}

.gauge-fill,
.gauge-inner-fill {
  fill: none;
  stroke: var(--blue);
  stroke-dasharray: 50 50;
  stroke-dashoffset: 25;
  transition: stroke-dasharray 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge-fill {
  stroke-width: 6;
}

.gauge-spinner {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

.gauge-pointer {
  position: absolute;
  left: 50%;
  top: 77.5%;
  height: 18.7%;
  width: auto;
  transform: translateX(-50%);
  filter: hue-rotate(80deg) saturate(1.4) brightness(1.05);
}

.gauge-core {
  position: absolute;
  inset: 77px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.gauge-sticker {
  position: absolute;
  width: 52%;
  height: 52%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: brightness(0) invert(13%);
}

.gauge-sticker svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.gauge-value {
  position: relative;
  z-index: 1;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--blue);
  line-height: 1;
}

.gauge-caption {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.gauge-label {
  position: absolute;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  z-index: 2;
  pointer-events: none;
}

.gauge-label-top {
  top: 16.67%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gauge-label-left {
  left: 16.67%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.gauge-label-right {
  left: 83.33%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.gauge-label-bottom {
  top: 83.33%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.upgrade-btn:hover {
  background: #1090e5;
}

.upgrade-btn:disabled {
  pointer-events: none;
  opacity: 0.72;
}

.chip-gear {
  flex: 0 0 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-sticker {
  filter: brightness(0) invert(78%);
  opacity: 0.85;
}

.settings-sticker svg {
  display: block;
  width: 19px !important;
  height: 19px !important;
  margin: auto;
}

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(34, 39, 41, 0.38);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.help-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.help-modal {
  width: min(430px, 100%);
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 18px 16px 20px;
  border-radius: 22px;
  background: #2e353b;
  color: #fff;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  scrollbar-width: none;
  transform: translateY(22px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.help-overlay.is-open .help-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.help-modal::-webkit-scrollbar {
  display: none;
}

.help-head {
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.help-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.help-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #222729;
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.help-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.help-steps li span {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #222729;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-steps p {
  margin: 0;
  padding-top: 3px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.help-steps em {
  font-style: normal;
  font-weight: 800;
  color: var(--blue);
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(34, 39, 41, 0.38);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.settings-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.settings-modal {
  width: min(430px, 100%);
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: #2e353b;
  color: #fff;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  scrollbar-width: none;
  color-scheme: dark;
  transform: translateY(22px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.settings-overlay.is-open .settings-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.settings-modal::-webkit-scrollbar {
  display: none;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.settings-head h2,
.settings-subtitle {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.settings-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.settings-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}

.settings-card {
  display: flex;
  flex-direction: column;
  padding: 12px 10px 10px;
  border-radius: 14px;
  background: #2a3136;
}

.settings-card p {
  flex: 1;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
}

.settings-card-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.settings-chip {
  flex: 1 1 0;
  width: 0;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #222729;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  cursor: text;
}

.settings-chip span {
  flex: none;
  width: 9px;
  text-align: center;
  opacity: 0.72;
  line-height: 1;
  transform: none;
}

.settings-chip input {
  flex: none;
  width: 2.4ch;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  line-height: 1;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  color-scheme: dark;
}

.settings-chip input::-webkit-outer-spin-button,
.settings-chip input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.settings-reset {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.settings-reset svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.settings-subtitle {
  margin: 4px 0 8px;
}

.settings-spin {
  position: relative;
}

.settings-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}

.settings-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-ui {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transition: border-color 0.28s ease;
}

.radio-ui::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.settings-option input:checked + .radio-ui {
  border-color: var(--blue);
}

.settings-option input:checked + .radio-ui::after {
  transform: scale(1);
}

.settings-option-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-option-text strong {
  font-size: 15px;
  font-weight: 700;
}

.settings-option-text small {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
}

.settings-save {
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(34, 39, 41, 0.38);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-modal {
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 16px 16px 18px;
  border-radius: 22px;
  background: #2e353b;
  color: #fff;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  scrollbar-width: none;
  color-scheme: dark;
  transform: translateY(22px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.cart-overlay.is-open .cart-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cart-modal::-webkit-scrollbar {
  display: none;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.cart-title-row svg {
  width: 22px;
  height: 22px;
}

.cart-title-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cart-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #222729;
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-body {
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-body.has-items {
  align-items: stretch;
  justify-content: flex-start;
  padding: 12px 0 4px;
}

.cart-empty {
  margin: 0;
  white-space: nowrap;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
}

.cart-list {
  width: 100%;
  align-self: stretch;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  scrollbar-width: none;
}

.cart-empty[hidden],
.cart-list[hidden] {
  display: none;
}

.cart-list::-webkit-scrollbar {
  display: none;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #222729;
}

.cart-item-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.cart-item-price {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cart-total-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
}

.cart-coin {
  width: 20px !important;
  height: 20px !important;
  flex: none;
  overflow: hidden;
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.cart-coin svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-cancel,
.cart-buy {
  height: 46px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.cart-cancel {
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
}

.cart-buy {
  border: 0;
  background: var(--blue);
  color: #fff;
}

.cart-buy:disabled {
  opacity: 0.45;
  cursor: default;
}

.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: rgba(34, 39, 41, 0.38);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.pay-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pay-modal {
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 16px 16px 22px;
  border-radius: 22px;
  background: #2e353b;
  color: #fff;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  scrollbar-width: none;
  color-scheme: dark;
  transform: translateY(22px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.pay-overlay.is-open .pay-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pay-modal::-webkit-scrollbar {
  display: none;
}

.pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pay-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pay-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #222729;
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pay-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: #222729;
}

.pay-tab-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
  background: #3a434a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 0;
  transform: translate(4px, 4px);
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.pay-tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px 2px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.28s ease;
}

.pay-tab svg {
  width: 22px;
  height: 22px;
}

.pay-tab-sticker {
  width: 22px !important;
  height: 22px !important;
  overflow: hidden;
  pointer-events: none;
  filter: brightness(0) invert(1);
  opacity: 0.42;
}

.pay-tab-sticker svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.pay-tab.is-active .pay-tab-sticker {
  opacity: 1;
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.pay-tab.is-active {
  color: var(--blue);
}

.pay-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.pay-ways.is-open {
  margin-top: 12px;
  max-height: 80px;
  opacity: 1;
  pointer-events: auto;
}

.pay-ways.is-single {
  grid-template-columns: 1fr 1fr;
}

.pay-way[hidden] {
  display: none;
}

.pay-way {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #222729;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}

.pay-way.is-active {
  background: rgba(17, 154, 245, 0.12);
  border-color: var(--blue);
  color: var(--blue);
}

.pay-way-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: #222729;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.pay-way.is-active .pay-way-icon {
  color: var(--blue);
}

.pay-way-icon:has(img) {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.pay-way-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pay-way-icon-fill img {
  object-fit: cover;
}

.pay-way-icon-sbp img {
  width: 22px;
  height: 22px;
  margin: auto;
}

.pay-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

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

.pay-coins[hidden],
.pay-funds[hidden],
.pay-gifts[hidden] {
  display: none;
}

.pay-chip {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #222729;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pay-chip.is-active {
  background: rgba(17, 154, 245, 0.12);
  color: var(--blue);
}

.pay-sum {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px 12px;
  border-radius: 14px;
  background: #222729;
}

.pay-sum-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
}

.pay-sum-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.pay-sum-cur {
  flex: none;
  display: flex;
  align-items: center;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pay-sum-cur[hidden],
.pay-sum-star[hidden],
.pay-sum-min[hidden],
.pay-rate[hidden] {
  display: none;
}

.pay-sum-star {
  width: 22px !important;
  height: 22px !important;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0) invert(39%) sepia(98%) saturate(1842%)
    hue-rotate(199deg) brightness(101%) contrast(101%);
}

.pay-sum-star svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.pay-sum input {
  flex: 1;
  min-width: 0;
  height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 28px;
  padding: 0;
  outline: none;
}

.pay-sum-min {
  flex: none;
  display: flex;
  align-items: center;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.pay-sum-min.is-rate {
  color: var(--blue);
  font-weight: 800;
}

.pay-rate {
  margin: 8px 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.pay-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 10px;
  padding: 4px 4px 4px 12px;
  border-radius: 14px;
  background: #222729;
}

.pay-promo-icon {
  flex: none;
  display: block;
  width: 16px;
  height: 40px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
}

.pay-promo input {
  flex: 1;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
  outline: none;
}

.pay-promo-btn {
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: #3a434a;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pay-promo.is-on .pay-promo-btn {
  background: var(--blue);
  color: #fff;
}

.pay-submit {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 154, 245, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pay-gifts {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.pay-gifts-help a {
  color: var(--blue);
  text-decoration: none;
}

.pay-gifts-card {
  padding: 14px;
  border-radius: 16px;
  background: #222729;
}

.pay-gifts-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pay-gifts-card p {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
}

.pay-gifts-help {
  margin: 12px 2px 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
}

.pay-modal.is-gifts .pay-note {
  display: none;
}

.pay-note {
  margin: 10px 8px 2px;
  padding-bottom: 2px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.38);
}
