@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* General Styling & Colors */
:root {
  --main-bg-color: #0f0f0f; /* Deep onyx black base */
  /* Much more transparent/blur-friendly section bg */
  --section-bg-color: rgba(20, 20, 20, 0.65);
  /* Slightly lighter for cards */
  --card-bg-color: rgba(30, 30, 30, 0.6);
  --text-color: #f0f0f0;
  --accent-color: #e6443e;
  --border-color: rgba(255, 255, 255, 0.08);
  --subtle-border-color: rgba(255, 255, 255, 0.05);
  --shadow-color: rgba(0, 0, 0, 0.6);
  --glass-blur: blur(16px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(-45deg, #000000, #300000, #1a0505, #4a0000, #200000);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes sway {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

.card.slide-in {
  animation: slideIn 0.5s ease-out forwards;
}

.card.slide-out {
  animation: slideOut 0.5s ease-in forwards;
}

/* Timer Styling */
#countdown {
  font-size: 5rem;
  font-weight: 900;
  color: #0f0f0f !important; /* Onyx */
  -webkit-text-stroke: 2px var(--accent-color); /* Red outline */
  text-shadow: 0 0 10px rgba(230, 68, 62, 0.5);
  animation: sway 3s ease-in-out infinite;
  margin: 20px 0;
}

/* Page Wrapper for overall structure */
.page-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 20px;
}

/* Common Section Styling */
.game-section {
  background-color: var(--section-bg-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 8px 32px var(--shadow-color);
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Title & Info Section */
#title-info-section h2 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(230, 68, 62, 0.5);
}

#title-info-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: #ccc;
}

/* Game Parameters Section - Un-nested override */
#game-parameters-section {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

#game-parameters-section .section-title {
  font-size: 2rem;
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--subtle-border-color);
  padding-bottom: 10px;
  text-shadow: 0 0 10px rgba(230, 68, 62, 0.3);
}

.param-group {
  background-color: var(--section-bg-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 8px 32px var(--shadow-color);
}

.param-group:last-of-type {
  margin-bottom: 0;
}

#game-parameters-section label {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

/* Counter Selection Group Layout */
.counter-selection-group {
  border-bottom: 1px dashed var(--subtle-border-color);
  padding-bottom: 15px;
}

.counter-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.counter-item label {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 600;
}

/* Counter Controls */
.counter-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg-color);
}

.counter-control button {
  background-color: transparent;
  color: var(--text-color);
  border: none;
  padding: 13px 20px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-shadow: none;
  flex-shrink: 0;
}

.decrease-button {
  border-right: 1px solid var(--border-color);
}

.increase-button {
  border-left: 1px solid var(--border-color);
}

.counter-control button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  transform: none;
  box-shadow: none;
}

.counter-control button:active {
  background-color: rgba(255, 255, 255, 0.05);
}

.counter-control .count-display {
  background-color: transparent;
  color: var(--text-color);
  padding: 10px 0;
  font-size: 1.5rem;
  width: 90px; /* Fixed width to prevent layout shifts */
  text-align: center;
  user-select: none;
}

/* Small info text for recommended values */
.small-info {
  font-size: 0.95rem;
  color: #aaa;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Name Inputs */
.name-inputs-group {
  width: 100%;
  margin-left: auto;
  margin-right: auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#name-inputs-container input[type="text"] {
  width: 100%;
  padding: 10px 15px;
  background-color: var(--card-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#name-inputs-container input[type="text"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(230, 68, 62, 0.5);
}

/* Location Categories */
.category-title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: -20px;
  padding-bottom: 8px;
}

.category-grid {
  display: grid;
  columns: 3;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.category-box {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 10px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  position: relative;
  color: #ddd;
  font-size: 0.95rem;
  user-select: none;
}

.category-box:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.category-box.selected {
  border: 2px solid var(--accent-color);
  color: var(--text-color);
  transform: none;
  box-shadow: 0 0 5px rgba(230, 68, 62, 0.5);
}

.category-box .category-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}


/* Start Button */
.action-button {
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 12px 25px;
  background-color: rgba(230, 68, 62, 0.15); /* More subtle background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  display: inline-block;
  margin-top: 20px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.action-button:hover {
  background-color: rgba(230, 68, 62, 0.45);
  border-color: #ff6660;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 68, 62, 0.2);
}

.action-button:active {
  background-color: rgba(121, 27, 23, 0.6);
  border-color: #791b17;
  transform: translateY(0);
  box-shadow: none;
}

/* Specific styling for Start Button to match compartments width and have shiny effect */
#start-button {
  width: 100%;
  display: block;
  margin-top: 25px;
  /* Revert to sleek glass look but keep full width */
  background-color: rgba(230, 68, 62, 0.25);
  border: 1px solid var(--accent-color);
  box-shadow: none;
  text-shadow: none;
  color: var(--text-color);
}

/* Glare animation for start button */
#start-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: glare 6s infinite;
}

