* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #f8fafc;
  font-family: Arial, sans-serif;
  background-color: #0f172a;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: background-image 0.35s ease, background-color 0.35s ease;
}

body.bg-level-1 {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.60), rgba(15, 23, 42, 0.72)),
    url("/game/static/backgrounds/bg_1.webp");
}

body.bg-level-2 {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.68)),
    url("/game/static/backgrounds/bg_2.webp");
}

body.bg-level-3 {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.64)),
    url("/game/static/backgrounds/bg_3.webp");
}

.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 40px;
}

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

.brand-title {
  font-size: 22px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

.level-box {
  background: #1e293b;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  min-width: 78px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.level-box span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.level-box strong {
  font-size: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.stat-card {
  background: #1e293b;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.03);
}

.stat-card span {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.stat-card strong {
  font-size: 16px;
  line-height: 1.1;
}

.energy-section {
  background: #1e293b;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.03);
}

.energy-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.energy-bar {
  width: 100%;
  height: 10px;
  background: #334155;
  border-radius: 999px;
  overflow: hidden;
}

.energy-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #84cc16);
  transition: width 0.2s ease;
}

.hamster-section {
  text-align: center;
  margin-bottom: 16px;
}

.hamster-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamster-wrap::before {
  display: none;
}

.hamster {
  position: relative;
  z-index: 1;
  width: 290px;
  height: 290px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
  animation: hamsterIdle 2.4s ease-in-out infinite;
  transform-origin: center center;
  transition: transform 0.08s ease;
}

@keyframes hamsterIdle {
  0%   { transform: scale(1) rotate(0deg) translateY(0); }
  20%  { transform: scale(1.02) rotate(-1deg) translateY(-2px); }
  50%  { transform: scale(1.04) rotate(0.8deg) translateY(0); }
  80%  { transform: scale(1.02) rotate(-0.6deg) translateY(2px); }
  100% { transform: scale(1) rotate(0deg) translateY(0); }
}

.hamster.tap {
  animation-play-state: paused;
  transform: scale(0.93) !important;
}
.hamster:focus,
.hamster:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}
.hamster:active {
  transform: scale(0.96);
}

#tap-float-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.tap-float {
  position: absolute;
  font-weight: 700;
  font-size: 22px;
  animation: floatUp 0.8s ease forwards;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}

.primary-btn,
.menu-btn,
.buy-btn,
.claim-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  background: #f59e0b;
  color: #111827;
}

.tap-main-btn {
  width: 180px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.compact-actions .menu-btn {
  min-height: 48px;
}

.menu-btn {
  background: #334155;
  color: #fff;
}

.panel {
  background: #1e293b;
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.04);
}

.tabs-panel {
  padding: 10px;
}

