/* The tournament's screens (src/tournament/ui.js; reviews/tournament_2026-11-29): the Match setup's look (dark see-through
   panels, the lime accent, the narrow bold headings), one overlay over the title's flight. Sizes in --u as style.css */
body.touron #title .panel, body.touron #title .langs { visibility: hidden; }
body.touron #title .shade { background: rgba(5,5,5,.5); }
.tour { position: fixed; inset: 0; z-index: 11; display: grid; place-items: stretch; color: var(--fg);
  background: radial-gradient(ellipse at 50% 40%, rgba(5,6,4,.62), rgba(5,6,4,.86)); }
.tour[hidden] { display: none; }
.tour .tpanel { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: calc(16 * var(--u)); width: min(calc(1180 * var(--u)), calc(100vw - 2 * max(calc(32 * var(--u)), 6vw)));
  margin: 0 auto; padding: max(calc(24 * var(--u)), 5vh, var(--safe-y)) 0 max(calc(58 * var(--uh)), calc(var(--safe-y) + 40px)); min-height: 0; max-height: 100vh; max-height: 100dvh; }
.tour[data-view="card"] .tpanel, .tour[data-view="ask"] .tpanel, .tour[data-view="out"] .tpanel, .tour[data-view="busy"] .tpanel { grid-template-rows: minmax(0, 1fr); place-items: center; }
.tour[data-view="champ"] .tpanel { grid-template-rows: minmax(0, 1fr); align-items: center; }
.tour button { font: inherit; color: inherit; cursor: pointer; border: 0; }
.tour .thead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: calc(10 * var(--u)) calc(24 * var(--u)); }
.tour .tcrumb { margin: 0 0 calc(8 * var(--u)); font: 600 calc(12 * var(--u))/1 system-ui; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tour .tcrumb b { margin-right: calc(8 * var(--u)); font: calc(20 * var(--u))/1 "Barlow XB", "Arial Narrow", sans-serif; letter-spacing: .06em; color: var(--lime); }
.tour .th { margin: 0; font: calc(48 * var(--u))/1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.tour .th.big { font-size: calc(64 * var(--u)); }
.tour .th.huge { display: flex; align-items: center; gap: calc(18 * var(--u)); font-size: calc(76 * var(--u)); }
.tour .tsub { margin: calc(6 * var(--u)) 0 0; font: calc(15 * var(--u))/1.35 system-ui; color: #c4c4bb; }
.tour .tkick { margin: 0 0 calc(6 * var(--u)); font: 700 calc(13 * var(--u))/1.2 system-ui; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.tour .tlab { margin: 0; font: 600 calc(12 * var(--u))/1.2 system-ui; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tour .tlab span { color: var(--lime); margin-left: calc(6 * var(--u)); }
.tour .tnote { display: block; margin: 0; font: calc(12 * var(--u))/1.35 system-ui; color: #a9a99f; text-transform: none; letter-spacing: 0; }
.tour .tbadge { margin: 0; padding: calc(8 * var(--u)) calc(16 * var(--u)); border-radius: 999px; background: rgba(237,253,29,.14); color: var(--lime); font: calc(18 * var(--u))/1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.tour .tbody { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }

/* the crests (the real logos on the team colour) */
.tour .tcrest { flex: none; display: inline-grid; place-items: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 calc(2 * var(--u)) rgba(255,255,255,.12); vertical-align: middle; }
.tour .tcrest img { width: 76%; height: 76%; object-fit: contain; }
.tour .tcrest.xs { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.tour .tcrest.sm { width: calc(28 * var(--u)); height: calc(28 * var(--u)); margin-right: calc(10 * var(--u)); }
.tour .tcrest.lg { width: calc(96 * var(--u)); height: calc(96 * var(--u)); box-shadow: 0 0 0 calc(3 * var(--u)) rgba(255,255,255,.16); }
.tour .tcrest.q { background: rgba(255,255,255,.08); }

/* the rows (a value with ◀ ▶, as the Match setup's) */
.tour .tsetup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(10 * var(--u)) calc(24 * var(--u)); align-content: start; padding: calc(3 * var(--u)); }
.tour .tcol { display: grid; gap: calc(10 * var(--u)); align-content: start; }
.tour .trow { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: calc(4 * var(--u)) calc(14 * var(--u)); min-height: calc(52 * var(--u)); padding: calc(8 * var(--u)) calc(16 * var(--u)); border-radius: calc(8 * var(--u)); background: rgba(255,255,255,.07); text-align: left; }
.tour .trow .tlab { font-size: calc(13 * var(--u)); }
.tour .trow .tnote { grid-column: 1 / -1; }
.tour .tval { display: flex; align-items: center; justify-content: flex-end; gap: calc(10 * var(--u)); min-width: 0; }
.tour .tval b { display: inline-flex; align-items: center; font: calc(20 * var(--u))/1.1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .03em; color: var(--lime); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour .tval b small { margin-left: calc(8 * var(--u)); font: 600 calc(12 * var(--u))/1 system-ui; letter-spacing: .1em; color: var(--muted); }
.tour .tarr { display: inline-grid; place-items: center; width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; color: rgba(255,255,255,.55); font-style: normal; }
.tour .tarr svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.tour .tarr.go { font: 800 calc(22 * var(--u))/1 system-ui; }
.tour .trow:hover, .tour .tslot:hover { background: rgba(255,255,255,.13); }
/* (the menus' focus grows a button: in a scrolling column it stuck out and made a sideways scrollbar, the lead's check 2026-11-30) */
.tour .tbody .navfocus, .tour .tbody button:focus-visible { transform: none !important; scale: none !important; outline-offset: calc(-2 * var(--u)) !important; }
.tour button:focus-visible, .tour .navfocus { outline: none; box-shadow: 0 0 0 calc(3 * var(--u)) var(--lime) !important; }
.tour .trow:focus-visible .tarr, .tour .trow.navfocus .tarr, .tour .tslot:focus-visible .tarr, .tour .tslot.navfocus .tarr { color: var(--lime); }

/* the team grid */
.tour .tgridhead { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: calc(6 * var(--u)); }
.tour .tsmall { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(6 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: rgba(255,255,255,.08); font: 700 calc(12 * var(--u))/1 system-ui !important; letter-spacing: .12em; text-transform: uppercase; }
.tour kbd.tk { padding: calc(2 * var(--u)) calc(6 * var(--u)); border: 1px solid rgba(255,255,255,.5); border-radius: calc(4 * var(--u)); font: 700 calc(11 * var(--u))/1 system-ui; }
body[data-input="touch"] .tour kbd.tk { display: none; }
.tour .tgrid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(10 * var(--u)); }
.tour .tgrid.n3, .tour .tgrid.n5, .tour .tgrid.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tour .tslot { position: relative; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: calc(8 * var(--u)); min-height: calc(56 * var(--u)); padding: calc(6 * var(--u)) calc(8 * var(--u)); border-radius: calc(8 * var(--u)); background: rgba(255,255,255,.07); text-align: left; }
.tour .tslot b { font: calc(18 * var(--u))/1.1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour .tslot small { text-transform: uppercase; position: absolute; right: calc(36 * var(--u)); top: calc(5 * var(--u)); font: 700 calc(10 * var(--u))/1 system-ui; letter-spacing: .14em; color: var(--muted); }
/* (who plays each team, the user 2026-11-30: every tile has its arrows (the team) and its tag (who plays it: a click / A);
   a human team lit, '2 hráči' with the tag filled) */
.tour .tslot.you { box-shadow: inset 0 0 0 calc(2 * var(--u)) var(--lime); background: rgba(237,253,29,.08); }
.tour .tslot.you small { color: var(--lime); }
/* (review 2026-11-30: every tile's who-plays tag a chip, not a 10 px grey word in its corner: it is the tile's other
   control (a click / A), a newcomer hardly saw it) */
.tour .tslot small { padding: calc(2 * var(--u)) calc(5 * var(--u)); top: calc(3 * var(--u)); border-radius: calc(4 * var(--u)); background: rgba(255,255,255,.12); font-size: calc(11 * var(--u)); color: var(--fg); }
.tour .tslot.you small { background: rgba(237,253,29,.18); color: var(--lime); }
.tour .tslot.two small { background: var(--lime); color: #050505; }
.tour .tslot.two small { padding: calc(2 * var(--u)) calc(5 * var(--u)); top: calc(3 * var(--u)); border-radius: calc(4 * var(--u)); background: var(--lime); color: #050505; }

/* the foot: Zpět, a line, the main button */
.tour .tfoot { display: flex; align-items: center; gap: calc(16 * var(--u)); }
.tour .tinfo { flex: 1; margin: 0; font: 600 calc(14 * var(--u))/1.3 system-ui; color: #d8d8cf; text-align: right; }
.tour .tinfo small { display: block; font-size: calc(11 * var(--u)); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tour .tbtn { padding: calc(12 * var(--u)) calc(24 * var(--u)); border-radius: 999px; background: rgba(255,255,255,.1); font: calc(20 * var(--u))/1.1 "Barlow XB", "Arial Narrow", sans-serif !important; text-transform: uppercase; letter-spacing: .04em; }
.tour .tbtn.primary { background: var(--lime); color: #050505; min-height: calc(56 * var(--u)); padding: calc(14 * var(--u)) calc(30 * var(--u)); font-size: calc(24 * var(--u)) !important; }
.tour .tbtn.ghost { background: transparent; box-shadow: inset 0 0 0 calc(1.5 * var(--u)) rgba(255,255,255,.3); color: var(--muted); font-size: calc(16 * var(--u)) !important; }
.tour .tbtn:hover { background: rgba(255,255,255,.2); }
.tour .tbtn.primary:hover { background: #f6ff6a; }
.tour .tbtns { display: flex; flex-wrap: wrap; align-items: center; gap: calc(12 * var(--u)); margin-top: calc(14 * var(--u)); }

/* the table (2a) */
.tour .thub { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: calc(26 * var(--u)); align-content: start; }
.tour .ttable { width: 100%; border-collapse: separate; border-spacing: 0 calc(4 * var(--u)); font: 600 calc(15 * var(--u))/1.2 system-ui; }
.tour .ttable th { padding: 0 calc(8 * var(--u)) calc(4 * var(--u)); font: 600 calc(11 * var(--u))/1 system-ui; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.tour .ttable td { padding: calc(9 * var(--u)) calc(8 * var(--u)); background: rgba(255,255,255,.06); text-align: center; }
.tour .ttable td:first-child { border-radius: calc(8 * var(--u)) 0 0 calc(8 * var(--u)); }
.tour .ttable td:last-child { border-radius: 0 calc(8 * var(--u)) calc(8 * var(--u)) 0; }
.tour .ttable .tt { text-align: left; }
/* (review 2026-11-30: a table cell, not a flex box: as flex it left the row, the team name sat above the numbers with a
   stripe of the row under it) */
.tour .ttable td.tt { white-space: nowrap; }
.tour .ttable td.tt .tcrest { margin-right: calc(10 * var(--u)); }
.tour .ttable td.tt b { vertical-align: middle; }
.tour .ttable td.tt b { font: calc(18 * var(--u))/1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.tour .ttable .tn { color: var(--muted); width: calc(30 * var(--u)); }
.tour .ttable .tpts { font: calc(20 * var(--u))/1 "Barlow XB", "Arial Narrow", sans-serif; color: var(--fg); }
.tour .ttable tr.you td { background: rgba(237,253,29,.12); }
.tour .ttable tr.you td.tt b, .tour .ttable tr.you .tpts { color: var(--lime); }
.tour .tform { white-space: nowrap; text-align: left !important; }
/* (inline-flex: a shoot-out's 'p' beside its letter; as a grid it went under it and made the chip twice as tall) */
.tour .tf { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; min-width: calc(22 * var(--u)); height: calc(22 * var(--u)); margin-right: calc(4 * var(--u)); padding: 0 calc(3 * var(--u)); border-radius: calc(4 * var(--u)); font: 800 calc(11 * var(--u))/1 system-ui; font-style: normal; }
.tour .tf.w, .tour .tf.sw { background: #3fae5a; color: #041; color: #021a08; }
.tour .tf.l, .tour .tf.sl { background: #c2413a; color: #fff; }
.tour .tf.d { background: rgba(255,255,255,.25); }
.tour .tf.sw, .tour .tf.sl { opacity: .8; }
.tour .tf sup { font-size: .75em; margin-left: 1px; }
.tour .tright { display: grid; gap: calc(10 * var(--u)); align-content: start; }
.tour .tfix { list-style: none; margin: 0 0 calc(12 * var(--u)); padding: 0; display: grid; gap: calc(6 * var(--u)); }
.tour .tfix li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: calc(8 * var(--u)); padding: calc(9 * var(--u)) calc(12 * var(--u)); border-radius: calc(8 * var(--u)); background: rgba(255,255,255,.06); font: calc(16 * var(--u))/1.1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; }
.tour .tfix li span { display: flex; align-items: center; gap: calc(8 * var(--u)); min-width: 0; white-space: nowrap; overflow: hidden; }
.tour .tfix li span:last-child { justify-content: flex-end; }
.tour .tfix li.you { box-shadow: inset 0 0 0 calc(2 * var(--u)) var(--lime); }
.tour .tfix .tsc { display: grid; justify-items: center; min-width: calc(44 * var(--u)); color: var(--lime); }
.tour .tfix .tsc small { font: 600 calc(10 * var(--u))/1 system-ui; color: var(--muted); text-transform: none; }
.tour .tfix li.trest { display: block; font: 600 calc(13 * var(--u))/1.2 system-ui; text-transform: none; color: var(--muted); background: transparent; }

/* the bracket (2b) */
.tour .tbracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(22 * var(--u)); height: 100%; min-height: calc(320 * var(--u)); }
.tour .tbcol { display: grid; grid-template-rows: auto 1fr; gap: calc(8 * var(--u)); min-width: 0; }
.tour .tbms { display: flex; flex-direction: column; justify-content: space-around; gap: calc(10 * var(--u)); }
.tour .tbm { position: relative; display: grid; gap: calc(2 * var(--u)); padding: calc(6 * var(--u)); border-radius: calc(8 * var(--u)); background: rgba(255,255,255,.06); }
.tour .tbm.yours { box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(237,253,29,.45); }
.tour .tbm.next { box-shadow: inset 0 0 0 calc(2.5 * var(--u)) var(--lime); background: rgba(237,253,29,.1); }
.tour .tbm .ttag { position: absolute; top: calc(-10 * var(--u)); right: calc(8 * var(--u)); padding: calc(3 * var(--u)) calc(8 * var(--u)); border-radius: 999px; background: var(--lime); color: #050505; font: 800 calc(10 * var(--u))/1 system-ui; letter-spacing: .1em; text-transform: uppercase; }
.tour .tbl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(8 * var(--u)); padding: calc(4 * var(--u)) calc(6 * var(--u)); border-radius: calc(5 * var(--u)); font: calc(16 * var(--u))/1.1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; }
.tour .tbl b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour .tbl .tsc { font-size: calc(18 * var(--u)); }
.tour .tbl.lose { opacity: .45; }
.tour .tbl.you { color: var(--lime); }
.tour .tbl.tbd { color: rgba(255,255,255,.35); }
.tour .tso { margin-left: calc(3 * var(--u)); padding: 0 calc(3 * var(--u)); border-radius: calc(3 * var(--u)); background: rgba(255,255,255,.14); font: 700 calc(10 * var(--u))/1.4 system-ui; vertical-align: middle; }
.tour .tso.won { background: rgba(237,253,29,.3); }
.tour .tbm.champ { background: rgba(237,253,29,.1); }
.tour .tbcol.win .tbl { font-size: calc(20 * var(--u)); }

/* the next-match card (3), 'Vypadli jste', the ask */
.tour .tcard { width: min(calc(760 * var(--u)), 100%); max-height: 100%; padding: calc(22 * var(--u)) calc(30 * var(--u)); scrollbar-width: none; border-radius: calc(14 * var(--u)); background: rgba(10,11,9,.82); box-shadow: 0 calc(10 * var(--u)) calc(40 * var(--u)) rgba(0,0,0,.45); backdrop-filter: blur(calc(8 * var(--u))); }
.tour .tcard.small { width: min(calc(620 * var(--u)), 100%); }
.tour .tcard .thead { margin-bottom: calc(10 * var(--u)); }
.tour .tvs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: calc(16 * var(--u)); margin: calc(10 * var(--u)) 0 calc(12 * var(--u)); }
.tour .tvs .tcrest.lg { width: calc(76 * var(--u)); height: calc(76 * var(--u)); }
.tour .tside { display: grid; justify-items: center; gap: calc(6 * var(--u)); text-align: center; }
.tour .tside .tname { font: calc(30 * var(--u))/1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; }
.tour .tside.you .tname { color: var(--lime); }
.tour .tside.you .tcrest { box-shadow: 0 0 0 calc(3 * var(--u)) var(--lime); }
.tour .ttag2 { text-transform: uppercase; padding: calc(3 * var(--u)) calc(9 * var(--u)); border-radius: 999px; background: rgba(255,255,255,.12); font: 800 calc(11 * var(--u))/1 system-ui; letter-spacing: .14em; }
.tour .tside.you .ttag2 { background: var(--lime); color: #050505; }
.tour .tpath { font: 600 calc(12 * var(--u))/1.45 system-ui; color: var(--muted); }
.tour .tvsm { align-self: center; margin-top: calc(-40 * var(--u)); font: calc(40 * var(--u))/1 "Barlow XB", "Arial Narrow", sans-serif; color: rgba(255,255,255,.3); }
.tour .trestline { margin: calc(18 * var(--u)) 0; font: calc(24 * var(--u))/1.2 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; color: var(--muted); }
.tour .tinfo4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(8 * var(--u)); margin: 0; }
.tour .tinfo4.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: calc(14 * var(--u)); }
.tour .tinfo4 div { padding: calc(8 * var(--u)) calc(12 * var(--u)); border-radius: calc(8 * var(--u)); background: rgba(255,255,255,.06); }
.tour .tinfo4 dt { font: 600 calc(10 * var(--u))/1 system-ui; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tour .tinfo4 dd { margin: calc(5 * var(--u)) 0 0; font: calc(18 * var(--u))/1.1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; }
.tour .trule { margin: calc(10 * var(--u)) 0 calc(12 * var(--u)); font: calc(13 * var(--u))/1.35 system-ui; color: #c4c4bb; }
.tour .towatch { list-style: none; margin: calc(8 * var(--u)) 0 calc(6 * var(--u)); padding: 0; display: grid; gap: calc(6 * var(--u)); }
.tour .towatch li { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--u)); padding: calc(6 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)) calc(12 * var(--u)); border-radius: calc(8 * var(--u)); background: rgba(255,255,255,.06); }
.tour .towatch .tm { display: flex; align-items: center; gap: calc(8 * var(--u)); min-width: 0; font: calc(16 * var(--u))/1.1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.tour .tchips { display: flex; gap: calc(4 * var(--u)); flex: none; }
.tour .tchips button { padding: calc(7 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: rgba(255,255,255,.1); font: calc(14 * var(--u))/1 "Barlow XB", "Arial Narrow", sans-serif !important; text-transform: uppercase; letter-spacing: .04em; }
.tour .tchips button[aria-checked="true"] { background: var(--lime); color: #050505; }
.tour .tout { display: flex; align-items: center; gap: calc(22 * var(--u)); margin: calc(16 * var(--u)) 0; }
.tour .troad { list-style: none; margin: calc(8 * var(--u)) 0 0; padding: 0; display: grid; gap: calc(6 * var(--u)); flex: 1; }
.tour .troad li { display: grid; grid-template-columns: minmax(calc(90 * var(--u)), auto) 1fr auto; align-items: center; gap: calc(12 * var(--u)); padding: calc(9 * var(--u)) calc(14 * var(--u)); border-radius: calc(8 * var(--u)); background: rgba(255,255,255,.06); }
.tour .troad li span { font: 600 calc(11 * var(--u))/1.2 system-ui; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tour .troad li b { font: calc(18 * var(--u))/1.1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; }
.tour .troad li em { display: grid; justify-items: end; font: calc(20 * var(--u))/1 "Barlow XB", "Arial Narrow", sans-serif; font-style: normal; }
.tour .troad li em small { font: 600 calc(10 * var(--u))/1.2 system-ui; color: var(--muted); }
.tour .troad li.w em { color: var(--lime); }
.tour .troad li.l em { color: #ff7a6e; }
.tour .tbusy .tbar { height: calc(8 * var(--u)); margin-top: calc(14 * var(--u)); border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.tour .tbusy .tbar i { display: block; height: 100%; background: var(--lime); transition: width .2s; }
.tour .tbusy .tinfo { text-align: left; margin-top: calc(8 * var(--u)); }

/* the champion (4): the cup, the team, the road */
.tour .tchamp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(40 * var(--u)); align-items: center; overflow: visible; }
.tour .tcupcol { display: grid; justify-items: start; gap: calc(10 * var(--u)); }
.tour .tcup { width: calc(150 * var(--u)); height: auto; filter: drop-shadow(0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(237,253,29,.3)); }
.tour .tplace { margin: 0; font: calc(26 * var(--u))/1.1 "Barlow XB", "Arial Narrow", sans-serif; text-transform: uppercase; color: var(--lime); }
.tour .troadcol { padding: calc(22 * var(--u)) calc(26 * var(--u)); border-radius: calc(14 * var(--u)); background: rgba(10,11,9,.78); }
.tour .tconf { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tour .tconf i { position: absolute; top: -4%; width: calc(9 * var(--u)); height: calc(15 * var(--u)); border-radius: calc(2 * var(--u)); opacity: .9; animation: tconf 3.4s linear infinite; }
@keyframes tconf { 0% { transform: translate3d(0, 0, 0) rotate(0); } 100% { transform: translate3d(calc(40 * var(--u)), 108vh, 0) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .tour .tconf { display: none; } }

/* 'Hrát': the two entries (index.html); 'Pokračovat v turnaji' first, a cell of the 2-column grid (six buttons stay
   three rows: a row across the grid pushed Zpět off a 720 px screen in English), outlined in lime */
#tourGoBtn { box-shadow: inset 0 0 0 calc(2 * var(--u)) var(--lime); }
#tourGoBtn span { color: var(--lime); opacity: 1; }
#tourGoBtn[hidden] { display: none; }
@media (min-width: 721px) and (min-height: 521px) { #menuPlay button:not(.back) { min-height: calc(84 * var(--u)); } }   /* (three rows now: 96 -> 84) */

/* a phone: one column; the bracket scrolls sideways */
@media (max-width: 720px), (max-height: 520px) {
  .tour .tpanel { width: calc(100vw - 32px); padding-top: max(12px, env(safe-area-inset-top)); gap: 10px; }
  .tour .th { font-size: 30px; } .tour .th.big { font-size: 40px; } .tour .th.huge { font-size: 44px; }
  .tour .tsetup, .tour .thub, .tour .tchamp { grid-template-columns: 1fr; }
  .tour .tchamp { overflow-y: auto; max-height: 100%; }   /* (review 2026-11-30: a short screen reaches its buttons) */
  .tour .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tour .tbracket { grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; }
  .tour .tinfo4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour .tform { display: none; }
  .tour .tfoot { flex-wrap: wrap; }
  .tour .tfoot .tinfo { order: -1; flex-basis: 100%; text-align: left; }
  .tour .tcard { padding: 16px; }
}
/* a phone on its side (qa_2026-11-30, 844x390): the foot's line beside the buttons again (stacked, it left the setup's
   list 111 px of 682), the next-match card's facts on one row, and its buttons kept in view (Hrát was 250 px below the
   screen's edge, in a card that scrolls without a scrollbar) */
@media (max-height: 520px) and (min-width: 600px) {
  .tour .tfoot { flex-wrap: nowrap; }
  .tour .tfoot .tinfo { order: 0; flex-basis: auto; text-align: right; }
  .tour .tinfo4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tour .tvs .tcrest.lg { width: 52px; height: 52px; }
  .tour .tcard .tbtns { position: sticky; bottom: -16px; z-index: 1; margin-bottom: -16px; padding: 10px 0 16px; background: rgb(10,11,9); }
  /* (review 2026-11-30, 844x390: the setup in its two columns again (stacked, 2.5 rows of 12 showed); the champion's cup
     beside its road, smaller, and the screen scrolls: its buttons were under the screen's edge with no way to them) */
  .tour .tsetup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
  .tour .tcol { gap: 8px; } .tour .tsetup .trow { min-height: 44px; padding: 6px 12px; }
  .tour .tchamp { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; overflow-y: auto; }
  .tour .tcup { width: 64px; } .tour .troadcol { padding: 12px 16px; }
}
.tour .tcard .tinfo { text-align: left; margin-top: calc(6 * var(--u)); }

/* the grid's hint (← → tým · klik / A: kdo hraje) and the next-match card's who-plays lines (2026-11-30) */
.tour .tgridhead .thint { margin-left: calc(10 * var(--u)); font: 600 calc(12 * var(--u))/1.2 system-ui; letter-spacing: 0; text-transform: none; color: var(--muted); }
.tour .twho { margin: calc(4 * var(--u)) 0 0; text-align: center; font: 600 calc(14 * var(--u))/1.35 system-ui; color: var(--fg); }
/* the hub after each match: its result over the 'saved' line (ui.js lastLine) */
.tour .tinfo .tlast { display: block; color: var(--lime); font-weight: 700; }

/* ---- the UI review 2026-11-30 (reviews/ui_review_2026-11-30: 'bad alignment, centring, button sizes') */
/* the foot: its line beside Zpět / Menu (it sat jammed against the main button, 3 px from its frame); the buttons don't
   grow on focus there (1.03x ran past the panel's edge); room for the focus frame at both ends */
.tour .tfoot { padding-inline: calc(8 * var(--u)); }
.tour .tfoot .tinfo { text-align: left; }
.tour .tfoot .tbtn, .tour .tbtns .tbtn, .tour .tnav .tbtn { scale: none !important; }
/* the hub's button: 'Další zápas' over the two teams, smaller */
.tour .tbtn.primary.two { display: inline-grid; justify-items: center; gap: calc(3 * var(--u)); padding-block: calc(9 * var(--u)); }
.tour .tbtn .tbsub { font: 700 calc(13 * var(--u))/1.1 system-ui; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
/* one height for every button of a row (they were 56 / 46 / 42 px side by side) */
.tour .tbtns .tbtn { display: inline-flex; align-items: center; justify-content: center; min-height: calc(52 * var(--u)); padding-block: 0; }
.tour .tbtns .tbtn.primary { min-height: calc(52 * var(--u)); padding-block: 0; }
/* a card's way out (the table / the bracket, Menu): small at its top right */
.tour .tcard { position: relative; }
.tour .tnav { position: absolute; top: calc(16 * var(--u)); right: calc(18 * var(--u)); display: flex; gap: calc(8 * var(--u)); }
.tour .tnav .tbtn { padding: calc(7 * var(--u)) calc(14 * var(--u)); font-size: calc(14 * var(--u)) !important; }
.tour .tcard > .tkick, .tour .tcard > .th { padding-right: calc(220 * var(--u)); }
/* the AI card's lines: a gap before the facts (0 px) */
.tour .twho + .tinfo4, .tour .twho + dl { margin-top: calc(12 * var(--u)); }
/* the bracket: the 'Další zápas' tag clear of the round's heading; a short window: no forced height (it scrolled, the
   4th quarter-final cut), tighter boxes */
.tour .tbcol > .tlab { margin-bottom: calc(8 * var(--u)); }
@media (max-height: 640px) {
  .tour .tbracket { min-height: 0; }
  .tour .tbm { padding: calc(4 * var(--u)); } .tour .tbl { padding-block: calc(2 * var(--u)); }
  .tour .tbms { gap: calc(6 * var(--u)); }
}
/* the champion: a long name fits its column (LEJEMFEST! ran 6 px into the road at 1000x566) */
.tour .tcupcol { min-width: 0; }
.tour .th.huge { font-size: min(calc(76 * var(--u)), 6.4vw); overflow-wrap: anywhere; min-width: 0; }
/* 'Vypadli jste' narrow: the crest over the road (the road ran 32 px past the card at 398) */
.tour .troad { min-width: 0; }
@media (max-width: 720px) { .tour .tout { flex-direction: column; align-items: stretch; } .tour .tout > .tcrest { align-self: center; } .tour .tcard > .tkick, .tour .tcard > .th { padding-right: 0; } .tour .tnav { position: static; justify-content: flex-end; margin-bottom: 8px; } }
/* the setup: 'Jiné týmy AI' on one line; the two columns' rows level with each other (the format row's note made the
   left one 62 px, the right ones 52: rows at 157 / 229 against 157 / 219 / 281) */
.tour .tsmall { white-space: nowrap; }
@media (min-width: 721px) and (min-height: 521px) {   /* (not a phone on its side: there the format's note ran into the next row) */
  .tour .tsetup { grid-auto-flow: row dense; }
  .tour .tsetup > .tcol { display: contents; }
  .tour .tsetup > .tcol:first-child > .trow { grid-column: 1; }
  .tour .tsetup > .tcol:nth-child(2) > .trow { grid-column: 2; }
}
/* (the second look, 2026-11-30) the champion's way out at its road's corner, as the cards'; a narrow card: its way out
   on the left (the gear sits at the screen's top right) and its buttons kept in view at its foot; a short screen: the
   card's rule line goes (the buttons covered the facts at 844x390), the hub's subtitle too (the bracket scrolled at
   1000x566) */
.tour .troadcol { position: relative; }
.tour .troadcol > .tlab { padding-right: calc(200 * var(--u)); min-height: calc(30 * var(--u)); }
@media (max-width: 720px) {
  .tour .tnav { justify-content: flex-start; }
  .tour .troadcol > .tlab { padding-right: 0; }
  .tour .tcard .tbtns { position: sticky; bottom: -16px; z-index: 1; margin-bottom: -16px; padding: 10px 0 16px; background: rgb(10,11,9); }
}
@media (max-height: 520px) { .tour .tcard .trule, .tour .tcard .twho ~ .tinfo4 { display: none; } .tour .tside .tname { font-size: 22px; } .tour .tvs { margin-block: 4px; } }
@media (max-height: 640px) { .tour[data-view="hub"] .tsub { display: none; } .tour[data-view="hub"] .th { font-size: calc(36 * var(--u)); } .tour .tbl { font-size: calc(14 * var(--u)); } }
/* (polish 2026-12-03) a phone on its side: the setup's team grid (where you pick who plays each team) was wholly below the
   fold, its list 160 px tall showing 3 rows and no tile (tourphone.mjs: 0 px of the first tile). The setup's subtitle and
   the rows' notes go there (the format reads from its value; the notes stay on larger screens), so the grid's head and
   its first tiles show */
@media (max-height: 520px) and (orientation: landscape) {
  .tour[data-view="setup"] .tsub, .tour .tsetup .tnote { display: none; }
  /* (the rows three a line, in their order: two lines instead of three, the grid's first tiles in view) */
  .tour .tsetup { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tour .tsetup > .tcol { display: contents; }
  /* (a third of the width each: the label over its value, the value the row's whole width: '8 TÝMŮ', 'KRAVÍ HORA' were cut) */
  .tour .tsetup .trow { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 5px 10px; }
  .tour .tsetup .trow .tlab { font-size: 10px; letter-spacing: .12em; }
  .tour .tsetup .tval { justify-content: space-between; gap: 4px; }
  .tour .tsetup .tarr { width: 22px; height: 22px; }
}
/* the shuffle's key on a pad: X (padnav's extra), not the keyboard's H */
body[data-input="pad"] .tour kbd.tk { font-size: 0; padding: 0; border: 0; }
body[data-input="pad"] .tour kbd.tk::before { content: 'X'; display: inline-grid; place-items: center; width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: 50%;
  background: #5aa8ff; color: #050505; font: 800 calc(11 * var(--u))/1 system-ui; }
/* (the user 2026-12-04, review #14) a match's venue chip: ◀ name ▶ (the card's Hřiště, under a match in the bracket and the
   round's fixtures); a played match names its venue small when the tournament is on more than one */
.tour .tven { display: inline-flex; align-items: center; gap: calc(2 * var(--u)); max-width: 100%; padding: 0; border-radius: calc(6 * var(--u)); background: transparent;
  font: inherit; color: inherit; text-transform: uppercase; white-space: nowrap; }
.tour .tven span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tour .tven .tarr { width: calc(22 * var(--u)); height: calc(22 * var(--u)); flex: none; }
.tour .tven .tarr svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.tour .tven:hover, .tour .tven.navfocus, .tour .tven:focus-visible { background: rgba(255,255,255,.12); }
.tour .tven.navfocus .tarr, .tour .tven:focus-visible .tarr { color: var(--lime); }
.tour .tven.sm { justify-self: center; margin-top: calc(2 * var(--u)); font: 600 calc(11 * var(--u))/1 system-ui; letter-spacing: .08em; color: var(--muted); }
.tour .tfix li .tven.sm, .tour .tfix li .tvn { grid-column: 1 / -1; }
.tour .tvn { display: block; justify-self: center; text-align: center; font: 600 calc(10 * var(--u))/1 system-ui; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tour .tbm .tvn { margin-top: calc(2 * var(--u)); }
/* (a finger: the chip's arrows a larger target on a touch screen; the whole chip steps forward too) */
@media (pointer: coarse) { .tour .tven .tarr { width: max(32px, calc(22 * var(--u))); height: max(32px, calc(22 * var(--u))); } }
