/* Opt-in flow-lab prototype: native portrait layout, scoped away from live rooms. */
body.flow-portrait-preview {color-scheme:light}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #app {height:100dvh;grid-template-rows:minmax(0,1fr);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
 body.flow-portrait-preview #app>.top {display:none!important}
 body.room-view.flow-portrait-preview #main {height:100%;min-height:0}
 body.room-view.flow-portrait-preview #main .game-shell {position:relative;inset:auto!important;left:0;top:0;width:100%!important;height:100%!important;transform:none!important;grid-template-rows:64px minmax(0,1fr);overflow:hidden}
 body.room-view.flow-portrait-preview #main .game-head {display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:32px 20px;height:64px!important;width:100%;gap:0 8px;padding:6px 12px}
 body.room-view.flow-portrait-preview #main .game-heading {grid-column:1;grid-row:1 / 3;min-width:0;width:auto;display:block;flex:auto}
 body.room-view.flow-portrait-preview #main .room-brand,body.room-view.flow-portrait-preview #main .phase-flow,body.room-view.flow-portrait-preview #main .head-tools :is(.hud-wallet,.room-collection,.room-menu,.room-exit) {display:none!important}
 body.room-view.flow-portrait-preview #main .game-heading-meta .eyebrow {font-size:11px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.room-view.flow-portrait-preview #main .game-heading h1 {font:600 22px/1.25 "Songti SC",serif;margin:5px 0 0}
 body.room-view.flow-portrait-preview #main .head-tools {grid-column:2;grid-row:1;gap:2px;justify-content:end}
 body.room-view.flow-portrait-preview #main .head-tools :is(.room-settings,.room-help) {width:44px;height:42px;padding:8px}
 body.room-view.flow-portrait-preview #main .head-status {grid-column:2;grid-row:2;padding:2px 5px;font-size:11px;line-height:16px;max-width:142px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.room-view.flow-portrait-preview #main .head-status .auction-timer {font-size:12px;padding:0;background:none;border:0}
 body.room-view.flow-portrait-preview #main .columns {height:100%!important;min-height:0;overflow:visible}
 body.room-view.flow-portrait-preview #main .game-shell .main-column {display:grid!important;grid-template-columns:1fr 3fr!important;grid-template-rows:minmax(0,1fr) auto 72px!important;gap:0;width:100%;height:100%!important;min-height:0;overflow:visible}
 body.room-view.flow-portrait-preview #main .game-shell .table-stage {--player-space:86px;grid-column:1 / -1!important;grid-row:1!important;width:100%;height:100%!important;min-height:0!important;background-position:center bottom!important;background-size:cover!important;overflow:visible}
 body.room-view.flow-portrait-preview #main .table-stage:has(.auction-player-list .table-seat:nth-child(4)) {--player-space:134px}
 body.room-view.flow-portrait-preview #main .table-stage::before,body.room-view.flow-portrait-preview #main .spectator-bar,body.room-view.flow-portrait-preview #main .room-nav {display:none!important}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-column {left:10px;right:10px;top:8px;bottom:auto;width:auto;padding:7px;background:#f5efdfef;z-index:6}
 body.room-view.flow-portrait-preview #main .auction-player-column h2 {margin:0 0 5px;font-size:12px;line-height:16px;letter-spacing:.08em}
 body.room-view.flow-portrait-preview #main .auction-player-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-list .table-seat {width:100%!important;height:40px!important;min-height:40px!important;padding:3px 4px;gap:4px;border-radius:6px;overflow:hidden}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-list .seat-avatar {width:25px!important;height:25px!important;flex-basis:25px;border-width:1px}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-list .seat-detail strong {font-size:12px!important;line-height:16px!important;padding-right:5px}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-list .seat-detail :is(small,.seat-role) {display:block!important;font-size:10px!important;line-height:12px!important;margin:0;padding:0}
 body.room-view.flow-portrait-preview #main .table-seat.is-host::after {font-size:10px;right:3px;top:2px}
 body.room-view.flow-portrait-preview #main .game-shell .spirit-ranking {display:none;left:12px;right:12px;top:18px;bottom:auto;width:auto;max-height:calc(100% - 30px);padding:18px;z-index:25;overflow:auto;box-shadow:0 12px 40px #2d423b44;background:#f5efdf}
 body.room-view.flow-portrait-preview #main .game-shell.view-ranking .spirit-ranking {display:block}
 body.room-view.flow-portrait-preview #main .portrait-ranking-close {display:block;min-height:44px;margin:0 0 12px auto;font-size:14px}
 body.room-view.flow-portrait-preview #main .spirit-ranking-row {min-height:56px;gap:10px}
 body.room-view.flow-portrait-preview #main .spirit-rank-detail strong {font-size:17px;line-height:22px}
 body.room-view.flow-portrait-preview #main .spirit-rank-detail [data-card-count] {font-size:14px;line-height:20px}
 body.room-view.flow-portrait-preview #main .spirit-rank-detail [data-spirit-balance] {font-size:16px;line-height:20px}
 body.room-view.flow-portrait-preview #main .game-shell .table-felt {container-type:size;inset:var(--player-space) 10px 8px!important;height:auto!important;width:auto!important;min-height:0!important;padding:10px!important;display:block!important;overflow:visible}
 body.room-view.flow-portrait-preview #main .felt-label {position:static;font-size:15px;line-height:20px;text-align:center;margin:0}
 body.room-view.flow-portrait-preview #main .table-rates {position:static!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin:8px 0 0;padding:0;width:100%;height:auto}
 body.room-view.flow-portrait-preview #main .table-rates .rate-chip {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px;font-size:10px;line-height:13px;padding:4px 1px;white-space:normal;margin:0;min-width:0}
 body.room-view.flow-portrait-preview #main .table-rates .rate-chip :is(strong,small) {font-size:10px;line-height:13px}
 body.room-view.flow-portrait-preview #main .game-shell .felt-cards {top:72px!important;left:0;right:0;height:240px!important;width:auto;overflow:visible}
 body.room-view.flow-portrait-preview #main .game-shell .felt-cards .table-current-card {left:50%!important;top:0!important;width:clamp(64px,calc(73cqh - 135px),166px)!important;transform:translateX(-50%)!important}
 body.room-view.flow-portrait-preview #main .game-shell .table-next-card {left:calc(50% + 106px)!important;top:72px!important;width:44px!important}
 body.room-view.flow-portrait-preview #main .table-next-card .card {width:44px!important}
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status {left:0;right:0;top:auto!important;bottom:0!important;width:100%!important;height:77px!important;padding:6px;transform:none;border-radius:9px}
 body.room-view.flow-portrait-preview #main .table-lot-status .amount {font-size:29px;line-height:34px}
 body.room-view.flow-portrait-preview #main .table-lot-status :is(.eyebrow,.sub) {font-size:11px;line-height:16px}
 body.room-view.flow-portrait-preview #main .game-shell :is(.lab-select-stage,.lab-phase-stage,.lab-finale-stage,.trade-stage,.lobby-welcome) {position:absolute!important;left:10px!important;right:10px!important;top:var(--player-space)!important;bottom:10px!important;width:auto!important;height:auto!important;padding:18px!important;overflow:auto}
 body.room-view.flow-portrait-preview #main .lab-phase-stage .phase-screen-head h2,body.room-view.flow-portrait-preview #main .lab-select-stage h2 {font-size:24px;line-height:1.4;margin:6px 0 10px}
 body.room-view.flow-portrait-preview #main .lab-phase-stage .phase-screen-head :is(p,.section-kicker),body.room-view.flow-portrait-preview #main .lab-select-stage p {font-size:14px;line-height:1.6}
 body.room-view.flow-portrait-preview #main .lab-phase-stage .phase-screen-body {padding:14px 0 0}
 body.room-view.flow-portrait-preview #main .trade-offer-card {min-height:140px;padding:16px;margin:0}
 body.room-view.flow-portrait-preview #main .trade-offer-card strong {font-size:34px;line-height:1.4}
 body.room-view.flow-portrait-preview #main .trade-offer-card :is(span,small) {font-size:12px;line-height:1.5}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel {grid-column:1 / -1!important;grid-row:2!important;height:auto!important;min-height:80px;max-height:270px;padding:14px 14px 12px!important;overflow:auto!important;border-top:1px solid #b8aa82;display:block!important}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel :is(.phase-screen,.phase-screen-actions,.decision-actions,.auction-dock-actions) {width:100%;min-width:0;height:auto!important;overflow:visible;gap:10px}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel :is(input,select) {font-size:16px;min-height:44px;width:100%;min-width:0;padding:8px 10px;border-radius:8px}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel label {font-size:13px;line-height:1.4}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel button {min-height:44px;font-size:15px;padding:9px 12px;white-space:normal;min-width:0!important}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel .phase-screen {display:flex!important;flex-direction:column!important;align-items:stretch!important}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel .phase-screen-actions {display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:start!important;gap:10px;padding:0}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel .decision-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;background:none;border:0}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel .decision-actions {display:flex;align-items:stretch;justify-content:stretch}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel .decision-actions button {flex:1}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock {display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;gap:8px;height:auto;align-items:stretch;padding:0}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .bid-entry {display:flex!important;align-items:end;gap:10px;grid-column:1;grid-row:1}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .bid-field {flex:1;min-width:0;display:block}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .bid-shortcuts {display:flex;flex-direction:row;gap:6px;padding:0;flex:none}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .bid-shortcuts>span {display:none}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .bid-shortcuts button {min-width:44px!important;padding:7px 9px}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .payment-preview {grid-column:1!important;grid-row:2!important;white-space:normal;font-size:12px;line-height:17px;margin:0}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .auction-dock-actions {grid-column:1!important;grid-row:3!important;display:flex;gap:8px;flex-direction:column}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .auction-dock-actions .primary {width:100%!important}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .auction-dock-actions .bid-pass {min-height:36px;font-size:12px;padding:5px}
 body.room-view.flow-portrait-preview #main .game-shell .desk-pack {grid-column:1!important;grid-row:3!important;width:100%;height:72px!important;min-height:0!important;padding:6px 8px;display:flex!important;align-items:center;justify-content:center;gap:4px;border-top:1px solid #b8aa82}
 body.room-view.flow-portrait-preview #main .desk-pack>span {font-size:12px;white-space:nowrap}
 body.room-view.flow-portrait-preview #main .desk-pack :is(small,.desk-pack-stars) {display:none!important}
 body.room-view.flow-portrait-preview #main .desk-pack .ui-icon {width:22px;height:22px}
 body.room-view.flow-portrait-preview #main .game-shell .desk-side-buttons {grid-column:2!important;grid-row:3!important;height:72px!important;display:flex!important;padding:4px 0;border-top:1px solid #b8aa82}
 body.room-view.flow-portrait-preview #main .desk-side-buttons button {display:flex;flex:1;min-width:0;min-height:44px;align-items:center;justify-content:center;gap:3px;padding:4px 2px;flex-direction:column;font-size:11px;line-height:16px;white-space:nowrap}
 body.room-view.flow-portrait-preview #main .desk-side-buttons .ui-icon {width:22px;height:22px}
 body.room-view.flow-portrait-preview #main .portrait-ranking-entry::before {content:'榜';display:grid;place-items:center;width:22px;height:22px;border:1px solid #9b8a5d;border-radius:5px;font:15px/1 "Songti SC",serif;color:#8c5d39}
 body.room-view.flow-portrait-preview #main .columns>aside {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:none!important;z-index:25;min-height:0;overflow:hidden;background:transparent!important}
 body.room-view.flow-portrait-preview #main .game-shell:is(.view-chat,.view-info) .columns>aside {display:block!important;pointer-events:none}
 body.room-view.flow-portrait-preview #main .game-shell .columns>aside :is(.chat-panel,.info-panel) {position:absolute!important;left:10px!important;right:10px!important;top:72px!important;bottom:10px!important;width:auto!important;height:auto!important;max-height:none;z-index:26;overflow:auto;pointer-events:auto;padding:16px!important}
 body.room-view.flow-portrait-preview #main .game-shell.view-chat .chat-panel {display:flex!important;flex-direction:column;gap:8px}
 body.room-view.flow-portrait-preview #main .game-shell.view-info .info-panel {display:block!important}
 body.room-view.flow-portrait-preview #main .game-shell .chat-list {flex:1;min-height:0;height:auto!important;overflow:auto}
 body.room-view.flow-portrait-preview #main .game-shell .sheet-backdrop {position:absolute!important;inset:0!important;width:100%;height:100%;z-index:24;display:none!important;background:#263b314d!important}
 body.room-view.flow-portrait-preview #main .game-shell:is(.view-ranking,.view-chat,.view-info) .sheet-backdrop {display:block!important}
 body.room-view.flow-portrait-preview #main .game-shell .collection-panel {position:absolute!important;inset:10px!important;width:auto!important;height:auto!important;z-index:26;padding:16px;overflow:auto}
 body.room-view.flow-portrait-preview #main .game-shell .pack-scrim {inset:0!important;width:100%;height:100%}
 body.room-view.flow-portrait-preview #main .collection-panel .section-heading {flex-wrap:wrap;gap:6px}
 body.room-view.flow-portrait-preview #main .pack-tray-cards {grid-template-columns:repeat(2,minmax(0,1fr))}
 body.room-view.flow-portrait-preview #main .lab-select-stage .blind-grid {flex-wrap:wrap;gap:8px;margin:12px 0}
 body.room-view.flow-portrait-preview #main .lab-select-stage .blind-card {flex:0 0 92px;width:92px;height:128px;max-width:100%}
 body.room-view.flow-portrait-preview #main .lab-select-stage .selection-help {font-size:12px;padding:8px}
 body.room-view.flow-portrait-preview #main .lab-finale-stage .finale-layout {display:flex;flex-direction:column;gap:18px;height:auto}
 body.room-view.flow-portrait-preview #main .lab-finale-stage .finale-hero {gap:8px;align-items:stretch}
 body.room-view.flow-portrait-preview #main .lab-finale-stage .finale-hero h2 {font-size:26px}
 body.room-view.flow-portrait-preview #main .lab-finale-stage .finale-hero>strong {font-size:34px}
 body.room-view.flow-portrait-preview #main .lab-finale-stage .ranking {overflow:visible}
 body.room-view.flow-portrait-preview #main .phase-lobby .table-stage {--player-space:242px}
 body.room-view.flow-portrait-preview #main .phase-lobby .auction-player-list {grid-template-columns:repeat(2,minmax(0,1fr))}
 body.room-view.flow-portrait-preview #main .game-shell.phase-lobby .auction-player-list .table-seat {height:66px!important;min-height:66px!important;flex-wrap:wrap;align-content:center;gap:2px 5px}
 body.room-view.flow-portrait-preview #main .phase-lobby .auction-player-list .seat-mini {width:100%;min-height:28px;font-size:11px;padding:3px}
 body.room-view.flow-portrait-preview #main .phase-lobby .auction-player-list .vacant .seat-detail strong {font-size:12px!important}
 body.room-view.flow-portrait-preview #main .phase-lobby .lobby-welcome h2 {font-size:26px;margin:6px 0}
 body.room-view.flow-portrait-preview #main .phase-lobby .lobby-welcome p {font-size:13px;line-height:1.5;margin:4px 0}
 body.room-view.flow-portrait-preview #main .phase-lobby .lobby-count {margin:6px 0}
 body.room-view.flow-portrait-preview #main .phase-lobby .lobby-count strong {font-size:28px}
 body.room-view.flow-portrait-preview #main .game-shell .sealed-dock {display:flex!important;flex-direction:column;gap:8px;padding:0}
 body.room-view.flow-portrait-preview #main .sealed-dock :is(.sealed-dock-choice,.sealed-dock-actions) {display:flex;flex-wrap:wrap;gap:8px}
 body.room-view.flow-portrait-preview #main .sealed-dock button {flex:1}
 body.room-view.flow-portrait-preview #main .game-shell .prep-dock {display:flex!important;flex-direction:column;align-items:stretch;gap:8px;padding:0}
 body.room-view.flow-portrait-preview #main .prep-dock :is(.prep-dock-actions,.prep-dock-sell) {display:flex;flex-wrap:wrap;gap:8px}
 body.room-view.flow-portrait-preview #main .game-shell .table-prep-status {bottom:8px!important;left:0!important;right:0!important;font-size:11px!important;padding:6px;width:100%}
 body.room-view.flow-portrait-preview #main .game-shell.phase-pre-auction:has(.table-prep-status) .felt-cards {top:72px!important;height:240px}
 body.room-view.flow-portrait-preview #main .game-shell .trade-stage-main {display:flex;flex-direction:column;gap:12px}
 body.room-view.flow-portrait-preview #main .trade-stage-heading h2 {font-size:22px}
 body.room-view.flow-portrait-preview #main .trade-stage .trade-card-options,body.room-view.flow-portrait-preview #main .trade-target-options {display:flex;flex-wrap:wrap;gap:8px}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel .trade-dock,body.room-view.flow-portrait-preview #main .game-shell .action-panel .roll-dock {display:flex!important;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;padding:0}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel .trade-dock button {flex:1}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel .finale-dock {font-size:12px;line-height:1.5;min-height:40px;text-align:center}
}

