/* Approved common-screen connection composition, outside table scaling. */

 #tvPair > .screen-logo{left:0;right:0;top:8vh;display:flex;justify-content:center}
 #tvPair > .screen-pair-flow{position:absolute;left:40px;right:40px;top:20vh;bottom:14vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:36px}
 #tvPair:not(.pair-code) > .screen-pair-flow{display:none}
 .screen-pair-flow .tvp-card{position:relative;left:auto;top:auto;margin:0;width:min(1052px,100%);height:auto;min-height:0;padding:30px 36px;gap:26px;flex-shrink:0}
 .screen-pair-flow .tvp-code{left:0;top:0;font-size:clamp(64px,8.7vw,133px);letter-spacing:.14em;line-height:1.2}
 .screen-pair-flow .tvp-say,.screen-pair-flow .tvp-hint{position:relative;left:auto;right:auto;top:auto;width:min(1052px,100%);text-align:center;font-size:clamp(18px,1.5vw,28px);line-height:1.5}
 .screen-pair-flow .tvp-say .ink,.screen-pair-flow .tvp-hint .ink{font-size:inherit!important;display:block;white-space:normal;text-transform:none;letter-spacing:.03em;padding-left:0;background-size:100% 100%}
 @media(orientation:portrait){#tvPair > .screen-pair-flow{top:19vh;bottom:13vh;gap:30px}.screen-pair-flow .tvp-card{flex-direction:column;width:min(640px,100%);padding:32px;gap:24px}.screen-pair-flow .tvp-code{font-size:clamp(64px,10.5vw,94px)}.screen-pair-flow .tvp-say,.screen-pair-flow .tvp-hint{font-size:22px}}

 #tvPair .screen-choice{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5.5vh}
 #tvPair .screen-choice[hidden]{display:none}
 .screen-choice .cv-buttons{display:flex;gap:3vw;width:68%;justify-content:center}
 .screen-choice .cv-button{position:relative;isolation:isolate;appearance:none;border:0;border-radius:0;cursor:pointer;width:calc(50% - 1.5vw);height:13.89vh;min-height:90px;padding:12px 5%;font:700 4.1vh var(--serif);letter-spacing:.09em;background:transparent;color:#E8D2A0;outline:0;filter:brightness(.55)}
 .screen-choice .cv-button::before,.screen-choice .cv-button::after{content:'';position:absolute;inset:0;z-index:-1;clip-path:polygon(5% 0,95% 0,100% 50%,95% 100%,5% 100%,0 50%)}
 .screen-choice .cv-button::before{background:#9A7A46}.screen-choice .cv-button::after{inset:3px;background:linear-gradient(#241E16,#0E0B08)}
 .screen-choice .cv-button:focus,.screen-choice .cv-button.is-focused{filter:none}.screen-choice .cv-button span{display:block;line-height:1.25;text-transform:uppercase;overflow-wrap:normal}
 .screen-choice .cv-sub{font-size:2.35vh;margin-top:1.5vh;letter-spacing:.09em}
 .screen-choice .cv-hint{color:#9A9185;text-align:center;font:700 2.35vh var(--serif);letter-spacing:.14em;text-transform:uppercase;width:90%;line-height:1.5}
 @media (orientation:portrait){.screen-choice .cv-buttons{flex-direction:column;width:82%;gap:3vh}.screen-choice .cv-button{width:100%;height:13vh;font-size:3.5vh}.screen-choice .cv-sub{font-size:2.1vh}.screen-choice .cv-hint{font-size:2vh}}

#tvPair > .screen-logo {color:#DEDEDE;mix-blend-mode:multiply;align-items:center}
.screen-logo .logo {gap:20px}
.screen-logo .logo h1 {font-size:52px;color:#DEDEDE;background:none;text-shadow:none;-webkit-text-fill-color:#DEDEDE}
.screen-logo .logo .suit {width:30px;height:30px;fill:#DEDEDE!important}
.screen-logo .logo > svg:nth-last-child(2) {margin-left:-6.5px;transform:translateY(1.8px)}
.screen-logo .logo > svg:last-child {transform:translateY(2.3px)}
 .screen-phone .p-sub{left:20px;right:20px;width:auto;white-space:normal;line-height:1.5;text-transform:none;letter-spacing:.02em;background-size:100% 100%;transform:none;top:80px;text-align:left}
/* R3: only the two personal phone connection captions, not S1/host-picker. */
.screen-phone.phone-screen-caption > .p-sub{left:36px;right:36px;text-align:center}
 .screen-phone .p-input{margin:0 0 24px}
 .screen-phone .screen-codebox{position:relative;display:block;margin-bottom:24px}
 .screen-phone .screen-codebox .p-input{margin:0;--slot:.498em;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:var(--slot);text-align:left;padding-left:calc(50% - (6ch + 5 * var(--slot)) / 2)}
 .screen-phone .screen-codebox .lb-pins{left:calc(50% - (6ch + 5 * .498em) / 2)}
 .screen-phone .p-codehint:empty{display:none}
 .screen-phone .p-codehint:not(:empty){margin:0 0 20px}
 .screen-phone .p-pill.flow{margin-top:0}

#tvPair > .screen-logo{height:41.59375px;align-items:center}
.screen-pair-flow .tvp-card{width:max-content;max-width:100%;justify-content:center}

.screen-host-picker .p-sub{left:20px;right:20px;width:auto;white-space:normal;line-height:1.5;transform:none;top:80px;background-size:100% 100%}

.screen-phone .p-tablet-qr-link.flow{margin-top:40px}
.screen-tablet-qr .p-qr{margin-top:0}

/* Explicit connection termination is separate from the lobby and game results. */
.connection-ended{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:32px max(20px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:var(--felt-bg)}
.connection-ended .end-content{width:100%;max-width:430px;display:flex;flex-direction:column;align-items:center;gap:32px;text-align:center}
.connection-ended .end-title{--top:#A09684;--bot:#7A7262;position:relative;margin:0;font:500 20px/1.4 var(--serif);letter-spacing:.03em;text-transform:none;background-size:100% 100%}
.connection-ended .end-explanation{--top:#8A806E;--bot:#6E6658;position:relative;margin:0;font:400 16px/1.5 var(--serif);letter-spacing:.02em;text-transform:none;background-size:100% 100%}
.connection-ended .p-pill.end-next{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:100%;height:auto;min-height:46px;margin:0;padding:14px 24px}
.connection-ended .end-next .ink{position:relative;display:block;left:auto;right:auto;top:auto;font-size:14px;line-height:1.5;white-space:normal;background-size:100% 100%}
.connection-ended .end-next:focus-visible{outline:2px solid #9A7A46;outline-offset:6px}
.connection-ended.is-shared .end-content{max-width:560px;gap:40px}
.connection-ended.is-shared .end-title{font-size:clamp(24px,2.6vh,32px)}
.connection-ended.is-shared .end-next{min-height:60px}
.connection-ended.is-shared .end-next .ink{font-size:clamp(16px,1.8vh,20px)}
