/* Nepdorp: the JustBee look (paper, ink, yellow; Fredoka and Nunito Sans, as on justbee.nl) with a
   Dutch place-name sign in traffic blue, on two posts in a polder. */
:root {
  --paper: #faf7ee;
  --panel: #fffdf6;
  --ink: #1f1f1f;
  --muted: #6a665d;
  --line: #e8dfc9;
  --yellow: #ffc629;
  --yellow-soft: #fff0b7;
  --sign: #0b4f9c;
  --sign-dark: #083d7a;
  --sky: #dcecf7;
  --grass: #8fbf5a;
  --grass-dark: #6f9e3f;
  --good: #2f7d32;
  --good-soft: #e3f1dc;
  --bad: #c62828;
  --bad-soft: #fbe3e0;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1,
h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-decoration-color: #d5a400;
  text-underline-offset: 4px;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .17em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sign);
}

.muted {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 15px;
}

kbd {
  font: 800 12px 'Nunito Sans', sans-serif;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--panel);
}

/* ---------- JustBee return bar (as on the other subdomains) */

.justbee-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px max(24px, calc((100vw - 820px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font: 800 14px 'Nunito Sans', sans-serif;
}

.justbee-return a {
  color: var(--ink);
  text-decoration: none;
}

.justbee-return .brand {
  display: block;
  width: 156px;
  line-height: 0;
}

.justbee-return .brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- layout */

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: grid;
  gap: 24px;
}

.intro h1 {
  font-size: clamp(38px, 7vw, 64px);
}

.lead {
  margin: 14px 0 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 40ch;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 10px 30px -22px rgba(60, 45, 10, .35);
}

.card h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.card p {
  margin: 0 0 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* ---------- mode tabs */

.modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: #f1ead6;
  border-radius: 18px;
}

.mode {
  border: 0;
  border-radius: 13px;
  padding: 11px 8px;
  background: transparent;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  color: #5a5242;
}

.mode[aria-selected="true"] {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 2px 8px -4px rgba(60, 45, 10, .4);
}

.mode-day {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.mode:focus-visible,
.answer:focus-visible,
.next:focus-visible,
.ghost:focus-visible,
.map-link:focus-visible {
  outline: 3px solid var(--sign);
  outline-offset: 2px;
}

/* ---------- game */

.game {
  padding: 22px 22px 24px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.progress,
.tally {
  margin: 0;
  font-weight: 800;
  font-size: 15px;
}

.tally {
  color: var(--muted);
  text-align: right;
}

.dots {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 10px 0 16px;
  padding: 0;
}

.dots li {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #ece4cd;
}

.dots li.is-current {
  background: var(--yellow);
}

.dots li.is-good {
  background: var(--good);
}

.dots li.is-bad {
  background: var(--bad);
}

.game.is-endless .dots {
  display: none;
}

.game.is-endless .status-row {
  margin-bottom: 16px;
}

/* ---------- the stage: sky, grass and a place-name sign on two posts */

.stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 34px 16px 46px;
  background: linear-gradient(180deg, #cfe6f6 0%, var(--sky) 55%, #eef6fb 100%);
}

.stage::before {
  content: '';
  position: absolute;
  left: 10%;
  top: 8px;
  width: 80px;
  height: 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 40px 8px 0 -4px rgba(255, 255, 255, .7), 380px 2px 0 -2px rgba(255, 255, 255, .6);
}

.stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background:
    linear-gradient(180deg, var(--grass) 0, var(--grass-dark) 100%);
  border-top: 3px solid #7aae49;
}

.sign-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 46px;
  margin-bottom: -46px;
}

.post {
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 70px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8d949b, #c7ccd1 45%, #8d949b);
  z-index: -1;
}

.post-left {
  left: calc(50% - 30%);
}

.post-right {
  right: calc(50% - 30%);
}

.sign {
  position: relative;
  width: min(100%, 520px);
  background: var(--sign);
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 2px 0 var(--sign-dark), 0 14px 24px -14px rgba(8, 40, 80, .7);
  transition: transform .25s ease;
}

.sign-inner {
  border: 4px solid #fff;
  border-radius: 9px;
  min-height: 112px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.sign-name {
  margin: 0;
  max-width: 100%;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: .005em;
  overflow-wrap: normal;
}

.card .sign-name,
.card .sign-sub {
  margin-bottom: 0;
}

.sign-sub {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 16px;
  opacity: .92;
}

/* "Einde bebouwde kom": a red stripe through the sign when the place is made up. */
.sign-stripe {
  position: absolute;
  left: -2%;
  right: -2%;
  top: calc(50% - 8px);
  height: 16px;
  border-radius: 3px;
  background: #d32f2f;
  box-shadow: 0 0 0 3px #fff;
  transform: rotate(-14deg) scaleX(0);
  transform-origin: center;
  transition: transform .35s ease;
  pointer-events: none;
}

.sign.is-fake .sign-stripe {
  transform: rotate(-14deg) scaleX(1);
}

.sign.is-real {
  transform: translateY(-3px);
}

.sign.is-loading .sign-name {
  opacity: .5;
}

/* ---------- answers */

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.answer {
  min-height: 64px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 22px;
  cursor: pointer;
  transition: transform .08s ease, background-color .15s ease, opacity .15s ease;
  touch-action: manipulation;
}

.answer:active:not(:disabled) {
  transform: translateY(2px);
}

.answer-real {
  background: var(--yellow);
}

.answer-fake {
  background: var(--panel);
}

.answer:disabled {
  cursor: default;
}

.answers.is-answered .answer {
  opacity: .45;
}

.answers.is-answered .answer.is-picked {
  opacity: 1;
}

.answer.is-picked.is-good {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}

.answer.is-picked.is-bad {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}

.keys {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- reveal after an answer */

.reveal {
  margin-top: 16px;
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--yellow-soft);
}

.reveal.is-good {
  background: var(--good-soft);
}

.reveal.is-bad {
  background: var(--bad-soft);
}

.verdict {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
}

.card .verdict {
  margin-bottom: 6px;
}

.reveal-text {
  font-weight: 700;
}

.reveal-line {
  color: #3f3a30;
}

.reveal-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
}

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

.next,
.ghost {
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  touch-action: manipulation;
}

.next {
  background: var(--ink);
  color: #fff;
  margin-left: auto;
}

.ghost {
  background: transparent;
}

/* ---------- result */

.result {
  margin-top: 18px;
  text-align: center;
}

.result-rating {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}

.result-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  text-align: left;
}

