
  /* Column alignment */
  .desktop-left {
    justify-self: start;
  }

  .desktop-center {
    justify-self: center;
  }

  .desktop-right {
    justify-self: end;
  }

/* Main board container */
.board-box {
  border: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* Player info in game screen */
.player-info {
  background: linear-gradient(135deg, #c62828d7, #b71c1ce0);
  padding: 2rem 2rem 2rem;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem 2rem;
  box-sizing: border-box;
}

.player-info::before,
.player-info::after {
  content: "";
  position: absolute;
  top: -22px;
  width: 30px;
  height: 30px;
  background: #f6d365;
  border-radius: 50% 50% 50% 0;
}

.player-info::before {
  left: 50%;
  transform: translateX(-100%) rotate(-45deg);
}

.player-info::after {
  left: 50%;
  transform: rotate(45deg);
}

.player-label {
  color: whitesmoke;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin: 0 0 0.25rem 0;
}

.player-name {
  color: whitesmoke;
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
}

/* Track labels */
.track-label {
  color: #667eea;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Event area styling */
.event-title {
  color: whitesmoke;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.event-text {
  color: whitesmoke;
  text-align: center;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

/* Dice info styling */
.dice-info {
  color: red;
  font-weight: 700;
  font-size: 1rem;
}

/* Result screens styling */
.result-title {
  color: #667eeaa6;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(102, 126, 234, 0.2);
}

.result-message {
  max-width: 600px;
  margin: 0 auto;
}

/* Divider line */
.wire-divider {
  border-top: 2px solid whitesmoke;
  opacity: 0.3;
}

/* 3D depth */
:root {
  --die-size: 120px;
  --die-z: calc(var(--die-size) / 2);
}

/* The stage */
#gameDie.dice {
  width: var(--die-size);
  height: var(--die-size);
  position: relative;
  transform-style: preserve-3d;
}

/* the cube that rotatwes to show faces */
#gameDie .cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 450ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* spin while rolling */
#gameDie.rolling .cube {
  animation: diceSpin 700ms linear infinite;
}

@keyframes diceSpin {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.die {
  width: 100%;
  height: 100%;
  position: relative;
}

#gameDie .face {
  position: absolute;
  inset: 0;
  border-radius: 16px;

  /* solid body look */
  background: linear-gradient(145deg, #c40000, #8f0000);
  border: 3px solid #4a0000;

  /* depth + bevel */
  box-shadow:
    inset 0 6px 12px rgba(255, 255, 255, 0.25),
    inset 0 -10px 18px rgba(0, 0, 0, 0.45),
    0 16px 30px rgba(0, 0, 0, 0.4);

  /* stop “see through” / mirrored backs */
  backface-visibility: hidden;
}

#gameDie .face::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow:
    inset 0 10px 18px rgba(0, 0, 0, 0.35),
    inset 0 -6px 10px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

#gameDie .face--1 { transform: rotateY(0deg) translateZ(var(--die-z)); }
#gameDie .face--2 { transform: rotateY(90deg) translateZ(var(--die-z)); }
#gameDie .face--3 { transform: rotateY(180deg) translateZ(var(--die-z)); }
#gameDie .face--4 { transform: rotateY(-90deg) translateZ(var(--die-z)); }
#gameDie .face--5 { transform: rotateX(90deg) translateZ(var(--die-z)); }
#gameDie .face--6 { transform: rotateX(-90deg) translateZ(var(--die-z)); }

#gameDie .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);

  background: radial-gradient(circle at 30% 30%, #fff4a8, #f2c400);

  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.22),
    inset 0 -4px 7px rgba(0, 0, 0, 0.7);

  backface-visibility: hidden;
}

/* Track container - Hide track visuals but keep structure */
.track {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 120px
}

/* Finish label */
.finish-label {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: red;
  
  padding: 2px 1px !important;
  border-radius: 6px;
  overflow: hidden;
}

/*=================================================================================
RUNNING REINDEER SPRITE OVERRIDES
=================================================================================*/

.token {
  width: 122px;  
  height: 90px;  
  overflow:hidden; 
  top: auto;
  bottom: 0;
  transform: none;
  z-index: 5;
  position: absolute;
  display: block;
}

.token-img {
  width: 610px;
  height: 90px;

  /* remove the circle / border look from old token style */
  position: absolute;
  left: 0;
  top: 0;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  filter: none;

  animation: reindeer-run 0.6s steps(4) infinite;
}

@keyframes reindeer-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-488px); } /* 4 shifts across 5 frames */
}

/* Optional: pause run animation if effects are OFF */
.no-anim .token-img {
  animation: none !important;
}

/*=================================================================================
END RUNNING REINDEER SPRITE OVERRIDES
=================================================================================*/

/* Disable ALL animations, transitions, and hover effects when effects are OFF */
.no-anim,
.no-anim * {
  animation: none !important;
  transition: none !important;
}

.no-anim *:hover {
  transform: none !important;
}

/* Disable hover interactions completely */
.no-anim .reindeer-btn:hover::before {
  opacity: 0 !important;
}

.no-anim button:hover {
  transform: none !important;
}

.no-anim .game-btn:hover {
  transform: none !important;
}

.no-anim .reindeer-btn:hover {
  transform: none !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #111 !important;
  border-color: #667eea !important;
}

.no-anim .reindeer-btn:hover .reindeer-img {
  transform: none !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)) !important;
}

