/*
 * Autohra — vizuál podle design tokenů Treavia
 * (src/assets/tokens/treavio.css v hlavní aplikaci).
 * Písmo Wix Madefor Display + Caveat na akcenty je to, co reálně běží
 * na treavio.com; token soubor uvádí Inter, ale ten se nepoužívá.
 */

:root {
  /* Brand */
  --brand: #D85A30;
  --brand-hover: #B8481E;
  --brand-soft: #FAECE7;
  --brand-soft-border: #F5C4B3;
  --brand-text: #993C1D;
  --brand-darkest: #4A1B0C;

  /* Neutrály */
  --surface: #FFFFFF;
  --surface-2: #F7F5F0;
  --surface-3: #F1EFE8;
  --text: #1A1A1A;
  --text-2: #5F5E5A;
  --text-3: #888780;
  --border: rgba(0, 0, 0, .10);
  --border-hover: rgba(0, 0, 0, .20);

  /* Sémantické */
  --success: #1D9E75;
  --info: #378ADD;

  /* Typografie */
  --font: "Wix Madefor Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Caveat", var(--font);

  /* Radius a odstupy */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Hra se nezvětšuje: dvojí ťuknutí dítěte ani sevření prstů nesmí zoomovat
   (posouvat stránku jde dál). Safari na iPhonu meta viewport ignoruje, proto
   i touch-action a gesturestart v app.js. */
html, body { touch-action: pan-x pan-y; }

body {
  margin: 0;
  font: 400 16px/1.45 var(--font);
  color: var(--text);
  background: var(--surface-2);
  /* Barva pozadí = čí tabuli mám na displeji. Nejdůležitější signál v aplikaci. */
  transition: background-color .25s ease;
}

#app { min-height: 100dvh; }

:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }

.screen {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--s5) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.screen.center { min-height: 100dvh; justify-content: center; text-align: center; }

/* ------------------------------------------------------------------- logo */

/* „Hry od" sazbou aplikace, „Lukáše" psacím písmem s jantarovým tahem pod
   ním — barvy webyodlukase.cz (černá #0B0B0B, jantarová #FFB400). */
.logo { margin: 0; line-height: 1; }
.logo-brand {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0B0B0B;
}
/* Tah pod slovem se roztahuje na šířku slova. */
.logo-accent {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg width='262' height='17' viewBox='0 0 262 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.99931 12.9463C70.3926 7.14883 214.09 -1.29457 257.733 11.3115' stroke='%23FFB400' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E%0A");
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.logo-accent {
  font-size: 3.6rem;
  color: #0B0B0B;
  margin-top: -.08em;
  padding: 0 .1em .16em;
}

.lead { color: var(--text-2); margin: 0; }

/* Podnadpis je naopak potichu: běžné písmo aplikace, světlá barva,
   prostrkané, bez tahu. Pomlčky ho drží pohromadě pod logem. */
.lead-accent {
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--text-3);
}
.lead-accent::before { content: "— "; }
.lead-accent::after { content: " —"; }
.screen.center .lead { margin-top: var(--s3); }
h2 { margin: 0; font-size: 1.35rem; font-weight: 700; }

/* --------------------------------------------------------------- ovládání */

/* Dotykové plochy aspoň 44 px — ovládá se jednou rukou v jedoucím autě.
   Velká tlačítka mají 19,2 px tučně (700): bílá na #D85A30 má kontrast
   3,87 : 1 a to stačí jen pro velký tučný text (≥ 18,66 px, tloušťka 700). */

button {
  font: 500 1rem/1.2 var(--font);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-pill);
  padding: var(--s3) var(--s4);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
button:hover { border-color: var(--border-hover); }
button:active { transform: scale(.985); }
button:disabled { cursor: default; }

.big { font-size: 1.2rem; font-weight: 700; padding: var(--s4) var(--s5); }
.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.link {
  background: none; border: none; color: var(--text-2);
  text-decoration: underline; padding: var(--s2);
}
.small { padding: var(--s2) var(--s3); font-size: .875rem; min-height: 44px; }

input, select {
  font: 400 1rem var(--font);
  width: 100%;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
}
label { display: block; font-weight: 600; font-size: .9rem; color: var(--text-2); }
label input, label select { margin-top: var(--s2); font-weight: 400; color: var(--text); }

.join { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
#code {
  text-align: center; font-size: 2rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
}

.swatches { display: flex; flex-wrap: wrap; gap: var(--s3); }
.swatch {
  width: 46px; height: 46px; border-radius: var(--r-pill);
  border: 2px solid var(--border); padding: 0;
}
.swatch[aria-pressed="true"] { border-color: var(--brand); border-width: 3px; }

/* ------------------------------------------------------------------- kód */

