/* Remik przez internet: poczekalnia (index.html) i strona gry (gra.html). Budowa jak w Tysiącu i Szachach, paleta ivoca.org. */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --strona: #f1f5f9; --strona-dol: #f1f5f9;
  --strona-ink: #0f172a; --akcent: #334155; --alert: #b91c1c; --mine: #166534;
  --cream: #fff; --ink: #0f172a; --soft: #475569; --line: #cbd5e1; --accent: #2563eb; --accent-txt: #1d4ed8; --h2: #0f172a;
  --pole: #fff; --seg: #e2e8f0; --seg-on: #fff; --sec: #e2e8f0; --chip: rgba(15,23,42,.08); --chip-ink: #0f172a;
  --ctl-primary: #2563eb; --ctl-primary-ink: #fff; --link: #1d4ed8; --fokus: #1d4ed8; --cien: rgba(15,23,42,.10);
  --stol: #166534; --stol-ink: #fff; --stol-soft: #dcfce7; --stol-chip: rgba(0,0,0,.28);
  --bg: var(--strona); --card: var(--cream); --ink-soft: var(--soft); --brand: var(--accent-txt); --brand-text: var(--link); /* okienka „Aa” i linków zewnętrznych */
  --good: #166534; --warn: #92400e; --bad: #b91c1c;
  --txt: 1; --fadj: 1; --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