.panel-header h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.section-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.section-tab-btn {
  border: none;
  border-radius: 14px;
  padding: 10px 8px;
  background: #334155;
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.section-tab-btn.active {
  background: #f59e0b;
  color: #111827;
}

.section-tab-content {
  min-height: 260px;
}

.section-pane {
  display: none;
}

.section-pane.active {
  display: block;
}

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

.list-item {
  background: #334155;
  border-radius: 14px;
  padding: 12px;
}

.item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.item-title {
  font-weight: 700;
}

.item-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

.item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.buy-btn,
.claim-btn {
  background: #22c55e;
  color: #06210f;
}

.buy-btn:disabled,
.claim-btn:disabled,
.wallet-connect-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.leaderboard-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-btn {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 10px;
  background: #334155;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.tab-btn.active {
  background: #f59e0b;
  color: #111827;
}

.wallet-card,
.subpanel {
  background: #334155;
  border-radius: 16px;
  padding: 14px;
}

.wallet-card {
  margin-bottom: 14px;
}

.wallet-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wallet-label {
  opacity: 0.8;
  font-size: 13px;
}

.wallet-copy {
  margin: 0 0 14px;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.45;
  font-size: 14px;
}

.ref-box {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.ref-box input {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px;
  background: #0f172a;
  color: #fff;
}

.invite-count {
  font-size: 15px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: #0b1220;
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.toast.show {
  opacity: 1;
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .stat-card {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .stat-card span {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .stat-card strong {
    font-size: 15px;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .section-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .section-tab-btn {
    font-size: 12px;
    padding: 10px 4px;
  }

  .hamster-wrap {
    width: 300px;
    height: 300px;
  }

  .hamster {
    width: 255px;
    height: 255px;
  }

  .tap-main-btn {
    width: 160px;
  }
}

.ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.ad-overlay.hidden {
  display: none;
}

.ad-container {
  width: 100%;
  height: 100%;
  max-width: 520px;
  background: #111827;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ad-topbar {
  height: 52px;
  padding: 0 16px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.ad-title {
  font-size: 16px;
}

.ad-timer {
  font-size: 15px;
  background: #1e293b;
  padding: 6px 12px;
  border-radius: 999px;
}

.ad-frame {
  flex: 1;
  width: 100%;
  background: #fff;
  border: 0;
}

.ad-bottom {
  padding: 12px;
  background: #0f172a;
}

.ad-claim-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #22c55e;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.5;
}

.ad-claim-btn:enabled {
  opacity: 1;
}

.ad-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.offer-cta {
  position: fixed;
  right: 14px;
  bottom: 110px;
  z-index: 9999;
}

.offer-cta.hidden {
  display: none;
}

#offer-cta-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.task-actions-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.join-btn,
.claim-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.join-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.claim-btn {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
}

.join-btn:hover,
.claim-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.join-btn:active,
.claim-btn:active {
  transform: scale(0.98);
}

.join-btn:disabled,
.claim-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.item-actions .task-actions-inline {
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .task-actions-inline {
    width: 100%;
    gap: 6px;
  }

  .join-btn,
  .claim-btn {
    flex: 1 1 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .item-actions .task-actions-inline {
    justify-content: stretch;
  }
}
.daily-wheel-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 16px;
}

.daily-wheel-modal.hidden {
  display: none;
}

.daily-wheel-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #111827, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 18px 16px 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.daily-wheel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

.daily-wheel-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.daily-wheel-header h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #f8fafc;
}

.daily-wheel-header p {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(248, 250, 252, 0.78);
}

.wheel-stage {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto 18px;
}

.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 30px solid #f59e0b;
  z-index: 6;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.daily-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 0 40px rgba(255, 255, 255, 0.04);
  transition: transform 4.6s cubic-bezier(0.12, 0.9, 0.12, 1);
  transform: rotate(0deg);
  background: #111827;
}

.daily-wheel svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Text rotated in the direction of each sector */
.daily-wheel-straight-text {
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
  fill: #ffffff;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  letter-spacing: 0.2px;

  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.daily-wheel-straight-text--line1 {
  font-size: 16px;
}

.daily-wheel-straight-text--line2 {
  font-size: 15px;
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #111827;
  color: #ffffff;
  border: 5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  z-index: 5;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.daily-wheel-result {
  min-height: 24px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

@media (max-width: 420px) {
  .daily-wheel-card {
    max-width: 100%;
    padding: 16px 12px 18px;
  }

  .wheel-stage {
    width: 310px;
    height: 310px;
  }

  .daily-wheel-straight-text {
    font-size: 16px;
  }

  .daily-wheel-straight-text--line1 {
    font-size: 15px;
  }

  .daily-wheel-straight-text--line2 {
    font-size: 14px;
  }

  .wheel-center {
    width: 74px;
    height: 74px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .wheel-stage {
    width: 286px;
    height: 286px;
  }

  .daily-wheel-straight-text {
    font-size: 15px;
  }

  .daily-wheel-straight-text--line1 {
    font-size: 14px;
  }

  .daily-wheel-straight-text--line2 {
    font-size: 13px;
  }

  .wheel-center {
    width: 68px;
    height: 68px;
    font-size: 14px;
  }
}
.slot-topbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.slot-top-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.slot-top-card span {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.slot-top-card strong {
  font-size: 18px;
}

.slot-machine-card {
  background: linear-gradient(180deg, #2a0b0b 0%, #130606 100%);
  border: 1px solid rgba(255, 208, 82, 0.28);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

.slot-machine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slot-title {
  font-weight: 900;
  font-size: 18px;
  color: #ffd76a;
  letter-spacing: 1px;
}

.slot-payline-label {
  font-size: 11px;
  color: #ffdf84;
  opacity: 0.85;
}

.slot-machine {
  position: relative;
  background: radial-gradient(circle at center, #5f0f0f 0%, #2c0909 100%);
  border-radius: 18px;
  padding: 14px;
  border: 2px solid rgba(255, 214, 96, 0.25);
  overflow: hidden;
}

.slot-machine::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.02) 18%,
      rgba(0,0,0,0.00) 50%,
      rgba(255,255,255,0.04) 82%,
      rgba(0,0,0,0.18) 100%
    );
  z-index: 1;
}

.slot-payline {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(255,215,106,0),
    rgba(255,215,106,0.95),
    rgba(255,215,106,0)
  );
  z-index: 1;
  box-shadow: 0 0 12px rgba(255, 215, 106, 0.8);
}

.slot-grid,
.slot-grid.slot-grid-5 {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.slot-reel {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    radial-gradient(circle at 50% 35%, #fff7d3 0%, #f0d06f 18%, #8d5712 100%);
  box-shadow:
    inset 0 2px 10px rgba(255,255,255,0.28),
    0 8px 18px rgba(0,0,0,0.28);
}

.slot-reel::before,
.slot-reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 3;
  pointer-events: none;
}

.slot-reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.38), rgba(15,23,42,0));
}

.slot-reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(15,23,42,0.42), rgba(15,23,42,0));
}

.slot-reel-track {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  will-change: transform, filter;
}

.slot-symbol {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  position: relative;
}

.slot-symbol::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.00) 40%,
    rgba(255,214,96,0.08) 100%
  );
  opacity: 0.6;
  pointer-events: none;
}

.slot-symbol.center {
  border-top: 2px solid rgba(255, 226, 127, 0.95);
  border-bottom: 2px solid rgba(255, 226, 127, 0.95);
  box-shadow: inset 0 0 18px rgba(255, 217, 98, 0.18);
}

.slot-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
  will-change: transform, filter, opacity;
}

.slot-symbol.win-cell {
  z-index: 6;
}

.slot-symbol.win-cell img {
  animation: winSymbolPulse 0.72s ease-in-out infinite;
  filter:
    drop-shadow(0 0 8px rgba(255, 225, 120, 0.95))
    brightness(1.08)
    saturate(1.15);
}

.slot-symbol.dim-cell {
  opacity: 0.55;
  filter: saturate(0.85);
}

.slot-reel.spinning {
  animation: reelShake 0.16s linear infinite;
}

.slot-reel.spinning .slot-reel-track {
  filter: blur(1.6px) brightness(1.05);
}

.slot-reel.stopping .slot-reel-track {
  filter: blur(0.6px) brightness(1.03);
}

.slot-reel.stop-bounce {
  animation: slotReelStopBounce 0.28s ease;
}