.code-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s4);
  text-align: center;
}
.code-box strong {
  display: block;
  font-size: 2.5rem; font-weight: 700; letter-spacing: .22em;
  color: var(--brand-text);
}
.code-box span { color: var(--text-3); font-size: .85rem; }

/* ------------------------------------------------------------------ hráči */

.picklist { display: flex; flex-direction: column; gap: var(--s3); }
.picklist button {
  text-align: left; font-size: 1.1rem; font-weight: 600;
  padding: var(--s4); border-radius: var(--r-lg);
}

.roster { display: flex; flex-direction: column; gap: var(--s2); }
.roster-row {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s3);
}
.roster-row .name { flex: 1; font-weight: 600; }
.roster-row .tag { font-size: .78rem; color: var(--text-3); }

/* Napětí hry je v postupu — když se nedá nic ukrást, je to jediné, co je vidět. */
.progress {
  display: flex; flex-direction: column; gap: var(--s2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s4);
}
.prog-row { display: flex; align-items: center; gap: var(--s3); font-size: .9rem; }
.prog-row .name {
  width: 5.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-2);
}
.bar {
  flex: 1; height: 10px; border-radius: var(--r-pill);
  background: var(--surface-3); overflow: hidden;
}
.bar > i {
  display: block; height: 100%; border-radius: var(--r-pill);
  transition: width .3s ease;
}
.prog-row .count { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ----------------------------------------------------------------- tabule */

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid var(--border);
}
.topbar .who { font-weight: 700; font-size: 1.05rem; flex: 1; }
.topbar .who small {
  display: block; font-weight: 400; color: var(--text-2); font-size: .76rem;
}
.topbar strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--brand-text); }

.board {
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  max-width: 640px;
  margin: 0 auto;
}
.card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--s2);
  font-weight: 700;
  font-size: clamp(.95rem, 4.2vw, 1.25rem);
  line-height: 1.15;
  overflow: hidden;
  hyphens: auto;
}
.card img { width: 100%; height: 100%; object-fit: contain; }
.card .label { color: var(--text); }
/* Označená kartička se obarví barvou hráče — text zůstává tmavý a čitelný. */
.card.done { border-color: var(--border-hover); }
/* Fajfka je v rohu, ať zůstane čitelné i slovo pod ní. Že je kartička
   hotová, prozradí především obarvené pozadí — to je vidět na první pohled. */
.card.done::after {
  content: "✓";
  position: absolute; top: 4px; right: 9px;
  font-size: 1.4rem; font-weight: 700; line-height: 1;
  color: rgba(0, 0, 0, .5);
}

.switcher { display: flex; gap: var(--s2); overflow-x: auto; padding: 0 var(--s4) var(--s2); }
.switcher button {
  white-space: nowrap; display: flex; align-items: center; gap: var(--s2);
  background: var(--surface);
  min-height: 48px;             /* nejčastější akce rodiče za jízdy */
}
.switcher button[aria-pressed="true"] { border-color: var(--brand); border-width: 2px; }

.banner {
  margin: 0 var(--s4);
  padding: var(--s5) var(--s4);
  border-radius: var(--r-lg);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  text-align: center;
  color: var(--brand-darkest);
}
.banner strong {
  display: block; font-family: var(--font-accent);
  font-size: 2rem; font-weight: 700; margin-bottom: var(--s2);
}
.banner button { margin-top: var(--s3); }

.foot {
  max-width: 640px; margin: 0 auto;
  padding: 0 var(--s4) var(--s5);
  display: flex; flex-direction: column; gap: var(--s3);
}
.err {
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: var(--brand-text);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-lg);
}
.hint { color: var(--text-3); font-size: .84rem; margin: 0; }

/* ------------------------------------------------------- výběr kartiček */

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips button { background: var(--surface); }
.chips button[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-text);
  font-weight: 600;
}
button:disabled { opacity: .45; }

/* ---------------------------------------------------- výměna kartičky */

.cell { position: relative; }
.cell > .card { width: 100%; }

/* Vlevo nahoře, protože vpravo nahoře sedí fajfka po označení. */
/* Kolečko je malé a nenápadné — na dlaždici má být vidět obrázek, ne
   ovládání. Dotyková plocha je ale 44 × 44 px, jinak se do ní v jedoucím
   autě nejde trefit. Plocha leží přesně v rohu, kam se při označování
   nemíří. */
.swap {
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  padding: 4px;
  display: flex; align-items: flex-start; justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.swap-dot {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .9);
  color: var(--text-3);
  opacity: .75;
}
.swap svg { width: 15px; height: 15px; }
.swap:hover .swap-dot, .swap:focus-visible .swap-dot {
  opacity: 1;
  color: var(--brand-text);
  border-color: var(--brand);
}
.swap.busy .swap-dot { opacity: .4; }

