/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/tripeaks/tripeaks.module.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************/
.tripeaks_wrapper__uU26D {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f4c75 0%, #1b262c 50%, #0f4c75 100%);
}

/* Header */
.tripeaks_header__jiJHF {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(59, 193, 170, 0.2);
  flex-wrap: wrap;
  gap: 8px;
  z-index: 100;
}

.tripeaks_titleBlock__AL2Qa h1 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.2rem;
  color: #3bc1aa;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.tripeaks_stats__KIJOX {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.tripeaks_stat__KIBbu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tripeaks_statLabel__HwOCY {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.tripeaks_streak__3ZoDO {
  color: #f39c12;
  font-weight: 700;
}

.tripeaks_streakActive__Wl_37 {
  animation: tripeaks_streakPulse__spa6S 0.5s ease-in-out;
}

@keyframes tripeaks_streakPulse__spa6S {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.tripeaks_buttons__X_1QX {
  display: flex;
  gap: 6px;
}

.tripeaks_btn__GNCDr {
  background: rgba(59, 193, 170, 0.2);
  border: 1px solid rgba(59, 193, 170, 0.4);
  color: #3bc1aa;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tripeaks_btn__GNCDr:hover,
.tripeaks_btn__GNCDr:active {
  background: rgba(59, 193, 170, 0.3);
}

.tripeaks_btn__GNCDr:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Game container */
.tripeaks_gameContainer__AhZiu {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px;
  overflow: hidden;
}

/* Peaks area */
.tripeaks_peaksArea__wbIrV {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
  min-height: 0;
}

.tripeaks_peaks__vjvGj {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tripeaks_peaksRow__Ahl4_ {
  display: flex;
  justify-content: center;
  margin-top: -22px;
}

.tripeaks_peaksRow__Ahl4_:first-child {
  margin-top: 0;
}

/* Card positioning */
.tripeaks_cardWrapper__hmH2L {
  position: relative;
  margin: 0 -4px;
}

.tripeaks_cardSpacer__WlXHE {
  width: clamp(40px, 10vw, 55px);
  aspect-ratio: 2.5 / 3.5;
  visibility: hidden;
}

/* Card slot */
.tripeaks_cardSlot__YzQpT {
  width: clamp(40px, 10vw, 55px);
  aspect-ratio: 2.5 / 3.5;
  border: 2px dashed rgba(59, 193, 170, 0.15);
  border-radius: 5px;
  background: rgba(59, 193, 170, 0.03);
}

/* Card */
.tripeaks_card___J4Wj {
  width: clamp(40px, 10vw, 55px);
  aspect-ratio: 2.5 / 3.5;
  background: linear-gradient(145deg, #fefefe 0%, #f0f0f0 100%);
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.tripeaks_card___J4Wj:hover:not(.tripeaks_cardBlocked__iBvz1):not(.tripeaks_cardRemoved__EdKDm) {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.tripeaks_cardBlocked__iBvz1 {
  cursor: default;
  opacity: 0.85;
}

.tripeaks_cardBlocked__iBvz1::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  pointer-events: none;
}

.tripeaks_cardPlayable__WwGna {
  box-shadow: 0 0 0 2px rgba(59, 193, 170, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tripeaks_cardRemoved__EdKDm {
  visibility: hidden;
}

.tripeaks_cardCorner__rZpdb {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.tripeaks_cardCornerBottom__fXRD9 {
  align-self: flex-end;
  transform: rotate(180deg);
}

.tripeaks_cardRank__O0Q9Q {
  font-family: 'Georgia', serif;
  font-size: clamp(9px, 2.5vw, 12px);
  font-weight: 700;
}

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

.tripeaks_cardCenter__ZCqvh {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(14px, 5vw, 22px);
}

.tripeaks_cardRed__JTlpx .tripeaks_cardRank__O0Q9Q,
.tripeaks_cardRed__JTlpx .tripeaks_cardSuit__5SBja,
.tripeaks_cardRed__JTlpx .tripeaks_cardCenter__ZCqvh {
  color: #c41e3a;
}

.tripeaks_cardBlack__qXEUn .tripeaks_cardRank__O0Q9Q,
.tripeaks_cardBlack__qXEUn .tripeaks_cardSuit__5SBja,
.tripeaks_cardBlack__qXEUn .tripeaks_cardCenter__ZCqvh {
  color: #1a1a1a;
}

/* Draw and waste piles */
.tripeaks_pileArea__gCM7o {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  margin-top: auto;
}

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

.tripeaks_pileLabel__lPOa0 {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tripeaks_pileCards__DHqOg {
  position: relative;
  width: clamp(50px, 13vw, 65px);
  aspect-ratio: 2.5 / 3.5;
}

.tripeaks_drawPile__x5J58 {
  cursor: pointer;
}

.tripeaks_cardBack__xbFtp {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1b4965 0%, #0d2b3e 100%);
  border-radius: 5px;
  border: 2px solid #3bc1aa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tripeaks_cardBackPattern__ptueJ {
  width: 70%;
  height: 70%;
  border: 2px solid rgba(59, 193, 170, 0.3);
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    rgba(59, 193, 170, 0.1) 0px,
    rgba(59, 193, 170, 0.1) 4px,
    transparent 4px,
    transparent 8px
  );
}

.tripeaks_emptyPile__AFdsp {
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(59, 193, 170, 0.3);
  border-radius: 5px;
  background: rgba(59, 193, 170, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

.tripeaks_wasteCard__ZyQa4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tripeaks_wasteCard__ZyQa4 .tripeaks_card___J4Wj {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 0 3px #3bc1aa, 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tripeaks_drawCount__tsPfm {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Match animation */
@keyframes tripeaks_cardMatch__FSv4p {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(0.8) translateY(50px); opacity: 0; }
}

.tripeaks_cardMatching__0Hr81 {
  animation: tripeaks_cardMatch__FSv4p 0.35s ease-out forwards;
  z-index: 100;
}

/* Streak bonus display */
.tripeaks_streakBonus__OScS1 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 900;
  color: #f39c12;
  text-shadow: 0 2px 10px rgba(243, 156, 18, 0.5);
  animation: tripeaks_bonusPop__2FTnO 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 200;
}

@keyframes tripeaks_bonusPop__2FTnO {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(1); opacity: 0; }
}

/* Win/Lose overlay */
.tripeaks_overlay__dZ2tv {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.tripeaks_modal__LSM23 {
  background: linear-gradient(145deg, #1b262c, #0f4c75);
  border: 2px solid rgba(59, 193, 170, 0.5);
  border-radius: 16px;
  padding: 32px;
  max-width: 340px;
  width: 90%;
  text-align: center;
}

.tripeaks_modal__LSM23 h2 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 2rem;
  color: #3bc1aa;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(59, 193, 170, 0.3);
}

.tripeaks_modalLose__N95KV h2 {
  color: #e74c3c;
}

.tripeaks_modal__LSM23 p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.tripeaks_modalStats__k75Fr {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.tripeaks_modalStat__pYXRB {
  text-align: center;
}

.tripeaks_modalStatValue__zxmFZ {
  font-size: 1.8rem;
  font-weight: 800;
  color: #3bc1aa;
}

.tripeaks_modalStatLabel__rODct {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.tripeaks_btnPrimary__Y7OTd {
  background: linear-gradient(145deg, #3bc1aa, #2d9a87);
  color: #0f4c75;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s;
}

.tripeaks_btnPrimary__Y7OTd:hover {
  transform: scale(1.02);
}

/* Rules hint */
.tripeaks_rulesHint__qvvRg {
  text-align: center;
  padding: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
}

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

  .tripeaks_titleBlock__AL2Qa h1 {
    font-size: 1rem;
  }

  .tripeaks_stats__KIJOX {
    gap: 10px;
    font-size: 0.75rem;
  }

  .tripeaks_btn__GNCDr {
    padding: 5px 8px;
    font-size: 0.65rem;
  }

  .tripeaks_gameContainer__AhZiu {
    padding: 4px;
  }

  .tripeaks_peaksRow__Ahl4_ {
    margin-top: -18px;
  }

  .tripeaks_cardWrapper__hmH2L {
    margin: 0 -3px;
  }

  .tripeaks_pileArea__gCM7o {
    gap: 16px;
    padding: 12px 0;
  }
}

