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

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

/* Header */
.typing_header__TGryX {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

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

.typing_subtitle__PL71Y {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Stats bar */
.typing_statsBar__iGhjk {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.typing_stat__Q6Tly {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.typing_statValue__CLF4e {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.typing_statValueHighlight__kfbxD {
  color: var(--accent);
}

.typing_statLabel__RAPnC {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Mode selector */
.typing_modeSelector__ddX5h {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.typing_modeBtn__HYGGt {
  padding: 8px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
}

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

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

/* Text display area */
.typing_textArea__aHAAP {
  width: 100%;
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  min-height: 160px;
  position: relative;
}

.typing_textDisplay__Uj9Qg {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #64748b;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  word-wrap: break-word;
}

.typing_charCorrect__iC4HF {
  color: #22c55e;
}

.typing_charIncorrect__Br0Ys {
  color: #ef4444;
  background: #fee2e2;
  border-radius: 2px;
}

.typing_charCurrent__PuPmL {
  background: #fef08a;
  border-radius: 2px;
  animation: typing_blink__4a_ly 1s ease-in-out infinite;
}

@keyframes typing_blink__4a_ly {
  0%, 50% { background: #fef08a; }
  51%, 100% { background: #fde047; }
}

.typing_charPending__4HGnI {
  color: #94a3b8;
}

/* Hidden input */
.typing_hiddenInput__6yK4u {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Cursor overlay for focus indication */
.typing_textAreaFocused__NrJVg {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.typing_focusHint__kibEk {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Controls */
.typing_controls__63ux2 {
  display: flex;
  gap: 12px;
}

.typing_controlBtn____RPu {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

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

.typing_controlIcon__uMkF7 {
  font-size: 1.1rem;
}

/* Results overlay */
.typing_overlay__h5i1t {
  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;
}

.typing_modal__GZFnd {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

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

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

.typing_resultStats__Xa17L {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.typing_resultStat__aDs1H {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
}

.typing_resultStatValue__rzTty {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.typing_resultStatValuePrimary__yPHtO {
  color: var(--accent);
}

.typing_resultStatLabel__JySrN {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 4px;
}

.typing_newRecord__ipT8h {
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}

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

.typing_btn__h_mLM:hover {
  opacity: 0.9;
}

/* Start screen */
.typing_startOverlay__Iqg09 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
}

.typing_startText__urTsW {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.typing_startHint__Y2TYM {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Progress bar */
.typing_progressBar__vOt1g {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.typing_progressFill__hw62f {
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* Timer warning */
.typing_timerWarning__XzNoO {
  color: #ef4444 !important;
  animation: typing_pulse__XUtee 0.5s ease-in-out infinite;
}

@keyframes typing_pulse__XUtee {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 600px) {
  .typing_wrapper__h1Dwj {
    padding: 0.5rem;
  }

  .typing_titleBlock___uhTw h1 {
    font-size: 1.5rem;
  }

  .typing_statsBar__iGhjk {
    gap: 12px;
    padding: 12px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .typing_stat__Q6Tly {
    min-width: 55px;
  }

  .typing_statValue__CLF4e {
    font-size: 1.4rem;
  }

  .typing_textArea__aHAAP {
    padding: 16px;
    min-height: 140px;
  }

  .typing_textDisplay__Uj9Qg {
    font-size: 1.1rem;
  }

  .typing_modeSelector__ddX5h {
    flex-wrap: wrap;
    justify-content: center;
  }

  .typing_modeBtn__HYGGt {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .typing_controlBtn____RPu {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

