.hand-page [hidden] {display:none!important}
.hand-page h1 {text-align:left;margin:24px 0 12px}
.hand-tool {background:linear-gradient(145deg,#271c32,#17121e);border:1px solid #69533c;border-radius:20px;padding:clamp(16px,3vw,32px);margin:24px 0}
.hand-page h2 {color:var(--gold-light);line-height:1.5}
.hand-page h3 {line-height:1.65}
.hand-params {display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap;margin:18px 0}
.hand-params fieldset {border:0;min-width:0;padding:0;margin:0}
.hand-params legend,.hand-context {font-size:14px;line-height:1.6;color:#e6dcf0}
.hand-radio {display:flex;gap:6px;margin-top:5px}
.hand-radio label {display:inline-flex;position:relative}
.hand-radio input {position:absolute;opacity:0;width:1px;height:1px;inset:auto}
.hand-radio span {min-width:51px;min-height:44px;display:grid;place-items:center;border:1px solid #665971;background:#17121d;color:#e5d7ee;border-radius:9px;cursor:pointer}
.hand-radio input:checked + span {background:var(--gold-light);color:#281b14;border-color:var(--gold-light);font-weight:bold}
.hand-radio input:focus-visible + span,.hand-tool :focus-visible {outline:3px solid #e6c0ff;outline-offset:2px}
.hand-context {display:flex;gap:5px;flex-direction:column;max-width:100%}
.hand-page select {width:100%;max-width:100%;height:46px;border-radius:9px;background:#120e19;color:#fff;font:400 16px/1.5 var(--sans);border:1px solid #786882;padding:7px}
.hand-slots {display:grid;grid-template-columns:repeat(var(--hand-cols,2),minmax(0,1fr));gap:12px;margin:16px 0}
.hand-slot {min-width:0;padding:16px;background:#17121e;border:1px solid #483954;border-radius:14px}
.hand-slot-head {display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:15px;color:#e8d4f4;line-height:1.5}
.hand-no {flex:none;width:25px;height:25px;display:grid;place-items:center;background:#3d2a48;border-radius:50%;color:#efdea4}
.hand-visual {height:149px;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:16px;color:#ae9dbb;font-size:14px}
.hand-visual img {width:auto;max-width:100%;height:100%;object-fit:contain;border-radius:6px;box-shadow:0 3px 12px #0005}
.hand-muted,.hand-status {font-size:14px;color:#cbbcd5;line-height:1.7}
.hand-actions {display:flex;gap:10px;flex-wrap:wrap}
.hand-status:empty {display:none}
.hand-status {margin-top:10px!important}
.hand-status.hand-error {color:#ffc1b7}
.hand-tool select[aria-invalid=true] {border-color:#f2a996}
.hand-output {border-top:1px solid #604a42;margin-top:22px;padding-top:22px;scroll-margin-top:100px}
.hand-output h2 {scroll-margin-top:100px}
.hand-output ol {list-style:none;padding:0;margin:0}
.hand-output li {padding:15px 0;border-top:1px solid #44344c}
.hand-output li h3 {font-size:17px;margin:0 0 7px}
.hand-output li p {margin:0}
#hand-bridge {background:#23182d;color:#f2e1fc;padding:15px 18px;border-left:3px solid var(--gold)}
.hand-examples {display:grid;gap:12px}
.hand-examples article {background:var(--surface);padding:18px;border:1px solid var(--line);border-radius:14px}
.hand-examples article h3 {margin-top:0}
@media(max-width:720px){
 .hand-slots {grid-template-columns:1fr}
 .hand-slot {display:grid;grid-template-columns:minmax(0,1fr) 46px;align-items:center;column-gap:10px;padding:12px}
 .hand-slot-head {grid-area:1/1;margin-bottom:6px}
 .hand-slot select {grid-area:2/1}
 .hand-visual {grid-column:2;grid-row:1/3;height:78px;margin:0}
 .hand-visual [data-empty] {font-size:11px;line-height:1.45;text-align:center}
}
@media(max-width:380px){.hand-slot{padding:9px;column-gap:7px;grid-template-columns:minmax(0,1fr) 38px}.hand-visual{height:66px}.hand-slot-head{font-size:13px}.hand-params{gap:12px}.hand-context{width:100%}}

.hand-output li .hand-card-detail {margin-top:6px;color:#c8b7d3;font-size:14px;line-height:1.7}
