/* ===== Pagina Timer (se adauga peste app.css) ===== */
/* O singura coloana cat ecranul, gandita intai pentru telefon tinut vertical. */
body.timerPage{
  min-height: 100vh;
  min-height: 100dvh; /* tine cont de bara de adrese de pe telefon */
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px;
}

.timerHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.timerHeader h1{ margin: 0; font-size: 20px; }
.timerHeader a{ padding: 10px 4px; }

.scrambleBox{ text-align: center; }
.scramble{
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(18px, 5vw, 26px);
  line-height: 1.5;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

/* Zona de atingere */
.pad{
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
  border-radius: 18px;
  background: rgba(var(--ink),.05);
  border: 1px solid rgba(var(--ink),.12);
  cursor: pointer;
  touch-action: none; /* fara derulare sau zoom cand tii apasat */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.time{
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(44px, 15vw, 120px);
  font-weight: 800;
  line-height: 1.1;
}
.hint{ font-size: 14px; opacity: .8; }

body[data-state="holding"] .time{ color: var(--err); }
body[data-state="ready"] .time{ color: var(--ok); }
body[data-state="unsaved"] .time{ color: var(--warn); }

/* In timpul rezolvarii, zona acopera tot ecranul: se opreste oriunde atingi. */
body[data-state="running"] .pad{
  position: fixed;
  inset: 0;
  z-index: 10;
  border: 0;
  border-radius: 0;
  background: var(--bg);
}

.lastSolve{
  min-height: 72px;
  text-align: center;
}
.lastSolve .solveActions{ justify-content: center; }
.lastSolve #status{ margin-top: 6px; }
#status.err{ color: var(--err); opacity: 1; }

.timerStats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.timerStats div{
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(var(--ink),.06);
}
.timerStats span{ display: block; font-size: 12px; opacity: .8; }
.timerStats b{ font-size: clamp(14px, 4.4vw, 20px); }
