/*!************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/crossword/crossword.module.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************/
.crossword_wrapper__Af4yx {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: var(--background);
}

.crossword_container__RNQqR {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.crossword_header__Vu94j {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.crossword_titleBlock__pFOBJ h1 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--primary);
  line-height: 1;
}

.crossword_subtitle__Sh8WT {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 2px;
}

.crossword_dateDisplay__cphoA {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* Grid */
.crossword_gridWrapper__j0V3e {
  width: 100%;
  max-width: 320px;
  margin-bottom: 1rem;
}

.crossword_grid__aWIzr {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: #333;
  padding: 2px;
  border-radius: 4px;
}

.crossword_cell__yaB84 {
  aspect-ratio: 1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.crossword_cellBlocked__eGkmO {
  background: #333;
  cursor: default;
}

.crossword_cellSelected__3r7EG {
  background: #fef08a !important;
}

.crossword_cellHighlighted__xqVGM {
  background: #dbeafe;
}

.crossword_cellCorrect__fbs3s {
  color: #16a34a;
}

.crossword_cellNumber__RuxyW {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 0.55rem;
  font-weight: 600;
  color: #666;
}

.crossword_cellInput__C7AeK {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: inherit;
  font-weight: inherit;
  text-transform: uppercase;
  outline: none;
  caret-color: transparent;
}

/* Direction indicator */
.crossword_directionToggle__7WuS7 {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.crossword_directionBtn__MJ4QB {
  padding: 8px 20px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.crossword_directionBtn__MJ4QB:hover {
  border-color: var(--accent);
}

.crossword_directionBtnActive___RPls {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Clues */
.crossword_cluesContainer__RZU9P {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.crossword_clueSection__75Tlg h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crossword_clueList__SktCQ {
  list-style: none;
  padding: 0;
  margin: 0;
}

.crossword_clueItem__MXDFA {
  font-size: 0.8rem;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s;
  line-height: 1.4;
}

.crossword_clueItem__MXDFA:hover {
  background: #f3f4f6;
}

.crossword_clueItemActive__EOnZI {
  background: #dbeafe;
  font-weight: 600;
}

.crossword_clueItemSolved__dCPaf {
  color: #16a34a;
  text-decoration: line-through;
  opacity: 0.7;
}

.crossword_clueNumber__VeMP4 {
  font-weight: 700;
  margin-right: 4px;
}

/* Current clue display */
.crossword_currentClue__erU3H {
  width: 100%;
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 1rem;
  text-align: center;
}

.crossword_currentClueLabel__16dad {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.crossword_currentClueText__r22ez {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Controls */
.crossword_controls__fBtwz {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
}

.crossword_controlBtn__8RXlw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s;
  min-width: 70px;
}

.crossword_controlBtn__8RXlw:active {
  background: #f0f0f0;
}

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

.crossword_controlIcon__nOMgT {
  font-size: 1.3rem;
}

.crossword_controlLabel__Rl2l0 {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Loading state */
.crossword_loading__yoUDf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 16px;
}

.crossword_spinner__YbML2 {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: crossword_spin__XkWCE 0.8s linear infinite;
}

@keyframes crossword_spin__XkWCE {
  to { transform: rotate(360deg); }
}

.crossword_loadingText__QEh1U {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Error state */
.crossword_error__vtnL6 {
  text-align: center;
  padding: 2rem;
}

.crossword_errorTitle__wTZ8F {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.crossword_errorMessage__csqGO {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Win overlay */
.crossword_overlay__SRPNV {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.crossword_modal__HjDt6 {
  background: white;
  border-radius: 12px;
  padding: 28px;
  max-width: 360px;
  width: 90%;
  text-align: center;
}

.crossword_modal__HjDt6 h2 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.crossword_modal__HjDt6 p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.crossword_stats__qkSLx {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.crossword_stat__XxWHJ {
  text-align: center;
}

.crossword_statValue__WI2rK {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.crossword_statLabel__JmW_0 {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.crossword_btn__4toYR {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}

.crossword_btn__4toYR:hover {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 500px) {
  .crossword_wrapper__Af4yx {
    padding: 0.25rem;
  }

  .crossword_header__Vu94j {
    padding: 0 0.25rem;
  }

  .crossword_titleBlock__pFOBJ h1 {
    font-size: 1.4rem;
  }

  .crossword_cluesContainer__RZU9P {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .crossword_gridWrapper__j0V3e {
    max-width: 280px;
  }

  .crossword_controlBtn__8RXlw {
    padding: 8px 12px;
    min-width: 60px;
  }

  .crossword_controlIcon__nOMgT {
    font-size: 1.1rem;
  }

  .crossword_controlLabel__Rl2l0 {
    font-size: 0.5rem;
  }
}

