/* Base country styles */
.country, .state {
  fill: #cccccc;
  stroke: #444;
  stroke-width: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  shape-rendering: geometricPrecision;
}

.country:hover, .state:hover {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) brightness(1.1);
  cursor: pointer;
  transform: translateY(-1px);
}

.country.selected {
  fill: #ff4757 !important;
  stroke: #ff6b6b;
  stroke-width: 2px;
  filter: brightness(1.2);
}

.state {
  fill: #cccccc;
  stroke: #444;
  stroke-width: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  shape-rendering: geometricPrecision;
  animation: fadeIn 0.3s ease-in;
}

.state.selected {
  fill: #ff4757 !important;
  stroke: #ff6b6b;
  stroke-width: 2px;
  filter: brightness(1.2);
}

.states-layer {
    pointer-events: all;
}

.country[data-id="usa"]:hover::after {
    content: "Double click to view states";
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    transform: translate(10px, -20px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* NATO styling */
.nato-member {
  stroke: #1e3d7b;
  stroke-width: 2px;
}

/* WW2 specific styles */
.axis-power {
  stroke: #c0392b;
  stroke-width: 2px;
  stroke-dasharray: 2,2;
}

.allied-power {
  stroke: #2980b9;
  stroke-width: 2px;
}

.neutral-ww2 {
  stroke: #95a5a6;
  stroke-width: 1px;
}

.occupied-territory {
  stroke-dasharray: 5,5;
  stroke: #7f8c8d;
  stroke-width: 2px;
}

/* Combat styles */
.attacking {
  animation: attack-pulse 1s infinite;
}

.under-attack {
  animation: defense-pulse 0.5s ease-in-out;
  filter: brightness(0.8) saturate(2);
}

.defending {
  animation: defend-pulse 1s infinite;
}

@keyframes attack-pulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.5) saturate(2); }
  100% { filter: brightness(1); }
}

@keyframes defend-pulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(0.7) saturate(2); }
  100% { filter: brightness(1); }
}

@keyframes attack-flash {
  0% { stroke: #ff0000; stroke-width: 0.5px; }
  50% { stroke: #ff0000; stroke-width: 3px; }
  100% { stroke: #666666; stroke-width: 0.5px; }
}

@keyframes defend-flash {
  0% { stroke: #0000ff; stroke-width: 0.5px; }
  50% { stroke: #0000ff; stroke-width: 3px; }
  100% { stroke: #666666; stroke-width: 0.5px; }
}

/* Alliance & Union styles */
.allied {
  stroke: #ffd700;
  stroke-width: 2px;
}

.union-overlay {
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255, 220, 0, 0.5));
  mix-blend-mode: overlay;
}

.union-member {
  transition: all 0.5s ease;
  stroke: #ffdc00 !important;
  stroke-width: 2px !important;
  animation: union-pulse 2s infinite;
}

@keyframes union-pulse {
  0% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.2) saturate(1.3); }
  100% { filter: brightness(1) saturate(1); }
}

.union-member:hover {
  filter: brightness(1.1) saturate(1.2);
}

.union-member.selected {
  stroke: #ffd700 !important;
  stroke-width: 3px !important;
}

.union-line {
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255, 220, 0, 0.5));
  mix-blend-mode: overlay;
  animation: glow 2s infinite;
}

@keyframes glow {
  0% { filter: drop-shadow(0 0 2px rgba(255, 220, 0, 0.5)); }
  50% { filter: drop-shadow(0 0 5px rgba(255, 220, 0, 0.8)); }
  100% { filter: drop-shadow(0 0 2px rgba(255, 220, 0, 0.5)); }
}

.soviet-member {
  fill: #cc0000;
  stroke: #ffdc00;
  stroke-width: 2px;
}

/* Empire effects */
.empire-member {
  fill: #FFD700;
  stroke: #4B0082;
  stroke-width: 2px;
  stroke-dasharray: 5,5;
}

.empire-potential {
  animation: empire-glow 2s infinite;
}

@keyframes empire-glow {
  0% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.3) saturate(1.5); }
  100% { filter: brightness(1) saturate(1); }
}

/* Battle effects */
.battle-line {
  pointer-events: none;
  mix-blend-mode: screen;
}

.battle-marker {
  animation: battle-pulse 2s infinite;
}

@keyframes battle-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 0.5; }
}

/* City markers */
.city-marker {
  transition: all 0.3s ease;
}

.city-marker:hover {
  transform: scale(1.5);
  filter: brightness(1.2);
}

.puppet-city {
  stroke-width: 2px;
  animation: puppet-city-pulse 2s infinite;
}

@keyframes puppet-city-pulse {
  0% { stroke-opacity: 0.3; }
  50% { stroke-opacity: 1; }
  100% { stroke-opacity: 0.3; }
}

