/* Global CSS setup */
:root {
  --backColor: #15151b;
  /* Deep Dark Background */
  --cardColor: rgba(255, 255, 255, 0.05);
  /* Glassmorphism Base */
  --fontColor: #ffffff;
  --fontColor2: #bbbbbb;
  --gray: #4a4a4e;
  --yellow: #ffd700;
  /* Richer Gold/Yellow */
  --yellowGlass: rgba(255, 215, 0, 0.15);
  /* Translucent Gold */
  --yellow2: #8b6b00;
  --blue: #00e5ff;
  /* Vibrant Cyan/Blue */
  --blueGlass: rgba(0, 229, 255, 0.15);
  /* Translucent Cyan */
  --blue2: #006064;
  --glassBorder: rgba(255, 255, 255, 0.1);
  --glassBlur: 15px;
  --fontzise: 8px;
  --fontFamilyPrimary: "Ubuntu", sans-serif;
  --fontFamilySecondary: 'Russo One', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--backColor);
  font-family: var(--fontFamilyPrimary);
  color: var(--fontColor);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  /* Mobile First: Adjust root scaling based on width */
  font-size: clamp(14px, 4vw, 18px);
}

#container {
  background-color: transparent;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Header Style Refinement */
header {
  height: auto;
  width: 100%;
  padding: 1.5rem 2rem;
  color: var(--fontColor);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glassBorder);
}

#logo h1 {
  font-family: var(--fontFamilySecondary);
  font-size: min(2.2rem, 8vw);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo-half-1 {
  color: var(--yellow);
}

.logo-half-2 {
  color: var(--blue);
}

nav {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 10px;
  color: var(--fontColor2);
  background: var(--cardColor);
  backdrop-filter: blur(var(--glassBlur));
  border: 1px solid var(--glassBorder);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.headDecoration {
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, var(--yellow) 50%, var(--blue) 50%);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Canvas / Board Styling (Responsive) */
#adicsGame {
  width: 95vw;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1/1;
  margin: 10px auto;
  border: 1px solid var(--glassBorder);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 8px;
  justify-content: center;
  align-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Container for each cell */
.game-cell-container {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--cardColor);
  border: 1px solid var(--glassBorder);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.game-cell-container:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Icons inside the containers are the interactive elements managed by IDs */
.game-cell-container>i {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-cell-container>i:active {
  transform: scale(0.9);
}

/* Pieces Styling */
.fa-circle-thin {
  color: rgba(255, 255, 255, 0.4) !important;
  /* Brighter unlocked dot */
}

.fa-circle {
  color: rgba(255, 255, 255, 0.25) !important;
  /* Brighter locked dot */
}

/* Locked placeholder */
.fa-leaf {
  color: #4caf50 !important;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 5px rgba(76, 175, 80, 0.4));
}

.fa-bolt {
  color: #ffcc00 !important;
  /* Cyber Gold */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 1)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 4px rgba(255, 204, 0, 0.4));
}

.fa-fire {
  color: #ff5722 !important;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 8px rgba(255, 87, 34, 0.5));
}

.fa-snowflake-o {
  color: #f0f8ff !important;
  /* Ice White for better contrast */
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(0, 229, 255, 0.6));
}

#adicsGame div#A0 {
  background-color: var(--blueGlass) !important;
  border: 3px solid var(--blue) !important;
  /* Thicker base border */
  box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.2);
}

#adicsGame div#E4 {
  background-color: var(--yellowGlass) !important;
  border: 3px solid var(--yellow) !important;
  /* Thicker base border */
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.2);
}

#adicsGame div#C2 {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 2px dashed rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Inverted look for C2 placeholders */
#adicsGame div#C2 i.fa-circle-thin {
  color: #000 !important;
  opacity: 0.8;
}

.c2-final-unlock {
  background-color: #ffffff !important;
  border: 4px solid #fff !important;
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.3) !important;
  animation: c2-pulse 2s infinite ease-in-out;
  z-index: 10;
}

/* Perfect Black Dot on White Background */
.c2-final-unlock i.fa-circle-thin {
  color: #000000 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Let player pieces keep colors but with sharp dark shadows for white BG */
.c2-final-unlock i.fa-leaf,
.c2-final-unlock i.fa-bolt,
.c2-final-unlock i.fa-fire {
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8)) !important;
}

