/* Handschrift für Geräte ohne passende Systemschrift (Android, Linux).
   Patrick Hand, SIL Open Font License, siehe fonts/OFL-PatrickHand.txt. */
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/patrick-hand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/patrick-hand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* hidden-Attribut gewinnt immer, auch gegen display: flex */
[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  background: #fff;
  color: #000;
  color-scheme: light; /* bewusst kein Dark Mode: weiß ist aus der Ferne am besten lesbar */
  /* Systemschriften zuerst (iOS/macOS, Windows), sonst die mitgelieferte
     Patrick Hand. Bewusst kein "cursive": das wäre auf Android eine
     verbundene Schreibschrift (Dancing Script), schlecht lesbar. */
  font-family:
    "Chalkboard SE", "Bradley Hand", "Segoe Print", "Comic Sans MS",
    "Marker Felt", "Patrick Hand", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* Kein Doppeltipp-Zoom im Spiel, Pinch-Zoom bleibt erlaubt (Barrierefreiheit) */
  touch-action: manipulation;
}

/* Spiel-Seite: Vollbild, kein Scrollen, kein Textmarkieren */
body.app {
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* Jede Ansicht füllt den ganzen Bildschirm, Inhalt mittig */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  text-align: center;
}
.screen.active {
  display: flex;
}

h1 {
  font-size: clamp(2rem, 8vmin, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: underline wavy;
  text-underline-offset: 0.2em;
  margin-bottom: 0.5rem;
}

p.hint {
  font-size: clamp(1rem, 3.2vmin, 1.4rem);
  line-height: 1.4;
  max-width: 32rem;
}

/* Skizzenhafte Buttons: unregelmäßiger Rand, leicht schief */
.btn {
  appearance: none;
  background: #fff;
  color: #000;
  border: 3px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 3px 3px 0 #000;
  font: inherit;
  font-size: clamp(1.4rem, 5vmin, 2rem);
  padding: 0.6em 1.6em;
  min-width: min(70vw, 18rem);
  cursor: pointer;
  transform: rotate(-0.6deg);
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.btn:nth-of-type(even) {
  transform: rotate(0.7deg);
  border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
}
.btn:active {
  transform: translate(2px, 2px) rotate(0deg);
  box-shadow: 1px 1px 0 #000;
}
.btn:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: default;
}
.btn.big {
  font-size: clamp(2rem, 8vmin, 3rem);
  padding: 0.5em 1.4em;
}

.btn.small-btn {
  font-size: clamp(1rem, 3.4vmin, 1.3rem);
  padding: 0.4em 1.2em;
  min-width: 0;
  box-shadow: 2px 2px 0 #000;
}

/* Spielerklärung */
.rules {
  max-width: 32rem;
  text-align: left;
  align-items: stretch;
}
.rules h2 {
  font-size: clamp(1.5rem, 6vmin, 2.2rem);
  font-weight: 400;
  text-align: center;
  text-decoration: underline wavy;
  text-underline-offset: 0.2em;
}
.rules ol {
  padding-left: 1.4em;
  font-size: clamp(1rem, 3.2vmin, 1.25rem);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.rules .hint {
  font-size: clamp(0.9rem, 2.8vmin, 1.1rem);
  opacity: 0.75;
}
.rules .btn {
  align-self: center;
}

/* Dezenter Zurück/Neuladen-Knopf in der Ecke */
.corner {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 2px solid #000;
  border-radius: 50% 45% 55% 50% / 45% 55% 45% 55%;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  cursor: pointer;
  z-index: 10;
}
.corner:active {
  opacity: 1;
}

/* Großer Begriff (Alle raten mit): wird per JS in seinen Kasten skaliert */
.word {
  width: 100%;
  white-space: nowrap;
  line-height: 1.3;
  font-weight: 700;
  overflow: visible;
  text-align: center;
}

.countdown {
  font-size: 50vmin;
  line-height: 1;
  font-weight: 700;
}

/* Texteingabe (Teamnamen) */
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: clamp(1.4rem, 5vmin, 2rem);
  padding: 0.5em 0.8em;
  border: 3px solid #000;
  border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px;
  background: #fff;
  color: #000;
  text-align: center;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}
input[type="text"]:focus {
  box-shadow: 3px 3px 0 #000;
}

.small {
  font-size: clamp(0.85rem, 2.6vmin, 1rem);
  opacity: 0.6;
}

/* Scrollbare Ansicht, falls der Inhalt (z. B. viele Kategorien) nicht passt */
.screen.scroll {
  overflow-y: auto;
  justify-content: flex-start;
}
.screen.scroll .stack {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

/* Kategorien-Checkboxen */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.8rem;
  max-width: 32rem;
}
.cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: clamp(1rem, 3.4vmin, 1.3rem);
  border: 2px solid #000;
  border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
  padding: 0.3em 0.9em 0.3em 0.7em;
  min-height: 44px; /* Touch-Ziel */
  cursor: pointer;
}
.cat input {
  width: 1.2em;
  height: 1.2em;
  margin: 0;
  accent-color: #000;
  cursor: pointer;
}
.cat:has(input:checked) {
  box-shadow: 2px 2px 0 #000;
}
.cat.shake {
  animation: shake 0.3s;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Querformat: Inhalt etwas kompakter */
@media (orientation: landscape) and (max-height: 500px) {
  .screen,
  .screen.scroll .stack {
    gap: 0.7rem;
  }
  h1 {
    margin-bottom: 0;
  }
  .btn {
    padding: 0.35em 1.4em;
  }
  .btn.big {
    padding: 0.3em 1.2em;
  }
}
/* Hinweis "App hinzufügen" am Fuß der Startseite, nur sichtbar mit .open */
.install {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 24rem;
  margin-top: 0.4rem;
  padding: 0.8rem 1rem 0.9rem;
  border: 2px dashed #000;
  border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
}
.install.open {
  display: flex;
}
/* Im flachen Querformat passt der Hinweis nicht mehr unter die Buttons */
@media (orientation: landscape) and (max-height: 500px) {
  .install.open {
    display: none;
  }
}
.install [hidden] {
  display: none;
}
.install-text {
  font-size: clamp(0.95rem, 3vmin, 1.15rem);
  line-height: 1.35;
}
.install-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.8rem;
}

