#secure-game-root{position:fixed;inset:0;z-index:160;background:#f4f5ec;color:#203c31;overflow:auto;padding:clamp(10px,2vw,30px)}#secure-game-root[hidden]{display:none}.secure-game-open{overflow:hidden}.secure-shell{max-width:1700px;margin:auto}.secure-shell header{display:flex;justify-content:space-between;gap:12px;align-items:center}.secure-shell h1{font-size:clamp(22px,3vw,38px);margin:0}.secure-shell button{font-size:16px;font-weight:750;padding:12px 20px;border:1px solid #9da78c;background:#edf0e4;color:#203c31;border-radius:10px;cursor:pointer}.secure-shell button:disabled{opacity:.45;cursor:default}.secure-shell input,.secure-shell select{display:block;padding:12px;border:1px solid #9ca78f;background:white;color:#203c31;border-radius:8px;font-size:16px;max-width:100%;width:100%}.secure-shell label{display:block;font-weight:700}.secure-shell form{display:flex;gap:15px;align-items:end;margin:25px 0;padding:24px;border:1px solid #bbc3ae;border-radius:14px;flex-wrap:wrap}.secure-meta{display:flex;gap:20px;justify-content:space-between;align-items:center;margin:15px 0;flex-wrap:wrap}.secure-meta input{width:350px;font-family:monospace}.secure-table{background:#2d4c3f;color:#f6edcc;padding:clamp(12px,2vw,26px);border-radius:20px;min-height:60vh;text-align:center}.secure-seats{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px}.secure-seats article{border:1px solid #839577;border-radius:12px;padding:12px}.secure-seats small,.secure-seats span{display:block;margin-top:5px}.secure-seats .dealer-side{border:2px solid #dfc981;background:#6f754e55}.secure-seats .active-seat{outline:3px solid #e4d39c;outline-offset:2px}.secure-plays{display:flex;justify-content:center;align-items:start;gap:15px;flex-wrap:wrap;min-height:130px;padding:20px 0}.secure-plays article{min-width:100px;max-width:40%}.secure-hand{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:15px auto;max-width:1500px}.secure-shell .secure-card{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;width:clamp(57px,5.4vw,92px);height:clamp(85px,8vw,135px);background:#fffef4;color:#162820;border:2px solid #c3bc96;font:700 clamp(24px,2.7vw,40px) Georgia;padding:4px;vertical-align:middle;opacity:1;flex-shrink:0}.secure-shell .secure-card.red{color:#a94332}.secure-shell .secure-card.selected{transform:translateY(-8px);outline:4px solid #edcc71}.secure-plays .secure-card,.secure-public-reveal .secure-card{width:54px;height:78px;font-size:25px}.secure-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:15px}.secure-shell .secure-error{padding:16px;background:#fae4db;color:#8a3024;border-radius:10px;font-weight:700}.secure-shell .fine{white-space:normal;line-height:1.6}.secure-table .fine{color:#e2e6c9}.secure-card:focus-visible{outline:4px solid #82d0e5}.secure-shell button:focus-visible{outline:3px solid #2494bd}

.secure-chat{max-width:650px;margin:12px 0 12px auto;background:#fffef5;border:1px solid #9ca788;border-radius:12px;padding:14px}.secure-chat summary{font-weight:800;cursor:pointer}.secure-chat-log{max-height:140px;overflow:auto;text-align:left;overflow-wrap:anywhere}.secure-chat form{padding:0;border:0;margin:12px 0 0}.secure-chat label{flex:1}
#secure-game-root{--reader-color:var(--reader-light);font-size:calc(16px * var(--font-scale,1))}#secure-game-root .secure-table{--reader-color:var(--reader-dark)}body[data-text-color]:not([data-text-color="default"]) #secure-game-root :is(h1,h2,h3,p,label,small,summary,strong,span,button,input,select):not(.secure-card,.secure-card *,.playing-card,.playing-card *){color:var(--reader-color)}#secure-game-root .secure-table button:not(.secure-card){--reader-color:var(--reader-light)}.secure-seats .winning-seat{outline:3px solid #ffe078;background:#7a704c}.secure-card img{width:100%;height:100%;object-fit:contain}.secure-card img+strong{position:absolute;left:3px;top:3px;font-size:14px;background:#fffdf0}.secure-card{position:relative}

/* Deck selection is a focused pop-up over the current pavilion page. */
#secure-game-root.secure-match-popup{padding:0;background:transparent;overflow:hidden}#secure-game-root.secure-match-popup .modal-backdrop{z-index:1}#secure-game-root.secure-match-popup .modal{color:var(--ink,#203c31)}


/* Online tables use the existing local/friends table styles; only the transport container differs. */
#secure-game-root.secure-shared-game{inset:66px 0 0;padding:0;overflow:hidden;background:var(--paper,#f4f5ec)}
.secure-shared-game>.game-chat-layout{height:100%;min-height:0}.secure-shared-game .online-workspace{height:100%;min-width:0}
.secure-shared-game .online-table-details{color:#d8ddc8}.secure-shared-game .online-table-details input{max-width:260px;width:100%;font-size:12px}
body.secure-game-open #modal-root .modal-backdrop{z-index:240}
.secure-shared-game .online-winning-seat{outline:3px solid #ffe078;outline-offset:2px}
.secure-shared-game .secure-chat{max-width:none;margin:0}.secure-shared-game .secure-chat form{padding:0;border:0;margin:8px 0;display:flex;gap:5px}.secure-shared-game .secure-chat label{flex:1;min-width:0}.secure-shared-game .secure-chat input{width:100%;min-width:0;font:inherit}.secure-shared-game .secure-chat button{font:inherit;padding:7px;border:1px solid #a9b79b;border-radius:6px}.secure-shared-game .secure-chat-log{height:140px;overflow:auto}.secure-shared-game .round-result .secure-hand{margin:8px;gap:5px}.secure-shared-game .round-result .playing-card{width:48px;height:68px;font-size:26px}.secure-shared-game .round-result .playing-card span{font-size:23px}

.secure-shared-game .secure-chat>summary{padding:9px 11px;background:#284d3d;color:#fff7db;font-size:16px;font-weight:700;border-radius:10px 10px 0 0}.secure-shared-game .secure-chat{padding:0}.secure-shared-game .secure-chat>.fine,.secure-shared-game .secure-chat form,.secure-shared-game .secure-chat-log{margin-left:8px;margin-right:8px}

/* Keep the same compact game header even when matching starts from a scrolled lobby. */
body.secure-table-active .demo-bar{position:fixed;top:0;left:0;right:0;z-index:170}
body.secure-table-active .site-header{position:fixed;top:22px;left:0;right:0;z-index:170;background:var(--paper,#f4f5ec)}
body.secure-table-active #app{visibility:hidden;pointer-events:none}
.secure-lobby{background:#2d4c3f;color:#f6edcc;padding:clamp(12px,2vw,26px);border-radius:20px;text-align:center}
.guest-online-entry{font-size:1rem;line-height:1.6;overflow-wrap:anywhere}.guest-online-entry .check{display:flex;align-items:flex-start;gap:.75rem;margin:1rem 0;font-size:.95rem}.guest-online-entry .check input{width:auto;flex:none;margin-top:.4rem}.guest-online-entry button{margin-top:1rem}.guest-online-entry #guest-online-turnstile{min-height:140px}
