* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #0b0e14;
  color: #e7ecf3;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #3b82f6;
}

.setup-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.setup-panel {
  background: #151a22;
  border: 1px solid #2a2e38;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  min-width: 300px;
}

.setup-panel h2 {
  margin: 0 0 20px;
  color: #3b82f6;
}

.form-group {
  margin: 15px 0;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #9aa4b2;
}

.input {
  background: #0f1117;
  border: 1px solid #2a2e38;
  color: #e7ecf3;
  padding: 10px 12px;
  border-radius: 8px;
  width: 100%;
  font-size: 14px;
}

.game-mode-selection {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-btn {
  flex: 1;
  background: #2a2e38;
  color: #9aa4b2;
}

.mode-btn.active {
  background: #3b82f6;
  color: white;
}

.online-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.join-room {
  display: flex;
  gap: 10px;
}

.join-room input {
  flex: 1;
}

#roomInfo {
  background: #0f1117;
  border: 1px solid #2a2e38;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

#playersList {
  margin: 10px 0;
}

.player-item {
  padding: 5px 0;
  color: #e7ecf3;
}

.game-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(15, 1fr);
  gap: 1px;
  background: #2a2e38;
  padding: 10px;
  border-radius: 10px;
  width: 850px;
  height: 800px;
}

.street {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  position: relative;
  border: none;
}

.street.horizontal {
  background: #4a5568;
}

.street.vertical {
  background: #4a5568;
}

.intersection {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #cbd5e0;
}

.block {
  background: #1a202c;
  border: 1px solid #4a5568;
  display: grid;
  gap: 1px;
}

.block.size-2x3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}

.block.size-2x4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
}

.block.size-3x3 {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}

.property {
  background: #2d3748;
  border: 1px solid #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-height: 45px;
  padding: 6px;
}

.property:hover {
  background: #4a5568;
  transform: scale(1.05);
}

.property.owned {
  background: #22c55e;
  color: white;
}

.property.for-sale {
  background: #3b82f6;
  color: white;
}

.property.low-price {
  background: #10b981;
  color: white;
}

.property.medium-price {
  background: #f59e0b;
  color: white;
}

.property.high-price {
  background: #ef4444;
  color: white;
}

.property.luxury-price {
  background: #8b5cf6;
  color: white;
}

.property.brown {
  background: #8b4513;
  color: white;
}

.property.light-blue {
  background: #87ceeb;
  color: black;
}

.property.pink {
  background: #ffb6c1;
  color: black;
}

.property.orange {
  background: #ffa500;
  color: black;
}

.property.red {
  background: #ff4444;
  color: white;
}

.property.yellow {
  background: #ffeb3b;
  color: black;
}

.property.green {
  background: #4caf50;
  color: white;
}

.property.blue {
  background: #2196f3;
  color: white;
}

.player {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  z-index: 10;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.street.path-highlight {
  background: #fbbf24 !important;
  animation: pathPulse 0.5s ease-in-out;
}

.intersection.path-highlight {
  background: #fbbf24 !important;
  animation: pathPulse 0.5s ease-in-out;
}

@keyframes pathPulse {
  0% { background: #fbbf24; }
  50% { background: #f59e0b; }
  100% { background: #fbbf24; }
}

.direction-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.direction-content {
  background: #151a22;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  min-width: 300px;
}

.direction-content h3 {
  margin: 0 0 15px;
  color: #3b82f6;
  font-size: 18px;
}

.direction-content p {
  margin: 0 0 20px;
  color: #9aa4b2;
}

.direction-dice {
  width: 60px;
  height: 60px;
  background: white;
  color: black;
  border: 2px solid #333;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.property-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.property-content {
  background: #151a22;
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  min-width: 350px;
}

.property-content h3 {
  margin: 0 0 15px;
  color: #22c55e;
  font-size: 18px;
}

.property-info {
  text-align: left;
  margin: 15px 0;
  padding: 15px;
  background: #0f1117;
  border-radius: 8px;
  border: 1px solid #2a2e38;
}

.property-info div {
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
}

.property-info .label {
  color: #9aa4b2;
}

.property-info .value {
  color: #e7ecf3;
  font-weight: 600;
}

.property-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.btn-success {
  background: #22c55e;
  color: white;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}



.player-1 { background: #ef4444; }
.player-2 { background: #22c55e; }
.player-3 { background: #3b82f6; }
.player-4 { background: #eab308; }

.controls {
  background: #151a22;
  border: 1px solid #2a2e38;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dice-area {
  text-align: center;
}

.dice-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.dice-group h3 {
  font-size: 14px;
  color: #9aa4b2;
}

.dice {
  width: 50px;
  height: 50px;
  background: white;
  color: black;
  border: 2px solid #333;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}



.btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.player-info, .property-info {
  background: #0f1117;
  border: 1px solid #2a2e38;
  border-radius: 8px;
  padding: 15px;
}

.player-info h3, .property-info h3 {
  margin-bottom: 10px;
  font-size: 14px;
  color: #9aa4b2;
}

.player-info div, .property-info div {
  margin: 5px 0;
  font-size: 13px;
}

@media (max-width: 1000px) {
  .game-area {
    grid-template-columns: 1fr;
  }
  
  .city-grid {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }
}
.dice-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px 0;
}

.session-info {
  text-align: center;
  background: #0f1117;
  border: 1px solid #22c55e;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.turn-info {
  text-align: center;
  background: #0f1117;
  border: 1px solid #2a2e38;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.all-players-info {
  background: #0f1117;
  border: 1px solid #2a2e38;
  border-radius: 8px;
  padding: 15px;
}

.player-card {
  background: #151a22;
  border: 1px solid #2a2e38;
  border-radius: 6px;
  padding: 10px;
  margin: 8px 0;
}

.player-card.active {
  border-color: #3b82f6;
  background: #1e293b;
}

.player-name {
  font-weight: 600;
  color: #e7ecf3;
  margin-bottom: 5px;
}

.player-stats {
  font-size: 12px;
  color: #9aa4b2;
}