/* ------------------------------------------------ přepínač podoby obrázků */

.segmented {
  display: flex; align-items: center; gap: var(--s2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px var(--s4);
}
.segmented-label { flex: 1; color: var(--text-2); font-size: .9rem; }
.segmented button { border-color: transparent; }
.segmented button[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-text);
  font-weight: 600;
}

/* Fotka má vyplnit celou dlaždici, ne sedět v ní jako známka. */
.card:has(img) { padding: 0; }
.card img {
  border-radius: calc(var(--r-lg) - 1px);
  object-fit: cover;
  transition: opacity .2s ease;
}

/* U obrázku by barva hráče zmizela pod fotkou — proto se fotka ztlumí
   a barva pozadí prosvítá. Fajfka je velká a uprostřed: dvouleté dítě
   musí na první pohled poznat, co už má. */
.card.done img { opacity: .38; }
.card.done:has(img)::after {
  top: 50%; left: 50%; right: auto;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  color: var(--text);
  font-size: 1.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

/* ------------------------------------------------------- dětský režim */

/* Odemykací zámek je v rohu a nenápadný — dítě ho nemá mít chuť mačkat.
   I kdyby ho zmáčklo, zastaví ho příklad. */
.lock-btn {
  width: 44px; height: 44px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-3);
}
.lock-btn svg { width: 18px; height: 18px; }
/* Odemčený zámek je výraznější — rodič ho má najít. Zamčený se krčí. */
.lock-btn:not(.is-locked) { color: var(--brand-text); border-color: var(--brand-soft-border); }

.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(26, 26, 26, .55);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s4);
}
.unlock {
  width: 100%; max-width: 360px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4);
  display: flex; flex-direction: column; gap: var(--s3);
  text-align: center;
}
.puzzle {
  margin: 0;
  font-size: 2.6rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand-text);
}
.puzzle-input {
  text-align: center;
  font-size: 2rem; font-weight: 700;
  letter-spacing: .1em;
}

/* V celé obrazovce není systémová lišta, takže se horní pruh nemá o co opřít. */
:fullscreen .topbar { padding-top: max(var(--s3), env(safe-area-inset-top)); }

/* Rychlá jména těsně pod polem, ať je jasné, že do něj patří. */
.name-chips { margin-top: calc(-1 * var(--s1, 4px)); }

/* --------------------------------------------- rozlišení hráčů (UX revize) */

/* Sytý rámeček v barvě hráče, jehož tabule je na displeji. Leží nad obsahem,
   ale pod překryvem odemykání, a nepřekáží klepnutí. */
body.player-frame::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 40;
  border: 6px solid var(--player-strong);
  pointer-events: none;
}

/* Po konci kola se dlaždice jen zamknou, nezešednou — tabule vítěze má
   vypadat jako vítězná, ne jako vypnutá. */
.card:disabled { opacity: 1; }

/* Tečka v syté barvě potřebuje světlý lem, jinak na tmavém splyne s okrajem. */

/* Poskočení dlaždice u klepnutí, které se ignoruje (opakované ťukání dítěte). */
@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
.card.bump { animation: bump .22s ease-out; }

/* ------------------------------------------------ dětský telefon mimo tabuli */

.waiting {
  max-width: 640px;
  margin: var(--s5) auto;
  padding: var(--s5) var(--s4);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
}
.waiting h2 { font-size: 1.8rem; }

/* Zvuk a odchod ze hry jsou vedlejší — na dětském telefonu nemají být
   druhé nejvýraznější věci na obrazovce. */
.foot > .link { font-size: .84rem; color: var(--text-3); padding-block: var(--s1, 4px); }

/* ------------------------------------------------------- bez signálu */

.offline-badge {
  display: none;
  align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: .75rem; font-weight: 600;
  white-space: nowrap;
}
.offline-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: #BA7517;
}
body.is-offline .offline-badge { display: inline-flex; }

/* Úvodní obrazovka: „Nová hra" je pro rodiče, pole s kódem pro dítě. */
.join { margin-top: var(--s5); }
.join-label { margin: 0; color: var(--text-2); font-weight: 600; }

/* ------------------------------------------ odemčení podržením zámku */

.lock-btn { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Při držení se kolečko 2 s plní — je vidět, že držení funguje. */
.lock-btn.is-locked { box-shadow: inset 0 0 0 0 var(--brand-soft-border); transition: box-shadow 0s; }
.lock-btn.is-locked.holding {
  box-shadow: inset 0 0 0 22px var(--brand-soft-border);
  color: var(--brand-text);
  transition: box-shadow 1s linear;
}

.hold-hint {
  position: fixed; z-index: 60;
  top: calc(64px + env(safe-area-inset-top)); left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-pill);
  font-size: .9rem;
  white-space: nowrap;
}

