/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/cribbage/cribbage.module.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************/
.cribbage_wrapper__9VtBn {
  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 ── */
.cribbage_hud__PDowd {
  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;
}

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

.cribbage_statItem__bAWR7 {
  text-align: center;
}

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

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

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

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

/* ── Peg Board ── */
.cribbage_pegBoard__qEHxY {
  padding: 6px 12px;
  background: rgba(139, 90, 43, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.cribbage_pegLane__jiWUR {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.cribbage_pegLaneLabel__xxYhw {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.cribbage_pegTrackBar__uHzLe {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  position: relative;
  overflow: visible;
}

.cribbage_pegFill__Wlv8u {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.cribbage_pegFillPlayer__qttrM {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.cribbage_pegFillOpp__AWPfW {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.cribbage_pegMarkerFront__mHo8t {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  transition: left 0.5s ease;
  z-index: 2;
}

.cribbage_pegMarkerFrontPlayer__MPD2q {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

.cribbage_pegMarkerFrontOpp__a8FhB {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.cribbage_pegMarkerBack__Az3Wv {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: left 0.5s ease;
  z-index: 1;
}

.cribbage_pegScoreValue__NMB2j {
  font-size: 0.75rem;
  font-weight: 800;
  color: #f1c40f;
  width: 32px;
  text-align: left;
  flex-shrink: 0;
}

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

/* ── Opponent area ── */
.cribbage_opponentArea__cDujk {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  flex-shrink: 0;
}

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

.cribbage_playerLabelActive__nQPql {
  color: #d4af37;
}

.cribbage_dealerBadge__Iebc3 {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  font-size: 0.55rem;
  font-weight: 700;
  margin-left: 4px;
}

.cribbage_opponentHand__RG1ew {
  display: flex;
  justify-content: center;
}

.cribbage_opponentHand__RG1ew .cribbage_cardBack__EBkE1 {
  width: clamp(30px, 7vw, 46px);
  margin: 0 -4px;
}

/* ── Center area ── */
.cribbage_centerArea__rEIHk {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}

.cribbage_centerRow__5d3vK {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

/* ── Starter card ── */
.cribbage_starterArea__PVPIR {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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

.cribbage_starterCard__m3r1A {
  width: clamp(44px, 11vw, 60px);
}

/* ── Crib area ── */
.cribbage_cribArea__oG9bB {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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

.cribbage_cribCards__xVTOw {
  display: flex;
  gap: 2px;
}

.cribbage_cribCards__xVTOw .cribbage_cardBack__EBkE1 {
  width: clamp(24px, 6vw, 36px);
}

/* ── Pegging area ── */
.cribbage_pegArea__gta7b {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cribbage_pegCountDisplay__i9vJZ {
  font-size: 1.2rem;
  font-weight: 900;
  color: #f1c40f;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 16px;
  border-radius: 8px;
}

.cribbage_playedCards__Zs0ws {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.cribbage_playedCard__bFYUK {
  width: clamp(36px, 9vw, 48px);
}

/* ── Card back ── */
.cribbage_cardBack__EBkE1 {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 4px;
  background: linear-gradient(145deg, #1a5c2e, #0e3a1a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

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

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

.cribbage_cardRed__Jm9kK {
  color: #e63946;
}

.cribbage_cardBlack__tW3gN {
  color: #1a1a2e;
}

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

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

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

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

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

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

.cribbage_hand__L7z3N {
  display: flex;
  justify-content: center;
  padding: 0 8px;
}

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

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

.cribbage_handCardPlayable__2axa2 {
  cursor: pointer;
}

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

.cribbage_handCardSelected___ViPy {
  transform: translateY(-12px);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.6);
}

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

.cribbage_handCardDisabled__Sr9Ez {
  opacity: 0.6;
  cursor: not-allowed;
}

.cribbage_handCardDisabled__Sr9Ez:hover {
  transform: none;
}

/* ── Action bar ── */
.cribbage_actionBar__Jik_w {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.cribbage_actionBtn__LJzZ_ {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cribbage_actionBtn__LJzZ_:hover {
  transform: translateY(-2px);
}

.cribbage_actionBtn__LJzZ_:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.cribbage_confirmBtn__riwEk {
  background: linear-gradient(145deg, #d4af37, #b8960c);
  color: #1a1a2e;
}

.cribbage_confirmBtn__riwEk:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.cribbage_goBtn__TcN0l {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cribbage_goBtn__TcN0l:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ── Phase indicator ── */
.cribbage_phaseIndicator__FmLqZ {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 4px;
}

/* ── Message banner ── */
.cribbage_message__XG6sl {
  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: cribbage_fadeIn__71ylV 0.25s ease-out;
}

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

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

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

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

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

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

/* ── Show (counting) overlay ── */
.cribbage_showCards__BuUHx {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 8px 0;
}

.cribbage_showCard__mHn5E {
  width: clamp(40px, 10vw, 56px);
}

.cribbage_showCardStarter__yFNnU {
  width: clamp(40px, 10vw, 56px);
  border: 2px solid #f1c40f;
  border-radius: 8px;
}

.cribbage_scoreBreakdown__OzerU {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  max-height: 200px;
  overflow-y: auto;
}

.cribbage_breakdownLine__aIKMk {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.cribbage_showTotal__d_3qd {
  font-size: 1.2rem;
  font-weight: 900;
  color: #4ade80;
  margin-top: 6px;
}

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

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

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

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

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

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

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

  .cribbage_statValue__wpe7F {
    font-size: 0.95rem;
  }

  .cribbage_pegBoard__qEHxY {
    padding: 4px 8px;
  }

  .cribbage_pegMarkerFront__mHo8t {
    width: 10px;
    height: 10px;
  }
}

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

  .cribbage_playedCard__bFYUK {
    width: clamp(28px, 7vw, 40px);
  }
}

