/* Stránka minihry (/mini/): nad tokeny a styly stránky hráče (/hrac/mobile.css, player.css, player-party.css),
   tady jen úvod, statistiky, výsledek otázky a konec hry. Oranžové ladění body[data-mode="party"]. */


.mini-screen {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding-block: 16px; text-align: center;
}
/* animace listů (posun, otočení, razítko) nesmí rozšířit stránku do strany */
.app.mini { overflow-x: clip; }

.mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 12px 20px; border: 0; border-radius: 18px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 5px 0 var(--accent-sh);
  font: inherit; font-weight: 800; font-size: 1.15rem; cursor: pointer;
}
.mini-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent-sh); }
.mini-btn i { font-size: 1.4rem; }
.mini-btn-quiet { background: var(--surface); color: var(--text); border: 2px solid var(--border); box-shadow: none; }
.mini-btn[hidden], .mini-link[hidden] { display: none; }
.mini-chip { font-style: normal; font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.mini-btn-quiet:active { transform: scale(.99); box-shadow: none; }
.mini-btn-light { background: #fff; color: var(--pp-ink, #10131a); box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.mini-link { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; padding: 12px; cursor: pointer; }

/* barva akcentu na papíře: u světlého motivu, papír je světlý i v tmavém režimu */
body[data-theme="zelena"] .qs { --paper-green: #2d6a45; }
body[data-theme="modra"] .qs { --paper-green: #1f5a9e; }
body[data-theme="cervena"] .qs { --paper-green: #b3261e; }
body[data-theme="fialova"] .qs { --paper-green: #6b3fa0; }

/* Výzva: štítek na úvodu a srovnání na konci hry */
.qs-sheet.es-vs { margin: 4px 0 10px; padding: 16px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.es-vs[hidden] { display: none; }
.es-vs-row { align-self: stretch; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.es-vs-side { padding: 10px 6px; border-radius: 14px; background: var(--sheet-clue); color: var(--paper-muted); font-weight: 800; font-size: .85rem; display: flex; flex-direction: column; }
.es-vs-side small { font-size: .75rem; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }
.es-vs-side b { font-size: 2.2rem; line-height: 1.05; color: var(--sheet-ink); font-variant-numeric: tabular-nums; }
.es-vs-me { background: var(--paper-green); color: #f1f6f2; }
.es-vs-me b { color: #fff; }
.es-vs-x { font-weight: 800; font-size: .85rem; color: var(--paper-muted); }
.es-verdict { display: inline-block; padding: 4px 16px; border: 3px solid currentColor; border-radius: 10px; font-weight: 800; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-4deg); animation: es-stamp .45s cubic-bezier(.2, .8, .3, 1) .6s both; }
.es-verdict[data-result="win"] { color: #16733f; }
.es-verdict[data-result="tie"] { color: #8a5a12; }
.es-verdict[data-result="lose"] { color: #b3261e; }
.es-tally { margin: 0; font-weight: 800; color: var(--paper-muted); font-variant-numeric: tabular-nums; }
.es-tally[hidden] { display: none; }
.es-acts [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .es-verdict { animation: none; } }

/* Přisunutí papírového listu při změně obrazovky nebo další otázce (spouští mini.js, list výsledku má vlastní efekt) */
.qs-sheet.scr-in { animation: scr-in .38s cubic-bezier(.2, .8, .3, 1) both; }
.qs-sheet.scr-in ~ .qs-sheet.scr-in { animation-delay: .08s; }
.qs-sheet.scr-in ~ .qs-sheet.scr-in ~ .qs-sheet.scr-in { animation-delay: .16s; }
@keyframes scr-in { from { opacity: 0; transform: translateX(32px) rotate(1.6deg); } }

/* Kód hry */
.mini-code { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.mini-code label { font-weight: 700; }
.mini-code input {
  width: 100%; min-height: 64px; padding: 8px 16px; border: 2px solid var(--border); border-radius: 16px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 2rem; font-weight: 800; letter-spacing: .3em; text-align: center; text-transform: uppercase;
}
.mini-error { margin: 0; color: var(--bad); font-weight: 700; }

/* Barevné motivy minihry (KvizMiniCore.THEMES, volí se ve správě); oranžová = výchozí ladění párty z mobile.css.
   --accent-sh = stín tlačítka (akcent ztmavený na 60 %). Bílý text na akcentu má kontrast aspoň 4,5:1. */
body[data-theme="zelena"] { --bg: #f3f1ea; --bg-2: #ebe8de; --border: #e2ded2; --accent: #2d6a45; --accent-soft: #e2eee5; --accent-sh: #1b3f29; }
body[data-theme="modra"] { --bg: #eef2f7; --bg-2: #e3e9f1; --border: #d8e0ea; --accent: #1f5a9e; --accent-soft: #dde8f5; --accent-sh: #12365f; }
body[data-theme="cervena"] { --bg: #f7eeec; --bg-2: #f0e2df; --border: #ead6d2; --accent: #b3261e; --accent-soft: #f8dfdb; --accent-sh: #6b1712; }
body[data-theme="fialova"] { --bg: #f3eff7; --bg-2: #e9e2f1; --border: #e0d6ea; --accent: #6b3fa0; --accent-soft: #ebe0f6; --accent-sh: #402660; }
@media (prefers-color-scheme: dark) {
  body[data-theme="zelena"] { --bg: #121713; --bg-2: #18201a; --surface: #1c241e; --border: #2c372f; --accent: #74c98f; --accent-ink: #0f1a12; --accent-soft: #223629; --accent-sh: #46795a; }
  body[data-theme="modra"] { --bg: #0f141b; --bg-2: #151c26; --surface: #19212c; --border: #2a3646; --accent: #7fb0f0; --accent-ink: #0b1320; --accent-soft: #1e2c40; --accent-sh: #4c6a90; }
  body[data-theme="cervena"] { --bg: #1a1110; --bg-2: #221715; --surface: #261a18; --border: #3d2a27; --accent: #ff8a78; --accent-ink: #1f0b08; --accent-soft: #3f2420; --accent-sh: #995348; }
  body[data-theme="fialova"] { --bg: #15111b; --bg-2: #1b1623; --surface: #201a29; --border: #352c44; --accent: #c09af0; --accent-ink: #160d22; --accent-soft: #2f2440; --accent-sh: #735c90; }
}

/* Úvod */
/* Papírový list úvodu: obrázek hry nalepený izolepou (jako na konci hry), název a tři údaje jako štítky */
.qs-sheet.hm-sheet { margin: 88px 0 8px; padding: 0 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.qs-sheet.hm-sheet:has(#home-art[hidden]) { margin-top: 64px; padding-top: 16px; }
.hm-art-wrap { position: relative; width: 100%; margin-top: -30px; }
.hm-art-wrap:has(#home-art[hidden]) { display: none; }
.hm-art {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: #f3f1ea; box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
  transform: rotate(-3deg); transform-origin: 50% 0; animation: es-pop .6s cubic-bezier(.2, .9, .3, 1.2) .25s both, es-sway 2.2s ease-in-out .95s both;
}
.hm-sheet .mini-facts { gap: 8px; }
.hm-sheet .mini-facts li { background: var(--sheet-clue); color: #5f6358; border-radius: 14px; animation: es-stamp .45s cubic-bezier(.2, .8, .3, 1) both; }
.hm-sheet .mini-facts li[hidden] { display: none; }
.hm-sheet .mini-facts:has(li[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-sheet .mini-facts li:nth-child(1) { transform: rotate(-1.5deg); animation-delay: .8s; }
.hm-sheet .mini-facts li:nth-child(2) { transform: rotate(1deg); animation-delay: 1s; }
.hm-sheet .mini-facts li:nth-child(3) { transform: rotate(-1deg); animation-delay: 1.2s; }
.hm-sheet .mini-fact-value { color: var(--sheet-ink); }
.hm-sheet .mini-zn { background: var(--paper-green); }
.hm-sheet .mini-name { color: var(--sheet-ink); text-align: center; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .hm-sheet * { animation: none !important; } }
.mini-home { justify-content: flex-start; padding-top: 16px; }
.mini-name { margin: 4px 0 0; font-family: var(--display); font-size: clamp(1.5rem, 7.5vw, 2rem); line-height: 1.1; overflow-wrap: anywhere; }
.mini-play { position: relative; overflow: hidden; min-height: 72px; font-size: 1.4rem; }
/* odlesk: po delší nečinnosti přeběhne přes tlačítko lesklý pruh (třídu glint přidává mini.js) */
.mini-play::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .16) 42%, rgba(255, 255, 255, .62) 50%, rgba(255, 255, 255, .16) 58%, transparent 66%);
}
.mini-play.glint::after { animation: mini-glint 1.2s cubic-bezier(.3, .1, .3, 1); }
@keyframes mini-glint { to { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .mini-play.glint::after { animation: none; } }
/* údaje hry na úvodu: tři dlaždice se značkou (maska z /mini/img/znak/ v barvě motivu), číslem a popiskem */
.mini-facts { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-facts li {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px;
  border-radius: 18px; background: var(--surface); color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center;
}
.mini-zn {
  width: 26px; height: 26px; margin-bottom: 4px; background: var(--accent);
  -webkit-mask: var(--zn) center / contain no-repeat; mask: var(--zn) center / contain no-repeat;
}
.mini-facts li > span:last-child { text-wrap: balance; }
.mini-fact-value { color: var(--text); font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
/* okruhy zásoby na úvodu: sbalený blok pod Hrát, po rozbalení řádky s počtem a pruhem */
.mini-areas { width: 100%; border-radius: 18px; background: var(--surface); text-align: left; }
.mini-areas summary {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px;
  font-weight: 700; cursor: pointer; list-style: none;
}
.mini-areas summary::-webkit-details-marker { display: none; }
.mini-areas summary span { flex: 1; }
.mini-areas summary small { color: var(--muted); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.mini-areas summary i { color: var(--accent); font-size: 1.2rem; transition: transform .2s; }
.mini-areas[open] summary i { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .mini-areas summary i { transition: none; } }
.mini-areas ul { list-style: none; margin: 0; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.mini-areas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: baseline; font-size: .9rem; font-weight: 600; }
.mini-areas li > span:first-child { overflow-wrap: anywhere; }
.mini-areas .mini-meter { grid-column: 1 / -1; height: 6px; background: var(--accent-soft); }

/* QR pro kamarády: ikona vpravo nahoře na úvodu, velký kód v dialogu */
.mini-home { position: relative; }
.mini-qr-open {
  position: absolute; top: 12px; right: 8px; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-size: 1.6rem; cursor: pointer;
}
.mini-qr-dialog {
  width: min(92vw, 420px); border: 0; border-radius: 24px; padding: 24px; background: var(--surface); color: var(--text);
  text-align: center;
}
.mini-qr-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.mini-qr-dialog .mini-qr { width: 100%; margin: 0 auto 16px; }
.mini-qr-dialog form { margin: 0; }

/* Karta titulu na úvodu: proklik na statistiky, vidět i bez odehrané hry */
.mini-card {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left;
  border: 2px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.mini-card:focus-visible, .mini-qr-open:focus-visible, .mini-bar-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mini-card .mini-badge-pic { width: 56px; height: 56px; margin: 6px; font-size: 1.5rem; }
/* titul na úvodu v kolečku postupu k dalšímu (stejné jako ve statistikách) */
.mini-ring.home-ring { flex: none; width: 68px; height: 68px; }
.home-ring circle { stroke-width: 11; }
.mini-card .home-ring .mini-badge-pic { position: absolute; inset: 9px; width: auto; height: auto; margin: 0; box-shadow: none; }
.mini-card > i { color: var(--muted); font-size: 1.3rem; }
.mini-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-card-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.mini-card#home-title { flex-wrap: wrap; }
/* další titul: zamčený obrázek a dva pruhy podle podmínek (hry, úspěšnost) */
.mini-next { flex-basis: 100%; display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 2px dashed var(--border); font-variant-numeric: tabular-nums; }
.mini-next[hidden] { display: none; }
.mini-next-pic { flex: none; }
.mini-next .mini-badge-pic { width: 46px; height: 46px; margin: 0; font-size: 1.2rem; }
.mini-steps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-step { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: .82rem; font-weight: 800; }
.mini-step > span:first-child { color: var(--muted); font-weight: 700; }
.mini-step .mini-meter { grid-column: 1 / -1; height: 8px; background: var(--border); }
.mini-step[data-done="1"] b { color: var(--accent); }
.mini-step[data-done="1"] .mini-meter::before { opacity: .55; }
.mini-card-badges { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Statistiky (návrh A „Trofejní síň“): titul v kolečku postupu, 4 čísla, nejbližší odznak, vitrína odznaků
   s detailem po klepnutí, úspěšnost po oblastech; Zpět a Sdílet plovoucí tlačítka, Hrát znovu přilepené dole */
.mini-stats { justify-content: flex-start; align-items: stretch; text-align: left; gap: 22px; padding-bottom: 0; }
/* Zpět a Sdílet: dvě kulatá tlačítka plovoucí nad statistikami, bez pruhu */
.mini-fab { position: fixed; z-index: 5; top: calc(env(safe-area-inset-top) + 10px); left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.mini-bar-btn {
  pointer-events: auto; flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.mini-bar-share { background: var(--accent); color: var(--accent-ink); }

.mini-hero {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px 22px;
  border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); text-align: center;
}
.mini-ring { position: relative; width: 156px; height: 156px; }
.mini-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mini-ring circle { fill: none; stroke-width: 12; }
.mini-ring-track { stroke: var(--accent-soft); }
.mini-ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .6s ease; }
@media (prefers-reduced-motion: reduce) { .mini-ring-fill { transition: none; } }
.mini-ring-pic {
  position: absolute; inset: 22px; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 3rem;
}
.mini-ring-pic img { width: 100%; height: 100%; object-fit: cover; }
.mini-hero-title { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; overflow-wrap: anywhere; }
.mini-hero-next { margin: 0; color: var(--muted); }
.mini-hero-next strong { color: var(--accent); }

.mini-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 16px 8px;
  border-radius: 20px; background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 600;
}
.mini-value { color: var(--text); font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1.05; font-variant-numeric: tabular-nums; }

.mini-goal { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: var(--accent); color: var(--accent-ink); }
.mini-goal .mini-badge-pic[data-earned] { width: 64px; height: 64px; font-size: 1.8rem; background: var(--surface); color: var(--accent); box-shadow: none; }
.mini-goal .mini-badge-pic[data-earned] img { filter: none; opacity: 1; }
.mini-goal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-goal-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-goal-row strong { font-size: 1.05rem; }
.mini-goal-bar { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.mini-goal-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent-ink); }

.mini-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
.mini-badge {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0; text-align: center;
  border: 0; border-radius: 16px; background: none; color: var(--text); font: inherit; font-size: .85rem; cursor: pointer;
}
.mini-badge[aria-pressed="true"] { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.mini-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mini-badge-name { font-weight: 700; line-height: 1.2; }
.mini-badge[data-earned="0"] .mini-badge-name { color: var(--muted); }
.mini-badge strong { font-size: .9rem; line-height: 1.2; }
.mini-badge-text { color: var(--muted); line-height: 1.3; }
.mini-badge-pic {
  position: relative; flex: none; width: 84px; height: 84px; display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-weight: 800; font-size: 2.2rem;
}
.mini-badge-pic[data-earned="1"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent); }
.mini-badge-pic.has-img { background: var(--surface); color: transparent; }
.mini-badge-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-badge-pic[data-earned="0"] { background: var(--border); color: var(--muted); }
.mini-badge-pic[data-earned="0"] img { filter: grayscale(1); opacity: .4; }
.mini-badge-detail {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: -4px;
  border-radius: 20px; background: var(--surface); border: 2px solid var(--border);
}
.mini-badge-detail .mini-badge-pic { width: 64px; height: 64px; font-size: 1.8rem; }
.mini-badge-detail > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mini-badge-detail > div > span:not(.mini-badge-state) { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.mini-badge-state { color: var(--accent); font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }

/* Statistiky na papíře: titul v kolečku postupu přes horní okraj listu, čísla jako štítky, odznaky a oblasti na vlastních listech */
.qs-sheet.st-sheet { margin: 66px 0 0; padding: 0 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.st-sheet .mini-ring { width: 132px; height: 132px; margin-top: -66px; border-radius: 50%; background: var(--sheet); box-shadow: 0 0 0 5px var(--sheet), 0 6px 14px rgba(0, 0, 0, .22); }
.st-sheet .mini-ring-track { stroke: var(--sheet-clue); }
.st-sheet .mini-ring-fill { stroke: var(--paper-green); }
.st-sheet .mini-ring-pic { inset: 16px; background: var(--sheet-clue); color: var(--paper-green); }
.st-sheet .mini-hero-title { margin-top: 6px; font-size: 1.65rem; color: var(--sheet-ink); }
.st-sheet .mini-hero-next { color: var(--paper-muted); font-size: .9rem; font-weight: 600; }
.st-sheet .mini-hero-next strong { color: var(--paper-green); }
.st-sheet .mini-tiles { align-self: stretch; margin-top: 8px; gap: 8px; }
.st-sheet .mini-tile { padding: 12px 6px 10px; border-radius: 14px; background: var(--sheet-clue); color: var(--paper-muted); font-size: .8rem; animation: es-stamp .45s cubic-bezier(.2, .8, .3, 1) both; }
.st-sheet .mini-value { color: var(--sheet-ink); font-size: 1.75rem; }
.st-sheet .mini-tile:nth-child(1) { transform: rotate(-1.2deg); animation-delay: .9s; }
.st-sheet .mini-tile:nth-child(2) { transform: rotate(1deg); animation-delay: 1s; }
.st-sheet .mini-tile:nth-child(3) { transform: rotate(.8deg); animation-delay: 1.1s; }
.st-sheet .mini-tile:nth-child(4) { transform: rotate(-1deg); animation-delay: 1.2s; }
.mini-goal { border-radius: 20px; box-shadow: 0 5px 0 var(--accent-sh); }
.qs-sheet.st-album, .qs-sheet.st-areas { margin: 12px 0 0; padding: 24px 14px 14px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.st-album .qs-tab, .st-areas .qs-tab { max-width: calc(100% - 28px); display: flex; gap: 8px; }
.st-album .qs-tab small { font-size: inherit; font-weight: 800; opacity: .85; font-variant-numeric: tabular-nums; }
.st-album .mini-badge { color: var(--sheet-ink); }
.st-album .mini-badge-pic { width: 72px; height: 72px; }
.st-album .mini-badge-pic[data-earned="1"] { box-shadow: 0 0 0 3px var(--sheet), 0 0 0 5px var(--paper-green); animation: st-pop .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.st-album .mini-badge-pic.has-img { background: #fff; }
.st-album .mini-badge-pic[data-earned="0"] { background: var(--sheet-clue); color: #8a8d82; }
.st-album .mini-badge[data-earned="0"] .mini-badge-name, .st-album .mini-badge-name { color: var(--sheet-ink); }
.st-album .mini-badge-pic[data-earned="0"] + .mini-badge-name, .st-album .mini-badge:has(.mini-badge-pic[data-earned="0"]) .mini-badge-name { color: #8a8d82; }
.st-album .mini-badge:nth-child(1) .mini-badge-pic { animation-delay: 1s; } .st-album .mini-badge:nth-child(2) .mini-badge-pic { animation-delay: 1.07s; }
.st-album .mini-badge:nth-child(3) .mini-badge-pic { animation-delay: 1.14s; } .st-album .mini-badge:nth-child(4) .mini-badge-pic { animation-delay: 1.21s; }
.st-album .mini-badge:nth-child(5) .mini-badge-pic { animation-delay: 1.28s; } .st-album .mini-badge:nth-child(6) .mini-badge-pic { animation-delay: 1.35s; }
.st-album .mini-badge:nth-child(7) .mini-badge-pic { animation-delay: 1.42s; } .st-album .mini-badge:nth-child(8) .mini-badge-pic { animation-delay: 1.49s; }
.st-album .mini-badge:nth-child(9) .mini-badge-pic { animation-delay: 1.56s; }
.st-album .mini-badge-detail { margin-top: 0; padding: 10px; border: 0; border-radius: 14px; background: var(--sheet-clue); color: var(--sheet-ink); }
.st-album .mini-badge-detail > div > span:not(.mini-badge-state) { color: var(--paper-muted); }
.st-album .mini-badge-state { color: var(--paper-green); }
.st-areas .mini-areas-list li { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--sheet-ink); }
.st-areas .mini-meter, .st-areas .mini-areas-list .mini-meter { background: var(--sheet-clue); }
.st-areas .mini-meter::before { background: var(--paper-green); transform-origin: left; animation: st-grow .8s ease-out .6s both; }
@keyframes st-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes st-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .mini-stats * { animation: none !important; } }

/* Kód hry, bez připojení, načítání: jeden papírový list, obrázek stavu nalepený a lehce se zhoupne */
.qs-sheet.cd-sheet { margin: 0; padding: 26px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; width: 100%; }
.qs-sheet.cd-sheet:has(.cd-art-wrap:not(:has([hidden]))) { margin-top: 62px; }
.cd-art-wrap { position: relative; margin-top: -88px; }
.cd-art-wrap:has(.cd-art[hidden]) { display: none; }
.cd-art-wrap::before { content: ""; position: absolute; left: 50%; top: -10px; width: 64px; height: 22px; margin-left: -32px; z-index: 1; border-radius: 2px; background: rgba(233, 185, 73, .8); transform: rotate(4deg); }
.cd-art { display: block; width: 130px; height: 130px; object-fit: cover; border-radius: 16px; background: #f3f1ea; box-shadow: 0 6px 14px rgba(0, 0, 0, .28); transform: rotate(-3deg); transform-origin: 50% 0; animation: es-pop .6s cubic-bezier(.2, .9, .3, 1.2) .25s both, es-sway 2.2s ease-in-out .95s both; }
.cd-text { margin: 0; font-weight: 700; font-size: 1.1rem; color: var(--sheet-ink); }
.cd-loader { width: 54px; height: 54px; margin: 6px 0 2px; border-radius: 50%; border: 6px solid var(--sheet-clue); border-top-color: var(--paper-green); animation: spin 1s linear infinite; }
.cd-sheet .mini-btn { align-self: stretch; width: 100%; }
.cd-sheet .mini-code label { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-muted); }
.cd-sheet .mini-code input { min-height: 60px; border: 0; border-bottom: 4px solid var(--paper-green); border-radius: 14px; background: var(--sheet-clue); color: var(--sheet-ink); font-size: 1.75rem; letter-spacing: .28em; text-align: left; caret-color: var(--paper-green); }
.cd-sheet .mini-code input:focus-visible { outline: 3px solid var(--paper-green); outline-offset: 2px; }
.cd-sheet .mini-error { padding: 8px 12px; border-radius: 12px; background: #f6dcd6; color: #8c2a1c; animation: rs-shake .5s ease-out both; }
@media (prefers-reduced-motion: reduce) { .cd-sheet * { animation: none !important; } .cd-loader { animation: spin 2.4s linear infinite !important; } }

.mini-areas-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-areas-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center;
  padding: 12px 14px; border-radius: 16px; background: var(--surface); font-weight: 700; font-size: .95rem;
}
.mini-areas-list li > span:first-child { overflow-wrap: anywhere; }
.mini-areas-list .mini-meter { grid-column: 1 / -1; background: var(--accent-soft); }
.mini-meter { display: block; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.mini-meter::before { content: ""; display: block; height: 100%; width: calc(var(--pct) * 1%); background: var(--accent); border-radius: inherit; }
.mini-pct { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

.mini-sticky {
  --side-r: max(16px, env(safe-area-inset-right)); /* pravý okraj .app (mobile.css) */
  position: sticky; bottom: 0; margin: -8px calc(-1 * var(--side-r)) 0 calc(-1 * var(--side));
  padding: 16px var(--side-r) calc(16px + env(safe-area-inset-bottom)) var(--side);
  background: linear-gradient(transparent, var(--bg) 35%);
}
.mini-stats .mini-note:empty { display: none; }

/* Otázka (tři celky): pruh dílků s krokem, papírový list se zadáním (okruh jako štítek, čas jako kruh přes roh), odpovědi dole.
   List je papír v každém motivu, proto má vlastní pevné barvy a nezávisí na tmavém režimu. */
.qs {
  --sheet: #fbf9f2; --sheet-ink: #1c2620; --sheet-clue: #ebe7da; --sheet-edge: #d4cebc; --sheet-edge2: #b9b3a0;
  --paper-green: #a84a16; --paper-muted: #5f6358; --ring-face: #1c2620; --ring-ink: #fff; --ring-val: #f2f0e8; --ring-trk: rgba(255, 255, 255, .22);
}
.qs-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.qs-dots li { flex: 1; min-width: 0; height: 5px; border-radius: 3px; background: var(--border); }
.qs-dots li.done { background: var(--accent); }
.qs-dots li.now { background: var(--text); }
.qs-sheet {
  position: relative; margin: 30px 0 14px; padding: 30px 16px 18px; border-radius: 20px;
  background: var(--sheet); color: var(--sheet-ink); text-align: left;
  box-shadow: 0 7px 0 -1px var(--sheet-edge), 0 14px 0 -3px var(--sheet-edge2), 0 20px 22px -8px rgba(0, 0, 0, .28);
}
.qs-tab {
  position: absolute; left: 14px; top: -14px; max-width: calc(100% - 96px); padding: 6px 12px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .8rem; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qs-ring {
  position: absolute; right: 12px; top: -26px; width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ring-face); color: var(--ring-ink); box-shadow: 0 0 0 4px var(--sheet);
  font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums;
}
.qs-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.qs-ring circle { fill: none; stroke-width: 4; }
.qs-ring .trk { stroke: var(--ring-trk); }
.qs-ring .val { --left: 1; stroke: var(--ring-val); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 * (1 - var(--left))); }
#game.urgent .qs-ring .val { stroke: #ff8a75; }
#game.urgent .qs-ring { color: #ffb4a6; }
.qs-sheet .ask-question { color: var(--sheet-ink); }
.qs-sheet .ask-clues { margin-top: 12px; }
.qs-sheet .ask-clues li { background: var(--sheet-clue); border-color: transparent; color: var(--sheet-ink); }
.qs-sheet .ask-clues li::before { color: var(--sheet-ink); opacity: .6; }

/* Výsledek otázky: stejný papírový list jako u otázky, razítko ve stavové barvě, odpověď a vysvětlení. Stav zbarví jen pozadí. */
.mini-result {
  --pp-right: #16733f; --pp-wrong: #b3261e; --pp-none: #8a5a12; --st: var(--pp-right);
  --shape-a: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  --shape-c: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  margin-inline: calc(-1 * var(--side)); padding-inline: var(--side); padding-block: 16px 8px;
  align-items: stretch; justify-content: flex-start; gap: 12px;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--st) 40%, var(--bg)) 0%, var(--bg) 70%);
}
.mini-result[data-result="wrong"] { --st: var(--pp-wrong); }
.mini-result[data-result="none"] { --st: var(--pp-none); }
.mini-result [data-key="a"] { --btn: #0072b2; --btn-ink: #fff; }
.mini-result [data-key="b"] { --btn: #e69f00; --btn-ink: #10131a; }
.mini-result [data-key="c"] { --btn: #cc79a7; --btn-ink: #10131a; }
.mini-result #next { margin-top: auto; }
.rs-sheet { margin: 8px 0 14px; padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rs-stamp {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 12px 5px 8px; border: 4px solid var(--st); border-radius: 14px;
  color: var(--st); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1;
  transform: rotate(-6deg); animation: rs-slam .55s cubic-bezier(.2, .8, .3, 1) both;
}
.rs-ico { flex: none; width: 30px; height: 30px; transform-box: fill-box; }
.rs-ico path { display: none; }
.mini-result[data-result="right"] .i-right, .mini-result[data-result="wrong"] .i-wrong, .mini-result[data-result="none"] .i-none { display: inline; }
.mini-result[data-result="none"] .rs-ico { transform-origin: 50% 55%; animation: rs-flip 1.4s ease-in-out .4s both; }
.rs-points { font-weight: 800; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--pp-right); animation: rs-pop .5s cubic-bezier(.2, .9, .3, 1.25) .45s both; }
.rs-points[hidden] { display: none; }
.rs-tile {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 16px; text-align: left;
  background: var(--btn); color: var(--btn-ink); font-weight: 800; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere;
}
.rs-letter { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--btn-ink); color: var(--btn); font-weight: 800; }
.rs-letter[data-key="a"] { clip-path: var(--shape-a); }
.rs-letter[data-key="b"] { border-radius: 50%; }
.rs-letter[data-key="c"] { clip-path: var(--shape-c); }
.rs-question { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.35; text-align: left; text-wrap: pretty; overflow-wrap: anywhere; }
.mini-explain { margin: 0; font-size: 1.05rem; line-height: 1.45; text-align: left; }
.mini-result[data-result="right"] .rs-sheet { animation: rs-thud .5s ease-out both; }
.mini-result[data-result="wrong"] .rs-sheet { animation: rs-shake .5s ease-out .35s both; }
/* útržky papíru při správné odpovědi a rudý okraj při špatné; přes celou obrazovku, bez zásahu do dotyků */
.rs-fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.rs-fx i { position: absolute; top: -16px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; background: var(--c); animation: rs-fall 2.2s cubic-bezier(.25, .6, .4, 1) var(--d) both; }
.mini-result[data-result="wrong"] .rs-fx::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, var(--pp-wrong) 130%); opacity: 0; animation: rs-wash .9s ease-out; }
@keyframes rs-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--dx), 110vh) rotate(var(--r)); opacity: 0; } }
@keyframes rs-shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-9px); } 35% { transform: translateX(8px); } 55% { transform: translateX(-6px); } 75% { transform: translateX(4px); } }
@keyframes rs-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@keyframes rs-slam { 0% { transform: scale(2.6) rotate(-16deg); opacity: 0; } 55% { transform: scale(.94) rotate(-6deg); opacity: 1; } 70% { transform: scale(1.04) rotate(-6deg); } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
@keyframes rs-thud { 0%, 48% { transform: translateY(0); } 58% { transform: translateY(6px); } 100% { transform: translateY(0); } }
@keyframes rs-flip { 0%, 20% { transform: rotate(0); } 70%, 100% { transform: rotate(180deg); } }
@keyframes rs-wash { 0% { opacity: .9; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mini-result *, .rs-sheet { animation: none !important; }
  .rs-fx { display: none; }
}

/* Konec hry */
/* Konec hry: papírový list s nalepeným a lehce se kývajícím obrázkem, skóre, titul a odznak jako štítky */
.mini-end { align-items: stretch; justify-content: flex-start; gap: 12px; }
.es-sheet { margin: 62px 0 10px; padding: 0 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.es-sheet:has(#end-art[hidden]) { margin-top: 8px; padding-top: 22px; }
.es-art-wrap { position: relative; margin-top: -48px; width: 150px; height: 150px; }
.es-art-wrap:has(#end-art[hidden]) { display: none; }
.es-art-wrap::before, .hm-art-wrap::before { /* izolepa */
  content: ""; position: absolute; left: 50%; top: -10px; width: 70px; height: 24px; margin-left: -35px; z-index: 1; border-radius: 2px;
  background: rgba(233, 185, 73, .78); transform: rotate(4deg);
}
.es-art {
  display: block; width: 150px; height: 150px; object-fit: cover; border-radius: 18px; background: #f3f1ea; box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
  transform: rotate(-3deg); transform-origin: 50% 0; animation: es-pop .6s cubic-bezier(.2, .9, .3, 1.2) .25s both, es-sway 2.2s ease-in-out .9s both;
}
.es-score { margin: 0; font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.es-sub { margin: 0; font-size: 1.1rem; font-weight: 700; }
.es-tags { align-self: stretch; display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.es-tags[hidden] { display: none; }
.es-tags .mini-badge { flex: 1; min-width: 0; padding: 10px 6px 8px; gap: 2px; background: var(--sheet-clue); color: var(--sheet-ink); cursor: default; animation: es-stamp .5s cubic-bezier(.2, .8, .3, 1) both; }
.es-tags .mini-badge:nth-child(1) { transform: rotate(-2.5deg); animation-delay: .9s; }
.es-tags .mini-badge:nth-child(2) { transform: rotate(2deg); animation-delay: 1.15s; }
.es-tags .mini-badge:nth-child(3) { transform: rotate(-1.5deg); animation-delay: 1.4s; }
.es-tags .mini-badge-pic { width: 52px; height: 52px; margin-bottom: 4px; font-size: 1.4rem; }
.es-tags .mini-badge-pic[data-earned="1"] { box-shadow: 0 0 0 3px var(--sheet), 0 0 0 5px var(--accent); }
.es-tags .mini-badge-pic.has-img { background: #fff; }
.es-tags .mini-badge-text { color: #6a6a5a; font-weight: 600; font-size: .75rem; }
.es-acts { display: flex; flex-direction: column; gap: 8px; }
.es-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.es-row { display: flex; gap: 8px; }
.es-row .mini-btn { flex: 1; min-width: 0; }
@keyframes es-pop { 0% { transform: scale(.3) rotate(-14deg); opacity: 0; } 60% { transform: scale(1.12) rotate(-1deg); opacity: 1; } 100% { transform: scale(1) rotate(-3deg); opacity: 1; } }
/* zhoupne se dvakrát s doznívajícím rozkmitem a usadí se v původním náklonu */
@keyframes es-sway { 0%, 100% { transform: rotate(-3deg); } 20% { transform: rotate(-7deg); } 45% { transform: rotate(1deg); } 65% { transform: rotate(-4.5deg); } 85% { transform: rotate(-2.2deg); } }
@keyframes es-stamp { 0% { opacity: 0; scale: 1.8; } 60% { opacity: 1; scale: .94; } 100% { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .mini-end *, .es-sheet { animation: none !important; } }
.mini-note { margin: 0; min-height: 1.3em; color: var(--muted); overflow-wrap: anywhere; }
.mini-qr { width: min(100%, 280px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mini-qr svg { width: 100%; height: auto; border-radius: 12px; }
.mini-qr-code { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: .3em; }
/* s ilustrací se písmenná značka skryje (i u nezískaného a cílového odznaku) */
.mini-badge-pic.has-img[data-earned] { color: transparent; }

/* odkaz Soukromí v patičce úvodu a jeho dialog */
.mini-link { align-self: center; margin-top: 8px; padding: 10px 16px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mini-privacy { text-align: left; }
.mini-privacy h2 { margin: 0 0 12px; font-size: 1.3rem; }
.mini-privacy p { margin: 0 0 12px; line-height: 1.45; }
.mini-privacy form { text-align: center; margin-top: 16px; }

/* Přezdívka soupeře a sekce Souboje: každá věc má vlastní písmo (jméno tučně, čas drobně, výsledek razítkem, bilance velkým číslem) */
.hm-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 12px; background: var(--paper-green); color: #fff; font-weight: 800; font-size: .95rem; transform: rotate(-2deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.hm-tag em { font-style: normal; font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-variant-numeric: tabular-nums; }
.hm-tag[hidden], .hm-tag em[hidden] { display: none; }
.du-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: end center; padding-bottom: 2px; background: var(--paper-green, var(--accent)) center / cover; }
.du-av b { font-size: .9rem; font-weight: 800; line-height: 1; color: #fff; -webkit-text-stroke: 3px #1c2620; paint-order: stroke fill; }
.du-av-0 { background-image: url(img/avatar-1.webp); } .du-av-1 { background-image: url(img/avatar-2.webp); } .du-av-2 { background-image: url(img/avatar-3.webp); } .du-av-3 { background-image: url(img/avatar-4.webp); } .du-av-4 { background-image: url(img/avatar-5.webp); } .du-av-5 { background-image: url(img/avatar-6.webp); }
/* list Souboje na úvodu: dva poslední soupeři, celé tlačítko otevře seznam */
.qs-sheet.du-home { display: block; width: 100%; margin: 4px 0 10px; padding: 14px 16px 4px; border: 0; color: var(--sheet-ink); font: inherit; text-align: left; cursor: pointer; transform: rotate(-.4deg); }
.qs-sheet.du-home[hidden] { display: none; }
.du-home:focus-visible { outline: 3px solid var(--paper-green); outline-offset: 4px; }
.du-home-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px; }
.du-home-hd b { font-size: 1.2rem; font-weight: 800; }
.du-home-more { display: flex; align-items: center; gap: 4px; color: var(--paper-muted); font-size: .85rem; font-weight: 700; }
.du-home-more i { font-size: 1.1rem; }
.du-home-list { display: block; }
.du-home-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 2px dashed var(--sheet-edge); }
.du-home-row .du-score { font-size: 1.4rem; }
#screen-duels { justify-content: flex-start; }
.qs-sheet.du-sheet { margin: 64px 0 8px; padding: 18px 16px 8px; align-items: stretch; text-align: left; gap: 0; }
.du-title { margin: 0 0 12px; font-size: 1.5rem; font-weight: 800; color: var(--sheet-ink); }
.du-me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; border: 0; border-radius: 14px; background: var(--sheet-clue); color: var(--sheet-ink); font: inherit; text-align: left; cursor: pointer; }
.du-me b { font-size: 1rem; font-weight: 800; }
.du-me i { margin-left: auto; color: var(--paper-muted); font-size: 1.1rem; }
.du-me:focus-visible, .du-row:focus-visible { outline: 3px solid var(--paper-green); outline-offset: 2px; }
.du-list { list-style: none; margin: 8px 0 0; padding: 0; }
.du-list li + li { border-top: 2px dashed var(--sheet-edge); }
.du-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 2px; border: 0; background: none; color: var(--sheet-ink); font: inherit; text-align: left; cursor: pointer; }
.du-who { display: flex; flex-direction: column; min-width: 0; }
.du-name { font-size: 1.05rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-age { font-size: .75rem; font-weight: 600; color: var(--paper-muted); }
.du-trail { display: flex; align-items: center; gap: 10px; }
.du-wait { color: var(--paper-muted); font-size: 1.25rem; }
.du-score { min-width: 3.4ch; text-align: right; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sheet-ink); }
.du-score[data-lead="up"] { color: var(--paper-green); } .du-score[data-lead="down"] { color: #b3261e; }
.mini-up { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(100%, 480px); max-width: none; padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 22px 22px 0 0; background: #fbf9f2; color: #1c2620; }
.mini-up::backdrop { background: rgba(0, 0, 0, .5); }
.mini-up form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.mini-up label { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5f6358; }
.mini-up input { min-height: 52px; padding: 0 14px; border: 0; border-bottom: 4px solid var(--accent); border-radius: 14px; background: #ebe7da; color: #1c2620; font: inherit; font-size: 1.25rem; font-weight: 800; }
.mini-up input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.du-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 4px 2px 8px; }
.mini-up#rival-dialog[open], .mini-up#leave-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
/* nabídka přidání na plochu: ikona hry nalepená páskou na hraně listu, tlačítko (Android) nebo návod ke Sdílet (iPhone) */
.mini-up#install-dialog[open] { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 26px; overflow: visible; text-align: center; }
#install-dialog .mini-btn { align-self: stretch; }
.in-art { position: relative; width: 64px; margin: -62px 0 2px; }
.in-art::before { content: ""; position: absolute; left: 50%; top: -7px; z-index: 1; width: 46px; height: 16px; margin-left: -23px; border-radius: 2px; background: rgba(233, 185, 73, .82); transform: rotate(4deg); }
.in-art img { display: block; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #f3f1ea; box-shadow: 0 6px 12px rgba(0, 0, 0, .28); transform: rotate(-3deg); }
#install-dialog .lv-title { margin: 0; }
.in-ios { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 800; }
.in-share { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #ebe7da; font-size: 1.3rem; }
.in-arrow { font-size: 1.6rem; color: var(--paper-muted, #5f6358); animation: in-bob 1.2s ease-in-out infinite; }
#install-dialog[data-pad="1"] .in-arrow, #install-dialog[data-os="android"] .in-ios, #install-dialog[data-os="android"] .in-arrow, #install-dialog[data-os="ios"] #install-add { display: none; }
@keyframes in-bob { 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .in-arrow { animation: none; } }
.lv-title { margin: 0; font-size: 1.3rem; font-weight: 800; }
.mini-up .mini-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