.tip { text-align: left; }
.tip h2 { text-align: center; }
.tip p { margin: 0; }
.tip ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }

/* Volby kola v lobby a v nastavení. */
.round-settings {
  display: flex; flex-direction: column; gap: var(--s2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s3) var(--s4) var(--s4);
}
.round-settings label { margin-top: var(--s2); }

/* ------------------------------------------------------- zvířátka hráčů */

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  border-radius: var(--r-pill);
  border: 3px solid transparent;
  background: var(--surface-3);
  line-height: 1;
  /* emoji se v některých písmech posouvají — systémová emoji písma */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.avatar-xs { width: 24px; height: 24px; font-size: 13px; border-width: 2px; }
.avatar-sm { width: 30px; height: 30px; font-size: 16px; border-width: 2px; }
.avatar-md { width: 38px; height: 38px; font-size: 20px; }
.avatar-lg { width: 52px; height: 52px; font-size: 28px; }
.avatar-xl { width: 112px; height: 112px; font-size: 64px; border-width: 5px; margin-bottom: var(--s2); }

.prog-row .name { width: 4.6em; }

.pick-player { display: flex; align-items: center; gap: var(--s3); }

.animal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }  /* 4 sloupce: zvířátka velká pro dítě */
.animal-choice {
  aspect-ratio: 1;
  padding: 0;
  min-height: 40px;
  border-radius: var(--r-md);
  font-size: 3rem;             /* 2× větší (provozovatel, 22. 9. 2026) */
  line-height: 1;
}
.animal-choice[aria-pressed="true"] { border: 3px solid var(--brand); background: var(--brand-soft); }
.animal-choice:disabled { opacity: .25; }

.editor-preview { display: flex; align-items: center; justify-content: center; gap: var(--s3); }

/* ------------------------------------------------------ oslava konce kola */

.celebration {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s3);
  padding: var(--s5) var(--s4);
  background: var(--surface-2);
  border: 10px solid var(--vitez, var(--brand));
  text-align: center;
  overflow: hidden;
  animation: celebration-in .3s ease-out;
}
@keyframes celebration-in { from { opacity: 0; } to { opacity: 1; } }

.celebration-avatar { animation: celebration-pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.celebration .avatar-xl { width: 160px; height: 160px; font-size: 96px; border-width: 8px; }
@keyframes celebration-pop {
  0%   { transform: scale(.2) rotate(-20deg); }
  100% { transform: scale(1) rotate(0); }
}

.celebration-title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 3rem; font-weight: 700; line-height: 1.05;
  color: var(--text);
}
.celebration-mine { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.celebration-hint { margin: var(--s4) 0 0; font-size: .85rem; color: var(--text-2); }

.confetti {
  position: absolute; top: -12px;
  width: 10px; height: 14px;
  border-radius: 2px;
  opacity: .9;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0); }
  100% { transform: translateY(110vh) rotate(540deg); }
}

@media (prefers-reduced-motion: reduce) {
  .celebration, .celebration-avatar { animation: none; }
  .confetti { display: none; }
}

/* ------------------------------------------------- výběr kartiček s náhledy */

/* Celá obrazovka se posouvá jako jedna — žádný posuv uvnitř posuvu. */
.picker { padding-bottom: 96px; }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.pick-item {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: flex-end;
}
.pick-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-word {
  position: relative;
  width: 100%;
  padding: 3px 5px;
  font-size: .72rem; font-weight: 600; line-height: 1.15;
  text-align: center;
  background: rgba(255, 255, 255, .88);
  color: var(--text);
}
.pick-item.no-image { align-items: center; }
.pick-item.no-image .pick-word { background: none; font-size: .85rem; }
.pick-item[aria-pressed="true"] { border: 4px solid var(--brand); }
.pick-item[aria-pressed="true"]::after {
  content: "✓";
  position: absolute; top: 5px; right: 5px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--brand); color: #fff;
  font-weight: 700;
}

.pick-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.pick-count { flex: 1; font-weight: 700; }
.pick-bar .big { padding-inline: var(--s5); }

/* ------------------------------------------- nastavení během hry v panelu */

.settings-open { display: flex; align-items: center; justify-content: center; gap: var(--s2); }
.settings-open svg { width: 22px; height: 22px; }

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(26, 26, 26, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: sheet-fade .2s ease-out;
}
.sheet {
  width: 100%; max-width: 640px;
  max-height: 88dvh;
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
  animation: sheet-up .25s ease-out;
}
.sheet-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s4) var(--s2);
}
.sheet-head h2 { flex: 1; }
.sheet-body {
  overflow-y: auto;
  padding: var(--s2) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s3);
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop { animation: none; } }

