/* Mina Misteriosa — RedPacket style_1 */
.rp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: stretch;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
}

.rp-modal.is-open {
  display: flex;
}

/* Intro: só o popup sobre a plataforma */
.rp-modal.is-intro {
  background: rgba(4, 3, 14, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.rp-modal.is-intro .rp-page {
  background: transparent;
  padding-bottom: 0;
  overflow: hidden;
  max-height: 100%;
  pointer-events: none;
  scrollbar-width: none;
}
.rp-modal.is-intro .rp-page::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.rp-modal.is-intro .rp-header,
.rp-modal.is-intro .rp-top,
.rp-modal.is-intro .rp-content,
.rp-modal.is-intro .rp-footer {
  display: none !important;
}
.rp-modal.is-intro .rp-packet-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
.rp-modal.is-intro .rp-packet-overlay.is-show {
  display: block;
}
.rp-modal.is-intro .rp-packet-model {
  pointer-events: auto;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.55);
}
.rp-modal.is-intro .rp-game {
  display: none !important;
}

.rp-page {
  width: min(100%, 486px);
  margin: 0 auto;
  min-height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #090f1f;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  position: relative;
  padding-bottom: 7rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 150, 220, 0.45) transparent;
}
.rp-page::-webkit-scrollbar {
  width: 4px;
}
.rp-page::-webkit-scrollbar-track {
  background: transparent;
}
.rp-page::-webkit-scrollbar-thumb {
  background: rgba(120, 150, 220, 0.4);
  border-radius: 999px;
}
.rp-page::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 185, 255, 0.55);
}

.rp-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 3.125rem;
  padding: 0 0.5rem;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 15, 31, 0.92);
  backdrop-filter: blur(8px);
}

.rp-back {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #c8c4dc;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.rp-header h2 {
  flex: 1;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
  color: #d7d3ea;
  margin-right: 2.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-top {
  position: relative;
  width: 100%;
  height: 23.75rem;
  background: url("/assets/casino/redpacket/mineral_style1_top-bg.png") center / 100% 100% no-repeat;
}

.rp-star {
  position: absolute;
  top: 4.25rem;
  right: 1.0625rem;
  width: 8.875rem;
  height: 8.875rem;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: rpStarPulse 1.5s ease-in-out infinite;
}

@keyframes rpStarPulse {
  0%, 100% { transform: scale(2); }
  50% { transform: scale(1); }
}

.rp-top-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0.8125rem 0 0 1.0625rem;
}