@keyframes glare {
  0% {
    left: -100%;
  }
  20% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}

#start-button:hover {
  background-color: rgba(230, 68, 62, 0.45);
  border-color: #ff6660;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 68, 62, 0.2);
}

/* Main Game Interface Section */
#game-interface-section {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
  width: 100vw;
  min-height: 80vh;
  margin-left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.countdown-display {
  font-size: 5rem;
  font-weight: 900;
  margin-top: 60px; /* Increased margin */
  margin-bottom: 30px;
  color: #0f0f0f !important;
  -webkit-text-stroke: 2px var(--accent-color);
  text-shadow: 0 0 10px rgba(230, 68, 62, 0.5);
}

#cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 30px 0;
  width: 100%;
  max-width: 100%;
  margin: 12px auto;
}

/* Card Styling */
.card {
  width: 320px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  margin: 0 auto;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card .front,
.card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 30px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  word-break: break-word;
  line-height: 1.4;
}

.card .front {
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.9), rgba(20, 20, 20, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-color);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card .back {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(10, 10, 10, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: rotateY(180deg);
  font-weight: 500;
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* End Game Reveal Cards */
.reveal-card {
  width: 100%;
  max-width: 350px;
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.9), rgba(20, 20, 20, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  margin: 5px auto; /* Reduced margin */
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.5s ease-out;
}

.reveal-card h3 {
  color: var(--accent-color);
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.reveal-card .content {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.reveal-card .spy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reveal-card .spy-name {
  font-size: 1.4rem;
  color: #ffb3b0;
}

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


/* Card content styling for front */
.card .front .card-player-info {
    display: flex;
    flex-direction: column; /* Stack icon and name */
    align-items: center;
    gap: 5px; /* Space between icon and name */
}

.card .front .user-icon {
    font-size: 3rem; /* Large icon for front */
    margin-bottom: 10px;
}

.card .front .player-name-front {
    font-size: 2.2rem; /* Original large size for name on front */
    color: var(--text-color);
}


/* Card content styling for back */
.card .back .card-player-info {
    display: flex;
    gap: 8px; /* Space between icon and name */
    margin-bottom: 15px;
    border-bottom: 1px solid var(--subtle-border-color);
    padding-bottom: 10px;
    width: 90%; /* Line across width */
    justify-content: center;
    align-items: center;
}

.card .back .user-icon {
    font-size: 1.8rem; /* Smaller icon for back */
    color: #ccc;
}

.card .back .player-name-back {
    font-size: 1.1rem; /* Smaller text size for player name on back */
    color: #aaa; /* Gray text */
    font-weight: 400;
}

.card .back .card-role-label {
    font-size: 1.2rem; /* Bigger text for "Köylüsün" / "Casus sensin" */
    color: var(--text-color); /* White text */
    font-weight: 400;
    margin-bottom: 10px;
}

.card .back .card-location-name {
    font-size: 2.2rem; /* Bigger text for place name */
    color: var(--text-color); /* White text */
    font-weight: 600;
}


/* Specific colors for spy and civilian text on back of card */
.spy-text {
  color: var(--accent-color);
  text-shadow: 0 0 5px rgba(230, 68, 62, 0.6);
  font-weight: 700;
  font-size: 2.4rem;
}

/* Game Interface Buttons Wrapper */
.game-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 15px; /* Space between buttons */
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  background-color: transparent;
  border-radius: 0;
  padding: 20px;
  border: none;
}

/* Reset Button in Game Interface */
.reset-game-button {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 1.1rem;
  padding: 12px 25px;
  margin-top: 0; /* Remove top margin as it's now in wrapper */
  border-radius: 8px;
  transition: all 0.2s ease;
}

.reset-game-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: none;
}

.reset-game-button:active {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(0);
}

/* Specific styling for new "Tekrar Oyna" button */
#restart-button {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 1.1rem;
  padding: 12px 25px;
  margin-top: 0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

#restart-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

#restart-button:active {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(0);
}

/* Specific styling for "Casusları Göster" button */
#show-spies-button {
  font-size: 1.1rem;
  padding: 12px 25px;
  margin-top: 0;
  /* Inherits action-button styles but we can refine if needed */
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}