.slot-lines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.slot-lines-svg polyline {
  filter:
    drop-shadow(0 0 4px rgba(255,255,255,0.45))
    drop-shadow(0 0 10px rgba(255,216,111,0.45));
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation:
    drawPayline 0.65s ease forwards,
    paylineGlow 1s ease-in-out infinite alternate;
}

.slot-bets {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 12px;
}

.slot-bet-btn {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 10px 0;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.slot-bet-btn.active {
  background: linear-gradient(180deg, #ffd86f 0%, #d89b16 100%);
  color: #2a1500;
}

.slot-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.slot-action-btn {
  border: 0;
  border-radius: 18px;
  min-height: 68px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.slot-spin-btn::before,
.slot-spin-btn::after {
  content: none;
}

.slot-action-btn:hover,
.slot-action-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.slot-action-btn:active {
  transform: translateY(1px) scale(0.98);
}

.slot-action-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(0.1);
}




.slot-result {
  margin-top: 14px;
  min-height: 24px;
  text-align: center;
  font-weight: 700;
  color: #ffe08b;
}

.slot-result.win {
  color: #ffe08b;
  text-shadow: 0 0 12px rgba(255, 208, 82, 0.42);
}

.slot-result.jackpot {
  color: #fff3b0;
  text-shadow:
    0 0 10px rgba(255, 215, 80, 0.55),
    0 0 20px rgba(255, 120, 50, 0.35);
  animation: jackpotPulse 0.7s ease-in-out infinite alternate;
}

.slot-win-lines {
  margin-top: 12px;
  font-size: 13px;
  color: #ffe08b;
  text-align: center;
  min-height: 22px;
}

.slot-controls-muted {
  opacity: 0.75;
}

.slot-sound-toggle {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.slot-sound-toggle.active {
  background: linear-gradient(180deg, #ffd86f 0%, #d89b16 100%);
  color: #2a1500;
}

@keyframes reelShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(1px); }
  50% { transform: translateX(0); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

@keyframes slotReelStopBounce {
  0% { transform: translateY(-8px) scale(1.00); }
  55% { transform: translateY(3px) scale(1.02); }
  100% { transform: translateY(0) scale(1.00); }
}

@keyframes drawPayline {
  to { stroke-dashoffset: 0; }
}

@keyframes paylineGlow {
  from { opacity: 0.75; }
  to   { opacity: 1; }
}

@keyframes winSymbolPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes jackpotPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.03); }
}

:root {
  --bg-main: #07111f;
  --bg-soft: rgba(10, 20, 36, 0.78);
  --card-bg: rgba(16, 28, 48, 0.82);
  --card-bg-strong: rgba(20, 34, 58, 0.92);
  --card-border: rgba(255, 198, 92, 0.14);
  --text-main: #f8fafc;
  --text-soft: rgba(226, 232, 240, 0.72);
  --gold-1: #ffcc69;
  --gold-2: #f59e0b;
  --gold-3: #d97706;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-gold: 0 14px 40px rgba(245, 158, 11, 0.18);
}

body {
  color: var(--text-main);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(255, 190, 92, 0.10), transparent 34%),
    radial-gradient(circle at bottom center, rgba(59, 130, 246, 0.08), transparent 32%);
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 14px 14px 120px;
}

/* ---------- top area ---------- */

.premium-topbar {
  margin-bottom: 14px;
  padding: 6px 2px 0;
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #111827;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: var(--shadow-gold);
  margin-bottom: 0;
}

.brand-kicker-link {
  text-decoration: none;
}

.brand-head-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.brand-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 198, 92, 0.20);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
  flex: 0 0 auto;
}

.brand-back-btn:hover,
.brand-back-btn:active {
  transform: translateX(-2px);
  background: rgba(15, 23, 42, 0.9);
}

.brand-title {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  font-size: 13px;
  opacity: 0.82;
  margin-top: 6px;
}

.level-box {
  min-width: 84px;
  padding: 10px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(26, 41, 66, 0.96), rgba(11, 23, 40, 0.96));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.level-box strong {
  font-size: 24px;
  color: var(--gold-1);
}

.hero-panel {
  position: relative;
  margin-bottom: 18px;
}

.balance-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 12px 14px 12px;
  margin-bottom: 10px;
  background:
    linear-gradient(180deg, rgba(20, 33, 56, 0.96), rgba(8, 17, 31, 0.96));
  border: 1px solid rgba(255, 198, 92, 0.14);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.balance-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14), transparent 68%);
  pointer-events: none;
}

.balance-hero-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.balance-hero-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff8e7;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.14);
}

.balance-hero-meta {
  margin-top: 8px;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 198, 92, 0.10);
  border: 1px solid rgba(255, 198, 92, 0.16);
  color: #ffe1a0;
  font-size: 12px;
  font-weight: 700;
}

.stats-grid-premium {
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  border-radius: 18px;
  padding: 14px 14px;
  background:
    linear-gradient(180deg, rgba(19, 32, 53, 0.88), rgba(10, 20, 36, 0.88));
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow-soft);
}

.stat-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 18px;
  line-height: 1.15;
  color: #fff;
}

.stat-card-energy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.energy-row {
  margin-bottom: 10px;
  font-size: 13px;
}

.energy-bar {
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.24);
}

.energy-fill {
  background: linear-gradient(90deg, #22c55e, #84cc16, #facc15);
  transition: width 0.3s ease;
}

/* ---------- hamster / tap area ---------- */

.premium-hamster-section {
  margin-bottom: 16px;
}

.hamster-stage {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamster-glow {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.24) 0%, rgba(245, 158, 11, 0.06) 42%, transparent 72%);
  filter: blur(8px);
  animation: heroGlowPulse 2.8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.82; }
  50% { transform: scale(1.06); opacity: 1; }
}

