/*!******************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/clash-royale/clash-royale.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************/
.clash-royale_wrapper__ueupz {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #0f1a0f 0%, #1a2a1a 100%);
  padding: 0;
}

/* ── Game Container ── */
.clash-royale_gameContainer__WLNnc {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Canvas ── */
.clash-royale_canvas__zLmEZ {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  touch-action: none;
  cursor: default;
}

.clash-royale_canvasPlacing__DwvHb {
  cursor: crosshair;
}

/* ── Top HUD ── */
.clash-royale_topHud__mft0B {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
}

.clash-royale_hudLabel__ibyjr {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.clash-royale_timer__H9Doc {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
}

.clash-royale_overtimeTimer___EBU9 {
  color: #e74c3c;
  animation: clash-royale_pulse__H3yX4 0.8s infinite alternate;
}

.clash-royale_overtimeLabel__fzTr7 {
  font-size: 0.75rem;
  vertical-align: middle;
}

@keyframes clash-royale_pulse__H3yX4 {
  from { opacity: 1; }
  to   { opacity: 0.5; }
}

/* ── Elixir ── */
.clash-royale_elixirBarSmall__s64cA {
  display: flex;
  gap: 2px;
  flex: 1;
  align-items: center;
}

.clash-royale_elixirRow__Ds96B {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.clash-royale_elixirIcon__DRgNb {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.clash-royale_elixirBar__RJaij {
  display: flex;
  gap: 2px;
  flex: 1;
}

.clash-royale_elixirSeg__g_mAQ {
  flex: 1;
  height: 12px;
  border-radius: 3px;
  background: rgba(155, 89, 182, 0.25);
  border: 1px solid rgba(155, 89, 182, 0.4);
  transition: background 0.15s;
}

.clash-royale_elixirSegFull__t4rxy {
  background: #9b59b6;
  box-shadow: 0 0 5px rgba(155, 89, 182, 0.7);
}

.clash-royale_elixirSegEnemy__5WgRj {
  height: 6px;
  background: rgba(155, 89, 182, 0.2);
}

.clash-royale_elixirCount__U3ogS {
  font-weight: 800;
  color: #9b59b6;
  font-size: 1.1rem;
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Bottom HUD ── */
.clash-royale_bottomHud__IJPqN {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
  padding: 8px 10px 14px;
  border-top: 2px solid #9b59b6;
}

/* ── Card Hand ── */
.clash-royale_cardHand__j3qCT {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

.clash-royale_cardSlot__n7M1J {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 4px 6px;
  background: linear-gradient(145deg, #2c2c4a, #1a1a2e);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.clash-royale_cardSlot__n7M1J:hover {
  background: linear-gradient(145deg, #35355a, #22223a);
}

.clash-royale_cardSlot__n7M1J:active {
  transform: scale(0.94);
}

.clash-royale_cardSlotSelected__yV0mF {
  border-color: #f1c40f !important;
  box-shadow: 0 0 14px rgba(241, 196, 15, 0.6);
  transform: translateY(-5px);
}

.clash-royale_cardSlotPoor__xL3ux {
  opacity: 0.45;
  cursor: not-allowed;
}

.clash-royale_slotEmoji__duprx {
  font-size: 1.5rem;
  line-height: 1;
}

.clash-royale_slotName__xgy6s {
  font-size: 0.42rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.clash-royale_slotCost__86HeZ {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ── Next Card Preview ── */
.clash-royale_nextCard__oBdxm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  min-width: 38px;
  flex-shrink: 0;
}

.clash-royale_nextLabel__Xr199 {
  font-size: 0.38rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clash-royale_nextEmoji__fMUii {
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Overlay / Modals ── */
.clash-royale_overlay__Ftkbw {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: clash-royale_fadeIn__hDAUU 0.25s ease-out;
}

@keyframes clash-royale_fadeIn__hDAUU {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.clash-royale_modal__cgZof {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 2px solid #9b59b6;
  border-radius: 18px;
  padding: 32px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: clash-royale_slideUp__99BMu 0.25s ease-out;
}

@keyframes clash-royale_slideUp__99BMu {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.clash-royale_modalWin__sNKos  { border-color: #f1c40f; }
.clash-royale_modalLose__f8pCH { border-color: #e74c3c; }
.clash-royale_modalDraw__IZuxN { border-color: #9b59b6; }

.clash-royale_resultEmoji__8LPyY {
  font-size: 4rem;
  line-height: 1;
}

.clash-royale_modalTitle__VwfSw {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 2rem;
  color: white;
  margin: 0;
  line-height: 1;
}

.clash-royale_modalWin__sNKos  .clash-royale_modalTitle__VwfSw { color: #f1c40f; }
.clash-royale_modalLose__f8pCH .clash-royale_modalTitle__VwfSw { color: #e74c3c; }
.clash-royale_modalDraw__IZuxN .clash-royale_modalTitle__VwfSw { color: #9b59b6; }

.clash-royale_modalSub__CqVUG {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.clash-royale_modalLabel__1r7Ct {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ── Difficulty ── */
.clash-royale_diffRow__5ddxL {
  display: flex;
  gap: 8px;
  width: 100%;
}

.clash-royale_diffBtn__yitf8 {
  flex: 1;
  padding: 10px 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
}

.clash-royale_diffBtn__yitf8:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.clash-royale_diffBtnActive__8i6MY {
  border-color: #f1c40f;
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
}

/* ── Deck Select ── */
.clash-royale_deckModal__q67S4 {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 2px solid #9b59b6;
  border-radius: 18px;
  padding: 24px 18px 20px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 90vh;
  overflow-y: auto;
  animation: clash-royale_slideUp__99BMu 0.25s ease-out;
}

.clash-royale_cardGrid__nieoG {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.clash-royale_cardOption__rFXlT {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.clash-royale_cardOption__rFXlT:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.clash-royale_cardOptionSelected__4Et6J {
  background: rgba(241, 196, 15, 0.08);
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

.clash-royale_cardOptionDisabled__C6cAS {
  opacity: 0.35;
  cursor: not-allowed;
}

.clash-royale_cardOptEmoji__b_WvB {
  font-size: 1.6rem;
  line-height: 1;
}

.clash-royale_cardOptName__AsfwP {
  font-size: 0.4rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.clash-royale_cardOptCost__KAbp9 {
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  margin-top: 1px;
}

.clash-royale_deckBtns__ZuwG8 {
  display: flex;
  gap: 10px;
  width: 100%;
}

/* ── Buttons ── */
.clash-royale_btn__wtu4A {
  background: linear-gradient(145deg, #9b59b6, #7d3c98);
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  width: 100%;
}

.clash-royale_btn__wtu4A:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(155, 89, 182, 0.5);
}

.clash-royale_btn__wtu4A:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.clash-royale_btnSecondary__KxHAm {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.clash-royale_btnSecondary__KxHAm:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ── Responsive ── */
@media (max-width: 400px) {
  .clash-royale_cardHand__j3qCT {
    gap: 4px;
  }

  .clash-royale_slotEmoji__duprx {
    font-size: 1.2rem;
  }

  .clash-royale_cardGrid__nieoG {
    gap: 5px;
  }

  .clash-royale_cardOptEmoji__b_WvB {
    font-size: 1.3rem;
  }

  .clash-royale_timer__H9Doc {
    font-size: 1.2rem;
  }
}

