:root {
  --page-bg: #050209;
  --app-bg: #110018;
  --panel: #2a1739;
  --panel-strong: #3c1758;
  --panel-soft: #463151;
  --purple: #a94df4;
  --violet: #d49aff;
  --gold: #ffe800;
  --mint: #68e06c;
  --cream: #f5edf8;
  --muted: #cbbcd2;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(102, 37, 136, 0.42), transparent 28rem),
    linear-gradient(180deg, #030105 0%, var(--page-bg) 100%);
  color: var(--cream);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  background: linear-gradient(180deg, #06010b 0%, #16001f 48%, #09010f 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.view {
  min-height: 100dvh;
}

.login-view {
  position: relative;
  display: grid;
  align-items: end;
  padding: 28px 18px;
}

.login-art,
.login-scrim {
  position: absolute;
  inset: 0;
}

.login-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.login-scrim {
  background:
    linear-gradient(180deg, rgba(5, 2, 9, 0.2) 0%, rgba(5, 2, 9, 0.96) 72%),
    rgba(5, 2, 9, 0.18);
}

.login-panel {
  position: relative;
  z-index: 1;
  padding: 24px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(34, 17, 47, 0.88);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.login-panel h1,
.topbar h1 {
  margin: 0;
  text-shadow: 0 1px 0 #000;
}

.login-panel h1 {
  font-size: 1.85rem;
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.identity-fields {
  display: grid;
  gap: 10px;
}

.login-form.is-verifying {
  gap: 12px;
}

.login-form label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(8, 2, 12, 0.82);
  color: var(--cream);
  outline: none;
}

.login-form input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(212, 154, 255, 0.18);
}

.login-form input[readonly] {
  opacity: 0.76;
}

.otp-panel {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  animation: otpPanelIn 180ms ease-out both;
}

.otp-panel p {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.otp-status {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 2px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.otp-status-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff3a7 0%, #e7be38 100%);
  box-shadow: 0 8px 20px rgba(255, 232, 0, 0.26);
}

.otp-status-icon::after {
  content: "";
  width: 8px;
  height: 14px;
  margin-top: -3px;
  border: solid #2a0f3b;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.otp-status strong,
.otp-status span {
  display: block;
}

.otp-status strong {
  color: var(--cream);
  font-size: 1rem;
}

#otpSummary {
  margin-top: 2px;
  overflow: hidden;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-form.is-verifying #otpCode {
  min-height: 56px;
  border-color: rgba(255, 232, 0, 0.42);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

@keyframes otpPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.primary-button,
.claim-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #d89cff 0%, #a948f1 100%);
  color: #2a0f3b;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(169, 77, 244, 0.28);
}

.primary-button {
  width: 100%;
  margin-top: 8px;
}

.text-button {
  width: max-content;
  justify-self: center;
  border: 0;
  padding: 4px 8px;
  background: transparent;
  color: var(--violet);
  font-size: 0.88rem;
  font-weight: 800;
}

.dashboard-view {
  padding-bottom: 28px;
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  background: #06020a;
}

.topbar h1 {
  text-align: center;
  font-size: 1.08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
}

.install-button {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.balance-card {
  margin: 2px 17px 0;
  padding: 24px 24px 28px;
  border: 1px solid rgba(202, 150, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(91, 72, 107, 0.9) 0%, rgba(43, 13, 67, 0.94) 60%, rgba(49, 10, 78, 0.98) 100%);
  box-shadow: var(--shadow);
}

.balance-card.is-revealing {
  animation: balanceReveal 420ms ease-out both;
}

@keyframes balanceReveal {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.balance-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 14px;
}

.money-stack {
  position: relative;
  width: 54px;
  height: 38px;
  transform: rotate(-12deg);
}

.money-stack span,
.mini-money {
  position: absolute;
  display: block;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 50%, #ecffe8 0 17%, #78d75e 18% 28%, transparent 29%),
    linear-gradient(135deg, #c6ff8c 0%, #6ccd55 46%, #e7ffd4 48%, #8add65 100%);
  border: 2px solid #c6ff8c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.money-stack span:nth-child(1) {
  inset: 12px 6px 0 2px;
}

.money-stack span:nth-child(2) {
  inset: 7px 3px 5px 7px;
}

.money-stack span:nth-child(3) {
  inset: 2px 0 10px 12px;
}

.points-display {
  color: var(--gold);
  font-size: 2.25rem;
  font-style: italic;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.claim-button {
  width: 70px;
  color: #250b34;
}

.progress-track {
  position: relative;
  height: 6px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: visible;
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 97%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0c4ff 0%, #b95eff 100%);
}

.progress-track::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(3px, -50%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.74);
}

.remaining-text {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.remaining-text strong {
  color: var(--gold);
  font-size: 1.12rem;
}

.wheel-stage {
  position: relative;
  min-height: 418px;
  margin-top: 10px;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.pirate-art {
  position: absolute;
  inset: -78px 0 auto;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.08) contrast(1.04);
  opacity: 0.95;
  pointer-events: none;
}

.wheel-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 0, 24, 0.1) 0%, rgba(17, 0, 24, 0.04) 58%, #110018 100%),
    radial-gradient(circle at 50% 66%, transparent 0 132px, rgba(17, 0, 24, 0.06) 133px 172px, rgba(17, 0, 24, 0.45) 230px);
  pointer-events: none;
}

.wheel-wrap {
  position: relative;
  z-index: 1;
  width: min(330px, calc(100vw - 42px));
  aspect-ratio: 1;
  margin-bottom: 10px;
}

.wheel-rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 4px rgba(248, 209, 255, 0.52))
    drop-shadow(0 0 22px rgba(208, 91, 255, 0.82))
    drop-shadow(0 22px 32px rgba(0, 0, 0, 0.52));
  transition: transform 4s cubic-bezier(0.12, 0.82, 0.14, 1);
}

.wheel-dial {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheel-prizes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.prize-slot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 54px;
  height: 38px;
  transform: translate(-50%, -50%);
}

.slot-top-left { --x: 38.5%; --y: 22.5%; }
.slot-top-right { --x: 61.5%; --y: 22.5%; }
.slot-upper-right { --x: 77.0%; --y: 39.5%; }
.slot-lower-right { --x: 76.5%; --y: 61%; }
.slot-bottom-right { --x: 60.5%; --y: 76.5%; }
.slot-bottom-left { --x: 38.5%; --y: 77.5%; }
.slot-lower-left { --x: 22.5%; --y: 61.5%; }
.slot-upper-left { --x: 22.5%; --y: 38.5%; }

.prize {
  display: block;
  transform-origin: center;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.55));
}

