@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Montserrat:wght@400;600;800;900&display=swap');

:root {
  --bg-color: #0b0114;
  --panel-bg: rgba(22, 6, 38, 0.88);
  --panel-border: #ff7518;
  --color-orange: #ff7518;
  --color-purple: #9d4edd;
  --color-green: #39ff14;
  --color-blood: #ff2a2a;
  --color-gold: #ffb703;
  --text-main: #f8f9fa;
  --text-dim: #b8b8b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(157, 78, 221, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(255, 117, 24, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(57, 255, 20, 0.08) 0%, transparent 40%);
}

/* Floating Spooky Fog & Bats */
.fog-layer {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(ellipse at bottom, rgba(74, 20, 140, 0.15) 0%, transparent 70%);
  z-index: 1;
}

.bat {
  position: absolute;
  font-size: 24px;
  user-select: none;
  pointer-events: none;
  animation: flyBat 18s linear infinite;
  z-index: 2;
  opacity: 0.6;
}

@keyframes flyBat {
  0% { transform: translate(-100px, 80vh) rotate(10deg) scale(0.6); }
  25% { transform: translate(30vw, 30vh) rotate(-15deg) scale(0.9); }
  50% { transform: translate(60vw, 60vh) rotate(15deg) scale(0.7); }
  75% { transform: translate(85vw, 15vh) rotate(-10deg) scale(1); }
  100% { transform: translate(110vw, -50px) rotate(20deg) scale(0.6); }
}

/* Header & Controls */
header {
  position: relative;
  z-index: 10;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 117, 24, 0.3);
  background: rgba(11, 1, 20, 0.85);
  backdrop-filter: blur(8px);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.spooky-logo {
  font-family: 'Creepster', cursive;
  font-size: 2rem;
  color: var(--color-orange);
  text-shadow: 0 0 10px rgba(255, 117, 24, 0.8), 0 0 20px rgba(255, 42, 42, 0.5);
  letter-spacing: 2px;
}

.header-controls {
  display: flex;
  gap: 0.75rem;
}

.btn-icon {
  background: rgba(157, 78, 221, 0.2);
  border: 1px solid var(--color-purple);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-icon:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  box-shadow: 0 0 12px var(--color-orange);
  transform: translateY(-2px);
}

/* Main Container */
main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Glass Panels */
.spooky-card {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 117, 24, 0.25), inset 0 0 15px rgba(157, 78, 221, 0.2);
  padding: 2.5rem;
  max-width: 720px;
  width: 100%;
  text-align: center;
  position: relative;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.5s ease-out;
}

/* Landing Page Split Layout (50/50: Doorbell Video & Party Form) */
.spooky-card.landing-card,
#screenLogin.landing-card {
  max-width: 1200px !important;
  width: 95% !important;
  padding: 2.2rem 2.5rem;
  margin: 0 auto;
}

.landing-split {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}

.landing-video-pane {
  flex: 1 1 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.landing-content-pane {
  flex: 1 1 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.landing-content-pane .spooky-title {
  font-size: 2.3rem;
  margin-bottom: 0.4rem;
}

.landing-content-pane .spooky-subtitle {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.landing-content-pane .guardian-box {
  margin: 0.5rem auto 1.5rem auto;
  width: 170px;
  height: 170px;
}

/* Doorbell Video Container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--color-orange);
  box-shadow: 0 0 25px rgba(255, 117, 24, 0.45), 0 0 45px rgba(157, 78, 221, 0.35);
  background: #000;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container:hover {
  transform: scale(1.02);
  border-color: var(--color-gold);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.7), 0 0 60px rgba(157, 78, 221, 0.6);
}

.video-container.ringing {
  animation: bellJiggle 0.6s ease-in-out;
}

#doorbellVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
  background: #000;
}

.doorbell-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 5, 50, 0.88);
  backdrop-filter: blur(6px);
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 800;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  z-index: 4;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bell-icon {
  display: inline-block;
  animation: bellSwing 2s infinite ease-in-out;
}

.doorbell-caption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--color-gold);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

@keyframes bellSwing {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-5deg); }
}

@keyframes bellJiggle {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.04) rotate(-3deg); }
  30% { transform: scale(1.04) rotate(3deg); }
  45% { transform: scale(1.03) rotate(-2deg); }
  60% { transform: scale(1.02) rotate(2deg); }
  75% { transform: scale(1.01) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.spooky-title {
  font-family: 'Creepster', cursive;
  font-size: 2.8rem;
  color: var(--color-orange);
  letter-spacing: 3px;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 15px rgba(255, 117, 24, 0.7);
}

.spooky-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Guardian Dog Rohamis Frame */
.guardian-box {
  margin: 1rem auto 2rem auto;
  position: relative;
  width: 200px;
  height: 200px;
}

.guardian-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-orange);
  box-shadow: 0 0 25px rgba(255, 117, 24, 0.8), 0 0 50px rgba(157, 78, 221, 0.5);
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

.guardian-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a0845;
  border: 2px solid var(--color-green);
  color: var(--color-green);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 117, 24, 0.6); }
  100% { transform: scale(1.03); box-shadow: 0 0 35px rgba(255, 117, 24, 0.9), 0 0 20px var(--color-purple); }
}