.hamster-wrap {
  width: 330px;
  height: 330px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 216, 125, 0.16), rgba(255,255,255,0) 55%);
}

.hamster {
  width: 300px;
  height: 300px;
  filter:
    drop-shadow(0 16px 36px rgba(0, 0, 0, 0.30))
    drop-shadow(0 0 24px rgba(245, 158, 11, 0.10));
}

.tap-cta-wrap {
  margin-top: -6px;
  text-align: center;
}

.tap-main-btn {
  width: 220px;
  min-height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #111827;
  box-shadow:
    0 14px 30px rgba(245, 158, 11, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.tap-main-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.tap-main-btn:active {
  transform: scale(0.98);
}

/* ---------- quick actions ---------- */

.premium-actions {
  gap: 10px;
  margin-bottom: 12px;
}

.quick-action-btn {
  min-height: 52px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(25, 41, 68, 0.94), rgba(11, 22, 38, 0.94));
  border: 1px solid rgba(255,255,255,0.06);
  color: #eef2ff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.quick-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 198, 92, 0.18);
}

.quick-action-btn:active {
  transform: scale(0.985);
}

/* ---------- tabs / bottom nav feel ---------- */

.premium-tabs-shell {
  padding: 12px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(15, 26, 45, 0.92), rgba(8, 17, 31, 0.92));
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 18px 50px rgba(0,0,0,0.30);
}

.section-tabs {
  position: sticky;
  bottom: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(7, 15, 28, 0.88);
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.section-tab-btn {
  min-height: 58px;
  border-radius: 16px;
  padding: 12px 8px;
  background: transparent;
  color: rgba(255,255,255,0.74);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.section-tab-btn:hover {
  transform: translateY(-1px);
}

.section-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #111827;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
}

.section-tab-content {
  min-height: 320px;
}

.section-pane {
  animation: paneFadeIn 0.18s ease;
}

@keyframes paneFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- inner panels / lists ---------- */

.panel-header h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.list {
  gap: 12px;
}

.list-item,
.wallet-card,
.subpanel {
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(22, 35, 58, 0.92), rgba(11, 22, 38, 0.92));
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow-soft);
}

.item-title {
  font-size: 16px;
  font-weight: 800;
}

.item-sub {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.45;
}

.buy-btn,
.claim-btn,
.join-btn {
  border-radius: 14px;
}

.menu-btn,
.primary-btn,
.buy-btn,
.claim-btn,
.join-btn,
.tab-btn,
.section-tab-btn {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- leaderboard ---------- */

.leaderboard-tabs {
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  min-height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.84);
  transition: transform 0.15s ease, background 0.15s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #111827;
}

.tab-btn:hover {
  transform: translateY(-1px);
}

/* ---------- referral ---------- */

.premium-referral-panel {
  margin-top: 16px;
  margin-bottom: 10px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 28, 48, 0.96), rgba(7, 17, 31, 0.96));
  border: 1px solid rgba(255, 198, 92, 0.10);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.referral-copy {
  margin: -2px 0 12px;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 14px;
}

.ref-box {
  gap: 10px;
}

.ref-box input {
  border-radius: 14px;
  background: rgba(5, 10, 20, 0.72);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 48px;
}

.ref-box .menu-btn {
  min-width: 112px;
}

.invite-count {
  margin-top: 8px;
  font-size: 15px;
  color: #fff2cf;
}

/* ---------- toast ---------- */

.toast {
  bottom: 24px;
  border-radius: 16px;
  background: rgba(7, 15, 28, 0.94);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}

/* ---------- responsive ---------- */

@media (max-width: 480px) {
  .app {
    padding: 12px 12px 120px;
  }

  .brand-title {
    font-size: 24px;
  }

  .balance-hero-value {
    font-size: 32px;
  }

  .hamster-stage {
    min-height: 316px;
  }

  .hamster-wrap {
    width: 290px;
    height: 290px;
  }

  .hamster {
    width: 262px;
    height: 262px;
  }

  .tap-main-btn {
    width: 200px;
    min-height: 54px;
  }

  .section-tabs {
    gap: 6px;
    padding: 6px;
  }

  .section-tab-btn {
  min-height: 54px;
  font-size: 12px;
  padding: 8px 6px;
}

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .ref-box {
    flex-direction: column;
  }

  .ref-box .menu-btn {
    width: 100%;
  }
}

/* ===== compact top game layout ===== */

.compact-topbar {
  align-items: flex-start;
  margin-bottom: 10px;
}

.compact-level-box {
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 18px;
}

.compact-level-box strong {
  font-size: 20px;
}

.hero-panel-compact {
  margin-bottom: 18px;
}

.top-stats-compact {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.8fr 0.95fr;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 31, 54, 0.94), rgba(8, 18, 34, 0.94));
  border: 1px solid rgba(255, 198, 92, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mini-stat-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -16px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.10), transparent 68%);
  pointer-events: none;
}

.balance-mini-card {
  padding-bottom: 12px;
}

.mini-stat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(226, 232, 240, 0.72);
}

.mini-stat-value {
  display: block;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.balance-mini-value {
  font-size: 24px;
  color: #fff3d2;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.12);
}

.balance-mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 198, 92, 0.10);
  border: 1px solid rgba(255, 198, 92, 0.16);
  color: #ffe1a0;
  font-size: 11px;
  font-weight: 700;
}

.energy-strip-card {
  margin-bottom: 12px;
  padding: 12px 14px 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 29, 50, 0.96), rgba(8, 18, 34, 0.96));
  border: 1px solid rgba(255, 198, 92, 0.10);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.energy-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.energy-strip-head span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.76);
  font-weight: 800;
}

