@font-face {
  font-family: "Syne";
  src: url("./Syne.79bc839264c4.woff2") format("woff2");
  font-display: swap;
  font-weight: 700 800;
}

@font-face {
  font-family: "Manrope";
  src: url("./Manrope.ce093b341d9c.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 800;
}

:root {
  --bench: #20265c;
  --bench-deep: #171c48;
  --tile: #faf6ec;
  --tile-dim: #efe7d3;
  --ink: #1e2030;
  --ink-soft: #4c4f68;
  --paper: #f2ecdd;
  --cobalt: #26418f;
  --cobalt-deep: #1a2f6b;
  --clay: #c1502e;
  --clay-deep: #9a3c20;
  --leaf: #2e7d4f;
  --white: #fffdf6;
  --border: 3px solid var(--ink);
  color-scheme: light;
  font-family: "Manrope", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background-color: var(--bench);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(250, 246, 236, 0.05) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(250, 246, 236, 0.05) 46px 47px);
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--tile);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 0.6rem 0.6rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0.25rem;
}

.brand {
  font-family: "Syne", "Manrope", sans-serif;
  font-weight: 800;
  color: var(--paper);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--paper);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

main {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.eyebrow {
  font-family: "Syne", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0a88f;
  margin: 0 0 0.5rem;
}

.game-hero {
  padding-top: 1rem;
}

.hero-copy {
  max-width: 44rem;
}

.hero-copy h1 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw + 1rem, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.deck {
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
  max-width: 38rem;
}

.trust {
  font-size: 0.92rem;
  color: #cfcae0;
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.pair-wrap {
  background: var(--tile);
  color: var(--ink);
  border: var(--border);
  border-radius: 1rem;
  box-shadow: 7px 7px 0 rgba(10, 12, 30, 0.9);
  padding: clamp(0.8rem, 2.5vw, 1.4rem);
}

.pair-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.6rem, 2vw, 1rem);
}

.tile-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0.7rem;
  padding: 0.4rem;
}

.tile-card[data-mark="good"] {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px var(--leaf);
}

.tile-card[data-mark="bad"] {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay);
}

.tile-svg {
  display: block;
  width: 100%;
  height: auto;
}

.tile-cell {
  fill: var(--cobalt);
  stroke: var(--cobalt-deep);
  stroke-width: 2;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

button {
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  background: var(--white);
  border: var(--border);
  border-radius: 0.7rem;
  padding: 0.65rem 1.1rem;
  min-height: 48px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(30, 32, 48, 0.9);
}

button:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(30, 32, 48, 0.9);
}

button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(30, 32, 48, 0.9);
}

button:disabled {
  cursor: default;
  opacity: 0.55;
  box-shadow: none;
}

button.primary {
  background: var(--clay);
  color: var(--white);
}

button.on-dark {
  background: var(--tile);
}

.verdict {
  margin-top: 0.9rem;
  border-radius: 0.7rem;
  padding: 0.7rem 1rem;
  border: var(--border);
}

.verdict[hidden] {
  display: none;
}

.verdict[data-tone="good"] {
  background: #e3f0e7;
  border-color: var(--leaf);
}

.verdict[data-tone="bad"] {
  background: #f7e3d8;
  border-color: var(--clay);
}

.verdict-truth {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0;
}

.verdict[data-tone="good"] .verdict-truth {
  color: var(--leaf);
}

.verdict[data-tone="bad"] .verdict-truth {
  color: var(--clay-deep);
}

.verdict-note {
  margin: 0.15rem 0 0.7rem;
  font-weight: 700;
}

.game-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pair-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.8rem;
}

.pair-bar .spacer {
  flex: 1 1 auto;
}

.keyboard-hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.7rem 0.1rem 0;
}

.summary {
  margin-top: 1.25rem;
  border-top: 3px dashed var(--ink);
  padding-top: 1.25rem;
}

.summary[hidden],
.pair-block[hidden] {
  display: none;
}

.summary-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.summary-head h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0;
}

.score-stamp {
  font-family: "Syne", "Manrope", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--white);
  background: var(--clay);
  border: var(--border);
  border-radius: 0.8rem;
  padding: 0.3rem 0.9rem;
  transform: rotate(2deg);
  font-variant-numeric: tabular-nums;
}

.score-stamp small {
  font-size: 1.1rem;
}

.tier {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0.6rem 0 0.1rem;
}

.tier-note {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.mirrors-line,
.angle-line {
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.angle-line[hidden] {
  display: none;
}

.dots {
  display: flex;
  gap: 0.45rem;
  list-style: none;
  margin: 0.8rem 0 1.2rem;
  padding: 0;
}

.dots li {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 0.6rem;
  background: var(--white);
}

.dots li[data-mark="good"] {
  color: var(--leaf);
  border-color: var(--leaf);
}

.dots li[data-mark="bad"] {
  color: var(--clay-deep);
  border-color: var(--clay);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.share-status {
  min-height: 1.6em;
  margin: 0.6rem 0 0;
  font-weight: 700;
}

.share-fallback {
  margin: 0.5rem 0 0;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 2px dashed var(--ink);
  border-radius: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.share-fallback[hidden] {
  display: none;
}

.method {
  margin-top: 2.5rem;
  max-width: 44rem;
}

.method h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw + 0.8rem, 2rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.method p {
  margin: 0 0 0.9rem;
}

footer {
  border-top: 3px solid var(--paper);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #cfcae0;
}

footer a {
  color: var(--paper);
  font-weight: 700;
}

.text-link {
  font-weight: 800;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

.error-page main {
  max-width: 34rem;
  background: var(--tile);
  color: var(--ink);
  border: var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 7px 7px 0 rgba(10, 12, 30, 0.9);
}

.error-page .eyebrow {
  color: var(--clay-deep);
}

@media (max-width: 26rem) {
  .score-stamp {
    font-size: 2rem;
  }

  .tier {
    font-size: 1.25rem;
  }

  .dots li {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.05rem;
  }

  .dots {
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  button:hover:not(:disabled),
  button:active:not(:disabled) {
    transform: none;
  }
}
