/* Základ + hlavní menu (M1G2, mockup v8). Barvy jen přes tokeny z brand.json (<style id="brand-tokens">),
   písmo Saira hostované lokálně (OFL, app/static/fonts/). Herní obrazovky: game.css. */
@font-face {
  font-family: "Saira"; font-style: normal; font-weight: 300 900; font-stretch: 50% 125%; font-display: swap;
  src: url("../fonts/saira.woff2?v=d563e3508d") format("woff2");
}
@font-face {
  font-family: "Saira"; font-style: italic; font-weight: 300 900; font-stretch: 50% 125%; font-display: swap;
  src: url("../fonts/saira-italic.woff2?v=aaa5fc7b28") format("woff2");
}

:root {
  --skew: -12deg;
  --unskew: 12deg;
  --font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --soft: #C3CBD6;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--color-bg); color: var(--color-text); font-family: var(--font); font-stretch: 100%;
  font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
/* G6 C: dotyk bez označování (celá hra — menu, sólo, multiplayer, Beep Beep!, Nastavení, Výsledky): podržení tlačítka
   ani fotky neoznačí text, neukáže lupu / „Kopírovat“ ani nabídku obrázku. Výjimka: pole pro psaní a `.selectable`. */
body, button, a, img, label, [role="button"] {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
img { -webkit-user-drag: none; }
input, textarea, [contenteditable], [contenteditable] *, .selectable, .selectable * {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ── hlavička: logo (wordmark + slogan z brand.json) + jazyk + hráč ── */
/* G9 C2: hlavička (a s ní rozbalená nabídka jazyků) nad popiskem fotky a kartou (z 3), pod panely / sheety (z 20) */
.top {
  position: relative; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 18px 0;
}
/* S2 E1: [proužek][název = odkaz domů] / [ ][slogan · by vydavatel = odkaz ven] — dva odkazy vedle sebe, ne vnořené */
.wordmark { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 3px; align-items: center;
  min-width: 0; line-height: 1; color: var(--color-text); }
.wordmark__bar { flex: none; width: 26px; height: 10px; grid-row: 1 / span 2; }
.wordmark__home { color: inherit; text-decoration: none; min-width: 0; }
.wordmark__sub { display: flex; align-items: baseline; gap: 7px; min-width: 0; flex-wrap: wrap; row-gap: 3px; }
.wordmark__by { font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: .01em; color: var(--color-muted);
  text-decoration: none; border-left: 1px solid rgba(227, 232, 238, .25); padding-left: 7px; white-space: nowrap; }
.wordmark__by b { font-weight: 700; color: var(--color-text); }
.wordmark__by:focus-visible b { color: var(--color-accent); }
@media (hover: hover) and (pointer: fine) { .wordmark__by:hover b { color: var(--color-accent); } }   /* G11 A: hover jen myš */
.chip--about { width: 34px; padding: 4px 0; font-size: 16px; }
.wordmark__name { font-weight: 900; font-style: italic; font-stretch: 62%; font-size: 26px; letter-spacing: .005em; white-space: nowrap; }
.wordmark__name em { font-style: italic; font-weight: 600; color: var(--color-accent); }
.wordmark__slogan { font-size: 16px; font-weight: 700; font-style: italic; color: var(--soft); letter-spacing: .02em; white-space: nowrap; }
.top__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 4px 12px;
  border-radius: 999px; border: 1px solid rgba(227, 232, 238, .15); background: rgba(14, 19, 27, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--color-text);
  font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.chip--player { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
.chip--player[data-player-kind="child"]::before { content: "🚗 "; }
.lang-dd { position: relative; flex: none; }
.lang-dd__btn { gap: 4px; min-width: 52px; padding: 4px 10px; border-color: rgba(255, 178, 30, .6); }
.lang-dd__caret { font-size: 11px; color: var(--color-accent); transition: transform .15s; }
.lang-dd[data-lang-open="true"] .lang-dd__caret { transform: rotate(180deg); }
.lang-dd__menu {
  position: absolute; z-index: 40; top: calc(100% + 4px); right: 0; min-width: 150px; margin: 0; padding: 4px; list-style: none;
  background: var(--color-surface); border: 1px solid var(--color-surface-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.lang-dd__menu[hidden] { display: none; }
.lang-dd__item {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; color: var(--color-text);
  text-decoration: none; font-size: 14px;
}
.lang-dd__item b { font-weight: 900; font-style: italic; font-stretch: 75%; font-size: 16px; min-width: 26px; }
.lang-dd__item span { color: var(--soft); }
.lang-dd__item:focus-visible { background: var(--color-surface-2); outline: none; }
@media (hover: hover) and (pointer: fine) { .lang-dd__item:hover { background: var(--color-surface-2); } }
.lang-dd__item[aria-current="true"] { background: rgba(255, 178, 30, .14); box-shadow: inset 3px 0 0 var(--color-accent); }
.lang-dd__item[aria-current="true"] b { color: var(--color-accent); }
.lang-dd--wide .lang-dd__menu { left: 0; right: auto; }

.page { flex: 1; width: 100%; max-width: 44rem; margin: 0 auto; padding: 24px 16px; }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom)); color: var(--color-muted); font-size: .8125rem;
}
.site-footer a { color: var(--color-muted); }

/* ── tlačítka ── */
.go {
  position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 10px 26px 9px 22px; border: 0; background: var(--color-accent); color: var(--color-bg);
  transform: skewX(var(--skew)); font-weight: 900; font-style: italic; font-stretch: 70%; font-size: 24px; line-height: 1;
  box-shadow: 6px 6px 0 var(--color-accent-deep); text-decoration: none; cursor: pointer; overflow: hidden;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.go > span { display: inline-block; transform: skewX(var(--unskew)); }
.go:active { transform: skewX(var(--skew)) translate(3px, 3px); box-shadow: 3px 3px 0 var(--color-accent-deep); }
.go:disabled, .go[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.go--ghost { background: transparent; color: var(--color-text); box-shadow: inset 0 0 0 2px var(--color-text); }
.go--small { min-height: 44px; font-size: 20px; padding: 8px 18px; }
.go--hold .hold-fill { position: absolute; inset: 0; background: rgba(14, 19, 27, .25); transform-origin: left; transform: scaleX(0); }
.go--hold[data-holding="true"] .hold-fill { transform: scaleX(1); transition: transform var(--hold-ms, 3000ms) linear; }
.btn-row { display: flex; gap: 14px 18px; flex-wrap: wrap; align-items: center; }
.link-btn {
  min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--color-accent); font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px;
  border: 0; transform: skewX(var(--skew)); font: inherit; font-weight: 800; font-style: italic; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn > * { transform: skewX(var(--unskew)); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--color-accent); color: var(--color-bg); box-shadow: 5px 5px 0 var(--color-accent-deep); }
.btn--secondary { background: var(--color-surface-2); color: var(--color-text); }
.btn--big { min-height: 58px; font-size: 1.25rem; width: 100%; }

/* ── pilulky (volby) ── */
.pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 5px 11px; border: 0; font-stretch: 88%;
  transform: skewX(var(--skew)); background: var(--color-surface-2); color: #B8C2CF; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.pill > span { display: inline-block; transform: skewX(var(--unskew)); }
.pill[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); }
.pill:disabled, .pill[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.opt-row .lbl { font-size: 12px; color: var(--color-muted); width: 74px; flex: none; }
.opt-desc { margin: -2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--color-muted); min-height: 1.45em; }
.lives { display: inline-flex; gap: 4px; vertical-align: middle; }
.lives i { width: 12px; height: 12px; background: var(--color-bad); transform: skewX(var(--skew)); display: block; }

/* úzký telefon: jen aktuální jazyk (ťuknutí přepne na druhý), menší logo */
@media (max-width: 420px) {
  .top { padding-left: 14px; padding-right: 14px; }
  .wordmark__sub { flex-direction: column; align-items: flex-start; }
  .wordmark__by { border-left: 0; padding-left: 0; }
}
@media (max-width: 370px) {
  .wordmark__name { font-size: 22px; }
  .wordmark__bar { width: 20px; }
  .chip--player { max-width: 30vw; }
}

/* ── hlavní menu: fotka (stage) + seznam + panel ── */
body.is-shell { position: fixed; inset: 0; overflow: hidden; }
body.is-shell .page { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0; }
.shell { position: absolute; inset: 0; display: grid; grid-template-rows: auto 34% minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.shell[data-level]:not([data-level="main"]) { grid-template-rows: auto 24% minmax(0, 1fr); }
.stage { position: absolute; inset: 0 0 auto 0; height: 46%; overflow: hidden; z-index: 0; transition: height .3s; background: #000; }
.shell:not([data-level="main"]) .stage { height: 36%; }
.stage__layer { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.stage__layer[data-on="true"] { opacity: 1; }
.stage__layer img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.15) contrast(1.12) brightness(.8); }
.stage__split { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.stage__split > div { position: relative; overflow: hidden; }
.stage__split > div:first-child { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); margin-right: -12%; }
.stage__split > div:last-child { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); margin-left: -12%; }
.stage__vs {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) skewX(var(--skew));
  font-weight: 900; font-style: italic; font-stretch: 60%; font-size: 64px; line-height: 1; color: var(--color-bg);
  background: var(--color-accent); padding: 4px 16px 2px; letter-spacing: -.02em;
}
.stage__layer picture { display: contents; }   /* G10 A: <picture> s odvozeninou pro PC se chová jako samotný <img> */
.stage__seam { display: none; }
.stage__layer--zoom img { transform: scale(1.12); }
/* G4a E: úvodní auto celé — celá fotka (contain) nad rozmazanou kopií; na telefonu u spodního okraje fotky */
.stage__layer--hero img.stage__blur { position: absolute; inset: 0; object-fit: cover; filter: blur(18px) brightness(.45); transform: scale(1.15); }
.stage__layer--hero img.stage__whole { position: absolute; inset: 0; object-fit: contain; object-position: 50% 78%; }
.stage__layer--zoom::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0 32%, rgba(14, 19, 27, .85) 66%); }
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 19, 27, .55) 0%, transparent 22%, transparent 55%, var(--color-bg) 100%),
              radial-gradient(120% 90% at 70% 40%, transparent 40%, rgba(5, 7, 10, .65) 100%);
}
.stage__streaks {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0;
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(255, 255, 255, .16) 23px 24px, transparent 24px 70px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.stage__streaks[data-go="true"] { animation: sweep .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes sweep { 0% { opacity: .9; transform: translateX(-35%); } 100% { opacity: 0; transform: translateX(35%); } }

.shell .top { grid-row: 1; }
.caption {
  position: relative; z-index: 3; grid-row: 2; align-self: end; justify-self: end; margin: 0 18px 6px; max-width: 70%;
  text-align: right; font-size: 12px; color: var(--color-muted); line-height: 1.3;
  padding: 4px 8px; border-radius: 6px; background: rgba(14, 19, 27, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.caption__name { display: block; color: var(--color-text); font-weight: 600; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.caption__credit { display: inline-flex; align-items: center; gap: 4px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.caption__info {
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 15px; line-height: 1; cursor: pointer;
}
.caption__why { display: inline-block; margin: 3px 0 4px; font-size: 12px; font-weight: 700; color: var(--color-bg); background: var(--color-accent); padding: 1px 8px; transform: skewX(var(--skew)); }
.caption__why > span { display: inline-block; transform: skewX(var(--unskew)); }
/* G4a G: popisek fotky nikdy nepřeteče přes horní řádek ani menu — zůstane ve svém řádku mřížky; jméno na 1 řádek,
   autor nejvýš na 2 (na úzkém telefonu 1) řádky, celé znění v ⓘ */
.caption { max-height: 100%; overflow: hidden; box-sizing: border-box; }
.caption__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caption__credit { max-width: 100%; }
.caption__credit > [data-caption-credit] {
  min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.caption__info { flex: none; }
@media (max-width: 420px) {
  .caption__credit > [data-caption-credit] { -webkit-line-clamp: 1; line-clamp: 1; }
  .caption { max-width: calc(100% - 28px); }
}

.menu {
  position: relative; z-index: 3; grid-row: 3; display: flex; flex-direction: column; min-height: 0; padding: 0 20px 0;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }
.crumb { display: flex; align-items: center; gap: 10px; min-height: 34px; flex: none; color: var(--color-muted); font-size: 14px; }
.crumb__back { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 6px 0 0; border: 0; background: none; color: var(--color-text); font-weight: 600; cursor: pointer; }
.crumb__back svg { width: 16px; height: 16px; }
.list { list-style: none; margin: 0; padding: 2px 0; display: flex; flex-direction: column; gap: 2px; flex: none; }
.item {
  position: relative; display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left; padding: 5px 14px 5px 16px;
  border: 0; background: none; isolation: isolate; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.item__icon { align-self: center; flex: none; display: flex; }
.item__name {
  white-space: nowrap; font-weight: 800; font-style: italic; font-stretch: 68%; font-size: 29px; line-height: 1.05;
  letter-spacing: .005em; color: rgba(227, 232, 238, .55); transition: color .15s;
}
.item__sub { min-width: 0; font-size: 13px; color: var(--color-muted); opacity: 0; transition: opacity .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__tag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; transform: skewX(var(--skew)); background: var(--color-surface-2); color: var(--color-muted); flex: none; }
.item__tag--new { background: var(--color-accent); color: var(--color-bg); }
.item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--skew)) scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--color-accent) 0 6px, rgba(255, 178, 30, .18) 6px, rgba(255, 178, 30, 0) 100%);
  transition: transform .22s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) and (pointer: fine) { .item:hover .item__name { color: rgba(227, 232, 238, .85); } }
.item[aria-current="true"] .item__name { color: #fff; }
.item[aria-current="true"] .item__sub { opacity: 1; }
.item[aria-current="true"]::before { transform: skewX(var(--skew)) scaleX(1); }
.item[aria-disabled="true"] .item__name { color: rgba(227, 232, 238, .3); }
.shell:not([data-level="main"]) .item__name { font-size: 25px; }
.shell:not([data-level="main"]) .item { padding: 3px 14px 3px 16px; }

.panel {
  position: relative; z-index: 3; flex: none; margin-top: 10px; padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(22, 29, 40, .92), rgba(14, 19, 27, .96)); border-top: 2px solid var(--color-accent);
  display: flex; flex-direction: column; gap: 12px;
}
.panel p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--soft); max-width: 46ch; }
.panel .panel__note { color: var(--color-muted); font-size: 13px; }
.panel .panel__best { color: var(--color-text); font-weight: 600; }
.stat { display: flex; gap: 18px; flex-wrap: wrap; }
.stat div { font-size: 12px; color: var(--color-muted); }
.stat b { display: block; font-size: 22px; font-weight: 800; font-style: italic; font-stretch: 70%; color: var(--color-text); line-height: 1.1; }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.board__row { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: baseline; padding: 5px 4px; border-bottom: 1px solid rgba(227, 232, 238, .07); font-size: 14px; }
.board__rank { font-weight: 800; font-style: italic; font-stretch: 70%; color: var(--color-muted); }
.board__row:first-child .board__rank { color: var(--color-accent); }
.board__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__score { font-weight: 800; font-style: italic; font-stretch: 70%; font-size: 17px; }
.board__date { font-size: 12px; color: var(--color-muted); }
.board__row[data-me="true"] { background: rgba(255, 178, 30, .1); }
.menu .site-footer { padding: 18px 0 max(14px, env(safe-area-inset-bottom)); margin-top: auto; font-size: 11px; gap: 4px 12px; }
.join-code { display: flex; flex-direction: column; gap: 6px; }
.join-code__label { font-size: 12px; color: var(--color-muted); }
.join-code__row { display: flex; gap: 14px; align-items: center; }
.join-code__input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--color-surface-2); background: var(--color-bg);
  color: var(--color-text); font: inherit; font-size: 20px; letter-spacing: .15em; text-transform: uppercase;
}
.join-code__input::placeholder { text-transform: none; letter-spacing: normal; color: var(--color-muted); font-size: 15px; }

