/* ============================================================
   GRATISSPINS.NU – Slot Machine Navigation
   Drop this file into your site and link it in <head>.
   Pairs with /navigation.js.
   ============================================================ */


:root {
  --slot-wine: #4a0d1a;
  --slot-wine-deep: #2a0610;
  --slot-wine-darker: #1a0309;
  --slot-brass: #d9a441;
  --slot-brass-bright: #f4cf6b;
  --slot-brass-dark: #8a6418;
  --slot-cream: #f7ecd2;
  --slot-cream-dim: #e6d5a8;
  --slot-cherry: #ff2e4a;
  --slot-cherry-glow: #ff6b85;
  --slot-shadow: rgba(8, 2, 4, 0.55);
}

/* ---------- Outer stage ---------- */
.slot-nav {
  position: relative;
  margin: 18px 0 44px;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

.slot-nav__stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 14px 0 24px;
}

/* ---------- Cabinet ---------- */
.slot-cabinet {
  position: relative;
  width: 100%;
  max-width: 960px;
  padding: 26px 28px 30px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, #6b1626 0%, var(--slot-wine) 35%, var(--slot-wine-deep) 100%);
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 2px var(--slot-brass-dark),
    inset 0 0 0 6px var(--slot-wine-darker),
    inset 0 0 0 8px var(--slot-brass),
    inset 0 14px 30px rgba(0,0,0,0.45),
    inset 0 -16px 28px rgba(0,0,0,0.55),
    0 22px 50px var(--slot-shadow);
}

/* Cabinet rivets removed for cleaner look */

/* ---------- Marquee ---------- */
.slot-marquee {
  position: relative;
  margin: 0 auto 22px;
  padding: 14px 26px;
  text-align: center;
  background: linear-gradient(180deg, #1a0309 0%, #320812 100%);
  border: 2px solid var(--slot-brass);
  border-radius: 18px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.06),
    inset 0 -8px 16px rgba(0,0,0,0.5),
    0 6px 14px rgba(0,0,0,0.4);
}

.slot-marquee__text {
  display: inline-block;
  font-family: Impact, 'Arial Black', 'Helvetica Neue', sans-serif;
  font-size: clamp(22px, 3.4vw, 36px);
  letter-spacing: 0.08em;
  color: var(--slot-cream);
  text-shadow:
    0 0 6px rgba(255, 46, 74, 0.65),
    0 0 18px rgba(255, 46, 74, 0.45),
    0 0 32px rgba(255, 200, 100, 0.25);
  animation: marqueePulse 2.8s ease-in-out infinite;
}

.slot-marquee__sub {
  display: block;
  margin-top: 4px;
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slot-brass-bright);
  opacity: 0.85;
}

/* Light bulbs around marquee */
.slot-marquee__bulbs {
  position: absolute;
  inset: -10px;
  pointer-events: none;
}

.slot-bulb {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff5b8, #ffc94a 55%, #8a5a10 100%);
  box-shadow: 0 0 8px #ffc94a, 0 0 14px rgba(255, 201, 74, 0.4);
  animation: bulbBlink 1.4s ease-in-out infinite;
}

@keyframes marqueePulse {
  0%, 100% { text-shadow: 0 0 6px rgba(255,46,74,0.6), 0 0 18px rgba(255,46,74,0.4), 0 0 32px rgba(255,200,100,0.2); }
  50%      { text-shadow: 0 0 10px rgba(255,46,74,0.9), 0 0 24px rgba(255,46,74,0.7), 0 0 44px rgba(255,200,100,0.45); }
}

@keyframes bulbBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #ffc94a, 0 0 18px rgba(255,201,74,0.6); }
  50%      { opacity: 0.35; box-shadow: 0 0 4px #ffc94a, 0 0 8px rgba(255,201,74,0.3); }
}

/* ---------- Reel deck ---------- */
.slot-deck {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.slot-reels {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #120206 0%, #2a0610 60%, #120206 100%);
  border: 2px solid var(--slot-brass);
  box-shadow:
    inset 0 4px 12px rgba(0,0,0,0.7),
    inset 0 -3px 8px rgba(0,0,0,0.6);
}

/* ---------- Each reel = nav link ---------- */
.slot-reel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.slot-reel__window {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at top, var(--slot-cream) 0%, var(--slot-cream-dim) 100%);
  box-shadow:
    inset 0 6px 12px rgba(0,0,0,0.18),
    inset 0 -3px 8px rgba(0,0,0,0.12),
    inset 0 0 0 3px #2a0610,
    inset 0 0 0 5px var(--slot-brass);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease;
}

/* glass shine */
.slot-reel__window::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 35%, rgba(0,0,0,0.06) 100%);
  pointer-events: none;
  z-index: 3;
}

/* top + bottom inner shadow bands (slot effect) */
.slot-reel__window::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 2;
}

.slot-strip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translateY(0);
}

.slot-strip__cell {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-strip__cell svg {
  width: 62%;
  height: 62%;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}

/* Spin state */
.slot-reel.is-spinning .slot-strip {
  animation: reelSpin 0.45s linear infinite;
}

@keyframes reelSpin {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-400%); }
}

/* Land bounce */
.slot-reel.is-landing .slot-strip {
  animation: reelLand 0.55s cubic-bezier(.18,.9,.3,1.2) forwards;
}

@keyframes reelLand {
  0%   { transform: translateY(-12%); }
  60%  { transform: translateY(3%); }
  100% { transform: translateY(0); }
}

