/* Compose personal adjustments with the game's existing card fan/highlights. */
body[data-usa-client] #view-table .usa-card-adjusted{translate:var(--uce-x,0px) var(--uce-y,0px)!important;rotate:var(--uce-angle,0deg)!important;scale:var(--uce-size,1)!important;transform-origin:center center!important}
body.usa-card-editing #view-table .card,body.usa-card-editing #view-table .hole-cards,body.usa-card-editing #view-table .board-cards{touch-action:none!important;cursor:move!important}
#usaCardEditor{position:fixed;right:8px;top:48px;z-index:2147483646;width:256px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:10px;color:#f6e9c9;background:#102630f5;border:1px solid #d6b777;border-radius:9px;box-shadow:0 7px 28px #0009;font:12px/1.35 system-ui;text-align:left}
#usaCardEditor header{margin-bottom:8px}#usaCardEditor label{display:block;margin:5px 0}#usaCardEditor select{display:block;width:100%;margin-top:3px;background:#173540;color:#fff;border:1px solid #779195;padding:5px;border-radius:4px;font:inherit;min-height:32px}#usaCardEditor .uce-range{display:grid;grid-template-columns:1fr auto;align-items:center}#usaCardEditor input{grid-column:1/-1;width:100%;margin:3px 0;accent-color:#e1bf72;min-height:24px}#usaCardEditor p{font-size:10px;margin:6px 0;color:#d4dddd}#usaCardEditor small{display:block;font-size:10px;color:#c8bfa4}#usaCardEditor footer{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px}#usaCardEditor button{min-height:30px;border:1px solid #779195;border-radius:4px;background:#203e48;color:#fff;font:600 11px system-ui;cursor:pointer}#usaCardEditor footer button:nth-child(3){background:#dab978;color:#172929}#usaCardGuides{position:fixed;inset:0;z-index:2147483645;pointer-events:none}.uce-outline{position:absolute;outline:2px dashed #ffdf69;border-radius:5px;box-sizing:border-box;pointer-events:none}.uce-drag{position:absolute;left:0;bottom:100%;max-width:240px;min-height:28px;padding:3px 7px;white-space:nowrap;background:#ffe08c;color:#102630;border:1px solid #503c14;border-radius:4px;font:700 11px system-ui;pointer-events:auto;cursor:move;touch-action:none}
@media(max-width:600px) and (orientation:portrait){#usaCardEditor{top:auto;bottom:4px;right:4px;width:252px;padding:8px}#usaCardEditor p{display:none}}

#usaCardEditor button:disabled{opacity:.4;cursor:default}
@media(max-height:450px){#usaCardEditor{top:8px;max-height:calc(100vh - 16px);overflow:auto}}

/* Brainy's editing-only ghosts never create wagers or touch balances. */
body.usa-card-editing #view-table .seat .bet-chip[data-usa-empty-bet=true]{display:block!important;visibility:visible!important;opacity:.55!important;outline:1px dashed #fff6;pointer-events:auto!important}
body.usa-card-editing #view-table .seat .bet-chip[data-usa-empty-bet=true]:after{content:'Position'!important;font-size:9px!important}
body.usa-card-editing #view-table .board-label{pointer-events:auto!important;cursor:move!important;touch-action:none!important}

/* Movable owner editing palette; does not reserve or resize table space. */
#usaCardEditor header{cursor:grab;touch-action:none;user-select:none;padding:5px 2px;border-bottom:1px solid #779195}#usaCardEditor header:active{cursor:grabbing}#usaCardEditor header small{font-size:9px;margin-top:2px}

/*981: separate pot label and precise drag alignment aids, editor-only. */
#usaCardEditor .uce-snap{display:flex;align-items:center;gap:6px}#usaCardEditor .uce-snap input{width:16px;height:16px;min-height:16px;margin:0;flex:none}#usaCardEditor .uce-position{padding:5px;border:1px solid #779195;border-radius:4px;font:600 12px monospace;color:#fff0aa}#usaCardEditor .uce-position small{font:10px Arial;margin-top:3px}#usaCardGuides .uce-axis{position:absolute;border-top:1px dashed #8ae8df99;border-left:1px dashed #8ae8df99;pointer-events:none}body.usa-card-editing #potDisplayWrap .pot-amount{pointer-events:auto!important;cursor:move!important;touch-action:none!important}

/*1022: reposition the personal clock without starting or extending a turn. */
body.usa-card-editing #usaYourTurn994{pointer-events:auto!important;cursor:move!important;touch-action:none!important;outline:1px dashed #ffdf69}