.energy-strip-head strong {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.energy-bar-large {
  height: 14px;
  border-radius: 999px;
}

.premium-actions-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.premium-actions-compact .quick-action-btn {
  min-height: 50px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
}

.premium-hamster-section-large {
  margin-bottom: 0;
}

.hamster-stage-large {
  min-height: 440px;
  position: relative;
}

.hamster-frame {
  position: absolute;
  inset: 10px 20px 28px;
  border-radius: 36px;
  border: 1px solid rgba(108, 159, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(30, 51, 97, 0.10), rgba(10, 19, 36, 0.04));
  box-shadow:
    inset 0 0 30px rgba(99, 102, 241, 0.08),
    0 0 40px rgba(99, 102, 241, 0.05);
  pointer-events: none;
}

.hamster-wrap-large {
  width: 490px;
  height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 216, 125, 0.16), rgba(255,255,255,0) 56%);
}

.hamster-large {
  width: 345px;
  height: 345px;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.30))
    drop-shadow(0 0 24px rgba(245, 158, 11, 0.12));
}

.tap-cta-wrap-large {
  margin-top: -2px;
}

.tap-main-btn-large {
  width: 255px;
  min-height: 58px;
  border-radius: 19px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

@media (max-width: 540px) {
  .top-stats-compact {
    grid-template-columns: 1fr 1fr;
  }

  .balance-mini-card {
    grid-column: 1 / -1;
  }

  .mini-stat-card {
    min-height: 74px;
  }

  .balance-mini-value {
    font-size: 22px;
  }

  .mini-stat-value {
    font-size: 17px;
  }

  .premium-actions-compact {
    grid-template-columns: 1fr 1fr;
  }

  .premium-actions-compact .quick-action-btn:last-child {
    grid-column: 1 / -1;
  }

  .hamster-stage-large {
    min-height: 400px;
  }

  .hamster-frame {
    inset: 8px 10px 24px;
    border-radius: 28px;
  }

  .hamster-wrap-large {
    width: 330px;
    height: 330px;
  }

  .hamster-large {
    width: 295px;
    height: 295px;
  }

  .tap-main-btn-large {
    width: 230px;
    min-height: 56px;
  }
}

@media (max-width: 400px) {
  .compact-level-box {
    min-width: 72px;
    padding: 8px 10px;
  }

  .compact-level-box strong {
    font-size: 18px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .energy-strip-head strong {
    font-size: 16px;
  }

  .hamster-stage-large {
    min-height: 372px;
  }

  .hamster-wrap-large {
    width: 300px;
    height: 300px;
  }

  .hamster-large {
    width: 268px;
    height: 268px;
  }
}/* ===== exact top layout fixed ===== */

.custom-topbar {
  margin-bottom: 10px;
}

.hero-panel-custom {
  margin-bottom: 18px;
}

.top-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.78fr;
  grid-template-areas:
    "balance balance level"
    "earned tap level"
    "income . ."
    "energy energy energy";
  gap: 10px;
  margin-bottom: 18px;
}

.top-card {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 31, 54, 0.95), rgba(8, 18, 34, 0.95));
  border: 1px solid rgba(255, 198, 92, 0.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.top-card::before {
  content: "";
  position: absolute;
  top: -22px;
  right: -18px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.10), transparent 68%);
  pointer-events: none;
}

.top-card-balance { grid-area: balance; min-height: 74px; }
.top-card-level {
  grid-area: level;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.top-card-earned { grid-area: earned; min-height: 68px; }
.top-card-tap { grid-area: tap; min-height: 68px; }
.top-card-income { grid-area: income; min-height: 58px; }

.top-card-energy {
  grid-area: energy;
  padding: 10px 10px 10px;
  border-radius: 20px;
  min-height: 66px;
}

.top-card-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(226, 232, 240, 0.72);
}

.top-card-value {
  display: block;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.top-card-balance-value {
  font-size: 18px;
  color: #fff3d2;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.12);
}

.top-card-level .top-card-label {
  margin-bottom: 10px;
  text-align: center;
}

.top-card-level .top-card-value {
  font-size: 18px;
  color: #ffcc69;
}

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

.energy-strip-head span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.76);
  font-weight: 800;
}

.energy-strip-head strong {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.energy-bar-large {
  height: 10px;
  border-radius: 999px;
}

.premium-hamster-section-large {
  margin-bottom: 18px;
}

.hamster-stage-large {
  min-height: 470px;
  position: relative;
}

.hamster-frame {
  position: absolute;
  inset: 6px 24px 28px;
  border-radius: 38px;
  border: 1px solid rgba(108, 159, 255, 0.16);
  background: linear-gradient(180deg, rgba(30, 51, 97, 0.08), rgba(10, 19, 36, 0.03));
  box-shadow:
    inset 0 0 30px rgba(99, 102, 241, 0.08),
    0 0 40px rgba(99, 102, 241, 0.05);
  pointer-events: none;
}

.hamster-wrap-large {
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 36%, rgba(255, 216, 125, 0.16), rgba(255,255,255,0) 56%);
}

.hamster-large {
  width: 350px;
  height: 350px;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.30))
    drop-shadow(0 0 24px rgba(245, 158, 11, 0.12));
}

.tap-cta-wrap-large {
  margin-top: -2px;
  text-align: center;
  margin-bottom: 14px;
}

.tap-main-btn-large {
  width: 255px;
  min-height: 58px;
  border-radius: 19px;
  font-size: 16px;
  font-weight: 900;
}