/* ── sheety (Kdo hraje?, body, přehled) ── */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: rgba(5, 7, 10, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet__in {
  width: 100%; max-height: 92%; overflow-y: auto; background: var(--color-surface); border-top: 2px solid var(--color-accent);
  padding: 18px 20px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px;
}
.sheet h2 { margin: 0; font-weight: 800; font-style: italic; font-stretch: 68%; font-size: 28px; line-height: 1; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet__back { display: flex; align-items: center; gap: 6px; min-height: 40px; border: 0; background: none; color: var(--color-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.sheet__back svg { width: 16px; height: 16px; }
.sheet__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); }
.who__input { font: inherit; font-size: 18px; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-surface-2); padding: 10px 12px; width: 100%; }
.who__input:focus { outline: 2px solid var(--color-accent); outline-offset: 0; }
.sug { display: flex; flex-direction: column; gap: 2px; }
.sug__btn { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 44px; text-align: left; padding: 9px 12px; border: 0; background: var(--color-bg); color: var(--color-text); font-size: 16px; font-weight: 600; cursor: pointer; }
.sug__btn small { font-size: 12px; font-weight: 400; color: var(--color-muted); text-align: right; }
.sug__btn[data-hit="true"] { background: var(--color-surface-2); }
@media (hover: hover) and (pointer: fine) { .sug__btn:hover { background: var(--color-surface-2); } }
.hint { margin: 0; font-size: 12px; color: var(--color-muted); }
.who__kids { display: flex; gap: 10px; flex-wrap: wrap; }
.kid-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; padding: 8px 10px; border: 0; background: var(--color-bg); color: var(--color-text); font-weight: 700; cursor: pointer; }
.kid-chip svg { width: 64px; height: 44px; }
.howto { width: 100%; border-collapse: collapse; font-size: 14px; }
.howto th, .howto td { text-align: left; vertical-align: top; padding: 7px 6px; border-bottom: 1px solid rgba(227, 232, 238, .08); }
.howto thead th { color: var(--color-muted); font-weight: 600; font-size: 12px; }
.howto tbody th { white-space: nowrap; font-weight: 800; font-style: italic; font-stretch: 75%; font-size: 16px; }
.toast {
  position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .25s;
  background: var(--color-text); color: var(--color-bg); font-weight: 700; padding: 10px 18px; border-radius: 6px; font-size: 14px;
  pointer-events: none; white-space: nowrap;
}
.toast[data-on="true"] { opacity: 1; transform: translate(-50%, 0); }