.rp-activity-name {
  margin-bottom: 1.1875rem;
  font-size: clamp(1.85rem, 8vw, 2.5rem);
  line-height: 1.05;
  font-weight: 900;
  font-style: normal;
  background: linear-gradient(90deg, #eca326, #9e2326 51.24%, #1659e6 98.54%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 0.5px #eed3a5) drop-shadow(0 0 0.5px #eed3a5);
  max-width: 14rem;
}

.rp-date-tips {
  display: flex;
  margin-bottom: 0.625rem;
}

.rp-date-item {
  position: relative;
  width: 2.25rem;
  height: 2.75rem;
  margin-right: 0.625rem;
  border-radius: 0.3125rem;
  background: linear-gradient(#34ed7e, #26507c);
  overflow: hidden;
}

.rp-date-content {
  width: 100%;
  height: 100%;
  padding: 0.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  color: #fff;
}

.rp-date-value {
  font-size: 0.875rem;
  line-height: 0.875rem;
  font-weight: 700;
}

.rp-date-name {
  font-size: 0.5rem;
  letter-spacing: 0.02em;
}

.rp-date-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0.375rem;
  height: 0.125rem;
  background: #faac47;
  transform: translateX(-50%);
}

.rp-countdown-tips {
  display: flex;
  align-items: center;
  margin-bottom: 2.215rem;
  color: #23db8c;
  font-size: 0.75rem;
}

.rp-countdown-tips .dot {
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: #23db8c;
  box-shadow: 0 0 6px #23db8c;
}

.rp-reward {
  width: 11.3125rem;
  height: 4.5rem;
  padding: 0.75rem 0;
  text-align: center;
  border-radius: 0.875rem;
  border: 0.125rem solid #bbbdff;
  background: linear-gradient(180deg, #5582c4 0%, #274b80 100%);
  box-shadow: 0 0 12.9px #4a9fff, inset 0 5px 11.5px rgba(255, 255, 255, 0.38);
}

.rp-reward-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.rp-reward .coin {
  width: 1.1875rem;
  height: 1.1875rem;
  object-fit: contain;
}

.rp-reward-cy,
.rp-reward-money {
  color: #f9d045;
  text-shadow: 0 0 9px rgba(252, 208, 88, 0.43);
  font-size: 1.125rem;
  font-weight: 600;
}

.rp-reward-cy {
  margin: 0 0.375rem;
}

.rp-reward-tips {
  margin-top: 0.15rem;
  color: #fff;
  font-size: 0.75rem;
}

.rp-content {
  position: relative;
  z-index: 2;
  transform: translateY(-4.375rem);
  padding: 0 0.9375rem 1.3125rem;
}

.rp-content-box {
  border-radius: 0.875rem;
  padding: 1.875rem 0.5625rem 1.1875rem 0.9375rem;
  background: linear-gradient(#202f51 0.33%, #111542 25.46%);
}

.rp-times {
  display: flex;
  flex-wrap: wrap;
}

.rp-time-item {
  color: #1acd4c;
  min-width: calc(33.333% - 0.34rem);
  flex: 0 0 calc(33.333% - 0.34rem);
  padding: 0.5625rem 0;
  margin: 0 0.5rem 0.75rem 0;
  text-align: center;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #2a337a;
  background: rgba(20, 23, 60, 0.5);
  box-sizing: border-box;
}

.rp-time-item:nth-child(3n) {
  margin-right: 0;
}

.rp-time-item.is-over {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.2);
  border-color: transparent;
}

.rp-time-item.is-active {
  color: #1acd4c;
  border-color: #5764fc;
  box-shadow: 0 0 0 1px rgba(87, 100, 252, 0.35);
}

.rp-rules {
  margin-top: 0.9375rem;
}

.rp-rules-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9375rem;
}

.rp-rules-header img {
  width: 0.8547rem;
  height: 0.5516rem;
}

.rp-rules-header img.flip {
  transform: scaleX(-1);
}

.rp-rules-header span {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6875rem;
  margin: 0 0.375rem;
}

.rp-rules-body::before {
  content: "";
  display: block;
  width: 100%;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent 0%, #5764fc 50%, transparent 100%);
  margin-bottom: 0.9375rem;
}

.rp-rules-body {
  font-size: 0.75rem;
  line-height: 1.6875rem;
  color: #95a9d3;
  white-space: pre-line;
}

.rp-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 486px);
  padding: 0 0.65rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  pointer-events: none;
}