.prize-money {
  width: 42px;
  transform: rotate(-10deg);
}

.prize-coin {
  width: 36px;
}

.prize-star {
  width: 40px;
  transform: rotate(-12deg);
}

.prize-lightning {
  width: 18px;
  height: 42px;
  background: linear-gradient(180deg, #fff56a 0%, #ffcf1e 100%);
  clip-path: polygon(60% 0, 100% 0, 62% 43%, 100% 43%, 25% 100%, 45% 55%, 0 55%);
  transform: rotate(-28deg);
  filter: drop-shadow(0 0 6px rgba(255, 242, 45, 0.82));
}

.prize-text {
  color: #fff22d;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 0 7px rgba(255, 242, 45, 0.74),
    0 2px 3px rgba(0, 0, 0, 0.72);
}

.prize-1000 {
  font-size: 1.18rem;
  transform: rotate(66deg);
}

.prize-50 {
  font-size: 1.24rem;
  transform: rotate(116deg);
}

.prize-spin {
  width: 44px;
  font-size: 0.74rem;
  line-height: 0.9;
  text-align: center;
  transform: rotate(162deg);
}

.prize-red {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 3px solid #ff6a55;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffbd9f 0 12%, #f2432e 44%, #8e1111 100%);
  color: #180808;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.46rem;
  font-weight: 900;
  transform: rotate(34deg);
}

.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -9px;
  z-index: 3;
  width: 58px;
  height: 82px;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.62));
}