/* ⓘ panel (AD-11) */
.photo-info { width: min(92vw, 420px); border: 0; border-top: 2px solid var(--color-accent); padding: 16px; background: var(--color-surface); color: var(--color-text); }
.photo-info::backdrop { background: rgba(0, 0, 0, .6); }
.photo-info__heading { margin: 0 0 8px; font-size: 1.125rem; }
.photo-info__list { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: .9375rem; }
.photo-info__list dt { color: var(--color-muted); }
.photo-info__list dd { margin: 0; overflow-wrap: anywhere; }
.photo-info a, .credits a { color: var(--color-accent); }

/* ── široký displej (tablet / PC): seznam vlevo přes fotku, popis vpravo dole ── */
@media (min-width: 760px) {
  .shell, .shell[data-level]:not([data-level="main"]) { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(360px, 40%) minmax(0, 1fr); }
  .stage, .shell:not([data-level="main"]) .stage { height: 100%; }
  .stage::after {
    background: linear-gradient(90deg, rgba(14, 19, 27, .96) 0%, rgba(14, 19, 27, .82) 30%, rgba(14, 19, 27, .1) 58%, transparent 70%),
                linear-gradient(0deg, rgba(14, 19, 27, .9) 0%, transparent 35%),
                radial-gradient(120% 100% at 75% 45%, transparent 45%, rgba(5, 7, 10, .6) 100%);
  }
  .stage__layer img { object-position: 62% 50%; }
  .stage__layer--hero img.stage__whole { left: 40%; width: 60%; object-position: 50% 55%; }
  .stage__split { left: 40%; }
  .stage__vs { left: 70%; }
  .shell .top { grid-column: 1 / -1; padding: max(24px, env(safe-area-inset-top)) 32px 0; }
  .wordmark__name { font-size: 32px; }
  .wordmark__slogan { font-size: 18px; }
  .caption { position: absolute; grid-row: auto; bottom: 28px; left: calc(40% + 24px); max-width: calc(60% - 24px - min(420px, 40%) - 60px); margin: 0; text-align: left; }
  .menu { grid-row: 2; grid-column: 1; padding: 24px 24px 0 32px; }
  .list { margin-top: auto; }
  .item__name, .shell:not([data-level="main"]) .item__name { font-size: 40px; }
  .shell:not([data-level="main"]) .item { padding: 4px 14px 4px 16px; }
  .panel {
    position: fixed; right: 28px; bottom: 28px; width: min(420px, 40%); max-height: calc(100% - 140px); overflow-y: auto; margin: 0;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(14, 19, 27, .8);
  }
  .menu .site-footer { margin-top: 18px; }
  .sheet { align-items: center; justify-content: center; }
  .sheet__in { width: 440px; border: 1px solid var(--color-surface-2); border-top: 2px solid var(--color-accent); }
  .sheet--full .sheet__in { width: min(720px, 92vw); }
}
/* G10 A: PC a tablet naležato = výloha — úvodní auto přes celé okno (cover), Car Battle a Poznej generaci dvě fotky
   po půlce celé šířky s šikmým žlutým švem a VS uprostřed; menu vlevo na tmavém přechodu (.stage::after) */
