/* Phone landscape table; desktop and financial/game services remain unchanged. */
.mobile-game-only,.mobile-chat-scrim,.mobile-prepare-note{display:none}
#orientation-root[hidden]{display:none!important}
#orientation-root{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;overflow:auto;padding:max(20px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left));background:radial-gradient(ellipse at 50% 25%,#175741,#041f19 75%);color:#edead8;overscroll-behavior:contain}
.rotate-card{width:100%;max-width:400px;text-align:center;outline:none;margin:auto}
.rotate-brand{display:block;font:40px/1 Georgia,serif;color:#e5c78d}
.rotate-brand small{display:block;font:8px/1.5 var(--font);letter-spacing:5px;margin:10px 0 0;color:#9caf92}
.rotate-phone{width:100px;height:100px;margin:28px auto;color:#dfbf7f;transform:rotate(-25deg)}
.rotate-phone svg{width:100%;height:100%;overflow:visible}
.rotate-card>.eyebrow{font-size:9px;letter-spacing:2px;color:#b7ba96}
.rotate-card h1{font:30px/1.25 Georgia,serif;letter-spacing:-.4px;margin:13px 0 16px;color:#f6edcf}
.rotate-card>p{font-size:14px;line-height:1.65;color:#b5c2a8}
.rotate-card>p strong{color:#f0dba8}
.rotate-card .rotate-help{font-size:12px;margin-top:18px;color:#8da488}
.rotate-live-note{padding:14px 16px;margin:22px auto 18px;border:1px solid #c2b78035;border-radius:10px;background:#dcc48508;font-size:12px;line-height:1.8;color:#b4c09c}
.rotate-live-note strong{color:#ead193;font-variant-numeric:tabular-nums}
.rotate-actions{display:flex;gap:10px;flex-direction:column}
.rotate-actions>.btn{min-height:46px;font-size:13px}
.rotate-card>small{display:block;font-size:10px;margin-top:16px;line-height:1.6;color:#889e7e}
body.phone-game-portrait{overflow:hidden}
.phone-table .mobile-prepare-note{display:block;font-size:12px;line-height:1.65;background:#eee8d1;border:1px solid #d7cb9c;border-radius:9px;color:#746039;margin:0 0 16px;padding:12px 14px}
.mobile-drag-ghost{position:fixed!important;z-index:3500!important;pointer-events:none!important;transform:rotate(-5deg)!important;min-height:0!important;opacity:.96;box-shadow:0 10px 20px #0008!important}
@media(any-pointer:coarse){
 input,select,textarea,.login-card input,.chat-panel input{font-size:16px!important}
 button,a{touch-action:manipulation}
 .app-shell:not(.live-table-shell) .main-wrap{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 .app-shell:not(.live-table-shell) .app-footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}
 .login-page{padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}
}
/* A JS-derived phone class avoids treating tablets/desktops or a keyboard as phones. */
body.phone-game-landscape{overflow:hidden;background:#07382b;overscroll-behavior:none}
.phone-game-landscape #app{height:100vh;height:100dvh}
.phone-game-landscape .app-shell{height:100%;min-height:0;overflow:hidden}
.phone-game-landscape .sidebar,.phone-game-landscape .topbar,.phone-game-landscape .app-footer{display:none!important}
.phone-game-landscape .main-wrap{margin:0;min-width:0;height:100%;padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
.phone-game-landscape .main-content.table-content{display:grid;grid-template-rows:44px minmax(0,1fr);gap:4px;flex:1;min-height:0;padding:0;max-width:none;width:100%;margin:0}
.phone-game-landscape .table-page-heading{margin:0;min-width:0;gap:8px;align-items:center;color:#efe5c9}
.phone-game-landscape .table-page-heading>div:first-child{gap:8px;flex:1;min-width:0}
.phone-game-landscape .table-page-heading>div:first-child>.badge{display:none}
.phone-game-landscape .table-heading-title{min-width:0;max-width:270px}
.phone-game-landscape .table-heading-title>.eyebrow{display:none}
.phone-game-landscape .table-page-heading h1{font:19px/1.12 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e8d2a2}
.phone-game-landscape .mobile-game-only{display:inline-flex}
.phone-game-landscape .mobile-live-status{display:block;font-size:10px;line-height:1.4;color:#c2cba7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.phone-game-landscape .table-heading-actions{gap:5px;flex:none;align-items:center}
.phone-game-landscape .table-page-heading .btn{width:44px;min-width:44px;min-height:44px;padding:8px;border-color:#b7b48045;background:#124333;color:#e8d8ac}
.phone-game-landscape .table-page-heading .btn .icon{width:19px;height:19px}
.phone-game-landscape .table-control-label,.phone-game-landscape .table-heading-actions>[data-action=leave],.phone-game-landscape .table-heading-actions>.badge{display:none}
.phone-game-landscape #mobile-turn-timer{display:flex;gap:3px;color:#e1cf9a;min-width:58px;padding-right:3px}
.phone-game-landscape #mobile-turn-timer b{font-size:20px;width:25px;line-height:1}
.phone-game-landscape #mobile-turn-timer small{font-size:10px}
.phone-game-landscape #mobile-turn-timer.urgent{color:#ffae83}
.phone-game-landscape .mobile-connection{width:9px;min-width:9px;align-items:center}
.mobile-connection.offline .live-dot{background:#e09a53;box-shadow:none}
.phone-game-landscape .game-layout{display:block;min-height:0;position:relative}
.phone-game-landscape .game-main{display:grid;height:100%;min-height:0;grid-template-rows:minmax(70px,1fr) 36px 76px 44px;gap:4px}
.phone-game-landscape .turn-bar,.phone-game-landscape .board-event{display:none}
.phone-game-landscape .arena{height:auto;min-height:0;width:100%;border-width:7px;border-radius:21px;box-shadow:inset 0 0 0 1px #c7a66e,inset 0 0 35px #00271995,0 1px 4px #0004}
.phone-game-landscape .arena:before{inset:-5px;border-radius:16px}
.phone-game-landscape .felt-mark{font-size:55px}
.phone-game-landscape .player-position{width:112px;min-width:0;min-height:34px;padding:4px 5px;gap:5px;border-radius:7px;flex-direction:row;text-align:left;box-shadow:none}
.phone-game-landscape .player-position>.avatar{width:25px;height:25px;font-size:8px;flex:none}
.phone-game-landscape .player-position>div{min-width:0}
.phone-game-landscape .player-position strong{font-size:10px;max-width:none;line-height:1.25}
.phone-game-landscape .player-position small{font-size:8px;margin-top:2px;color:#b9c7a0}
.phone-game-landscape .player-position .hidden-hand{display:none}
.phone-game-landscape .player-position.pos-2{left:5px;top:4px;right:auto;bottom:auto;transform:none}
.phone-game-landscape .player-position.pos-3{left:5px;bottom:4px;right:auto;top:auto;transform:none}
.phone-game-landscape .player-position.pos-1{right:5px;top:4px;left:auto;bottom:auto;transform:none}
.phone-game-landscape .player-position.pos-0{right:5px;bottom:4px;left:auto;top:auto;transform:none}
.phone-game-landscape .table-center{left:50%;top:50%;transform:translate(-50%,-50%);flex-direction:row;gap:14px;max-width:calc(100% - 288px);min-width:0}
.phone-game-landscape .pot-label{min-width:85px}
.phone-game-landscape .pot-label>span{font-size:7px;letter-spacing:1.4px}
.phone-game-landscape .pot-label>strong{font-size:24px;line-height:1.05;margin:4px 0;letter-spacing:-.6px}
.phone-game-landscape .pot-label>strong>small{font-size:9px}
.phone-game-landscape .pot-label>small{font-size:8px;white-space:normal;max-width:116px;line-height:1.4;color:#c0cba0}
.phone-game-landscape .draw-area{gap:13px;align-items:center}
.phone-game-landscape .indicator{gap:3px}
.phone-game-landscape .indicator>span{font-size:8px}
.phone-game-landscape .indicator>small{font-size:8px}
.phone-game-landscape .indicator>.tile{width:34px;flex-basis:34px;height:45px;min-height:45px;padding-top:3px}
.phone-game-landscape .indicator>.tile b{font-size:24px}
.phone-game-landscape .indicator>.tile i{width:4px;height:4px;margin-top:3px}
.phone-game-landscape .stock-button{min-width:54px;min-height:65px;margin:12px 0 0;padding:0 3px;gap:4px}
.phone-game-landscape .tile-back{width:34px;height:44px;border-radius:4px}
.phone-game-landscape .tile-back i{font-size:32px}
.phone-game-landscape .stock-button>strong{top:13px;font-size:16px}
.phone-game-landscape .stock-button>small{font-size:8px;max-width:70px;white-space:normal;line-height:1.2}
.phone-game-landscape .discard-pile{padding:3px;gap:2px;min-width:40px;min-height:48px;justify-content:center}
.phone-game-landscape .discard-pile small{font-size:7px;line-height:1.1}
.phone-game-landscape .discard-pile .tile.small{width:25px;flex-basis:25px;height:34px;min-height:34px;padding-top:2px}
.phone-game-landscape .discard-pile .tile.small b{font-size:19px}
.phone-game-landscape .discard-pile .tile.small i{width:3px;height:3px;margin-top:1px}
.phone-game-landscape .discard-empty{width:23px;height:30px}
.phone-game-landscape .discard-2{top:3px;left:121px;right:auto;bottom:auto}
.phone-game-landscape .discard-3{bottom:3px;left:121px;right:auto;top:auto}
.phone-game-landscape .discard-1{top:3px;right:121px;left:auto;bottom:auto}
.phone-game-landscape .discard-0{bottom:3px;right:121px;left:auto;top:auto}
.phone-game-landscape .rack-toolbar{margin:0;padding:0 2px;gap:6px;flex-wrap:nowrap;align-items:center;min-width:0}
.phone-game-landscape .rack-toolbar>div{gap:4px;min-width:0}
.phone-game-landscape .rack-toolbar>div:first-child>span{display:none}
.phone-game-landscape .rack-toolbar strong{font-size:11px;color:#c6caa7;white-space:nowrap}
.phone-game-landscape .rack-toolbar .btn.small{min-height:36px;min-width:40px;font-size:10px;padding:6px 10px;color:#cfd1ae;border-color:#90a07745;background:#103e2e}
.phone-game-landscape .rack-toolbar .btn .icon{width:16px;height:16px}
.phone-game-landscape .rack{display:grid;grid-template-columns:repeat(15,minmax(0,48px));align-items:end;justify-content:center;gap:4px;height:76px;min-height:0;padding:12px 8px 7px;border-top-width:3px;border-bottom-width:5px;overflow:visible;touch-action:none}
.phone-game-landscape .rack>.tile{width:100%;min-width:0;height:50px;min-height:50px;padding:3px 1px 0;border-radius:4px;touch-action:none;-webkit-touch-callout:none;-webkit-user-drag:none}
.phone-game-landscape .rack>.tile b{font-size:29px;line-height:1.12}
.phone-game-landscape .rack>.tile i{width:4px;height:4px;margin-top:3px}
.phone-game-landscape .rack>.tile em{font-size:5px;bottom:2px;letter-spacing:.5px}
.phone-game-landscape .rack>.tile:hover{transform:none}
.phone-game-landscape .rack>.tile.selected{transform:translateY(-6px)!important;outline-width:2px;box-shadow:0 3px 8px #0004}
.phone-game-landscape .rack>.tile.touch-sorting{opacity:.3}
.phone-game-landscape .rack>.tile.touch-drop-target{outline:2px dashed #ffe194;outline-offset:2px}
.phone-game-landscape .game-controls{display:flex;flex-wrap:nowrap;align-items:stretch;justify-content:space-between;margin:0;min-width:0;gap:8px}
.phone-game-landscape .player-balance{gap:6px;min-width:0}
.phone-game-landscape .player-balance>.avatar{display:none}
.phone-game-landscape .player-balance strong{color:#e0d6b1;font-size:12px;line-height:1.3;white-space:nowrap}
.phone-game-landscape .player-balance small{font-size:9px;line-height:1.3;margin-top:3px;color:#91ad8a;white-space:nowrap}
.phone-game-landscape .play-buttons{display:flex;flex-wrap:nowrap;gap:6px;margin:0;width:auto}
.phone-game-landscape .play-buttons .btn,.phone-game-landscape .play-buttons .btn.small{min-height:44px;font-size:12px;padding:8px 14px}
.phone-game-landscape .play-buttons .btn.outline{border-color:#abb0806b;color:#e5dbb4;background:#144c39}
.phone-game-landscape .play-buttons .btn.small{font-size:10px;padding:8px 11px}
.phone-game-landscape .play-buttons .btn .icon{width:16px;height:16px}
.phone-game-landscape #table-chat{display:none}
.phone-game-landscape.phone-chat-open #table-chat{display:flex;position:fixed;top:calc(var(--okey-visible-top,0px) + max(8px,env(safe-area-inset-top)));right:max(8px,env(safe-area-inset-right));bottom:auto;width:min(370px,calc(100vw - 32px));height:calc(var(--okey-visible-height,100dvh) - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));min-height:0;max-height:none;z-index:220;box-shadow:0 10px 50px #0008;border:1px solid #bda56d77}
.phone-game-landscape.phone-chat-open .mobile-chat-scrim{display:block;position:fixed;inset:0;z-index:210;border:0;background:#021a12a3}
.phone-game-landscape #table-chat .chat-heading{display:flex;padding:4px 12px;min-height:50px;gap:12px}
.phone-game-landscape #table-chat .chat-heading h3{font-size:14px;flex:1}
.phone-game-landscape #table-chat .chat-close{width:44px;min-height:44px;padding:9px;color:#d3c59a;border-color:transparent;background:transparent}
.phone-game-landscape #table-chat .chat-club-note{display:none}
.phone-game-landscape #table-chat .chat-messages{display:block;flex:1;min-height:0;max-height:none;overflow:auto;padding:12px}
.phone-game-landscape #table-chat .chat-message{margin-bottom:14px}
.phone-game-landscape #table-chat .chat-meta strong{font-size:11px}
.phone-game-landscape #table-chat .chat-meta time{font-size:10px}
.phone-game-landscape #table-chat .chat-message p{font-size:13px;line-height:1.5}
.phone-game-landscape #table-chat form{grid-column:auto;grid-row:auto;flex:none;min-height:44px;margin:4px 9px 9px;align-self:stretch}
.phone-game-landscape #table-chat input{font-size:16px;min-width:0;min-height:44px}
.phone-game-landscape #table-chat form>.icon-btn{width:44px;min-width:44px;height:44px;padding:10px}
.phone-game-landscape #table-chat .chat-footnote{display:none}
.phone-game-landscape .modal-backdrop{padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.phone-game-landscape .modal{max-height:calc(100dvh - 24px);overscroll-behavior:contain}
.phone-game-landscape #toast-region{right:max(12px,env(safe-area-inset-right));left:auto;bottom:calc(max(4px,env(safe-area-inset-bottom)) + 52px);max-width:65vw;z-index:2500}
.phone-game-landscape .toast{font-size:12px;max-width:100%;padding:10px 14px}
@media(max-width:740px){
 .phone-game-landscape .main-content.table-content{gap:3px}
 .phone-game-landscape .table-heading-title{max-width:180px}
 .phone-game-landscape .table-heading-actions{gap:3px}
 .phone-game-landscape .mobile-connection{display:none}
 .phone-game-landscape .table-page-heading h1{font-size:17px}
 .phone-game-landscape .player-position{width:92px;padding:3px 4px;gap:4px;min-height:33px}
 .phone-game-landscape .player-position>.avatar{width:21px;height:21px;font-size:7px}
 .phone-game-landscape .player-position strong{font-size:9px}
 .phone-game-landscape .player-position small{font-size:7px}
 .phone-game-landscape .discard-2,.phone-game-landscape .discard-3{left:100px}
 .phone-game-landscape .discard-1,.phone-game-landscape .discard-0{right:100px}
 .phone-game-landscape .table-center{gap:10px;max-width:calc(100% - 262px)}
 .phone-game-landscape .pot-label{min-width:74px}
 .phone-game-landscape .pot-label>strong{font-size:22px}
 .phone-game-landscape .pot-label>small{font-size:7px;max-width:100px}
 .phone-game-landscape .draw-area{gap:10px}
 .phone-game-landscape .rack{gap:3px;padding-left:6px;padding-right:6px}
 .phone-game-landscape .rack>.tile b{font-size:26px}
 .phone-game-landscape .play-buttons .btn{font-size:11px;padding-left:10px;padding-right:10px}
 .phone-game-landscape .player-balance strong{font-size:11px}
 .phone-game-landscape .player-balance small{font-size:8px}
}
@media(max-height:350px){
 .phone-game-landscape .main-content.table-content{grid-template-rows:40px minmax(0,1fr);gap:3px}
 .phone-game-landscape .table-page-heading .btn{min-height:40px}
 .phone-game-landscape .game-main{grid-template-rows:minmax(60px,1fr) 32px 68px 40px;gap:3px}
 .phone-game-landscape .rack-toolbar .btn.small{min-height:32px}
 .phone-game-landscape .rack{height:68px;padding-top:9px;padding-bottom:5px}
 .phone-game-landscape .rack>.tile{height:46px;min-height:46px}
 .phone-game-landscape .rack>.tile b{font-size:25px}
 .phone-game-landscape .game-controls .btn,.phone-game-landscape .game-controls .btn.small{min-height:40px}
 .phone-game-landscape .player-position{min-height:25px;padding:2px 4px}
 .phone-game-landscape .player-position>.avatar{display:none}
 .phone-game-landscape .player-position small{margin-top:0}
 .phone-game-landscape .table-center{gap:10px}
 .phone-game-landscape .pot-label>strong{font-size:20px}
 .phone-game-landscape .indicator>span:not(.tile){display:none}
 .phone-game-landscape .indicator>.tile{height:38px;min-height:38px}
 .phone-game-landscape .indicator>.tile i{margin-top:0}
 .phone-game-landscape .stock-button{margin-top:0;min-height:53px}
 .phone-game-landscape .tile-back{height:37px}
 .phone-game-landscape .stock-button>strong{top:10px}
 .phone-game-landscape .discard-pile{min-height:28px;min-width:35px;padding:2px}
 .phone-game-landscape .discard-pile .tile.small{height:26px;min-height:26px;width:22px;flex-basis:22px}
 .phone-game-landscape .discard-pile .tile.small b{font-size:17px}
 .phone-game-landscape .discard-pile .tile.small i,.phone-game-landscape .discard-pile small{display:none}
 .phone-game-landscape .discard-empty{height:25px}
}
/* Extremely short browser windows may scroll rather than clip game actions. */
@media(max-height:270px){
 body.phone-game-landscape{overflow:auto}
 .phone-game-landscape #app{height:auto;min-height:100dvh}
 .phone-game-landscape .app-shell{height:auto;overflow:visible}
 .phone-game-landscape .main-wrap{height:auto;min-height:260px}
 .phone-game-landscape .game-main{grid-template-rows:70px 32px 68px 40px}
}
@media(prefers-reduced-motion:reduce){.rotate-phone,.mobile-drag-ghost{transition:none;animation:none}}

/* Admin observers have no private rack; give the public board the remaining space. */
.phone-game-landscape.phone-spectator .game-main{grid-template-rows:minmax(70px,1fr) auto}
.phone-game-landscape.phone-spectator .game-main>.notice{font-size:12px;line-height:1.5;margin:0;padding:8px 12px}
