.poker-workspace { position:relative; display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; margin-top:30px; }
body[data-view="table"] .poker-workspace .poker-surface { margin:0 auto; }
.poker-combinations { position:absolute; top:0; right:0; width:44px; height:44px; z-index:10; color:var(--g-ink); }
.poker-combinations summary { position:relative; display:grid; place-items:center; box-sizing:border-box; width:44px; height:44px; padding:0; list-style:none; border:1px solid var(--g-line); border-radius:50%; background:var(--g-paper); color:var(--g-ink); box-shadow:0 4px 14px #0003; cursor:pointer; font-size:20px; font-weight:800; line-height:1; }
.poker-combinations summary::-webkit-details-marker { display:none; }
.poker-combinations summary:hover { border-color:#9bbf39; }
.poker-combinations summary:focus-visible { outline:2px solid #9bbf39; outline-offset:3px; }
.combinations-trigger-label { position:absolute; inset:0; display:grid; place-items:center; }
.poker-combinations details[open]>summary .combinations-trigger-label { visibility:hidden; }
.poker-combinations details[open]>summary:before,.poker-combinations details[open]>summary:after { content:""; position:absolute; left:50%; top:50%; width:14px; height:2px; border-radius:2px; background:currentColor; transform:translate(-50%,-50%) rotate(45deg); }
.poker-combinations details[open]>summary:after { transform:translate(-50%,-50%) rotate(-45deg); }
.combinations-panel { position:absolute; top:54px; left:0; right:auto; width:200px; max-width:calc(100vw - 40px); max-height:min(620px,70svh); box-sizing:border-box; overflow:auto; scrollbar-width:none; -ms-overflow-style:none; border:1px solid var(--g-line); border-radius:16px; background:var(--g-paper); box-shadow:0 12px 32px #0005; }
.combinations-panel::-webkit-scrollbar { display:none; width:0; height:0; }
.combinations-heading { position:sticky; top:0; z-index:3; margin:0; padding:15px 12px; background:var(--g-paper); border-bottom:1px solid var(--g-line); font-size:12px; }
.combinations-heading small { display:block; margin-top:5px; font-size:9px; font-weight:400; color:var(--g-muted); }
#combination-list { margin:0; padding:0 12px; list-style:none; }
.combination-example { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; padding:12px 0 14px; border-bottom:1px solid var(--g-line); }
.combination-copy { position:relative; display:flex; align-items:center; gap:7px; min-height:22px; }
.combination-copy strong { display:block; font-size:11px; }
.combination-help { display:grid; place-items:center; flex:0 0 22px; width:22px; height:22px; padding:0; border:1px solid var(--g-line); border-radius:50%; background:var(--g-control-bg); color:var(--g-muted); font-size:11px; line-height:1; cursor:help; }
.combination-help:hover,.combination-help:focus-visible { color:var(--g-ink); border-color:#9bbf39; }
.combination-help:focus-visible { outline:2px solid #9bbf39; outline-offset:2px; }
.combination-tooltip { position:absolute; top:calc(100% + 5px); left:0; right:0; z-index:2; padding:10px; border:1px solid var(--g-line); border-radius:9px; background:var(--g-paper); color:var(--g-ink); box-shadow:0 5px 14px #0005; font-size:11px; line-height:1.45; }
.combination-cards { display:flex; align-items:center; gap:3px; }
.reference-card { display:flex; flex-direction:column; justify-content:center; align-items:center; flex:0 0 31px; box-sizing:border-box; width:31px; height:45px; border:1px solid #dedccf; border-radius:4px; background:#f7f3e9; color:#3e4ce4; box-shadow:0 2px 0 #a6aba2,0 3px 5px #0003; line-height:1; }
.reference-card b { font-family:Georgia,serif; font-size:20px; font-weight:700; }
.reference-card>span { font-size:20px; margin-top:1px; }
.reference-card.is-red { color:#b34b2b; }
.reference-card.is-kicker { opacity:.32; }
.combinations-note { margin:14px; color:var(--g-muted); font-size:10px; line-height:1.6; }
/* If the right gutter cannot fit the panel, put the reference below the table
   instead of flipping it over the felt or overflowing the viewport. */
@media(max-width:1839px) {
  .poker-combinations { position:relative; top:auto; right:auto; grid-row:2; justify-self:end; width:200px; height:auto; }
  .poker-combinations summary { margin-left:auto; }
  .combinations-panel { position:static; margin-top:10px; }
}