/* Code Input Form */
.code-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 440px;
  margin: 0 auto;
}

.code-input {
  background: rgba(10, 2, 20, 0.9);
  border: 2px solid var(--color-purple);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 1.3rem;
  color: var(--color-green);
  text-align: center;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.code-input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 20px rgba(255, 117, 24, 0.7), inset 0 0 10px rgba(0, 0, 0, 0.9);
}

.btn-spooky {
  background: linear-gradient(135deg, #ff7518, #d00000);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 117, 24, 0.6);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-spooky:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 117, 24, 0.9);
}

/* Error banner */
.msg-error {
  color: var(--color-blood);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  display: none;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* User Profile Header (When Logged in) */
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 840px;
  background: rgba(30, 8, 50, 0.9);
  border: 2px solid var(--color-purple);
  border-radius: 16px;
  padding: 0.8rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-orange);
  box-shadow: 0 0 10px var(--color-orange);
}

.player-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-orange);
}

.player-status {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Stage Progress Bar */
.progress-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  transition: all 0.3s;
}

.progress-step.completed {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #000;
  box-shadow: 0 0 10px var(--color-green);
}

.progress-step.active {
  border-color: var(--color-orange);
  background: var(--color-orange);
  color: #fff;
  box-shadow: 0 0 12px var(--color-orange);
}

/* Trials / Riddles Container */
.riddle-box {
  background: rgba(14, 2, 28, 0.85);
  border: 2px solid var(--color-purple);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.riddle-title {
  color: var(--color-gold);
  font-family: 'Creepster', cursive;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.riddle-text {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.riddle-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.option-btn {
  background: rgba(45, 10, 78, 0.8);
  border: 2px solid rgba(157, 78, 221, 0.6);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.option-btn:hover {
  background: rgba(255, 117, 24, 0.25);
  border-color: var(--color-orange);
  transform: translateX(6px);
}

.option-btn.correct {
  background: rgba(57, 255, 20, 0.3) !important;
  border-color: var(--color-green) !important;
  color: var(--color-green) !important;
}

.option-btn.wrong {
  background: rgba(255, 42, 42, 0.3) !important;
  border-color: var(--color-blood) !important;
  color: var(--color-blood) !important;
}

/* Games Section */
.game-viewport-card {
  max-width: 760px;
  width: 100%;
}

.game-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 1rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 117, 24, 0.5);
  border: 3px solid var(--color-orange);
  background: #000;
}

canvas#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.game-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(157, 78, 221, 0.3);
  border: 1px solid var(--color-purple);
  color: #fff;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--color-purple);
  box-shadow: 0 0 15px var(--color-purple);
}

/* Mobile Warning Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: #18052b;
  border: 3px solid var(--color-orange);
  border-radius: 20px;
  padding: 2.2rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 117, 24, 0.8);
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scream Flash Overlay */
.scream-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  background: radial-gradient(circle, rgba(255, 30, 30, 0.55) 0%, rgba(138, 43, 226, 0.5) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.08s ease;
}

.scream-flash.active {
  opacity: 1;
}

/* VIP Halloween Invitation Ticket (Victory Screen) */
.victory-screen-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  animation: fadeIn 0.6s ease-out;
}