/* Partially conquered */
.partially-conquered {
  stroke-width: 2px;
  stroke-dasharray: 5,5;
  transition: all 0.3s ease;
  animation: border-pulse 2s infinite;
}

@keyframes border-pulse {
  0% { stroke-width: 2px; }
  50% { stroke-width: 3px; }
  100% { stroke-width: 2px; }
}

.partially-conquered:hover {
  filter: brightness(1.1);
  cursor: pointer;
}

/* Annexed */
.annexed {
  transition: all 0.3s ease;
  stroke-dasharray: 3,3;
  animation: annexed-pulse 2s infinite;
}

@keyframes annexed-pulse {
  0% { stroke-opacity: 0.5; }
  50% { stroke-opacity: 1; }
  100% { stroke-opacity: 0.5; }
}

.annexed:hover {
  filter: brightness(1.1);
  cursor: pointer;
}

.annexed.selected {
  filter: brightness(1.2) saturate(1.5);
  stroke-width: 3px !important;
}

/* UI Elements */
#controls-panel {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 10px;
  max-height: 90vh;
  width: 180px;
  min-width: 180px;
  max-width: 300px;
  overflow-y: auto;
  left: 10px;
  top: 10px;
  resize: both;
  overflow: auto;
}

#multiplayer-panel {
  position: fixed;
  right: 20px;
  bottom: 120px;
  width: 250px;
  min-width: 200px;
  max-width: 500px;
  resize: both;
  overflow: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  max-height: 80vh;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

#controls-panel::after,
#multiplayer-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  cursor: se-resize;
  background: linear-gradient(135deg, transparent 50%, #3498db 50%);
  border-radius: 0 0 8px 0;
}

.panel-header {
  cursor: move;
  user-select: none;
  padding: 10px;
  background: #3498db;
  color: white;
  border-radius: 8px 8px 0 0;
}

.dragging {
  opacity: 0.8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  pointer-events: none;
  cursor: grabbing !important;
}

#controls-panel:hover, .panel-header:hover {
  cursor: grab;
}

#controls-panel:active, .panel-header:active {
  cursor: grabbing;
}

#controls-content, #chat-container {
  pointer-events: auto;
}

.control-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.control-buttons button {
  width: 100%;
  min-height: 35px;
  font-size: 12px;
  padding: 12px 8px;
  border: none;
  border-radius: 6px;
  background: #3498db;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.control-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}

.control-buttons button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.control-buttons button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.control-buttons button.active {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

button.active {
  background: #27ae60 !important;
  color: white;
}

#status, #selection-counter, #water-level {
  background: rgba(52, 152, 219, 0.1);
  padding: 8px;
  margin: 8px 0;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #2c3e50;
}

#formation-help {
  background: rgba(46, 204, 113, 0.1);
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  border-left: 4px solid #27ae60;
}

#formation-help::after {
  content: " Create Temporary Ocean: Alt + click on map\A Expand Ocean: Click on temporary ocean";
  white-space: pre;
  display: block;
  margin-top: 5px;
  font-style: italic;
  color: #3498db;
}

#toggle-globe {
    background: #8e44ad !important;
    animation: globe-pulse 2s infinite;
}

@keyframes globe-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#toggle-globe:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
}

.globe-mode svg {
    cursor: grab !important;
    touch-action: none;
}

.globe-mode svg:active {
    cursor: grabbing !important;
}

.globe-mode .country {
    transition: none !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.globe-mode .ocean {
    transition: none !important;
    fill: #1e90ff !important;
    filter: url(#ocean-turbulence);
}

@media (hover: none) {
    .globe-mode svg {
        cursor: default !important;
    }
    
    .globe-mode svg:active {
        cursor: default !important;
    }
}

/* Chat Panel Styles */
#chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #3498db;
  color: white;
  border-radius: 8px 8px 0 0;
}

#chat-header h3 {
  margin: 0;
  font-size: 16px;
}

#close-multiplayer {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
}

#online-players {
  padding: 10px;
  border-bottom: 1px solid #eee;
  max-height: 100px;
  overflow-y: auto;
}

.online-player {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.player-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}

.player-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.player-status.online {
  background: #2ecc71;
}

#chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 200px;
  max-height: 400px;
}

.chat-message {
  margin-bottom: 10px;
}

.message-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}

.username {
  font-weight: bold;
  margin-right: 8px;
}

.timestamp {
  font-size: 12px;
  color: #7f8c8d;
}

.message-content {
  background: #f8f9fa;
  padding: 8px;
  border-radius: 4px;
  word-wrap: break-word;
}

#chat-input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  background: white;
  border-radius: 0 0 8px 8px;
}

#chat-input {
  flex-grow: 1;
  margin-right: 8px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#send-message, #emoji-button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  background: #3498db;
  color: white;
  cursor: pointer;
}

