/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[3]!./app/games/spades/spades.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
.spades_wrapper__yRGA6 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #0d1b2a 0%, #1b2838 100%);
  color: white;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  position: relative;
}

/* ── HUD ── */
.spades_hud__aOUcV {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  z-index: 10;
  gap: 8px;
}

.spades_hudLeft__NqxL4 {
  display: flex;
  gap: 16px;
}

.spades_statItem__r3B_X {
  text-align: center;
}

.spades_statLabel__5Foc5 {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}

.spades_statValue__ygipO {
  font-size: 1.1rem;
  font-weight: 800;
  color: #d4af37;
}

.spades_newGameBtn__4737Q {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.spades_newGameBtn__4737Q:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ── Table ── */
.spades_table__D6aD3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}

/* ── Player areas ── */
.spades_northArea__c1hHa {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  flex-shrink: 0;
}

.spades_middleRow__RTy0T {
  flex: 1;
  display: flex;
  min-height: 0;
}

.spades_westArea__rQWtq {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
}

.spades_eastArea__NiHPI {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
}

.spades_centerArea__JOA2x {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
}

.spades_southArea__qdrGh {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 8px;
  flex-shrink: 0;
}

.spades_playerLabel__tjqmo {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.spades_playerLabelActive__eR_O_ {
  color: #d4af37;
}

.spades_playerScore__LH63o {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Bid info shown next to player labels ── */
.spades_bidInfo__N1E8O {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── AI hands ── */
.spades_aiHandHorizontal__QY5Oj {
  display: flex;
  justify-content: center;
  gap: 0;
}

.spades_aiHandHorizontal__QY5Oj .spades_cardBack__jilTW {
  width: clamp(18px, 4vw, 28px);
  margin: 0 -4px;
}

.spades_aiHandVertical__fdtvP {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.spades_aiHandVertical__fdtvP .spades_cardBack__jilTW {
  width: clamp(22px, 5vw, 32px);
  margin: -6px 0;
}

.spades_cardBack__jilTW {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 4px;
  background: linear-gradient(145deg, #1a3a8a, #0d2466);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.spades_cardBack__jilTW::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Trick area ── */
.spades_trickArea__QEYW4 {
  position: relative;
  width: 160px;
  height: 160px;
}

.spades_trickSlot__fjoVp {
  position: absolute;
  width: clamp(40px, 10vw, 56px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.spades_trickSlotSouth__RvQEz {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.spades_trickSlotWest__TGmGL {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.spades_trickSlotNorth__GERYS {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.spades_trickSlotEast__qnxTv {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Cards ── */
.spades_card__5NUBj {
  aspect-ratio: 2.5 / 3.5;
  background: #fefefe;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2px;
  font-weight: 700;
}

.spades_cardRed__OjF90 {
  color: #e63946;
}

.spades_cardBlack__cA2Oe {
  color: #1a1a2e;
}

.spades_cardCorner__jeZdF {
  position: absolute;
  top: 2px;
  left: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.spades_cardCornerBottom__jbPIZ {
  top: auto;
  left: auto;
  bottom: 2px;
  right: 3px;
  transform: rotate(180deg);
}

.spades_cardRank__M_yMM {
  font-size: clamp(8px, 2.5vw, 12px);
  font-weight: 800;
}

.spades_cardSuitSmall__AsqUc {
  font-size: clamp(6px, 2vw, 10px);
}

.spades_cardCenter__wznTo {
  font-size: clamp(14px, 4vw, 22px);
}

/* ── Player hand ── */
.spades_hand__IYrtm {
  display: flex;
  justify-content: center;
  padding: 0 8px;
}

.spades_handCard__1en8X {
  width: clamp(36px, 9vw, 56px);
  margin: 0 clamp(-10px, -2vw, -4px);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  flex-shrink: 0;
}

.spades_handCard__1en8X:hover {
  transform: translateY(-6px);
  z-index: 100;
}

.spades_handCardPlayable__0HRjH {
  cursor: pointer;
}

.spades_handCardPlayable__0HRjH:hover {
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  transform: translateY(-8px);
}

.spades_handCardDisabled__akhcz {
  opacity: 0.5;
  cursor: not-allowed;
}

.spades_handCardDisabled__akhcz:hover {
  transform: none;
}

/* ── Bidding controls ── */
.spades_bidControls__T3o1Q {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.spades_bidInfo__N1E8O {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.spades_bidButtons__su6Cx {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: 320px;
}

.spades_bidBtn__vNrRt {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 36px;
}

.spades_bidBtn__vNrRt:hover {
  background: rgba(212, 175, 55, 0.3);
  border-color: #d4af37;
  color: white;
}

.spades_bidBtnNil__KSGBc {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
  color: #ff6b6b;
}

.spades_bidBtnNil__KSGBc:hover {
  background: rgba(220, 53, 69, 0.4);
  border-color: #dc3545;
}

/* ── Bid display during play ── */
.spades_bidDisplay__pk1zk {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

.spades_bidDisplayItem__12mut {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

.spades_bidDisplayValue__3QQAy {
  font-weight: 700;
  color: #d4af37;
}

/* ── Message banner ── */
.spades_message__TDuwX {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #d4af37;
  white-space: nowrap;
  z-index: 30;
  pointer-events: none;
  animation: spades_fadeIn__43AH_ 0.25s ease-out;
}

/* ── Overlay ── */
.spades_overlay__JrqR4 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  gap: 12px;
  animation: spades_fadeIn__43AH_ 0.3s ease-out;
}

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

.spades_overlayTitle__5skoO {
  font-size: 2rem;
  font-weight: 900;
  color: #d4af37;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.spades_overlaySubtitle__M8OYo {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.spades_overlayBtn__tSBne {
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(145deg, #d4af37, #b8960c);
  color: #1a1a2e;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.spades_overlayBtn__tSBne:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

/* ── Score table (round end) ── */
.spades_scoreTable__cc3rX {
  width: 300px;
  border-collapse: collapse;
  margin: 8px 0;
}

.spades_scoreTable__cc3rX th,
.spades_scoreTable__cc3rX td {
  padding: 6px 10px;
  text-align: center;
  font-size: 0.8rem;
}

.spades_scoreTable__cc3rX th {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.spades_scoreTable__cc3rX td {
  color: rgba(255, 255, 255, 0.8);
}

.spades_scorePositive__ZqMj4 {
  color: #4ade80 !important;
  font-weight: 700;
}

.spades_scoreNegative__B4kV_ {
  color: #e63946 !important;
  font-weight: 700;
}

.spades_scoreWinner__Ut2QV {
  color: #4ade80 !important;
  font-weight: 700;
}

/* ── Trick winner indicator ── */
.spades_trickWinnerBadge__YBeSs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: #d4af37;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 5;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .spades_hud__aOUcV {
    padding: 6px 8px;
  }

  .spades_statValue__ygipO {
    font-size: 0.95rem;
  }

  .spades_trickArea__QEYW4 {
    width: 130px;
    height: 130px;
  }

  .spades_westArea__rQWtq,
  .spades_eastArea__NiHPI {
    width: 36px;
  }
}

@media (max-width: 360px) {
  .spades_handCard__1en8X {
    width: clamp(30px, 8vw, 44px);
  }

  .spades_trickArea__QEYW4 {
    width: 110px;
    height: 110px;
  }
}

