/* A waiting room has its own layout. Dealt hands keep the existing game layout. */
.belot-redesign #table.waiting-room{background:#03132b;overflow:auto}
.belot-redesign #table.waiting-room>.topbar,.belot-redesign #table.waiting-room>.felt,.belot-redesign #table.waiting-room>.bottombar,.belot-redesign #table.waiting-room>.hand,.belot-redesign #table.waiting-room>.turnlabel{display:none!important}
body.belot-redesign #table.waiting-room #pregame{position:relative;inset:auto;transform:none;width:min(520px,100%);max-width:none;max-height:none;min-height:100%;overflow:visible;display:block;margin:0 auto;padding:0 20px max(22px,env(safe-area-inset-bottom));border:0;border-radius:0;box-shadow:none;background:transparent;box-sizing:border-box}
.waiting-top{height:66px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin:0 -6px 16px}
.waiting-top>button{border:0;background:none;color:#f5ecd7;font:44px/1 Arial;min-width:44px;padding:0}
.waiting-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.waiting-heading h1{font:600 clamp(30px,9vw,44px)/1.13 Georgia,serif;color:#f8dd95;margin:0;text-shadow:0 2px 0 #715026}
.waiting-heading p{font-size:17px;line-height:1.5;margin:6px 0 0;color:#d7dbe9}
.waiting-heading #btnRoomOptions{border:1px solid #eac57b;background:#04142c;color:#f6f0e8;border-radius:9px;padding:9px 12px;display:flex;align-items:center;gap:6px;font:16px Arial;min-height:44px;white-space:nowrap;flex-shrink:0}
.waiting-code{margin:10px 0 0;font-size:14px;color:#8fa9ce}.waiting-code strong{color:#b6c6e5;letter-spacing:1px}
.waiting-board{position:relative;width:calc(100% + 22px);margin:3px -11px 11px;aspect-ratio:1;isolation:isolate;background:url('/belot/royal-room-backdrop.webp') center/100% 100% no-repeat}
.waiting-board::before{content:"";position:absolute;inset:0;background:linear-gradient(#03132b,transparent 12%,transparent 88%,#03132b);z-index:-1}
.room-seat{position:absolute;width:31%;aspect-ratio:1;border:1.5px solid #e4be74;border-radius:13px;background:linear-gradient(145deg,#092647f5,#021327f5);box-shadow:inset 0 0 0 2px #476b9180,0 6px 12px #0008;box-sizing:border-box;overflow:hidden}
.room-seat[data-position="0"]{left:34.5%;bottom:0}.room-seat[data-position="1"]{right:0;top:34.5%}.room-seat[data-position="2"]{left:34.5%;top:0}.room-seat[data-position="3"]{left:0;top:34.5%}
.room-seat.is-you{border-color:#ffe4a0;box-shadow:inset 0 0 0 2px #b08e51,0 0 14px #ffd97977;background:linear-gradient(145deg,#1c2d42,#061322)}
.room-seat-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;height:100%;border:0!important;border-radius:12px;background:transparent!important;color:#f8f4ec;font:14px Arial;padding:8px 5px;box-shadow:none!important}
.room-seat-action:has(+.room-seat-bot){padding:5px 3px 25px;gap:2px}
.room-seat-action:has(+.room-seat-bot) .room-seat-face,.room-seat-action:has(+.room-seat-bot) .belot-portrait{width:32px!important;height:32px!important}
.room-seat-action:has(+.room-seat-bot) .room-seat-plus{width:30px;height:30px;font-size:26px}
.room-seat-action>strong,.room-seat-action>small{flex:none}
.room-seat-action strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.15}
.room-seat.is-you strong{color:#ffda81}
.room-seat-action small{font-size:10px;color:#a9bbd7;line-height:1.2;max-width:100%;text-align:center}
.room-seat-face{display:flex;align-items:center;justify-content:center;width:44px;height:44px;font-size:31px;line-height:1;color:#f3cf84;flex:none}
.room-seat-face .belot-portrait{width:44px!important;height:44px!important;border:1px solid #dfc081;border-radius:8px}
.room-seat-face>.fig,.room-seat-face>img{max-width:100%;max-height:100%;object-fit:contain}
.room-seat-plus{display:grid;place-items:center;width:36px;height:36px;border:1px solid #edca80;border-radius:50%;font-size:30px;font-weight:400}
.belot-redesign .room-seat-bot{position:absolute;z-index:1;bottom:1px;left:0;width:100%;height:24px;min-height:24px;border:0;border-top:1px solid #e1bc6633;border-radius:0 0 11px 11px;background:#10283ce8;color:#cfc5a7;font:10px Arial;padding:2px 4px}
.room-seat-action:focus-visible{outline:3px solid #b5deff!important;outline-offset:-4px!important}
.waiting-summary{display:flex;align-items:center;justify-content:center;gap:9px;margin:15px 0 22px;font-size:13px;color:#afbfdb;text-align:center}
.waiting-summary::before,.waiting-summary::after{content:"";height:1px;background:#91a0b288;flex:1;min-width:12px;max-width:40px}
.waiting-actions{display:grid;gap:12px}
.belot-redesign #table .waiting-actions .btn{width:100%;min-height:55px;font:500 20px Georgia,serif;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px}
.belot-redesign #table .waiting-actions .waiting-copy{font:17px Arial;background:#02152d;border:1px solid #e9c67a;color:#fbf7ee}
.waiting-copy svg{width:24px;height:24px;pointer-events:none}
.belot-redesign #table .waiting-status{margin:15px 0 0;text-align:center}
.belot-redesign #table .waiting-status .room-flow-status{padding:0;background:none;border:0;text-align:center}
.waiting-status .room-flow-heading,.waiting-status .room-partner{display:none!important}
.belot-redesign #table .waiting-status .room-flow-status p{font:13px/1.4 Arial;color:#c2cde0;margin:0 0 8px}
.belot-redesign #table .waiting-status .room-flow-status>small{font:12px/1.4 Arial;color:#8fa7cb}
.waiting-share-tools{display:flex;gap:0 14px;justify-content:center;flex-wrap:wrap;margin-top:5px}
.waiting-share-tools button{border:0;background:transparent;color:#b0bed5;font:11px Arial;min-height:36px}
.waiting-share-tools #waitingShareLinks{flex:1 0 100%;text-align:center}.waiting-share-tools summary{font-size:11px;color:#9fb0cb;cursor:pointer;min-height:32px;padding:8px}.waiting-share-tools .room-share-more>div{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.waiting-share-tools .inv{min-height:44px;display:flex;align-items:center;color:#cfddf2;font-size:12px}
.room-options-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(520px,100%);max-width:100%;max-height:min(93dvh,930px);box-sizing:border-box;padding:0;overflow:auto;overscroll-behavior:contain;border:0;border-top:1.5px solid #f3cd7c;border-radius:25px 25px 0 0;background:#041a32;color:#fff;box-shadow:0 -15px 80px #0006}
.room-options-sheet::backdrop{background:#020c1c8c}
.room-options-panel{position:relative;padding:14px 20px max(22px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at top,#0b2945,#03162d 65%)}
.room-options-handle{width:42px;height:4px;border-radius:3px;background:#65809f;opacity:.7;margin:0 auto 15px}
.room-options-sheet h2{font:600 clamp(28px,8vw,38px)/1.2 Georgia,serif;color:#ffe6a0;margin:0 20px 6px;text-align:center}
.room-options-sheet #roomOptionsHint{font:14px/1.5 Arial;color:#b5c9e6;text-align:center;margin:0 0 22px}
.room-options-close{position:absolute;right:11px;top:22px;width:44px;min-height:44px;border:0;background:none;font:36px/1 Arial;color:#fff;padding:0}
.room-options-sheet fieldset{border:0;margin:0 0 18px;padding:0;min-width:0}
.room-options-sheet legend{font:600 15px/1.3 Arial;padding:0;margin:0 0 7px}
.room-options-choices{display:grid;grid-template-columns:repeat(var(--choices),minmax(0,1fr));border:1px solid #739abb;border-radius:9px;overflow:hidden}
.room-options-choices label{position:relative;min-width:0;cursor:pointer}
.room-options-choices label+label{border-left:1px solid #739abb80}
.room-options-choices input{position:absolute;opacity:0;width:100%;height:100%;margin:0;inset:0;cursor:pointer}
.room-options-choices span{display:flex;align-items:center;justify-content:center;min-height:42px;box-sizing:border-box;padding:7px 3px;text-align:center;font:15px/1.2 Arial;color:#f7f5ee;background:#02152b}
.room-options-choices input:checked+span{background:#ecd397 url('/belot/gold-button.webp') center/100% 160%;color:#07172b;font-weight:700;box-shadow:inset 0 0 0 1px #ffe6a6;border-radius:8px}
.room-options-choices input:focus-visible+span{outline:3px solid #bde6ff;outline-offset:-4px}
.room-options-sheet fieldset:disabled{opacity:.65}.room-options-sheet input:disabled{cursor:default}
.belot-redesign .room-options-save{width:100%;min-height:55px;font:600 22px Georgia,serif;margin-top:1px}
.room-options-note{margin:15px 0 0;text-align:center;color:#a5bedf;font-size:12px}
.room-invite-access{border:0;margin-top:12px}.room-invite-access>summary{cursor:pointer;color:#b8c5db;font-size:12px;min-height:36px;display:flex;align-items:center;justify-content:center}.room-invite-access>summary::after{content:'';width:6px;height:6px;margin-left:9px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg)}.room-invite-access[open]>summary::after{transform:rotate(225deg)}
/* The paired actions leave room for two live previews on a portrait phone. */
.belot-redesign #lobby .royal-menu-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.belot-redesign #lobby .royal-menu-actions .mcard{min-width:0;min-height:48px;margin:0;padding:9px 12px;gap:5px;justify-content:space-between;border-radius:11px}
.belot-redesign #lobby .royal-menu-actions .m-tx{min-width:0}
.belot-redesign #lobby .royal-menu-actions .m-tx b{font:600 17px/1.2 Georgia,serif;letter-spacing:0;white-space:nowrap;text-transform:none}
.belot-redesign #lobby .royal-menu-actions .m-arr{font-size:28px}
.belot-redesign #lobby .royal-bot-hint{font:11px/1.3 Arial,sans-serif;margin:4px 0 0}
.belot-redesign #lobby .royal-rule-choice{margin-bottom:6px}.belot-redesign #lobby .royal-rule-choice legend{display:none}
.belot-redesign #lobby .tagline{font:11px/1.3 Arial,sans-serif;letter-spacing:1px;margin:4px 0 7px}
@media(max-width:699px){
  .belot-redesign #lobby .lobby-top{height:56px;min-height:56px;padding-block:3px}
  .belot-redesign #lobby .logo{font-size:46px;line-height:1.05}
  .belot-redesign #lobby .room-directory{margin:8px 0 16px}
  .belot-redesign #lobby .rd-heading{margin-bottom:8px}
  .belot-redesign #lobby .rd-preview-list{gap:10px}
  .belot-redesign #lobby .rd-preview-list .rd-room{padding:8px 10px 2px}
  .belot-redesign #lobby .rd-preview-list .rd-room-heading{margin-bottom:5px}
  .belot-redesign #lobby .rd-preview-list .rd-room-footer{min-height:38px}
  .belot-redesign #lobby .rd-more{margin-top:10px}
}
@media(max-width:379px){.belot-redesign #lobby .royal-menu-actions .m-tx b{font-size:14px}}
@media(max-width:379px){body.belot-redesign #table.waiting-room #pregame{padding-inline:15px}.waiting-top{margin-bottom:10px;height:60px}.waiting-heading p{font-size:15px}.waiting-heading #btnRoomOptions{font-size:14px;padding:7px 9px}.room-seat-action strong{font-size:12px}.room-seat-action small{font-size:9px}.room-seat-face,.room-seat-face .belot-portrait{width:38px!important;height:38px!important}.waiting-summary{font-size:12px}.room-options-panel{padding-inline:15px}.room-options-sheet h2{font-size:28px}.room-options-sheet fieldset{margin-bottom:15px}.room-options-sheet #roomOptionsHint{font-size:13px;margin-bottom:16px}}
@media(min-width:700px){.waiting-board{width:420px;margin-inline:auto}.waiting-heading h1{font-size:42px}.waiting-summary{font-size:15px}.room-seat-action strong{font-size:16px}.room-seat-action small{font-size:12px}.room-seat-face,.room-seat-face .belot-portrait{width:50px!important;height:50px!important}}
@media(max-height:650px){.room-options-sheet{max-height:96dvh}.room-options-sheet fieldset{margin-bottom:12px}.room-options-sheet #roomOptionsHint{margin-bottom:14px}.waiting-top{margin-bottom:10px}}