/* QR kód k připojení dětského telefonu */
.qr {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  margin-top: var(--s3);
}
.qr svg { width: 176px; height: 176px; background: #fff; border-radius: var(--r-md); }
.qr span { color: var(--text-3); font-size: .82rem; }

/* ------------------------------------------------------ přidání na plochu */

.install { display: flex; align-items: center; justify-content: center; gap: var(--s2); }
.install svg { width: 22px; height: 22px; }
.install-start { background: transparent; }
.install-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.install-link svg { width: 16px; height: 16px; }

.install-guide ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: var(--s3); }
.install-guide li { line-height: 1.5; }
.guide-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; vertical-align: middle;
  border-radius: var(--r-md);
  background: var(--surface-3);
  color: var(--info);
  margin-right: 2px;
}
.guide-icon svg { width: 20px; height: 20px; }

/* Fotky / malované v liště — jen pro tenhle telefon. */
.style-btn {
  width: 44px; height: 44px;
  padding: 0; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
}
.style-btn svg { width: 22px; height: 22px; }
/* Dlouhé jméno se v liště zkrátí, aby ikonky nevytlačilo z obrazovky. */
.topbar .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .who small { overflow: hidden; text-overflow: ellipsis; }
.topbar .avatar, .topbar strong, .topbar .lock-btn { flex: none; }

/* Oddělovač nad instalací — instalace do telefonu není součást hry. */
.divider {
  width: 35px;
  height: 1px;
  flex: none;
  align-self: center;
  margin: var(--s6, 32px) auto var(--s5);
  border: 0;
  background: var(--border-hover);
}

/* Chyba u pole — přímo pod ním, ať je vidět tam, kam se rodič dívá. */
input.invalid { border: 2px solid var(--danger, #E24B4A); background: #FFF6F5; }
.field-error {
  margin: 6px 0 0;
  color: #B3261E;
  font-size: .9rem; font-weight: 600;
}

/* Zadaný kód je velký, tučný a prostrkaný, aby se dal opsat. Nápověda
   v prázdném poli je ale jen tichá výzva, ne „K Ó D" velkými písmeny. */
#code::placeholder {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
  opacity: 1;
}

/* ------------------------------------------------- cesta bez signálu */

.offline-box {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--s2);
  text-align: center;
}
.offline-box strong { color: var(--text); font-size: .95rem; }
.offline-box .link { align-self: center; }
.offline-box[data-prubeh] span:first-child { color: var(--text-2); font-size: .9rem; }
.offline-box[data-prubeh] .bar { flex: none; }
.offline-box[data-prubeh] .bar > i { background: var(--brand); width: 0; }
.verze-box {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: var(--s3); text-align: center; color: var(--text-3); font-size: .8rem;
}
.verze-box strong { color: var(--text); font-size: .95rem; }
.verze-box .big { align-self: stretch; margin-top: var(--s1); }
#nova-verze {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding: 10px 18px; border: 0; border-radius: 999px; white-space: nowrap;
  background: var(--brand); color: #fff; font: inherit; font-size: .95rem; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.code-box.local-box strong { font-size: 1.1rem; letter-spacing: 0; margin-bottom: 4px; }

/* ------------------------------------------------------------------ pexeso */

.board.pexeso { gap: var(--s2); }
.pex-tile { transition: transform .15s ease; }
/* Rub: brandová barva a otazník — dítě ví, že tu se má klepnout. */
.pex-tile.back {
  background: var(--brand);
  border-color: var(--brand-hover);
  background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), transparent 55%);
}
/* Rub v syté barvě hráče na tahu — stejná barva jako rámeček obrazovky,
   takže i dítě, které nečte, vidí, že se hraje za něj. Syté barvy mají
   proti bílému otazníku kontrast aspoň 3 : 1. */
body.player-frame .pex-tile.back {
  background-color: var(--player-strong);
  border-color: rgba(0, 0, 0, .18);
}
.pex-tile.back::before {
  content: "?";
  color: rgba(255, 255, 255, .92);
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 9vw, 3rem); font-weight: 700;
}
/* Otočení: kartička se natočí na hranu a vrátí se druhou stranou. Do
   poloviny je vidět stará strana (rub přes ::after, obrázek přes
   .pex-stary), pak nová. Jen při skutečné změně (třída flip-in), ne při
   každém překreslení. Délka musí sedět s PEX_FLIP_MS v app.js. */