/* Kleiner Link am Fuß der Startseite */
a.small {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: 0.6em 1em; /* Touch-Ziel */
  margin-top: -0.6rem;
}

@media (prefers-reduced-motion: reduce) {
  .cat.shake {
    animation: none;
  }
  .btn,
  .btn:active {
    transition: none;
  }
}

/* Textseiten (Impressum, Datenschutz): normales, scrollbares Dokument */
body.page {
  height: auto;
  min-height: 100%;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
body.page main {
  max-width: 36rem;
  margin: 0 auto;
  font-size: clamp(1rem, 3vmin, 1.15rem);
  line-height: 1.5;
}
body.page h1 {
  text-align: center;
  margin: 1rem 0 1.5rem;
}
body.page h2 {
  font-size: clamp(1.3rem, 5vmin, 1.7rem);
  font-weight: 400;
  margin: 2rem 0 0.6rem;
  text-decoration: underline wavy;
  text-underline-offset: 0.2em;
}
body.page h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin: 1.2em 0 0.3em;
}
body.page p,
body.page ul {
  margin-bottom: 0.8em;
}
body.page ul {
  padding-left: 1.4em;
}
body.page a {
  color: inherit;
}
body.page address {
  font-style: normal;
}
a.btn {
  display: inline-block;
  text-decoration: none;
}
body.page .back {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1rem;
}
body.page .todo {
  background: #fff3b0;
  padding: 0.1em 0.3em;
}


/* ============================================================
   Stadt Land Flux: Spiel-Ansichten
   ============================================================ */

/* Höhe der Punkteleiste; die Spiel-Ansichten lassen oben so viel Platz */
:root {
  --bar-top: max(6px, env(safe-area-inset-top));
  --bar-height: calc(var(--bar-top) + 50px);
}