#emoji-button {
  padding: 8px 10px;
  margin-left: 4px;
}

.emoji-picker {
  position: absolute;
  bottom: 60px;
  right: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.emoji-picker button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.emoji-picker button:hover {
  background: #f1f2f6;
}

.system-message {
  font-style: italic;
  color: #7f8c8d;
}

/* Chat toggle button */
#toggle-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 120px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: chat-notification 2s infinite;
  font-size: 16px;
}

@keyframes chat-notification {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#toggle-chat-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #2ecc71, #3498db);
}

#toggle-chat-panel:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#multiplayer-panel.hidden + #toggle-chat-panel {
  opacity: 1;
  pointer-events: auto;
}

.chat-bubble {
  position: fixed;
  right: 80px;
  bottom: 120px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 250px;
  animation: float 3s ease-in-out infinite;
  z-index: 998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 14px;
  line-height: 1.4;
}

.chat-bubble::after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: 15px;
  border-left: 12px solid #2ecc71;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.chat-bubble.visible {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Tooltips */
#territory-tooltip {
  position: absolute;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1000;
  font-size: 14px;
  max-width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
}

#territory-tooltip img {
  transition: transform 0.2s ease;
}

#territory-tooltip:hover img {
  transform: scale(1.1);
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Map container */
#map-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f0f0f0;
  overflow: hidden;
}

#map-container svg {
  width: 100%;
  height: 100%;
  background: #E6F3FF;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  image-rendering: -webkit-optimize-contrast;
}

.country {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  shape-rendering: geometricPrecision;
}

.country:hover {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) brightness(1.1);
  cursor: pointer;
  transform: translateY(-1px);
}

.ocean {
  fill: #1e90ff;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  filter: url(#ocean-turbulence);
}

/* Enhanced ocean styling */
.globe-mode .ocean {
    opacity: 0.8;
    filter: url(#ocean-turbulence);
}

/* Loading indicator */
#loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-weight: 500;
  color: #3498db;
}

.error-message {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -25%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 9999;
  min-width: 300px;
  max-width: 80%;
}

.error-message h3 {
  color: #e74c3c;
  margin-bottom: 10px;
}

.error-message button {
  margin-top: 10px;
  padding: 8px 16px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.error-message button:hover {
  background: #2980b9;
}

/* Add/update temporary ocean styles */
.temporary-ocean {
  fill: #1e90ff !important; 
  filter: url(#ocean-turbulence);
  animation: ocean-wave 4s infinite ease-in-out;
  mix-blend-mode: multiply;
  cursor: pointer;
  transition: all 0.3s ease;
}

.temporary-ocean:hover {
  filter: url(#ocean-turbulence) brightness(1.2);
}

.flooded-by-temp-ocean {
  transition: all 0.5s ease;
  filter: url(#ocean-turbulence);
}

@keyframes ocean-wave {
  0% { transform: translate(0, 0); }
  50% { transform: translate(0, 2px); }
  100% { transform: translate(0, 0); }
}

/* Add ocean ripple effect */
.ocean-ripple {
  pointer-events: none;
  stroke: #2980b9;
  stroke-width: 2;
  fill: none;
  opacity: 0;
  animation: ripple 2s ease-out;
}

@keyframes ripple {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* War animation styles */
@keyframes territory-change {
  0% { 
    stroke-width: 0.5px;
    stroke-dasharray: none;
  }
  50% {
    stroke-width: 3px;
    stroke-dasharray: 5,5;
  }
  100% {
    stroke-width: 2px;
    stroke-dasharray: none;
  }
}

.territory-changing {
  animation: territory-change 1s ease-in-out;
}

.terrain-mode .country {
  transition: all 0.5s ease;
}

/* Add styles for FAQ section */
#faq-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.close-faq {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.close-faq:hover {
  color: #333;
}

.faq-item {
  background: #f8f9fa;
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  border-left: 4px solid #3498db;
  transition: all 0.3s ease;
  scroll-margin-top: 20px;
}

.faq-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.faq-item strong {
  color: #2c3e50;
  font-size: 16px;
}

.faq-item ul {
  margin-top: 10px;
  padding-left: 20px;
}

.faq-item li {
  margin: 8px 0;
  color: #34495e;
  line-height: 1.6;
}

#faq-window::-webkit-scrollbar {
  width: 8px;
}

#faq-window::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#faq-window::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#faq-window::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#faq-window h3 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 24px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#form-union {
  background: #9b59b6 !important;
  color: white;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#controls-panel::-webkit-scrollbar {
  width: 10px;
}

#controls-panel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

#controls-panel::-webkit-scrollbar-thumb {
  background: #95a5a6;
  border-radius: 5px;
}

#controls-panel::-webkit-scrollbar-thumb:hover {
  background: #7f8c8d;
}

