/* ——— CleopatraSlot ——— */
.game-shell.cleo-mode {
  background: #120a1c;
}
.game-shell.cleo-mode .game-top {
  background: linear-gradient(180deg, rgba(40, 24, 8, 0.95), rgba(18, 10, 28, 0.98));
  border-bottom: 1px solid rgba(232, 199, 107, 0.35);
}
.game-shell.cleo-mode .game-stage {
  padding: 0;
  max-width: min(560px, 100%);
  margin: 0 auto;
  width: 100%;
}

.cleo-screen {
  position: relative;
  min-height: 100%;
  color: #f5e6c8;
  overflow: hidden;
  font-family: Cinzel, Georgia, serif;
}
.cleo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.1) brightness(0.85);
}
.cleo-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 10, 30, 0.35), rgba(10, 6, 18, 0.55) 70%);
}
.cleo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 14px;
  min-height: 100%;
}

.cleo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cleo-title {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff4c8, #e8c76b, #a87820);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #3a2208);
}
.cleo-top-actions {
  display: flex;
  gap: 6px;
}
.cleo-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(232, 199, 107, 0.45);
  background: rgba(20, 12, 28, 0.7);
  color: #f5e6c8;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cleo-mode-hud {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 199, 107, 0.4);
  background: rgba(12, 8, 20, 0.75);
}
.cleo-mode-hud.free {
  color: #c9b6ff;
  border-color: rgba(160, 120, 255, 0.5);
}
.cleo-mode-hud.bonus {
  color: #ffd080;
}
.cleo-lives {
  display: inline-flex;
  gap: 4px;
  margin: 0 4px;
  vertical-align: middle;
}
.cleo-lives i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-size: 0.55rem;
  background: #2a1840;
  border: 1px solid #6a4080;
  color: #8860a8;
}
.cleo-lives i.on {
  background: #7b3cff;
  border-color: #d0a8ff;
  color: #fff;
}

.cleo-banner {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffe9a8;
  text-shadow: 0 1px 4px #000;
  animation: cleoPulse 0.9s ease;
}
@keyframes cleoPulse {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cleo-frame {
  border: 3px solid #c9a227;
  border-radius: 10px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(40, 24, 8, 0.55), rgba(10, 6, 18, 0.7));
  box-shadow: 0 0 0 1px rgba(255, 220, 120, 0.25), 0 12px 28px rgba(0, 0, 0, 0.45);
}
.cleo-reels {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), 1fr);
  gap: 3px;
  background: #0a0610;
}
.cleo-reel {
  display: grid;
  grid-template-rows: repeat(var(--rows, 4), 1fr);
  gap: 3px;
}
.cleo-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1028;
  border: 1px solid rgba(200, 160, 60, 0.25);
}
.cleo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cleo-cell.blur img {
  filter: blur(2px) brightness(1.1);
}
.cleo-cell.win {
  box-shadow: inset 0 0 0 2px #ffe08a, 0 0 14px rgba(255, 200, 80, 0.65);
  animation: cleoWin 0.7s ease infinite alternate;
}
.cleo-cell.locked-wild {
  box-shadow: inset 0 0 0 2px #b070ff;
}
.cleo-cell.locked-scat {
  box-shadow: inset 0 0 0 2px #ffb020;
}
.cleo-scat-m {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 900;
  color: #fff6c8;
  text-shadow: 0 0 6px #ff8000, 0 1px 2px #000;
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 5px;
  border-radius: 6px;
}
@keyframes cleoWin {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.25);
  }
}
.cleo-reels.is-spinning .cleo-reel {
  animation: cleoShake 0.12s linear infinite;
  animation-delay: calc(var(--d) * 0.03s);
}
@keyframes cleoShake {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

.cleo-hud {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-top: 4px;
}
.cleo-lbl {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #c8b080;
  font-weight: 700;
}
.cleo-val {
  font-size: 1rem;
  font-weight: 900;
  color: #fff4d0;
}
.cleo-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cleo-pm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #c9a227;
  background: rgba(30, 18, 8, 0.85);
  color: #ffe9a8;
  font-size: 1.1rem;
  cursor: pointer;
}
.cleo-pm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cleo-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.cleo-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #c9a227;
  background: rgba(20, 12, 28, 0.85);
  color: #ffe9a8;
  cursor: pointer;
  font-size: 1rem;
}
.cleo-toggle.on {
  background: linear-gradient(180deg, #ffe08a, #c47820);
  color: #2a1608;
  box-shadow: 0 0 12px rgba(255, 180, 40, 0.55);
}
.cleo-spin {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #ffe08a;
  background: radial-gradient(circle at 35% 30%, #fff0c0, #e8b840 45%, #8a5010);
  color: #2a1608;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
.cleo-spin:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cleo-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(6, 4, 12, 0.72);
  display: grid;
  place-items: center;
  padding: 16px;
}
.cleo-pick,
.cleo-paycard {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #2a1a10, #120a18);
  border: 2px solid #c9a227;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.cleo-pick {
  text-align: center;
  position: relative;
}
.cleo-pick-timer {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e8c76b;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
  background: #1a1020;
}
.cleo-pick h3 {
  margin: 28px 0 6px;
  color: #ffe9a8;
}
.cleo-muted {
  color: #a89070;
  font-size: 0.78rem;
  margin: 0 0 12px;
}
.cleo-pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cleo-pick-card {
  border: 2px solid #c9a227;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffe9a8;
  padding: 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
}
.cleo-pick-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.cleo-pick-card b {
  font-size: 2rem;
  color: #8ab4ff;
  line-height: 1;
}
.cleo-pick-card.bonus span {
  color: #ffb040;
}
.cleo-pick-card.free span {
  color: #c0b0ff;
}

.cleo-paycard h3 {
  margin: 0 0 6px;
  color: #ffe9a8;
  text-align: center;
}
.cleo-paygrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 42vh;
  overflow: auto;
  margin-bottom: 10px;
}
.cleo-payitem {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 6px;
  font-size: 0.68rem;
}
.cleo-payitem img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.cleo-payitem i {
  color: #e8a020;
  font-style: normal;
  margin-right: 4px;
}
.cleo-pay-special {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.cleo-pay-special > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 0.7rem;
  color: #d8c8a8;
}
.cleo-pay-special img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}
.cleo-ok {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #c9a227;
  background: linear-gradient(180deg, #e8c76b, #a87820);
  color: #2a1608;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 420px) {
  .cleo-spin {
    width: 64px;
    height: 64px;
  }
  .cleo-title {
    font-size: 1rem;
  }
}