@media (max-width:600px) and (orientation:portrait) and (max-height:700px) {
 body.room-view.flow-portrait-preview #main .game-shell .table-stage {--player-space:62px}
 body.room-view.flow-portrait-preview #main .table-stage:has(.auction-player-list .table-seat:nth-child(4)) {--player-space:96px}
 body.room-view.flow-portrait-preview #main .auction-player-column h2 {display:none}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-list .table-seat {height:32px!important;min-height:32px!important}
 body.room-view.flow-portrait-preview #main .table-felt :is(.felt-label,.table-rates,.table-next-card) {display:none!important}
 body.room-view.flow-portrait-preview #main .game-shell .felt-cards {top:0!important;height:90px!important}
 body.room-view.flow-portrait-preview #main .game-shell .felt-cards .table-current-card {width:64px!important}
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status {height:60px!important}
 body.room-view.flow-portrait-preview #main .table-lot-status .amount {font-size:24px;line-height:27px}
}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .action-panel .phase-screen-head {display:none!important}
 body.room-view.flow-portrait-preview #main .game-shell .sealed-dock :is(.sealed-dock-input,.sealed-dock-entry,.sealed-dock-shortcuts,.sealed-dock-actions) {display:flex!important;flex-wrap:wrap;gap:6px;width:100%;min-width:0}
 body.room-view.flow-portrait-preview #main .game-shell .sealed-dock label {display:flex;align-items:center;gap:8px;width:100%}
 body.room-view.flow-portrait-preview #main .game-shell .sealed-dock input {flex:1;min-width:0}
 body.room-view.flow-portrait-preview #main .game-shell .sealed-dock-shortcuts button {flex:1;min-width:40px!important}
 body.room-view.flow-portrait-preview #main .game-shell .sealed-dock-actions button.primary {width:100%}
}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .sealed-dock-row {display:flex!important;flex-direction:column;align-items:stretch;gap:8px;width:100%;min-width:0}
 body.room-view.flow-portrait-preview #main .game-shell .sealed-dock-hint {font-size:12px;line-height:17px}
}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .action-panel {border:0!important;border-top:1px solid #b8aa82!important}
}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .trade-stage :is(.trade-card-choices,.trade-peer-choices) {display:flex;flex-wrap:wrap;overflow:visible;gap:8px;max-height:none}
 body.room-view.flow-portrait-preview #main .game-shell .trade-peer-choices .trade-choice {width:100%;min-width:0;min-height:44px;padding:8px}
 body.room-view.flow-portrait-preview #main .game-shell .trade-quote-main {display:flex;flex-direction:column;align-items:stretch;gap:12px}
 body.room-view.flow-portrait-preview #main .game-shell .trade-quote-fields :is(input,select) {font-size:16px;min-height:44px;width:100%;min-width:0}
 body.room-view.flow-portrait-preview #main .game-shell .trade-money-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
 body.room-view.flow-portrait-preview #main .game-shell .trade-quote-fields label {font-size:13px;line-height:1.5}
 body.room-view.flow-portrait-preview #main .game-shell .trade-dock-actions {display:flex;gap:8px;width:100%}
 body.room-view.flow-portrait-preview #main .game-shell .trade-dock-actions button {flex:1}
}
/* Rotation falls back to the existing landscape scene without extra drawer controls. */
body.flow-portrait-preview .game-shell :is(.portrait-ranking-entry,.portrait-ranking-close) {display:none!important}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .portrait-ranking-entry {display:flex!important}
 body.room-view.flow-portrait-preview #main .game-shell .portrait-ranking-close {display:block!important}
}
/* Portrait visual system: quiet paper surfaces, readable type and content-sized controls. */
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell {font-family:"PingFang SC",system-ui,sans-serif;color:#33473e;background:#eee9db;--line:#d3cfba;--muted:#607267}
 body.room-view.flow-portrait-preview #main .game-head {background:#f8f4e8;border-bottom:1px solid #d3cfba;padding:6px 14px}
 body.room-view.flow-portrait-preview #main .game-heading h1 {font-size:21px;line-height:28px;margin:2px 0 0}
 body.room-view.flow-portrait-preview #main .head-tools :is(.room-settings,.room-help) {height:32px;min-height:32px;border:0;background:transparent;padding:4px 10px}
 body.room-view.flow-portrait-preview #main .head-status {font-size:10px;line-height:16px;border:0;background:none;color:#617266;padding:0 4px;text-align:right}
 body.room-view.flow-portrait-preview #main .auction-player-column {background:#faf7efed;border:1px solid #d8d0b8;border-radius:12px;padding:7px 8px}
 body.room-view.flow-portrait-preview #main .auction-player-column h2 {color:#667568;font-size:11px;font-family:inherit;letter-spacing:.08em}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-list .table-seat {background:#f6f3e9;border-color:#dfd8c3;border-radius:8px}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-list .table-seat.is-me {background:#eee8d7!important;border-color:#ad7860!important;box-shadow:none!important}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-list .seat-avatar {flex:0 0 26px!important;width:26px!important;height:26px!important;min-height:26px;line-height:24px!important;font-size:20px!important;aspect-ratio:1}
 body.room-view.flow-portrait-preview #main .game-shell .auction-player-list .seat-detail strong {font-weight:600;line-height:17px!important}
 body.room-view.flow-portrait-preview #main .game-shell .felt-label {display:none!important}
 body.room-view.flow-portrait-preview #main .game-shell .table-rates {grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;margin:0;padding:0 2px}
 body.room-view.flow-portrait-preview #main .game-shell .table-rates .rate-chip {font-size:12px;line-height:17px;min-height:25px;gap:6px;white-space:nowrap;padding:3px 7px;background:#f9f6ece8;border:1px solid #ddd5be;border-radius:6px;color:#52675b}
 body.room-view.flow-portrait-preview #main .game-shell .table-rates .rate-chip small {font-size:11px;line-height:17px;color:#6a796d}
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status {height:auto!important;min-height:78px;padding:9px 12px 10px;gap:2px;border:1px solid #e2dcc9;border-radius:12px;background:#fbf8edf2;box-shadow:0 2px 12px #53664d0d}
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status .amount {font-size:28px!important;line-height:38px!important;min-height:38px;height:auto;font-weight:650}
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status .amount small {font-size:13px;line-height:20px}
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status :is(.sub,.eyebrow) {font-size:11px;line-height:16px;white-space:normal;overflow-wrap:anywhere;letter-spacing:0;max-width:100%}
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status.is-dice {min-height:102px}
 body.room-view.flow-portrait-preview #main .game-shell .table-die {--die-size:38px;margin:0 auto;height:58px;flex:none}
 body.room-view.flow-portrait-preview #main .game-shell .table-felt:has(.is-dice) .table-current-card {width:clamp(64px,calc(73cqh - 152px),166px)!important}
 body.room-view.flow-portrait-preview #main .game-shell :is(.lab-select-stage,.lab-phase-stage,.lab-finale-stage,.trade-stage,.lobby-welcome) {border:1px solid #d9d1bb;border-radius:14px;background:#fbf8edeb!important;box-shadow:0 3px 14px #4d644816;padding:20px!important}
 body.room-view.flow-portrait-preview #main .game-shell :is(.lab-select-stage h2,.lab-phase-stage h2,.trade-stage-heading h2) {font-size:22px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
 body.room-view.flow-portrait-preview #main .game-shell :is(.phase-screen-head p,.trade-stage-heading p,.lab-select-stage p) {font-size:13px;line-height:1.7;color:#5f7165}
 body.room-view.flow-portrait-preview #main .game-shell .trade-offer-card {min-height:120px;gap:8px;padding:18px;border-radius:10px;background:#e9eddf;border:1px solid #d3dbc6}
 body.room-view.flow-portrait-preview #main .game-shell .trade-offer-card strong {font-size:28px;line-height:1.5;max-width:100%;overflow-wrap:anywhere;white-space:normal}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel {width:auto;margin:0 12px;padding:14px!important;background:#faf7ed!important;border:1px solid #d8d0b9!important;border-radius:14px;box-shadow:0 3px 16px #51634a12}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel :is(button,input,select) {border-radius:8px;box-sizing:border-box;flex-shrink:0}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel button {height:auto!important;min-height:44px;line-height:22px!important;font-size:14px!important;font-weight:600;white-space:normal!important;overflow-wrap:anywhere;display:flex;align-items:center;justify-content:center;padding:9px 10px!important;flex-shrink:0;margin:0}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel button.primary {background:#a85c45!important;border-color:#96513d!important;color:#fff8e9!important}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel button.ghost {background:#f0f1e5!important;border:1px solid #d1d8c4!important;color:#536a5c!important}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel label {line-height:20px;font-size:12px;min-width:0;white-space:normal}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel :is(input,select) {font-size:16px!important;line-height:22px;height:auto!important;min-height:44px;margin:4px 0 0;background:#fffdf5;border:1px solid #c9cfb8}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .auction-dock-actions {gap:5px}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .auction-dock-actions .bid-pass {background:transparent!important;border:0!important;font-size:12px!important;min-height:32px;padding:3px!important;font-weight:400}
 body.room-view.flow-portrait-preview #main .game-shell .auction-dock .payment-preview {font-size:11px;line-height:18px;padding:0;overflow-wrap:anywhere}
 body.room-view.flow-portrait-preview #main .game-shell .action-panel :is(.prep-dock-row,.roll-dock-controls) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;min-width:0;white-space:normal}
 body.room-view.flow-portrait-preview #main .game-shell .prep-dock-row :is(label,.prep-dock-state) {grid-column:1 / -1;min-width:0;width:100%;display:grid;gap:4px}
 body.room-view.flow-portrait-preview #main .game-shell .prep-dock-row :is(select,button,.prep-dock-sell-muted) {width:100%;min-width:0!important;white-space:normal}
 body.room-view.flow-portrait-preview #main .game-shell .prep-dock :is(.prep-dock-hint,.prep-dock-sell-muted,.prep-dock-state) {font-size:12px;line-height:18px;white-space:normal;overflow-wrap:anywhere}
 body.room-view.flow-portrait-preview #main .game-shell .prep-dock-state {color:#748173;font-size:11px!important}
 body.room-view.flow-portrait-preview #main .game-shell .roll-dock :is(.roll-dock-hint,small,.roll-dock-wait) {font-size:12px;line-height:19px;white-space:normal;min-width:0}
 body.room-view.flow-portrait-preview #main .game-shell .round-complete {padding:18px;gap:10px;border-radius:12px;line-height:1.6}
 body.room-view.flow-portrait-preview #main .game-shell .round-complete strong {font-size:48px;line-height:64px}
 body.room-view.flow-portrait-preview #main .game-shell .round-complete span {font-size:14px;line-height:24px}
 body.room-view.flow-portrait-preview #main .game-shell .desk-pack,body.room-view.flow-portrait-preview #main .game-shell .desk-side-buttons {height:72px!important;border:0;background:#f6f3e9!important;padding:6px 0;box-shadow:none}
 body.room-view.flow-portrait-preview #main .game-shell .desk-pack {border-radius:0;align-self:end}
 body.room-view.flow-portrait-preview #main .desk-pack>span {display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;line-height:17px;white-space:nowrap}
 body.room-view.flow-portrait-preview #main .game-shell .desk-side-buttons button {border:0;border-radius:0!important;background:transparent;gap:4px;font-size:11px;font-weight:500;line-height:17px;min-height:50px}
 body.room-view.flow-portrait-preview #main .game-shell .desk-side-buttons .ui-icon,body.room-view.flow-portrait-preview #main .desk-pack .ui-icon {width:24px;height:24px;object-fit:contain}
 body.room-view.flow-portrait-preview #main .game-shell .portrait-ranking-entry::before {width:24px;height:24px;border-color:#beac7d;background:#f5efda}
 body.room-view.flow-portrait-preview #main .game-shell .spirit-ranking {height:max-content!important;max-height:calc(100% - 24px);top:12px;left:12px;right:12px;bottom:auto!important;background:#faf7ed;border:1px solid #d7ceb4;border-radius:16px;padding:18px;box-shadow:0 12px 40px #2e433430}
 body.room-view.flow-portrait-preview #main .spirit-ranking header {padding-right:44px}
 body.room-view.flow-portrait-preview #main .spirit-ranking h2 {font-size:21px;line-height:29px;letter-spacing:0;margin:0 0 4px}
 body.room-view.flow-portrait-preview #main .game-shell .portrait-ranking-close {position:absolute;top:10px;right:10px;width:44px;min-height:44px;height:44px;margin:0;padding:0;border:0;background:transparent;color:#566b5d;font-size:26px;line-height:32px}
 body.room-view.flow-portrait-preview #main .spirit-ranking ol {gap:7px}
 body.room-view.flow-portrait-preview #main .spirit-ranking-row {border-radius:9px;min-height:58px;background:#edf0e4}
 body.room-view.flow-portrait-preview #main .spirit-rank-name {gap:8px}
 body.room-view.flow-portrait-preview #main .spirit-rank-detail strong {font-size:15px;line-height:21px}
 body.room-view.flow-portrait-preview #main .spirit-rank-detail [data-card-count] {font-size:12px;line-height:18px}
 body.room-view.flow-portrait-preview #main .spirit-rank-detail [data-spirit-balance] {font-size:15px;line-height:21px}
 body.room-view.flow-portrait-preview #main .game-shell .columns>aside {border:0!important;border-radius:0!important}
 body.room-view.flow-portrait-preview #main .game-shell .columns>aside :is(.chat-panel,.info-panel),body.room-view.flow-portrait-preview #main .game-shell .collection-panel {background:#faf7ed!important;border:1px solid #d7ceb4!important;border-radius:16px!important;box-shadow:0 12px 40px #2e433430;transform:none!important;opacity:1!important;animation:none!important;transition:none!important}
 body.room-view.flow-portrait-preview #main .game-shell .collection-panel {inset:12px 12px 82px!important;overflow:auto!important;padding:18px!important}
 body.room-view.flow-portrait-preview #main .game-shell .collection-panel .panel-return {position:static!important;display:flex!important;justify-content:flex-end;margin:0 0 12px auto;min-height:40px;line-height:20px;font-size:13px}
 body.room-view.flow-portrait-preview #main .game-shell :is(.chat-panel,.info-panel) :is(h2,h3,p,li,label,small,button) {color:#4a6052;line-height:1.6;overflow-wrap:anywhere}
 body.room-view.flow-portrait-preview #main .game-shell :is(.chat-panel,.info-panel) h2 {font-size:21px;line-height:30px}
 body.room-view.flow-portrait-preview #main .game-shell :is(.chat-panel,.info-panel) h3 {font-size:15px;line-height:24px}
 body.room-view.flow-portrait-preview #main .game-shell :is(.chat-panel,.info-panel) :is(p,li,label) {font-size:13px}
 body.room-view.flow-portrait-preview #main .game-shell .room-log li {border-color:#ddd8c7;padding:10px 0;line-height:21px}
 body.room-view.flow-portrait-preview #main .game-shell :is(.chat-panel,.info-panel) button {font-size:13px;line-height:20px;min-height:40px;height:auto;white-space:normal;padding:8px 10px;max-width:100%}
 body.room-view.flow-portrait-preview #main .game-shell :is(.chat-panel,.info-panel) :is(input,select,textarea) {font-size:16px;line-height:22px;min-height:44px;max-width:100%}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray {grid-template-rows:auto minmax(0,1fr) auto;gap:12px;height:calc(100% - 52px)}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-head {flex-wrap:wrap;align-items:baseline;padding:0 0 12px;gap:5px 10px}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-head strong {font-size:18px;line-height:27px}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-head span {font-size:12px;line-height:18px;overflow-wrap:anywhere}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;align-content:start;padding:0}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-card {width:100%;min-width:0;max-height:none;grid-template-rows:auto auto}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-card .card {width:100%;max-height:none}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-card>span {max-width:100%;font-size:11px;line-height:18px}
 body.room-view.flow-portrait-preview #main .game-shell .ranking-head :is(span,small) {font-size:14px;line-height:22px;height:auto;min-height:22px}
 body.room-view.flow-portrait-preview #main .game-shell .phase-lobby .table-stage {--player-space:298px}
 body.room-view.flow-portrait-preview #main .game-shell.phase-lobby .auction-player-list .table-seat {height:82px!important;min-height:82px!important;padding:5px;gap:4px 5px}
 body.room-view.flow-portrait-preview #main .game-shell.phase-lobby .auction-player-list .seat-mini {min-height:38px;height:auto;line-height:18px;font-size:11px;white-space:normal;padding:5px}
}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .action-panel {width:calc(100% - 24px)!important;margin:0 12px 8px!important;border-radius:14px!important}
 body.room-view.flow-portrait-preview #main .game-shell :is(.lab-phase-stage,.trade-stage,.lobby-welcome) {bottom:auto!important;height:max-content!important;max-height:calc(100% - var(--player-space) - 20px);overflow:auto!important}
 body.room-view.flow-portrait-preview #main .game-shell.phase-lobby .table-stage {--player-space:308px}
 body.room-view.flow-portrait-preview #main .game-shell .table-prep-status {height:auto!important;min-height:0;padding:8px!important;line-height:17px;overflow-wrap:anywhere}
 body.room-view.flow-portrait-preview #main .game-shell .selection-help {gap:6px;flex-wrap:wrap;line-height:20px}
}
@media (max-width:600px) and (orientation:portrait) and (max-height:700px) {
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status {height:auto!important;min-height:58px;padding:5px;gap:0}
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status .amount {font-size:22px!important;line-height:28px!important;min-height:28px}
 body.room-view.flow-portrait-preview #main .game-shell .table-lot-status :is(.eyebrow,.sub) {font-size:10px;line-height:14px}
}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .blind-card {transform:none!important;max-width:100%;min-width:0}
 body.room-view.flow-portrait-preview #main .game-shell .table-next-card .blind-card {width:100%!important;min-width:0!important;height:auto!important;aspect-ratio:815 / 1110}
 body.room-view.flow-portrait-preview #main .game-shell .table-next-card :is(.back-number,.blind-card-label,small) {font-size:9px;line-height:14px;max-width:100%;white-space:normal}
}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .blind-card.current::after {display:none!important}
 body.room-view.flow-portrait-preview #main .game-shell .table-next-card .card-back-number {font-size:7px;line-height:11px;letter-spacing:0;max-width:100%}
}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .trade-peer-choices .trade-choice {display:grid;grid-template-columns:30px minmax(0,1fr);gap:3px 8px;text-align:left;min-width:0;width:100%;padding:10px}
 body.room-view.flow-portrait-preview #main .game-shell .trade-peer-choices .trade-choice :is(img,span:first-child) {grid-column:1;grid-row:1 / 3;width:30px;height:30px}
 body.room-view.flow-portrait-preview #main .game-shell .trade-peer-choices .trade-choice b {grid-column:2;min-width:0;width:100%;font-size:14px;line-height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.room-view.flow-portrait-preview #main .game-shell .trade-peer-choices .trade-choice small {grid-column:2;min-width:0;font-size:12px;line-height:18px;white-space:normal;overflow-wrap:anywhere}
 body.room-view.flow-portrait-preview #main .game-shell .trade-preview {height:auto!important;max-height:104px!important;overflow:auto!important;font-size:12px;line-height:19px;padding:10px;white-space:normal;overflow-wrap:anywhere}
}
@media (max-width:600px) and (orientation:portrait) {
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-card {transform:none!important;opacity:1!important;animation:none!important;transition:none!important}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-card .card {aspect-ratio:815 / 1110;height:auto!important;min-height:0;max-height:none;overflow:hidden}
 body.room-view.flow-portrait-preview #main .game-shell .pack-tray-card .card>img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
}
