/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/hearts/hearts.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
.hearts_wrapper__0QSYz {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #1a472a 0%, #0f2a19 100%);
  color: white;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  position: relative;
}

/* ── HUD ── */
.hearts_hud__3jizS {
  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;
}

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

.hearts_statItem__pDB15 {
  text-align: center;
}

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

.hearts_statValue__QD_iL {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f1c40f;
}

.hearts_newGameBtn__6xZmJ {
  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;
}

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

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

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

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

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

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

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

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

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

.hearts_playerLabelActive__1Wjaj {
  color: #f1c40f;
}

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

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

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

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

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

.hearts_cardBack__V6K_O {
  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;
}

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

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

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

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

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

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

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

/* ── Cards ── */
.hearts_card__7puUD {
  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;
}

.hearts_cardRed__pnC48 {
  color: #e63946;
}

.hearts_cardBlack__ne2XQ {
  color: #1a1a2e;
}

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

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

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

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

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

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

.hearts_handCard__bd5Pm {
  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;
}

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

.hearts_handCardPlayable__dSgq7 {
  cursor: pointer;
}

.hearts_handCardPlayable__dSgq7:hover {
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.5);
  transform: translateY(-8px);
}

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

.hearts_handCardDisabled__WUQI7:hover {
  transform: none;
}

.hearts_handCardSelected__gH647 {
  transform: translateY(-12px);
  box-shadow: 0 0 0 2px #f1c40f, 0 4px 16px rgba(241, 196, 15, 0.4);
}

.hearts_handCardSelected__gH647:hover {
  transform: translateY(-12px);
}

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

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

.hearts_passBtn__9M3m1 {
  padding: 8px 24px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(145deg, #f1c40f, #f39c12);
  color: #1a1a2e;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hearts_passBtn__9M3m1:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
}

.hearts_passBtn__9M3m1:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Message banner ── */
.hearts_message__UmboE {
  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: #f1c40f;
  white-space: nowrap;
  z-index: 30;
  pointer-events: none;
  animation: hearts_fadeIn__o3IM1 0.25s ease-out;
}

/* ── Overlay ── */
.hearts_overlay__Ido9h {
  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: hearts_fadeIn__o3IM1 0.3s ease-out;
}

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

.hearts_overlayTitle__lA6gE {
  font-size: 2rem;
  font-weight: 900;
  color: #f1c40f;
  text-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
}

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

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

.hearts_overlayBtn__0rb9p:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(241, 196, 15, 0.4);
}

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

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

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

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

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

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

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

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

  .hearts_statValue__QD_iL {
    font-size: 0.95rem;
  }

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

  .hearts_westArea__9EA6J,
  .hearts_eastArea__e3CnR {
    width: 36px;
  }
}

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

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