.premium-actions-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.actions-full {
  grid-column: 1 / -1;
}

.premium-actions-compact .quick-action-btn {
  min-height: 52px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 540px) {
  .top-layout-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "balance level"
      "earned tap"
      "income income"
      "energy energy";
  }

  .top-card-level {
    min-height: 74px;
    align-items: flex-start;
    justify-content: center;
  }

  .top-card-level .top-card-label {
    text-align: left;
    margin-bottom: 6px;
  }

  .top-card-level .top-card-value {
    font-size: 24px;
  }

  .hamster-stage-large {
    min-height: 410px;
  }

  .hamster-frame {
    inset: 8px 10px 24px;
    border-radius: 28px;
  }

  .hamster-wrap-large {
    width: 330px;
    height: 330px;
  }

  .hamster-large {
    width: 295px;
    height: 295px;
  }
}

.wallet-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.wallet-input-label {
  display: block;
  font-size: 13px;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 6px;
}
.wallet-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  background: #0f172a;
  color: #fff;
}
.wallet-input::placeholder { color: rgba(255,255,255,0.35); }
.wallet-action-btn { width: 100%; }
.wallet-balance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wallet-balance-box { border-radius: 14px; padding: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.wallet-balance-label { display: block; font-size: 12px; color: rgba(248,250,252,0.72); margin-bottom: 6px; }
.wallet-balance-box strong { font-size: 18px; }
.wallet-preview-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); }
.wallet-note { font-size: 12px; color: #fbbf24; margin-bottom: 12px; }
.wallet-history-list { display: grid; gap: 10px; }
.wallet-history-item { border-radius: 12px; padding: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05); }
.wallet-history-main { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.wallet-history-meta { font-size: 12px; color: rgba(248,250,252,0.66); }
@media (max-width: 640px) { .wallet-balance-grid { grid-template-columns: 1fr; } }

/* ---------- Full Wallet Page ---------- */
.wallet-page-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow-y: auto;
  padding: 18px 14px 28px;
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.18), transparent 34%),
    #0f172a;
}

.wallet-page-screen.active {
  display: block;
}

.wallet-page-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 16px;
  max-width: 720px;
}

.wallet-page-topbar h2 {
  margin: 0;
  font-size: 24px;
}

.wallet-page-topbar p {
  margin: 4px 0 0;
  color: rgba(248, 250, 252, 0.68);
  font-size: 13px;
}

.wallet-back-btn {
  min-width: 82px;
  border-radius: 14px;
  padding: 10px 12px;
}

.wallet-page-screen .wallet-card {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.wallet-connect-card {
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.wallet-connected-box {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-connected-box span,
.wallet-connected-box small {
  color: rgba(248, 250, 252, 0.68);
  font-size: 12px;
}

.wallet-connected-box strong {
  font-size: 16px;
  word-break: break-all;
}

.wallet-disconnect-btn {
  display: none;
  margin-top: 10px;
}

body.wallet-page-open {
  overflow: hidden;
}
/* ===== Slot buttons new design override ===== */

.slot-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.slot-action-btn {
  border: 0;
  border-radius: 18px;
  min-height: 68px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.slot-action-btn:hover,
.slot-action-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.slot-action-btn:active {
  transform: translateY(1px) scale(0.98);
}

.slot-action-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(0.1);
}

.slot-btn-icon {
  font-size: 22px;
  line-height: 1;
}

.slot-btn-text {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
}

.slot-free-btn {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #2b1700;
}

.slot-spin-btn {
  background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
  background-image: none !important;
  background-repeat: initial !important;
  background-position: initial !important;
  background-size: initial !important;
  color: #ffffff;
}

.slot-back-btn {
  background: linear-gradient(135deg, #475569, #1e293b);
  color: #ffffff;
}

.slot-spin-btn::before,
.slot-spin-btn::after {
  content: none !important;
}

@media (max-width: 480px) {
  .slot-actions {
    gap: 8px;
  }

  .slot-action-btn {
    min-height: 62px;
    padding: 8px 8px;
    border-radius: 16px;
  }

  .slot-btn-icon {
    font-size: 20px;
  }

  .slot-btn-text {
    font-size: 12px;
  }
}


.fcgt-tap-button {
  position: relative;
  width: min(86vw, 360px);
  height: 78px;
  margin: 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 3px solid #ffef8a;
  border-radius: 14px;

  background:
    linear-gradient(180deg, #fff27a 0%, #ffc928 35%, #f59b00 72%, #b85f00 100%);
  
  box-shadow:
    0 0 0 3px rgba(90, 45, 0, 0.95),
    0 0 0 6px rgba(255, 204, 45, 0.35),
    inset 0 4px 0 rgba(255, 255, 255, 0.6),
    inset 0 -7px 0 rgba(121, 55, 0, 0.55),
    0 12px 0 #6b3500,
    0 20px 35px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(255, 197, 35, 0.45);

  color: #111827;
  cursor: pointer;
  overflow: hidden;
  user-select: none;

  transform: translateY(0);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.15s ease;
}

.fcgt-tap-button::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.fcgt-tap-button::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-120%);
  animation: fcgtTapButtonGlare 2.6s infinite;
  pointer-events: none;
}

.fcgt-tap-button__text {
  position: relative;
  z-index: 2;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;

  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.5),
    0 -2px 0 rgba(94, 45, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.35);
}

.fcgt-tap-button__shine {
  position: absolute;
  top: 6px;
  left: 10px;
  right: 10px;
  height: 32%;
  border-radius: 10px 10px 18px 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.08)
  );
  pointer-events: none;
}

.fcgt-tap-button:hover {
  filter: brightness(1.06) saturate(1.08);
}