/* Footer */
.footer-text {
  font-size: 0.85rem;
  color: #aaa; /* Lighter color for better visibility */
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  opacity: 0.8;
}

/* Accent Color Class for general use */
.accent-color {
  color: var(--accent-color) !important;
}

.info-text {
  color: #aaa;
  font-size: 0.9em;
}

/* Empty Pool Message Container */
#no-places-message {
  background-color: rgba(121, 27, 23, 0.4);
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  padding: 15px;
  margin: 20px auto;
  max-width: 90%;
  color: #ffb3b0;
  font-weight: 500;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Custom places inputs shown when 'Özel' category is selected */
.custom-places-group {
  max-width: 720px;
  margin: 12px auto 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#custom-places-container input[type="text"] {
  width: 100%;
  padding: 10px 15px;
  background-color: var(--card-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1.05rem;
  outline: none;
}

#custom-places-container input[type="text"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(230, 68, 62, 0.5);
}

/* Toggle switch for in-game option */
.in-game-options {
  margin-top: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.toggle-input {
  display: none;
}

.toggle-label {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px; /* Reduced padding */
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ddd;
  font-size: 0.95rem; /* Match category box font size */
  font-weight: 500;
  text-align: center;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px; /* Slightly reduced min-width */
}

.toggle-label:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.toggle-input:checked + .toggle-label {
  border: 2px solid var(--accent-color);
  color: var(--text-color);
  box-shadow: 0 0 10px rgba(230, 68, 62, 0.3);
  background-color: rgba(230, 68, 62, 0.1);
}

.switch-text {
  /* Keep this for JS targeting, but reset styles */
  font-size: 16px;
  color: inherit;
  font-weight: 400;
}

/* Language selector styling */
#language-select {
  background: var(--card-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

#language-select:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(230,68,62,0.3);
  border-color: var(--accent-color);
}

/* Language selector wrapper, centered and styled to match other labels */
.language-select-wrapper {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 10px 0 0 0;
  margin-bottom: 0;
  box-shadow: none;
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.language-select-wrapper label {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 600;
  /* Capitalize first letter visually (translations are stored lowercase) */
  text-transform: capitalize;
  margin-top: -3px; /* Move label up slightly for better alignment */
}

.language-select-wrapper select {
  min-width: 140px;
  padding: 6px 10px;
  background: var(--card-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

/* Top banner announcement */
.top-banner {
  background: linear-gradient(90deg, rgba(230,68,62,0.16), rgba(230,68,62,0.08));
  border: 1px solid rgba(230,68,62,0.18);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 1rem;
}

.top-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* Make sure banner is visible by default; JS will hide if empty */
#top-banner[style] { display: block; }

/* Scoreboard Styling */
#scoreboard-container {
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--section-bg-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px var(--shadow-color);
  text-align: center;
}

#scoreboard-container h4 {
  margin-top: 0;
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-color);
}

.scoreboard-table tr {
  border-bottom: 1px solid var(--subtle-border-color);
}

.scoreboard-table tr:last-child {
  border-bottom: none;
}

.scoreboard-table td {
  padding: 12px;
  font-size: 1.1rem;
}

.scoreboard-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.scoreboard-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--accent-color);
}

/* Winner Selection Buttons */
#winner-selection-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.winner-btn {
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 12px 25px;
  background-color: rgba(230, 68, 62, 0.15); /* More subtle background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

#civilians-win-btn {
  background-color: rgba(76, 175, 80, 0.15); /* More subtle background */
  border-color: #4CAF50;
}

#civilians-win-btn:hover {
  background-color: rgba(76, 175, 80, 0.35);
  border-color: #66bb6a;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
}

#spies-win-btn {
  background-color: rgba(230, 68, 62, 0.15); /* More subtle background */
  border-color: #e6443e;
}

#spies-win-btn:hover {
  background-color: rgba(230, 68, 62, 0.35);
  border-color: #ff6660;
  box-shadow: 0 6px 20px rgba(230, 68, 62, 0.2);
}

.winner-btn:hover {
  transform: translateY(-2px);
}

.winner-btn:active {
  transform: translateY(0);
}

/* Reveal Title */
#reveal-title {
  font-size: 2rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 300;
  animation: fadeIn 1s ease-out;
}