/* ===== Colors and sizes in one place, easy to change ===== */
:root {
  --ink: #1B1A3A;        /* deep indigo: text, dossier */
  --paper: #EEF0F8;      /* page background */
  --card: #FFFFFF;
  --line: #DCDFEE;
  --muted: #5E6180;
  --magenta: #D6008B;    /* main action color */
  --real: #0F8A5C;
  --fake: #D2361C;
  --marker: #FFE45C;     /* highlighter yellow */
  --radius: 18px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ===== Top bar ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 16px 0;
}
.wordmark { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.lang-btn {
  font: inherit; font-weight: 700; font-size: 0.85rem;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 5px 14px; cursor: pointer;
}

main {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 16px 8px;
}

/* ===== Buttons ===== */
.btn {
  font: inherit; font-weight: 700; font-size: 1.05rem;
  border: none; border-radius: 999px;
  padding: 15px 26px; cursor: pointer; color: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--magenta); box-shadow: 0 4px 0 #8E005C; }
.btn-real { background: var(--real); box-shadow: 0 4px 0 #075A3B; }
.btn-fake { background: var(--fake); box-shadow: 0 4px 0 #8C2010; }
.btn-wide { width: 100%; margin-top: 20px; }
.btn:focus-visible, .lang-btn:focus-visible, .dossier-link:focus-visible {
  outline: 3px solid var(--marker); outline-offset: 3px;
}

/* ===== Start screen ===== */
.hero { padding: 40px 0 24px; }
.hero-title {
  font-size: clamp(3rem, 13vw, 5.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
}
.hero-intro { font-size: 1.2rem; max-width: 34ch; margin: 0 0 12px; }
.hero-meta { color: var(--muted); max-width: 40ch; margin: 0 0 32px; }

/* the small wordmark repeats the big title, so hide it on the start screen */
body[data-screen="start"] .wordmark { visibility: hidden; }
.teaser {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 44px; transform: rotate(-3deg);
}
.teaser svg { width: 100%; height: auto; border-radius: 8px; display: block; }

/* ===== Progress segments ===== */
.counter { margin: 0 0 8px; font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.progress { display: flex; gap: 5px; margin-bottom: 18px; }
.seg { flex: 1; height: 7px; border-radius: 4px; background: var(--line); }
.seg-now { background: var(--ink); }
.seg-ok { background: var(--real); }
.seg-miss { background: var(--fake); }

/* ===== The social-media post ===== */
.post {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.post-who { min-width: 0; flex: 1; }
.acc-name { font-weight: 700; line-height: 1.25; }
.acc-handle { color: var(--muted); font-size: 0.88rem; }
.platform {
  flex: none; align-self: flex-start;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
  max-width: 45%; text-align: center;
}
.post-text { font-size: 1.08rem; margin: 0 0 14px; }

/* ===== Illustrations inside posts ===== */
.media { position: relative; margin: 0; }
.media-frame { position: relative; }
.media svg, .media img { display: block; width: 100%; height: auto; border-radius: 12px; }
.media-ad .media-frame { max-width: 300px; margin: 0 auto; }
.media figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.play {
  position: absolute; left: 50%; top: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.88);
}
.play::after {
  content: ""; position: absolute; left: 22px; top: 16px;
  border-left: 18px solid var(--ink);
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.duration {
  position: absolute; right: 10px; top: 10px;
  background: rgba(27, 26, 58, 0.8); color: #fff;
  font-size: 0.78rem; font-weight: 600; padding: 1px 7px; border-radius: 6px;
}

/* ===== The verdict stamp: the one big moment ===== */
.media-wrap { position: relative; }
.stamp {
  position: absolute; left: 50%; top: 42%;
  translate: -50% -50%;
  font-size: 2.3rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 2px 16px;
  border: 5px solid currentColor; border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  transform: rotate(-11deg);
  animation: stamp 0.32s cubic-bezier(.2, 1.6, .4, 1) both;
  pointer-events: none;
}
.stamp-real { color: var(--real); }
.stamp-fake { color: var(--fake); }
@keyframes stamp {
  from { transform: rotate(-11deg) scale(1.9); opacity: 0; }
  to   { transform: rotate(-11deg) scale(1); opacity: 1; }
}

/* ===== Answer buttons ===== */
.ask { font-weight: 700; font-size: 1.15rem; margin: 22px 0 10px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== Feedback after answering ===== */
.verdict {
  margin-top: 18px; padding: 16px 18px;
  border-radius: var(--radius); background: var(--card);
  border-left: 7px solid;
}
.verdict p { margin: 0; }
.verdict p + p { margin-top: 8px; }
.verdict-ok { border-color: var(--real); }
.verdict-miss { border-color: var(--fake); }
.verdict-head strong {
  background: linear-gradient(transparent 55%, var(--marker) 55%);
}

/* ===== "Who's behind it?" as an investigation folder ===== */
.dossier {
  margin-top: 46px;
  background: var(--ink); color: #F2F3FA;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 18px 18px 20px;
  position: relative;
}
.dossier-tab {
  position: absolute; left: 0; top: -28px; margin: 0;
  background: var(--ink); color: var(--marker);
  font-size: 1rem; font-weight: 800;
  padding: 6px 16px 4px; border-radius: 12px 12px 0 0;
}
.dossier-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.dossier-facts div { border-top: 1px solid #3B3A66; padding-top: 8px; }
.dossier-facts dt { font-size: 0.82rem; color: #A9ABD0; }
.dossier-facts dd { margin: 2px 0 0; font-weight: 700; }
.dossier-info { margin: 0 0 14px; }
.dossier-link { color: var(--marker); font-weight: 700; text-underline-offset: 3px; }

/* ===== Results ===== */
.results { padding: 24px 0; }
.score {
  font-size: clamp(3.6rem, 18vw, 6rem); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1; margin: 0 0 10px;
}
.score-text { font-size: 1.15rem; max-width: 36ch; margin: 0 0 20px; }
.marks { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 32px; flex-wrap: wrap; }
.mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 0.9rem;
}
.mark-ok { background: var(--real); }
.mark-miss { background: var(--fake); }
.tips-title { font-size: 1.3rem; margin: 0 0 8px; }
.tips { padding-left: 1.2em; margin: 0 0 30px; }
.tips li { margin-bottom: 6px; }

footer {
  max-width: 620px; margin: 0 auto;
  color: var(--muted); font-size: 0.8rem;
  padding: 24px 16px 40px;
}

@media (max-width: 420px) {
  .stamp { font-size: 1.9rem; }
  .dossier-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp { animation: none; }
  .btn { transition: none; }
}
