/* Спільний вигляд судді й пульта. Системний шрифт — правильні українські малі літери. */
:root { --or: #EF8822; --or2: #c96a10; --ink: #15171a; --mut: #6b6f76; --line: #e3e4e6; --bg: #f4f5f6; --card: #fff; --ok: #1f9d55; --bad: #d93025; --yel: #f5c400; --dark: #0d0f12 }
* { box-sizing: border-box; margin: 0; padding: 0 }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body { font: 16px/1.35 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg) }
.xc { font-family: 'Sofia Sans Extra Condensed', system-ui, sans-serif; text-transform: uppercase }
button { font: inherit; cursor: pointer; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; background: #e9eaec; color: var(--ink); touch-action: manipulation }
button:disabled { opacity: .45; cursor: default }
button.pri { background: var(--or); color: #111 }
button.dark { background: var(--dark); color: #fff }
button.ok { background: var(--ok); color: #fff }
button.bad { background: var(--bad); color: #fff }
button.ghost { background: transparent; border: 1px solid var(--line) }
button.sm { padding: 7px 11px; font-size: 14px; border-radius: 9px }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #cfd2d6; border-radius: 10px; background: #fff; color: var(--ink); min-width: 0 }
textarea { width: 100%; min-height: 140px }
label { font-size: 13px; color: var(--mut); font-weight: 600; display: flex; flex-direction: column; gap: 4px }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.grow { flex: 1 }
.mut { color: var(--mut) }
.card { background: var(--card); border-radius: 16px; padding: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06) }
.bar { position: sticky; top: 0; z-index: 5; background: var(--dark); color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 14px }
.bar img { height: 30px }
.bar .ttl { font-weight: 800; font-size: 18px }
.pill { font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: #2a2e33; color: #cfd3d8; white-space: nowrap }
.pill.ok { background: #16391f; color: #7ee2a2 } .pill.wait { background: #4a2f0a; color: #ffc073 } .pill.off { background: #4a1414; color: #ffb3ad }
.sw { width: 14px; height: 30px; border-radius: 4px; display: inline-block; flex: none }
.toast { position: fixed; left: 50%; width: max-content; max-width: calc(100vw - 32px); bottom: 18px; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 14px 12px 18px; border-radius: 14px; display: flex; gap: 14px; align-items: center; z-index: 30; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); font-weight: 700; max-width: calc(100% - 24px) }
.toast button { flex: none; background: var(--or); color: #111; padding: 8px 12px }
/* вибір гравця */
.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 20; display: flex; align-items: flex-end; justify-content: center }
.sheet .in { background: #fff; width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 16px 16px 24px }
.sheet.kb { align-items: flex-start } .sheet.kb .in { border-radius: 0 0 20px 20px; max-height: 55vh }
.sheet.kb .in.tall { max-height: 92vh }
.sheet.lap { align-items: center } .sheet.lap .in { border-radius: 4px; max-height: 92vh } /* заявка: список гравців гортається, поле додавання — нагорі */
.rl .rr { display: flex; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line) }
.rl .rr .num { width: 64px; flex: none; text-align: center; font-weight: 800 } .rl .rr input:not(.num) { flex: 1; min-width: 0 }
.rl .rr button { min-height: 44px; min-width: 44px }
@media (hover: none) { kbd, .hk { display: none !important } } /* підказки клавіш — лише там, де є клавіатура */
.sheet h3 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px }
.sheet .tabs { display: flex; gap: 8px; margin-bottom: 12px }
.sheet .tabs button { flex: 1 }
.sheet .tabs button.on { background: var(--dark); color: #fff }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px }
.pgrid button { text-align: left; padding: 12px; background: #f1f2f3; display: flex; gap: 10px; align-items: center; min-height: 56px }
.pgrid button b { font-family: 'Sofia Sans Extra Condensed', sans-serif; font-size: 26px; min-width: 34px; text-align: right }
.pgrid button span { font-weight: 600; line-height: 1.15 }
.pgrid button.gk { box-shadow: inset 0 0 0 2px #9aa0a6 }
.pgrid button.sus { background: #fdecea }
.pgrid.one { grid-template-columns: 1fr }
.pgrid.one button { justify-content: center; text-align: center; font-size: 18px }
.bdg { display: inline-block; font-style: normal; font-size: 12px; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin: 3px 4px 0 0 }
.bdg.y { background: var(--yel); color: #111 } .bdg.r { background: var(--bad); color: #fff } .bdg.sus { background: var(--bad); color: #fff }
.bynum { display: flex; gap: 6px; align-items: stretch; margin: 0 0 12px; flex-wrap: wrap }
.bynum .num { width: 76px; flex: none; font-size: 22px; font-weight: 800; text-align: center }
.bynum input:not(.num) { flex: 1 1 100px; min-width: 0; font-size: 17px } /* номер · прізвище · кнопка — в один рядок */
.bynum select { flex: 1 1 100%; font-weight: 700 }
.bynum button { padding: 12px 18px; flex: none }
input, select, textarea { font-size: max(16px, 1em) } /* айфон не збільшує сторінку при натисканні на поле */
.ev { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line) }
.ev .mn { font-family: 'Sofia Sans Extra Condensed', sans-serif; font-size: 22px; width: 40px; text-align: right; color: var(--or2) }
.ev .ic { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center }
.ic-goal { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 7px #fff, inset 0 0 0 9px var(--ink) }
.ic-y { width: 14px; height: 19px; background: var(--yel); border-radius: 2px } .ic-r { width: 14px; height: 19px; background: var(--bad); border-radius: 2px }
.ev .tx { flex: 1; min-width: 0 }
.ev .tx small { display: block; color: var(--mut) }
.empty { color: var(--mut); padding: 14px 0 }
/* цифрова панель у вікні гола/картки на телефоні: великі кнопки, без системної клавіатури */
.kpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px }
.kpad button { min-height: 62px; font-family: 'Sofia Sans Extra Condensed', system-ui, sans-serif; font-size: 34px; font-weight: 800; padding: 0 }
.sheet .bynum .num[inputmode=none] { caret-color: transparent }
.bynum.haspad .num { flex: 1 1 0; min-width: 0; width: auto; height: 62px; font-size: 34px }
.bynum.haspad select { flex: 1 1 100% }
.bynum.haspad button[type=submit] { flex: 0 0 38%; font-size: 26px }
