/* ===== SPICY SPIN ===== */
/* ===================================================================
   SPICY SPIN
   Append this entire block to the bottom of styles.css
   All class names prefixed with: spicy-spin-
   =================================================================== */

/* --- WRAPPER & START OVERLAY --- */

#game-spicy-spin {
  position: relative;
  background: #0d0018;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

#spicy-spin-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  background: radial-gradient(ellipse at 50% 30%, #3a0060 0%, #0d0018 70%);
  /* No-scroll start overlay: matches the shared .start-overlay contract
     (overflow-y:auto is the safety net, not the intended layout). The
     extra 480px min-height + 48px padding this override previously added
     — on top of the icon + title + how-to + two buttons already in this
     overlay — pushed total content past the viewport on many phones,
     triggering a visible scrollbar. Every child is pinned; only the
     how-to card absorbs overflow via its own bounded internal scroll. */
  overflow: hidden;
}
#spicy-spin-start > * { flex-shrink: 0; }
#spicy-spin-start .so-howto { flex: 0 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.spicy-spin-start-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 8px;
  text-shadow: 0 0 32px rgba(180, 80, 255, 0.9), 0 2px 8px rgba(0,0,0,0.7);
}

.spicy-spin-start-sub {
  font-size: 1rem;
  color: rgba(220, 180, 255, 0.8);
  margin: 0 0 40px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spicy-spin-start-button {
  background: linear-gradient(135deg, #9933cc 0%, #cc44ff 50%, #7700bb 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  padding: 18px 48px;
  cursor: pointer;
  box-shadow: 0 0 32px rgba(160, 50, 255, 0.6), 0 4px 16px rgba(0,0,0,0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.spicy-spin-start-button:active {
  transform: scale(0.96);
  box-shadow: 0 0 16px rgba(160, 50, 255, 0.4);
}

/* --- SETUP SCREEN --- */

.spicy-spin-setup-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 480px;
  background: radial-gradient(ellipse at 50% 20%, #2a0050 0%, #0d0018 65%);
  padding: 0 0 40px;
}

.spicy-spin-setup-inner {
  width: 100%;
  max-width: 480px;
  padding: 32px 24px;
}

.spicy-spin-setup-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px;
  text-shadow: 0 0 20px rgba(180, 60, 255, 0.7);
}

.spicy-spin-setup-sub {
  font-size: 0.88rem;
  color: rgba(200, 160, 255, 0.7);
  margin: 0 0 28px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spicy-spin-player-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.spicy-spin-name-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(160, 60, 255, 0.5);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.spicy-spin-name-input::placeholder {
  color: rgba(200, 150, 255, 0.45);
}

.spicy-spin-name-input:focus {
  border-color: rgba(200, 100, 255, 0.9);
  background: rgba(255, 255, 255, 0.10);
}

.spicy-spin-add-button {
  background: linear-gradient(135deg, #7722bb, #aa44ee);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform 0.12s, opacity 0.12s;
  white-space: nowrap;
}

.spicy-spin-add-button:active {
  transform: scale(0.94);
  opacity: 0.85;
}

.spicy-spin-player-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spicy-spin-player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(160, 60, 255, 0.12);
  border: 1px solid rgba(160, 60, 255, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
}

.spicy-spin-player-name {
  color: #e8d0ff;
  font-size: 0.95rem;
  font-weight: 600;
}

.spicy-spin-remove-button {
  background: none;
  border: none;
  color: rgba(255, 100, 160, 0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.spicy-spin-remove-button:hover {
  color: #ff4da6;
  background: rgba(255, 77, 166, 0.12);
}

.spicy-spin-launch-button {
  width: 100%;
  background: linear-gradient(135deg, #8800cc 0%, #cc33ff 50%, #6600aa 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  padding: 18px;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(160, 50, 255, 0.5), 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.spicy-spin-launch-button:disabled {
  opacity: 0.35;
  box-shadow: none;
  cursor: not-allowed;
}

.spicy-spin-launch-button:not(:disabled):active {
  transform: scale(0.97);
  box-shadow: 0 0 14px rgba(160, 50, 255, 0.35);
}

/* --- GAME SCREEN --- */

.spicy-spin-game-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 480px;
  background: radial-gradient(ellipse at 50% 20%, #220044 0%, #0d0018 70%);
  padding-bottom: 32px;
  position: relative;
}

.spicy-spin-turn-banner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 12px;
  background: linear-gradient(180deg, rgba(80, 0, 120, 0.6) 0%, transparent 100%);
}

.spicy-spin-turn-label {
  font-size: 0.72rem;
  color: rgba(200, 150, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.spicy-spin-turn-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(180, 80, 255, 0.7);
  letter-spacing: -0.01em;
}

.spicy-spin-arena {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.spicy-spin-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(60, 0, 90, 0.5) 0%, rgba(10, 0, 18, 0.9) 75%);
  box-shadow: 0 0 40px rgba(120, 0, 200, 0.25), inset 0 0 30px rgba(0,0,0,0.4);
  transition: box-shadow 0.3s;
}

.spicy-spin-canvas:active {
  box-shadow: 0 0 60px rgba(180, 50, 255, 0.45), inset 0 0 30px rgba(0,0,0,0.4);
}

.spicy-spin-tap-hint {
  font-size: 0.82rem;
  color: rgba(200, 150, 255, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
  min-height: 20px;
  text-align: center;
}

/* --- CARD OVERLAY --- */

.spicy-spin-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 0, 16, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: spicy-spin-fade-in 0.25s ease;
}

@keyframes spicy-spin-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.spicy-spin-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, #1e0040 0%, #0d0018 100%);
  border: 1.5px solid rgba(180, 80, 255, 0.35);
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(140, 30, 255, 0.4), 0 16px 40px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: spicy-spin-card-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spicy-spin-card-pop {
  from { transform: scale(0.82) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.spicy-spin-card-inner {
  padding: 32px 28px 28px;
}

/* Front face — pick screen */

.spicy-spin-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spicy-spin-landed-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin: 0;
  text-shadow: 0 0 14px rgba(200, 100, 255, 0.6);
}

.spicy-spin-pick-prompt {
  font-size: 0.8rem;
  color: rgba(200, 150, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.spicy-spin-pick-row {
  display: flex;
  gap: 14px;
  width: 100%;
}

.spicy-spin-pick-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.spicy-spin-pick-button:active {
  transform: scale(0.95);
}

.spicy-spin-pick-q {
  background: linear-gradient(145deg, #5c0040, #cc0077);
  box-shadow: 0 4px 20px rgba(200, 0, 100, 0.4);
}

.spicy-spin-pick-d {
  background: linear-gradient(145deg, #1a0060, #6600cc);
  box-shadow: 0 4px 20px rgba(100, 0, 200, 0.4);
}

.spicy-spin-pick-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.spicy-spin-pick-label {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.spicy-spin-pick-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Back face — card text */

.spicy-spin-card-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: spicy-spin-fade-in 0.2s ease;
}

.spicy-spin-card-type {
  font-size: 1rem;
  font-weight: 800;
  color: rgba(220, 160, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  text-align: center;
}

.spicy-spin-card-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
  margin: 0;
  min-height: 60px;
}

.spicy-spin-next-button {
  background: linear-gradient(135deg, #440088, #8822dd);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(140, 30, 255, 0.4);
  transition: transform 0.15s, opacity 0.15s;
}

.spicy-spin-next-button:active {
  transform: scale(0.96);
  opacity: 0.85;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 400px) {
  .spicy-spin-start-title {
    font-size: 2rem;
  }
  .spicy-spin-card-text {
    font-size: 1rem;
  }
  .spicy-spin-pick-label {
    font-size: 0.85rem;
  }
}


