/* In-table tournament HUD + rebuy / add-on bar (owner 2026-10-05) */
.trn-hud { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center;
  margin: 2px 10px 0; padding: 5px 12px; border-radius: 12px; font: 700 11.5px/1.2 Manrope, system-ui;
  color: #CFC9BF; background: linear-gradient(180deg, rgba(28,30,35,.92), rgba(14,15,18,.92));
  border: 1px solid rgba(217,183,106,.38); position: relative; z-index: 5; font-variant-numeric: tabular-nums; }
.trn-hud .lv { color: #1a1405; background: linear-gradient(180deg, #F3DA9C, #C9A55E); padding: 2px 7px; border-radius: 7px; font-weight: 800; letter-spacing: .06em; }
.trn-hud .bl { color: #F7E2A8; font-weight: 800; }
.trn-hud .ck { min-width: 34px; text-align: center; color: #fff; font-weight: 800; }
.trn-hud .pl::before { content: "👤 "; filter: grayscale(1) brightness(1.4); }
.trn-hud .ko { display: inline-flex; gap: 5px; align-items: center; color: #FFD6DB; }
.trn-hud .ko b { background: #B3172B; color: #fff; border-radius: 8px; padding: 1px 5px; font-size: 9.5px; }
.trn-hud .lr, .trn-hud .hh { color: #F2B544; border: 1px solid rgba(242,181,68,.5); border-radius: 7px; padding: 1px 6px; }
.trn-bar { display: flex; gap: 8px; padding: 6px 10px 0; position: relative; z-index: 6; }
.trn-bar[hidden], .trn-hud[hidden] { display: none; }
.trn-btn { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; min-height: 44px;
  border-radius: 13px; border: 2px solid #FBE7AE; cursor: pointer; font: 700 12.5px Manrope, system-ui;
  background: linear-gradient(180deg, #F3DA9C, #B48632); color: #1a1405; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.trn-btn b { font-weight: 800; letter-spacing: .08em; font-size: 13px; }
.trn-btn em { font-style: normal; font-weight: 800; background: rgba(26,20,5,.18); border-radius: 8px; padding: 2px 7px; }
.trn-btn.addon { background: radial-gradient(120% 120% at 30% 20%, #5EA2FF, #0A2266 70%); color: #fff; border-color: #D9B76A; }
@media (prefers-reduced-motion: no-preference) { .trn-btn.rebuy em { animation: trn-pulse 1s infinite; } }
@keyframes trn-pulse { 50% { opacity: .55; } }
/* table panel (owner 2026-10-06): slides up from the bottom over the action bar */
.tbl-panel-scrim { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.45); }
.tbl-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 61; padding: 6px 14px calc(14px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #1b1d22, #0f1013); border-top: 1px solid rgba(217,183,106,.45);
  font-family: Manrope, system-ui; color: #F2EFEA; animation: tp-up .22s ease-out; }
@keyframes tp-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .tbl-panel { animation: none; } }
.tp-grab { width: 40px; height: 4px; border-radius: 2px; background: #3a3c42; margin: 2px auto 10px; }
.tp-icons { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.tp-icons > button:not(.tp-host) { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(217,183,106,.35); background: linear-gradient(180deg, #22242a, #121316); display: grid; place-items: center; cursor: pointer; }
.tp-icons .sp { flex: 1; }
.tp-host { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid #3EDB86; background: rgba(62,219,134,.08); color: #6FE8B1; font: 800 12.5px Manrope, system-ui; cursor: pointer; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-sw, .tp-row { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 12px; border-radius: 13px; background: #1A1C21; border: 1px solid #26282e; font: 700 13px Manrope, system-ui; color: #F2EFEA; cursor: pointer; }
.tp-sw span, .tp-row span { flex: 1; text-align: left; } .tp-sw em { display: block; font-style: normal; font-size: 10.5px; color: #77726A; }
.tp-row i { font-style: normal; color: #E0B85E; font-size: 18px; } .tp-row svg { width: 20px; height: 20px; }
.tp-sw input { display: none; }
.tp-sw i { width: 40px; height: 22px; border-radius: 11px; background: #2f3138; position: relative; flex: none; transition: background .15s; }
.tp-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #A39E95; transition: transform .15s, background .15s; }
.tp-sw input:checked + i { background: rgba(62,219,134,.35); } .tp-sw input:checked + i::after { transform: translateX(18px); background: #3EDB86; }
.tp-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #23252b; }
.tp-act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 0; background: none; border: 0; color: #CFC9BF; font: 700 11.5px Manrope, system-ui; cursor: pointer; }
.tp-act svg { width: 30px; height: 30px; } .tp-act.off { opacity: .35; cursor: default; }
.ab-row.off { opacity: .55; cursor: default; } .soon-i { font-style: normal; margin-left: 8px; font-size: 10.5px; color: #F2B544; border: 1px solid rgba(242,181,68,.5); border-radius: 7px; padding: 1px 6px; }
/* table menu handle (owner 2026-10-06) */
.tb-handle { position: relative; z-index: 7; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 18px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; }
.tb-handle i { width: 46px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #8C6420, #F3DA9C, #8C6420); opacity: .85; }
.tb-handle span { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 10px; font: 800 11px Manrope, system-ui;
  color: #1a1405; background: linear-gradient(180deg, #F3DA9C, #C9A55E); box-shadow: 0 6px 16px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.tb-handle span::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: #C9A55E; border-bottom: 0; }
.tb-handle.hint span { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .tb-handle.hint i { animation: tb-pulse 1.1s ease-in-out 5; } }
@keyframes tb-pulse { 50% { transform: translateY(-4px) scaleX(1.2); opacity: 1; } }
/* decluttered table (owner 2026-10-06): the bottom panel now carries menu,
   store, leave, sound, results and hand history. The table keeps only:
   back, multi-table pills, mic, time bank and chat. */
#tb-menu-btn, #tb-store, #tb-leave, #tb-sound, #tb-results, #tb-hh2 { display: none !important; }
.tp-grid > :last-child:nth-child(odd) { grid-column: span 2; }
/* showdown cards (owner 2026-10-06): big enough to read on a phone, fanned
   so each rank/suit corner shows, pointed at the felt centre */
.seat .cards.sd { position: absolute; z-index: 6; top: -14px; display: flex; flex-direction: row !important; filter: drop-shadow(0 4px 8px rgba(0,0,0,.55)); }
.seat .cards.sd.in-r { left: 30px; right: auto; }
.seat .cards.sd.in-l { right: 30px; left: auto; }
.seat .cards.sd.below { top: 50px; left: 50%; right: auto; transform: translateX(-50%); }
.pcard.sd { width: 30px; height: 42px; border-radius: 4px; }
.pcard.sd .r { font-size: 16px; left: 3px; top: 1px; } .pcard.sd .s { top: 18px; left: 3px; font-size: 12px; } .pcard.sd .bigsuit { display: none; }
.seat .cards.sd .pcard + .pcard { margin: 0 0 0 -13px !important; }
.seat .cards.sd.n5 .pcard, .seat .cards.sd.n6 .pcard, .seat .cards.sd.n7 .pcard { width: 26px; height: 37px; }
.seat .cards.sd.n5 .pcard + .pcard, .seat .cards.sd.n6 .pcard + .pcard, .seat .cards.sd.n7 .pcard + .pcard { margin-left: -12px !important; }
.seat .cards.sd.n5 .pcard .r, .seat .cards.sd.n6 .pcard .r, .seat .cards.sd.n7 .pcard .r { font-size: 14px; }
.seat .cards.sd.n5 .pcard .s, .seat .cards.sd.n6 .pcard .s, .seat .cards.sd.n7 .pcard .s { top: 15px; font-size: 11px; }
.seat.winner .cards.sd .pcard { box-shadow: 0 0 0 1.5px #E0B85E; }
/* header: the multi-table pills get the whole free width now the right-side
   icons live in the bottom panel */
.tbl-head .mt-pills { flex: 1; margin: 0 8px; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.tbl-head .mt-pills::-webkit-scrollbar { display: none; }
/* below-plate cards anchor toward the centre (never past the rail) */
.seat .cards.sd.below { transform: none; }
.seat .cards.sd.below.in-r { left: -22px; right: auto; }
.seat .cards.sd.below.in-l { right: -22px; left: auto; }
/* ---- cards v3 (owner 2026-10-06, PPP-sharp) ---------------------------- */
.pcard.v3 { container-type: size; background: linear-gradient(180deg, #FFFFFF 0%, #F7F6F2 100%) !important; border: 1px solid rgba(0,0,0,.22) !important;
  border-radius: 9cqw !important; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.9); }
.pcard.v3 .r { position: absolute; left: 7cqw !important; top: 2cqw !important; font: 900 50cqw/1 'Archivo', 'Barlow Condensed', system-ui !important;
  letter-spacing: -.06em !important; transform: scaleX(.92); transform-origin: left top; }
.pcard.v3 .r.ten { letter-spacing: -.14em !important; transform: scaleX(.78); }
.pcard.v3 svg.s { position: absolute; left: 9cqw; top: 54cqw; width: 30cqw; height: 30cqw; }
.pcard.v3 svg.bigsuit { position: absolute; right: 5cqw; bottom: 4cqw; width: 58cqw; height: 58cqw; display: block !important; }
.pcard.v3.c-spade { color: #111114 !important; } .pcard.v3.c-heart { color: #E3222B !important; }
.pcard.v3.c-diamond { color: #1F5BE6 !important; } .pcard.v3.c-club { color: #0E9443 !important; }
/* tiny cards (opponent up-cards, OFC chips): rank + small suit only */
.pcard.v3.sm svg.bigsuit { display: none !important; }
.pcard.v3.sm svg.s { top: auto; bottom: 6cqw; left: auto; right: 8cqw; width: 42cqw; height: 42cqw; }
.pcard.v3.sm .r { font-size: 56cqw !important; }
/* showdown / fanned cards: only the left strip shows, so rank + small suit carry it */
.pcard.v3.sd svg.bigsuit { width: 46cqw; height: 46cqw; }
.seat .cards.sd.above { top: -58px; }
.seat .cards.sd.above.in-r { left: -22px; right: auto; } .seat .cards.sd.above.in-l { right: -22px; left: auto; }
/* full revealed hands (owner 2026-10-06): every card whole, sized by the
   layout pass so nothing touches */
.seat .cards.full { position: absolute; z-index: 6; display: flex; gap: 3px; transform: translateX(-50%); right: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.55)); }
.seat .cards.full .pcard { width: var(--cw); height: calc(var(--cw) * 1.4); margin: 0 !important; }
.seat.winner .cards.full .pcard { box-shadow: 0 0 0 2px #E0B85E; }
.pcard.v3 { border-radius: 11% / 8% !important; }
.seat .cards.full.over { z-index: 8; gap: 0; }
.seat .cards.full.over .pcard + .pcard { margin-left: var(--step) !important; }
.seat .cards.full.fan .pcard:nth-child(odd) { transform: translateY(1px); }

/* ---------- Game Settings sheet ---------- */
.gs { padding: 6px 18px 12px; font-family: 'Manrope', sans-serif; color: #F4F2EE; max-width: 560px; margin: 0 auto; }
.gs-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .gs-h h3 { margin: 0; font: 800 19px 'Manrope', sans-serif; }
.gs-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #232328; color: #9C978F; }
.gs-sec { margin-top: 12px; padding: 12px; border-radius: 14px; background: #1C1C20; border: 1px solid #2B2B31; }
.gs-sh { font: 800 11px 'Manrope', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #9C978F; margin-bottom: 8px; }
.gs-sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 14px 'Manrope', sans-serif; }
.gs-sw small { display: block; font: 600 11.5px 'Manrope', sans-serif; color: #9C978F; margin-top: 2px; }
.gs-sw input { display: none; } .gs-sw i { position: relative; flex: none; width: 44px; height: 26px; border-radius: 99px; background: #3A3A41; }
.gs-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.gs-sw input:checked + i { background: linear-gradient(180deg, #F2DCAC, #C9A15E); } .gs-sw input:checked + i::after { transform: translateX(18px); }
.gs-rowx { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.gs-rowx label { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 11px; background: #141416; border: 1px solid #2B2B31; font: 600 12px 'Manrope', sans-serif; color: #9C978F; }
.gs-rowx input { width: 48px; border: 0; background: none; color: #F4F2EE; font: 800 15px 'Manrope', sans-serif; text-align: right; outline: none; }
.gs-note { grid-column: 1 / -1; font: 600 11px 'Manrope', sans-serif; color: #6E6A64; }
.gs-bp { display: grid; grid-template-columns: 64px 1fr 1fr 1fr; gap: 6px; align-items: center; margin-top: 6px; font: 700 12.5px 'Manrope', sans-serif; color: #C9C4BC; }
.gs-bp select { width: 100%; padding: 9px 6px; border-radius: 10px; border: 1px solid #2B2B31; background: #141416; color: #F4F2EE; font: 700 12.5px 'Manrope', sans-serif; }
.gs-link { margin-top: 8px; border: 0; background: none; color: #E3C998; font: 700 12px 'Manrope', sans-serif; padding: 0; }
.gs .tset { padding: 0; } .gs .tset label { font-size: 14px; }
.gs-ok { width: 100%; margin-top: 14px; padding: 14px; border-radius: 14px; border: 0; background: linear-gradient(180deg, #F3DEAE, #CBA35F 62%, #AE843E); color: #1A1308; font: 800 15px 'Manrope', sans-serif; }