@media (min-width: 1000px) and (orientation: landscape) {
  .stage__layer--hero img.stage__blur { display: none; }
  .stage__layer--hero img.stage__whole { left: 0; width: 100%; object-fit: cover; object-position: 50% 58%; }
  .stage__split { left: 0; }
  .stage__split > div:first-child, .stage__split > div:last-child { clip-path: none; margin: 0; }
  .stage__split img { object-position: 50% 50%; }
  .stage__seam {
    display: block; position: absolute; left: 50%; top: -2%; bottom: -2%; width: 6px; z-index: 1;
    background: var(--color-accent); transform: translateX(-50%) skewX(-6deg); box-shadow: 0 0 18px rgba(0, 0, 0, .45);
  }
  .stage__vs { left: 50%; top: 50%; z-index: 2; font-size: 72px; padding: 4px 26px 2px; }
}
/* nízký široký displej (telefon na šířku): menší položky, seznam scrolluje, nic se neschová */
@media (min-width: 760px) and (max-height: 560px) {
  .shell .top { padding-top: max(10px, env(safe-area-inset-top)); }
  .wordmark__name { font-size: 24px; }
  .menu { padding-top: 8px; }
  .list { margin-top: 0; }
  .item__name, .shell:not([data-level="main"]) .item__name { font-size: 26px; }
  .item, .shell:not([data-level="main"]) .item { padding: 2px 14px 2px 16px; }
  .panel { bottom: 14px; right: 14px; max-height: calc(100% - 80px); gap: 8px; padding: 10px 14px 12px; }
  .panel p { font-size: 13px; }
  .go { font-size: 20px; min-height: 42px; }
  .caption { top: 64px; bottom: auto; left: auto; right: 14px; max-width: 46%; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .stage__streaks[data-go="true"] { animation: none; }
  .stage__layer, .item::before, .stage, .toast { transition: none; }
  .go--hold[data-holding="true"] .hold-fill { transition: none; }
}

/* ── /credits, /lan ── */
.credits__heading { margin: 0 0 8px; font-size: 1.75rem; line-height: 1.1; font-style: italic; font-weight: 900; font-stretch: 68%; }
.credits__lead, .credits__count { margin: 0 0 8px; color: var(--color-muted); }
.credits__note { margin: 0 0 12px; padding: 10px 12px; border-left: 4px solid var(--color-accent); background: var(--color-surface); font-size: .9375rem; }
.credits__section { margin: 28px 0 8px; font-size: 1.375rem; font-style: italic; font-weight: 800; font-stretch: 75%; }
.credits__car { margin: 20px 0 8px; font-size: 1.125rem; }
.credits__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.credits__item { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; }
.credits__thumb { flex: none; width: 96px; height: 64px; object-fit: cover; background: #000; }
.credits__thumb--logo { object-fit: contain; background: #fff; padding: 6px; }
.credits__text { display: flex; flex-direction: column; min-width: 0; }
.credits__title { font-weight: 600; }
.lan { text-align: center; }
.lan__heading { margin: 0 0 8px; font-size: 1.75rem; line-height: 1.1; font-style: italic; font-weight: 900; font-stretch: 68%; }
.lan__hint { margin: 0 0 16px; color: var(--color-muted); }
.lan__qr { width: min(100%, 360px); margin: 0 auto 16px; padding: 0; overflow: hidden; background: #fff; }
.lan__qr svg { display: block; width: 100%; height: auto; }
.lan__label { margin: 0; color: var(--color-muted); font-size: 0.875rem; }
.lan__url { margin: 4px 0 16px; font-size: 1.25rem; font-weight: 700; }
.lan__url a { color: var(--color-accent); text-decoration: none; }
.lan__warning { margin: 0; padding: 12px 14px; border-left: 4px solid var(--color-accent); background: var(--color-surface); font-size: 0.9375rem; }

/* ── Nastavení → Zvuky: ▶ ukázka (G10 G: řádky akcí — název · výběr zvuku · ▶; Zkus to naostro) ── */
.sound-play {
  min-width: 40px; min-height: 36px; border: 0; transform: skewX(var(--skew)); background: var(--color-accent); color: var(--color-bg);
  font-size: 13px; font-weight: 800; cursor: pointer; touch-action: manipulation;
}

.uis { gap: 8px; }
.uis__vol input[type="range"] { flex: 1 1 140px; min-width: 0; accent-color: var(--color-accent); }
.uis__vol output { min-width: 44px; font-weight: 800; font-size: 13px; }
.uis__roles { display: grid; gap: 4px; }
.uis[data-on="false"] .uis__roles, .uis[data-on="false"] .uis__demo { opacity: .5; }
.uis__row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr) auto; align-items: center; gap: 6px; padding: 4px 6px;
  background: var(--color-surface); }
.uis__nm { min-width: 0; line-height: 1.15; }
.uis__nm b { display: block; font-size: 13px; overflow-wrap: anywhere; }
.uis__nm small { display: block; font-size: 11px; color: var(--color-muted); overflow-wrap: anywhere; }
.uis__sel { width: 100%; min-width: 0; min-height: 36px; padding: 4px 6px; border: 1px solid #3a4658; background: var(--color-bg);
  color: var(--color-text); font: inherit; font-size: 13px; }
.uis__sel optgroup { color: var(--color-muted); }
.uis__sel option { color: var(--color-text); }
.uis__reset { align-self: flex-start; padding: 6px 0; border: 0; background: none; color: var(--color-accent); font: inherit; font-size: 14px;
  font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) {   /* mobil: název akce nahoře, pod ním celý výběr zvuku + ▶ */
  .uis__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
  .uis__nm { grid-column: 1 / -1; }
  .uis__nm b, .uis__nm small { display: inline; }
  .uis__nm small::before { content: " · "; }
}
.opt-desc--h small { font-weight: 500; color: var(--color-muted); }
.uis__demo { display: flex; flex-wrap: wrap; gap: 6px; }
.uis__db { border: 0; transform: skewX(var(--skew)); background: var(--color-surface-2); color: var(--color-text); font: inherit; font-weight: 800;
  font-style: italic; font-size: 13px; padding: 7px 11px; cursor: pointer; touch-action: manipulation; }
.uis__db > span { display: inline-block; transform: skewX(var(--unskew)); }
.uis__db--click { background: var(--color-accent); color: var(--color-bg); }
.uis__db--toggle[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); }
.uis__db--ok { background: var(--color-good); color: #06210f; }
.uis__db--bad { background: var(--color-bad); color: #fff; }
.uis__db--win { background: #2a2412; color: var(--color-accent); box-shadow: inset 0 0 0 2px var(--color-accent); }

/* ── S2 E1: O aplikaci (mockup v9) ── */
.about { position: fixed; inset: 0; z-index: 60; background: var(--color-bg); color: var(--color-text); font-family: inherit; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.about__in { max-width: 760px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; }
.about__back span { font-size: 22px; line-height: 1; }
.about__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px 6px 6px;
  background: none; border: 0; color: var(--color-text); font: inherit; font-weight: 700; cursor: pointer; }
.about__lock { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0 4px; }
.about__name { font-weight: 900; font-style: italic; font-stretch: 62%; font-size: 44px; line-height: 1; }
.about__name em { font-style: italic; font-weight: 600; color: var(--color-accent); }
.about__slogan { font-size: 18px; font-weight: 700; font-style: italic; color: var(--soft); }
.about__by { margin-top: 6px; font-size: 14px; color: var(--color-muted); text-decoration: none; }
.about__by b { color: var(--color-text); }
.about__meta { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--color-muted); }
.about__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
.about__link { color: var(--color-accent); font-weight: 700; font-size: 14px; }
.about__h { margin: 6px 0 0; font-weight: 800; font-style: italic; font-stretch: 70%; font-size: 22px; }
.about__apps { display: grid; grid-template-columns: 1fr; gap: 8px; }
.app-card { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--color-surface); border-left: 3px solid var(--color-accent);
  text-decoration: none; color: inherit; min-width: 0; }
.app-card__ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-weight: 900; font-style: italic; font-stretch: 70%;
  font-size: 18px; color: var(--color-bg); background: var(--color-text); transform: skewX(var(--skew)); }
.app-card__ic span { transform: skewX(12deg); }
.app-card__txt { min-width: 0; }
.app-card__txt b { display: block; font-size: 15px; }
.app-card__txt small { display: block; font-size: 12px; color: var(--color-muted); line-height: 1.4; }
.app-card__go { margin-left: auto; font-size: 12px; color: var(--color-muted); white-space: nowrap; }
@media (max-width: 420px) { .app-card__go { display: none; } }
@media (min-width: 760px) { .about__apps { grid-template-columns: 1fr 1fr; } .about__in { padding-left: 32px; padding-right: 32px; } }
body.about-open { overflow: hidden; }

/* S2: tablet / úzké PC (760–1199 px) — mezi seznamem a panelem není místo na popisek fotky (lámal se po písmenech);
   popisek jde vpravo nahoru pod hlavičku */
@media (min-width: 760px) and (max-width: 1199px) {
  .caption { left: auto; right: 28px; top: 112px; bottom: auto; max-width: min(420px, 44%); text-align: right; }
}

/* ══ G4a J: tlačítko startu motoru (mockup 2026-10-28_karta_start_motoru, varianta A) ══ */
.eng {
  position: relative; display: grid; place-items: center; flex: none; padding: 0; border: 0; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: var(--color-accent);
  box-shadow: inset 0 0 0 2px var(--color-accent); -webkit-tap-highlight-color: transparent;
}
.eng::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }   /* dotyková plocha ≥ 44 px */
.eng svg { width: 70%; height: auto; display: block; }
.eng--pulse { animation: eng-pulse 1s ease-out 2; }
.eng[data-playing="true"] .w, .eng[data-playing="true"] path:nth-child(n) { animation: eng-wave .35s ease-in-out infinite alternate; }
.eng[data-playing="true"] .w2 { animation-delay: .17s; }
@keyframes eng-pulse { 0% { box-shadow: inset 0 0 0 2px var(--color-accent), 0 0 0 0 rgba(255, 178, 30, .7); }
  100% { box-shadow: inset 0 0 0 2px var(--color-accent), 0 0 0 14px rgba(255, 178, 30, 0); } }
