:root {
  --bg-top: #f4efe5;
  --bg-bottom: #d8e2d1;
  --ink: #1e1a16;
  --muted: rgba(30, 26, 22, 0.68);
  --line: rgba(30, 26, 22, 0.12);
  --panel: rgba(255, 250, 242, 0.86);
  --paper: #fff8ed;
  --accent: #d85d2f;
  --accent-soft: rgba(216, 93, 47, 0.14);
  --green: #25533a;
  --green-soft: rgba(37, 83, 58, 0.14);
  --shadow: 0 24px 80px rgba(27, 21, 16, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Trebuchet MS", "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 93, 47, 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(37, 83, 58, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

button {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.device-frame {
  position: relative;
  width: min(100vw - 24px, 76vh);
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 240, 230, 0.88)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.app,
.screen,
.question-card,
.hero-copy,
.result-core {
  position: relative;
  z-index: 1;
}

.grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.015) 0,
      rgba(0, 0, 0, 0.015) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.65;
  pointer-events: none;
}

.glow-left {
  top: -48px;
  left: -42px;
  background: rgba(216, 93, 47, 0.2);
}

.glow-right {
  right: -58px;
  bottom: -64px;
  background: rgba(37, 83, 58, 0.16);
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
}

.chrome {
  display: grid;
  gap: 12px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(216, 93, 47, 0.12);
}

.frame-progress,
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.frame-progress span,
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--accent));
  transition: width 0.35s ease;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  animation: reveal 0.4s ease;
}

.badge-row,
.fact-strip,
.score-pills,
.answer-row,
.sticker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge,
.fact-strip span,
.sticker-grid span,
.score-pill {
  border-radius: 999px;
  border: 1px solid var(--line);
}

.badge {
  padding: 9px 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.48);
}

.badge-paper {
  background: var(--paper);
}

.hero-copy h1,
.question-card h2,
.result-core h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-copy {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.hero-copy h1 {
  font-size: clamp(40px, 7vw, 68px);
}

.lead,
.question-card p,
.feedback p,
.accent-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.eyebrow,
.kicker {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.kicker {
  margin-top: 8px;
  color: var(--accent);
}

.sticker-grid {
  margin-top: auto;
}

.sticker-grid span {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.56);
  font-weight: 700;
  transform: rotate(var(--tilt, 0deg));
}

.sticker-grid span:nth-child(1) {
  --tilt: -5deg;
}

.sticker-grid span:nth-child(2) {
  --tilt: 3deg;
}

.sticker-grid span:nth-child(3) {
  --tilt: -2deg;
}

.sticker-grid span:nth-child(4) {
  --tilt: 4deg;
}

.fact-strip span {
  padding: 10px 14px;
  background: rgba(255, 248, 237, 0.74);
  font-size: 14px;
}

.tap-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--green), #2f6d4d);
  color: #f8f3eb;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(37, 83, 58, 0.22);
}

.tap-zone strong {
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tap-zone-secondary {
  background: linear-gradient(135deg, var(--accent), #ee7a4d);
  box-shadow: 0 16px 40px rgba(216, 93, 47, 0.24);
}

.question-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.counter {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.counter span {
  font-size: 18px;
  color: var(--muted);
}

.question-card,
.result-core {
  padding: 22px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.question-card {
  display: grid;
  gap: 18px;
  min-height: 320px;
}

.question-card h2,
.result-core h2 {
  font-size: clamp(34px, 5.5vw, 56px);
}

.feedback {
  padding: 16px 18px;
  border-radius: 22px;
  display: grid;
  gap: 8px;
}

.feedback span,
.score-pill strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.feedback.is-correct,
.score-pill.is-correct {
  background: var(--green-soft);
}

.feedback.is-wrong,
.score-pill.is-wrong {
  background: var(--accent-soft);
}

.answer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-button {
  min-height: 76px;
  border: 0;
  border-radius: 22px;
  cursor: pointer;
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 700;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.answer-button:disabled {
  cursor: default;
  opacity: 0.92;
}

.answer-yes {
  background: linear-gradient(135deg, var(--green), #3b825d);
  color: #f8f3eb;
  box-shadow: 0 14px 34px rgba(37, 83, 58, 0.18);
}

.answer-no {
  background: linear-gradient(135deg, #fff8ed, #f0dfc8);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(72, 43, 18, 0.1);
}

.answer-button:not(:disabled):hover,
.answer-button:not(:disabled):focus-visible,
.tap-zone:hover,
.tap-zone:focus-visible {
  transform: translateY(-2px);
}

.result-core {
  display: grid;
  gap: 14px;
}

.score-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.score-pill {
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: center;
}

.score-pill span {
  font-size: 28px;
  font-weight: 700;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .shell {
    padding: 12px;
  }

  .device-frame {
    width: min(100vw - 12px, 100vh * 0.75);
    border-radius: 28px;
  }

  .app {
    padding: 16px;
  }

  .hero-copy h1,
  .question-card h2,
  .result-core h2 {
    line-height: 1.02;
  }

  .question-card {
    min-height: 280px;
  }
}
