/* On top of bar.css: fill the whole window, glasses, bet sides, events. */
.muted { color: var(--mut); font-weight: 400; } .small { font-size: 11px; }
.stage { display: flex; flex-direction: column; }
.fill { flex: 1 1 auto; min-height: 0; }
.glass { color: var(--fg); flex-shrink: 0; vertical-align: middle; }
.receipt .glass { color: var(--ink); }
.mate .dr { display: flex; align-items: center; gap: 6px; }
.mate .spark { grid-column: 1 / -1; width: 100%; height: 26px; }

/* Cards fill the stage: one column per player, full height. */
.deal { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; align-content: stretch; }
.deal .card { min-height: 0; height: 100%; }
.card .t { font-size: clamp(22px, 2.2vw, 34px); }
.card .items img { width: clamp(30px, 3vw, 48px); height: clamp(30px, 3vw, 48px); }
.card .items { margin-top: 4px; }
.card .stakes { margin-top: auto; }
.slip .vs { justify-content: space-between; }
.slip .vs img { width: clamp(44px, 4vw, 64px); height: clamp(44px, 4vw, 64px); }
.slip .arrow { color: var(--ink-mut); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.slip .sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.side { height: 52px; border-radius: 8px; border: 2px solid rgba(0,0,0,.15); background: transparent; color: var(--ink); font-family: var(--cond); font-weight: 800; font-size: 20px; text-transform: uppercase; }
.side.yes.on { background: #1e8b4e; border-color: #1e8b4e; color: #fff; }
.side.no.on { background: #d23a28; border-color: #d23a28; color: #fff; }
.slip.picked { box-shadow: 0 0 0 3px var(--acc); }

.seats.fill { align-content: start; }
.orders.fill { display: grid; grid-template-rows: repeat(5, minmax(0, auto)); align-content: start; }

.live { display: flex; flex-direction: column; gap: 18px; }
.lineup { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; flex: 1; }
.lu { justify-content: center; gap: 8px; }
.lu img.big { width: clamp(56px, 6vw, 96px); height: clamp(56px, 6vw, 96px); border-radius: 50%; }
.lu .sm b { color: var(--fg); }
.lu-glass { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 12px; margin-top: 6px; }
.pull { align-self: center; }

.line-up.fill { display: flex; flex-direction: column; gap: 8px; }
.line-up .q { flex: 1 1 0; max-height: 96px; }
.events { border-top: 1px solid var(--line); padding-top: 10px; color: var(--mut); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.events div:first-child { color: var(--warn); }

.rc-build .sp { margin-left: 6px; border-radius: 4px; }
.rc-build img { flex-shrink: 0; }
.tabhead { display: grid; grid-template-columns: 26px 1fr auto 44px; gap: 8px; }
.tabhead > :nth-child(n+3) { text-align: right; }
.paper-wrap .receipt { max-width: 100%; }

.mate .dr .glass { grid-column: auto; width: auto; height: 20px; }
.card .t { overflow-wrap: anywhere; font-size: clamp(20px, 1.9vw, 30px); }
.card .items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1; align-content: center; }
.card .items img { width: 100%; height: auto; aspect-ratio: 1; max-width: 96px; border-radius: 8px; }
.slip .form { flex: 0 0 auto; }
.form { margin-top: 6px; border-top: 1px dashed rgba(0,0,0,.2); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-mut); }
.form .row { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; }
.form .row img { width: 26px; height: 26px; border-radius: 4px; }
.form .row b { color: var(--ink); }
.form .row b.yes { color: #1e8b4e; } .form .row b.no { color: #d23a28; }
.form .lbl { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }

/* Theme hooks for colours bar.css hard-codes. */
:root { --printer: #0e0d0c; --slot-a: #2b2a27; --slot-b: #1a1917; --tint: rgba(255,106,19,.1); --card-line: rgba(0,0,0,.15); }
.printer { background: var(--printer); }
.slot { background: linear-gradient(var(--slot-a), var(--slot-b)); }
.q.now, .tap.serving, .gl.serving, .col.serving { background: var(--tint); }

/* Finished drinks: the iron-clad count. */
.plus { border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: 999px; height: 30px; padding: 0 10px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.plus:hover { border-color: var(--acc); color: var(--acc); }
.mate { grid-template-columns: 36px 1fr auto; }
.mate .plus { grid-column: 3; grid-row: 3; justify-self: end; }
.mate .dr b { color: var(--fg); }
.q { grid-template-columns: 36px 1fr auto auto auto; }

/* Bet slip: who's betting first. */
.slip .bettor { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.slip .bettor img { width: clamp(52px, 4.6vw, 72px); height: clamp(52px, 4.6vw, 72px); border-radius: 50%; box-shadow: 0 0 0 3px var(--acc); }
.slip .bname { font-family: var(--cond); font-weight: 800; font-size: clamp(24px, 2.3vw, 36px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.slip .bsub { color: var(--ink-mut); font-size: 12px; }
.slip .bet-on { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.slip .bet-on img { width: 40px; height: 40px; border-radius: 50%; }
.slip .bet-on .t { font-size: clamp(18px, 1.6vw, 24px); }
.slip .sides { margin-top: 0; }
.slip .form { margin-top: auto; }
.form .lbl { display: flex; justify-content: space-between; align-items: baseline; }
.form .lbl b { color: var(--ink); font-family: var(--cond); font-size: 18px; letter-spacing: 0; }
.form .row { grid-template-columns: 22px 24px 1fr auto; }
.form .row img { width: 24px; height: 24px; }
.wl { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; font-weight: 800; font-size: 12px; color: #fff; }
.wl.w { background: #1e8b4e; } .wl.l { background: #d23a28; }

/* Round-up */
.rus { display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ru { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 160px 120px; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; max-height: 120px; }
.ru > img { width: 52px; height: 52px; border-radius: 50%; }
.ru .nm { font-weight: 700; font-size: 16px; }
.ru-count { display: flex; align-items: center; gap: 12px; }
.pm { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 22px; }
.ru-n { text-align: center; } .ru-n b { display: block; font-family: var(--cond); font-weight: 800; font-size: 40px; line-height: 1; } .ru-n span, .ru-delta span, .ru-bac span { display: block; color: var(--mut); font-size: 11px; font-family: var(--mono); font-weight: 400; }
.ru-delta { font-family: var(--cond); font-weight: 800; font-size: 44px; line-height: 1; color: var(--mut); text-align: center; }
.ru.more .ru-delta { color: var(--acc); }
.ru-bac { font-family: var(--cond); font-weight: 800; font-size: 34px; line-height: 1; text-align: right; }

/* Fixes: names never break mid-word; tidy rows. */
.card .t { overflow-wrap: break-word; }
.slip .bettor { flex-direction: column; align-items: flex-start; gap: 8px; }
.slip .bettor > div { width: 100%; }
.slip .bname { overflow-wrap: normal; word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(22px, 2vw, 32px); }
.slip .bet-on .t { font-size: clamp(16px, 1.4vw, 22px); }
.form { font-size: 11px; }
.form .row span:not(.wl), .form .row b { white-space: nowrap; }
.form .row { grid-template-columns: 20px 22px 1fr auto; gap: 6px; }
.form .lbl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mate .bac { grid-row: 1; }
.mate .plus { grid-row: 2; grid-column: 3; }
.ru { grid-template-columns: 52px minmax(160px, 1fr) auto 150px 110px; }
.ru-who .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Crew card: every piece in its own cell. */
.mate { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; }
.mate .av { grid-column: 1; grid-row: 1 / 3; }
.mate .nm { grid-column: 2; grid-row: 1; }
.mate .bac { grid-column: 3; grid-row: 1; }
.mate .dr { grid-column: 2; grid-row: 2; }
.mate .plus { grid-column: 3; grid-row: 2; }
.mate .meter { grid-column: 1 / -1; grid-row: 3; }
.mate .spark { grid-column: 1 / -1; grid-row: 4; }
.form .lbl b { white-space: nowrap; }
/* Round-up fits narrow stages. */
.ru { grid-template-columns: 48px minmax(110px, 1fr) auto auto auto; gap: 14px; padding: 10px 14px; }
.ru > img { width: 48px; height: 48px; }
.ru-delta { font-size: 36px; min-width: 90px; }
.ru-bac { font-size: 30px; min-width: 70px; }
.ru-n b { font-size: 34px; }

/* --- Specials: tall cards, every slot fixed so all cards line up ------------ */
.card.special { display: grid; grid-template-rows: 32px 16px calc(2 * 1.05em + 4px) calc(2 * 1.4em) minmax(0, 1fr) auto 30px; gap: 8px; }
.card.special .for { overflow: hidden; } .card.special .for span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.special .t { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
.card.special .r { line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.special .items { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: center; flex: none; }
.card.special .items img, .card.special .items .slot-empty { width: 100%; aspect-ratio: 1; max-width: 72px; border-radius: 8px; }
.card.special .items .slot-empty { background: rgba(0,0,0,.05); }
.card.special .stakes { margin-top: 0; }
.card.special .redo { justify-self: end; }

/* --- Bet slips: horizontal betting tickets, one per row, same everywhere --- */
.tickets { display: grid; grid-template-rows: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.ticket { display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px minmax(250px, 300px); align-items: stretch; background: var(--paper); color: var(--ink); border-radius: 8px; overflow: hidden; min-height: 0; max-height: 150px; position: relative; }
.ticket.picked { box-shadow: 0 0 0 3px var(--acc); }
.ticket.dealt { animation: slide .45s cubic-bezier(.2,.7,.3,1) both; animation-delay: var(--d); }
@keyframes slide { from { transform: translateX(-60px); opacity: 0; } }
.tk-stub { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 10px; text-align: center; border-right: 2px dashed var(--paper); min-width: 0; }
.tk-stub img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 3px var(--acc); }
.tk-name { font-family: var(--cond); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-sub { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.tk-bet { padding: 12px 16px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; min-width: 0; }
.tk-no { font-size: 10px; letter-spacing: .14em; color: var(--ink-mut); }
.tk-line { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; }
.tk-line img { width: 40px; height: 40px; border-radius: 50%; }
.tk-text { font-family: var(--cond); font-weight: 800; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.05; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-pay { font-size: 11px; color: var(--ink-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-sides { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; padding: 10px; border-left: 1px dashed rgba(0,0,0,.2); }
.tk-sides .side { height: auto; }
.ticket .form { margin: 0; padding: 10px 12px; border-top: 0; border-left: 1px dashed rgba(0,0,0,.2); display: grid; grid-template-rows: auto 1fr; gap: 6px; }
.form .cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.form .cell { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.form .cell img { width: 26px; height: 26px; border-radius: 4px; }
.form .cell .kda { font-size: 10px; white-space: nowrap; }
.form .cell b { font-size: 12px; color: var(--ink); }

/* --- Receipts: the serve buttons never move --------------------------------- */
.serve-bar { display: grid; grid-template-columns: minmax(0, 340px) 120px; gap: 8px; }
.serve-bar .slot1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.serve-bar .slot1 span { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.rc-l.disc b { color: var(--good); }
.rc-tot.disc span:last-child { color: var(--good); }

/* --- Round-up by drink type ------------------------------------------------- */
.ru { grid-template-columns: 44px minmax(100px, 150px) minmax(0, 1fr) 96px 80px; gap: 12px; }
.ru > img { width: 44px; height: 44px; }
.ru-types { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ty { border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .55; }
.ty.has { opacity: 1; border-color: var(--acc); }
.ty.mine .ty-name { text-decoration: underline; }
.ty-n { font-family: var(--cond); font-weight: 800; font-size: 24px; line-height: 1; }
.ty-name { font-size: 10px; color: var(--mut); white-space: nowrap; }
.ty-pm { display: flex; gap: 4px; }
.ty-pm button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); font-weight: 700; padding: 0; }
.ru-delta { font-size: 30px; min-width: 0; }
.ru-bac { font-size: 26px; min-width: 0; }
.col .ru-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ticket .form .lbl span { font-size: 10px; }
/* Tickets inside a narrow column stack. */
.col .ticket { grid-template-columns: 1fr; max-height: none; flex: 1; }
.col .tk-stub { border-right: 0; border-bottom: 2px dashed var(--paper); flex-direction: row; justify-content: flex-start; }
.col .tk-sides { grid-template-rows: none; grid-template-columns: 1fr 1fr; border-left: 0; border-top: 1px dashed rgba(0,0,0,.2); }
.col .ticket .form { border-left: 0; border-top: 1px dashed rgba(0,0,0,.2); }

/* Fixed slots sized by their own font. */
.card.special { grid-template-rows: 32px 16px auto auto minmax(0, 1fr) auto 30px; }
.card.special .kind { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.special .t { height: 2.2em; }
.card.special .r { height: 2.8em; }
.card .stakes b { font-size: clamp(15px, 1.3vw, 20px); }

/* Tickets and round-up adapt to the stage's width. */
.stage { container-type: inline-size; }
.tk-name { font-size: clamp(16px, 1.4vw, 22px); letter-spacing: 0; }
@container (max-width: 1000px) {
  .ticket { grid-template-columns: 110px minmax(0, 1fr) 120px; grid-template-rows: auto auto; max-height: none; }
  .tk-stub { grid-row: 1 / 3; }
  .ticket .form { grid-column: 2 / 4; border-left: 0; border-top: 1px dashed rgba(0,0,0,.2); grid-template-rows: none; grid-template-columns: 110px 1fr; align-items: center; padding: 6px 12px; }
  .form .lbl { flex-direction: column; align-items: flex-start; }
  .form .cell .kda { display: none; }
  .ru { grid-template-columns: 40px minmax(90px, 130px) minmax(0, 1fr) 70px 64px; max-height: none; }
  .ru-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ru-delta span, .ru-bac span { font-size: 9px; }
}

.ticket .side { font-size: clamp(14px, 1.2vw, 20px); padding: 0 6px; }
.rus { grid-template-rows: none; grid-auto-rows: min-content; align-content: start; }
.ru { max-height: none; }
.ty-pm button { width: 22px; height: 22px; font-size: 12px; }
.ty-name { font-size: 9px; }
@container (max-width: 1000px) {
  .ticket .form { grid-template-columns: 1fr; grid-template-rows: auto auto; align-items: stretch; }
  .form .lbl { flex-direction: row; align-items: baseline; }
  .ru-types { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .ty { padding: 4px 2px; }
}
@container (max-width: 760px) {
  .ru-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 1000px) {
  .ticket .form .cell { flex-direction: row; justify-content: center; gap: 6px; }
  .ticket .form .cell img { display: none; }
}

/* --- Names never break a layout: one line, cut with an ellipsis ----------- */
.nm, .tk-name, .bname, .rc-who b, .tabrow span:nth-child(2), .face, .chipm, .legend span, .tap .nm, .gl .nm, .for span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-who, .ru-who, .hit-who { min-width: 0; }
.mate .nm { max-width: 100%; }

/* --- Open tab: five seats across, full height ------------------------------ */
.seats2 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.seat2 { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.seat2 img.big { width: clamp(64px, 6vw, 96px); height: clamp(64px, 6vw, 96px); border-radius: 50%; }
.seat2 .nm { font-weight: 800; font-size: 16px; max-width: 100%; }
.seat2 .tag, .seat2 .rk { color: var(--mut); font-size: 12px; }
.seat2 .sec { align-self: stretch; color: var(--mut); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.seat2 .recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-self: stretch; }
.seat2 .recent img { width: 100%; aspect-ratio: 1; border-radius: 8px; }
.seat2 .games { display: flex; flex-direction: column; gap: 4px; align-self: stretch; }
.gm { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 6px; border-radius: 6px; border-left: 3px solid var(--line); }
.gm img { width: 22px; height: 22px; border-radius: 4px; }
.gm.won { border-left-color: var(--good); } .gm.lost { border-left-color: var(--bad); }
.seat2 .x { position: absolute; top: 6px; right: 6px; }
.seat2.open { border-style: dashed; background: transparent; justify-content: flex-start; }
.seat2.open .find { flex-direction: column; align-self: stretch; } .seat2.open .find .input { max-width: none; }
.seat2.open .hits { align-self: stretch; max-width: none; }
.seat2.open .hit { flex-wrap: wrap; } .seat2.open .hit .btn { margin-left: 0; width: 100%; }
.seat2.loading { opacity: .6; }

/* --- Bet tickets: the side you picked outlines the ticket ------------------ */
.ticket.side-yes { box-shadow: 0 0 0 3px var(--good); }
.ticket.side-no { box-shadow: 0 0 0 3px var(--bad); }
.form .cell { border-radius: 6px; padding: 3px 2px; border: 1px solid transparent; }
.form .cell b { font-size: 13px; }
.form .cell.hit { background: color-mix(in srgb, var(--acc) 18%, transparent); border-color: var(--acc); }
.form .cell.miss { opacity: .55; }
.form .lbl b { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink); }

/* --- Recording drinks ------------------------------------------------------ */
.plus { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lu .plus { margin-top: 4px; }
.ty-name { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; font-size: 9px; color: var(--mut); text-decoration: underline dotted; }
.ty.mine { background: color-mix(in srgb, var(--acc) 14%, transparent); }
.ty.mine .ty-name { color: var(--fg); font-weight: 700; text-decoration: none; }

/* --- Five cards in a narrow stage ----------------------------------------- */
.card { container-type: inline-size; }
@container (max-width: 175px) {
  .card.special .stakes { grid-template-columns: 1fr; gap: 4px; }
  .card.special .stakes div { padding: 3px; }
  .card.special .stakes b { font-size: 14px; display: inline; margin-left: 4px; }
  .card.special .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Names shrink to fit their box before they'd ever be cut. */
.seat2, .mate, .tk-stub, .lu, .col, .ru-who, .q-who { container-type: inline-size; }
.seat2 .nm { font-size: clamp(11px, 10cqi, 17px); }
.mate .nm { font-size: clamp(10px, 6.5cqi, 14px); }
.tk-name { font-size: clamp(11px, 13cqi, 22px); }
.lu .nm { font-size: clamp(10px, 10cqi, 16px); max-width: 100%; }
.ru-who .nm { font-size: clamp(10px, 11cqi, 16px); }
.q-who .nm { font-size: clamp(11px, 8cqi, 15px); }

/* History on one line where the ticket is short. */
.form .lbl .inline { display: none; font-style: normal; }
.form .lbl .inline i { font-style: normal; }
.form .lbl .inline i.hit { color: var(--acc); font-weight: 800; }
.form .lbl .inline i.miss { opacity: .6; }
@container (max-width: 1000px) {
  .ticket .form { grid-template-rows: auto; padding: 4px 12px; }
  .ticket .form .cells { display: none; }
  .ticket .form .lbl { flex-direction: row; align-items: baseline; gap: 10px; }
  .ticket .form .lbl .inline { display: inline; flex: 1; text-align: center; font-size: 12px; white-space: nowrap; overflow: hidden; }
}
@container (max-width: 760px) {
  .ru-types { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .ty { padding: 3px 1px; }
  .ty-n { font-size: 18px; }
  .ty-pm button { width: 18px; height: 18px; font-size: 11px; }
  .ru { grid-template-columns: 36px minmax(70px, 110px) minmax(0, 1fr) 54px 54px; gap: 8px; padding: 8px 10px; }
  .ru > img { width: 36px; height: 36px; }
  .ru-delta { font-size: 24px; } .ru-bac { font-size: 22px; }
}
.seat2 .nm { font-size: clamp(10px, 8.6cqi, 17px); }
.mate .nm { font-size: clamp(9px, 5.6cqi, 14px); }
.tk-name { font-size: clamp(10px, 11.2cqi, 22px); }
@container (max-width: 1000px) { .ticket .form .lbl .inline { text-align: left; text-overflow: ellipsis; } }
.mate .plus { grid-column: 1 / -1; grid-row: 5; justify-self: stretch; height: 30px; }
.mate .dr { grid-column: 2 / -1; }
.seat2 .games { flex: 1; justify-content: space-evenly; }
.seat2 .gm { font-size: 13px; } .seat2 .gm img { width: 28px; height: 28px; }

/* --- Orders and in game: one full-height column per player ----------------- */
.orders2, .igcols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.order2, .igc { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; container-type: inline-size; }
.order2.open, .igc.open { border-style: dashed; background: transparent; color: var(--mut); justify-content: center; }
.order2 img.big { width: clamp(52px, 5vw, 80px); height: clamp(52px, 5vw, 80px); border-radius: 50%; }
.order2 .nm, .igc .nm { font-weight: 800; font-size: clamp(10px, 8.6cqi, 16px); max-width: 100%; }
.order2 .rk, .igc .rk { color: var(--mut); font-size: 12px; }
.fld { align-self: stretch; display: flex; flex-direction: column; gap: 4px; color: var(--mut); font-size: 11px; }
.fld .input { width: 100%; height: 36px; }
.menu2 { align-self: stretch; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.drink2 { flex: 1; min-height: 30px; max-height: 52px; border: 1px solid var(--line); background: transparent; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 10px; }
.drink2 b { font-family: var(--cond); font-size: 16px; } .drink2 span { color: var(--mut); font-size: 10px; white-space: nowrap; }
.drink2.on { border-color: var(--acc); background: var(--tint); } .drink2.on span { color: var(--fg); }
@container (max-width: 150px) { .drink2 span { display: none; } }

.ig-clock { font-family: var(--cond); font-weight: 800; font-size: 40px; line-height: 1; display: flex; align-items: baseline; gap: 10px; }
.ig-clock small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--mut); letter-spacing: .1em; }
.ig-pics { position: relative; }
.ig-pics .ch { width: clamp(64px, 6.5vw, 104px); height: clamp(64px, 6.5vw, 104px); border-radius: 12px; display: block; }
.ig-pics .av { position: absolute; right: -10px; bottom: -10px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--panel); }
.ig-box { align-self: stretch; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.ig-box .lbl { color: var(--mut); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.ig-box b { font-family: var(--cond); font-size: clamp(14px, 11cqi, 20px); line-height: 1.1; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ig-box.yes { border-left: 4px solid var(--good); } .ig-box.no { border-left: 4px solid var(--bad); }
.ig-icons { display: flex; gap: 4px; } .ig-icons img { width: 26px; height: 26px; border-radius: 4px; }
.ig-drink { margin-top: auto; display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 12px; }
.ig-bac { font-family: var(--cond); font-weight: 800; font-size: clamp(24px, 20cqi, 36px); line-height: 1; } .ig-bac span { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; color: var(--mut); }
.plus.big { align-self: stretch; height: 40px; font-size: 14px; }
.ig-box { flex: 1 1 0; justify-content: center; max-height: 160px; }
.ig-icons img { width: clamp(24px, 18cqi, 40px); height: clamp(24px, 18cqi, 40px); }
.ig-box b { font-size: clamp(14px, 12cqi, 22px); -webkit-line-clamp: 3; }
.igc .spark { width: 100%; height: 40px; }
.ig-drink { margin-top: 0; }
.ig-box b { font-size: clamp(12px, 9cqi, 20px); overflow-wrap: anywhere; }