.spin-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border: 5px solid #ffe44e;
  border-radius: 50%;
  background:
    url("assets/spin-button.svg") center / cover no-repeat,
    radial-gradient(circle at 50% 36%, #f06cf2 0 20%, #be144f 54%, #7c0929 100%);
  color: #fff;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.spin-core span {
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.spin-core.is-empty {
  cursor: not-allowed;
  filter: grayscale(0.38) brightness(0.82);
}

.spin-core.is-spinning {
  cursor: wait;
  font-size: 0.92rem;
  filter: none;
}

.expiry-pill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 34px);
  min-height: 32px;
  margin: -2px auto 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.expiry-pill strong {
  color: #fff;
}

.reset-time-text {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: min(100% - 34px, 360px);
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.reset-time-text strong {
  color: var(--gold);
  white-space: nowrap;
}

.invite-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: 0 15px 20px;
  padding: 10px 14px 10px 26px;
  border-radius: 8px;
  background: linear-gradient(100deg, #321d44 0%, #2a1238 100%);
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.invite-strip span {
  min-width: 0;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.share-symbol {
  position: relative;
  width: 26px;
  height: 24px;
}

.share-symbol::before,
.share-symbol::after {
  content: "";
  position: absolute;
  left: 5px;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: #c7a1e7;
  transform-origin: left center;
}

.share-symbol::before {
  top: 8px;
  transform: rotate(-24deg);
}

.share-symbol::after {
  top: 13px;
  transform: rotate(24deg);
}

.share-symbol i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7b0fb;
}

.share-symbol i:nth-child(1) { left: 0; top: 9px; }
.share-symbol i:nth-child(2) { right: 0; top: 2px; }
.share-symbol i:nth-child(3) { right: 0; bottom: 2px; }

.history-panel {
  margin: 0 15px;
  border: 1px solid rgba(191, 91, 255, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 95%, rgba(116, 96, 132, 0.58), transparent 11rem),
    linear-gradient(100deg, rgba(57, 35, 70, 0.96), rgba(26, 7, 40, 0.98) 62%, rgba(60, 14, 87, 0.98));
  overflow: hidden;
}

.history-title {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 24px;
  background: linear-gradient(90deg, #251131 0%, #35114c 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.history-content {
  padding: 0 24px 12px;
  min-height: 210px;
}

.winner-list {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-top: 1px solid rgba(221, 165, 255, 0.7);
  border-right: 1px solid rgba(221, 165, 255, 0.7);
  border-bottom: 1px solid rgba(221, 165, 255, 0.7);
  border-radius: 0 8px 8px 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
}

.winner-track {
  position: absolute;
  top: 14px;
  left: 8px;
  right: 8px;
  display: grid;
  min-width: 0;
}

.winner-track {
  will-change: transform;
  animation: winnersMove 84s linear infinite;
}

@keyframes winnersMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.winner-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.winner-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-row strong {
  color: var(--gold);
  text-align: right;
}

.promo-description {
  margin: 38px 22px 0;
  padding-bottom: 12px;
  color: rgba(245, 237, 248, 0.78);
  font-size: 0.9rem;
  line-height: 1.8;
}

.promo-description h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
  text-align: center;
}

.promo-description h2::before,
.promo-description h2::after {
  content: "";
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

.promo-description h2::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.promo-description ol,
.promo-description ul {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.promo-description ul {
  margin-top: 2px;
  list-style: none;
}

.promo-description li {
  margin: 4px 0;
}

.promo-description ul li::before {
  content: "- ";
}

.modal-layer,
.share-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal-backdrop,
.sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
}

.claim-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(340px, calc(100vw - 44px));
  padding: 26px 28px 28px;
  border-radius: 8px;
  background: linear-gradient(160deg, #46364f 0%, #261233 54%, #35104a 100%);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.claim-modal h2 {
  margin: 0 28px 34px 0;
  color: #fff;
  font-size: 1.02rem;
  text-align: center;
}

.close-button,
.sheet-close {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
}

.close-button {
  right: 25px;
  top: 14px;
  width: 29px;
  height: 29px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 1.6rem;
}

.modal-caption {
  margin: 0;
  color: #e5c7ff;
  text-align: center;
  font-size: 0.9rem;
}

.modal-points {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.mini-money {
  position: relative;
  width: 34px;
  height: 22px;
  transform: rotate(-12deg);
}

.modal-points strong {
  color: var(--violet);
  font-size: 2.45rem;
  font-style: italic;
  line-height: 1;
}

.process-title {
  margin: 20px 0 12px;
  color: #eee0f7;
  font-size: 0.92rem;
}

.claim-steps {
  display: grid;
  gap: 13px;
  margin: 0 0 18px;
  padding: 17px 18px 17px 37px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #d8c4df;
  font-size: 0.74rem;
  font-weight: 700;
}

.claim-steps li {
  position: relative;
}

.claim-steps li::marker {
  color: rgba(255, 255, 255, 0.72);
}

.claim-steps li.is-done::marker {
  color: #58ff4d;
}

.share-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(430px, 100%);
  max-height: 68dvh;
  padding: 17px 14px 18px;
  overflow: auto;
  background: #fff;
  color: #493b4d;
  transform: translateX(-50%);
}

.share-panel h2 {
  margin: 0 42px 14px 0;
  color: #675768;
  font-size: 1rem;
}

.sheet-close {
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: transparent;
  color: #aaa;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 2rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.social {
  display: grid;
  place-items: center;
  gap: 6px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #675768;
  font-size: 0.72rem;
}

.social span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: #fff;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 900;
}

.social small {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-facebook span { background: #2586ef; font-size: 1.7rem; }
.social-whatsapp span { background: #34c85a; font-size: 0.86rem; }
.social-telegram span { background: #57bfe7; font-size: 0.82rem; }
.social-instagram span { background: linear-gradient(135deg, #ffda5c, #fb5d4b 42%, #b743dc); font-size: 0.82rem; }
.social-twitter span { background: #020202; font-size: 1.35rem; }

.invite-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 8px 0 12px;
  border-radius: 5px;
  background: #f0eef1;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.82rem;
}

.invite-link-row span {
  min-width: 0;
  overflow: hidden;
  color: #020202;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-link-row button {
  border: 0;
  background: transparent;
  color: #1381ee;
  font-size: 0.82rem;
}

.random-panel {
  padding: 14px 13px 16px;
  background: #030303;
}

.random-players {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
  margin-bottom: 15px;
  color: #fff;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
  text-align: center;
}

.random-empty {
  grid-column: 1 / -1;
  padding: 10px 0;
  color: #d8cddd;
  font-size: 0.9rem;
}

.random-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.random-action {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #070707;
  text-align: left;
}

.random-action strong {
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.05;
}

.action-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.wa-badge { background: #34c85a; }
.sms-badge { background: #42c85d; font-size: 0.66rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(8, 5, 12, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.body-locked {
  overflow: hidden;
}

@media (max-width: 374px) {
  .balance-card {
    margin-inline: 12px;
    padding-inline: 16px;
  }

  .balance-row {
    grid-template-columns: 48px minmax(0, 1fr) 64px;
    gap: 9px;
  }

  .points-display {
    font-size: 1.95rem;
  }

  .claim-button {
    width: 64px;
  }

  .wheel-stage {
    min-height: 386px;
  }

  .wheel-wrap {
    width: min(306px, calc(100vw - 30px));
  }

  .history-panel {
    margin-inline: 16px;
  }

  .history-content {
    padding-inline: 14px;
  }

  .random-actions {
    gap: 10px;
  }

  .random-action {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .action-badge {
    width: 38px;
    height: 38px;
  }
}
