#baccaratStage{max-width:760px;margin:0 auto} .bac-hands{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0} .bac-hands>div{border:1px solid #96a5b6;border-radius:12px;padding:18px 8px;text-align:center;min-width:0} .bac-cards{font-size:clamp(22px,5vw,36px);font-weight:700;min-height:64px;overflow-wrap:anywhere} .bac-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0} .bac-actions select,.bac-actions input{max-width:130px} .bac-hint{font-size:.9rem;opacity:.85} #bacError{color:#a52128} @media(max-width:540px){.bac-actions{flex-direction:column;align-items:stretch}.bac-actions input,.bac-actions select{max-width:none}}

/* Baccarat quick-start help, contained within the Baccarat stage. */
.bac-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.bac-title-row h2{margin:0}
#baccaratStage .bac-rules-overlay[hidden]{display:none!important}
#baccaratStage .bac-rules-overlay:not([hidden]){position:fixed;inset:0;z-index:2147483001;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:16px;background:rgba(12,24,43,.84)}
#baccaratStage .bac-rules-panel{width:min(100%,600px);max-height:90vh;max-height:90dvh;overflow:auto;box-sizing:border-box;border-radius:14px;background:#fff;color:#1c2d40;padding:clamp(16px,4vw,26px);box-shadow:0 18px 46px rgba(0,0,0,.4);line-height:1.5}
#baccaratStage .bac-rules-panel h2,#baccaratStage .bac-rules-panel h3{color:#1c2d40;margin:0 0 10px}
#baccaratStage .bac-rules-panel h3{margin-top:18px}
#baccaratStage .bac-rules-panel ol{padding-left:24px}
#baccaratStage .bac-rules-panel li{margin-bottom:7px}
#baccaratStage .bac-rules-table{border-collapse:collapse;width:100%;font-size:.95rem}
#baccaratStage .bac-rules-table th,#baccaratStage .bac-rules-table td{border-bottom:1px solid #d2dbe5;text-align:left;padding:8px}
#baccaratStage .bac-rules-note{font-size:.9rem}
#baccaratStage #bacCloseRules{width:100%;margin-top:12px}
