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

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

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

.dominoes_statItem__sk0wY {
  text-align: center;
}

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

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

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

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

/* ── Opponent area ── */
.dominoes_oppArea__TmoCH {
  padding: 6px 8px;
  flex-shrink: 0;
}

.dominoes_oppLabel__uOjy0 {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.dominoes_oppHand__NqutL {
  display: flex;
  gap: 3px;
  justify-content: center;
  flex-wrap: wrap;
}

.dominoes_oppHand__NqutL .dominoes_domino__fpd1R {
  width: clamp(28px, 7vw, 38px);
  height: clamp(14px, 3.5vw, 19px);
}

/* ── Boneyard ── */
.dominoes_boneyardInfo__1PYoh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 0;
  flex-shrink: 0;
}

.dominoes_boneyardIcon__zXfVg {
  font-size: 0.8rem;
}

.dominoes_boneyardCount__6tT0h {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

/* ── Chain area ── */
.dominoes_chainContainer__cGKrB {
  flex: 1;
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 12px 8px;
  min-height: 60px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.dominoes_chainInner__PUkzA {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: -moz-min-content;
  min-width: min-content;
  margin: 0 auto;
}

.dominoes_chainEmpty__Js64T {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.dominoes_endIndicator___islr {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #d4af37;
  flex-shrink: 0;
}

/* ── Domino tile ── */
.dominoes_domino__fpd1R {
  display: flex;
  flex-direction: row;
  width: clamp(44px, 12vw, 64px);
  height: clamp(22px, 6vw, 32px);
  background: #f5f0e8;
  border-radius: 4px;
  border: 1px solid #d0c8b8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dominoes_dominoHalf__ObqCo {
  flex: 1;
  position: relative;
}

.dominoes_dominoDivider__0HyJg {
  width: 1px;
  background: #b0a898;
  align-self: stretch;
}

.dominoes_pip__oQqKK {
  position: absolute;
  width: 18%;
  height: 36%;
  background: #1a1a1a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.dominoes_dominoFaceDown__ht5MG {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}

.dominoes_dominoBack__1h_kL {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2d5a3d, #1a3a2a);
  border-radius: 3px;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.05) 3px,
    rgba(255, 255, 255, 0.05) 4px
  );
}

.dominoes_dominoSelected__MQSwY {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px #d4af37, 0 4px 12px rgba(212, 175, 55, 0.5);
  z-index: 5;
}

.dominoes_dominoPlayable__XL6zQ {
  cursor: pointer;
  border-color: rgba(212, 175, 55, 0.5);
}

.dominoes_dominoPlayable__XL6zQ:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* ── Action bar ── */
.dominoes_actionBar__gJeSu {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  min-height: 40px;
  align-items: center;
  flex-shrink: 0;
}

.dominoes_actionBtn__QwhSU {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(145deg, #d4af37, #b8960c);
  color: #1a1a2e;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

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

.dominoes_endBtn__ZS_dP {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.dominoes_endBtn__ZS_dP:hover {
  background: rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

/* ── Player area ── */
.dominoes_playerArea__qeB77 {
  padding: 8px;
  flex-shrink: 0;
}

.dominoes_playerHand__AcwET {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

/* ── Phase indicator ── */
.dominoes_phaseIndicator__yUp9i {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 2px 0;
  flex-shrink: 0;
}

/* ── Message ── */
.dominoes_message__wh7P_ {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: #d4af37;
  font-weight: 600;
  text-align: center;
  margin: 4px 12px;
}

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

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

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

.dominoes_overlaySubtitle__Kn57P {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

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

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

/* ── Score table ── */
.dominoes_scoreTable__tIHW7 {
  width: 240px;
  border-collapse: collapse;
  margin: 8px 0;
}

.dominoes_scoreTable__tIHW7 th,
.dominoes_scoreTable__tIHW7 td {
  padding: 6px 12px;
  text-align: center;
  font-size: 0.85rem;
}

.dominoes_scoreTable__tIHW7 th {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dominoes_scoreTable__tIHW7 td {
  color: rgba(255, 255, 255, 0.8);
}

.dominoes_scorePositive__ECon6 {
  color: #4ade80 !important;
  font-weight: 700;
}

.dominoes_scoreNegative__BJQ9q {
  color: #f87171 !important;
  font-weight: 700;
}

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

  .dominoes_statValue__7bakT {
    font-size: 0.95rem;
  }

  .dominoes_domino__fpd1R {
    width: clamp(36px, 10vw, 48px);
    height: clamp(18px, 5vw, 24px);
  }
}

@media (max-width: 360px) {
  .dominoes_domino__fpd1R {
    width: clamp(30px, 9vw, 40px);
    height: clamp(15px, 4.5vw, 20px);
  }

  .dominoes_pip__oQqKK {
    width: 16%;
    height: 32%;
  }
}

