/* Scoped to OddPoker; shared navigation, settings and other game assets stay intact. */
.op-game-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.op-mode-number{font:500 32px/1 Georgia,serif;color:var(--accent);opacity:.7}.op-game-grid .game{position:relative;min-height:250px}.op-game-grid h3{font-size:26px}.op-setup{display:grid;grid-template-columns:1fr;gap:7px;width:100%;padding:20px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.op-setup select{padding:12px;background:var(--surface-raised);color:var(--text);border:1px solid var(--border);border-radius:8px}.op-setup label{font-size:12px;font-weight:700}.op-setup p{font-size:13px;line-height:1.6;margin:6px 0 0;color:var(--muted)}
body.op-modern .table{position:relative;background:radial-gradient(ellipse at 50% 42%,#215247 0%,#10392f 65%,#09271f 100%);border:2px solid #9f8653;box-shadow:inset 0 0 0 5px #18382b,0 18px 50px #0003;color:#f2eee2}
body.op-modern .op-dealer{display:flex;align-items:center;justify-content:center;gap:7px;letter-spacing:2px;font-size:8px;color:#bfc9b9}.op-deck{display:grid;place-items:center;width:22px;height:30px;border:1px solid #baad7a;border-radius:4px;background:repeating-linear-gradient(45deg,#24463c,#24463c 3px,#315a4d 3px,#315a4d 5px);box-shadow:2px 2px 0 #d1cfbc}
body.op-modern .op-board{display:flex;gap:4px;justify-content:center}.op-board:empty{display:none}.op-button{border:1px solid #c7b779;border-radius:50%;background:#ebdfbd;color:#193528!important;width:18px;height:18px;text-align:center;line-height:16px;font-size:10px!important;flex:none}.op-card-mark{font-size:6px;letter-spacing:.25px;color:#57695c;line-height:1}.op-hand-label{font-size:13px;font-weight:650;color:#f4d991;text-align:center;margin:4px 0}.op-best{outline:2px solid #e9bf5c;outline-offset:1px}.op-draw-card{padding:0!important;min-height:0!important;background:none!important;border:0!important;display:flex;flex:0 1 56px;min-width:0;max-width:18%}.op-draw-card.selected{transform:translateY(-5px)}.op-draw-card.selected .card{outline:3px solid #8ed7ed}.op-draw-card.selected::after{content:'REPLACE';position:absolute;bottom:1px;left:0;right:0;font-size:7px;background:#153f4e;color:white}.op-draw-card .card{width:100%!important;max-width:100%!important;flex:1!important}.op-folded .cards{opacity:.4}
body.op-modern.pf-playing[data-pf-game="stud"] > main{max-width:1100px;padding:4px 10px 6px}
body.op-modern.pf-playing[data-pf-game="stud"] .table{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,1.1fr) minmax(0,1fr);grid-template-rows:minmax(60px,.8fr) minmax(90px,1fr) minmax(108px,1.2fr);gap:8px;padding:12px;border-radius:90px / 120px;overflow:hidden}
body.op-modern.pf-playing[data-pf-game="stud"] .seats{display:contents}
body.op-modern.pf-playing[data-pf-game="stud"] .seat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px;min-width:0;background:transparent;border:1px solid transparent;border-radius:12px;overflow:visible}
body.op-modern.pf-playing[data-pf-game="stud"] .seat[data-position="top"]{grid-column:2;grid-row:1}
body.op-modern.pf-playing[data-pf-game="stud"] .seat[data-position="left"]{grid-column:1;grid-row:2}
body.op-modern.pf-playing[data-pf-game="stud"] .seat[data-position="right"]{grid-column:3;grid-row:2}
body.op-modern.pf-playing[data-pf-game="stud"] .seat[data-position="bottom"]{grid-column:1/-1;grid-row:3;align-self:end;width:100%;max-width:640px;justify-self:center}
body.op-modern.pf-playing[data-pf-game="stud"] .seat.op-active{border-color:#c9b376;background:#ffffff08}
body.op-modern.pf-playing[data-pf-game="stud"] .seat > h2{display:flex;justify-content:center;flex-wrap:wrap;gap:3px 7px;width:100%;margin:0;min-height:15px;flex:none}
body.op-modern.pf-playing[data-pf-game="stud"] .seat h2 .pf-seat-name{font-size:11px;color:#fff;max-width:70%}
body.op-modern.pf-playing[data-pf-game="stud"] .seat h2 .pf-seat-counts{font-size:9px;color:#c7d3c8}
body.op-modern.pf-playing[data-pf-game="stud"] .cards{display:flex;width:100%;height:clamp(38px,9vh,70px);flex:none;justify-content:center;gap:3px;min-height:0;max-height:none}
body.op-modern.pf-playing[data-pf-game="stud"] .cards .card{flex:0 1 45px;width:45px;max-width:calc((100% - 18px)/7);height:100%;min-height:0;font-size:18px;gap:1px;box-shadow:0 3px 5px #0002;border:1px solid #e1dfd0}
body.op-modern.pf-playing[data-pf-game="stud"] .cards .card small{font-size:13px}.op-modern .card.private{border-bottom:1px solid #e1dfd0}
body.op-modern.pf-playing[data-pf-game="stud"] .own-seat .cards{height:clamp(58px,12vh,100px)}
body.op-modern.pf-playing[data-pf-game="stud"] .own-seat .cards .card{flex-basis:60px;width:60px;font-size:24px}
body.op-modern.pf-playing[data-pf-game="stud"] .own-seat .cards .card small{font-size:18px}
body.op-modern.pf-playing[data-pf-game="stud"] .seat > .hint{display:block;margin:0;color:#c2cec4;font-size:9px;text-align:center;line-height:1.2}
body.op-modern.pf-playing[data-pf-game="stud"] .center{grid-column:2;grid-row:2;justify-content:center;align-self:center;gap:5px;padding:0;z-index:1;font-size:10px}
body.op-modern.pf-playing[data-pf-game="stud"] .center strong{font:500 26px/1.1 Georgia,serif;color:#f4d991}
body.op-modern.pf-playing[data-pf-game="stud"] .center #status{font-size:11px;line-height:1.25;max-height:42px;overflow:auto}
body.op-modern.pf-playing[data-pf-game="stud"] .op-board .card{width:30px;height:42px;font-size:17px;border-radius:4px;gap:0}.op-board .op-card-mark{display:none}
body.op-modern.pf-playing .pf-private-card-key{display:none}
body.op-modern[data-op-dealing="true"] .op-deck{animation:op-shuffle .6s ease both}
body.op-modern .op-dealt{animation:op-deal .6s cubic-bezier(.2,.8,.3,1) both}
@keyframes op-deal{from{opacity:0;transform:translate(var(--deal-x,0px),var(--deal-y,35px)) rotate(-8deg) scale(.6)}to{opacity:1;transform:none}}
@keyframes op-shuffle{30%{transform:rotate(-12deg) translateX(-5px)}65%{transform:rotate(8deg) translateX(4px)}}
@media(max-width:600px){
 body.op-modern.pf-playing[data-pf-game="stud"] .table{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(45px,.65fr) minmax(55px,.8fr) minmax(75px,.9fr) minmax(100px,1.2fr);gap:3px;padding:7px;border-radius:48px / 90px}
 body.op-modern.pf-playing[data-pf-game="stud"] .seat[data-position="top"]{grid-column:1/-1;grid-row:1;max-width:240px;width:100%;justify-self:center}
 body.op-modern.pf-playing[data-pf-game="stud"] .seat[data-position="left"]{grid-column:1;grid-row:2}
 body.op-modern.pf-playing[data-pf-game="stud"] .seat[data-position="right"]{grid-column:2;grid-row:2}
 body.op-modern.pf-playing[data-pf-game="stud"] .seat[data-position="bottom"]{grid-column:1/-1;grid-row:4}
 body.op-modern.pf-playing[data-pf-game="stud"] .center{grid-column:1/-1;grid-row:3;gap:3px}
 body.op-modern.pf-playing[data-pf-game="stud"] .cards{height:38px;gap:2px}
 body.op-modern.pf-playing[data-pf-game="stud"] .cards .card{font-size:14px;max-width:calc((100% - 12px)/7)}
 body.op-modern.pf-playing[data-pf-game="stud"] .cards .card small{font-size:11px}
 body.op-modern.pf-playing[data-pf-game="stud"] .own-seat .cards{height:64px;gap:4px}
 body.op-modern.pf-playing[data-pf-game="stud"] .own-seat .cards .card{font-size:22px;max-width:calc((100% - 24px)/7)}
 body.op-modern.pf-playing[data-pf-game="stud"] .seat:not(.own-seat) .op-card-mark{display:none}
 body.op-modern.pf-playing[data-pf-game="stud"] .seat h2 .pf-seat-name{font-size:10px}
 body.op-modern.pf-playing[data-pf-game="stud"] .op-dealer{display:none}
 body.op-modern.pf-playing[data-pf-game="stud"] .center strong{font-size:24px}
 body.op-modern.pf-playing[data-pf-game="stud"] .table:has(.seat:nth-child(2):last-child){grid-template-rows:minmax(55px,1fr) minmax(10px,.1fr) minmax(80px,1fr) minmax(110px,1.3fr)}
}
@media(max-height:500px) and (min-width:601px){
 body.op-modern.pf-playing[data-pf-game="stud"] .table{grid-template-rows:minmax(35px,.7fr) minmax(45px,1fr) minmax(68px,1fr);padding:3px 12px;gap:1px;border-radius:50px}
 body.op-modern.pf-playing[data-pf-game="stud"] .cards{height:30px}
 body.op-modern.pf-playing[data-pf-game="stud"] .own-seat .cards{height:42px}
 body.op-modern.pf-playing[data-pf-game="stud"] .op-hand-label{font-size:10px;margin:0}
 body.op-modern.pf-playing[data-pf-game="stud"] .own-seat .hint,body.op-modern.pf-playing .op-dealer{display:none}
 body.op-modern.pf-playing[data-pf-game="stud"] .center{gap:2px}.op-modern .op-card-mark{display:none}
}
@media(prefers-reduced-motion:reduce){body.op-modern .op-dealt,body.op-modern .op-deck{animation:none!important}}
body.op-modern.pf-playing[data-pf-game="stud"] .seat > h2{flex-direction:row;flex-wrap:nowrap;line-height:1.2;gap:5px}
body.op-modern.pf-playing[data-pf-game="stud"] .seat > h2 .pf-seat-counts{width:auto;margin:0}
body.op-modern.pf-playing[data-pf-game="stud"] .op-hand-label{line-height:1.2;margin:2px 0}
@media(max-width:600px){body.op-modern.pf-playing[data-pf-game="stud"] .table{grid-template-rows:minmax(50px,.65fr) minmax(60px,.8fr) minmax(75px,.9fr) minmax(124px,1.2fr)}}
@media(max-width:600px),(max-height:500px){
 body.op-modern.pf-playing[data-pf-game="stud"] .center{display:grid;grid-template-columns:1fr 1fr;justify-items:center;align-items:center;gap:3px}
 body.op-modern.pf-playing[data-pf-game="stud"] .center .op-dealer{display:none}
 body.op-modern.pf-playing[data-pf-game="stud"] .center .op-board{grid-column:1/-1;grid-row:1}
 body.op-modern.pf-playing[data-pf-game="stud"] .center #street{grid-column:1/-1;grid-row:2}
 body.op-modern.pf-playing[data-pf-game="stud"] .center #pot{grid-column:1;grid-row:3;justify-self:end}
 body.op-modern.pf-playing[data-pf-game="stud"] .center #status{grid-column:2;grid-row:3;justify-self:start;text-align:left;max-width:125px}
}
@media(max-width:600px){body.op-modern.pf-playing[data-pf-game="stud"][data-op-variant="holdem"] .table{grid-template-rows:minmax(50px,.65fr) minmax(60px,.8fr) minmax(104px,.9fr) minmax(124px,1.2fr)}}
@media(max-height:500px) and (min-width:601px){
 body.op-modern.pf-playing[data-pf-game="stud"] .table{grid-template-rows:50px minmax(80px,1fr) 78px}
 body.op-modern.pf-playing[data-pf-game="stud"] .own-seat{gap:2px;padding:3px}
 body.op-modern.pf-playing[data-pf-game="stud"] .own-seat .cards{height:38px}
 body.op-modern.pf-playing[data-pf-game="stud"] .center strong{font-size:21px}
 body.op-modern.pf-playing[data-pf-game="stud"] .center #status{font-size:10px}
}
@media(max-height:500px) and (min-width:601px){body.op-modern.pf-playing[data-pf-game="stud"] .op-board .card{height:34px;font-size:15px}body.op-modern.pf-playing[data-pf-game="stud"] .op-board .card small{font-size:12px}}
body.op-modern .card{position:relative}.op-wild-mark{position:absolute;top:2px;right:2px;font-size:7px;line-height:1;background:#ebc360;color:#17372b;border-radius:2px;padding:1px}
body.op-modern.pf-playing[data-pf-game="stud"] .center #status{overflow:hidden;max-height:28px}