/* Specifically for snow piece on white C2 background, make it slightly darker/steel blue */
.c2-final-unlock i.fa-snowflake-o {
  color: #2c3e50 !important;
}

@keyframes c2-pulse {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.08);
    filter: brightness(1.3);
  }
}

/* Control Buttons */
#actionGame {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
}

#setPlayer,
#setTurn,
#winner {
  font-family: var(--fontFamilySecondary);
  font-size: 1.2rem;
  padding: 1rem 3.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#setPlayer {
  background: linear-gradient(90deg, var(--yellow) 50%, var(--blue) 50%);
  color: #000;
}

#setTurn:hover,
#setPlayer:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.setTurnPlayerA {
  background-color: var(--yellow);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.setTurnPlayerB {
  background-color: var(--blue);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* HUD / Stats Display */
#statGame {
  width: 100%;
  max-width: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 10px 15px;
}

.player-card {
  position: relative;
  background: var(--cardColor);
  backdrop-filter: blur(var(--glassBlur));
  border: 1px solid var(--glassBorder);
  border-radius: 20px;
  padding: 15px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: currentColor;
  opacity: 0.3;
}

#playerACardBack {
  color: var(--yellow);
  height: auto;
  min-height: 120px;
}

#playerBCardBack {
  color: var(--blue);
  height: auto;
  min-height: 120px;
}

/* Active Player Effect */
.active-player {
  transform: scale(1.05);
  border-color: currentColor;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.08);
}

.active-player::before {
  opacity: 1;
  box-shadow: 0 0 15px currentColor;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-row h3 {
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-family: var(--fontFamilySecondary);
  font-size: 1.2rem;
  color: #fff;
}

.turn-indicator {
  margin-top: 10px;
  font-size: 0.8rem;
  font-family: var(--fontFamilySecondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Animations & Feedback */
@keyframes statPulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.2);
    filter: brightness(1.5);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.stat-pulse {
  animation: statPulse 0.4s ease-out;
  display: inline-block;
}

.depleted {
  opacity: 0.3;
  filter: grayscale(0.8);
}

.move-dots {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  justify-content: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.dot.active {
  background-color: currentColor;
  box-shadow: 0 0 15px currentColor, inset 0 0 5px rgba(255, 255, 255, 0.5);
}

.dot.used {
  opacity: 0.15;
  background-color: transparent;
}

/* Modal Refresh */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid var(--glassBorder);
  border-radius: 20px;
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-box h2 {
  font-family: var(--fontFamilySecondary);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-box p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: var(--fontColor2);
}

.modal-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.modal-btn {
  padding: 0.8rem 2rem;
  font-family: var(--fontFamilySecondary);
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.modal-btn.cancel {
  background: var(--gray);
  color: #fff;
}

.modal-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.2);
}

/* Celebration Result Modal */
.result-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(25px);
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.result-modal-overlay.show {
  opacity: 1;
  display: flex !important;
}

.result-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 420px;
  transform: translateY(30px);
  transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-modal-overlay.show .result-box {
  transform: translateY(0);
}

.result-title {
  font-family: var(--fontFamilySecondary);
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  background: linear-gradient(to bottom, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 2s infinite alternate;
}

.result-subtitle {
  font-family: var(--fontFamilySecondary);
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: var(--fontColor2);
  letter-spacing: 2px;
}

.result-winner-a .result-title {
  background: linear-gradient(to bottom, #fff, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.result-winner-b .result-title {
  background: linear-gradient(to bottom, #fff, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.play-again-btn {
  font-family: var(--fontFamilySecondary);
  font-size: 1.5rem;
  padding: 1.5rem 4rem;
  border-radius: 100px;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.play-again-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.4);
}

@keyframes titleGlow {
  from {
    filter: brightness(1);
  }

  to {
    filter: brightness(1.5);
  }
}

/* Notification Banner */
#notifications {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 1000;
}

.notification-banner {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  color: #fff;
  font-family: var(--fontFamilySecondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slide-down-fade 0.5s ease-out;
}

/* View Management */
.view-container {
  width: 100%;
  min-height: calc(100dvh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  animation: fadeIn 0.5s ease;
}

#gameView {
  justify-content: flex-start;
  padding-top: 1rem;
}

/* Lobby Card */
.lobby-card {
  width: 95%;
  max-width: 450px;
  background: var(--cardColor);
  backdrop-filter: blur(var(--glassBlur));
  border: 1px solid var(--glassBorder);
  border-radius: 24px;
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: slide-up-fade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lobby-card h2 {
  font-family: var(--fontFamilySecondary);
  letter-spacing: 4px;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.lobby-options,
.join-form,
.id-display {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mp-btn i {
  margin-right: 8px;
}

/* Short ID Display */
.short-id {
  font-family: var(--fontFamilySecondary);
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px dashed var(--glassBorder);
  margin: 0.8rem 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Pulse Animation for Waiting */
.waiting-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray);
  font-size: 0.9rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Color Selection Grid */
.color-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.color-btn {
  height: 120px;
  border-radius: 16px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
}

.color-btn.gold {
  border-color: rgba(255, 215, 0, 0.2);
}

.color-btn.blue {
  border-color: rgba(0, 229, 255, 0.2);
}

.color-btn:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.color-btn.gold:hover {
  border-color: var(--yellow);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.color-btn.blue:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

.color-name {
  font-family: var(--fontFamilySecondary);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.player-tag {
  font-size: 0.7rem;
  opacity: 0.6;
  letter-spacing: 1px;
}

.color-btn.gold .color-name {
  color: var(--yellow);
}

.color-btn.blue .color-name {
  color: var(--blue);
}

/* Game Header */
#gameHeader {
  width: 90%;
  max-width: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--glassBorder);
}

.player-badge {
  font-family: var(--fontFamilySecondary);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gray);
}

.status-dot-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
}

#hostSection p {
  font-size: 0.8rem;
  color: var(--fontColor2);
  margin-bottom: 0.5rem;
}

#myPeerId {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 0.7rem;
  color: var(--gray);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--glassBorder);
}

.divider span {
  padding: 0 10px;
}

#joinSection {
  display: flex;
  gap: 10px;
}

.join-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glassBorder);
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  font-family: var(--fontFamilySecondary);
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.join-form input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-transform: none;
}