html.dark {
  --strona: #0f172a; --strona-dol: #0f172a;
  --strona-ink: #f1f5f9; --akcent: #cbd5e1; --alert: #fca5a5; --mine: #86efac;
  --cream: #1e293b; --ink: #f1f5f9; --soft: #cbd5e1; --line: #475569; --accent: #2563eb; --accent-txt: #93c5fd; --h2: #f1f5f9;
  --pole: #0f172a; --seg: #0f172a; --seg-on: #334155; --sec: #334155; --chip: rgba(255,255,255,.10); --chip-ink: #f1f5f9;
  --ctl-primary: #2563eb; --ctl-primary-ink: #fff; --link: #93c5fd; --fokus: #fbbf24; --cien: rgba(0,0,0,.35);
  --stol: #14532d; --stol-ink: #fff; --stol-soft: #dcfce7; --stol-chip: rgba(0,0,0,.35);
  --good: #86efac; --warn: #fcd34d; --bad: #fca5a5;
  color-scheme: dark;
}
/* Czcionka i rozmiar tekstu (okienko „Aa”, js/wyglad.js); Atkinson +6%, bo ma niższe małe litery */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 200 800; font-display: swap; src: url('/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 200 800; font-display: swap; src: url('/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
html[data-font="wyrazna"] { --font: 'Atkinson Hyperlegible Next', system-ui, sans-serif; --fadj: 1.06; }
html[data-size="wiekszy"] { --txt: 1.125; }
html[data-size="najwiekszy"] { --txt: 1.25; }
html { font-size: calc(100% * var(--txt) * var(--fadj)); background: var(--strona-dol); }
.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; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.bar-btns { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: auto; }
.wyglad { position: relative; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 12px; background: transparent; color: var(--akcent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--chip); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.icon-btn .sun { display: none; color: #fbbf24; }
html.dark .icon-btn .sun { display: block; }
html.dark .icon-btn .moon { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
  font-family: var(--font);
  background: var(--strona);
  color: var(--strona-ink); min-height: 100vh; line-height: 1.5;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
[hidden] { display: none !important; }
a { color: inherit; }
.muted { color: var(--soft); }
.small { font-size: 0.8125rem; }
.error { color: var(--alert); font-weight: 600; }
.error:empty { display: none; }
.logo { width: 26px; height: 26px; display: inline-block; margin-right: 8px; vertical-align: -6px; }

/* ---------- Poczekalnia ---------- */
.home-wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.home-head { display: flex; align-items: center; gap: 10px; }
.brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; white-space: nowrap; color: var(--strona-ink); }
.brand .sub { font-weight: 500; color: var(--akcent); font-size: 1rem; }
.install-tip { padding: 8px 12px; border-radius: 10px; background: var(--chip); font-size: 0.875rem; }
.tagline { color: var(--akcent); }
.card { background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 18px; }
.card h2 { font-size: 1.1875rem; margin-bottom: 10px; color: var(--h2); }
/* linki w treści jak na ivoca.org */
.card a, .panel a, .install-tip a { color: var(--link); text-decoration: underline 1px color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; transition: text-decoration-color .15s; }
.card a:hover, .panel a:hover, .card a:focus-visible, .panel a:focus-visible { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
form label { display: grid; gap: 4px; font-weight: 600; margin-bottom: 10px; font-size: 0.9375rem; }
form label .muted { font-weight: 400; }
input[type=text], input:not([type]), input[type=email], textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--pole); border: 1px solid var(--soft); border-radius: 10px; padding: 9px 12px; width: 100%; min-height: 44px;
}
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
label.check input { margin-top: 5px; width: 18px; height: 18px; flex-shrink: 0; }
fieldset.seg-box { border: 0; margin-bottom: 10px; }
fieldset.seg-box legend { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.seg { display: flex; gap: 4px; background: var(--seg); border-radius: 11px; padding: 3px; }
.seg label { flex: 1; display: block; margin: 0; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px; font-size: 0.875rem; border-radius: 8px; font-weight: 600; color: var(--ink); text-align: center; }
.seg input:checked + span { background: var(--seg-on); color: var(--accent-txt); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.seg input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 1px; }
button.primary, .button.primary, button.btn {
  font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; background: var(--accent); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
}
button.primary, .button.primary { min-height: 48px; }
button.btn.sec { background: var(--sec); color: var(--ink); }
button:disabled { opacity: .5; cursor: default; }
.consent { margin: 4px 0 12px; }
form.inline { display: flex; gap: 8px; }
form.inline input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 2px; }
ul.games { list-style: none; display: grid; gap: 6px; }
ul.games li a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--pole); color: var(--ink); }
ul.games li a:hover { border-color: var(--accent); }
ul.games .name { font-weight: 700; }
ul.games .info { color: var(--soft); font-size: 0.8125rem; margin-left: auto; text-align: right; }
.site-footer { text-align: center; color: var(--akcent); font-size: 0.75rem; line-height: 1.7; margin-top: 4px; }
.site-footer a { color: var(--link); font-weight: 500; text-decoration: underline 2px transparent; text-underline-offset: .25em; border-radius: 4px; transition: text-decoration-color .15s; display: inline-block; padding: 4px 2px; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration-color: currentColor; }