.fcgt-tap-button:active {
  transform: translateY(8px);
  box-shadow:
    0 0 0 3px rgba(90, 45, 0, 0.95),
    0 0 0 6px rgba(255, 204, 45, 0.25),
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 0 rgba(121, 55, 0, 0.5),
    0 4px 0 #6b3500,
    0 10px 22px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 197, 35, 0.35);
}

@keyframes fcgtTapButtonGlare {
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }
  45% {
    transform: translateX(130%) skewX(-18deg);
  }
  100% {
    transform: translateX(130%) skewX(-18deg);
  }
}

/* ===== Extra Crown Win Popup ===== */

.slot-win-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 193, 59, 0.20), transparent 34%),
    rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.slot-win-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.slot-win-popup__card {
  position: relative;
  width: min(92vw, 360px);
  overflow: hidden;
  border-radius: 28px;
  padding: 30px 22px 26px;
  text-align: center;
  border: 1px solid rgba(255, 214, 96, 0.46);
  background:
    linear-gradient(145deg, rgba(35, 22, 8, 0.96), rgba(8, 8, 14, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(255, 207, 76, 0.30), transparent 42%);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.62),
    0 0 38px rgba(255, 186, 47, 0.28),
    inset 0 0 22px rgba(255, 214, 96, 0.08);
  animation: slotWinPop 0.42s cubic-bezier(.18, .95, .28, 1.2);
}

.slot-win-popup__shine {
  position: absolute;
  top: -80%;
  left: -40%;
  width: 70%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.20),
    transparent
  );
  transform: rotate(24deg);
  animation: slotWinShine 1.7s ease-in-out infinite;
}

.slot-win-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffe8a3;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}

.slot-win-popup__icon {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 40px;
  background:
    radial-gradient(circle, rgba(255, 226, 119, 0.35), rgba(255, 143, 31, 0.11));
  box-shadow:
    0 0 22px rgba(255, 208, 80, 0.55),
    inset 0 0 16px rgba(255, 255, 255, 0.10);
  animation: slotWinIconPulse 0.9s ease-in-out infinite alternate;
}

.slot-win-popup__title {
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: #fff2b6;
  text-shadow:
    0 0 12px rgba(255, 208, 80, 0.58),
    0 2px 0 rgba(0, 0, 0, 0.30);
}

.slot-win-popup__amount {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: clamp(38px, 10vw, 58px);
  line-height: 1;
  font-weight: 1000;
  color: #ffd54f;
  text-shadow:
    0 0 14px rgba(255, 213, 79, 0.70),
    0 0 34px rgba(255, 145, 0, 0.42),
    0 4px 0 rgba(0, 0, 0, 0.30);
}

.slot-win-popup__subtitle {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 240, 191, 0.84);
}

.slot-win-popup.big-win .slot-win-popup__card {
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.62),
    0 0 44px rgba(255, 163, 26, 0.36),
    inset 0 0 24px rgba(255, 214, 96, 0.10);
}

.slot-win-popup.jackpot .slot-win-popup__card {
  border-color: rgba(255, 233, 133, 0.78);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.68),
    0 0 54px rgba(255, 208, 64, 0.52),
    0 0 90px rgba(255, 111, 0, 0.25),
    inset 0 0 28px rgba(255, 233, 133, 0.14);
  animation:
    slotWinPop 0.42s cubic-bezier(.18, .95, .28, 1.2),
    slotJackpotGlow 0.85s ease-in-out infinite alternate;
}

.slot-win-popup.jackpot .slot-win-popup__title {
  font-size: 28px;
  color: #fff7c8;
}

.slot-win-popup.jackpot .slot-win-popup__amount {
  color: #ffeb7a;
}

@keyframes slotWinPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.78);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slotWinShine {
  0% {
    left: -70%;
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

@keyframes slotWinIconPulse {
  from {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.40));
  }
  to {
    transform: scale(1.08);
    filter: drop-shadow(0 0 18px rgba(255, 213, 79, 0.70));
  }
}

@keyframes slotJackpotGlow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.025);
  }
}

@media (max-width: 420px) {
  .slot-win-popup__card {
    width: min(94vw, 330px);
    padding: 26px 18px 22px;
    border-radius: 24px;
  }

  .slot-win-popup__icon {
    width: 64px;
    height: 64px;
    font-size: 34px;
  }

  .slot-win-popup__title {
    font-size: 21px;
  }
}


/* ===== Extra Crown Jackpot FX ===== */

.slot-win-popup.jackpot {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 224, 102, 0.34), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(255, 126, 0, 0.18), transparent 46%),
    rgba(0, 0, 0, 0.70);
}

.slot-win-popup.jackpot::before,
.slot-win-popup.jackpot::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(255, 215, 84, 0.32);
  box-shadow:
    0 0 34px rgba(255, 199, 56, 0.35),
    inset 0 0 34px rgba(255, 199, 56, 0.18);
  animation: slotJackpotRingSpin 3.2s linear infinite;
}

.slot-win-popup.jackpot::after {
  width: 390px;
  height: 390px;
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation-duration: 2.2s;
  animation-direction: reverse;
}

.slot-win-popup.jackpot .slot-win-popup__card {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 239, 139, 0.34), transparent 38%),
    linear-gradient(145deg, rgba(58, 31, 5, 0.98), rgba(8, 6, 12, 0.99));
  border: 1px solid rgba(255, 233, 133, 0.95);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.74),
    0 0 42px rgba(255, 211, 76, 0.62),
    0 0 95px rgba(255, 126, 0, 0.38),
    inset 0 0 32px rgba(255, 233, 133, 0.18);
}

