body {
  font-family: system-ui, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  padding: 20px;
}

h1, .subtitle {
  text-align: center;
}

.container {
  max-width: 420px;
  margin: auto;
}

label {
  display: block;
  margin-top: 14px;
}

.app-header {
  position: relative;
  margin-bottom: 10px;
}

.back-link {
  position: absolute;
  left: 0;
  top: 0;
  text-decoration: none;
  color: #9ca3af;
  font-size: 14px;
  padding: 6px 10px;
}

.back-link:hover {
  color: #22c55e;
}

input, select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-top: 4px;
}

button {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.primary {
  background: #22c55e;
  color: #022c22;
}

.secondary {
  background: #1e293b;
  color: #e5e7eb;
}

.hint {
  font-size: 12px;
  opacity: 0.7;
}

.hidden {
  display: none !important;
}

.card {
  background: #020617;
  padding: 14px;
  border-radius: 12px;
  margin-top: 12px;
}

.winner {
  border: 2px solid #22c55e;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #020617;
  padding: 20px;
  border-radius: 14px;
  width: 90%;
  max-width: 360px;
}

.modal-box.wide {
  max-width: 720px;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#detailModal {
  z-index: 1100;
}

#compareModal {
  z-index: 1200;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.compare-card {
  background: #020617;
  padding: 16px;
  border-radius: 12px;
}

.chart {
  margin: 10px 0;
}

.chart-label {
  font-size: 13px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.chart-bar {
  height: 10px;
  background: #1f2937;
  border-radius: 6px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  width: 0%;
  transition: width 0.6s ease;
}

.compare-card.winner {
  border: 2px solid #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,0.5);
}
