:root {
  --olympus-gold: #ffd94a;
  --olympus-gold-deep: #b8860b;
  --storm: #7fd8ff;
  --accent: #7fd8ff;
  --accent-2: #16233f;
}

/* Background is the shared dark casino-floor backdrop from slot.css. */

/* ---------- Modal shell (ships its own, like the other games) ---------- */

.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-content { width: 360px; max-width: 90vw; padding: 20px 24px; }
.modal-content h2 { margin-top: 0; color: var(--olympus-gold); }
.modal-content .hint { font-size: 0.8rem; color: #cfe0f5; line-height: 1.55; }

.paytable-list { list-style: none; padding: 0; margin: 12px 0; }
.paytable-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #33507e;
  font-size: 0.9rem;
}
.paytable-list li span:last-child { font-weight: bold; white-space: nowrap; color: var(--olympus-gold); }

/* ---------- Cabinet: marble + gold, storm-lit ---------- */

.cabinet#zeusCabinet {
  width: 600px;
  max-width: 95vw;
  padding: 22px 24px 26px;
  border: 3px solid var(--olympus-gold);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(165deg, #21324f, #131d30);
  box-shadow:
    0 30px 70px rgba(10, 20, 45, 0.55),
    0 0 0 5px rgba(255, 217, 74, 0.18),
    0 0 0 8px rgba(60, 90, 140, 0.4),
    inset 0 0 26px rgba(127, 216, 255, 0.12);
}

#zeusCabinet .title {
  margin: 4px 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--olympus-gold);
  text-shadow: 0 0 10px rgba(255, 217, 74, 0.6), 0 0 26px var(--storm);
  animation: title-pulse 2.6s ease-in-out infinite;
}

#zeusCabinet .bonus-banner {
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid var(--olympus-gold);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--storm), var(--olympus-gold));
  color: #10233f;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse 1s infinite alternate;
}
#zeusCabinet .bonus-banner.hidden { display: none; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.02); } }

/* white flash across the whole machine when Zeus strikes */
#zeusCabinet.lightning { animation: zeus-flash 0.26s ease-out; }
@keyframes zeus-flash {
  0% { box-shadow: 0 0 0 3px #fff, 0 0 60px 20px rgba(200, 235, 255, 0.9); filter: brightness(1.8); }
  100% { box-shadow: 0 30px 70px rgba(10, 20, 45, 0.55); filter: brightness(1); }
}

/* corner studs */
.frame-flourish {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--olympus-gold) 45%, var(--olympus-gold-deep) 100%);
  box-shadow: 0 0 12px rgba(255, 217, 74, 0.7), 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.frame-flourish.tl { top: 8px; left: 8px; }
.frame-flourish.tr { top: 8px; right: 8px; }
.frame-flourish.bl { bottom: 8px; left: 8px; }
.frame-flourish.br { bottom: 8px; right: 8px; }

/* ---------- Reel window ---------- */

#zeusCabinet .screen {
  position: relative;
  padding: 10px;
  margin-bottom: 12px;
  border: 3px solid var(--olympus-gold);
  border-radius: 14px;
  background: linear-gradient(180deg, #0a1730, #123056 60%, #0a1730);
  box-shadow:
    inset 0 2px 16px rgba(0, 0, 0, 0.6),
    0 0 0 3px var(--olympus-gold-deep),
    0 0 26px rgba(127, 216, 255, 0.25);
}
#zeusCabinet .screen::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px; top: 8px;
  height: 30%;
  border-radius: 10px 10px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
  z-index: 4;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
}

#zeusCabinet .cell {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.16), transparent 62%),
    linear-gradient(180deg, #1e3a63, #0e1f3c);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
#zeusCabinet .cell .symbol {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 6px rgba(127, 216, 255, 0.25));
}
@media (max-width: 430px) {
  #zeusCabinet .cell .symbol { font-size: 1.55rem; }
}

#zeusCabinet .cell.win {
  border-color: var(--storm);
  animation: zeus-winframe 0.8s ease-in-out infinite;
}
@keyframes zeus-winframe {
  0%, 100% { box-shadow: 0 0 0 2px var(--storm), 0 0 12px 0 rgba(127, 216, 255, 0.7); }
  50%      { box-shadow: 0 0 0 2px var(--storm), 0 0 22px 3px rgba(127, 216, 255, 0.9); }
}
#zeusCabinet .cell.win .symbol { animation: symbol-pop 0.5s ease-in-out infinite alternate; }
@keyframes symbol-pop { from { transform: scale(1); } to { transform: scale(1.13); } }

/* wild (lightning-struck) cell */
#zeusCabinet .cell.wild-cell {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(180deg, #4a5a1f, #2a3a10);
  border-color: var(--olympus-gold);
  box-shadow: 0 0 16px rgba(255, 217, 74, 0.6), inset 0 0 12px rgba(255, 217, 74, 0.5);
}
#zeusCabinet .cell.struck { animation: struck-in 0.5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes struck-in {
  0% { transform: scale(0.3); filter: brightness(3); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); filter: brightness(1); }
}

.wild-mult {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 0.8rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  color: #1a1206;
  background: linear-gradient(160deg, var(--olympus-gold), #d99a2b);
  box-shadow: 0 0 8px var(--olympus-gold);
}

.cell.spinning .symbol { animation: zeus-spin-blur 0.12s linear infinite; }
@keyframes zeus-spin-blur {
  0%   { transform: translateY(-38%); filter: blur(2px); opacity: 0.6; }
  50%  { transform: translateY(0); filter: blur(0.5px); opacity: 1; }
  100% { transform: translateY(38%); filter: blur(2px); opacity: 0.6; }
}

@keyframes flash { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.6); } }
.win-flash { animation: flash 0.3s ease-in-out 3; }

/* ---------- Paylines ---------- */

.payline-overlay { pointer-events: none; }
.payline-overlay polyline {
  stroke: var(--storm);
  fill: none;
  stroke-width: 4;
  opacity: 0;
  filter: drop-shadow(0 0 4px var(--storm));
}
.payline-overlay polyline.show {
  opacity: 0.95;
  animation: dash-move 0.5s linear infinite, line-glow-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes dash-move { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
@keyframes line-glow-pulse {
  from { filter: drop-shadow(0 0 4px var(--storm)); }
  to   { filter: drop-shadow(0 0 12px var(--storm)); }
}

#zeusCabinet .message { color: #d9e6ff; }
