:root {
  --hh-red: #d5121e;
  --hh-red-dark: #a30d17;
  --hh-white: #ffffff;
  --hh-navy: #10233c;
  --hh-gold: #f2b705;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(242,183,5,0.25), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(213,18,30,0.25), transparent 40%),
    var(--hh-navy);
  color: var(--hh-navy);
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  min-height: 100vh;
}

.loading, .error {
  color: var(--hh-white);
  text-align: center;
  padding-top: 40vh;
  font-size: 1.1rem;
}

.card {
  background: var(--hh-white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--hh-red) 0 20px,
    var(--hh-white) 20px 40px
  );
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--hh-white);
  margin-bottom: 16px;
}

.brand h1 {
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.brand .balloon {
  font-size: 1.4rem;
}

.progress-wrap {
  margin-bottom: 20px;
}

.progress-label {
  font-size: 0.85rem;
  color: var(--hh-navy);
  opacity: 0.7;
  margin-bottom: 6px;
}

.progress-bar {
  height: 10px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hh-red), var(--hh-gold));
  transition: width 0.3s ease;
}

h2.station-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--hh-red-dark);
}

.station-text {
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.station-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.option-btn {
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e2e2e2;
  background: #fafafa;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-btn:hover { border-color: var(--hh-gold); }

.option-btn.correct {
  border-color: #2e9e4f;
  background: #eafaf0;
}

.option-btn.wrong {
  border-color: var(--hh-red);
  background: #fdecec;
}

.whatsapp-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e9fbe9;
  border: 1px solid #bfe8bf;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.whatsapp-box a {
  color: #1a7a1a;
  font-weight: 600;
  text-decoration: none;
}

.code-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.code-input-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #e2e2e2;
  font-size: 1rem;
  text-transform: uppercase;
}

.code-input-row input:focus {
  outline: none;
  border-color: var(--hh-gold);
}

.btn {
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  background: var(--hh-red);
  color: var(--hh-white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--hh-red-dark); }

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn.secondary {
  background: var(--hh-navy);
}

.feedback {
  font-size: 0.9rem;
  margin-bottom: 12px;
  min-height: 1.2em;
}

.feedback.ok { color: #1a7a1a; }
.feedback.err { color: var(--hh-red); }

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.final-screen {
  text-align: center;
}

.final-screen .emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}

.start-screen {
  text-align: center;
}

.start-screen h2 {
  color: var(--hh-red-dark);
}

.start-screen p {
  line-height: 1.5;
}