.result-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f6f1e2;
  font-size: 15px;
}

.result-list .name {
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-list .what {
  color: var(--muted);
  white-space: nowrap;
}

.result-list li.is-bad .what {
  color: var(--bad);
  font-weight: 700;
}

.result-actions {
  justify-content: center;
}

.result-actions .next {
  margin-left: 0;
}

.share-note {
  margin-top: 10px;
  font-weight: 700;
  color: var(--good);
}

/* ---------- stats and text */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.stats-grid div {
  background: #f6f1e2;
  border-radius: 14px;
  padding: 12px 14px;
}

.stats-grid dt {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.stats-grid dd {
  margin: 2px 0 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
}

.small-print {
  font-size: 15px;
  color: #4b463c;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .justbee-return {
    padding-inline: 16px;
  }

  .justbee-return .brand {
    width: 126px;
  }

  .justbee-return > a:last-child {
    font-size: 12px;
  }

  .page {
    padding: 28px 16px 44px;
    gap: 18px;
  }

  .lead {
    font-size: 17px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .game {
    padding: 16px 14px 20px;
  }

  .stage {
    padding: 28px 10px 42px;
  }

  .sign-inner {
    min-height: 96px;
    padding: 12px 8px;
  }

  .mode {
    font-size: 14px;
    padding: 10px 4px;
  }

  .answer {
    min-height: 68px;
  }

  .keys {
    display: none;
  }

  .next {
    flex: 1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