#update-log-window {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

#update-log-window.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

#select-all {
  background: #8e44ad !important;
  animation: glow 2s infinite;
}

#show-border-changes {
  background: #e67e22 !important;
}

.troop-indicator {
  font-size: 12px;
  pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  color: white;
}

.version-history {
  max-height: 400px;
  overflow-y: auto;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.version-entry {
  background: #f8f9fa;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.version-entry:last-child {
  border-bottom: none;
}

.version-number {
  color: #2980b9;
  font-weight: bold;
  font-size: 1.1em;
}

.version-date {
  color: #7f8c8d;
  font-size: 0.9em;
  margin-left: 10px;
}

.version-changes {
  margin-top: 5px;
  padding-left: 20px;
}

.version-changes li {
  margin: 5px 0;
}

.request-bubble {
  pointer-events: none;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.2));
}

.request-arrow {
  pointer-events: none;
  animation: arrow-pulse 1s infinite;
}

@keyframes arrow-pulse {
  0% { stroke-width: 2px; }
  50% { stroke-width: 4px; }
  100% { stroke-width: 2px; }
}

.requesting-country {
  animation: request-pulse 1s infinite;
}

@keyframes request-pulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

.naval-invasion {
  pointer-events: none;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

.naval-path {
  pointer-events: none;
  mix-blend-mode: multiply;
}

.erosion-marker {
  pointer-events: none;
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.erosion-area {
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: url(#erosion-effect);
  animation: erosion-pulse 2s infinite;
}

@keyframes erosion-pulse {
  0% { stroke-opacity: 0.2; }
  50% { stroke-opacity: 1; }
  100% { stroke-opacity: 0.2; }
}

.puppet-territory {
  transition: all 0.5s ease;
  animation: puppet-pulse 2s infinite;
}

@keyframes puppet-pulse {
  0% { stroke-opacity: 0.3; }
  50% { stroke-opacity: 1; }
  100% { stroke-opacity: 0.3; }
}

.puppet-territory:hover {
  filter: brightness(1.1);
  cursor: pointer;
}

.territory-division {
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.country[data-id="som"],
.country[data-id="somaliland"] {
  transition: all 0.5s ease;
}

.country[data-id="som"]:hover,
.country[data-id="somaliland"]:hover {
  filter: brightness(1.1) drop-shadow(0 0 3px rgba(0,0,0,0.3));
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #controls-panel {
    left: 10px;
    right: 10px;
    padding: 10px;
  }
  
  .control-buttons button {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  #multiplayer-panel {
    width: calc(100% - 20px);
    max-width: none;
    margin: 10px;
  }
}

.in-states-view .zoom-controls {
    background: rgba(255,255,255,0.9);
}

.entente-power {
  fill: #3498db !important;
  stroke: #2980b9;
  stroke-width: 2px;
}

.central-power {
  fill: #e74c3c !important; 
  stroke: #c0392b;
  stroke-width: 2px;
}

.ww1-neutral {
  fill: #95a5a6 !important;
  stroke: #7f8c8d;
  stroke-width: 1px;
}

.ww1-territory {
  stroke-dasharray: 5,5;
  opacity: 0.8;
}

.ww1-front-line {
  stroke: #c0392b;
  stroke-width: 3px;
  stroke-dasharray: 10,5;
  fill: none;
  animation: front-line 2s infinite linear;
}

@keyframes front-line {
  to {
    stroke-dashoffset: -20;
  }
}

.trenches {
  stroke: #7f8c8d;
  stroke-width: 2px;
  stroke-dasharray: 2,4;
  fill: none;
}

.battle-marker {
  animation: battle-flash 1s infinite;
}

@keyframes battle-flash {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Update banner styles */
.bottom-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1001;
    width: 200px;
    transition: transform 0.2s ease;
    display: block;
    pointer-events: auto;
    text-decoration: none;
}

.bottom-banner:hover {
    transform: scale(1.05);
}

.bottom-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Solar System Mode Styles */
#solar-system-mode {
    background: #1a1a2e !important;
    animation: solar-glow 2s infinite;
}

#solar-system-mode.active {
    background: #16213e !important;
    color: #FDB813;
    box-shadow: 0 0 10px rgba(253, 184, 19, 0.5);
}

@keyframes solar-glow {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.planet {
    transition: all 0.3s ease;
}

.planet:hover circle {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)) !important;
}

.planet-orbit {
    pointer-events: none;
}

.planet-label {
    pointer-events: none;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.mars-country {
    transition: all 0.3s ease;
}

.mars-country:hover circle {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) !important;
    transform: scale(1.1);
}

.mars-country-label {
    pointer-events: none;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

#mars-back-btn:hover {
    background: #D27B58 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#mars-back-btn:active {
    transform: translateY(1px);
}