/* Punkteleiste: nur auf Spiel-Ansichten (body.in-game), mit Eck-Button rechts */
.scorebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  display: none;
  align-items: center;
  gap: 0.4rem;
  height: var(--bar-height);
  padding: var(--bar-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
  background: #fff;
  border-bottom: 2px solid #000;
}
body.in-game .scorebar {
  display: flex;
}
.scores {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 0.3rem;
  align-items: stretch;
}
.chip {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.15em 0.4em;
  border: 2px solid transparent;
  border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
  line-height: 1.1;
}
.chip .name {
  width: 100%;
  font-size: clamp(0.75rem, 2.6vmin, 0.95rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  opacity: 0.75;
}
.chip .pts {
  font-size: clamp(1.05rem, 3.6vmin, 1.4rem);
  font-weight: 700;
}
.chip.active {
  border-color: #000;
  box-shadow: 2px 2px 0 #000;
}
.chip.active .name {
  opacity: 1;
  text-decoration: underline wavy;
  text-underline-offset: 0.15em;
}
.corner.in-bar {
  position: static;
  flex: none;
}

/* Spiel-Ansichten lassen oben Platz für die Punkteleiste */
.screen.game {
  padding-top: calc(var(--bar-height) + 10px);
}

/* Rundenstart */
.big-team {
  font-size: clamp(1.8rem, 9vmin, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: underline wavy;
  text-underline-offset: 0.2em;
}

/* Spiel anlegen */
.setup {
  max-width: 28rem;
}
.field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.label {
  font-size: clamp(1.1rem, 3.8vmin, 1.4rem);
  text-decoration: underline wavy;
  text-underline-offset: 0.2em;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.step {
  appearance: none;
  width: 52px;
  height: 52px;
  border: 3px solid #000;
  border-radius: 50% 45% 55% 50% / 45% 55% 45% 55%;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
}
.step:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.step:disabled {
  opacity: 0.3;
  box-shadow: none;
  cursor: default;
}
.stepper .value,
.stepper input[type="number"] {
  min-width: 3.2em;
  text-align: center;
  font: inherit;
  font-size: clamp(1.6rem, 6vmin, 2.2rem);
  font-weight: 700;
}
.stepper input[type="number"] {
  width: 4.2em;
  padding: 0.1em 0.2em;
  border: 3px solid #000;
  border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px;
  background: #fff;
  color: #000;
  outline: none;
  -moz-appearance: textfield;
  -webkit-user-select: text;
  user-select: text;
}
.stepper input[type="number"]::-webkit-inner-spin-button,
.stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper input[type="number"]:focus {
  box-shadow: 3px 3px 0 #000;
}
.teams {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}
.teams input[type="text"] {
  min-height: 48px; /* Touch-Ziel */
  font-size: clamp(1.1rem, 4vmin, 1.5rem);
  padding: 0.35em 0.8em;
}

/* Walzen: ein Kasten mit zwei Rädern (Buchstabe, Modus), drei Zellen hoch */
.reel-box {
  --cell: clamp(56px, 14vmin, 92px);
  position: relative;
  display: flex;
  flex-shrink: 0; /* nie zusammendrücken, sonst stimmt das Raster der Zellen nicht mehr */
  width: min(100%, 26rem);
  height: calc(var(--cell) * 3 + 6px); /* drei Zellen plus Rahmen oben und unten */
  overflow: hidden;
  border: 3px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 3px 3px 0 #000;
  background: #fff;
}
.reel-col {
  min-width: 0;
  overflow: hidden;
}
.letter-col {
  flex: 0 0 calc(var(--cell) * 1.35);
  border-right: 2px solid #000;
}
.mode-col {
  flex: 1 1 auto;
}
/* Mitte markieren, Ränder ausblenden */
.reel-box::before,
.reel-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--cell);
  pointer-events: none;
  z-index: 1;
}
.reel-box::before {
  top: 0;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0.15));
  border-bottom: 2px dashed #000;
}
.reel-box::after {
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.15), #fff);
  border-top: 2px dashed #000;
}
.reel {
  will-change: transform;
}
.cell {
  height: var(--cell);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: calc(var(--cell) * 0.7);
  line-height: 1;
}
.mode-col .cell {
  font-size: min(calc(var(--cell) * 0.36), 5.2vw);
  padding: 0 0.4em;
  white-space: nowrap;
}
.result {
  min-height: 2.6em;
}

