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

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

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

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

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

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

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

.pyramid_btn__NeMhw {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #d4af37;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pyramid_btn__NeMhw:hover,
.pyramid_btn__NeMhw:active {
  background: rgba(212, 175, 55, 0.3);
}

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

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

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

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

.pyramid_pyramidRow__BKN53 {
  display: flex;
  justify-content: center;
  margin-top: -25px;
}

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

/* Card positioning in pyramid */
.pyramid_cardWrapper__Cix2t {
  position: relative;
  margin: 0 -8px;
}

/* Card slot (empty space) */
.pyramid_cardSlot__5WX5c {
  width: clamp(45px, 12vw, 65px);
  aspect-ratio: 2.5 / 3.5;
  border: 2px dashed rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.05);
}

/* Card */
.pyramid_card__xBjo_ {
  width: clamp(45px, 12vw, 65px);
  aspect-ratio: 2.5 / 3.5;
  background: linear-gradient(145deg, #fefefe 0%, #f0f0f0 100%);
  border-radius: 6px;
  box-shadow: 0 2px 8px 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: 3px;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.pyramid_card__xBjo_:hover:not(.pyramid_cardBlocked__pIIj3):not(.pyramid_cardRemoved__CfG7t) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

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

.pyramid_cardSelected__SJgSC {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 0 3px #d4af37, 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.pyramid_cardRemoved__CfG7t {
  visibility: hidden;
}

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

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

.pyramid_cardRank__hadif {
  font-family: 'Georgia', serif;
  font-size: clamp(10px, 3vw, 14px);
  font-weight: 700;
}

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

.pyramid_cardCenter__QwQ40 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(16px, 6vw, 28px);
}

.pyramid_cardRed__6umxG .pyramid_cardRank__hadif,
.pyramid_cardRed__6umxG .pyramid_cardSuit__0wiYW,
.pyramid_cardRed__6umxG .pyramid_cardCenter__QwQ40 {
  color: #c41e3a;
}

.pyramid_cardBlack__KQsEM .pyramid_cardRank__hadif,
.pyramid_cardBlack__KQsEM .pyramid_cardSuit__0wiYW,
.pyramid_cardBlack__KQsEM .pyramid_cardCenter__QwQ40 {
  color: #1a1a1a;
}

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

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

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

.pyramid_pileCards__WOq__ {
  position: relative;
  width: clamp(50px, 14vw, 70px);
  aspect-ratio: 2.5 / 3.5;
}

.pyramid_drawPile__McwjM {
  cursor: pointer;
}

.pyramid_cardBack__T6yjq {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a365d 0%, #0f2a4a 100%);
  border-radius: 6px;
  border: 2px solid #d4af37;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pyramid_cardBackPattern__lL5OR {
  width: 70%;
  height: 70%;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    rgba(212, 175, 55, 0.1) 0px,
    rgba(212, 175, 55, 0.1) 4px,
    transparent 4px,
    transparent 8px
  );
}

.pyramid_emptyPile__OErUP {
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

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

.pyramid_wasteCard__xH2Vh .pyramid_card__xBjo_ {
  width: 100%;
  height: 100%;
}

/* Recycle indicator */
.pyramid_recycleCount__FSLo_ {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Match animation */
@keyframes pyramid_matchPop__u1gVg {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

.pyramid_cardMatching__WdiCv {
  animation: pyramid_matchPop__u1gVg 0.3s ease-out forwards;
}

/* Hint highlight */
.pyramid_cardHint__4uuUu {
  animation: pyramid_hintPulse__gquh_ 0.8s ease-in-out infinite;
}

@keyframes pyramid_hintPulse__gquh_ {
  0%, 100% { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3); }
}

/* Win overlay */
.pyramid_overlay__ubU_d {
  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;
}

.pyramid_modal___WKYl {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 16px;
  padding: 32px;
  max-width: 340px;
  width: 90%;
  text-align: center;
}

.pyramid_modal___WKYl h2 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

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

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

.pyramid_modalStat__PJH8P {
  text-align: center;
}

.pyramid_modalStatValue__8wxiu {
  font-size: 2rem;
  font-weight: 800;
  color: #d4af37;
}

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

.pyramid_btnPrimary__jVmz7 {
  background: linear-gradient(145deg, #d4af37, #b8960f);
  color: #1a1a2e;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s;
}

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

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

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

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

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

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

  .pyramid_gameContainer__2mVnA {
    padding: 4px;
  }

  .pyramid_pyramidRow__BKN53 {
    margin-top: -20px;
  }

  .pyramid_cardWrapper__Cix2t {
    margin: 0 -6px;
  }

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