.no-anim .control-toggle:hover {
  transform: none !important;
}

.no-anim .rudolph-img:hover {
  transform: none !important;
}

.no-anim .spotify-embed:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.no-anim #settingsBtn:hover {
  color: #667eea !important;
}

/* Token positions (0 to 10) */
.pos-0 {
  left: 6px;
}
.pos-1 {
  left: 10%;
}
.pos-2 {
  left: 20%;
}
.pos-3 {
  left: 30%;
}
.pos-4 {
  left: 40%;
}
.pos-5 {
  left: 50%;
}
.pos-6 {
  left: 60%;
}
.pos-7 {
  left: 70%;
}
.pos-8 {
  left: 80%;
}
.pos-9 {
  left: 90%;
}
.pos-10 {
  left: calc(100% - 48px);
}

/* Modal style */
.modal-content {
  border: 2px solid #667eea;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-header {
  border-bottom: 2px solid #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.modal-title {
  color: #fff;
}

.btn-close {
  filter: brightness(0) invert(1);
}

/* Reindeer grid layout */
.reindeer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  justify-items: center;
}

/* Reindeer button layout */
.reindeer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  min-width: 140px;
  background: linear-gradient(180deg,
  #fff2c2 0%,
  #f0d07a 100%
  );
  border: 3px solid #667eea;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reindeer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.reindeer-btn:hover::before {
  opacity: 1;
}

.reindeer-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: #fff;
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.reindeer-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.reindeer-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.reindeer-btn:hover .reindeer-img {
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.3));
}

.reindeer-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* Start button */
#startGameBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#startGameBtn:not(:disabled) {
  background: #667eea;
  border-color: #667eea;
}

#startGameBtn:not(:disabled):hover {
  background: #764ba2;
  border-color: #764ba2;
}

/* Snow using Particles.js */
#particles-js {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: transparent;
}

 #screenGame #particles-js canvas {
  background: transparent !important;
} 

#screenGame .board-box > *:not(#particles-js) {
  position: relative;
  z-index: 2;
} 

/* Forest Background Animation */
#screenGame .board-box {
  background-image: url('../images/forest/forest2.jpg');
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
  position: relative;
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 center;
  animation: forest-run 25s linear infinite;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  /* bottom race stage */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@keyframes forest-run {
  0% {
    background-position: 0px center;
  }
  100% {
    background-position: -2000px center;
  }
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7rem;
}

.hud-left {
  flex: 0 0 auto;
}

.hud-right {
  flex: 0 0 auto;
}


.race-stage {
  margin-top: auto;
  position: relative;
  left: 0;
  right: 0;
  bottom: 1px;
  padding: 2 16px;
}

.race-lane {
  margin-bottom: 0 !important;
  padding: 1;
  background: transparent;
  box-shadow: none;
}

.lane-name {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #667eea;
  padding: 10px;
  border-radius: 999px;
}

.image-btn,
.image-btn:hover,
.image-btn:focus,
.image-btn:active {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none !important;
  outline: none;
}
 
.spin-btn-img {
  width: 200px;
  height: auto;
  cursor: pointer;
}

.spin-btn-img:hover {
  transform: scale(1.05);
}

/* Winner Composition Layout */
.winner-composition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.winner-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Animation for winner reindeer image */
#winnerReindeerImg {
  animation: winnerReindeerBounce 1.2s ease-in-out infinite;
}

@keyframes winnerReindeerBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  }
  25% {
    transform: translateY(-12px) scale(1.05) rotate(-5deg);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.6);
  }
  75% {
    transform: translateY(-12px) scale(1.05) rotate(5deg);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.6);
  }
}

/* Animation for Rudolph */
#screenLose .winner-img {
  animation: rudolphVictoryBounce 1.5s ease-in-out infinite;
}

@keyframes rudolphVictoryBounce {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
  }
  30% {
    transform: translateY(-15px) scale(1.08) rotate(-8deg);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.6);
  }
  70% {
    transform: translateY(-15px) scale(1.08) rotate(8deg);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.6);
  }
}

.arrow-icon {
  font-size: 3rem;
  color: #667eea;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: arrowSlide 1.5s ease-in-out infinite;
}

@keyframes arrowSlide {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(10px);
    opacity: 1;
  }
}

.red-nose-badge {
  font-size: 5rem;
  animation: redNoseBlink 1s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  overflow: hidden;
}

@keyframes redNoseBlink {
  0%,
  49% {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.9));
    transform: scale(1);
  }
  50%,
  100% {
    opacity: 0.3;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
    transform: scale(0.95);
  }
}

/* Game Statistics */
.game-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
}

.stat-item {
  display: flex;
  color: black;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-label {
  font-size: 1.1rem;
  color: #555450;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

.stat-value {
  font-size: 1.5rem;
  color: black;
  font-weight: 700;
}

/* Victory distinction */
.win-line.player-win {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  animation: winPulse 2s ease-in-out infinite;
}

.win-line.rudolph-win {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

@keyframes winPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6);
  }
}

.win-title {
  color: #10b981;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(16, 185, 129, 0.3);
}

.lose-title {
  color: #ef4444;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(239, 68, 68, 0.3);
}

.dice-controls {
  display: flex;
  align-items: center;
  gap: 3rem !important;
}
@media (max-width: 576px) {
  .dice-controls {
    flex-direction: column;
  }
}