/* Full-Window Wings (Pinned to Window Edges on Desktop) */
.victory-wing {
  position: fixed;
  top: 90px;
  bottom: 20px;
  width: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 8;
  pointer-events: auto;
}

.victory-wing-left {
  left: 14px;
}

.victory-wing-right {
  right: 14px;
}

.wing-sprite-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.wing-sprite-card:hover {
  transform: scale(1.15) rotate(3deg);
}

.wing-sprite-card.spinning {
  animation: backflip 0.7s ease-in-out;
}

.wing-sprite-img {
  width: 100px;
  height: 155px;
  border-radius: 14px;
  border: 3px solid var(--color-orange);
  box-shadow: 0 0 18px rgba(255, 117, 24, 0.6), 0 0 30px rgba(157, 78, 221, 0.5);
  object-fit: cover;
  background: #000;
  animation: floatSprite 3s ease-in-out infinite alternate;
}

.wing-sprite-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-gold);
  background: rgba(20, 2, 35, 0.85);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--color-purple);
  white-space: nowrap;
}

.ticket-container {
  background: linear-gradient(145deg, #1b072c, #0a0114);
  border: 4px solid var(--color-gold);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 40px rgba(255, 183, 3, 0.5), inset 0 0 30px rgba(157, 78, 221, 0.3);
  text-align: center;
  z-index: 10;
}

.scroll-down-notice {
  background: linear-gradient(90deg, rgba(255, 117, 24, 0.95), rgba(255, 183, 3, 0.95), rgba(255, 117, 24, 0.95));
  color: #120024;
  padding: 0.75rem 1.2rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.8), 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
  animation: noticePulse 2s ease-in-out infinite;
}

.scroll-notice-icon {
  font-size: 1.5rem;
  animation: bounceDown 1.2s ease-in-out infinite alternate;
}

@keyframes noticePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 117, 24, 1);
  }
}

@keyframes bounceDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

.ticket-header {
  border-bottom: 2px dashed rgba(255, 183, 3, 0.5);
  padding-bottom: 1.5rem;
  margin-bottom: 1.8rem;
}

.ticket-badge {
  display: inline-block;
  background: var(--color-gold);
  color: #000;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.ticket-guest-spotlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Spotlight Guest Full-Body Costume */
.ticket-fullbody-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticket-guest-fullbody {
  width: 130px;
  height: 195px;
  border-radius: 16px;
  border: 4px solid var(--color-gold);
  object-fit: cover;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 117, 24, 0.6);
  background: #000;
  animation: floatSprite 3.2s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ticket-guest-fullbody:hover {
  transform: scale(1.1) rotate(2deg);
}

.ticket-guest-fullbody.spinning {
  animation: backflip 0.7s ease-in-out;
}

.fullbody-badge {
  margin-top: 6px;
  background: #2a0845;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.ticket-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.ticket-item {
  background: rgba(45, 12, 75, 0.6);
  border: 1px solid rgba(255, 117, 24, 0.4);
  border-radius: 12px;
  padding: 1rem;
}

.ticket-item-label {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticket-item-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

/* Crucial Rules Box */
.rules-card {
  background: rgba(255, 42, 42, 0.15);
  border: 2px solid var(--color-blood);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.rules-card h4 {
  color: var(--color-blood);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rules-list li {
  font-size: 1.05rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

/* Replay Game Levels Card on Final Invitation */
.replay-games-card {
  background: rgba(22, 6, 38, 0.85);
  border: 2px solid var(--color-purple);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.35);
  text-align: center;
}

.replay-title {
  font-family: 'Creepster', cursive;
  font-size: 1.6rem;
  color: var(--color-gold);
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.6);
}

.replay-subtitle {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 1.2rem;
}

.replay-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  justify-content: center;
}

.replay-btn {
  background: linear-gradient(145deg, #2b0b45, #150326);
  border: 2px solid var(--color-orange);
  border-radius: 14px;
  padding: 0.8rem 0.5rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(255, 117, 24, 0.3);
}

.replay-btn:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.8);
  background: linear-gradient(145deg, #42126b, #21053d);
}

.replay-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #000;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--color-orange);
}

.replay-btn:hover .replay-num {
  background: var(--color-gold);
  box-shadow: 0 0 12px var(--color-gold);
}

.replay-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.replay-info strong {
  font-size: 0.85rem;
  color: #fff;
}

.replay-info small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Admin Table */
.admin-table-wrapper {
  max-height: 400px;
  overflow-y: auto;
  margin: 1.5rem 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
  background: rgba(157, 78, 221, 0.3);
  color: var(--color-gold);
}

.copy-btn {
  background: var(--color-orange);
  color: #000;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.75rem;
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  padding: 1.2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 117, 24, 0.2);
}

