/* Owner requirement: pages and all primary actions fit the available viewport. */
#welcome[open]{display:grid!important;grid-template-columns:minmax(0,.35fr) minmax(0,.65fr);gap:6px 8px;padding:18px!important;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:hidden!important}
#welcome .welcome-copy{grid-column:1/-1;grid-row:1}#welcome .welcome-controls{grid-column:1/-1;grid-row:2;min-width:0}
#welcome .eyebrow{font-size:9px;letter-spacing:2px}#welcome h1{font:32px/1.04 Georgia;margin:8px 0 10px}#welcome .welcome-copy p{font-size:12px;line-height:1.4;margin:7px 0 12px}
#welcome label{margin:7px 0 4px}#welcome input{min-height:36px;padding:8px 10px;font-size:16px}
#welcome .identity-choice{padding:6px;margin:9px 0;gap:8px}#welcome .identity-avatar{min-height:60px;padding:5px;gap:7px}#welcome .identity-avatar img{width:44px;height:44px}#welcome .identity-avatar strong{font-size:14px}#welcome .identity-avatar small{font-size:11px}
#welcome .identity-voice label{margin:0;font-size:11px}#welcome .identity-voice :is(select,button){min-height:30px;margin:3px 0 0;padding:4px 6px;font-size:12px}
#welcome .welcome-controls>button{width:100%;min-height:36px;margin:6px 0 0;padding:7px 8px;font-size:14px}
#welcome #landingPartner783{position:static!important;inset:auto!important;display:flex!important;width:100%!important;height:auto!important;min-height:34px!important;max-width:none!important;border:1px solid #b0975d99!important;border-radius:8px!important;background:linear-gradient(150deg,#1b3550,#0b1e33)!important;font:13px Georgia!important;white-space:nowrap!important;padding:6px 10px!important}
#welcome #landingPartner783>span{position:static!important;display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;height:auto!important;min-width:0!important;border:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;white-space:nowrap!important;gap:7px!important;font:inherit!important}
#welcome #landingPartner783 svg{width:17px!important;height:17px!important;flex:0 0 17px}
#welcome #saveNotice{font-size:11px;line-height:1.3;margin:7px 0 0}#welcome #saveNotice:empty{display:none}
#welcome #welcomeRules{grid-column:1;grid-row:3;width:auto;min-height:30px;margin:3px 0 0;padding:2px;font-size:12px;white-space:nowrap}
#welcome>.gh-house-switch{grid-column:2;grid-row:3;min-height:30px;margin:3px 0 0;padding:0;border:0;justify-content:flex-end}#welcome>.gh-house-switch>span{display:none}#welcome>.gh-house-switch>a{min-height:30px;font-size:13px;white-space:nowrap}#welcome .review{display:none!important}
#welcome [hidden],#welcome .hidden{display:none!important}
@media(orientation:portrait) and (max-height:740px){#welcome[open]{padding:13px!important;gap:4px 6px}#welcome h1{font-size:26px;margin:5px 0 7px}#welcome .welcome-copy p{font-size:11.5px;margin:5px 0 7px}#welcome .welcome-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#welcome .welcome-controls>label,#welcome .identity-choice,#welcome #landingPartner783,#welcome #saveNotice{grid-column:1/-1;margin:0!important}#welcome .identity-choice{padding:4px}#welcome .welcome-controls>button{margin:0;min-height:34px;font-size:13px}#welcome #landingPartner783{min-height:30px!important;padding:5px 8px!important}#welcome .identity-avatar{min-height:54px}#welcome .identity-avatar img{width:38px;height:38px}#welcome #welcomeRules,#welcome>.gh-house-switch,#welcome>.gh-house-switch>a{min-height:26px;margin-top:0}}
@media(orientation:landscape){#welcome[open]{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);width:min(740px,calc(100vw - 24px));padding:12px 16px!important;gap:5px 18px}#welcome .welcome-copy{grid-column:1;grid-row:1}#welcome .welcome-controls{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}#welcome .welcome-controls>label,#welcome .identity-choice,#welcome #landingPartner783,#welcome #saveNotice{grid-column:1/-1;margin:0!important}#welcome h1{font-size:28px}#welcome .welcome-copy p{margin:5px 0}#welcome .identity-choice{padding:4px}#welcome .identity-avatar{min-height:50px}#welcome .identity-avatar img{width:38px;height:38px}#welcome .welcome-controls>button{min-height:32px;padding:5px;margin:0;font-size:13px}#welcome #landingPartner783{min-height:30px!important;padding:4px!important}#welcome #welcomeRules{grid-column:1;grid-row:2;align-self:end}#welcome>.gh-house-switch{grid-column:1/-1;grid-row:3;min-height:24px}#welcome>.gh-house-switch>a{min-height:24px;font-size:12px}#welcome #saveNotice{font-size:11px}}
/* Button-driven pages retain the approved avatar/bot rows and swipe transitions. */
#spadesChoices .identity-grid{overflow:hidden!important;scrollbar-width:none;touch-action:none}#spadesChoices .identity-grid::-webkit-scrollbar{display:none}
#rulesDialog{width:min(540px,calc(100vw - 24px));overflow:hidden}#rulesDialog .rule-copy{margin:10px 0}#rulesDialog .rule-copy p{margin:0;font-size:13px;line-height:1.5}#rulesDialog .rule-copy [hidden]{display:none!important}.rules-pages{display:flex;align-items:center;gap:8px;justify-content:space-between}.rules-pages button{width:auto;margin:0;min-width:70px;min-height:34px}.rules-pages span{font-size:12px;color:#dfd2b8}
#menuDialog{width:min(440px,calc(100vw - 24px));overflow:hidden;padding:18px}#menuDialog h2{font-size:26px;margin:8px 0}#menuDialog .menu-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#menuDialog .menu-actions button{min-height:34px;margin:0;padding:6px;font-size:13px}#menuDialog .menu-actions [hidden],#menuDialog .menu-actions .hidden{display:none!important}#menuDialog>small{display:none}#menuDialog #storageStatus{font-size:11px;margin:9px 0 0}#menuDialog .match-details{padding:10px;font-size:12px}#menuDialog .match-details p{font-size:12px;margin:6px 0}
@media(orientation:landscape){#rulesDialog{padding:12px 16px;width:min(680px,calc(100vw - 24px))}#rulesDialog h2{font-size:23px;margin:6px 0}#rulesDialog .rule-copy p{font-size:12px;line-height:1.4}#rulesDialog #closeRules{min-height:30px;margin-top:7px;padding:5px}#menuDialog{width:min(720px,calc(100vw - 24px));display:none;padding:12px 16px}#menuDialog[open]{display:grid;grid-template-columns:1fr 1fr;gap:5px 15px}#menuDialog>.eyebrow,#menuDialog>h2,#menuDialog>.match-details{grid-column:1}#menuDialog>.eyebrow{grid-row:1}#menuDialog>h2{grid-row:2}#menuDialog>.match-details{grid-row:3}#menuDialog>.menu-actions{grid-column:2;grid-row:1/4;align-content:center}#menuDialog>#storageStatus{grid-column:1/-1;margin:0}#lastDialog{padding:12px 16px}#lastDialog h2{font-size:23px;margin:6px 0}#lastDialog>button{min-height:30px;margin-top:7px}}
@media(orientation:landscape){#onlineSetup[open]{display:grid;grid-template-columns:1fr 1fr;gap:5px 14px;width:min(700px,calc(100vw - 24px));padding:12px 16px;overflow:hidden}#onlineSetup>.eyebrow,#onlineSetup>h2{grid-column:1/-1;margin:0}#onlineSetup h2{font-size:23px}#onlineSetup>label{margin:0}#onlineSetup .identity-choice{grid-column:2;grid-row:3/5;margin:0;padding:5px}#onlineSetup>label:has(#onlineName){grid-column:1;grid-row:3}#onlineSetup>label:has(#onlineCode){grid-column:1;grid-row:4}#onlineSetup input{padding:7px}#onlineSetup>button{min-height:30px;margin:0;padding:5px}#onlineSetup>#onlineStatus{grid-column:1/-1;margin:0;min-height:0}#onlineSetup>#onlineJoinSeats:empty{display:none}#onlineSetup [hidden]{display:none!important}}
#summary .summary-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#summary .summary-actions button{min-height:38px;margin:4px 0 0;padding:6px 3px;font-size:12px}
@media(orientation:portrait) and (max-height:700px){#summary{padding:14px}#summary h2{font-size:24px;margin:7px 0}#summary .score-detail{padding:8px 0}#summary .score-detail p{font-size:11px;line-height:1.35}#summary .score-detail h3{font-size:13px}#summary .score-detail strong{font-size:24px}}
#onlineSetup #onlineJoinSeats:empty,#onlineSetup #onlineStatus:empty{display:none!important}
@media(orientation:portrait) and (max-height:740px){#onlineSetup{padding:14px;overflow:hidden}#onlineSetup h2{font-size:24px;margin:8px 0 12px}#onlineSetup label{margin:8px 0 4px}#onlineSetup input{padding:8px}#onlineSetup .identity-choice{padding:5px;margin:8px 0}#onlineSetup .identity-avatar{min-height:56px}#onlineSetup .identity-avatar img{width:40px;height:40px}#onlineSetup .identity-voice label{margin:0}#onlineSetup button{min-height:34px;margin-top:7px;padding:6px}#onlineSetup #onlineStatus{font-size:11px;min-height:0;margin:7px 0}}
@media(orientation:landscape){#welcome .welcome-controls{grid-row:1/4}#welcome>.gh-house-switch{grid-column:1;grid-row:3;justify-content:flex-start}#welcome>.gh-house-switch>a{justify-content:flex-start}#welcome .identity-voice{display:flex;align-items:flex-end;gap:5px}#welcome .identity-voice label{flex:1;min-width:0;line-height:1.15}#welcome .identity-voice button{flex:1;min-width:0;white-space:nowrap;font-size:11px}#welcome .identity-voice select{width:100%;height:30px;min-height:30px}#welcome .identity-avatar{padding:3px;min-height:48px}#welcome .identity-avatar>span{gap:1px}#welcome .identity-avatar small{font-size:10px;line-height:1.1}#welcome .identity-avatar strong{font-size:13px;line-height:1.1}}
@media(orientation:landscape) and (max-height:360px){#welcome[open]{padding:10px 14px!important;gap:3px 15px}#welcome .welcome-controls{gap:4px}#welcome label{font-size:11px}#welcome input{min-height:32px;padding:5px 8px;font-size:16px}#welcome .identity-choice{padding:3px}#welcome .welcome-controls>button{min-height:30px;padding:4px}#welcome #landingPartner783{min-height:28px!important;padding:3px!important}#welcome #saveNotice{font-size:10px;line-height:1.2}}
@media(orientation:landscape) and (max-height:400px){#spadesChoices.spades-bot-choices .identity-grid{grid-auto-rows:104px}#spadesChoices.spades-bot-choices .bot-pick{height:104px}#spadesChoices.spades-bot-choices .identity-grid img{width:56px;height:56px}#spadesChoices.spades-bot-choices .bot-pick i{display:none}}
/* Find a Table adds an action; keep the shortest welcome layouts within the viewport. */
@media(orientation:portrait) and (max-height:740px){#welcome .welcome-controls>button:not(#landingPartner783){height:34px!important;min-height:34px!important;max-height:34px!important;padding:4px 6px!important;font-size:12px!important;line-height:1.1!important}}
@media(orientation:landscape) and (max-height:400px){#welcome .welcome-controls>button:not(#landingPartner783){height:30px!important;min-height:30px!important;max-height:30px!important;padding:3px 5px!important;font-size:12px!important;line-height:1.1!important}}