/* Hover lift */
.slot-reel:hover .slot-reel__window,
.slot-reel:focus-visible .slot-reel__window {
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    inset 0 6px 12px rgba(0,0,0,0.18),
    inset 0 -3px 8px rgba(0,0,0,0.12),
    inset 0 0 0 3px #2a0610,
    inset 0 0 0 5px var(--slot-brass-bright),
    0 10px 22px rgba(255, 201, 74, 0.25);
}

.slot-reel:focus-visible {
  outline: none;
}

/* ---------- Reel label (brass plate) ---------- */
.slot-reel__plate {
  margin-top: 8px;
  padding: 7px 6px 6px;
  text-align: center;
  background:
    linear-gradient(180deg, var(--slot-brass-bright) 0%, var(--slot-brass) 50%, var(--slot-brass-dark) 100%);
  border: 1px solid #5a3f0a;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 3px rgba(0,0,0,0.25),
    0 3px 6px rgba(0,0,0,0.35);
  position: relative;
}

.slot-reel__plate::before,
.slot-reel__plate::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff7c8, #6a4a08);
  transform: translateY(-50%);
}
.slot-reel__plate::before { left: 4px; }
.slot-reel__plate::after  { right: 4px; }

.slot-reel__plate span {
  display: block;
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.18em;
  font-size: clamp(12px, 1.4vw, 16px);
  text-transform: uppercase;
  font-weight: 700;
  color: #2a1a02;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
  line-height: 1.05;
}

/* Highlight the frontpage reel */
.slot-reel--featured .slot-reel__window {
  box-shadow:
    inset 0 6px 12px rgba(0,0,0,0.18),
    inset 0 -3px 8px rgba(0,0,0,0.12),
    inset 0 0 0 3px #2a0610,
    inset 0 0 0 5px var(--slot-cherry);
}
.slot-reel--featured .slot-reel__plate {
  background: linear-gradient(180deg, #ff6b85 0%, var(--slot-cherry) 55%, #8a0a1c 100%);
  border-color: #5a0510;
}
.slot-reel--featured .slot-reel__plate span {
  color: #fff5e5;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

/* ---------- Pull lever ---------- */
.slot-lever {
  position: relative;
  width: 64px;
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.slot-lever__rod {
  width: 8px;
  flex: 1;
  background: linear-gradient(90deg, #6a6a6a, #d8d8d8 45%, #f7f7f7 55%, #6a6a6a);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.slot-lever__knob {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffb6c4 0%, var(--slot-cherry) 45%, #7a0418 100%);
  box-shadow:
    inset 0 -4px 8px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,255,255,0.4),
    0 6px 12px rgba(0,0,0,0.45);
  border: 2px solid #2a0610;
  margin-bottom: -2px;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}

.slot-lever__base {
  width: 24px;
  height: 12px;
  background: linear-gradient(180deg, var(--slot-brass-bright), var(--slot-brass-dark));
  border-radius: 4px 4px 8px 8px;
  border: 1px solid #2a0610;
  margin-top: 2px;
}

.slot-lever__label {
  margin-top: 8px;
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slot-brass-bright);
  text-shadow: 0 1px 0 #000;
}

.slot-lever:hover .slot-lever__knob { transform: translateY(2px) scale(1.05); }
.slot-lever.is-pulled .slot-lever__rod { animation: leverPull 0.55s cubic-bezier(.2,.7,.2,1); }
.slot-lever.is-pulled .slot-lever__knob { animation: leverKnob 0.55s cubic-bezier(.2,.7,.2,1); }

@keyframes leverPull {
  0%   { transform: scaleY(1); transform-origin: top; }
  40%  { transform: scaleY(1.55); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: top; }
}
@keyframes leverKnob {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(48px); }
  100% { transform: translateY(0); }
}

/* ---------- Coin slot footer ---------- */
.slot-tray {
  margin-top: 18px;
  padding: 10px 14px;
  background:
    linear-gradient(180deg, #1a0309 0%, #320812 100%);
  border: 2px solid var(--slot-brass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slot-tray__slot {
  flex: 1;
  height: 6px;
  background: #000;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.05), inset 0 -1px 2px rgba(0,0,0,0.5);
}

.slot-tray__credits {
  font-family: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  color: var(--slot-brass-bright);
  letter-spacing: 0.2em;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
}

.slot-tray__credits b {
  color: var(--slot-cherry-glow);
  text-shadow: 0 0 6px rgba(255,46,74,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .slot-cabinet { padding: 18px 14px 22px; border-radius: 22px; }
  .slot-marquee__bulbs { inset: -3px 2px; }
  .slot-bulb { width: 6px; height: 6px; }
  .slot-deck { flex-direction: column; gap: 10px; }
  .slot-reels { padding: 10px; gap: 8px; }
  .slot-lever {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
  }
  .slot-lever__rod { width: 60%; flex: 0 0 auto; height: 6px; }
  .slot-lever__knob { width: 30px; height: 30px; }
  .slot-lever__base { display: none; }
  .slot-lever__label { margin: 0; }
  .slot-tray__credits { font-size: 11px; }
  .slot-reel__plate span { font-size: 11px; letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  .slot-marquee__text,
  .slot-bulb { animation: none; }
  .slot-reel.is-spinning .slot-strip,
  .slot-reel.is-landing .slot-strip { animation: none; }
}