/* Responsive tweaks */
@media (max-width: 860px) {
  .landing-split {
    flex-direction: column;
    gap: 1.8rem;
  }
  .landing-video-pane, .landing-content-pane {
    width: 100%;
    flex: 1 1 100%;
  }
  .video-container {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .spooky-card {
    padding: 1.5rem;
  }
  .spooky-card.landing-card {
    padding: 1.2rem;
  }
  .spooky-title {
    font-size: 2.2rem;
  }
  .landing-content-pane .spooky-title {
    font-size: 2rem;
  }
  .guardian-box {
    width: 140px;
    height: 140px;
  }
  .ticket-guest-spotlight {
    flex-direction: column;
  }
}

/* Full-Window Bottom Squad Parade */
.victory-parade-card {
  width: 100vw;
  max-width: 100%;
  margin-top: 2.5rem;
  padding: 2.2rem 1.5rem;
  background: linear-gradient(180deg, rgba(25, 4, 45, 0.9), rgba(8, 0, 16, 0.98));
  border-top: 3px solid var(--color-orange);
  border-bottom: 3px solid var(--color-gold);
  box-shadow: 0 0 50px rgba(255, 117, 24, 0.4), inset 0 0 30px rgba(157, 78, 221, 0.3);
  text-align: center;
  position: relative;
  z-index: 10;
}

.parade-title {
  font-family: 'Creepster', cursive;
  font-size: 2.4rem;
  color: var(--color-gold);
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  margin-bottom: 0.3rem;
}

.parade-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}

.parade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  justify-items: center;
}

.parade-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: rgba(40, 8, 65, 0.75);
  border: 2px solid rgba(255, 117, 24, 0.45);
  border-radius: 16px;
  padding: 0.8rem 0.6rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  user-select: none;
}

.parade-item:hover {
  transform: translateY(-8px) scale(1.06);
  border-color: var(--color-gold);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 35px rgba(255, 117, 24, 0.5);
  background: rgba(65, 15, 105, 0.95);
}

.parade-item.spinning {
  animation: backflip 0.7s ease-in-out;
}

.parade-img {
  width: 105px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--color-orange);
  background: #000;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.8);
  animation: floatSprite 3.5s ease-in-out infinite alternate;
}

.parade-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.parade-tag {
  font-size: 0.72rem;
  color: var(--color-gold);
  font-weight: 700;
  background: rgba(10, 1, 20, 0.8);
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
}

@keyframes backflip {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.25) translateY(-25px) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

@keyframes floatSprite {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Hide wings on narrower screens to prevent overlap */
@media (max-width: 1240px) {
  .victory-wing {
    display: none !important;
  }
}

/* Clean Print Styles for Ticket */
@media print {
  header, footer, .victory-wing, .victory-parade-card, .btn-spooky, #playerBar, .bat, .fog-layer, .scream-flash {
    display: none !important;
  }
  body, main {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }
  .ticket-container {
    border: 3px solid #000 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    max-width: 100% !important;
  }
  .ticket-item {
    background: #f5f5f5 !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
  }
  .ticket-item-value {
    color: #000 !important;
  }
  .rules-card {
    border: 2px solid #333 !important;
    background: #fff !important;
    color: #000 !important;
  }
  .rules-card h4 {
    color: #000 !important;
  }
}
