/* Fact Tower — minimal block graphics. Polish later. */
:root {
  --bg: #f4efe6;
  --fg: #2b241c;
  --muted: #8a7e6c;
  --border: #2b241c;
  --locked: #c9b48a;
  --current: #e8c36a;
  --active: #f0a94a;
  --true: #4a8a4a;
  --false: #a84444;
  --accent: #2b241c;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  min-height: 100vh;
}
.ft-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
}
.ft-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ft-header h1 {
  font-size: 22px;
  margin: 0;
  letter-spacing: 0.02em;
}
.ft-stats {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.ft-stats b {
  color: var(--fg);
  font-weight: 600;
}

/* Tower — stacked CSS div blocks */
.ft-tower {
  display: flex;
  flex-direction: column-reverse; /* bottom = level 1 */
  align-items: center;
  gap: 2px;
  margin: 16px 0;
  min-height: 60px;
}
.ft-level {
  display: flex;
  gap: 2px;
  align-items: center;
}
.ft-level-label {
  font-size: 11px;
  color: var(--muted);
  width: 28px;
  text-align: right;
  margin-right: 6px;
}
.ft-block {
  width: 22px;
  height: 18px;
  border: 1px solid var(--border);
  background: var(--locked);
}
.ft-block.is-empty {
  background: transparent;
  border-style: dashed;
  opacity: 0.4;
}
.ft-block.is-current {
  background: var(--current);
}
.ft-block.is-just-placed {
  background: var(--active);
  animation: pop 0.25s ease-out;
}
@keyframes pop {
  0% { transform: scale(0.7); }
  100% { transform: scale(1); }
}

/* Play controls */
.ft-play {
  text-align: center;
  margin: 16px 0;
}
.ft-msg { color: var(--muted); }
.ft-btn {
  font: inherit;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  cursor: pointer;
  border-radius: 2px;
  min-width: 100px;
}
.ft-btn:hover { background: #faf6ec; }
.ft-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ft-btn-primary { background: var(--current); font-weight: 600; }
.ft-btn-true { background: #eaf3ea; border-color: var(--true); color: var(--true); font-weight: 700; }
.ft-btn-false { background: #f3eaea; border-color: var(--false); color: var(--false); font-weight: 700; }

/* Claim + buttons */
.ft-claim-area {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: #fff;
}
.ft-progress {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.ft-claim {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.ft-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.ft-buttons {
  display: flex;
  gap: 12px;
}
.ft-buttons .ft-btn { flex: 1; padding: 14px; font-size: 16px; }

/* Reveal */
.ft-reveal {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: #fff;
}
.ft-reveal-verdict {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.ft-reveal-verdict.correct { color: var(--true); }
.ft-reveal-verdict.wrong { color: var(--false); }
.ft-reveal-text { line-height: 1.5; margin-bottom: 8px; }
.ft-reveal-source { font-size: 11px; color: var(--muted); margin-bottom: 12px; }

/* Landing */
.ft-landing {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  min-height: 100vh;
}
.ft-landing-inner {
  padding-top: 32px;
}
.ft-landing-title {
  font-size: 44px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.ft-landing-tag {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 32px;
}
.ft-landing-pitch p {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.ft-landing-cta {
  display: inline-block;
  margin: 20px 0 32px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  min-width: 200px;
  text-align: center;
}
.ft-landing-sample {
  margin: 32px 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: #fff;
}
.ft-landing-sample-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.ft-landing-sample-claim {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.ft-landing-sample-answer summary {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.ft-landing-sample-reveal {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px dashed var(--muted);
}
.ft-landing-foot {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
}
.ft-landing-foot a { color: var(--muted); }

/* Prose pages */
.ft-prose h1 { font-size: 28px; }
.ft-prose h2 { font-size: 18px; margin-top: 24px; }
.ft-prose p { line-height: 1.5; font-size: 15px; }
.ft-prose a { color: var(--accent); }

/* Dev bar */
.ft-devbar {
  background: #2b241c;
  color: #f0a94a;
  padding: 6px 10px;
  font-size: 11px;
  font-family: ui-monospace, Menlo, Monaco, monospace;
  margin: -16px -16px 12px -16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ft-dev-btn {
  background: transparent;
  color: #f0a94a;
  border: 1px solid #f0a94a;
  padding: 2px 8px;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 2px;
}
.ft-dev-btn:hover { background: #f0a94a; color: #2b241c; }

/* End screen */
.ft-endscreen {
  margin: 16px 0;
  padding: 24px;
  border: 2px solid var(--border);
  background: #fff;
  text-align: center;
}
.ft-end-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ft-end-detail { color: var(--muted); }
.ft-share { margin-top: 20px; }
.ft-share-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.ft-share-img {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  display: block;
}
.ft-share-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