.slot-win-popup.jackpot .slot-win-popup__icon {
  font-size: 46px;
  background:
    radial-gradient(circle, rgba(255, 245, 170, 0.52), rgba(255, 155, 28, 0.16));
  box-shadow:
    0 0 28px rgba(255, 232, 116, 0.78),
    0 0 62px rgba(255, 147, 0, 0.42),
    inset 0 0 18px rgba(255, 255, 255, 0.18);
}

.slot-win-popup.jackpot .slot-win-popup__title {
  font-size: clamp(30px, 8vw, 44px);
  letter-spacing: 2px;
  color: #fff6bd;
  text-shadow:
    0 0 12px rgba(255, 238, 150, 0.92),
    0 0 32px rgba(255, 177, 33, 0.72),
    0 4px 0 rgba(0, 0, 0, 0.42);
  animation: slotJackpotTextPulse 0.62s ease-in-out infinite alternate;
}

.slot-win-popup.jackpot .slot-win-popup__amount {
  color: #ffec80;
  font-size: clamp(48px, 13vw, 74px);
  text-shadow:
    0 0 18px rgba(255, 236, 128, 0.95),
    0 0 42px rgba(255, 161, 0, 0.72),
    0 5px 0 rgba(0, 0, 0, 0.42);
}

.slot-win-popup.jackpot .slot-win-popup__subtitle {
  color: rgba(255, 246, 200, 0.95);
  font-size: 14px;
}

.slot-jackpot-spark {
  position: fixed;
  z-index: 10000;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, #fff8c9 0%, #ffd54f 42%, #ff8f00 78%, transparent 80%);
  box-shadow:
    0 0 10px rgba(255, 231, 117, 0.95),
    0 0 20px rgba(255, 143, 0, 0.62);
  animation: slotJackpotSparkFly 1.15s ease-out forwards;
}

@keyframes slotJackpotSparkFly {
  0% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(0) scale(0.2);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(var(--distance)) scale(1.05);
  }
}

@keyframes slotJackpotRingSpin {
  from {
    transform: rotate(0deg) scale(0.92);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes slotJackpotTextPulse {
  from {
    transform: scale(1);
    filter: brightness(1);
  }
  to {
    transform: scale(1.055);
    filter: brightness(1.22);
  }
}

@media (max-width: 420px) {
  .slot-win-popup.jackpot::before {
    width: 390px;
    height: 390px;
  }

  .slot-win-popup.jackpot::after {
    width: 290px;
    height: 290px;
  }
}


/* ===== Slot Forced Ad Modal ===== */

.slot-forced-ad-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 193, 59, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  transition: opacity 0.22s ease;
}

.slot-forced-ad-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.slot-forced-ad-card {
  position: relative;
  width: min(92vw, 360px);
  overflow: hidden;
  border-radius: 28px;
  padding: 28px 22px 24px;
  text-align: center;
  color: #fff4c8;
  border: 1px solid rgba(255, 214, 96, 0.44);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 211, 88, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(34, 22, 10, 0.98), rgba(8, 8, 14, 0.98));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.70),
    0 0 42px rgba(255, 184, 44, 0.22),
    inset 0 0 22px rgba(255, 214, 96, 0.08);
  transform: translateY(14px) scale(0.94);
  animation: slotForcedAdPop 0.35s ease forwards;
}

.slot-forced-ad-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #1b1204;
  background: linear-gradient(135deg, #ffe08a, #ffb02e);
  box-shadow: 0 0 18px rgba(255, 194, 66, 0.36);
}

.slot-forced-ad-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 38px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 24px rgba(255, 208, 80, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.slot-forced-ad-title {
  font-size: 24px;
  font-weight: 1000;
  color: #ffe9a6;
  text-shadow: 0 0 16px rgba(255, 208, 80, 0.44);
}

.slot-forced-ad-text {
  margin: 10px auto 18px;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 244, 206, 0.78);
}

.slot-forced-ad-loader {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 8px 0 16px;
}

.slot-forced-ad-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd45a;
  box-shadow: 0 0 12px rgba(255, 212, 90, 0.6);
  animation: slotForcedAdDot 0.8s ease-in-out infinite alternate;
}

.slot-forced-ad-loader span:nth-child(2) {
  animation-delay: 0.16s;
}

.slot-forced-ad-loader span:nth-child(3) {
  animation-delay: 0.32s;
}

.slot-forced-ad-countdown {
  min-height: 22px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 237, 178, 0.88);
}

.slot-forced-ad-close {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 1000;
  color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

.slot-forced-ad-close.ready {
  color: #1b1204;
  cursor: pointer;
  background: linear-gradient(135deg, #ffe08a, #ffad26);
  box-shadow:
    0 0 22px rgba(255, 190, 52, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

@keyframes slotForcedAdPop {
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes slotForcedAdDot {
  from {
    transform: translateY(0);
    opacity: 0.45;
  }
  to {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@media (max-width: 420px) {
  .slot-forced-ad-card {
    width: min(94vw, 330px);
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .slot-forced-ad-title {
    font-size: 22px;
  }
}

/* Promo code card inside Tasks */
.promocode-card {
  border: 1px solid rgba(255, 215, 128, 0.28);
  background: linear-gradient(135deg, rgba(255, 203, 92, 0.10), rgba(255,255,255,0.035));
}

.promocode-form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.promocode-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
}

.promocode-input:focus {
  border-color: rgba(255, 215, 128, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 215, 128, 0.12);
}

.promocode-claim-btn {
  min-width: 96px;
}

.promocode-message {
  margin-top: 8px;
}
