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

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

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

.war_statItem__aQT4_ {
  text-align: center;
}

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

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

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

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

/* ── Battlefield ── */
.war_battlefield__BhnRL {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  padding: 0 12px;
}

/* ── Side areas (decks) ── */
.war_sideArea__72vY7 {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  flex-shrink: 0;
}

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

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

.war_deckPile__1V9FE {
  width: clamp(55px, 14vw, 75px);
}

.war_deckCount__QV05m {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
}

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

.war_fieldCards__MQdaU {
  display: flex;
  justify-content: center;
  min-height: clamp(70px, 18vw, 110px);
  align-items: center;
}

/* ── War card stacking ── */
.war_warStack__0KPIa {
  display: flex;
  gap: 2px;
  align-items: center;
}

.war_stackedCard__SA7HL {
  width: clamp(50px, 13vw, 70px);
  transition: transform 0.3s ease-out;
}

.war_stackedOffset__fcLd7 {
  margin-left: clamp(-30px, -7vw, -18px);
}

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

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

.war_cardRed__bxib3 {
  color: #e63946;
}

.war_cardBlack__7YxGM {
  color: #1a1a2e;
}

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

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

.war_cardRank__kAiwg {
  font-size: clamp(9px, 2.8vw, 13px);
  font-weight: 800;
}

.war_cardSuitSmall__gClRU {
  font-size: clamp(7px, 2.2vw, 11px);
}

.war_cardCenter__f4XZX {
  font-size: clamp(16px, 5vw, 26px);
}

/* ── Card back ── */
.war_cardBack__QGBBc {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 4px;
  background: linear-gradient(145deg, #4a5d23, #2d3a15);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.war_cardBack__QGBBc::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: repeating-linear-gradient(
    45deg,
    rgba(212, 175, 55, 0.05) 0px,
    rgba(212, 175, 55, 0.05) 3px,
    transparent 3px,
    transparent 6px
  );
}

/* ── Message ── */
.war_message__viuV_ {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #d4af37;
  background: rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  z-index: 20;
  animation: war_fadeIn__zzoSg 0.25s ease-out;
}

.war_messageWar__qs9lc {
  font-size: 1.4rem;
  color: #ff6b35;
  background: rgba(0, 0, 0, 0.85);
  text-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
  animation: war_warPulse__o1h2z 0.4s ease-out;
}

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

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

/* ── Action bar ── */
.war_actionBar__KbjXm {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  flex-shrink: 0;
  min-height: 56px;
  align-items: center;
}

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

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

.war_flipBtn__ee3eE:active {
  transform: translateY(0);
}

.war_phaseIndicator__cDwp_ {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 14px 0;
}

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

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

.war_overlaySubtitle__ymPPP {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

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

.war_overlayBtn__PoFdz {
  margin-top: 8px;
  padding: 14px 40px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(145deg, #d4af37, #b8960c);
  color: #1a1a2e;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

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

  .war_statValue__Yf9vg {
    font-size: 0.95rem;
  }

  .war_flipBtn__ee3eE {
    padding: 12px 36px;
    font-size: 1rem;
  }

  .war_stackedCard__SA7HL {
    width: clamp(44px, 12vw, 60px);
  }
}

@media (max-width: 360px) {
  .war_stackedCard__SA7HL {
    width: clamp(38px, 10vw, 50px);
  }
}