.board.pexeso { --pex-flip: .7s; }
.pex-tile.face:not(.found) { border: 3px solid var(--text); }
.pex-tile.flip-in { animation: pex-flip var(--pex-flip) ease-in-out both; }
@keyframes pex-flip {
  0%   { transform: perspective(700px) rotateY(0); }
  50%  { transform: perspective(700px) rotateY(90deg); }
  100% { transform: perspective(700px) rotateY(0); }
}
/* Lícem nahoru: první půlku kryje rub. */
.pex-tile.face.flip-in::after {
  content: "?";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--player-strong, var(--brand));
  background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), transparent 55%);
  color: rgba(255, 255, 255, .92);
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 9vw, 3rem); font-weight: 700;
  animation: pex-pulka var(--pex-flip) step-end both;
  animation-delay: inherit;
}
/* Rubem nahoru: první půlku je vidět ještě obrázek. */
.pex-tile .pex-stary {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: pex-pulka var(--pex-flip) step-end both;
  animation-delay: inherit;
}
@keyframes pex-pulka {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}
.pex-tile.found img { opacity: .55; }
.pex-owner { position: absolute; top: 4px; right: 4px; }

.prog-row.on-turn { font-weight: 700; }
.prog-row.on-turn .name { color: var(--text); }
.prog-row.on-turn::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--hrac, var(--brand)); margin-left: -12px; margin-right: -4px;
}
.pex-moves { margin-left: auto; font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .pex-tile.flip-in, .pex-tile.flip-in::after, .pex-tile .pex-stary { animation: none; }
  .pex-tile .pex-stary { display: none; }
  .pex-tile.face.flip-in::after { display: none; }
}

/* ------------------------------------------- otočení stránky knihy */

/* Kopie celé obrazovky (lišta, tabule, skóre) se otočí kolem levého okraje
   pryč a odkryje obrazovku dalšího hráče. Za polovinou je rubem k divákovi
   a zmizí (backface-visibility). Délka musí sedět s PAGE_TURN_MS v app.js. */
.page-old {
  position: fixed; inset: 0; z-index: 20;
  overflow: hidden;
  transform-origin: left center;
  backface-visibility: hidden;
  pointer-events: none;
  animation: page-turn .9s cubic-bezier(.45, .05, .35, 1) both;
}
.page-old.zpet { transform-origin: right center; animation-name: page-turn-zpet; }
.page-kopie { max-width: 100%; }
@keyframes page-turn {
  0%   { transform: perspective(2200px) rotateY(0); }
  100% { transform: perspective(2200px) rotateY(-180deg); }
}
@keyframes page-turn-zpet {
  0%   { transform: perspective(2200px) rotateY(0); }
  100% { transform: perspective(2200px) rotateY(180deg); }
}
/* Stín, jak se list zvedá a stáčí od světla. */
.page-old::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 70%);
  animation: page-stin .9s ease-in both;
  pointer-events: none;
}
.page-old.zpet::after { background: linear-gradient(to right, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 70%); }
@keyframes page-stin {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 1; }
}
.page-old .card { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .page-old { display: none; }
}

/* ---------------------------------------------------------- rozcestník */