@keyframes eng-wave { from { opacity: .2; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .eng--pulse, .eng[data-playing="true"] path { animation: none; } }
/* karta auta: kolečko vedle ⓘ nahoře na fotce */
.eng--a { position: absolute; z-index: 3; top: 7px; right: 52px; }
/* Car Battle: vlevo nahoře na fotce každého auta (pod štítkem vítěze) */
.bres__car .eng--left { right: auto; left: 6px; top: 36px; }
/* seznamy a časová osa: vpravo v řádku */
.eng--c { width: 36px; height: 36px; background: transparent; margin-left: auto; }
.gtl__item .eng--c { margin-right: 4px; }
.eng-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 46vh; overflow-y: auto; }
.eng-list__li { display: flex; align-items: center; gap: 10px; padding: 4px 6px; background: var(--color-surface); }
.eng-list__li img { width: 64px; height: 42px; object-fit: cover; flex: none; background: #000; }
.eng-list__t { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.2; }
.eng-list__t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-list__t span { color: var(--color-muted); font-size: 12px; font-weight: 600; }
.eng-list__use { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
.eng-list__use input { width: 22px; height: 22px; accent-color: var(--color-accent); }

/* G6 G2: Připojit se — sken QR (tlačítko pod kódem + celoobrazovkový živý náhled kamery) */
.scanbtn { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 14px; padding: 14px; border: 2px dashed var(--color-accent); background: var(--color-surface); color: var(--color-text); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.scanbtn svg { width: 44px; height: 44px; flex: none; color: var(--color-accent); }
.scanbtn b { display: block; font-weight: 900; font-style: italic; font-stretch: 65%; font-size: 24px; line-height: 1.05; }
.scanbtn small { display: block; font-size: 13px; color: var(--soft); }
.qrscan { position: fixed; inset: 0; z-index: 30; background: #000; display: grid; place-items: center; }
.qrscan[hidden] { display: none; }
.qrscan__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qrscan__frame { position: relative; width: min(70vw, 70vh); aspect-ratio: 1; border: 4px solid var(--color-accent); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); pointer-events: none; }
.qrscan__close { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%) skewX(var(--skew)); background: rgba(0, 0, 0, .6); }

/* G9 A: hlídač verze — toast „Nová verze hry — obnovuji…“ (na všech stránkách, i bez [data-toast]) */
.vtoast {
  position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .25s;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px);
  background: var(--color-text); color: var(--color-bg); font-weight: 700; padding: 10px 14px 10px 18px; border-radius: 6px; font-size: 14px;
}
.vtoast[data-on="true"] { opacity: 1; transform: translate(-50%, 0); }
.vtoast__btn { flex: none; white-space: nowrap; border: 0; background: var(--color-accent); color: var(--color-bg); font: inherit; font-weight: 800; padding: 6px 12px; cursor: pointer; }
/* G9 C2: rozbalená nabídka jazyků v panelu Nastavení nad sousedními vrstvami */
:where(.panel, .opts, .opt-row):has(> .lang-dd[data-lang-open="true"], .lang-dd[data-lang-open="true"]) { position: relative; z-index: 12; }

/* ══ G9 H: „Z jakých aut hra pojede“ — matice typ × období, předvolby + vlaječky, bez rolování na 360×640 ══ */
.carpick-open { overflow: hidden; }
.carpick { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; gap: 6px; background: var(--color-bg);
  color: var(--color-text); padding: max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom)); overflow: hidden; }
