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

body {
  background-color: #121214;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.game-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.lobby-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
  background: radial-gradient(circle at center, #1a1a1e 0%, #121214 100%);
}
.lobby-view h1 {
  font-size: 3rem;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.lobby-view .input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
}
.lobby-view .input-group input {
  flex: 1;
  background-color: #121214;
  border: 2px solid #2a2a32;
  color: #f5f5f7;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.lobby-view .input-group input:focus {
  border-color: #6366f1;
}
.lobby-view .input-group button {
  background-color: #6366f1;
  color: #f5f5f7;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lobby-view .input-group button:hover {
  background-color: #4f46e5;
}
.lobby-view .status-msg {
  font-size: 0.9rem;
  height: 1.2rem;
}

.game-view {
  display: flex;
  width: 100%;
  height: 100%;
}
.game-view .sidebar {
  width: 280px;
  background-color: #1a1a1e;
  border-right: 1px solid #2a2a32;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.game-view .sidebar h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245, 245, 247, 0.6);
}
.game-view .sidebar #players-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow-y: auto;
}
.game-view .sidebar #players-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #121214;
  border: 1px solid #2a2a32;
  border-radius: 8px;
}
.game-view .sidebar #players-list li .player-name {
  font-weight: 500;
}
.game-view .sidebar #players-list li .player-score {
  font-size: 0.85rem;
  background-color: #2a2a32;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.game-view .sidebar .btn-action {
  background-color: #6366f1;
  color: #f5f5f7;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.1s, background-color 0.2s;
}
.game-view .sidebar .btn-action:hover {
  background-color: #4f46e5;
}
.game-view .sidebar .btn-action:active {
  transform: scale(0.98);
}
.game-view .table-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 2rem;
  overflow-y: auto;
}
.game-view .table-area .black-card-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}
.game-view .table-area .white-cards-zone {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  align-content: start;
}
.game-view .table-area .white-cards-zone .info-msg {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: rgba(245, 245, 247, 0.4);
  font-size: 1.2rem;
  font-style: italic;
}

.card {
  width: 180px;
  min-height: 240px;
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  word-wrap: break-word;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card.black {
  background-color: #121214;
  color: #f5f5f7;
  border: 2px solid #2a2a32;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.card.white {
  background-color: #f5f5f7;
  color: #121214;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.card.white:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}
.card.white.selected {
  transform: translateY(-8px) scale(1.02);
  border: 4px solid #6366f1;
  box-shadow: 0 0 0 2px #121214, 0 12px 24px rgba(99, 102, 241, 0.3);
}

.card-stack {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 8px;
}
.card-stack:hover {
  transform: translateY(-5px);
}
.card-stack.selected-stack {
  border-color: #4da6ff;
  background-color: rgba(77, 166, 255, 0.1);
}
.card-stack .card.white .card.white {
  margin-top: -110px;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
  }
  .game-container {
    flex-direction: column;
    height: auto;
  }
  .game-view {
    flex-direction: column;
    height: auto;
  }
  .game-view .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #2a2a32;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1rem;
    gap: 1rem;
  }
  .game-view .sidebar #players-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }
  .game-view .sidebar #players-list li {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .game-view .table-area {
    padding: 1rem;
    gap: 1.5rem;
    overflow-y: visible;
  }
  .game-view .table-area .white-cards-zone {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  .card {
    width: 100%;
    height: 190px;
    font-size: 0.95rem;
    padding: 1rem;
  }
  .card.white:hover {
    transform: none;
  }
  .card.white.selected {
    transform: scale(1.02);
  }
}

/*# sourceMappingURL=styles.css.map */
