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

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

.rummy-500_hudLeft__jS19_ {
  display: flex;
  gap: 16px;
  align-items: center;
}

.rummy-500_statItem__NbY5X {
  text-align: center;
}

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

.rummy-500_statValue__N8vX1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #d4af37;
}

.rummy-500_newGameBtn__txty4 {
  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;
}

.rummy-500_newGameBtn__txty4:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ── Opponent Area ── */
.rummy-500_oppArea__C5pap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 2px;
  flex-shrink: 0;
}

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

.rummy-500_oppHand__xHrUf {
  display: flex;
  justify-content: center;
}

.rummy-500_oppHand__xHrUf .rummy-500_cardBack__LfGyX {
  width: clamp(28px, 6vw, 40px);
  margin: 0 -4px;
}

/* ── Meld Zones ── */
.rummy-500_meldZone__nyKfa {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 4px 8px;
  min-height: 28px;
}

.rummy-500_meldZoneLabel__qu7xM {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  font-weight: 600;
  text-align: center;
  padding: 0 8px;
}

.rummy-500_tableMeldGroup__XxJIX {
  display: flex;
  background: rgba(45, 90, 58, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  padding: 3px;
  gap: 1px;
}

.rummy-500_tableMeldGroupClickable__QTBdR {
  border-color: rgba(212, 175, 55, 0.6);
  cursor: pointer;
  animation: rummy-500_goldPulse__hLz7p 1.5s ease-in-out infinite;
}

.rummy-500_tableMeldGroupClickable__QTBdR:hover {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

@keyframes rummy-500_goldPulse__hLz7p {
  0%, 100% {
    border-color: rgba(212, 175, 55, 0.3);
  }
  50% {
    border-color: rgba(212, 175, 55, 0.7);
  }
}

.rummy-500_tableMeldCard__G0VuA {
  width: clamp(24px, 6vw, 36px);
}

/* ── Center Area ── */
.rummy-500_centerArea__JGvpe {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  position: relative;
}

.rummy-500_piles__y27fq {
  display: flex;
  gap: 24px;
  align-items: center;
}

.rummy-500_pile__enVGj {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rummy-500_pileLabel__JIbAU {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.rummy-500_pileCard__MPRof {
  width: clamp(50px, 13vw, 70px);
}

.rummy-500_pileClickable__wQM8K {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.rummy-500_pileClickable__wQM8K:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.rummy-500_pileCount__9ZZwg {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.3);
}

.rummy-500_pileEmpty__9E1L_ {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 6px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Card face ── */
.rummy-500_card__rjo0y {
  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;
  animation: rummy-500_dealIn__8EjvX 0.3s ease-out;
}

@keyframes rummy-500_dealIn__8EjvX {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.rummy-500_cardRed__sr_4M {
  color: #e63946;
}

.rummy-500_cardBlack__yqPbG {
  color: #1a1a2e;
}

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

.rummy-500_cardCornerBottom__yWSwS {
  top: auto;
  left: auto;
  bottom: 2px;
  right: 3px;
  transform: rotate(180deg);
}

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

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

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

/* ── Card back (emerald theme) ── */
.rummy-500_cardBack__LfGyX {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 4px;
  background: linear-gradient(145deg, #2d5a3a, #1a3a25);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.rummy-500_cardBack__LfGyX::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: repeating-linear-gradient(
      45deg,
      rgba(212, 175, 55, 0.06) 0px,
      rgba(212, 175, 55, 0.06) 3px,
      transparent 3px,
      transparent 7px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(212, 175, 55, 0.06) 0px,
      rgba(212, 175, 55, 0.06) 3px,
      transparent 3px,
      transparent 7px
    );
}

/* ── Player hand ── */
.rummy-500_playerArea___YyCK {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 6px;
  flex-shrink: 0;
}

.rummy-500_hand__c92C2 {
  display: flex;
  justify-content: center;
  padding: 0 8px;
  flex-wrap: wrap;
}

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

.rummy-500_handCardPlayable__gYUZE {
  cursor: pointer;
}

.rummy-500_handCardPlayable__gYUZE:hover {
  transform: translateY(-8px);
  z-index: 100;
}

.rummy-500_handCardSelected__G9dEQ {
  transform: translateY(-10px);
  box-shadow: 0 0 0 2px #d4af37, 0 4px 14px rgba(212, 175, 55, 0.6);
  z-index: 101;
  border-radius: 6px;
}

.rummy-500_handCardDiscardable__Mdnff {
  cursor: pointer;
}

.rummy-500_handCardDiscardable__Mdnff:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.5);
  z-index: 100;
}

.rummy-500_handCardDisabled__JuQij {
  opacity: 0.6;
  cursor: not-allowed;
}

.rummy-500_handCardDisabled__JuQij:hover {
  transform: none;
}

/* ── Action bar ── */
.rummy-500_actionBar__KO9ol {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  min-height: 44px;
  align-items: center;
  flex-shrink: 0;
}

.rummy-500_actionBtn__0bmlc {
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(145deg, #d4af37, #b8960c);
  color: #1a1a2e;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.rummy-500_actionBtn__0bmlc:active {
  transform: translateY(0);
}

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

.rummy-500_discardBtn__X6Vt1 {
  background: linear-gradient(145deg, #e63946, #c1121f);
  color: white;
}

.rummy-500_discardBtn__X6Vt1:hover {
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
}

.rummy-500_discardBtnActive__IiESm {
  background: linear-gradient(145deg, #ff6b7a, #e63946);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.5);
}

.rummy-500_phaseIndicator___xXds {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ── Message ── */
.rummy-500_message__szugh {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #d4af37;
  background: rgba(0, 0, 0, 0.7);
  z-index: 20;
  animation: rummy-500_fadeIn___OHEQ 0.25s ease-out;
  text-align: center;
  max-width: 90vw;
}

.rummy-500_messageRummy__Oh8d8 {
  font-size: 1.3rem;
  color: #4ade80;
  background: rgba(0, 0, 0, 0.85);
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
  animation: rummy-500_rummyPulse__zZFEB 0.4s ease-out;
}

@keyframes rummy-500_rummyPulse__zZFEB {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rummy-500_fadeIn___OHEQ {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Overlay ── */
.rummy-500_overlay__cD_zm {
  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: rummy-500_fadeIn___OHEQ 0.3s ease-out;
  padding: 16px;
}

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

.rummy-500_overlaySubtitle__e0BBm {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.rummy-500_overlayBtn__3qMkC {
  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;
}

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

/* ── Score table ── */
.rummy-500_scoreTable__5ikdH {
  width: 300px;
  border-collapse: collapse;
  margin: 8px 0;
}

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

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

.rummy-500_scoreTable__5ikdH td {
  color: rgba(255, 255, 255, 0.8);
}

.rummy-500_scorePositive__Flxo9 {
  color: #4ade80 !important;
  font-weight: 700;
}

.rummy-500_scoreNegative__2OhET {
  color: #f87171 !important;
  font-weight: 700;
}

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

  .rummy-500_statValue__N8vX1 {
    font-size: 0.95rem;
  }

  .rummy-500_actionBtn__0bmlc {
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .rummy-500_pileCard__MPRof {
    width: clamp(44px, 12vw, 60px);
  }

  .rummy-500_scoreTable__5ikdH {
    width: 260px;
  }

  .rummy-500_scoreTable__5ikdH th,
  .rummy-500_scoreTable__5ikdH td {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
}

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

  .rummy-500_tableMeldCard__G0VuA {
    width: clamp(20px, 5vw, 30px);
  }
}

