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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #ffffff;
  color: #222;
  overflow: hidden;
  touch-action: manipulation;
}

#app {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  height: 100%;
  max-width: 480px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.task-area {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.task-display {
  font-size: 48px;
  font-weight: bold;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.button-group {
  display: flex;
  gap: 12px;
}

button {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #222;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Noto Sans JP', sans-serif;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

button:active {
  transform: scale(0.95);
  background: #f5f5f5;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: #222;
  transition: width 0.3s ease;
}

.timer {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.result {
  text-align: center;
  width: 100%;
}

.result h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.result-score {
  font-size: 64px;
  font-weight: bold;
  margin: 20px 0;
}

.result-text {
  font-size: 18px;
  line-height: 1.6;
  margin: 20px 0;
}

.stats {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.stat-row:last-child {
  border-bottom: none;
}

.retry-button {
  margin-top: 20px;
  padding: 16px 48px;
}