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

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

.crazy-eights_hudLeft__fxzuf {
  display: flex;
  gap: 16px;
  align-items: center;
}

.crazy-eights_statItem__H0V6I {
  text-align: center;
}

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

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

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

.crazy-eights_newGameBtn__uCNmc:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ── Opponent Area ── */
.crazy-eights_oppArea__05hjy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  flex-shrink: 0;
}

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

.crazy-eights_oppHand__74sHy {
  display: flex;
  justify-content: center;
}

.crazy-eights_oppHand__74sHy .crazy-eights_cardBack__WGovV {
  width: clamp(30px, 7vw, 46px);
  margin: 0 -4px;
}

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

.crazy-eights_piles__gKoXN {
  display: flex;
  gap: 24px;
  align-items: center;
}

.crazy-eights_pile__98nzP {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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

.crazy-eights_pileCard__vsiy1 {
  width: clamp(50px, 13vw, 70px);
}

.crazy-eights_pileCount__CzfgA {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.3);
}

.crazy-eights_pileEmpty__6edCX {
  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);
}

/* ── Active Suit Indicator ── */
.crazy-eights_activeSuitArea__xc3gn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.crazy-eights_activeSuitLabel__JlSCp {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.crazy-eights_activeSuitIcon__Ojbhk {
  font-size: 1.4rem;
  font-weight: 800;
  text-shadow: 0 0 12px currentColor;
}

.crazy-eights_suitRed__jUztL {
  color: #ff4d6d;
}

.crazy-eights_suitBlack__VVQVb {
  color: #e0e0e0;
}

/* ── Card face ── */
.crazy-eights_card__SnENV {
  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: crazy-eights_dealIn__aLpLd 0.3s ease-out;
}

@keyframes crazy-eights_dealIn__aLpLd {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.crazy-eights_cardRed__yEa5B {
  color: #e63946;
}

.crazy-eights_cardBlack__ZL08H {
  color: #1a1a2e;
}

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

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

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

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

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

/* ── Card back (purple theme) ── */
.crazy-eights_cardBack__WGovV {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 4px;
  background: linear-gradient(145deg, #5c2d82, #3a1a5c);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.crazy-eights_cardBack__WGovV::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 4px,
    transparent 4px,
    transparent 8px
  );
}

/* ── Player hand ── */
.crazy-eights_playerArea__7m3Az {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 8px;
  flex-shrink: 0;
}

.crazy-eights_hand__Dpq4f {
  display: flex;
  justify-content: center;
  padding: 0 8px;
  flex-wrap: wrap;
}

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

.crazy-eights_handCardPlayable__avzmv {
  cursor: pointer;
}

.crazy-eights_handCardPlayable__avzmv:hover {
  transform: translateY(-8px);
  z-index: 100;
  box-shadow: 0 0 12px rgba(180, 120, 255, 0.5);
}

.crazy-eights_handCardDimmed__DzM8k {
  opacity: 0.5;
  cursor: not-allowed;
}

.crazy-eights_handCardDimmed__DzM8k:hover {
  transform: none;
}

.crazy-eights_handCardDisabled__vTyTT {
  opacity: 0.6;
  cursor: not-allowed;
}

.crazy-eights_handCardDisabled__vTyTT:hover {
  transform: none;
}

/* ── Suit Chooser ── */
.crazy-eights_suitChooser__3E3xv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.crazy-eights_suitChooserLabel__1K4UF {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.crazy-eights_suitButtons__J2lp5 {
  display: flex;
  gap: 12px;
}

.crazy-eights_suitBtn__o9agT {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crazy-eights_suitBtn__o9agT:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
}

.crazy-eights_suitBtnRed__g1s7u {
  color: #ff4d6d;
  border-color: rgba(255, 77, 109, 0.4);
}

.crazy-eights_suitBtnRed__g1s7u:hover {
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.4);
}

.crazy-eights_suitBtnBlack__SRC2G {
  color: #e0e0e0;
  border-color: rgba(224, 224, 224, 0.3);
}

.crazy-eights_suitBtnBlack__SRC2G:hover {
  box-shadow: 0 4px 16px rgba(224, 224, 224, 0.3);
}

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

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

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

.crazy-eights_drawBtn__YN_KG:active {
  transform: translateY(0);
}

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

/* ── Message ── */
.crazy-eights_message__bBB0q {
  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: crazy-eights_fadeIn__i6bVM 0.25s ease-out;
  text-align: center;
  max-width: 90vw;
}

.crazy-eights_messageCrazyEight__UE3sQ {
  font-size: 1.3rem;
  color: #c77dff;
  background: rgba(0, 0, 0, 0.85);
  text-shadow: 0 0 12px rgba(199, 125, 255, 0.5);
  animation: crazy-eights_crazyEightPulse__oEMGW 0.4s ease-out;
}

@keyframes crazy-eights_crazyEightPulse__oEMGW {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes crazy-eights_fadeIn__i6bVM {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Overlay ── */
.crazy-eights_overlay__BF_hR {
  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: crazy-eights_fadeIn__i6bVM 0.3s ease-out;
  padding: 16px;
}

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

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

.crazy-eights_overlayTarget__0pc23 {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: -4px;
}

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

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

/* ── Score table ── */
.crazy-eights_scoreTable__oC6us {
  width: 240px;
  border-collapse: collapse;
  margin: 8px 0;
}

.crazy-eights_scoreTable__oC6us th,
.crazy-eights_scoreTable__oC6us td {
  padding: 6px 12px;
  text-align: center;
  font-size: 0.85rem;
}

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

.crazy-eights_scoreTable__oC6us td {
  color: rgba(255, 255, 255, 0.8);
}

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

.crazy-eights_scoreNegative___L9nM {
  color: #f87171 !important;
  font-weight: 700;
}

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

  .crazy-eights_statValue__Ek5kU {
    font-size: 0.95rem;
  }

  .crazy-eights_drawBtn__YN_KG {
    padding: 8px 22px;
    font-size: 0.85rem;
  }

  .crazy-eights_pileCard__vsiy1 {
    width: clamp(44px, 12vw, 60px);
  }

  .crazy-eights_suitBtn__o9agT {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

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