.carpick button { font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cp-head { display: flex; }
.cp-back { border: 0; background: none; color: var(--soft); font-weight: 800; font-style: italic; font-stretch: 70%; font-size: 21px; padding: 2px 0; cursor: pointer; text-align: left; }
.cp-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cp-n { font-weight: 900; font-style: italic; font-stretch: 62%; font-size: 26px; color: var(--color-accent); line-height: 1; }
.cp-n[data-low="true"] { color: var(--color-bad); }
.cp-min { font-size: 12px; color: var(--color-muted); white-space: nowrap; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cp-pre { border: 0; transform: skewX(var(--skew)); background: var(--color-surface-2); color: var(--soft); font-weight: 800; font-size: 12.5px; padding: 5px 9px; cursor: pointer; }
.cp-pre > span { display: inline-block; transform: skewX(var(--unskew)); }
.cp-pre[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); }
.cp-flag { display: inline-flex; align-items: center; gap: 3px; border: 2px solid var(--color-accent); background: transparent; color: var(--color-text);
  font-size: 11px; font-weight: 800; padding: 2px 4px; cursor: pointer; }
.cp-flag img { width: 16px; height: 12px; display: block; }
.cp-flag[aria-pressed="false"] { border-color: #3a4658; opacity: .45; }
.cp-globe { font-size: 12px; line-height: 1; }
.cp-grid { flex: 1 1 auto; min-height: 0; display: grid; gap: 2px; align-content: start; }
.cp-corner { display: block; }
.cp-col { border: 0; background: none; color: var(--color-muted); font-size: 11px; font-weight: 800; padding: 2px 0; cursor: pointer; }
.cp-row { border: 0; background: none; color: var(--color-text); font-size: 12px; font-weight: 800; text-align: left; padding: 0 4px 0 0; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cp-cell { min-height: 24px; border: 0; background: var(--color-surface); color: var(--color-muted); font-size: 11.5px; font-weight: 800; cursor: pointer; padding: 0; }
.cp-cell[aria-pressed="true"] { background: var(--color-accent); color: #1a1200; }
.cp-cell[data-empty="true"] { background: transparent; color: #3a4658; }
.cp-cell[data-empty="true"][aria-pressed="true"] { background: rgba(255, 178, 30, .18); color: var(--color-muted); }
.cp-garage { grid-column: 1 / -1; margin-top: 4px; min-height: 30px; border: 1px dashed rgba(255, 178, 30, .5); border-radius: 8px; background: none; color: var(--color-text); font-size: 12.5px; font-weight: 800; text-align: left; padding: 0 10px; cursor: pointer; }
.cp-garage[aria-pressed="true"] { background: var(--color-accent); border-style: solid; color: #1a1200; }
.cp-foot { flex: none; border-top: 1px solid #273142; padding-top: 6px; }
.cp-done { min-height: 44px; font-size: 22px; padding: 6px 22px; }
@media (min-width: 700px) { .carpick { max-width: 520px; margin: 0 auto; border-left: 1px solid #273142; border-right: 1px solid #273142; } }
/* G9 H: řádek „Auta: Všechna · 1 255 ▾“ v panelu režimu a v Nastavení */
.cars-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--color-accent);
  background: transparent; color: var(--color-text); font-family: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.opt-warn { color: var(--color-bad) !important; font-weight: 700; }

/* ── G13 E: Zpět = V1 — celý řádek je tlačítko (52 px, „‹ Zpět · Sólo“), plocha pro prst přes celou šířku ── */
.crumb { position: relative; min-height: 52px; }
.crumb__back { min-height: 52px; font-size: 16px; font-weight: 700; }
.crumb__back svg { color: var(--color-accent); }
.crumb__back::after { content: ""; position: absolute; inset: 0; }          /* klik kdekoli v řádku = Zpět */
.crumb:has(.crumb__back:not([hidden])) { cursor: pointer; }
.crumb:has(.crumb__back:not([hidden])) .crumb__title::before { content: "· "; }
@media (hover: hover) and (pointer: fine) {
  .crumb:has(.crumb__back:not([hidden])):hover { background: linear-gradient(90deg, rgba(255, 178, 30, .1), transparent 70%); }
}
.rm-top { position: relative; }
.rm-back { min-height: 52px; font-size: 16px; font-weight: 700; }
.rm-back svg { color: var(--color-accent); }
.rm-back::after { content: ""; position: absolute; inset: 0; }

/* ── G13 E: „Kdo hraje?“ při prvním spuštění (mockup B) ── */
[data-who-mode="switch"] [data-who-first] { display: none !important; }
[data-who-mode="first"] [data-who-hint] { display: none; }
.who__intro { margin: 6px 0 0; color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.who__lbl { display: block; margin: 10px 0 4px; color: var(--soft); font-size: 13px; }
[data-who-mode="first"] .who__input { border: 2px solid var(--color-accent); }
.who__meta { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0 8px; font-size: 12px; color: var(--color-muted); }
.who__count { margin-left: auto; font-variant-numeric: tabular-nums; }
.who__ideas-h { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--color-muted); }
.who__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.who__chip { min-height: 36px; padding: 6px 10px; border: 1px solid #3a4658; background: var(--color-surface-2); color: var(--color-text);
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.who__go { width: 100%; justify-content: center; margin-top: 14px; }
.who__go:disabled { background: var(--color-surface-2); color: var(--color-muted); box-shadow: none; cursor: default; }
.who__anon { display: block; margin: 12px auto 0; }
.item__tag:not(.item__tag--new) { text-transform: uppercase; letter-spacing: .05em; }

/* ── G13 E5: Plány ── */
.plans { width: 100%; max-width: 760px; margin: 0 auto; padding: 4px 16px 24px; }
.plans__back { display: flex; align-items: center; gap: 10px; color: var(--color-muted); text-decoration: none; }
.plans__back .crumb__back { color: var(--color-text); }
.plans__head { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.plans__title { margin: 0; font-weight: 900; font-style: italic; font-stretch: 62%; font-size: 40px; line-height: 1; }
.soon { align-self: center; padding: 2px 7px; border-radius: 3px; background: var(--color-surface-2); color: var(--soft);
  font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.plans__grid { display: grid; gap: 10px; }
@media (min-width: 760px) { .plans__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; padding: 12px; border-top: 4px solid var(--color-surface-2); background: var(--color-surface); }
.plan--hi { border-top-color: var(--color-accent); }
.plan__soon { position: absolute; top: 10px; right: 10px; }
.plan__name { margin: 0; font-weight: 900; font-style: italic; font-stretch: 65%; font-size: 26px; }
.plan__list { margin: 6px 0 0; padding-left: 18px; color: var(--soft); font-size: 14px; }
.plan__mine { display: inline-block; margin-top: 8px; color: var(--color-good); font-size: 13px; font-weight: 700; }
.plans__note { margin: 12px 0 0; color: var(--color-muted); font-size: 13px; }

/* ── G13 L: účty (mockup 2026-10-29_ucty_moje_garaz_plany) ─────────────────────────────────────────────── */
.chip--acct { width: 34px; padding: 4px 0; color: #b9a7ff; }
.chip--acct.is-in { width: auto; max-width: 40vw; gap: 6px; padding: 3px 12px 3px 3px; border-color: var(--color-good, #2ecc71); color: var(--color-text); }
.chip--acct .chip__ini { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent); color: #1a1200; font-style: normal; font-weight: 800; font-size: 13px; }
.chip--acct .chip__nick { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .chip--player { max-width: 26vw; } .chip--acct.is-in { max-width: 25vw; padding-right: 9px; } }
.sheet.acct .sheet__in { max-width: 560px; margin: 0 auto; }
@media (min-width: 700px) { .sheet.acct { align-items: center; justify-content: center; } .sheet.acct .sheet__in { border: 1px solid var(--color-surface-2); border-top: 2px solid var(--color-accent); } }
.acct__lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--soft); }
.acct__lead b { color: var(--color-text); }
.acct__tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--color-surface-2); }
.acct__tab { min-height: 44px; border: 0; background: none; color: var(--soft); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.acct__tab[aria-selected="true"] { background: var(--color-accent); color: #1a1200; }
.acct__form { display: flex; flex-direction: column; gap: 6px; }
.acct__form[hidden] { display: none; }
.acct__lbl { display: block; margin: 4px 0 0; color: var(--soft); font-size: 13px; }
.acct__input { font: inherit; font-size: 18px; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-surface-2); padding: 10px 12px; width: 100%; min-width: 0; }
.acct__input:focus { outline: 2px solid var(--color-accent); outline-offset: 0; }
.acct__go { width: 100%; justify-content: center; margin-top: 8px; }
.acct__go:disabled { background: var(--color-surface-2); color: var(--color-muted); box-shadow: none; cursor: default; }
.acct__note { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--color-muted); }
.acct__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 4px; }
.acct__links .ghost-link, .acct__resend { border: 0; background: none; padding: 6px 0; color: var(--color-accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.acct__resend:disabled { color: var(--color-muted); cursor: default; }
.acct__err { margin: 0; padding: 8px 10px; border-left: 3px solid #ff5d5d; background: rgba(255, 93, 93, .1); color: #ffb3b3; font-size: 14px; }
.acct__err[hidden] { display: none; }
.acct__dev { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 2px dashed #a35bff; background: rgba(163, 91, 255, .1); color: #d9b8ff; font-size: 13px; }
.acct__dev b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.acct__devlist { display: flex; flex-wrap: wrap; gap: 6px; }
.acct__devbtn { min-height: 34px; padding: 4px 10px; border: 1px solid #a35bff; background: none; color: #f0e3ff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.acct__free { margin: 0; text-align: center; font-size: 14px; color: var(--soft); }
.acct__ok { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--color-bg); font-size: 13px; color: var(--color-muted); }
.acct__ok b { color: var(--color-good, #2ecc71); font-size: 14px; }
.acct__mail { margin: -4px 0 0; font-size: 14px; color: var(--soft); overflow-wrap: anywhere; }
.acct__menu { display: flex; flex-direction: column; }
.acct__row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--color-surface-2); background: none; color: var(--color-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.acct__row i { font-style: normal; font-size: 17px; text-align: center; }
.acct__row b { font-size: 17px; font-weight: 800; }
.acct__row span { font-size: 13px; color: var(--color-muted); white-space: nowrap; }
.acct__tier { padding: 2px 8px; background: var(--color-surface-2); color: var(--color-text) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .06em; }
.acct__line { display: flex; gap: 8px; }
.acct__mini { flex: none; min-width: 84px; border: 1px solid var(--color-accent); background: none; color: var(--color-accent); font: inherit; font-weight: 800; cursor: pointer; }
.auth { width: 100%; max-width: 480px; margin: 0 auto; padding: 40px 16px; display: flex; flex-direction: column; gap: 14px; }
.auth__h { margin: 0; font-weight: 800; font-style: italic; font-stretch: 68%; font-size: 34px; }
.auth__p, .auth__note { margin: 0; color: var(--soft); }
.auth__note { font-size: 13px; color: var(--color-muted); }
.auth__go { width: 100%; justify-content: center; }

/* ── G13 J4 / M1: editor výřezu 3:2 (admin i Moje garáž) ── */
.adm-crop { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 600px) { .adm-crop { grid-template-columns: minmax(0, 1fr); } }
.adm-crop__box { position: relative; align-self: start; touch-action: none; user-select: none; background: #000; overflow: hidden; }
.adm-crop__box img { display: block; width: 100%; height: auto; }
.adm-crop__frame { position: absolute; border: 3px solid var(--color-accent); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); cursor: move; touch-action: none; }
.adm-crop__prev { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.adm-crop__prev img { position: absolute; max-width: none; }

/* ── G13 M: Moje garáž, Moje výsledky, čip garáže v čekárně ─────────────────────────────────────────────── */
.rm-garage { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.rm-garage[hidden] { display: none; }
.rm-gchip { align-self: flex-start; min-height: 38px; padding: 6px 14px; border: 1px solid var(--color-good); background: none; color: var(--color-text); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.rm-gchip[aria-pressed="true"] { background: var(--color-good); color: #06210f; }
.my { width: 100%; max-width: 760px; margin: 0 auto; padding: 4px 16px 28px; display: flex; flex-direction: column; gap: 10px; }
.my__back { display: flex; align-items: center; gap: 10px; color: var(--color-muted); text-decoration: none; }
.my__back .crumb__back { color: var(--color-text); }
.my__h { margin: 4px 0 0; font-weight: 900; font-style: italic; font-stretch: 62%; font-size: 36px; line-height: 1; }
.my__h--car { font-size: 30px; }
.my__h2 { margin: 10px 0 0; color: var(--color-accent); font-size: 14px; font-weight: 800; font-style: italic; letter-spacing: .06em; text-transform: uppercase; }
.my__sub, .my__p { margin: 0; color: var(--soft); font-size: 14px; }
.my__go { align-self: flex-start; }
.my__note { margin: 0; color: var(--color-muted); font-size: 13px; line-height: 1.4; }
.my__offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--color-surface); font-weight: 800; }
.my__switch { flex: none; position: relative; width: 54px; height: 30px; border: 0; background: var(--color-surface-2); cursor: pointer; transform: skewX(-12deg); }
.my__switch i { position: absolute; top: 4px; left: 5px; width: 20px; height: 22px; background: var(--color-muted); transition: left .15s; }
.my__switch[aria-checked="true"] { background: var(--color-good); }
.my__switch[aria-checked="true"] i { left: 29px; background: #fff; }
.my__list, .my__strip, .my__records, .my__games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.my__car { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; align-items: center; gap: 10px; min-height: 64px; background: var(--color-surface); padding-right: 8px; }
.my__car.is-off { opacity: .55; }
.my__ph { display: block; height: 64px; overflow: hidden; background: #000; }
.my__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my__tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--color-text); text-decoration: none; }
.my__tx b { font-weight: 900; font-style: italic; font-stretch: 70%; font-size: 19px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my__tx small { color: var(--color-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my__eye { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--color-surface-2); color: var(--color-text); font-size: 17px; cursor: pointer; }
.my__empty { margin: 8px 0; color: var(--color-muted); }
.my__upload { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px dashed var(--color-surface-2); background: none; color: var(--color-muted); font: inherit; font-weight: 800; cursor: not-allowed; }
.my__strip { flex-direction: row; flex-wrap: wrap; }
.my__photo { position: relative; width: 112px; height: 74px; overflow: hidden; background: #000; }
.my__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my__photo.is-off img { opacity: .35; }
.my__photo.is-main { outline: 2px solid var(--color-accent); }
.my__peye { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(5, 7, 10, .75); color: #fff; font-size: 14px; cursor: pointer; }
.my__err { margin: 0; color: #ffb3b3; font-size: 13px; }
.my__err[hidden] { display: none; }
.my__crop { margin-top: 4px; }
.my__form { display: flex; flex-direction: column; gap: 8px; }
.my__scroll { overflow-x: auto; }
.my__params { width: 100%; border-collapse: collapse; font-size: 14px; }
.my__params th, .my__params td { padding: 6px 6px; border-bottom: 1px solid var(--color-surface-2); text-align: left; vertical-align: middle; }
.my__params thead th { color: var(--color-muted); font-size: 12px; font-weight: 600; }
.my__lbl { display: flex; flex-direction: column; gap: 4px; color: var(--soft); font-size: 13px; }
.my__input { font: inherit; font-size: 16px; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-surface-2); padding: 8px 10px; width: 100%; min-width: 0; }
.my__input--num { width: 84px; }
.my__seg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.my__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.my__actions .go { justify-content: center; }
.ghost-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--color-text); background: none; color: var(--color-text); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.my__tabs { display: flex; gap: 6px; }
.my__tab { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; background: var(--color-surface); color: var(--soft); font-weight: 800; text-decoration: none; }
.my__tab[aria-current="page"] { background: var(--color-accent); color: #1a1200; }
.my__records li, .my__games li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 12px; background: var(--color-surface); }
.my__records li b, .my__games li b { font-weight: 800; }
.my__records li span { color: var(--color-accent); font-weight: 900; font-style: italic; font-size: 20px; grid-row: span 2; align-self: center; }
.my__records li small, .my__games li small { color: var(--color-muted); font-size: 12.5px; }
.my__games li { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; }
.my__when { color: var(--color-muted); font-size: 12px; line-height: 1.3; }
.my__mid { display: flex; flex-direction: column; min-width: 0; }
.my__pts { color: var(--color-accent); font-weight: 900; font-style: italic; font-size: 20px; }
