/* JustBee Spelletjes: the shared look for the hub and every game on spelletjes.justbee.nl.
   Paper, ink and yellow, Fredoka for headings and Nunito Sans for text (Google Fonts, as on
   justbee.nl), the JustBee return bar, the "Alle spelletjes" link, cards, buttons and small print.
   A game sets its own accent with --accent (and --accent-soft, --accent-ink) in its own stylesheet. */
:root {
  --paper: #faf7ee;
  --panel: #fffdf6;
  --ink: #1f1f1f;
  --muted: #6a665d;
  --line: #e8dfc9;
  --yellow: #ffc629;
  --yellow-soft: #fff0b7;
  --sand: #f1ead6;
  --accent: #ffc629;
  --accent-soft: #fff0b7;
  --accent-ink: #1f1f1f;
  --good: #2f7d32;
  --good-soft: #e3f1dc;
  --gutter: 16px;
  --width: 860px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

* {
  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;
  overflow-wrap: break-word;
}

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

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

button,
input,
select {
  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: #73654c;
}

.muted {
  color: var(--muted);
}

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

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

.justbee-return {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px max(var(--gutter), calc((100vw - var(--width)) / 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;
}

/* ---------- back to the hub, right under the return bar */

.hub-link {
  max-width: var(--width);
  margin: 0 auto;
  padding: 10px var(--gutter) 0;
  font-weight: 800;
  font-size: 14px;
}

.hub-link a {
  text-decoration: none;
  color: var(--muted);
}

.hub-link a:hover,
.hub-link a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- layout and cards */

.page {
  max-width: var(--width);
  margin: 0 auto;
  padding: 24px var(--gutter) 56px;
  display: grid;
  gap: 22px;
}

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

@media (min-width: 640px) {
  .card {
    padding: 28px;
  }
}

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

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

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

/* ---------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--ink);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.btn:disabled {
  opacity: .45;
  cursor: default;
  transform: none;
  box-shadow: 0 3px 0 var(--ink);
}

.btn.ghost {
  background: var(--panel);
  color: var(--ink);
}

.btn:focus-visible,
.tab:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- tabs (daily round / practice) */

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: var(--sand);
  border-radius: 18px;
}

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

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

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

/* ---------- stats */

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

.stats-grid div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
}

.stats-grid dt {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  line-height: 1.25;
}

.stats-grid dd {
  margin: 4px 0 0;
  font: 600 26px 'Fredoka', sans-serif;
}

/* ---------- small print and footer */

.small-print {
  font-size: 14px;
  color: var(--muted);
}

.small-print strong {
  color: var(--ink);
}
