/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #020617;
  --primary: #38bdf8;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: rgba(255,255,255,.08);
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #020617;
}

body {
  min-height: 100svh;
  background: radial-gradient(circle at top, #020617 0%, #020617 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  color: var(--text);
}

/* APP */
.app {
  width: 100%;
  max-width: 640px;
  padding: 24px;
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cycles {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* CIRCLE */
.circle {
  width: 240px;
  height: 240px;
  margin: 28px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7dd3fc, #0284c7);
  transform: scale(0.25);
  transition: transform linear, box-shadow .6s ease, background .6s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 80px rgba(56,189,248,.4);
}

.circle.inhale {
  box-shadow: 0 0 120px rgba(56,189,248,.6);
}

.circle.exhale {
  box-shadow: 0 0 60px rgba(96,165,250,.4);
}

.timer {
  font-size: 4rem;
  font-weight: 600;
}

/* LABEL */
.label {
  font-size: 1.6rem;
  margin-bottom: 26px;
  color: var(--primary);
  transition: opacity .3s ease, transform .3s ease;
}

.label.fade {
  opacity: 0;
  transform: translateY(6px);
}

/* CONTROLS */
.controls {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
}

.controls button {
  flex: 1;
  padding: 18px;
  font-size: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: var(--text);
}

/* PRESETS */
.presets {
  margin-bottom: 32px;
}

.presets label {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.presets select {
  width: 100%;
  padding: 18px;
  font-size: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* TIMERS */
.timers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /* max-width: 420px; */
  margin: 0 auto;
}

.timers label {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.timers input {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text);
  text-align: center;
  width: 100%;
}

/* FOCUS MODE */
.focus .controls,
.focus .presets,
.focus .timers,
.focus .title {
  display: none;
}

/* EXIT BUTTON */
.exit-focus {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 22px;
  font-size: 1.2rem;
  border-radius: 16px;
  display: none;
}

.focus .exit-focus {
  display: block;
}

/* MOBILE */
@media (max-width: 900px) {
  body {
    align-items: flex-start;
    padding-top: 32px;
  }

  .timers {
    grid-template-columns: 1fr;
  }
}