.vyber h2 { text-align: center; margin: var(--s3) 0 var(--s2); }
.hry { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.hra {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 150px; padding: var(--s3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  text-align: center;
}
.hra:active { transform: scale(.98); }
.hra-ikona { font-size: 2.6rem; line-height: 1.1; margin-bottom: 4px; }
.hra strong { font-size: 1.1rem; }
.hra-popis { font-size: .85rem; color: var(--text-2); line-height: 1.25; }
.hra small { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
/* Pátá hra přes celou šířku, ať mřížka nemá díru. */
.hry .hra:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 110px; }
.hra-bingo  { background: var(--brand-soft); border-color: var(--brand-soft-border); }

/* ------------------------------------------------------------ barvy aut */

.card.barva { flex-direction: column; padding: var(--s2); }
.card.barva .label { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.card .auto { width: 92%; height: auto; }
.auto-slovo { font-size: clamp(.8rem, 3.6vw, 1rem); font-weight: 700; }
.card.barva.done .auto { opacity: .4; }

/* ------------------------------------------------ najdi stejný, puzzle */

.mini { max-width: 520px; margin: 0 auto; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.mini-otazka { margin: 0; text-align: center; font-weight: 700; font-size: 1.05rem; color: var(--text); }

.stejny-cil {
  width: 50%; margin: 0 auto; aspect-ratio: 1;
  border-radius: var(--r-lg); overflow: hidden;
  border: 4px solid var(--player-strong, var(--brand));
  background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.stejny-cil img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stejny-cil.novy { animation: mini-pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes mini-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.stejny-moznosti { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.stejny-volba { padding: 0; }
.stejny-volba img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-lg) - 1px); }
.stejny-volba.spatne { opacity: .3; animation: mini-vrt .35s ease; }
.stejny-volba.spravne { outline: 5px solid #2E8B3E; outline-offset: 2px; }
.stejny-volba.spravne::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
@keyframes mini-vrt {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.puzzle-mrizka {
  display: grid; gap: 3px; aspect-ratio: 1; width: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--border);
  transition: gap .4s ease;
}
.puzzle.hotovo .puzzle-mrizka { gap: 0; }
.puzzle-dilek {
  min-height: 0; padding: 0; border: 0; border-radius: 0;
  background-color: var(--surface-3); background-repeat: no-repeat;
  transition: transform .15s ease;
}
.puzzle-dilek.vybrany {
  outline: 5px solid var(--player-strong, var(--brand)); outline-offset: -5px;
  transform: scale(.94); z-index: 1;
}
.puzzle-dilek:disabled { opacity: 1; }
.puzzle-nahled { display: flex; align-items: center; gap: var(--s3); color: var(--text-3); font-size: .85rem; }
.puzzle-nahled img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-md, 10px); border: 1px solid var(--border); }

/* Hádanky: text hádanky s tlačítkem „přečíst znovu", pod ním šest obrázků. */
.hadanka-otazka {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--r-lg);
  border: 3px solid var(--player-strong, var(--brand)); background: var(--surface);
}
.hadanka-otazka.novy { animation: mini-pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.hadanka-otazka p {
  margin: 0; flex: 1; font-weight: 700; color: var(--text);
  font-size: clamp(1.05rem, 4.6vw, 1.35rem); line-height: 1.35;
}
.hadanka-znovu {
  flex: none; width: 56px; height: 56px; min-height: 0; padding: 0;
  border-radius: 50%; font-size: 1.6rem; line-height: 1;
  background: var(--player-strong, var(--brand)); border: 0;
}
.hadanka-volba { aspect-ratio: 1; background: var(--surface); }
.hadanka-emoji { font-size: clamp(3rem, 16vw, 5rem); line-height: 1; }
.hadanka-slovo { font-weight: 700; padding: var(--s2); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .stejny-cil.novy, .stejny-volba.spatne, .hadanka-otazka.novy { animation: none; }
}
.prog-row .name.siroke { width: auto; flex: 1; }

/* Domeček v liště — zpátky na úvod. V kroužku jako ostatní ikonky lišty. */
.home-btn {
  width: 44px; height: 44px; min-height: 0;
  padding: 0; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: transparent; color: var(--text-2);
}
.home-btn svg { width: 20px; height: 20px; }

/* --------------------------------------------- přepínače zvuků kartiček */

.prepinace {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s3) var(--s4);
}
.prepinace .segmented-label { margin: 0 0 var(--s2); }
.prepinac {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 48px; cursor: pointer;
}
.prepinac + .prepinac { border-top: 1px solid var(--border); }
.prepinac span { display: flex; flex-direction: column; }
.prepinac strong { font-weight: 600; font-size: .95rem; }
.prepinac small { color: var(--text-3); font-size: .8rem; }
/* Vypínač místo zaškrtávátka — velký, ať se trefí i v jedoucím autě. */
.prepinac input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 50px; height: 30px; margin: 0; border-radius: 15px;
  background: var(--surface-3); border: 1px solid var(--border);
  position: relative; cursor: pointer; transition: background-color .2s ease;
}
.prepinac input::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.prepinac input:checked { background: var(--brand); border-color: var(--brand); }
.prepinac input:checked::after { transform: translateX(20px); }

/* ------------------------------------------------- procvičování angličtiny */

.angl-karta {
  width: 82%; margin: 0 auto; aspect-ratio: 1; padding: 0;
  border-radius: var(--r-lg); overflow: hidden;
  border: 4px solid var(--player-strong, var(--brand));
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.angl-karta img { width: 100%; height: 100%; object-fit: cover; display: block; }
.angl-karta .auto { width: 86%; height: auto; }
.angl-emoji { font-size: clamp(7rem, 42vw, 11rem); line-height: 1; }
.angl-karta.hraje { box-shadow: 0 0 0 6px color-mix(in srgb, var(--player-strong, var(--brand)) 30%, transparent); }
.angl-karta.novy { animation: pex-flip .7s ease-in-out both; }
.angl-slova {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 4.2rem; text-align: center;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.angl-slova.videt { opacity: 1; transform: none; }
.angl-slova strong { font-size: 2rem; line-height: 1.1; color: var(--text); }
.angl-slova span { font-size: 1.1rem; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  .angl-karta.novy { animation: none; }
}

/* ------------------------------------------------------- vlastní dialog */

.dialog-overlay { z-index: 70; }
.dialog {
  width: 100%; max-width: 360px;
  background: var(--surface); border-radius: var(--r-lg);
  padding: var(--s5) var(--s4) var(--s4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; gap: var(--s4);
  animation: dialog-in .18s ease-out both;
}
.dialog-text { margin: 0; font-size: 1.1rem; line-height: 1.4; text-align: center; color: var(--text); }
.dialog-tlacitka { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.dialog-tlacitka .big { padding: var(--s3) var(--s2); font-size: 1.05rem; }
.dialog .nebezpecne { background: #B42318; border-color: #B42318; }
@keyframes dialog-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------ číselník na odemčení */

.unlock-displej {
  min-height: 3rem; margin: 0 auto; min-width: 7rem; padding: var(--s2) var(--s4);
  border-radius: var(--r-md); background: var(--surface-3);
  font-size: 2rem; font-weight: 700; text-align: center; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.cislenik { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.cislenik button { min-height: 56px; font-size: 1.4rem; font-weight: 700; padding: 0; }

@media (prefers-reduced-motion: reduce) { .dialog { animation: none; } }

/* Hrací prvky: posun stránky nesmí „ukrást" klepnutí malého dítěte (viz naKlepnuti). */
.tap { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Výběr barvy a zvířátka po konci hry (dítě hraje samo). */
.vzhled { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s3) 0; text-align: left; }
.vzhled-nadpis { margin: 0; font-weight: 700; color: var(--text-2); }
.vzhled-barvy { justify-content: center; }
.vzhled-barvy .swatch { width: 40px; height: 40px; }
.vzhled-barvy .swatch[aria-pressed="true"] { outline: 3px solid var(--text); outline-offset: 2px; }
.vzhled-zvirata { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vzhled-zvirata .animal-choice { font-size: 2.6rem; min-height: 0; }
.hadanka-volba.spravne { background: #E3F4E6; }
.hadanka-volba.spravne::after { color: #2E8B3E; text-shadow: none; font-size: 3.2rem; align-items: flex-end; justify-content: flex-end; padding: 4px 8px; }

/* ------------------------------------------------------------------ úvod */
/* Varianta B návrhu (22. 9. 2026): logo uprostřed, hry jako pastelové
   dlaždice, černé tlačítko pro kód od rodiče, drobnosti a autor dole. */

.screen.start { padding-top: calc(env(safe-area-inset-top, 0px) + var(--s5)); gap: var(--s4); }
.start-hlava { text-align: center; }
.start-hlava .logo-brand { font-size: 1.55rem; }
.start-hlava .logo-accent { font-size: 3.3rem; }
.start-hlava .lead { margin-top: var(--s2); font-size: 1.05rem; }

.start-hry { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.dlazdice {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-height: 118px; padding: 14px 14px 12px; border: 0; border-radius: 22px;
  color: #14100A; text-align: left;
}
.dlazdice:active { transform: scale(.97); }
.dlazdice-ikona { font-size: 2.3rem; line-height: 1; }
.dlazdice strong { display: block; margin-top: 8px; font-size: 1.02rem; font-weight: 800; }
.dlazdice small { display: block; font-size: .75rem; opacity: .7; line-height: 1.25; }

.start-kod { display: flex; flex-direction: column; gap: var(--s2); }
.kod-tlacitko {
  width: 100%; padding: 15px; border: 0; border-radius: var(--r-pill);
  background: #0B0B0B; color: #fff; font-weight: 800; font-size: 1.05rem;
}
.kod-tlacitko span { color: #FFB400; }
.start-kod .join { flex-direction: row; margin-top: 0; }
.start-kod .join[hidden] { display: none; }
.start-kod #code {
  flex: 1; min-width: 0; text-align: center; letter-spacing: .25em;
  font-weight: 700; text-transform: uppercase;
}
.start-kod .join .big { width: auto; padding-inline: 22px; background: #0B0B0B; color: #FFB400; border-color: #0B0B0B; }

.start-pomoc { display: flex; flex-direction: column; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.start-pomoc .offline-box { width: 100%; font-size: .9rem; }
.start-pomoc .offline-box .big { min-height: 0; padding: 10px 14px; font-size: .9rem; background: transparent; }
.start-pomoc .offline-box .hint { font-size: .78rem; }
.start-autor { text-align: center; font-size: .75rem; color: var(--text-3); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s3)); }
.start-autor a { color: inherit; font-weight: 600; }
.start-pomoc .offline-box > .big + .hint { display: none; }   /* dlouhé vysvětlení jen v nastavení */
.screen.start .verze-box { margin-top: 0; font-size: .72rem; }
.screen.start .verze-box .link { font-size: .78rem; }
