:root {
  --bg-color: #0f172a;
  --surface: #1e293b;
  --text: #f8fafc;
  --color-idle: #3b82f6;
  --color-ready: #dc2626;
  --color-go: #16a34a;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 460px;
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

h1 {
  font-size: 1.35rem;
  color: #fff;
}

.stats-bar strong {
  color: #38bdf8;
}

.target-zone {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: background-color 0.1s ease;
}

.target-zone.waiting {
  background-color: var(--color-idle);
}

.target-zone.ready {
  background-color: var(--color-ready);
}

.target-zone.go {
  background-color: var(--color-go);
}

.zone-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

#main-msg {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

#sub-msg {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

.result-time {
  font-size: 3rem;
  font-weight: 900;
  margin-top: 10px;
}

.history-card {
  width: 100%;
  background-color: var(--surface);
  border-radius: 10px;
  padding: 14px 18px;
  border: 1px solid #334155;
}

.history-card h3 {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.history-item {
  background-color: #0f172a;
  border: 1px solid #334155;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
}

.empty-hint {
  font-size: 0.85rem;
  color: #64748b;
}
