:root {
  --red: #E12233;
  --gold: #E4CD5C;
  --mist: #E6E9E8;
  --ink: #201E1D;
  --ink-soft: #55524F;
  --card: #FFFFFF;
  --line: #D8DCDA;
  --radius: 18px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: env(safe-area-inset-top, 16px) 20px 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 8px; }

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.app-main {
  flex: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 20px 40px;
}

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  margin: 0 0 6px;
}

.welcome {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 22px;
  color: var(--ink);
}

.stat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.stat {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tier-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 26px;
}

.tier-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
}

.tier-chip.done { opacity: 1; }

.pick-mini {
  width: 18px;
  height: 22px;
  background: var(--tier-color, #ccc);
  border: 1.5px solid var(--tier-edge, #999);
  clip-path: polygon(50% 0%, 85% 22%, 100% 55%, 50% 100%, 0% 55%, 15% 22%);
}

.tier-name {
  font-size: 0.58rem;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(225, 34, 51, 0.25);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: block;
  width: 100%;
  padding: 15px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  margin-top: 22px;
}

.btn-text {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.4;
}

/* Session dial */

.dial-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 18px;
}

.dial-svg {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.12));
}

.dial-outline {
  fill: var(--card);
  stroke: var(--line);
  stroke-width: 2;
}

.dial-fill {
  transition: y 0.25s linear, height 0.25s linear, fill 0.4s ease;
}

.session-time {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 2.4rem;
  margin: 4px 0 4px;
}

.session-caption {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 8px;
}

/* Summary */

.summary-message {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 18px;
}

.summary-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.pick-earned-svg {
  width: 90px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.15));
}

.pick-earned-label {
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Trivia */

.trivia-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0;
}

.trivia-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 6px;
}

.trivia-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
}

/* Quiz */

.quiz-progress {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 6px;
}

.quiz-question {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 18px;
  line-height: 1.35;
}

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

.quiz-option {
  text-align: left;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 0.92rem;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  cursor: pointer;
}

.quiz-option:disabled { cursor: default; }

.quiz-option.correct {
  border-color: #3E8E5A;
  background: rgba(62, 142, 90, 0.1);
  font-weight: 700;
}

.quiz-option.wrong {
  border-color: var(--red);
  background: rgba(225, 34, 51, 0.08);
}

.quiz-result {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 10px 0 8px;
}

.quiz-result-sub {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.app-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-soft);
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px));
}