/* Runde: Buchstabe, Timer, Kacheln */
.screen.play.active {
  justify-content: flex-start;
  gap: 0.6rem;
}
.play-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 1rem;
}
.letter {
  font-size: clamp(3rem, 16vmin, 6rem);
  font-weight: 700;
  line-height: 1;
}
.small-letter {
  font-size: clamp(2rem, 10vmin, 4rem);
}
.timer {
  font-size: clamp(3rem, 16vmin, 6rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
  padding: 0 0.15em;
  border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
}
/* Letzte Sekunden: invertiert und pulsierend */
.timer.urgent {
  background: #000;
  color: #fff;
  animation: pulse 1s infinite;
}
.timer.over {
  font-size: clamp(1.6rem, 8vmin, 3rem);
}
.play-head .btn {
  min-width: 0;
  font-size: clamp(1.2rem, 5vmin, 1.8rem);
  padding: 0.35em 1em;
  white-space: nowrap;
}
@keyframes pulse {
  50% {
    transform: scale(1.08);
  }
}
.tiles {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tile {
  appearance: none;
  position: relative;
  min-height: 44px;
  min-width: 0;
  overflow: hidden;
  /* Bewusst kein display: flex auf dem Button: WebKit begrenzt den Text dann nicht
     auf die Kachelbreite. Buttons zentrieren ihren Inhalt vertikal von selbst. */
  display: block;
  padding: 6px 8px; /* fest in px: die Schriftgröße wird per JS gesetzt, die Polsterung darf nicht mitwachsen */
  border: 2px solid #000;
  border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: clamp(1.1rem, 4.6vmin, 1.9rem);
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}
.tile:nth-child(even) {
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
.tile-text {
  display: block;
  width: 100%; /* wird per JS auf die Zielbreite gesetzt */
  margin: 0 auto;
  overflow-wrap: normal; /* nur an Leerzeichen umbrechen, die Schriftgröße passt sich an */
  text-wrap: balance; /* gleichmäßig lange Zeilen, wo der Browser es kann */
}
/* Markiert: nichts, was das Layout ändert (kein Fett, keine Rahmenbreite),
   sonst bricht der Text beim Antippen plötzlich anders um */
.tile[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 2px #000,
    3px 3px 0 #000;
}
/* Haken als kleines Abzeichen mit weißem Grund, damit er über dem Text lesbar bleibt.
   Weit genug von der Ecke weg: die schiefe Rundung der Kachel (overflow: hidden)
   würde ihn sonst je nach Kachel unterschiedlich beschneiden. */
.tile[aria-pressed="true"]::after {
  content: "\2713";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50% 45% 55% 50% / 45% 55% 45% 55%;
}
.tile:disabled {
  cursor: default;
}
.tile:disabled[aria-pressed="false"] {
  opacity: 0.45;
}

/* Alle raten mit */
.screen.everyone.active {
  justify-content: flex-start;
  gap: 0.6rem;
}
.ev-head {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}
.ev-word-box {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ev-teams {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.7rem;
  width: 100%;
}
.ev-teams .btn {
  min-width: 0;
  font-size: clamp(1.1rem, 4vmin, 1.5rem);
  padding: 0.4em 1em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rundenende */
.points {
  font-size: clamp(2rem, 9vmin, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
}
.summary {
  list-style: none;
  font-size: clamp(1.1rem, 4vmin, 1.5rem);
  line-height: 1.5;
}
.summary li b {
  font-weight: 700;
}

/* Spielende */
.ranking {
  padding-left: 1.6em;
  font-size: clamp(1.2rem, 4.5vmin, 1.7rem);
  line-height: 1.6;
  text-align: left;
  max-width: 100%;
}
.ranking li {
  overflow-wrap: anywhere;
}
.ranking .winner {
  font-weight: 700;
}

/* Rückfrage als Blatt im Skizzen-Look */
.sheet {
  max-width: min(90vw, 24rem);
  margin: auto;
  padding: 1.2rem 1.2rem 1.3rem;
  border: 3px solid #000;
  border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
  box-shadow: 4px 4px 0 #000;
  background: #fff;
  color: #000;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.sheet[open] {
  display: flex;
}
.sheet::backdrop {
  background: rgba(255, 255, 255, 0.75);
}

/* Flaches Querformat: Kopf links, Kacheln rechts; Walzen nebeneinander */
@media (orientation: landscape) and (max-height: 500px) {
  .screen.game {
    padding-top: calc(var(--bar-height) + 6px);
  }
  .screen.play.active {
    flex-direction: row;
    align-items: stretch;
    gap: 0.8rem;
  }
  .play-head {
    flex: 0 0 24%;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
  }
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .reel-box {
    --cell: clamp(40px, 12vmin, 56px);
    width: min(70vw, 26rem);
  }
  .mode-col .cell {
    font-size: min(calc(var(--cell) * 0.4), 3.2vw);
  }
  .countdown {
    font-size: 40vmin;
  }
  .screen.everyone.active {
    gap: 0.3rem;
  }
  .ev-teams .btn {
    padding: 0.25em 0.8em;
  }
  .step {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timer.urgent {
    animation: none;
  }
  .step,
  .step:active {
    transition: none;
    transform: none;
  }
}
