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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#app {
  height: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Start Screen */
.exercise-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  touch-action: pan-y;
}

.exercise-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: #e0e0e0;
  letter-spacing: 0.02em;
  text-align: center;
}

.dot-indicators {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  transition: background 0.2s ease;
}

.dot.active {
  background: #888;
}

.exercise-description {
  font-size: 0.875rem;
  color: #555;
  text-align: center;
  max-width: 260px;
  line-height: 1.4;
}

.start-button {
  font-size: 1.5rem;
  font-weight: 500;
  color: #e0e0e0;
  background: transparent;
  border: 2px solid #333;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.start-button:hover,
.start-button:focus {
  border-color: #555;
  outline: none;
}

.start-button:active {
  transform: scale(0.96);
}

/* Breathing Screen */
.breathing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  height: 100%;
  justify-content: center;
  cursor: pointer;
}

.breathing-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3a3a4a, #1a1a2a);
  box-shadow: 0 0 40px rgba(100, 100, 140, 0.2);
  transition: transform 4s ease-in-out;
}

.breathing-circle.expanded {
  transform: scale(1.5);
}

.phase-text {
  font-size: 1.25rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.05em;
  min-height: 1.5em;
}

.cycle-indicator {
  font-size: 0.875rem;
  color: #444;
  position: absolute;
  bottom: max(2rem, env(safe-area-inset-bottom, 2rem));
}

/* Completion Screen */
.complete-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.complete-text {
  font-size: 1.5rem;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.1em;
}

.complete-buttons {
  display: flex;
  gap: 1rem;
}

.action-button {
  font-size: 1rem;
  font-weight: 500;
  color: #e0e0e0;
  background: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-width: 100px;
}

.action-button:hover,
.action-button:focus {
  border-color: #555;
  outline: none;
}

.action-button:active {
  background: #1a1a1a;
}

.action-button.secondary {
  color: #666;
  border-color: #222;
}

.action-button.secondary:hover,
.action-button.secondary:focus {
  border-color: #333;
  color: #888;
}
