/* Domů a Nová hra (chess-menu.js). Používá proměnné prostředí z chess-workspace.css. */
.setup-step,.setup-summary,.setup-more { border:1px solid var(--line); background:var(--surface); border-radius:12px; padding:22px; min-width:0; }
.home-intro { color:var(--muted); font-size:14px; line-height:1.6; margin:4px 0; }
.home-big { min-height:48px; padding:12px 22px; font-size:15px; margin-top:14px; }
.home-big .ui-emblem { width:34px; height:34px; margin:-8px 4px -8px -4px; }
.mini-board { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); grid-template-rows:repeat(8,minmax(0,1fr)); width:156px; aspect-ratio:1; flex:none; border-radius:4px; overflow:hidden; border:1px solid var(--line); }
.mini-board span { min-width:0; min-height:0; display:flex; align-items:center; justify-content:center; font-size:16px; line-height:1; }
.mini-board .l { background:#d9dfcc; } .mini-board .d { background:#7d9463; }
.mini-board i { font-style:normal; }
.mini-board i.w { color:#fff; text-shadow:0 0 1px #000,0 0 2px #000; } .mini-board i.b { color:#151515; }
/* Dlaždice v plných řadách: poslední dlaždice se roztáhnou, žádná řada nezůstane napůl prázdná. */
.home-tiles { display:flex; flex-wrap:wrap; gap:12px; }
.home-tiles > .home-tile { flex:1 1 220px; }
.home-tile { display:grid; grid-template-columns:auto minmax(0,1fr); align-content:center; align-items:center; gap:2px 14px; text-align:left; min-height:88px; padding:14px 18px;
  border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); font:inherit; cursor:pointer; }
.home-tile strong { font-size:16px; } .home-tile span { color:var(--muted); font-size:13px; line-height:1.5; }
.home-tile:hover { border-color:var(--accent); }
.home-tile > :is(.ui-emblem,.ui-icon) { grid-row:1 / span 2; width:56px; height:56px; margin:0; }
.home-tile > .ui-icon { padding:12px; }
.home-tile > .ui-art { grid-row:1 / span 2; width:64px; height:64px; margin:-2px 0; }

.setup-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:20px; align-items:start; margin-top:24px; }
.setup-steps { display:grid; gap:16px; min-width:0; }
.setup-step { margin:0; padding-block:8px 14px; }
.setup-step legend { font-weight:700; font-size:16px; padding:0 6px; }
/* Volby vedle sebe, ať se tři karty vejdou na obrazovku počítače; na úzkém displeji se zalomí. */
.setup-inline { display:flex; flex-wrap:wrap; align-items:flex-end; gap:0 16px; }
.setup-inline .choice-row,.setup-inline .setup-field { margin-block:6px; }
.setup-inline .setup-field { flex:1 1 200px; }
.choice-row { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.choice { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:8px;
  cursor:pointer; font-size:14px; background:var(--ui-fill,var(--canvas)); color:var(--ink); }
.choice small { color:var(--muted); font-size:12px; }
.choice:has(input:checked) { border-color:var(--accent); background:var(--ui-selected,#35442b); }
.choice:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.choice:has(input:disabled) { opacity:.55; cursor:not-allowed; }
.hub-page .choice input { accent-color:var(--accent); width:18px; height:18px; margin:0; padding:0; border:0; flex:none; }
.choice small { display:block; margin-top:2px; }
/* Fokus po přechodu dostává nadpis (čtečky ho oznámí); rámeček kolem nadpisu by mátl. */
.hub-page h1:focus,#workspaceTitle:focus { outline:none; }
.setup-label { font-size:12px; color:var(--muted); margin:16px 0 0; }
.setup-field { display:grid; gap:6px; font-size:12px; color:var(--muted); margin:14px 0 6px; }
.setup-field select { min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:var(--ui-fill,var(--canvas)); color:var(--ink); font:inherit; font-size:14px; }
.setup-note { font-size:13px; color:var(--muted); line-height:1.6; margin:6px 0; }
.setup-step .btn { min-height:44px; }
.setup-more { color:var(--muted); font-size:13px; padding:6px 22px; }
.setup-more summary { min-height:44px; display:flex; align-items:center; flex-wrap:wrap; gap:0 8px; cursor:pointer; list-style:none; }
.setup-more summary::-webkit-details-marker { display:none; }
.setup-more summary::before { content:'▶'; font-size:10px; }
.setup-more[open] summary::before { content:'▼'; }
.setup-more summary small { font-size:12px; font-weight:400; }
.setup-summary { position:sticky; top:20px; }
.setup-summary h2 { font-size:17px; margin:0; }
.setup-summary ul { list-style:none; padding:0; margin:14px 0; display:grid; gap:8px; font-size:14px; }
.setup-summary li { padding-left:14px; border-left:2px solid var(--line); }
.setup-warning { font-size:12px; line-height:1.6; color:var(--ink); border-left:2px solid var(--accent); padding-left:10px; }
.setup-actions { display:grid; gap:8px; }
.setup-actions .btn { min-height:44px; }
.setup-confirm { max-width:440px; }
.hub-page .hub-heading .btn { min-height:44px; }
.setup-confirm p { color:var(--muted); line-height:1.6; font-size:13px; }

.training-context { margin-bottom:6px; font-size:12px; }
.training-context .btn { min-height:40px; }
@media (max-width:900px) {
  .setup-layout { grid-template-columns:minmax(0,1fr); }
  /* Spustit zůstává vždy na očích: shrnutí se na úzkém displeji drží u spodního okraje. */
  .setup-summary { position:sticky; top:auto; bottom:0; z-index:5; padding:14px 16px; border-radius:12px 12px 0 0; box-shadow:0 -8px 24px #0007; }
  .setup-summary .setup-warning { margin:0 0 10px; }
  .setup-actions { grid-template-columns:minmax(0,1fr) auto; }
  .setup-actions .home-big { margin-top:0; }
}
@media (max-width:540px) {
  .setup-step { padding:8px 16px 12px; }
  .setup-more { padding:6px 16px; }
  .choice { flex:1 1 auto; }
}

.training-context .btn { min-height:44px; }
#coachConfirm { max-width:460px; }
#coachConfirm p { line-height:1.6; }
#enableCoach { min-height:44px; }
@media(max-width:900px) {
  .rail-bottom .btn { min-height:44px; font-size:12px; }
  .setup-layout { margin-top:12px; padding-bottom:12px; }
  .setup-summary { position:static; border-radius:12px;box-shadow:none; }
  .setup-summary .setup-warning { margin-bottom:12px; }
  .setup-actions { grid-template-columns:1fr 1fr; }
  .setup-actions [data-cancel] { grid-column:1/-1; }
  /* Začít hrát drží nad spodní lištou po celou dobu přípravy (řádek je přímo ve formuláři, viz chess-menu.js). */
  .setup-layout > .setup-actions { position:sticky; bottom:calc(var(--bar-h,56px) + env(safe-area-inset-bottom,0px)); z-index:5; display:flex; gap:8px;
    margin:0 -10px; padding:10px; background:var(--surface); border-top:1px solid var(--line); box-shadow:0 -8px 20px #0006; }
  .setup-layout > .setup-actions .btn { flex:1 1 0; min-width:0; margin:0; }
  .setup-layout > .setup-actions [data-cancel] { order:-1; flex:0 0 auto; padding-inline:12px; }
  /* Začít hrát je tu vedle Zrušit: nápis se musí vejít na jeden řádek. */
  .setup-layout > .setup-actions #setupStart { display:inline-flex; align-items:center; justify-content:center; gap:2px; padding-inline:4px; white-space:nowrap; }
  .setup-layout > .setup-actions #setupStart .ui-emblem { width:28px; height:28px; margin:-4px 0; }
}
/* Stránka má do 540 px okraj jen 6 px (chess-workspace.css). Pruh s tlačítky musí mít stejný, jinak přečuhuje a stránka jde posunout do strany. */
@media (max-width:540px) {
  .setup-layout > .setup-actions { margin-inline:-6px; padding-inline:6px; }
}
@media (max-width:340px) {
  .setup-layout > .setup-actions #setupStart .ui-emblem { display:none; }
}

/* Medium UI pass: repeat a setup and choose opponents without a long select. */
#quickStatus:empty { display:none; }
#quickStatus { font-size:14px; line-height:1.6; }
.opponent-choice { display:flex; align-items:center; gap:12px; min-width:0; padding:12px; text-align:left; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--canvas); cursor:pointer; }
.opponent-choice[aria-pressed="true"] { border:2px solid var(--accent); padding:11px; background:var(--ui-selected); }
.opponent-choice:disabled { opacity:.5; cursor:default; }
.opponent-choice strong,.opponent-choice small { display:block; line-height:1.45; }
.opponent-choice strong { font-size:14px; }
.opponent-choice small { color:var(--muted); font-size:12px; margin-top:3px; }
.opponent-face { width:52px; height:52px; flex:none; display:grid; place-items:center; font-size:32px; border-radius:12px; overflow:hidden; }
/* Jeden seznam všech soupeřů (Nová partie, Hrát odtud): okénko asi na 5 řádků s vlastním rolováním, nahoře nejslabší. */
.opponent-picker { margin:10px 0 4px; }
.opp-filter { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }
.opp-filter[hidden] { display:none; }
.opp-filter .btn { min-height:44px; padding:6px 12px; font-size:13px; border-radius:999px; }
.opp-filter .btn[aria-pressed="true"] { border-color:var(--accent); background:var(--ui-selected); color:var(--ink); }
@media (max-width:360px) { .opp-filter { gap:4px; } .opp-filter .btn { padding-inline:8px; } }   /* čtyři volby na jednom řádku i v okně Hrát odtud na 320 px */
.opponent-list { position:relative; display:flex; flex-direction:column; gap:5px; max-height:var(--opp-list-h,326px); overflow-y:auto; overscroll-behavior:contain; padding:4px; border:1px solid var(--line); border-radius:12px; background:var(--canvas); scrollbar-gutter:stable; }
.opponent-list .opp-row { flex:none; gap:10px; padding:6px 10px; min-height:56px; }
.opponent-list .opp-row[aria-pressed="true"] { padding:5px 9px; }
.opponent-list .opp-row[hidden] { display:none; }
.opponent-list .opp-row:disabled { opacity:1; filter:grayscale(1); color:var(--muted); }
.opponent-list .opp-row:disabled .opponent-face { opacity:.55; }
.opp-row .opponent-face { width:40px; height:40px; font-size:24px; border-radius:10px; }
.opp-text { flex:1 1 auto; min-width:0; }
/* Jméno je vždy celé (dlouhé se zalomí), popis je jeden zkrácený řádek; celý popis vybraného je pod seznamem a v title řádku. */
.opp-row .opp-text strong { line-height:1.3; overflow-wrap:anywhere; }
.opp-row .opp-text small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.3; }
.opp-row .opp-text small { margin-top:0; }
.opp-side { flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.opp-rec { padding:2px 8px; border-radius:999px; font-size:11px; font-style:normal; font-weight:700; line-height:1.3; white-space:nowrap; color:var(--canvas,#111); background:var(--accent); }
.opp-fav { color:#e6bf3a; }
.opp-tag { padding:2px 9px; border:1px solid currentColor; border-radius:999px; font-size:11px; font-weight:700; line-height:1.3; letter-spacing:.02em; white-space:nowrap; }
.opp-tag-maia { color:#7fc4d2; }
.opp-tag-stockfish { color:#b9a3e0; }
.opp-tag-legacy { color:#e9b56f; }
:root[data-environment="ivory"] .opp-tag-maia { color:#226b7a; }
:root[data-environment="ivory"] .opp-tag-stockfish { color:#5f4396; }
:root[data-environment="ivory"] .opp-tag-legacy { color:#8a5212; }
.opp-none:not([hidden]) { margin:8px 0 0; }
/* Počítač: volby a popis soupeře vlevo, seznam vpravo. Všechny tři části a Další možnosti zůstanou nad ohybem (1440 × 900). */
@media (min-width:1180px) {
  .setup-step:has(> [data-pvc]:not([hidden]) > #setupOpponents) { display:grid; grid-template-columns:minmax(220px,5fr) minmax(0,7fr); grid-template-rows:repeat(6,auto) 1fr; column-gap:18px; }
  .setup-step:has(> [data-pvc]:not([hidden]) > #setupOpponents) > * { grid-column:1; }
  .setup-step > [data-pvc]:not([hidden]):has(> #setupOpponents) { display:contents; }
  .setup-step > [data-pvc] > #setupOpponents { grid-column:2; grid-row:1 / -1; margin:10px 0 0; }
  .setup-step > [data-pvc] > #setupOpponents .opponent-list { --opp-list-h:300px; }
}

/* Hrát odtud: barva a soupeř. */
.play-from-color { display:flex; flex-wrap:wrap; gap:6px 14px; margin:10px 0; padding:0; border:0; }
.play-from-color[hidden] { display:none; }
.play-from-color legend { padding:0; margin-bottom:4px; font-size:13px; color:var(--muted); }
#playFromDialog { --opp-list-h:clamp(150px,calc(82dvh - 352px),258px); width:min(92vw,520px); max-width:520px; }
#playFromDialog h2 { margin:0 0 6px; }
#playFromDialog > p { margin:0 0 4px; }
#playFromDialog .play-from-color { margin:6px 0; }
#playFromDialog .setup-actions { grid-template-columns:1fr 1fr; margin-top:10px; }
#playFromDialog .setup-actions [data-cancel] { grid-column:auto; }
#playFromDialog .opponent-picker { margin-top:4px; }
.play-from-who { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 4px; }
.play-from-who .btn { flex:1 1 auto; min-height:44px; }
.play-from-who .btn[aria-pressed="true"] { border-color:var(--accent); background:var(--ui-selected); }
/* První spuštění a doporučený start: první buňka Domů, jako karta rozehrané partie. */
.home-first,.home-start { border:1px solid var(--ui-border,#3b4e30); background:var(--surface); border-radius:12px; padding:22px; min-width:0; }
.home-first h2,.home-start h2 { font-size:19px; line-height:1.35; margin:8px 0; overflow-wrap:anywhere; }
.home-first > p,.home-start p { color:var(--muted); font-size:14px; line-height:1.6; margin:4px 0; }
.home-first-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:8px; margin:14px 0 10px; }
.home-first-choice { display:flex; align-items:center; gap:10px; min-height:64px; padding:12px; text-align:left; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--canvas,transparent); cursor:pointer; }
.home-first-choice:hover { border-color:var(--accent); }
.home-first-choice > span { display:flex; flex-direction:column; gap:3px; min-width:0; }
.home-first-choice .ui-art { width:60px; height:60px; margin:-6px 0; }
@media (min-width:901px) { .home-first-choice { flex-direction:column; align-items:flex-start; } .home-first-choice .ui-art { width:96px; height:96px; margin:0; } }
.setup-handicap-label { display:flex; align-items:center; gap:6px; }
.setup-handicap-label .ui-art { width:32px; height:32px; margin:-4px 0; }
.home-first-choice strong { font-size:15px; }
.home-first-choice small { color:var(--muted); font-size:13px; line-height:1.35; }
.home-first > .btn.quiet { min-height:44px; }
.home-start { display:flex; gap:16px; align-items:flex-start; }
.home-start > div { flex:1 1 auto; min-width:0; }
.home-start .opponent-face { flex:none; }
.home-start .home-big { width:100%; }
#quickStatus:empty { display:none; }
.home-last { margin:4px 0 0; color:var(--muted); font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
@media (max-width:900px) { .home-first,.home-start { padding:16px; } }

/* ---------- Zelený start (4. 11. 2026) ---------- */
/* Hlavní tlačítko startu: Nová partie, Pokračovat, Hrát s trenérem a Začít hrát. Barva podle prostředí (--ui-go). Obrys = start, který teď není hlavní. */
.btn.go { background:var(--ui-go); border-color:var(--ui-go); color:var(--ui-on-go); font-weight:750; }
.btn.go:hover { background:var(--ui-go-hover); border-color:var(--ui-go-hover); color:var(--ui-on-go); }
.btn.go.ghost { background:transparent; border:2px solid var(--ui-go); color:var(--ui-go); }
.btn.go.ghost:hover { background:var(--ui-go-soft); color:var(--ui-go); }

/* ---------- Domů (rozložení B, 4. 11. 2026) ---------- */
/* Jedna šířka obsahu: záhlaví, karta startu, dvojice úkolů a dlaždice mají stejný levý a pravý okraj, karty stejný rámeček. */
.home-layout { display:grid; gap:16px; min-width:0; }
.home-layout .home-card,.home-layout :is(.home-first,.home-start) { border:1px solid var(--line); background:var(--surface); border-radius:14px; padding:20px; min-width:0; }
.home-layout h2 { font-size:19px; line-height:1.3; margin:0; overflow-wrap:anywhere; }
.home-layout .home-last { margin:3px 0 0; }
.home-cap { display:block; font-size:12px; line-height:1.3; letter-spacing:1.2px; font-weight:700; text-transform:uppercase; color:var(--ui-muted,var(--muted)); }
.home-head { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; min-width:0; }
.home-head h1 { font-size:32px; line-height:1.15; letter-spacing:-1px; margin:0; }
.home-head .home-who { margin:0; }
.home-head #homeBadges { margin-left:auto; flex-wrap:wrap; }
/* Trenér v záhlaví vpravo před hodností a odznaky, jako hlavička ostatních stránek (.head-konik). */
.home-head .head-konik { width:64px; height:64px; margin:-12px 0 -12px auto; }
.home-head .head-konik + #homeBadges { margin-left:0; }
.home-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:64px; }
.home-card-head > div { min-width:0; }
.home-card-head .ui-art { flex:none; object-fit:contain; }
.hub-page .home-layout .home-go { display:flex; align-items:center; justify-content:center; gap:4px; width:100%; min-height:52px; margin:0; padding:8px 18px; font-size:16px; }
.home-layout .home-go .ui-emblem { width:34px; height:34px; margin:-8px 2px -8px -6px; }
.home-face { width:48px; height:48px; border-radius:12px; font-size:28px; }
.home-face :is(.ui-art,.ui-emblem) { width:100%; height:100%; margin:0; object-fit:contain; }
.home-row-text { display:flex; flex-direction:column; gap:2px; min-width:0; text-align:left; }
.home-row-text strong { font-size:15px; line-height:1.3; overflow-wrap:anywhere; }
.home-row-text small { font-size:13px; line-height:1.4; color:var(--muted); overflow-wrap:anywhere; }
.home-favs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.home-favs .home-cap { margin-right:2px; }
/* Otázka Jak znáš šachy?: tři odpovědi vždy v jedné řadě, na telefonu pod sebou. */
.home-layout .home-first-choices { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (min-width:901px) { .home-layout .home-first-choice .ui-art { width:72px; height:72px; } }
.hub-page .home-layout .home-start .home-big { width:min(100%,400px); }
/* Karta startu: nadpis s obrázkem, zelená Nová partie přes celou šířku a pod ní stejně široké dlaždice rychlých startů. */
.home-layout .home-start-card { display:flex; flex-direction:column; gap:14px; padding:22px 24px; }
.home-start-card .home-card-head { margin:-6px 0 0; }
.home-start-card .home-card-head h2 { font-size:24px; letter-spacing:-.4px; margin-top:2px; }
.home-start-card .home-card-head .ui-art { width:150px; height:100px; margin:-14px -6px -10px 0; }
.hub-page .home-layout .home-start-card .home-go { min-height:56px; font-size:17px; }
/* Karta startu pod rozehranou partií, otázkou nebo doporučeným startem je vedlejší: menší nadpis, hlavička bez obrázku a bez pevné výšky. */
.home-layout .home-start-sub { gap:12px; padding:16px 24px 18px; }
.home-start-sub .home-card-head { min-height:0; margin:0; }
.home-start-sub .home-card-head h2 { font-size:19px; letter-spacing:0; }
.hub-page .home-layout .home-start-sub .home-go { min-height:48px; font-size:16px; }
.home-quick-tiles { display:grid; grid-template-columns:repeat(var(--cols,3),minmax(0,1fr)); gap:12px; }
.home-qt { position:relative; display:flex; min-width:0; }
.hub-page .home-pick { flex:1 1 auto; display:flex; align-items:center; gap:12px; min-width:0; min-height:76px; padding:10px 14px; border-radius:12px; text-align:left; }
.home-pick .home-face { width:46px; height:46px; }
.home-pick .home-cap { font-size:11px; letter-spacing:1px; }
.hub-page .home-qt:has(.home-qt-edit) .home-pick { padding-right:62px; }
/* Tužka Upravit je samostatné tlačítko v rohu dlaždice, ne uvnitř ní (tlačítko v tlačítku nejde). */
.hub-page .home-qt-edit { position:absolute; top:50%; right:10px; transform:translateY(-50%); display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:0; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); }
.hub-page .home-qt-edit:hover { background:var(--ui-hover); color:var(--ink); }
.home-qt-edit .ui-icon { width:20px; height:20px; }
/* Nováček: věta trenéra dole v kartě startu. */
.home-layout .home-hint { margin:0; padding-top:2px; }
/* Rozehraná partie: deska, text a zelené Pokračovat v jedné řadě. */
.home-layout .home-continue { display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"board text go"; align-items:center; gap:12px 20px; }
.home-continue .mini-board { grid-area:board; width:140px; }
.home-live-text { grid-area:text; min-width:0; display:flex; flex-direction:column; gap:4px; }
.home-live-text p { margin:0; color:var(--muted); font-size:14px; line-height:1.5; }
.hub-page .home-layout .home-continue .home-go { grid-area:go; width:auto; min-width:260px; }
/* Dnešní opakování a Denní hádanka vedle sebe: obrázek nebo mini deska vlevo, tlačítko dole. */
.home-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.home-task { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:1fr auto; gap:12px 18px; align-items:start; }
.home-task > .home-visual { grid-row:1 / span 2; display:grid; place-items:center; width:112px; height:112px; }
.home-task > .home-visual .mini-board { width:112px; }
.home-task > .home-visual .mini-board span { font-size:12px; }
.home-task > .home-visual .ui-art { width:112px; height:112px; object-fit:contain; }
.home-task-text p { margin:4px 0 0; color:var(--muted); font-size:14px; line-height:1.5; }
.home-task-text .pz-stars { white-space:nowrap; }
.home-cap-icon { display:flex; align-items:center; gap:6px; }
.home-cap-icon .ui-art { width:28px; height:28px; margin:-6px 0; }
.home-task-text h2 { margin-top:2px; }
.home-task-btns { display:flex; gap:8px; }
.home-task-btns .btn { min-width:140px; }

/* Poslední partie v levém menu jen obrysem, aby nevypadala jako druhá vybraná položka vedle Domů. */
@media (min-width:901px) {
  .active-game-link button:not(.selected) { background:transparent; box-shadow:inset 0 0 0 1px var(--ui-border,var(--line)); }
  .active-game-link button:not(.selected):hover { background:var(--ui-hover); }
}
@media (max-width:900px) {
  .home-pair { grid-template-columns:minmax(0,1fr); }
  .home-layout .home-card,.home-layout :is(.home-first,.home-start) { padding:16px; }
  .home-layout .home-start-card { padding:18px; }
  .home-head h1 { font-size:27px; }
  /* Telefon: Domů a Odznaky na jednom řádku, hráči pod nimi. */
  .home-head #homeBadges { order:2; }
  .home-head .home-who { order:3; flex-basis:100%; }
  .home-head .head-konik { order:1; width:52px; height:52px; margin:-8px 0 -8px auto; }
}
@media (max-width:700px) { .home-quick-tiles { grid-template-columns:minmax(0,1fr); } }
@media (max-width:540px) {
  .home-face { width:44px; height:44px; }
  .home-task { gap:10px 14px; }
  .home-task > .home-visual,.home-task > .home-visual .ui-art,.home-task > .home-visual .mini-board { width:84px; height:84px; }
  .home-task > .home-visual .mini-board span { font-size:9px; }
  .home-task-btns .btn { flex:1 1 auto; min-width:0; }
  /* Telefon: deska vedle textu a Pokračovat pod nimi přes celou šířku, ať je vidět bez posouvání. */
  .home-layout .home-continue { grid-template-columns:auto minmax(0,1fr); grid-template-areas:"board text" "go go"; align-items:start; gap:12px; }
  .home-continue .mini-board { width:88px; }
  .hub-page .home-layout .home-continue .home-go { width:100%; min-width:0; }
  .home-start-card .home-card-head h2 { font-size:21px; }
  .home-start-card .home-card-head .ui-art { width:96px; height:64px; margin:-8px -6px -6px 0; }
  .home-layout .home-first-choices { grid-template-columns:minmax(0,1fr); }
}
