.sd-rules{margin:12px 0;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(4,60,44,.55);color:inherit}
.sd-rules>summary{min-height:44px;padding:12px 14px;font-weight:700;cursor:pointer;display:flex;align-items:center}
.sd-rules-body{padding:0 14px 14px;font-size:.95rem;line-height:1.45}
.sd-rules ol{margin:8px 0;padding-left:1.4em}
.sd-rules li{padding:2px 0}
.sd-rules li.sd-flip{color:#ffd76a;font-weight:700}
.sd-rules p{margin:6px 0}
.sd-rules button{min-height:44px;min-width:44px;margin-top:6px;padding:0 14px;border-radius:10px;border:1px solid rgba(255,255,255,.3);background:transparent;color:inherit;font:inherit;cursor:pointer}

html.pip-immersive .sd-rules{display:none}
.p-actions .p-button{transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}
.p-actions .p-button:active{transform:scale(.96);filter:brightness(1.12)}
.p-actions .p-button:focus-visible{outline:3px solid #ffd76a;outline-offset:2px}
.p-seat{box-shadow:0 6px 16px rgba(0,20,12,.35),inset 0 1px 0 rgba(255,255,255,.08)}
.p-status{transition:background-color .25s ease}
@media (prefers-reduced-motion:reduce){.p-actions .p-button,.p-status{transition:none}.p-actions .p-button:active{transform:none}}

/* Full screen fit: table, status and action buttons own the screen; study, review and intro copy are hidden. */
html.pip-immersive body .p-play>:is(#poker-depth-gameplay,#poker-depth-replay,#poker-coach),
html.pip-native body .p-play>:is(#poker-depth-gameplay,#poker-depth-replay,#poker-coach){display:none!important}
html.pip-native body .p-play{display:flex;flex-direction:column;gap:.3rem;box-sizing:border-box;width:100%;height:100%;padding:.4rem .6rem;overflow:hidden;border-radius:0;box-shadow:none}
html.pip-native body .p-play::before{display:none}
html.pip-native body .p-play>*{flex:none;min-width:0}
html.pip-native body .p-play>#poker-table{order:1}
html.pip-native body .p-play>#poker-status{order:2;margin:.1rem 0}
html.pip-native body .p-play>#poker-actions{order:3;margin:.1rem 0}
html.pip-native body .p-play>.p-controls,html.pip-native body .p-play>#poker-paused{order:4;margin:.1rem 0}
html.pip-native body .p-play>#poker-setup-details{order:10;margin:0}
html.pip-native body #poker-table .p-seats{grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.4rem}
html.pip-native .p-actions .p-button{min-height:44px}
html.pip-immersive body .p-play,html.pip-native body .p-play{overflow:hidden}
html.pip-immersive body #poker-setup-details[open],html.pip-native body #poker-setup-details[open]{max-height:60vh;overflow-y:auto}
html.pip-immersive body #poker-setup-details .p-form,html.pip-native body #poker-setup-details .p-form{grid-template-columns:repeat(2,minmax(0,1fr))}
html.pip-immersive body #poker-setup-details :is(input,select,button),html.pip-native body #poker-setup-details :is(input,select,button){min-height:44px}
html.pip-immersive body #poker-setup-details .p-full,html.pip-native body #poker-setup-details .p-full{grid-column:1/-1}
@media (orientation:landscape) and (max-height:520px){
  html.pip-immersive body .p-play,html.pip-native body .p-play{display:grid;grid-template-columns:minmax(0,1fr) 15rem;grid-template-rows:repeat(6,auto);align-content:start;column-gap:.6rem;row-gap:.25rem;padding:.3rem .5rem}
  html.pip-immersive body .p-play>*,html.pip-native body .p-play>*{grid-column:2;grid-row:auto;order:0;margin:0}
  html.pip-immersive body .p-play>#poker-table,html.pip-native body .p-play>#poker-table{grid-column:1;grid-row:1/span 6;min-width:0}
  html.pip-immersive body .p-play>.pip-dock,html.pip-native body .p-play>.pip-dock{grid-column:auto;grid-row:auto}
  html.pip-immersive body #poker-setup-details[open],html.pip-native body #poker-setup-details[open]{max-height:calc(100vh - 7rem)}
  html.pip-immersive body .p-play>#poker-result,html.pip-native body .p-play>#poker-result{display:none}
}
