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

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

.yahtzee_hudLeft__zGYov {
  display: flex;
  gap: 16px;
}

.yahtzee_statItem__wYysw {
  text-align: center;
}

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

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

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

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

/* ── Table ── */
.yahtzee_table__T_SFw {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  overflow-y: auto;
}

/* ── Dice area ── */
.yahtzee_diceArea__X22wr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
}

.yahtzee_diceLabel__HJllg {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.yahtzee_diceRow__583tl {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.yahtzee_die__mRSam {
  width: 56px;
  height: 56px;
  background: #f5f0e8;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.yahtzee_dieHeld__Fd9bJ {
  box-shadow: 0 0 0 3px #d4af37, 0 0 12px rgba(212, 175, 55, 0.5);
}

.yahtzee_dieClickable__iw7YP {
  cursor: pointer;
}

.yahtzee_dieClickable__iw7YP:hover {
  transform: translateY(-2px);
}

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

.yahtzee_holdLabel__gz0Oi {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 800;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.yahtzee_rollInfo__zo_mq {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Roll button ── */
.yahtzee_rollBtn__qpXsb {
  padding: 10px 32px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(145deg, #c0392b, #8b1a1a);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(192, 57, 43, 0.4);
}

.yahtzee_rollBtn__qpXsb:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(192, 57, 43, 0.6);
}

.yahtzee_rollBtn__qpXsb:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ── Phase indicator ── */
.yahtzee_phaseIndicator__FocCd {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 4px 0;
}

/* ── Message ── */
.yahtzee_message__DdXQn {
  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;
}

/* ── Scorecard ── */
.yahtzee_scorecardContainer__qAikG {
  width: 100%;
  max-width: 400px;
}

.yahtzee_scorecard__aYk1o {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.yahtzee_scorecard__aYk1o th,
.yahtzee_scorecard__aYk1o td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yahtzee_categoryHeader__9z9Wy,
.yahtzee_scoreHeader__xccaP {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.yahtzee_categoryHeader__9z9Wy {
  text-align: left;
}

.yahtzee_categoryCell__3Odl_ {
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
}

.yahtzee_scoreCell__wQA57 {
  text-align: center;
  font-weight: 600;
  min-width: 40px;
}

.yahtzee_scoreCellClickable__wS3s_ {
  cursor: pointer;
  background: rgba(192, 57, 43, 0.15);
  border-radius: 4px;
}

.yahtzee_scoreCellClickable__wS3s_:hover {
  background: rgba(192, 57, 43, 0.35);
}

.yahtzee_potentialScore__NyNci {
  color: rgba(212, 175, 55, 0.6);
  font-style: italic;
}

.yahtzee_scoreCellHighlight__453jK {
  animation: yahtzee_scoreFlash__H5VSV 1.5s ease-out;
}

@keyframes yahtzee_scoreFlash__H5VSV {
  0% { background: rgba(212, 175, 55, 0.4); }
  100% { background: transparent; }
}

.yahtzee_sectionHeader__MaQCB td {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.7);
  letter-spacing: 0.1em;
  padding-top: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.yahtzee_subtotalRow__IwTLN td {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.yahtzee_totalRow__pJqmx td {
  font-size: 0.9rem;
  font-weight: 900;
  color: #d4af37;
  border-top: 2px solid rgba(212, 175, 55, 0.4);
  padding-top: 8px;
}

.yahtzee_rowAvailable__nN12a {
  background: rgba(192, 57, 43, 0.06);
}

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

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

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

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

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

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

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

  .yahtzee_statValue__rF0Rd {
    font-size: 0.95rem;
  }

  .yahtzee_die__mRSam {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 360px) {
  .yahtzee_die__mRSam {
    width: 40px;
    height: 40px;
  }

  .yahtzee_diceRow__583tl {
    gap: 6px;
  }
}

