/* =========================================================
   Shell slot machine (Spin-for-a-Junonia) — split-loaded
   from tour.css (Wave 4 P7). Loaded ONLY by shelling-tours.html.
   Rules below are byte-identical to the moved tour.css region.
   ========================================================= */

/* ---------- Shell slot machine ("Spin for a Junonia" — Vegas edition) ---------- */
.shellslot { background: radial-gradient(120% 90% at 50% 0%, #0c5263 0%, var(--deep) 52%, var(--deep-2) 100%); position: relative; overflow: hidden; }
.shellslot .section__title { color: var(--paper); }
.shellslot .eyebrow--dark { color: var(--sun); }
.shellslot .section__sub { color: rgba(255, 253, 246, .82); }
.shellslot__inner { position: relative; z-index: 1; }

.slot { display: flex; align-items: flex-end; justify-content: center; margin-top: 26px; }
.slot__cabinet {
  position: relative; width: clamp(300px, 94vw, 480px);
  background: linear-gradient(165deg, var(--coral-2) 0%, var(--coral) 46%, var(--coral-d) 100%);
  border-radius: 30px 30px 26px 26px; padding: 16px 18px 22px; border: 3px solid rgba(255, 255, 255, .3);
  box-shadow: 0 36px 80px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -10px 24px rgba(0, 0, 0, .3);
}

/* topper / marquee head */
.slot__topper {
  position: relative; margin: 0 0 16px; padding: 14px 18px 14px; border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, #06323d 0%, #04242d 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(127, 230, 238, .25); border: 2px solid rgba(255, 255, 255, .14);
}
.slot__brand { display: flex; flex-direction: column; align-items: center; gap: 9px; padding-top: 10px; }
.slot__logo { display: inline-flex; background: var(--paper); padding: 7px 16px; border-radius: 100px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.slot__logo img { height: 34px; width: auto; display: block; }
.slot__jackpot-sign {
  font-family: var(--display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 1.05rem; white-space: nowrap;
  color: var(--sun); text-shadow: 0 0 8px rgba(255, 194, 74, .9), 0 0 18px rgba(255, 194, 74, .55);
}

/* chase-light bulbs */
.slot__bulbs { display: flex; pointer-events: none; }
.slot__bulbs--top { position: absolute; top: 7px; left: 14px; right: 14px; justify-content: space-between; }
.slot__bulb { width: 8px; height: 8px; border-radius: 50%; background: var(--sun-2); box-shadow: 0 0 6px 1px rgba(255, 217, 130, .55); animation: bulbChase 1.2s linear infinite; }
@keyframes bulbChase { 0% { opacity: 1; box-shadow: 0 0 9px 2px rgba(255, 217, 130, 1); transform: scale(1.15); } 26%, 100% { opacity: .28; box-shadow: 0 0 3px rgba(255, 217, 130, .4); transform: scale(1); } }

/* deck + bulb frame */
.slot__deck { position: relative; padding: 13px; border-radius: 18px; background: linear-gradient(180deg, #2a2f33, #14181b); box-shadow: inset 0 2px 4px rgba(255, 255, 255, .1), inset 0 -3px 8px rgba(0, 0, 0, .5); }
.slot__frame { position: absolute; inset: 0; pointer-events: none; }
.slot__frame .slot__bulbs { position: absolute; }
.slot__bulbs--ftop { top: 4px; left: 16px; right: 16px; justify-content: space-between; }
.slot__bulbs--fbottom { bottom: 4px; left: 16px; right: 16px; justify-content: space-between; }
.slot__bulbs--fleft { flex-direction: column; left: 4px; top: 16px; bottom: 16px; justify-content: space-between; }
.slot__bulbs--fright { flex-direction: column; right: 4px; top: 16px; bottom: 16px; justify-content: space-between; }

.slot__window {
  position: relative; background: linear-gradient(180deg, #04242d, #0a3a47); border-radius: 12px; padding: 12px;
  box-shadow: inset 0 7px 18px rgba(0, 0, 0, .65), inset 0 -2px 0 rgba(255, 255, 255, .06);
}
.slot__reels { display: flex; gap: 8px; justify-content: center; }
.slot__reel {
  position: relative; width: clamp(76px, 24vw, 118px); height: clamp(76px, 24vw, 118px);
  overflow: hidden; border-radius: 10px; background: var(--paper); transition: box-shadow .3s ease;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), inset 0 10px 16px rgba(0, 0, 0, .22), inset 0 -10px 16px rgba(0, 0, 0, .22);
}
.slot__strip { display: flex; flex-direction: column; will-change: transform; }
.slot__tile { width: 100%; aspect-ratio: 1; flex: none; background-size: cover; background-position: center; }
.slot__tile--rare { box-shadow: inset 0 0 0 3px var(--sun); }
.slot__reel.is-win { box-shadow: inset 0 0 0 3px var(--sun), 0 0 20px rgba(255, 194, 74, .8); }
.slot__payline { position: absolute; left: 8px; right: 8px; top: 50%; height: 3px; transform: translateY(-50%); pointer-events: none; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255, 194, 74, .95) 30% 70%, transparent); box-shadow: 0 0 10px rgba(255, 194, 74, .7); }
.slot__pointer { position: absolute; top: 50%; transform: translateY(-50%); width: 0; height: 0; z-index: 3; pointer-events: none; }
.slot__pointer--l { left: 1px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 11px solid var(--sun); filter: drop-shadow(0 0 4px rgba(255, 194, 74, .8)); }
.slot__pointer--r { right: 1px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 11px solid var(--sun); filter: drop-shadow(0 0 4px rgba(255, 194, 74, .8)); }
.slot__glass { position: absolute; inset: 12px; border-radius: 10px; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .05) 22%, transparent 45%); }

/* digital readout */
.slot__readout { display: flex; gap: 10px; margin: 14px 4px 6px; }
.slot__meter { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border-radius: 8px; background: #06120f; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.slot__meter-k { font-family: var(--display); font-weight: 700; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 253, 246, .5); }
.slot__meter-v { font-family: "Courier New", monospace; font-weight: 700; font-size: 1.12rem; color: #ffd24a; text-shadow: 0 0 8px rgba(255, 194, 74, .8); letter-spacing: .06em; }
.slot__meter--win .slot__meter-v { color: #6fffa0; text-shadow: 0 0 8px rgba(111, 255, 160, .7); }
.slot__meter.is-flash { animation: meterFlash .5s ease 3; }
@keyframes meterFlash { 0%, 100% { background: #06120f; } 50% { background: #3a2e06; } }

.slot__result { text-align: center; font-family: var(--display); font-weight: 700; color: var(--paper); font-size: 1.02rem; line-height: 1.35; min-height: 2.7em; display: flex; align-items: center; justify-content: center; margin: 8px 4px 4px; transition: color .3s; }
.slot__result.is-win { color: var(--sun-2); }
.slot__result.is-jackpot { color: var(--sun); font-size: 1.14rem; }

.slot__actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.slot__spin { min-width: 180px; }
.slot__spin[disabled] { opacity: .65; cursor: not-allowed; }
.slot__spin-ic { display: inline-block; margin-left: 8px; }
.slot__spin.is-spinning .slot__spin-ic { animation: slotSpinIc .6s linear infinite; }
@keyframes slotSpinIc { to { transform: rotate(360deg); } }
.slot__mute { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; transition: transform .15s, background .2s; }
.slot__mute:hover { transform: scale(1.08); background: rgba(255, 255, 255, .28); }
.slot__count { display: block; text-align: center; font-size: .82rem; color: rgba(255, 253, 246, .72); font-weight: 600; min-height: 1em; margin-top: 10px; }

/* coin tray */
.slot__tray { margin: 14px -6px -6px; height: 26px; border-radius: 8px 8px 16px 16px; position: relative; background: linear-gradient(180deg, #7a2a18, #5a1d10); box-shadow: inset 0 6px 12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .15); }
.slot__tray::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 46%; height: 6px; border-radius: 4px; background: #2a0d06; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8); }

/* jackpot light show */
.slot.is-jackpot .slot__cabinet { animation: slotShake .55s ease; box-shadow: 0 36px 80px rgba(0, 0, 0, .5), 0 0 0 4px var(--sun), 0 0 60px rgba(255, 194, 74, .65); }
.slot.is-jackpot .slot__bulb { animation-duration: .5s; background: var(--sun); }
.slot.is-jackpot .slot__jackpot-sign { animation: signBlink .4s steps(1) 6; }
@keyframes signBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes slotShake { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-7px); } 38% { transform: translateX(7px); } 58% { transform: translateX(-5px); } 78% { transform: translateX(4px); } }

/* lever / arm */
.slot__arm { position: relative; width: 56px; height: 250px; }
.slot__lever { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.slot__lever-track { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 56px; border-radius: 11px; background: linear-gradient(90deg, #4a5358, #717c82 50%, #4a5358); box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 2px 3px rgba(255, 255, 255, .3); }
/* rod + knob form ONE rigid arm that pivots at the track, so the ball stays on the rod when pulled */
.slot__lever-arm { position: absolute; bottom: 38px; left: 50%; width: 34px; height: 150px; transform: translateX(-50%); transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.5, 0, .25, 1.45); }
.slot__lever-rod { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 10px; height: 128px; border-radius: 6px; background: linear-gradient(90deg, #7c878d, #f2f6f7 45%, #7c878d); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.slot__lever-knob { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #ff9b6b, var(--coral) 55%, var(--coral-d)); box-shadow: 0 8px 16px rgba(0, 0, 0, .45), inset 0 3px 4px rgba(255, 255, 255, .55); animation: knobIdle 2.4s ease-in-out infinite; }
@keyframes knobIdle { 0%, 100% { box-shadow: 0 8px 16px rgba(0, 0, 0, .45), inset 0 3px 4px rgba(255, 255, 255, .55), 0 0 0 0 rgba(255, 194, 74, 0); } 50% { box-shadow: 0 8px 16px rgba(0, 0, 0, .45), inset 0 3px 4px rgba(255, 255, 255, .55), 0 0 14px 3px rgba(255, 194, 74, .5); } }
.slot__lever:hover .slot__lever-arm { transform: translateX(-50%) rotate(7deg); }
.slot__lever.is-pulled .slot__lever-arm { transform: translateX(-50%) rotate(36deg); }

/* Beachcomber Bonus — hold-and-spin overlay + bucket scatter tile */
.slot__tile--bucket { display: grid; place-items: center; font-size: 2.4rem; background: radial-gradient(circle at 50% 32%, #ffe9b0, #ffc24a 62%, #e8a32b); box-shadow: inset 0 0 0 3px var(--coral-d); }
.slot__bonus { position: absolute; inset: 0; z-index: 20; border-radius: 30px 30px 26px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px; text-align: center; background: linear-gradient(165deg, rgba(6, 50, 61, .975), rgba(4, 36, 45, .985)); animation: bonusIn .4s ease; }
.slot__bonus.is-out { animation: bonusOut .38s ease forwards; }
@keyframes bonusIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bonusOut { to { opacity: 0; transform: scale(.94); } }
.slot__bonus h3 { font-family: var(--display); font-weight: 800; color: var(--sun); font-size: 1.32rem; text-shadow: 0 0 12px rgba(255, 194, 74, .7); }
.slot__bonus-sub { color: rgba(255, 253, 246, .82); font-size: .85rem; line-height: 1.4; max-width: 340px; margin-top: -4px; }
.slot__bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; width: 100%; max-width: 310px; }
.slot__bonus-slot { aspect-ratio: 1; border-radius: 12px; position: relative; overflow: hidden; background: rgba(255, 253, 246, .06); border: 2px dashed rgba(127, 230, 238, .4); background-size: cover; background-position: center; }
.slot__bonus-slot.is-filled { border-style: solid; border-color: var(--sun); animation: slotPop .42s cubic-bezier(.34, 1.7, .5, 1); }
@keyframes slotPop { 0% { transform: scale(.3) rotate(-12deg); } 60% { transform: scale(1.12) rotate(5deg); } 100% { transform: scale(1) rotate(0); } }
.slot__bonus-val { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); background: var(--coral-d); color: #fff; font-family: var(--display); font-weight: 800; font-size: .68rem; padding: 2px 8px; border-radius: 100px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.slot__bonus-meta { font-family: var(--display); font-weight: 700; color: var(--paper); font-size: .95rem; }
.slot__bonus-meta b { color: var(--sun); }
.slot__bonus-flash { min-height: 1.3em; color: var(--aqua-2); font-family: var(--display); font-weight: 700; font-size: .95rem; }
.slot__bonus.is-jackpot { box-shadow: inset 0 0 0 4px var(--sun), inset 0 0 60px rgba(255, 194, 74, .4); }

.slot__cta { text-align: center; margin-top: 24px; color: rgba(255, 253, 246, .82); font-size: .98rem; }
.slot__cta a { color: var(--sun-2); font-weight: 700; white-space: nowrap; }
.slot__cta a:hover { color: var(--sun); }

.slot-burst { position: fixed; z-index: 9000; pointer-events: none; font-size: 26px; will-change: transform, opacity; }

@media (max-width: 560px) {
  .slot__arm { display: none; }
  .slot__reels { gap: 6px; }
  .slot__cabinet { padding: 14px 12px 18px; }
  .slot__jackpot-sign { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .slot__bulb, .slot__lever-knob, .slot__spin.is-spinning .slot__spin-ic, .slot.is-jackpot .slot__cabinet, .slot.is-jackpot .slot__jackpot-sign, .slot__meter.is-flash, .slot__bonus, .slot__bonus-slot.is-filled { animation: none; }
}
