/* Spieltag: dieselbe Anzeigetafel wie die App. Keine externen Schriften, keine Requests nach außen. */
:root {
  color-scheme: dark;
  --grund: #090808;
  --punkt-aus: #1E1B17;
  --bernstein: #F8D10E;
  --weiss: #F3F3F2;
  --grau: #8F8B83;      /* 5,89:1 auf dem Grund, nur Nebentext, nie unter 14 px */
  --rahmen: #8C8A84;
  --taste: #1A1815;
  --taste-gedrueckt: #2C2925;
  --taste-rand: #5E5A52;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--grund);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--weiss);
  font: 17px/1.5 var(--sans);
  background-color: var(--grund);
  /* Unbeleuchtete Punkte der Tafel */
  background-image: radial-gradient(circle, var(--punkt-aus) 1.1px, transparent 1.6px);
  background-size: 6px 6px;
  background-position: 3px 3px;
}

main, footer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

main { padding-top: 56px; padding-bottom: 32px; }

h1, h2 { margin: 0; font-weight: 700; color: var(--weiss); line-height: 1.15; }
h1 { font-size: 44px; letter-spacing: -0.01em; }
h2 { font-size: 22px; }
p { margin: 0; }

.marke {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.satz { margin-top: 12px; font-size: 20px; max-width: 34em; }
.neben { color: var(--grau); font-size: 15px; }

section + section { margin-top: 48px; }
.abschnitt { margin-top: 48px; }
.abschnitt p + p { margin-top: 10px; }
.abschnitt h2 + p { margin-top: 12px; }

.mono { font-family: var(--mono); color: var(--bernstein); }

/* Der Code, groß wie ein Spielstand */
.code {
  display: block;
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: clamp(40px, 11vw, 76px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--bernstein);
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

.daten { margin-top: 16px; font-size: 19px; }
.daten .zahl { font-family: var(--mono); color: var(--bernstein); }
.regeln { margin-top: 6px; }
.wertung { margin-top: 16px; }

/* Tasten: deckende dunkle Kappe mit durchgezogenem Rand */
.tasten {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.taste {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--taste-rand);
  border-radius: 10px;
  background: var(--taste);
  color: var(--weiss);
  font: 600 17px/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.taste:hover { border-color: var(--rahmen); }
.taste:active { background: var(--taste-gedrueckt); }
.taste.primaer { border-color: var(--bernstein); color: var(--bernstein); }
.taste:focus-visible, a:focus-visible {
  outline: 2px solid var(--bernstein);
  outline-offset: 3px;
}

.taste.ok { border-color: var(--bernstein); color: var(--bernstein); transition: border-color 0.15s, color 0.15s; }

a { color: var(--weiss); text-underline-offset: 3px; }
a:hover { color: var(--bernstein); }

.rueckmeldung { min-height: 1.5em; margin-top: 10px; }

footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--punkt-aus);
}
footer p + p { margin-top: 6px; }

[hidden] { display: none !important; }

@media (min-width: 600px) {
  main { padding-top: 96px; }
  h1 { font-size: 56px; }
  .tasten { flex-direction: row; flex-wrap: wrap; }
  .taste { width: auto; min-width: 200px; }
}

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