html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

.t-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.d-none {
  display: none !important;
}

.m-auto {
  margin: 0 auto;
}

.m-lauto {
  margin-left: auto;
}

.m-rauto {
  margin-right: auto;
}


.container {
  height: 100%;
}

.table {
  background-color: #00B7FF;
  border: 5px solid black;
  height: 30%;
}

.table.p1p2 {
  background-color: bisque;
  padding: 0.5em;
}

.playtable {
  padding: 0.5em;
}

.invalid {
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

#discard {
  cursor: pointer;
}

.deck-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.karty {
  transition: transform 0.2s ease;
  height: 100%;
}

.karty:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.hand {
  width: 100%;
  display: flex;
  gap: -40px;
}

.hand img {
  width: 8vw;
  transition: transform 0.2s ease;
}

.card {
  width: 90px;
  height: 135px;
  border-radius: 6px;
  position: relative;
}

.card.hidden {
  opacity: 0;
}

/* SILUETA */
.card.placeholder {
  background: linear-gradient(
    90deg,
    #444 25%,
    #555 37%,
    #444 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
}

/* SKUTEČNÁ KARTA */
.card img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.card.loaded img {
  opacity: 1;
}

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

.hand img:hover {
  transform: translateY(-10px);
  cursor: pointer;
}

.flip {
  transform: scale(0.8) rotateY(90deg);
}

a {
  color: #00B7FF;
}

#suit-picker {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#winner {
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  z-index: 101;
}

div.winner {
  height: 100%;
  background-color: #00B7FF;
  opacity: 90%;
}

h2.winner {
  opacity: 100% !important;
  margin: auto;
  z-index: 105;
}

#suit-picker button {
  font-size: 20px;
  padding: 20px;
}

/* LOADER */
#loading-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0b3d2e, #021b13);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  font-family: system-ui, sans-serif;
}

.loader-box {
  text-align: center;
  width: 320px;
}

.loader-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 16px;
  background: #222;
  border-radius: 8px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  transition: width 0.2s ease;
}

.progress-text {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}