/* Rubik (OFL, assets/fonts/OFL.txt) für Geräte ohne SF Rounded, v. a. Android. Nur Latin-Subset.
   Die Gewichtsachse ist umgemappt (avar), damit Rubik 200 Stufen leichter wirkt: CSS 600 → 400,
   900 → 700, 1100 → 900; bis 400 unverändert. So bleiben die font-weight-Werte für SF gleich.
   Erzeugt mit fontTools aus @fontsource-variable/rubik: fvar-wght-Max auf 1100, avar-Segmente entsprechend. */
@font-face {
  font-family: "Rubik";
  src: url("./assets/fonts/rubik.woff2") format("woff2");
  font-weight: 300 1100;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: ui-rounded, "SF Pro Rounded", "Rubik", system-ui, sans-serif;
  --ink: #231f20;
  --paper: #fffaf2;
  --canvas: #f5efe5;
  --accent: #f97316;
  --muted: #746d66;
  --success: #15803d;
  --skip: #57534e;
  --mascot: url("./assets/mascot-6-8.webp");
}

/* height: 100% hebelt viewport-fit=cover aus (Safari faellt aufs Nicht-Cover-Layout
   zurueck). --app-height setzt app.js auf die echte Bildschirmhoehe, 100vh ist der
   Fallback fuer Desktop und fuer den Moment vor dem ersten Messen. */
html {
  height: var(--app-height, 100vh);
}

html,
body {
  margin: 0;
  overscroll-behavior: none;
}

body {
  /* Fester Body: kein Rubber-Band-Scroll, keine Adressleisten-Animation, und das
     Layout haengt an --app-height statt an den in Standalone falschen Viewport-Einheiten.
     Kein negativer bottom-Offset mehr -- der kompensierte Wert macht ihn ueberfluessig. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-height, 100vh);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28rem),
    var(--mascot) no-repeat bottom right / min(58vmin, 26rem),
    var(--canvas);
  transition: background 180ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button,
input {
  font: inherit;
}

button {
  min-height: 3rem;
}

button {
  cursor: pointer;
}

.settings-button,
.settings-close {
  display: grid;
  flex: 0 0 auto;
  width: 3rem;
  min-height: 3rem;
  padding: 0;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.25rem;
  font-weight: 900;
}

.settings-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}


[hidden] {
  display: none !important;
}

.app-shell {
  width: min(100%, 44rem);
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: none;
  margin: 0 auto;
}

.screen {
  min-height: 100%;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
}


.brand,
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand {
  justify-content: flex-start;
  margin: 0.6rem 0 2rem;
}

.brand .settings-button {
  margin-left: auto;
}

.brand-mark {
  display: grid;
  width: 3.4rem;
  border: 0;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 1rem;
  color: white;
  background: var(--ink);
  font-size: 1.45rem;
  font-weight: 950;
  transform: rotate(-7deg);
  box-shadow: 0.3rem 0.35rem 0 var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 10vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.eyebrow,
.kicker {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.setup-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 2rem;
  background: var(--paper);
  box-shadow: 0.65rem 0.7rem 0 var(--ink);
}

.setup-intro,
#setup-form {
  padding: 1.5rem;
}

.setup-intro {
  padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--ink);
}

.setup-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

#setup-form {
  display: grid;
  gap: 1.15rem;
}

legend {
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 850;
}

/* min-width: 0 – Fieldsets sind sonst mindestens so breit wie ihr Inhalt (min-content), und die
   680-px-Kachelbilder schoben die ganze Auswahl auf dem Handy über den Rand hinaus. */
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.duration-options,
.lang-options,
.age-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.lang-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:is(.duration-options, .lang-options, .age-options) label {
  position: relative;
  cursor: pointer;
}

:is(.duration-options, .lang-options, .age-options) input {
  position: absolute;
  opacity: 0;
}

:is(.duration-options, .lang-options, .age-options) input:focus-visible + span {
  outline: 4px solid color-mix(in srgb, var(--accent) 80%, white);
  outline-offset: 3px;
}

.duration-options span,
.lang-options label > span {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 2px solid #d8d0c7;
  border-radius: 0.85rem;
  background: white;
  font-weight: 850;
}

.flag {
  font-size: 1.5em;
  line-height: 1;
}

.duration-options input:checked + span,
.lang-options input:checked + span {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
  box-shadow: inset 0 -0.2rem 0 color-mix(in srgb, var(--accent) 80%, black);
}

.age-options label > span {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.45rem 0.6rem;
  border: 2px solid transparent;
  border-radius: 1.1rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--tile-accent) 16%, white);
  transition: background 150ms, color 150ms;
}