.join-form input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.mp-btn {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  font-family: var(--fontFamilySecondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mp-btn.primary {
  background: #fff;
  color: #000;
}

.mp-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--glassBorder);
}

.mp-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.mp-btn.gold {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.mp-btn.blue {
  background: var(--blue);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.mp-btn.ai {
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  color: #000;
  width: 100%;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.color-btns {
  display: flex;
  gap: 10px;
}

/* Waiting Overlay */
.waiting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  animation: fadeIn 0.3s ease;
}

.waiting-content {
  text-align: center;
  color: #fff;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-down-fade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notifications */
#notifications {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: var(--cardColor);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glassBorder);
  padding: 12px 24px;
  border-radius: 12px;
  color: #fff;
  font-family: var(--fontFamilySecondary);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
  opacity: 0;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.vibrant {
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* New: Grand feedback when C2 is claimed */
.c2-claimed {
  transform: scale(1.1) !important;
  box-shadow: 0 0 100px var(--accentColor, #fff), 0 0 40px rgba(255, 255, 255, 0.8) !important;
  border: 4px solid #fff !important;
  z-index: 20;
}

.c2-claimed i {
  transform: scale(1.35) !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.c2-claimed i.fa-snowflake-o {
  color: #000 !important;
  text-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

/* Enhanced Info Modal Styles */
.info-modal-box {
  max-width: 550px !important;
  width: 95% !important;
  text-align: left !important;
  padding: 2.5rem 2rem !important;
  max-height: 95dvh;
  overflow-y: auto;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) transparent;
}

.info-modal-box h2 {
  font-size: 1.8rem;
  background: linear-gradient(to right, var(--yellow), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-content section h3 {
  font-family: var(--fontFamilySecondary);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-content section h3 i {
  color: var(--yellow);
  font-size: 1.1rem;
}

.info-content p {
  line-height: 1.5;
  font-size: 0.9rem;
  color: var(--fontColor2);
}

.info-content ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.info-content li {
  font-size: 0.85rem;
  color: var(--fontColor2);
  margin-bottom: 0.4rem;
}

.info-content strong {
  color: var(--yellow);
}

.credits {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glassBorder);
  text-align: center;
}

.credits p {
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.credits a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

.credits a:hover {
  text-shadow: 0 0 10px var(--blue);
  filter: brightness(1.2);
}