/* ---------- Strona gry ---------- */
.topbar { max-width: 1100px; margin: 0 auto 8px; display: flex; align-items: center; gap: 10px; }
.game-title { flex: 1; min-width: 0; font-size: 0.875rem; color: var(--akcent); display: flex; align-items: center; gap: 6px; }
#game-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-title .code, .game-title .badge { flex-shrink: 0; }
.code { font-family: ui-monospace, monospace; background: var(--chip); padding: 1px 6px; border-radius: 6px; letter-spacing: 1px; }
.badge { background: var(--akcent); color: var(--strona-dol); border-radius: 999px; font-size: 0.6875rem; padding: 1px 7px; font-weight: 700; }
.conn { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; flex-shrink: 0; }
.conn.on { background: #16a34a; }

.layout { max-width: 1100px; margin: 0 auto; display: grid; gap: 14px; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.play { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.status { font-size: 1rem; font-weight: 700; color: var(--akcent); text-align: center; min-height: 1.5rem; }
.status.mine { color: var(--mine); }
.status.alert { color: var(--alert); }
.deadline { font-size: 0.8125rem; color: var(--akcent); text-align: center; }
.deadline.urgent { color: var(--alert); font-weight: 700; }
.banner { background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; font-weight: 600; }
.controls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.controls button, .controls a {
  font: inherit; font-size: 0.875rem; font-weight: 600; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer;
  background: var(--chip); color: var(--chip-ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.controls .primary { background: var(--ctl-primary); color: var(--ctl-primary-ink); }

/* Stół */
.stol { width: 100%; max-width: 760px; background: var(--stol); color: var(--stol-ink); border-radius: 16px; padding: 8px 8px 0; display: flex; flex-direction: column; gap: 6px; --kw: 3rem; --kr: 1.4; }
.stol[data-styl="plytki"] { --kr: 1.12; }
.stol-info { display: flex; gap: 4px 12px; flex-wrap: wrap; justify-content: center; font-size: 0.8125rem; color: var(--stol-soft); min-height: 1.25rem; }
.stol-info b { color: #fff; }
.rywale { display: flex; gap: 6px; justify-content: space-around; flex-wrap: wrap; }
.gracz { background: var(--stol-chip); border: 2px solid transparent; border-radius: 12px; padding: 4px 10px; min-width: 0; text-align: center; font-size: 0.875rem; line-height: 1.3; }
.gracz.turn { border-color: #fde047; }
.gracz .imie { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.gracz .imie span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gracz .dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex-shrink: 0; }
.gracz .dot.on { background: #4ade80; }
.gracz .stan { display: block; font-size: 0.75rem; color: var(--stol-soft); }
.gracz .pkt { font-weight: 700; color: #fff; }
.moj { display: flex; justify-content: center; }
.srodek { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.srodek .opis { font-size: 0.875rem; font-weight: 600; }
.talony { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.talon { display: grid; justify-items: center; gap: 3px; font-size: 0.75rem; color: var(--stol-soft); font-weight: 600; }
button.talon { font: inherit; font-size: 0.75rem; font-weight: 600; color: var(--stol-soft); background: transparent; border: 2px solid transparent; border-radius: 12px; padding: 3px 5px; cursor: pointer; }
button.talon.aktywny { border-color: #fde047; color: #fff; }
button.talon:disabled { cursor: default; opacity: 1; }
.stos { display: flex; }
.stos .karta + .karta { margin-left: calc(var(--kw) * -0.93); }
.uklady { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: flex-start; padding: 2px 0 6px; min-height: 2.5rem; }
.uklady:empty::after { content: "Na stole nie ma jeszcze układów."; font-size: 0.8125rem; color: var(--stol-soft); align-self: center; }
button.uklad { font: inherit; color: var(--stol-ink); text-align: left; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.2); border-radius: 12px; padding: 5px 7px 6px; display: grid; gap: 3px; justify-items: start; cursor: pointer; min-width: 44px; min-height: 44px; --kw: 2.3rem; }
button.uklad .karty { display: flex; padding-bottom: .2rem; }
button.uklad .karta + .karta { margin-left: calc(var(--kw) * -0.5); }
button.uklad .podpis { font-size: 0.6875rem; color: var(--stol-soft); line-height: 1.2; }
button.uklad.nowy { border-color: #fde047; }
button.uklad.cel { border-color: #fff; background: rgba(255,255,255,.14); }
button.uklad:focus-visible { outline: 3px solid #fde047; outline-offset: 2px; }

/* Karty i płytki: te same oznaczenia (róg z figurą i kolorem, duży znak koloru), inny „korpus” */
.karta { position: relative; flex: none; width: var(--kw); height: calc(var(--kw) * var(--kr)); background: #fff; color: #111827; border: 1px solid #64748b; border-radius: .5rem; font: inherit; font-size: calc(var(--kw) * .34); font-weight: 700; line-height: 1; padding: 0; display: block; overflow: hidden; }
.karta.red { color: #b91c1c; }
.karta.joker { color: #6d28d9; }
.karta .rog { position: absolute; left: .22em; top: .2em; display: grid; justify-items: center; gap: .08em; font-size: 1em; }
.karta .rog i { font-style: normal; }
.karta .duzy { position: absolute; right: .22em; bottom: .12em; font-size: 1.7em; }
.karta .znak { position: absolute; left: 0; bottom: 0; background: #6d28d9; color: #fff; font-size: .78em; padding: .12em .3em; white-space: nowrap; border-top-right-radius: .35em; }
.karta.tyl { background-color: #134e4a; background-image: linear-gradient(45deg, #0f766e 25%, transparent 25%, transparent 75%, #0f766e 75%), linear-gradient(45deg, #0f766e 25%, transparent 25%, transparent 75%, #0f766e 75%); background-size: .8rem .8rem; background-position: 0 0, .4rem .4rem; border-color: #f1f5f9; }
button.karta { cursor: pointer; transition: transform .12s; }
button.karta:focus-visible { outline: 3px solid #fde047; outline-offset: 1px; z-index: 5; }
button.karta.wybrana { transform: translateY(-.7rem); outline: 3px solid #fde047; outline-offset: 1px; z-index: 4; }
/* Płytki: gruba plastikowa płytka — grafitowa oprawa, jasne lico z połyskiem i widoczna grubość od dołu */
.stol[data-styl="plytki"] .karta { border: 0; border-radius: .5rem; margin: .22rem .22rem .4rem; background: linear-gradient(155deg, #ffffff 0%, #eef2f7 55%, #d9e2ec 100%); box-shadow: 0 0 0 .2rem #334155, 0 .28rem 0 .2rem #1e293b, 0 .5rem .55rem .15rem rgba(0,0,0,.4); }
.stol[data-styl="plytki"] .karta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 38%); pointer-events: none; }
.stol[data-styl="plytki"] .karta.tyl { background: radial-gradient(circle at 50% 50%, #14b8a6 0 18%, transparent 20%), repeating-linear-gradient(45deg, #1e293b 0 .35rem, #0f172a .35rem .7rem); border: 0; }
.stol[data-styl="plytki"] .karta .znak { border-radius: 0 .35em 0 0; }
.stol[data-styl="plytki"] button.uklad .karty { padding-bottom: .5rem; }
.reka-box { position: sticky; bottom: 0; z-index: 6; background: var(--stol); margin: 0 -8px; padding: 4px 8px 8px; border-top: 1px solid rgba(255,255,255,.18); border-radius: 0 0 16px 16px; display: grid; gap: 4px; }
.reka { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; padding-top: .8rem; row-gap: .45rem; min-height: calc(var(--kw) * var(--kr) + .8rem); }
.akcje { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; min-height: 44px; }
.akcje:empty { display: none; }
.akcje button { font: inherit; font-weight: 700; font-size: 0.9375rem; border: 0; border-radius: 10px; padding: 8px 14px; min-height: 44px; min-width: 44px; cursor: pointer; background: #fff; color: #14532d; }
.akcje button.sec { background: var(--stol-chip); color: #fff; border: 1px solid rgba(255,255,255,.6); }
.akcje button:disabled { opacity: .55; cursor: default; }
.akcje .tekst { font-size: 0.8125rem; width: 100%; text-align: center; color: var(--stol-soft); }
.akcje .tekst b { color: #fff; }
.akcje .tekst.ok { color: #bbf7d0; }
table.wynik { border-collapse: collapse; font-size: 0.875rem; margin: 0 auto; }
table.wynik th, table.wynik td { padding: 2px 8px; text-align: right; }
table.wynik th:first-child, table.wynik td:first-child { text-align: left; }
table.wynik thead th { font-weight: 600; color: var(--stol-soft); font-size: 0.75rem; }
table.wynik td.plus { font-weight: 700; }
table.wynik tr.zwyciezca th, table.wynik tr.zwyciezca td { color: #fde047; }
@media (max-width: 480px) { .stol { --kw: 2.8rem; } }
@media (max-width: 350px) { .stol { --kw: 2.5rem; } }
@media (min-width: 900px) { .stol { --kw: 3.4rem; } button.uklad { --kw: 2.6rem; } }

.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel { background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.panel h2 { font-size: 1rem; color: var(--h2); margin-bottom: 8px; }
.share { display: flex; gap: 6px; margin: 6px 0 10px; }
.share input { flex: 1; min-width: 0; font-size: 0.8125rem; }
.share button { font: inherit; font-weight: 700; font-size: 0.875rem; border: 0; border-radius: 10px; padding: 8px 12px; background: var(--accent); color: #fff; cursor: pointer; min-height: 44px; }
.log { list-style: none; max-height: 260px; overflow-y: auto; font-size: 0.875rem; display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.log li { line-height: 1.35; overflow-wrap: anywhere; }
.log .sys { color: var(--soft); font-size: 0.8125rem; }
.log .who { font-weight: 700; }
#chat-form input { text-transform: none; letter-spacing: 0; }
.punkty-wrap { max-height: 260px; overflow: auto; }
table.punkty { border-collapse: collapse; width: 100%; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
table.punkty th, table.punkty td { padding: 3px 6px; text-align: right; border-bottom: 1px solid var(--line); }
table.punkty th:first-child, table.punkty td:first-child { text-align: left; color: var(--soft); }
table.punkty thead th { position: sticky; top: 0; background: var(--cream); max-width: 6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.punkty td.gral { font-weight: 700; }
table.punkty tfoot td { font-weight: 700; border-bottom: 0; }

.fatal-msg { background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; font-weight: 600; max-width: 520px; margin: 30px auto 14px; }
body.fatal .layout { display: block; text-align: center; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: rgba(15,23,42,.96); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 0.875rem; z-index: 3000; max-width: 90vw; text-align: center; pointer-events: none; opacity: 0; transition: opacity .2s; border: 1px solid #475569; }
.toast.show { opacity: 1; }
.toast.error { background: #991b1b; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: var(--cream); color: var(--ink); border-radius: 16px; padding: 20px 22px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.dialog .btns { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }

/* Powrót na stronę główną ivoca.org: kwadratowy znaczek „i”, skrajnie po lewej w pasku u góry */
a.ivoca-dom { display: inline-grid; place-items: center; flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; background: #2563eb; color: #fff; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1; text-decoration: none; }
a.ivoca-dom::before { content: "i"; font-size: 1.25rem; font-weight: 700; }
a.ivoca-dom:hover { background: #1d4ed8; }
a.ivoca-dom:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* Układ paska ze znaczkiem powrotu: nazwa zaraz za znaczkiem, przyciski po prawej; gdy nazwa się nie mieści — znika w całości */
.brand-box { display: contents; }
@media (max-width: 1023px) {
  .brand .logo { display: none; }
  .home-head .brand-box { display: block; container-type: inline-size; flex: 0 1000 11.5rem; min-width: 0; }
  @container (max-width: 11.4rem) { .home-head .brand .sub { display: none; } }
  @container (max-width: 4.2rem) { .home-head .brand { display: none; } }
}
html[data-size] .home-head, html[data-font] .home-head, html[data-size] .topbar { flex-wrap: wrap; }
/* Gra na telefonie: z nazwy gry zostaje samo logo (link do poczekalni), żeby zmieściły się nazwa i kod gry */
@media (max-width: 480px) { .topbar .brand { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 0; } .topbar .brand .logo { display: inline-block; margin: 0; } }

/* Nagłówek gry: tytuł nie nachodzi na przyciski, kropka połączenia i ikony */
.game-title { overflow: hidden; }
.game-title #game-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .game-title .badge { display: none; } html:not([data-size]):not([data-font]) .game-title #game-name { display: none; } }
/* przy większym tekście pasek się zawija — tytuł gry dostaje własny wiersz */
html[data-size] .game-title, html[data-font] .game-title { flex: 1 0 100%; order: 10; }
html[data-size] .game-title .badge, html[data-font] .game-title .badge { display: inline; }

