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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #fff;
}

#login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

#login-screen h1 {
  font-size: 4rem;
  margin-bottom: 10px;
}

#login-screen p {
  font-size: 1.2rem;
  color: #f7a600;
  margin-bottom: 40px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.login-form input {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.login-form button {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.login-form button:first-of-type {
  background: #f7a600;
  color: #1a1a2e;
}

.login-form button:last-of-type {
  background: transparent;
  color: #f7a600;
  border: 2px solid #f7a600;
}

.login-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(247, 166, 0, 0.3);
}

.login-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#game-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.game-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(247, 166, 0, 0.3);
}

.game-header h1 {
  font-size: 2rem;
}

.game-info {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.game-info span {
  padding: 5px 15px;
  background: rgba(247, 166, 0, 0.2);
  border-radius: 20px;
}

.game-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
  overflow: hidden;
}

.opponents-area {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.opponent {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  min-width: 150px;
  text-align: center;
}

.opponent.active {
  border: 2px solid #f7a600;
  box-shadow: 0 0 20px rgba(247, 166, 0, 0.3);
}

.opponent h4 {
  margin-bottom: 10px;
  color: #f7a600;
}

.opponent .stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 0.9rem;
}

.center-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
}

.nonce-cards {
  display: flex;
  gap: 10px;
}

.nonce-card {
  width: 60px;
  height: 80px;
  background: linear-gradient(135deg, #f7a600, #ff8c00);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a1a2e;
  transition: all 0.3s;
}

.nonce-card.disabled {
  opacity: 0.3;
  filter: grayscale(1);
}

.deck-info {
  display: flex;
  gap: 20px;
}

.deck {
  width: 80px;
  height: 100px;
  background: linear-gradient(135deg, #333, #222);
  border: 2px solid rgba(247, 166, 0, 0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.deck:hover {
  transform: scale(1.05);
}

.player-area {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-info h3 {
  color: #f7a600;
}

.player-info .stats {
  display: flex;
  gap: 20px;
}

.stat {
  padding: 8px 20px;
  background: rgba(247, 166, 0, 0.2);
  border-radius: 20px;
  font-weight: bold;
}

.miners-area {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 60px;
}

.miner-card {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hand-area {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  min-height: 120px;
}

.card {
  min-width: 90px;
  height: 120px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid transparent;
}

.card:hover:not(.disabled) {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card.type-miner {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.card.type-steal_btc,
.card.type-steal_miner {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.card.type-protect {
  background: linear-gradient(135deg, #f39c12, #d68910);
}

.card.type-money {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.card-value {
  font-size: 1.2rem;
  font-weight: bold;
}

.card-name {
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
}

.actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.actions button {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  background: #f7a600;
  color: #1a1a2e;
}

.actions button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(247, 166, 0, 0.3);
}

.actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay-content {
  background: #1a1a2e;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  border: 2px solid #f7a600;
}

.overlay-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.overlay-content button {
  padding: 12px 30px;
  background: #f7a600;
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  .game-header h1 {
    font-size: 1.5rem;
  }

  .card {
    min-width: 70px;
    height: 100px;
  }

  .nonce-card {
    width: 45px;
    height: 60px;
    font-size: 1.2rem;
  }

  .hand-area {
    min-height: 100px;
  }
}