.age-options img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 0.75rem;
  background: white;
}

.age-options strong {
  margin-top: 0.2rem;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.age-options small {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.age-options input:checked + span {
  border-color: var(--ink);
  color: white;
  background: var(--tile-accent);
  box-shadow: 0 0.25rem 0 var(--ink);
}

/* Stapel als Wischzeile: gleiche Höhe wie eine Kachelreihe, egal wie viele Packs es gibt.
   Rund 2½ Kacheln sichtbar (breit genug für Bild und Namen), die angeschnittene zeigt, dass
   es weitergeht. Auf breiten Bildschirmen gedeckelt, damit die Kacheln nicht riesig werden. */
.stack-options {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: min(calc((100% - 1rem) / 2.5), 11rem);
  margin: -0.3rem -0.3rem 0;
  padding: 0.3rem 0.3rem 0.55rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.3rem;
  scrollbar-width: none;
}

.stack-options::-webkit-scrollbar {
  display: none;
}

.stack-options label {
  --tile-accent: var(--accent);
  scroll-snap-align: start;
}

.stack-options label > span {
  height: 100%;
}

.stack-options strong {
  font-size: 1rem;
  line-height: 1.1;
  text-align: center;
  hyphens: auto;
}

.stack-options input[value="base"] + span {
  cursor: default;
}

.stack-options input:disabled:not(:checked) + span {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary-button,
.action-button {
  border: 2px solid var(--ink);
  border-radius: 1rem;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  padding: 0.95rem 1.2rem;
  color: white;
  background: var(--ink);
  box-shadow: 0 0.3rem 0 var(--accent);
}

.primary-button:active,
.action-button:active {
  transform: translateY(0.15rem);
  box-shadow: none;
}

.secondary-button {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
}

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

.game-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  overflow: hidden;
}

.game-header {
  display: grid;
  min-height: 3.5rem;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
}

.game-header .settings-button {
  width: 2.6rem;
  min-height: 2.6rem;
  justify-self: end;
}



.timer {
  display: flex;
  grid-column: 2;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

.timer span {
  min-width: 4.6ch;
  font-size: 2.65rem;
  line-height: 1;
  text-align: right;
  letter-spacing: 0.03em;
}


.timer.urgent {
  color: #b91c1c;
  animation: pulse 700ms ease-in-out infinite alternate;
}

.card-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  perspective: 900px;
}

.game-card {
  position: relative;
  width: min(100%, 38rem);
  min-height: min(29rem, 57dvh);
  user-select: none;
  will-change: transform, opacity;
}

@media (max-width: 600px) {
  .setup-intro p:last-child {
    display: none;
  }

  .setup-intro h2 {
    margin-bottom: 0;
  }
}

.countdown {
  color: var(--accent);
  font-size: clamp(8rem, 45vw, 14rem);
  font-weight: 950;
  line-height: 1;
  animation: countdown-pop 900ms ease-out both;
}

.game-screen.counting .game-actions {
  visibility: hidden;
}

.game-card.enter {
  animation: draw-card 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.game-card.exit {
  animation: throw-left 260ms ease-in both;
}

/* „Richtig“: Häkchen-Stempel springt auf, erst danach fliegt die Karte weg. */
.game-card.exit:has(.card-stamp) {
  animation-delay: 180ms;
}

.card-stamp {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 6.5rem;
  height: 6.5rem;
  place-items: center;
  border: 4px solid var(--success);
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 12%, var(--paper));
  transform: translate(-50%, -50%) rotate(-12deg);
  animation: stamp 180ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
  pointer-events: none;
}

.card-stamp svg {
  width: 70%;
  fill: none;
  stroke: var(--success);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-age {
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

/* Pack-Maskottchen unten rechts in der freien Ecke neben der Fußzeile (oben kollidierte es
   mit langen Zielwörtern). Liegt hinter dem Text: Ein langes Sperrwort darf im Notfall
   darüber laufen, statt verdeckt zu werden. */
.card-classic {
  position: relative;
  isolation: isolate;
}

.card-classic > :not(.card-logo, .card-stamp) {
  position: relative;
  z-index: 1;
}

.card-logo {
  position: absolute;
  z-index: 0;
  right: 0.8rem;
  bottom: 0.6rem;
  width: 5.2rem;
  height: 5.2rem;
  object-fit: contain;
  pointer-events: none;
}

.target-word {
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: clamp(2.2rem, 10vw, 5rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.forbidden-words {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-classic {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1.1rem;
  padding: 1.45rem;
  border: 3px solid var(--ink);
  border-radius: 1.8rem;
  background: var(--paper);
  box-shadow:
    0.5rem 0.55rem 0 var(--ink),
    0.95rem 1rem 0 color-mix(in srgb, var(--accent) 55%, white);
}

.card-classic .card-age {
  justify-self: start;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: white;
  background: var(--accent);
}

.card-classic .target-word {
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
}

.card-classic .forbidden-words {
  display: grid;
  align-content: center;
  gap: 0.6rem;
}

.card-classic .forbidden-words li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 6vw, 2.35rem);
  font-weight: 800;
}

.card-classic .forbidden-words li::before {
  content: "×";
  display: grid;
  width: 1.4em;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-size: 0.55em;
}

.card-footer {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.game-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
}

.action-button {
  padding: 0.8rem;
  background: var(--paper);
  box-shadow: 0 0.25rem 0 var(--ink);
}

.skip-button {
  padding: 0.8rem 1.4rem;
  color: var(--skip);
}

.correct-button {
  color: white;
  background: var(--success);
}

.summary-screen {
  position: relative;
  display: grid;
  align-content: center;
  gap: 1.1rem;
}

.summary-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 2rem;
  background: var(--paper);
  box-shadow: 0.65rem 0.7rem 0 var(--ink);
}

.summary-settings {
  position: absolute;
  top: max(1.25rem, env(safe-area-inset-top));
  right: 1.25rem;
}

.summary-header {
  display: grid;
  justify-items: center;
  text-align: center;
}

/* Punktzahl als schräg liegende Spielkarte mit Sternen. */
.scorecard {
  width: 11rem;
  margin: 1rem 0 0.4rem;
  padding: 1rem 1rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 1.4rem;
  background: var(--paper);
  box-shadow: 0.5rem 0.55rem 0 var(--accent);
  transform: rotate(-4deg);
}

.scorecard strong {
  display: block;
  font-size: 5rem;
  font-weight: 950;
  line-height: 0.9;
}

.scorecard small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stars {
  display: block;
  margin-top: 0.3rem;
  color: #f5b301;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--ink);
}

.stars i {
  color: #e7ded3;
  font-style: normal;
}

.result-lists {
  display: grid;
  gap: 1rem;
}

.result-lists h3 {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Wörter als Pillen: nehmen wenig Platz und lassen sich schnell überfliegen. */
.result-lists ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-lists li {
  max-width: 100%;
  padding: 0.35rem 0.75rem;
  border: 2px solid;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.result-correct li {
  border-color: #16a34a;
  color: #14532d;
  background: #dcf3e3;
}

.result-skipped li {
  border-color: #b7aea6;
  border-style: dashed;
  color: #6b6460;
}

.result-lists li.empty-result {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  font-weight: 700;
}


dialog {
  width: min(calc(100% - 2rem), 28rem);
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0.65rem 0.7rem 0 var(--ink);
}

dialog::backdrop {
  background: rgb(35 31 32 / 55%);
}

.settings-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-header h2,
.settings-header p {
  margin-bottom: 0;
}

.intro-mascot {
  width: 4.2rem;
  height: 4.2rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.intro-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  font-weight: 800;
  line-height: 1.3;
  list-style: none;
}

.intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.intro-list li::before {
  content: "✓";
  display: grid;
  width: 1.5rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--success);
  font-size: 0.8rem;
}

.audio-setting {
  display: grid;
  gap: 0.4rem;
}

.audio-setting > label {
  font-weight: 900;
}

/* Lautsprecher-Knopf + Regler. Regler ganz links = aus, der Knopf schaltet stumm und zurück. */
.volume-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.volume-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.mute-button {
  display: grid;
  flex: none;
  width: 3rem;
  height: 3rem;
  min-height: 0; /* globales button-min-height (3rem) würde den Kreis sonst zum Oval strecken */
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: white;
}

.mute-button svg {
  width: 1.4rem;
  height: 1.4rem;
}

.mute-button .icon-off,
.mute-button.muted .icon-on {
  display: none;
}

.mute-button.muted .icon-off {
  display: block;
}

.mute-button.muted {
  color: var(--muted);
  border-color: var(--muted);
}

.abort-round-button {
  width: 100%;
  min-height: 3rem;
  border: 2px solid #b91c1c;
  border-radius: 0.9rem;
  color: #b91c1c;
  background: transparent;
  font-weight: 900;
}

.outline-button {
  width: 100%;
  min-height: 3rem;
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 900;
}

/* Eigene Karten: Vollbild statt schwebender Karte, damit Tastatur und Liste Platz haben. */
.custom-dialog {
  width: 100%;
  max-width: none;
  height: var(--app-height, 100vh);
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.custom-dialog .settings-panel {
  max-width: 32rem;
  margin: 0 auto;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.custom-form {
  display: grid;
  gap: 1rem;
}

.custom-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 850;
}

.custom-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 1.05rem; /* ab 16px zoomt iOS beim Fokus nicht */
  font-weight: 700;
}

.custom-form input:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--accent) 80%, white);
  outline-offset: 2px;
}

.custom-forbidden {
  display: grid;
  gap: 0.5rem;
}

.custom-error {
  margin: 0;
  color: #b91c1c;
  font-weight: 800;
}

.text-button {
  justify-self: center;
  border: 0;
  color: var(--muted);
  background: none;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.custom-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  color: white;
  background: var(--ink);
  font-weight: 800;
}

.custom-undo button {
  border: 0;
  color: white;
  background: none;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
}

.custom-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-list li {
  display: flex;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  background: white;
}

.custom-list .custom-empty {
  padding: 0.9rem 1rem;
  border-style: dashed;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.custom-item {
  display: grid;
  flex: 1;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border: 0;
  color: var(--ink);
  background: none;
  font: inherit;
  text-align: left;
}

.custom-item strong {
  font-size: 1.05rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.custom-item small {
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.custom-delete {
  width: 3.2rem;
  flex: none;
  border: 0;
  border-left: 2px solid var(--ink);
  color: var(--ink);
  background: none;
  font-size: 1.5rem;
  font-weight: 900;
}
@keyframes draw-card {
  from {
    opacity: 0;
    transform: translateY(-2.5rem) scale(0.92);
  }
  to {
    opacity: 1;
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-12deg) scale(1.6);
  }
}

@keyframes throw-left {
  to {
    opacity: 0;
    transform: translateX(-125%);
  }
}

@keyframes pulse {
  to {
    transform: scale(1.08);
  }
}

@keyframes countdown-pop {
  from {
    opacity: 0;
    transform: scale(1.6);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0.25;
  }
}

:focus-visible {
  outline: 4px solid color-mix(in srgb, var(--accent) 80%, white);
  outline-offset: 3px;
}

@media (max-height: 700px) {
  .setup-intro .kicker,
  .setup-intro p:last-child {
    display: none;
  }

  .setup-intro h2 {
    margin-bottom: 0;
    font-size: 1.75rem;
  }

  #setup-form {
    gap: 0.8rem;
  }

  .age-options img {
    width: 3.75rem;
  }

  .game-card {
    min-height: 24rem;
  }

  .card-classic {
    gap: 0.7rem;
  }

  .card-classic .forbidden-words {
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
