* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000000;
  color: #ffffff;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  text-transform: uppercase;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(env(safe-area-inset-top), 16px) 16px max(env(safe-area-inset-bottom), 16px);
  transition: opacity 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 480px) {
  .screen {
    padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
  }
}

.hidden { display: none; }

h1 {
  font-size: 16px;
  letter-spacing: 0.5em;
  color: #ffffff;
  margin-bottom: 40px;
  font-weight: 600;
  opacity: 1;
  text-shadow: 0 0 20px rgba(255, 0, 64, 0.1);
  text-align: center;
  line-height: 1.4;
  padding: 0 16px;
}

@media (min-width: 480px) {
  h1 {
    font-size: 18px;
    letter-spacing: 0.6em;
    margin-bottom: 80px;
    padding: 0;
  }
}

h1 .subtitle {
  display: block;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: #888888;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0.8;
  text-shadow: none;
}

.control {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 16px;
}

.btn {
  font-size: 40px;
  font-weight: 300;
  color: #ffffff;
  width: 52px;
  height: 52px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.btn:active { 
  opacity: 1; 
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.12);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
  border-radius: 50%;
}

.value {
  font-size: 64px;
  font-weight: 700;
  min-width: 96px;
  text-align: center;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.label {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #888888;
  margin-bottom: 64px;
  font-weight: 500;
  opacity: 0.9;
}

.start {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: #ffffff;
  opacity: 0.6;
  margin-top: 24px;
  font-weight: 500;
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
  cursor: pointer;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  touch-action: manipulation;
}

@media (min-width: 480px) {
  .start {
    font-size: 11px;
    letter-spacing: 0.4em;
    margin-top: 56px;
    padding: 12px 24px;
  }
}

.start:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

@media (min-width: 768px) {
  h1 {
    font-size: 18px;
    margin-bottom: 72px;
    letter-spacing: 0.6em;
  }

  .value {
    font-size: 64px;
  }
}
