/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/freecell/freecell.module.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************/
/* Felt texture overlay */
.freecell_feltOverlay__1aHT3 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.freecell_wrapper__D4uAa {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #1a472a 0%, #0f2a19 100%);
}

/* Header */
.freecell_header__R5jJj {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 8px;
}

.freecell_logo__xxRBu {
  font-family: 'Playfair Display', serif;
  color: #4ade80;
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

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

.freecell_buttons__vtYsV {
  display: flex;
  gap: 8px;
}

.freecell_btn__od9f3 {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.freecell_btn__od9f3:hover,
.freecell_btn__od9f3:active {
  background: rgba(255, 255, 255, 0.25);
}

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

.freecell_undoBtn__WAZZm {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.freecell_undoBtn__WAZZm:hover:not(:disabled) {
  background: rgba(74, 222, 128, 0.3);
}

/* Game container */
.freecell_gameContainer__IyIwI {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 12px;
  overflow: hidden;
}

/* Top row: free cells and foundations */
.freecell_topRow__98_AZ {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

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

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

.freecell_pile__GsteF {
  position: relative;
  width: calc((100vw - 80px) / 8);
  max-width: 70px;
  min-width: 45px;
  aspect-ratio: 2.5 / 3.5;
}

/* Tableau */
.freecell_tableau__S6g5h {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  padding: 0 4px;
}

.freecell_tableauPile__9AZel {
  position: relative;
  width: calc((100vw - 64px) / 8);
  max-width: 75px;
  min-width: 45px;
  height: 100%;
}

.freecell_cardSlot__2Q5ko {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.1);
}

.freecell_freeCellSlot__44jID {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.05);
}

.freecell_foundationSlot__PqLw_ {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
}

/* Foundation suit labels */
.freecell_foundationSlot__PqLw_::after {
  content: attr(data-suit);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(16px, 5vw, 28px);
  opacity: 0.3;
}

.freecell_foundationSlot__PqLw_[data-suit="♥"]::after,
.freecell_foundationSlot__PqLw_[data-suit="♦"]::after {
  color: #c41e3a;
}

.freecell_foundationSlot__PqLw_[data-suit="♠"]::after,
.freecell_foundationSlot__PqLw_[data-suit="♣"]::after {
  color: #1a1a1a;
}

/* Card */
.freecell_card__tIyDe {
  position: absolute;
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  background: #fefefe;
  border-radius: 6px;
  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: 3px;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.freecell_card__tIyDe:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.freecell_selected__Wb03Z {
  box-shadow: 0 0 0 3px #4ade80, 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
  z-index: 1000 !important;
}

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

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

.freecell_cardRank__OQqGE {
  font-family: 'Playfair Display', serif;
  font-size: clamp(10px, 3vw, 15px);
  font-weight: 700;
}

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

.freecell_cardCenter__uEJAz {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(18px, 7vw, 36px);
}

.freecell_red___5Ldn .freecell_cardRank__OQqGE,
.freecell_red___5Ldn .freecell_cardSuit__CDYCn,
.freecell_red___5Ldn .freecell_cardCenter__uEJAz {
  color: #c41e3a;
}

.freecell_black__0ws03 .freecell_cardRank__OQqGE,
.freecell_black__0ws03 .freecell_cardSuit__CDYCn,
.freecell_black__0ws03 .freecell_cardCenter__uEJAz {
  color: #1a1a1a;
}

/* Auto-complete hint */
.freecell_autoCompleteHint__3uL4P {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(74, 222, 128, 0.9);
  color: #0f2a19;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 100;
  animation: freecell_bounce__niYfi 0.5s ease-in-out infinite alternate;
}

@keyframes freecell_bounce__niYfi {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(-5px); }
}

/* Win overlay */
.freecell_winOverlay__rUht1 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.freecell_winText__LzPd_ {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #4ade80;
  text-shadow: 0 4px 20px rgba(74, 222, 128, 0.5);
  animation: freecell_pulse___0VVx 1.5s ease-in-out infinite;
}

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

.freecell_winStats__VLsRc {
  color: white;
  font-size: 1.2rem;
  text-align: center;
}

/* Mobile */
@media (max-width: 600px) {
  .freecell_header__R5jJj {
    padding: 6px 8px;
  }

  .freecell_logo__xxRBu {
    font-size: 0.95rem;
  }

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

  .freecell_btn__od9f3 {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .freecell_gameContainer__IyIwI {
    padding: 4px;
    gap: 8px;
  }

  .freecell_topRow__98_AZ {
    gap: 4px;
  }

  .freecell_freeCells__fDw8w,
  .freecell_foundations__Y2l4M {
    gap: 4px;
  }

  .freecell_tableau__S6g5h {
    gap: 4px;
  }

  .freecell_card__tIyDe {
    border-radius: 4px;
    padding: 2px;
  }

  .freecell_cardSlot__2Q5ko {
    border-radius: 4px;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .freecell_pile__GsteF {
    min-width: 38px;
  }

  .freecell_tableauPile__9AZel {
    min-width: 38px;
  }
}