.rp-footer-box {
  min-height: 5.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(120, 150, 220, 0.45);
  background: linear-gradient(180deg, #33466e 0%, #243352 100%);
  box-shadow: 0 8px 24px rgba(21, 23, 138, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.8rem;
  pointer-events: auto;
}

.rp-footer-btn {
  width: 100%;
  min-height: 3.55rem;
  border: 0;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(96deg, #f0d23a 0%, #e8a020 42%, #c24a4a 100%);
  box-shadow:
    0 0.45rem 1.1rem rgba(200, 120, 40, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.rp-footer-btn:active {
  transform: scale(0.985);
}
.rp-btn-ico {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.rp-footer-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Packet intro modal */
.rp-packet-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  display: none;
}

.rp-packet-overlay.is-show {
  display: block;
}

.rp-packet-model {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(20rem, 92%);
  background: #1b0e0f;
  border-radius: 0.625rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 61;
}

.rp-packet-hero {
  width: 100%;
  height: 14.5rem;
  object-fit: cover;
  display: block;
}

.rp-packet-title {
  position: absolute;
  top: 0.3125rem;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 2px 2px #7a5f1b;
  z-index: 2;
}

.rp-packet-close {
  position: absolute;
  top: 0.3125rem;
  right: 0.25rem;
  width: 1.875rem;
  height: 1.875rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.rp-mining-btn {
  width: 17.5rem;
  max-width: 92%;
  min-height: 2.75rem;
  margin-top: -1.25rem;
  border: 0;
  border-radius: 0.55rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(180deg, #6845da, #9b5cff);
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 0.4rem 1rem rgba(104, 69, 218, 0.4);
}

.rp-mining-btn.is-disabled {
  background: #4a4a4a;
  color: #a1a1a1;
  pointer-events: none;
}

.rp-packet-promo {
  width: 17.5rem;
  max-width: 92%;
  margin: 0.625rem 0;
  color: #fba531;
  font-size: 0.875rem;
  line-height: 1rem;
  font-weight: 700;
  text-align: left;
}

.rp-mine-time {
  width: 17.5rem;
  max-width: 92%;
  height: 3.1875rem;
  margin-bottom: 0.625rem;
  padding: 0.0625rem 0;
  border: 1px solid #ff9141;
  border-radius: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  overflow-y: auto;
  font-size: 0.75rem;
  color: #fba531;
  background: rgba(0, 0, 0, 0.25);
}

.rp-mine-time span {
  width: 33.333%;
  height: 1.0625rem;
  text-align: center;
  color: #5d4547;
}

.rp-mine-time span.is-live {
  color: #fba531;
}

.rp-packet-notes {
  width: 17.5rem;
  max-width: 92%;
  margin-bottom: 1.2rem;
  color: #5d4547;
  font-size: 0.625rem;
  text-align: left;
  line-height: 1.35;
}

.rp-packet-bottom {
  width: 100%;
  height: 2.5rem;
  object-fit: cover;
  display: block;
  margin-top: auto;
}


/* Reward claim — premium withdraw gate */
.rp-claim {
  position: absolute;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.rp-claim.is-show {
  opacity: 1;
  pointer-events: auto;
}
.rp-claim-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(40, 22, 70, 0.35), transparent 55%),
    rgba(4, 3, 14, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.rp-claim-panel {
  position: relative;
  width: min(20.5rem, 92%);
  padding: 1.45rem 1.2rem 1.15rem;
  border-radius: 1.25rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 210, 110, 0.28), transparent 48%),
    linear-gradient(168deg, #2d2258 0%, #14102c 48%, #0a0818 100%);
  border: 1px solid rgba(255, 214, 130, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1.6rem 3.4rem rgba(0, 0, 0, 0.65),
    0 0 48px rgba(255, 176, 40, 0.16);
  transform: translateY(12px) scale(0.94);
  transition: transform 0.42s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.rp-claim.is-show .rp-claim-panel {
  transform: translateY(0) scale(1);
}
.rp-claim-burst {
  position: absolute;
  inset: -35%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 210, 80, 0.16),
    transparent 32%,
    rgba(160, 110, 255, 0.12),
    transparent 64%
  );
  animation: rpBurstSpin 7s linear infinite;
  pointer-events: none;
  opacity: 0.85;
}
.rp-claim-shine {
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 180%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  animation: rpClaimShine 3.8s ease-in-out infinite;
  pointer-events: none;
}
.rp-claim-eyebrow {
  position: relative;
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0c45a;
}
.rp-claim-gem {
  position: relative;
  width: 5.6rem;
  margin: 0.1rem auto 0.35rem;
  display: block;
  animation: rpClaimBounce 0.95s cubic-bezier(0.22, 1.4, 0.36, 1);
  filter: drop-shadow(0 10px 22px rgba(255, 190, 60, 0.5));
}
.rp-claim-title {
  position: relative;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.rp-claim-panel > strong,
#rp-claim-amount {
  position: relative;
  display: block;
  color: #7aef4a;
  font-size: clamp(2.1rem, 8vw, 2.55rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0.45rem 0 0.55rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(109, 223, 56, 0.55);
}
.rp-claim-sub {
  position: relative;
  margin: 0 auto 0.85rem;
  max-width: 17.5rem;
  color: rgba(236, 230, 255, 0.92);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 500;
}
.rp-claim-note {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 auto 1rem;
  padding: 0.55rem 0.7rem;
  max-width: 18rem;
  text-align: left;
  border-radius: 0.7rem;
  background: rgba(255, 196, 80, 0.1);
  border: 1px solid rgba(255, 210, 120, 0.28);
  color: #ffe7b0;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
}
.rp-claim-note-icon {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  color: #f0c45a;
}
.rp-claim-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 18rem;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(96deg, #5b35d4 0%, #c45a1a 55%, #f0a020 100%);
  background-size: 140% 100%;
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 0.55rem 1.5rem rgba(90, 50, 200, 0.4),
    0 0 0 1px rgba(255, 220, 140, 0.25) inset;
  animation: rpClaimBtnPulse 2.4s ease-in-out infinite;
}
.rp-claim-btn:active {
  transform: scale(0.98);
}
.rp-claim-btn-ico {
  display: inline-flex;
  line-height: 0;
}
.rp-claim-foot {
  position: relative;
  margin: 0.7rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(210, 200, 240, 0.55);
}
@keyframes rpClaimBounce {
  0% { transform: scale(0.3) rotate(-16deg); opacity: 0; }
  55% { transform: scale(1.18) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
@keyframes rpBurstSpin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
@keyframes rpClaimShine {
  0%, 100% { transform: translateX(-20%) rotate(12deg); opacity: 0; }
  40% { opacity: 1; }
  70% { transform: translateX(160%) rotate(12deg); opacity: 0; }
}
@keyframes rpClaimBtnPulse {
  0%, 100% { box-shadow: 0 0.55rem 1.5rem rgba(90, 50, 200, 0.4), 0 0 0 1px rgba(255, 220, 140, 0.25) inset; }
  50% { box-shadow: 0 0.7rem 1.9rem rgba(240, 150, 40, 0.45), 0 0 0 1px rgba(255, 220, 140, 0.35) inset; }
}

/* ===== Premium Mining Slot (PG / Pragmatic style) ===== */
.rp-game {
  position: absolute;
  inset: 0;
  z-index: 65;
  display: none;
  overflow: hidden;
  font-family: "Segoe UI", "DIN Alternate", "Trebuchet MS", sans-serif;
}
.rp-game.is-show {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  width: 100%;
  max-width: 486px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  transform: none;
  overflow: hidden;
  background: #041018;
  box-sizing: border-box;
}

.slot-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #041018;
}
.slot-bg-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(1.15) contrast(1.05) brightness(0.72);
  animation: slotBgDrift 14s ease-in-out infinite alternate;
}
.slot-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
}
.slot-beam {
  position: absolute;
  left: 50%;
  top: -10%;
  width: 160%;
  opacity: 0.35;
  mix-blend-mode: screen;
  transform: translateX(-50%);
  pointer-events: none;
  animation: slotBeamSpin 18s linear infinite;
}
.slot-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, transparent 20%, rgba(0, 8, 18, 0.55) 70%, rgba(0, 4, 12, 0.92) 100%),
    linear-gradient(180deg, rgba(0, 10, 20, 0.25) 0%, transparent 30%, rgba(0, 6, 14, 0.85) 100%);
  pointer-events: none;
}
.slot-dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 220, 140, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(160, 230, 255, 0.4) 0 1px, transparent 2px);
  background-size: 120px 180px, 90px 140px;
  background-position: 0 0, 40px 60px;
  opacity: 0.35;
  animation: slotDust 10s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.slot-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  padding: max(0.4rem, env(safe-area-inset-top)) 0.75rem max(0.6rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.35rem;
  overflow: hidden;
}

.slot-logo {
  position: relative;
  text-align: center;
  margin-bottom: 0;
  flex-shrink: 0;
}
.slot-logo-gem {
  position: absolute;
  left: 50%;
  top: -0.15rem;
  width: 2.8rem;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 16px rgba(255, 190, 60, 0.7));
  animation: slotGemPulse 2.4s ease-in-out infinite;
  z-index: 1;
}
.slot-logo-star {
  position: absolute;
  right: 0;
  top: -0.4rem;
  width: 3.4rem;
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: slotStarTwinkle 2s ease-in-out infinite;
}
.slot-logo h1 {
  position: relative;
  z-index: 2;
  margin: 1.35rem 0 0;
  font-size: clamp(1.35rem, 6.2vw, 1.85rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6c8 0%, #f5c14a 38%, #e07a18 72%, #9a3b0c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 2px 0 #5a2208)
    drop-shadow(0 0 14px rgba(255, 170, 40, 0.45));
}
.slot-logo h1 span {
  background: linear-gradient(180deg, #ffe27a, #ff9a2e 55%, #ff5a1f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.slot-console {
  width: 100%;
  flex-shrink: 0;
  margin-top: 0.15rem;
  padding: 0.45rem 0.45rem 0.55rem;
  border-radius: 1rem 1rem 1.15rem 1.15rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 190, 80, 0.18), transparent 55%),
    linear-gradient(180deg, #5a1f18 0%, #3a1010 42%, #230a0c 100%);
  border: 1px solid rgba(255, 200, 110, 0.42);
  box-shadow:
    0 0 0 2px rgba(90, 40, 10, 0.55),
    inset 0 1px 0 rgba(255, 220, 140, 0.28),
    0 0.7rem 1.6rem rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.slot-console::before,
.slot-console::after {
  content: "";
  position: absolute;
  top: 42%;
  width: 2.4rem;
  height: 2.8rem;
  background:
    radial-gradient(circle at 30% 40%, #ffe08a, #d4a017 55%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
  filter: blur(0.2px);
}
.slot-console::before {
  left: -0.35rem;
  clip-path: polygon(20% 0, 100% 20%, 85% 100%, 0 75%);
}
.slot-console::after {
  right: -0.35rem;
  clip-path: polygon(0 20%, 80% 0, 100% 75%, 15% 100%);
}

.slot-meters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  position: relative;
  z-index: 1;
}
.slot-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.28rem 0.35rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #3a1518, #1a080a);
  border: 1px solid rgba(180, 90, 60, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 180, 120, 0.12);
}
.slot-meter-ico {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.slot-meter b {
  font-size: 0.82rem;
  font-weight: 800;
  color: #5ef0ff;
  letter-spacing: 0.01em;
  text-shadow: 0 0 10px rgba(70, 230, 255, 0.45);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.slot-meter-winbadge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 0.28rem;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #3a1a00;
  background: linear-gradient(180deg, #ffe08a, #d4a017);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.slot-controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.1rem;
}

.slot-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  border: 0;
  background: transparent;
  color: #ffe08a;
  cursor: pointer;
  padding: 0.15rem;
  -webkit-tap-highlight-color: transparent;
}
.slot-side-btn em {
  font-style: normal;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffe7a8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.slot-side-ring {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffe08a;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 230, 150, 0.18), transparent 55%),
    rgba(20, 8, 8, 0.45);
  border: 2px solid #e8b84a;
  box-shadow:
    0 0 0 1px rgba(80, 40, 10, 0.6),
    inset 0 1px 0 rgba(255, 240, 180, 0.35),
    0 0.25rem 0.55rem rgba(0, 0, 0, 0.35);
}
.slot-side-dark {
  border-color: rgba(200, 160, 80, 0.35);
  color: rgba(255, 220, 140, 0.55);
  opacity: 0.7;
}
.slot-side-btn:active .slot-side-ring {
  transform: scale(0.94);
}
.slot-side-btn.is-flash .slot-side-ring {
  box-shadow:
    0 0 0 1px rgba(80, 40, 10, 0.6),
    inset 0 1px 0 rgba(255, 240, 180, 0.55),
    0 0 14px rgba(255, 200, 80, 0.55);
  filter: brightness(1.15);
}
.slot-side-btn.is-disabled,
.slot-side-btn:disabled {
  opacity: 0.38;
  cursor: default;
  filter: grayscale(0.35);
  pointer-events: none;
}
.slot-side-btn.is-disabled .slot-side-ring,
.slot-side-btn:disabled .slot-side-ring {
  border-color: rgba(180, 150, 80, 0.28);
  color: rgba(255, 220, 140, 0.45);
  box-shadow: none;
}

.slot-spin-btn {
  position: relative;
  width: 5.8rem;
  height: 5.8rem;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  flex-shrink: 0;
  margin: 0 0.1rem;
  z-index: 2;
}
.slot-spin-halo {
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 80, 0.35), transparent 70%);
  filter: blur(2px);
  animation: slotHaloPulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
.slot-spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(145deg, #ffe9a0 0%, #d4a017 35%, #8a5a08 70%, #ffe08a 100%);
  box-shadow:
    0 0.45rem 1rem rgba(0, 0, 0, 0.45),
    0 0 18px rgba(255, 190, 60, 0.4);
}
.slot-spin-core {
  position: absolute;
  inset: 0.38rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.02rem;
  background:
    radial-gradient(circle at 35% 28%, #9af7b0, #22c55e 42%, #0f7a3a 78%, #064e28);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    inset 0 -5px 10px rgba(0, 40, 20, 0.4),
    0 0.35rem 0 #0a3d22;
  color: #fff8d6;
  transition: transform 0.08s;
  border: 1px solid rgba(255, 230, 150, 0.25);
}
.slot-spin-btn:active:not(:disabled) .slot-spin-core {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    0 0.12rem 0 #0a3d22;
}
.slot-spin-arrows {
  width: 1.85rem;
  height: 1.85rem;
  color: #ffe08a;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  margin-bottom: -0.1rem;
}
.slot-spin-core b {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #fffef0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.slot-spin-core small {
  font-size: 0.52rem;
  font-weight: 800;
  opacity: 0.9;
  color: #dfffdc;
}
.slot-spin-btn:disabled {
  opacity: 0.55;
  cursor: default;
  filter: grayscale(0.2);
}
.slot-spin-btn.is-done .slot-spin-core {
  background: radial-gradient(circle at 35% 28%, #ffe08a, #f59e0b 48%, #b45309);
  color: #3a1a00;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.4), 0 0.35rem 0 #7c2d12;
}
.slot-spin-btn.is-done .slot-spin-arrows,
.slot-spin-btn.is-done .slot-spin-core b,
.slot-spin-btn.is-done .slot-spin-core small {
  color: #3a1a00;
}
.slot-spin-btn.is-spinning .slot-spin-arrows {
  animation: slotSpinRing 0.55s linear infinite;
}
.slot-spin-btn.is-spinning .slot-spin-halo {
  animation-duration: 0.6s;
}

@keyframes slotHaloPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.slot-cabinet {
  position: relative;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  padding: 0.7rem 0.5rem 0.55rem;
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, #3a2812 0%, #1a1209 40%, #2a1b0c 100%);
  border: 2px solid #e0b24a;
  box-shadow:
    0 0 0 3px #7a4a12,
    0 0 0 5px rgba(255, 210, 120, 0.25),
    0 1rem 2.4rem rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 235, 170, 0.45);
}
.slot-frame-ornament {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffe08a, #ffb020, #ffe08a, transparent);
  box-shadow: 0 0 12px rgba(255, 190, 60, 0.65);
  pointer-events: none;
}
.slot-frame-top { top: 0.35rem; }
.slot-frame-bot { bottom: 0.35rem; }
.slot-lights {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: 0.55rem;
  height: 0.42rem;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg,
    #ffd76a 0 0.4rem,
    #ff8a1a 0.4rem 0.55rem,
    transparent 0.55rem 0.75rem);
  box-shadow: 0 0 10px rgba(255, 190, 50, 0.7);
  animation: slotMarquee 0.7s linear infinite;
  opacity: 0.9;
}

.slot-screen {
  position: relative;
  margin-top: 0.55rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #070d1c;
  border: 2px solid #8b6914;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(255, 180, 40, 0.12);
}
#rp-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 260;
}
.slot-payline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #7dffb0 15%, #fff 50%, #7dffb0 85%, transparent);
  box-shadow: 0 0 12px rgba(100, 255, 180, 0.85);
  pointer-events: none;
  animation: slotPayline 1.8s ease-in-out infinite;
}
.slot-screen-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: slotShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
.slot-win-banner {
  display: none !important;
}

/* Win celebration overlay */
.slot-winfx {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.15), rgba(0,0,0,0.72));
  transition: opacity 0.25s;
}
.slot-winfx.is-show {
  opacity: 1;
  animation: slotWinFxIn 0.35s ease;
}
.slot-winfx-rays {
  position: absolute;
  width: 28rem;
  height: 28rem;
  background: conic-gradient(from 0deg, transparent, rgba(255, 200, 80, 0.22), transparent 18%, rgba(255,120,40,0.18), transparent 36%);
  animation: slotBeamSpin 6s linear infinite;
  border-radius: 50%;
}
.slot-winfx-gem {
  position: relative;
  width: 6.5rem;
  filter: drop-shadow(0 0 24px rgba(255, 190, 60, 0.8));
  animation: slotGemPulsePlain 0.9s ease-in-out infinite;
}
.slot-winfx-label {
  position: relative;
  margin-top: 0.2rem;
  font-size: clamp(1.8rem, 9vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff8d0, #ffd056 40%, #ff8a1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #6b2a08) drop-shadow(0 0 18px rgba(255,180,40,0.55));
}
.slot-winfx-amount {
  position: relative;
  margin-top: 0.15rem;
  font-size: 1.55rem;
  font-weight: 900;
  color: #5dff9a;
  text-shadow: 0 0 18px rgba(70, 255, 150, 0.55);
}

@keyframes slotBgDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.5%); }
}
@keyframes slotBeamSpin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}
@keyframes slotDust {
  from { background-position: 0 0, 40px 60px; }
  to { background-position: 0 -180px, 40px -80px; }
}
@keyframes slotGemPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}
@keyframes slotGemPulsePlain {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes slotStarTwinkle {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.1); }
}
@keyframes slotMarquee {
  from { background-position: 0 0; }
  to { background-position: 0.75rem 0; }
}
@keyframes slotPayline {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes slotShine {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}
@keyframes slotSpinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes slotBannerPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -65%) scale(1.05); }
}
@keyframes slotWinFxIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

body.rp-open { overflow: hidden; }

@media (max-height: 740px) {
  .slot-logo h1 { font-size: 1.25rem; margin-top: 1.15rem; }
  .slot-logo-gem { width: 2.3rem; }
  .slot-spin-btn { width: 5.1rem; height: 5.1rem; }
  .slot-wrap { gap: 0.28rem; padding-top: 0.3rem; padding-bottom: 0.4rem; }
  .slot-cabinet { padding: 0.55rem 0.4rem 0.45rem; }
  .slot-meter b { font-size: 0.74rem; }
  .slot-console { padding: 0.35rem 0.35rem 0.4rem; }
  .slot-side-ring { width: 2.1rem; height: 2.1rem; }
}

@media (max-height: 620px) {
  .slot-logo { display: none; }
  .slot-spin-btn { width: 4.6rem; height: 4.6rem; }
  .slot-side-btn em { display: none; }
}
