
:root{color-scheme:dark;--bg:#111216;--panel:#1b1c22;--line:#383940;--text:#eee8df;--muted:#96949f;--red:#ee5045}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px system-ui,sans-serif}button,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:default}button:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #f5c96a;outline-offset:3px}header{display:flex;align-items:center;justify-content:space-between;padding:22px 28px;border-bottom:1px solid var(--line)}.brand{font-weight:950;font-size:21px;letter-spacing:-1px}.brand b{color:var(--red)}header a{color:var(--muted);font-size:12px;text-decoration:none}.wrap{max-width:1450px;margin:auto;padding:26px}.top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.label{font-size:10px;color:var(--red);font-weight:800;letter-spacing:2px;text-transform:uppercase}h1{font-size:29px;letter-spacing:-1px;margin:5px 0 8px}.sub{color:var(--muted);font-size:12px;max-width:620px;line-height:1.6;margin:0}.setup{display:flex;gap:8px;align-items:center;flex-wrap:wrap}select{background:#24252c;border:1px solid #50505b;padding:10px;border-radius:7px;max-width:100%}.btn{padding:10px 14px;background:#272830;border:1px solid #494a53;border-radius:7px}.btn.primary{background:var(--red);border-color:var(--red);color:white;font-weight:750}.layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:20px}.table{border:1px solid #44434e;border-radius:14px;overflow:hidden;background:radial-gradient(ellipse,#303039,#1b1d24);box-shadow:0 15px 40px #0004}.player{padding:15px}.playerhead{display:flex;align-items:center;justify-content:space-between;margin:0 2px 14px}.playerhead h2{font-size:17px;margin:0}.playerhead small{color:var(--muted);font-size:10px}.f{display:flex;align-items:center;gap:10px;font-size:10px;color:#b5b0bf}.f strong{font-size:30px;color:var(--text)}.zones{display:grid;grid-template-columns:90px minmax(0,1fr) 90px;gap:12px}.stack{background:#11131c88;border:1px solid #4b4754;border-radius:8px;padding:11px 6px;text-align:center;width:100%;min-height:104px}.stack .symbol{font-size:23px;display:block;color:#a099b4;margin-bottom:5px}.stack strong{font-size:20px}.stack small{display:block;color:#b1acbd;font-size:9px;margin-top:5px}.ringlabel{font-size:9px;letter-spacing:1px;color:#a29bac;display:flex;justify-content:space-between;margin-bottom:8px}.ring{min-height:96px;display:flex;gap:6px;align-items:start;flex-wrap:wrap;border:1px dashed #504b5a;border-radius:7px;padding:9px}.empty{color:#837b90;font-size:11px;align-self:center;text-align:center;width:100%}.card{width:87px;min-height:108px;padding:8px 6px;border:3px solid #a59a85;border-radius:6px;background:#e5dccb;color:#302a25;text-align:left;display:flex;flex-direction:column;gap:6px;box-shadow:0 5px 12px #0004}.card small{font-size:7px;text-transform:uppercase;letter-spacing:.5px}.card b{font-size:10px;line-height:1.15}.card .art{height:27px;display:grid;place-items:center;background:#36343b;color:#ead9c3;font-size:18px}.card .numbers{font-size:9px;margin-top:auto;display:flex;justify-content:space-between;font-weight:800}.card.rev{border-color:#8aa2ac}.aux{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.aux button{border:1px solid #4a444f;background:#26232d;padding:6px 9px;border-radius:5px;font-size:9px;color:#b5aabd}.hand{margin-top:11px;display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-height:32px}.hand label{font-size:9px;color:#a198ae;letter-spacing:1px;width:100%}.back{width:27px;height:36px;display:grid;place-items:center;border:1px solid #a49a89;border-radius:4px;background:repeating-linear-gradient(45deg,#39323e,#39323e 3px,#49404b 3px,#49404b 4px);font-weight:800;font-size:6px;color:#d0bbad}.center{border-top:1px solid #51444c;border-bottom:1px solid #51444c;background:#111218a8;padding:16px 18px;display:flex;gap:12px;align-items:center;justify-content:space-between}.center b{font-size:12px;letter-spacing:1px}.center span{font-size:10px;color:#d89485}.panel{background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:18px;margin-bottom:15px}.panel h2{font-size:15px;margin:0 0 10px}.panel p{font-size:12px;line-height:1.7;color:#b5afbd}.controls{display:flex;gap:8px;flex-wrap:wrap}.controls button{width:100%;text-align:left;font-size:12px}.progress{height:6px;background:#37333e;border-radius:4px;overflow:hidden;margin:12px 0}.progress div{height:100%;background:var(--red);transition:width .25s}.reveal{border:1px dashed #524a59;border-radius:9px;min-height:195px;padding:15px;text-align:center;display:grid;place-items:center;background:#18151f}.reveal .card{width:110px;height:140px;animation:reveal .3s ease}.reveal small{color:#9e95ac;font-size:10px}.log{max-height:330px;overflow:auto}.event{border-left:2px solid #49424f;padding:0 0 0 10px;font-size:11px;line-height:1.65;margin:0 0 15px;color:#bfb7c9}.event:first-child{border-color:var(--red);color:#eee4f2}.training{padding:13px 0;color:#938a9f;font-size:11px;line-height:1.6}.perspective{display:flex;gap:8px;margin-bottom:12px;align-items:center}.perspective span{color:var(--muted);font-size:11px}.perspective button{font-size:11px;padding:7px 10px}.perspective button.active{border-color:var(--red);color:#ffc0b5}.overlay{position:fixed;inset:0;background:#000c;display:grid;place-items:center;z-index:10;padding:18px}.overlay[hidden]{display:none}.dialog{max-width:650px;width:100%;max-height:80vh;overflow:auto;background:#222129;border:1px solid #68606f;border-radius:12px;padding:23px}.dialog h2{margin-top:0}.dialog .close{float:right;background:transparent;border:0;color:white;font-size:25px}.dialog p{color:#b7adbf;font-size:12px;line-height:1.6}.contents{display:flex;gap:8px;flex-wrap:wrap}.error{color:#ffad9b;min-height:18px;font-size:12px;margin:10px 0}a{color:#ceaaa2}@keyframes reveal{from{transform:translateY(12px) rotate(-4deg);opacity:.2}to{transform:none;opacity:1}}@media(max-width:1050px){.layout{grid-template-columns:1fr}.side{display:grid;grid-template-columns:1fr 1fr;gap:15px}.side .panel{margin:0}.side .activity{grid-column:1/-1}.log{max-height:190px}}@media(max-width:650px){header{padding:16px}.brand{font-size:17px}.wrap{padding:19px 10px}.top{display:block}h1{font-size:25px}.setup{margin-top:14px}.setup select{flex:1;min-width:0}.player{padding:12px 9px}.zones{grid-template-columns:65px minmax(0,1fr) 65px;gap:8px}.stack{min-height:95px;padding:8px 3px}.stack small{font-size:8px}.card{width:76px;min-height:100px}.center{padding:12px 10px}.side{display:block}.side .panel{margin-bottom:12px}.aux{gap:4px}.aux button{font-size:8px;padding:6px}.sub{font-size:11px}.f strong{font-size:26px}.playerhead h2{font-size:14px}.perspective{flex-wrap:wrap}}

.lobby{max-width:700px;margin:45px auto}.lobby h1{font-size:34px}.lobby label{display:block;margin:16px 0 7px;color:#b8aaba;font-size:12px}.lobby select{width:100%;margin-bottom:14px}.lobby .btn{margin-right:8px}.toplinks{display:flex;gap:15px}.statusline{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:18px;font-size:11px;color:#a69cae}.online{color:#8edbb6}.offline{color:#ffb09d}.invitation{width:100%;padding:10px;margin:10px 0;color:#ddd;background:#19161d;border:1px solid #5a4d5c;border-radius:7px;font-size:11px}.lobby[hidden],.game[hidden],.panel[hidden]{display:none}.connected{font-size:9px;color:#8edbb6;margin-left:8px}.inactive{color:#999}.room-title{font-size:11px;letter-spacing:1px;color:#a496ac}.resume{margin-top:15px}.note{font-size:11px;color:#a499ab;line-height:1.7}.btn-row{display:flex;gap:8px;flex-wrap:wrap}button[hidden]{display:none}.notice{padding:12px;border:1px solid #51424f;border-radius:8px;margin:15px 0;background:#211c25}.roomname{font-size:17px;font-weight:800}.header-back{font-size:11px} .error:empty{display:none}

.card.real{padding:0;border:1px solid #877d6b;border-radius:6px;overflow:hidden;min-height:0;width:94px;flex-shrink:0;background:#242028}.card.real img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain}.dialog .card.real{width:175px}.dialog .contents{align-items:flex-start}.dialog .contents .btn,.dialog .contents>a{align-self:center}.hand{gap:8px}.ring{gap:8px}.reveal .card.real{width:115px;height:auto}.dialog #dialogNote{font-size:13px;line-height:1.7}.dialog #dialogCards>p{max-width:280px}@media(max-width:650px){.card.real{width:78px}.dialog .card.real{width:150px}.toplinks{gap:8px}.toplinks a{font-size:10px}.btn-row{gap:5px}.btn-row .btn{font-size:11px;padding:8px}}

.pre-steps{list-style:none;display:flex;gap:7px;flex-wrap:wrap;padding:0;margin:16px 0}.pre-steps li{border:1px solid #48414f;border-radius:6px;padding:7px 9px;color:#8e8499;font-size:10px}.pre-steps .current{border-color:#f27b64;color:#ffe1cd;background:#4a2b29}.pre-steps .complete{border-color:#3a6755;color:#a5d3b6;background:#1b2b26}#prematchPanel[hidden]{display:none}#prematchPanel h2{margin-top:5px}
.deck-report{overflow-x:auto}.deck-review{border-collapse:collapse;width:100%;font-size:13px;margin-top:16px}.deck-review th,.deck-review td{text-align:left;vertical-align:top;padding:10px;border-bottom:1px solid #42394a}.deck-review th{color:#d7c8e8}#deckFile{display:block;margin:12px 0;max-width:100%}

.playerhead small.pre-stats{display:block;line-height:1.7;margin-top:5px;color:#d5c8ba;max-width:430px;white-space:normal}

.live-play{width:100%;display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:15px;border:1px solid #c4a26a;border-radius:9px;background:#242029;box-shadow:0 5px 18px #0004}.live-play.pending{border:2px solid var(--red);background:linear-gradient(120deg,#392322,#211e28)}.live-play .card,.live-play .card.real{width:150px;min-height:195px;align-self:start;margin:0}.live-play .card.real img{aspect-ratio:3/4}.live-play .card b{font-size:15px}.live-play .card .art{height:55px}.live-play .card .numbers{font-size:13px}.live-info{min-width:0}.live-status{font-size:10px;font-weight:800;letter-spacing:1px;color:#ffc9ad}.live-info h3{font-size:19px;line-height:1.25;margin:8px 0;overflow-wrap:anywhere}.live-info p{font-size:12px;line-height:1.6;margin:8px 0}.live-stats{color:#f3d5a7}.live-hint{color:#c8bdca}.live-responses{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.live-responses .btn{font-size:12px;text-align:left;max-width:100%;overflow-wrap:anywhere}.live-info>.btn{margin-top:4px}.live-card:focus-visible{outline:3px solid #f5c96a;outline-offset:4px}
@media(max-width:650px){.zones:has(.live-play){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.zones:has(.live-play)>div{grid-column:1/-1;grid-row:1}.zones:has(.live-play)>.stack{min-height:70px}.live-play{grid-template-columns:105px minmax(0,1fr);gap:10px;padding:10px}.live-play .card,.live-play .card.real{width:105px;min-height:136px}.live-info h3{font-size:16px}.live-info p{font-size:11px}.live-status{font-size:9px}.live-info>.btn,.live-responses .btn{font-size:11px;padding:8px}.live-responses{grid-column:1/-1}.live-play .card b{font-size:12px}.live-play .card .art{height:30px}}

/* Highlight the card under the pointer without moving the surrounding cards. */
.card{transition:border-color .15s ease,box-shadow .15s ease}
@media(hover:hover){.card:hover{border-color:#ffdc85;box-shadow:0 0 0 2px #ffdc85,0 0 22px #f5c96a99,0 5px 12px #0004}}
.card:focus-visible{border-color:#ffdc85;outline:2px solid #ffdc85;outline-offset:3px;box-shadow:0 0 20px #f5c96a88}
.turn-announcement{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:20;pointer-events:none;max-width:calc(100vw - 32px);width:max-content;padding:22px 38px;border:1px solid #f5c96a;border-radius:12px;background:#19171ff2;box-shadow:0 12px 50px #0009,0 0 28px #f5c96a33;color:#ffe1a0;text-align:center;font-size:clamp(22px,4vw,38px);font-weight:850;line-height:1.2;overflow-wrap:anywhere;animation:turn-appear .22s ease-out}
.turn-announcement[hidden]{display:none}
@keyframes turn-appear{from{opacity:0;transform:translate(-50%,-45%)}to{opacity:1;transform:translate(-50%,-50%)}}
@media(prefers-reduced-motion:reduce){.card{transition:none}.turn-announcement{animation:none}}

/* Real card images overlap: title strips above, complete front card below. */
.match-stack{display:flex;flex-direction:column;align-items:stretch;width:180px;max-width:100%;flex-shrink:0;padding:0 0 5px;border:0;background:transparent;text-align:left;color:var(--text);border-radius:7px}
.match-stack-label{padding:2px 2px 9px;font-size:9px;letter-spacing:1px;color:#b9adbf;font-weight:750}
.match-stack-layers{display:block;isolation:isolate;padding:0 2px 4px}
.match-stack-card{position:relative;display:block;overflow:hidden;border:2px solid #706a76;border-radius:6px;background:#17141d;box-shadow:0 3px 9px #0008}
.match-stack-card:not(:last-child){height:34px}
.match-stack-card+.match-stack-card{margin-top:-4px}
.match-stack-card:last-child{min-height:50px}
.match-stack-card img{display:block;width:100%;height:auto}
.match-stack-card img[hidden]{display:none}
.match-stack-fallback{display:block;min-height:32px;padding:6px 8px;font-size:11px;line-height:1.3;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.match-stack:focus-visible{outline:2px solid #ffdc85;outline-offset:4px}
@media(hover:hover){.match-stack:hover .match-stack-card{border-color:#ffdc85;box-shadow:0 0 9px #f5c96a55}.match-stack:hover .match-stack-label{color:#ffdc85}}
.dialog.prematch-dialog{max-width:1040px}
.prematch-dialog .contents{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;align-items:start}
.prematch-dialog .card,.prematch-dialog .card.real{width:100%;max-width:390px;justify-self:center}
.prematch-dialog .card.real img,.prematch-card-dialog .card.real img{aspect-ratio:auto}
.prematch-card-dialog .card.real{width:360px;max-width:100%}
.prematch-dialog .card:not(.real){min-height:205px}
.prematch-dialog .card:not(.real) b{font-size:15px}
@media(max-width:650px){.match-stack{width:155px;max-width:100%}.match-stack-card:not(:last-child){height:30px}.dialog.prematch-dialog{padding:18px}.prematch-dialog .contents{grid-template-columns:minmax(0,1fr);gap:12px}}

/* Superstar and public Backstage cards on the table. */
.aux{align-items:flex-start}.identity-zone{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;max-width:100%}.aux .identity-zone .card{width:94px;min-height:108px;padding:8px 6px;border:3px solid #a59a85;background:#e5dccb;color:#302a25;font-size:inherit}.aux .identity-zone .card.real{width:94px;min-height:0;padding:0;border:1px solid #877d6b;background:#242028}.aux .identity-empty{min-height:36px}.aux>button{align-self:flex-start}@media(max-width:650px){.aux .identity-zone .card,.aux .identity-zone .card.real{width:78px}.identity-zone{gap:6px}}

/* Underrated's supplied scan includes portrait padding around a landscape card. */
.card.real img.landscape-crop,.match-stack-card img.landscape-crop{aspect-ratio:600/432;object-fit:cover}

/* Larger characters; keep the original scan and its proportions. */
.aux .identity-zone[data-identity-zone="superstar"] .card{width:195px;min-height:250px}
.aux .identity-zone[data-identity-zone="superstar"] .card.real{width:195px;min-height:0}
.aux .identity-zone[data-identity-zone="superstar"] .card.real img{aspect-ratio:auto}
/* Backlash scans sit directly in the viewer, without a surrounding black frame. */
.dialog .card.real img{aspect-ratio:auto}
/* One central decision window, dismissible while inspecting the table. */
.next-step-overlay{z-index:9;background:#08090e66;backdrop-filter:none;-webkit-backdrop-filter:none}
.next-step-dialog{max-width:680px;max-height:88dvh;padding:26px;border-color:#b78e62;box-shadow:0 20px 100px #0009}
.next-step-dialog h2{margin:10px 36px 14px 0;font-size:24px}
.step-close{float:right;border:0;background:transparent;font-size:28px;line-height:1;padding:0 4px;color:var(--text)}
.step-card{float:left;margin:0 18px 12px 0;max-width:35%}
.step-card:empty{display:none}
.next-step-dialog .step-card .card.real{width:130px;max-width:100%}
.step-event{clear:both;border-top:1px solid var(--line);padding-top:12px}
.next-step-dialog .controls{clear:both;max-height:42dvh;overflow:auto;display:flex;flex-wrap:wrap;gap:8px;padding:3px}
.next-step-dialog .controls .btn{text-align:left;overflow-wrap:anywhere;max-width:100%}
@media(max-width:650px){.aux .identity-zone[data-identity-zone="superstar"] .card,.aux .identity-zone[data-identity-zone="superstar"] .card.real{width:150px}.aux .identity-zone[data-identity-zone="superstar"] .card:not(.real){min-height:195px}.next-step-dialog{padding:18px;max-height:92dvh}.next-step-dialog h2{font-size:21px}.next-step-dialog .controls{max-height:45dvh}.next-step-dialog .step-card .card.real{width:100px}}

/* Shared card grid for Ring piles and Backlash. */
.dialog.backlash-dialog{max-width:1040px}
.backlash-dialog .contents{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;align-items:start}
.backlash-dialog .card,.backlash-dialog .card.real{width:100%;max-width:390px;justify-self:center}
.backlash-dialog .card.real{padding:0;border:0;background:transparent;box-shadow:none}
.backlash-dialog .card.real img{aspect-ratio:auto}
.backlash-dialog .card:not(.real){min-height:205px}
.next-step-dialog .controls .btn,.step-close{transition:border-color .14s ease,box-shadow .14s ease,background-color .14s ease,color .14s ease}
.next-step-dialog .controls .btn:focus-visible,.next-step-dialog .controls .btn:not(:disabled):hover,.step-close:hover{border-color:#f5c96a;background:#443523;color:#ffe3a0;box-shadow:0 0 0 1px #f5c96a,0 0 16px #f5c96a44;outline-color:#f5c96a}
.next-step-overlay:not([hidden]) .next-step-dialog{animation:step-arrive .16s ease-out}
@keyframes step-arrive{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.backlash-dialog .contents{grid-template-columns:minmax(0,1fr);gap:12px}.dialog.backlash-dialog{padding:18px}}
@media(prefers-reduced-motion:reduce){.next-step-overlay:not([hidden]) .next-step-dialog{animation:none}.next-step-dialog .controls .btn,.step-close{transition:none}}

/* Keep routine play on the table; reserve the central window for resolutions. */
.inline-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.inline-controls[hidden]{display:none}
.inline-controls .btn{text-align:left;max-width:100%;overflow-wrap:anywhere}
.inline-controls .btn:not(:disabled):hover,.inline-controls .btn:focus-visible{border-color:#f5c96a;color:#ffe3a0;box-shadow:0 0 0 1px #f5c96a,0 0 14px #f5c96a44}
.dialog.backlash-dialog .card:hover,.dialog.backlash-dialog .card:focus-visible{outline:2px solid #f5c96a;outline-offset:3px;box-shadow:0 0 0 1px #f5c96a,0 0 18px #f5c96a66}

#inlineStatus:empty{display:none}

.stack.arsenal-draw{border-color:#d2ad64;box-shadow:0 0 0 1px #d2ad6444}
.stack.arsenal-draw:hover,.stack.arsenal-draw:focus-visible{border-color:#f5c96a;box-shadow:0 0 18px #f5c96a55}
.stack.arsenal-draw small{color:#ffe3a0;font-weight:700}

/* v1.40 — One shared table; all zone shortcuts stay above both player areas. */
.game .top{margin-bottom:10px}.game .statusline{margin-bottom:10px}.game .layout{grid-template-columns:minmax(0,1fr) 250px;gap:14px}.game .table{background:radial-gradient(ellipse at 50% 50%,#2c374c,#1b2535);border-color:#46536a;position:relative}.shared-table .center{background:#141a24;border:0;border-bottom:1px solid #47546b;padding:12px 16px;flex-wrap:wrap}.table-zone-bar{background:#141a23;padding:7px 12px;border-bottom:1px solid #4a5870}.table-zone-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 0}.table-zone-owner{width:160px;max-width:100%;font-size:10px;color:#a9bde1;overflow-wrap:anywhere}.table-zone-row:first-child .table-zone-owner{color:#e6a29c}.table-zone-tab{font-size:10px;padding:7px 9px;background:#252d39;border-color:#455066;border-radius:5px}.table-zone-tab:hover,.table-zone-tab:focus-visible{border-color:#f5c96a;box-shadow:0 0 12px #f5c96a33}.table-hand-count{font-size:10px;color:#acb7c9}.shared-table .player{display:grid;grid-template-columns:154px minmax(0,1fr);column-gap:16px;row-gap:12px;padding:14px 16px}.shared-table .playerhead{grid-column:1/-1;margin:0;align-items:flex-start;gap:12px}.shared-table .playerhead h2{font-size:16px}.shared-table .playerhead small.pre-stats{font-size:9px;max-width:none}.shared-table .playerhead .f{white-space:nowrap}.shared-table .playerhead .f strong{font-size:25px}.shared-table .zones{display:block;grid-column:2;grid-row:2;min-width:0}.shared-table .zones>.stack{display:none}.shared-table .ringlabel{padding:0 0 10px;border-bottom:1px solid #65738b80;color:#c1ccdc;gap:10px;flex-wrap:wrap;line-height:1.5}.shared-table .ring{min-height:144px;border:0;padding:4px 0;gap:12px}.shared-table .aux{display:contents}.shared-table .aux>.identity-zone[data-identity-zone="superstar"]{grid-column:1;grid-row:2/4;align-self:start}.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card,.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card.real{width:150px;max-width:100%;min-height:0}.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card:not(.real){min-height:200px}.shared-table .aux>.identity-zone[data-identity-zone="backstage"]{grid-column:2;grid-row:3;border-top:1px solid #56658070;padding-top:10px;gap:7px}.shared-table .aux>.identity-zone[data-identity-zone="backstage"]::before{content:"BACKSTAGE";display:block;width:100%;color:#aebcd0;font-size:9px;letter-spacing:1px}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card,.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card.real{width:70px;min-height:0}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card:not(.real){min-height:90px}.shared-table .aux>button{display:none}.shared-table .hand{grid-column:1/-1;margin:0;padding-top:12px;border-top:1px solid #58688380;gap:8px}.shared-table .player[data-self="false"][data-hand-visible="false"]>.hand{display:none}.shared-table .player[data-self="true"]{border-bottom:4px solid #4d7ccb}.shared-table .player[data-self="false"]{border-top:4px solid #cc514c}.shared-table .hand .card.real{width:90px}.table-divider{height:1px;margin:0 16px;background:linear-gradient(90deg,transparent,#74809980,transparent)}.shared-table .match-stack{width:126px}.shared-table .match-stack-card:not(:last-child){height:27px}.shared-table .match-stack-label{padding-bottom:7px}.table-rules{margin-top:12px;color:#9da9ba;font-size:11px}.table-rules summary{cursor:pointer}.table-rules .training{padding-bottom:0}.card-preview{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:110px}.card-preview>.card.real{width:165px;max-width:100%}.card-preview>b{font-size:14px;align-self:stretch;overflow-wrap:anywhere}.card-preview>small{font-size:11px;color:#aaa5b3;line-height:1.6;align-self:stretch}.game .side .panel{padding:14px}.game .side .log{max-height:240px}
@media(min-width:1500px){.wrap{max-width:1680px}.shared-table .player{grid-template-columns:180px minmax(0,1fr)}.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card,.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card.real{width:175px}.shared-table .match-stack{width:145px}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card,.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card.real{width:80px}}
@media(max-width:1100px){.game .layout{grid-template-columns:minmax(0,1fr)}.game .side{display:grid;grid-template-columns:1fr 1fr;gap:12px}.game .side .activity{grid-column:1/-1}.card-preview-panel{grid-row:span 2}.card-preview>.card.real{width:150px}}
@media(max-width:650px){.shared-table .player{grid-template-columns:106px minmax(0,1fr);gap:10px;padding:12px 9px}.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card,.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card.real{width:105px}.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card:not(.real){min-height:140px}.shared-table .ring{gap:8px}.shared-table .match-stack{width:105px}.shared-table .match-stack-card:not(:last-child){height:24px}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card,.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card.real{width:60px}.table-zone-owner{width:100%;font-size:11px}.table-zone-tab{font-size:10px;padding:8px}.shared-table .playerhead h2{font-size:14px}.shared-table .playerhead .f{font-size:9px;gap:5px}.shared-table .playerhead .f strong{font-size:23px}.shared-table .hand .card.real{width:78px}.game .side{display:block}.game .side .panel{margin-bottom:12px}}
@media(max-width:380px){.shared-table .player{grid-template-columns:86px minmax(0,1fr);gap:8px}.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card,.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card.real{width:85px}.shared-table .match-stack{width:87px}.shared-table .ring .card.real{width:75px}}
/* Keep both Ring Areas in the same compact plane during ordinary play. */
header{padding:14px 24px}.game .top h1{font-size:24px;margin:4px 0}.game .statusline{font-size:10px}.game .roomname{font-size:13px}#prematchPanel[data-finished="true"]{display:none}
@media(min-width:851px){.shared-table .player{grid-template-columns:154px minmax(0,1fr) 148px;column-gap:14px;row-gap:9px}.shared-table .aux>.identity-zone[data-identity-zone="superstar"]{grid-row:2}.shared-table .aux>.identity-zone[data-identity-zone="backstage"]{grid-column:3;grid-row:2;border-top:0;border-left:1px solid #56658070;padding:0 0 0 10px;align-content:start}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card,.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card.real{width:62px}.shared-table .hand{grid-row:3}.shared-table .playerhead small.pre-stats{margin-top:3px}}
@media(min-width:1500px){.shared-table .player{grid-template-columns:180px minmax(0,1fr) 174px}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card,.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card.real{width:76px}}

/* v1.41 — Physical piles beside the Superstar and the common Backlash caption. */
.shared-table .player{grid-template-columns:150px 76px minmax(0,1fr) 92px 138px;column-gap:12px;row-gap:10px}.shared-table .zones{display:contents}.shared-table .zones>.stack{display:block;grid-column:2;grid-row:2;align-self:start;min-height:112px;background:repeating-linear-gradient(135deg,#202b3d,#202b3d 5px,#27344a 5px,#27344a 7px);border-color:#6e7890}.shared-table .zones>.stack .symbol{font-size:26px;color:#b9c7dd}.shared-table .ring-area{grid-column:3;grid-row:2;min-width:0}.shared-table .pile-zones{grid-column:4;grid-row:2;display:flex;flex-direction:column;gap:10px;align-self:start;min-width:0}.shared-table .pile-zones .stack{min-height:104px;background:#182333;border-color:#58667e}.shared-table .pile-zones .stack .symbol{font-size:20px;margin-bottom:2px}.shared-table .pile-zones .stack small{color:#c0ccde;font-size:9px;line-height:1.4}.shared-table .pile-zones .stack strong{font-size:23px}.shared-table .stack:hover,.shared-table .stack:focus-visible{border-color:#f5c96a;box-shadow:0 0 15px #f5c96a44}.shared-table .stack.arsenal-draw{border-color:#f5c96a;box-shadow:0 0 0 1px #f5c96a55}.shared-table .aux>.identity-zone[data-identity-zone="superstar"]{grid-column:1;grid-row:2;align-self:start}.shared-table .aux>.identity-zone[data-identity-zone="backstage"]{grid-column:5;grid-row:2;border-top:0;border-left:1px solid #56658070;padding:0 0 0 10px;align-content:start}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card,.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card.real{width:58px}.shared-table .hand{grid-column:1/-1;grid-row:3}.shared-table .ring{align-items:start}.shared-table .ring-backlash{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:8px;width:236px;max-width:100%;min-width:0;align-items:start}.shared-table .ring-backlash[data-count="1"]{width:112px;grid-template-columns:minmax(0,1fr)}.shared-table .ring-backlash-label{grid-column:1/-1;font-size:10px;letter-spacing:1px;color:#d3c199;padding-bottom:6px;border-bottom:1px solid #c8ad7255}.shared-table .ring-backlash .match-stack{width:100%;min-width:0}.shared-table .ring-backlash .match-stack-label{font-size:9px;overflow-wrap:anywhere}
@media(min-width:1500px){.shared-table .player{grid-template-columns:170px 85px minmax(0,1fr) 100px 160px;column-gap:14px}.shared-table .ring-backlash{width:278px}.shared-table .ring-backlash[data-count="1"]{width:133px}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card,.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card.real{width:70px}}
@media(max-width:950px){.shared-table .player{grid-template-columns:130px 70px minmax(0,1fr) 86px;column-gap:10px}.shared-table .aux>.identity-zone[data-identity-zone="superstar"]{grid-row:2/4}.shared-table .aux>.identity-zone[data-identity-zone="backstage"]{grid-column:2/5;grid-row:3;border-left:0;border-top:1px solid #56658070;padding:10px 0 0}.shared-table .hand{grid-row:4}.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card,.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card.real{width:130px}.shared-table .ring-backlash{width:222px;column-gap:10px}}
@media(max-width:650px){.shared-table .player{grid-template-columns:90px 62px minmax(0,1fr);gap:9px;padding:12px 9px}.shared-table .zones>.stack{min-height:100px}.shared-table .zones>.stack strong{font-size:21px}.shared-table .zones>.stack small{font-size:9px}.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card,.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card.real{width:90px}.shared-table .pile-zones{grid-column:2;grid-row:3;gap:8px}.shared-table .pile-zones .stack{min-height:90px;padding:8px 3px}.shared-table .pile-zones .stack small{font-size:8px}.shared-table .pile-zones .stack strong{font-size:20px}.shared-table .aux>.identity-zone[data-identity-zone="backstage"]{grid-column:3;grid-row:3;align-self:start;gap:5px}.shared-table .ring-backlash{width:100%;column-gap:7px}.shared-table .ring-backlash[data-count="1"]{width:100px}.shared-table .ring-backlash-label{font-size:9px}.shared-table .ringlabel{font-size:9px}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card,.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card.real{width:55px}}
@media(max-width:380px){.shared-table .player{grid-template-columns:78px 56px minmax(0,1fr);gap:7px}.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card,.shared-table .aux>.identity-zone[data-identity-zone="superstar"] .card.real{width:78px}.shared-table .ring-backlash{grid-template-columns:minmax(0,1fr);width:100px}.shared-table .ring-backlash-label{grid-column:1}.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card,.shared-table .aux>.identity-zone[data-identity-zone="backstage"] .card.real{width:50px}}
/* v1.42 — The Ring's Backlash caption opens the private full-card viewer. */
.shared-table button.ring-backlash-label{font-family:inherit;background:transparent;border:0;border-bottom:1px solid #c8ad7255;border-radius:4px;padding:5px 2px 7px;text-align:left;cursor:pointer;min-height:30px;width:100%;transition:color .14s,border-color .14s,box-shadow .14s}.shared-table button.ring-backlash-label::after{content:" ↗";font-size:12px}.shared-table button.ring-backlash-label:hover,.shared-table button.ring-backlash-label:focus-visible{color:#ffe3a0;border-color:#f5c96a;box-shadow:0 0 12px #f5c96a33;outline-color:#f5c96a}.shared-table .ring-backlash[data-count="0"]{grid-template-columns:minmax(0,1fr);width:236px}

/* v1.75 — Give the shared table the space previously used by match metadata. */
#matchMeta[hidden]{display:none}
.wrap.playing{max-width:none;padding:12px 16px 24px}
.toplinks{align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:12px}
.toplinks .nav-action,.toplinks .exit-game{font-size:12px;padding:9px 12px;white-space:nowrap}
.toplinks .exit-game{border-color:#9e594f;color:#ffc4ba}
.toplinks .exit-game:hover,.toplinks .exit-game:focus-visible{border-color:#f5c96a;color:#ffe3a0}
.exit-dialog{width:min(420px,calc(100% - 32px));padding:26px;border:1px solid #68606f;border-radius:12px;background:#222129;color:var(--text);box-shadow:0 18px 70px #0008}
.exit-dialog::backdrop{background:#0009}
.exit-dialog h2{font-size:19px;line-height:1.5;margin:0 0 24px}
.exit-dialog .btn-row{justify-content:flex-end}
@media(max-width:850px){header{align-items:flex-start;gap:14px;flex-wrap:wrap}.toplinks{gap:10px}.wrap.playing{padding:10px 10px 20px}}
@media(max-width:500px){.toplinks{justify-content:flex-start}.toplinks .exit-game{padding:8px 10px}.exit-dialog{padding:22px}.exit-dialog .btn-row .btn{flex:1}}

/* Selected-card preview follows the original artwork dimensions. */
.card-preview>.card.real{height:auto;min-height:0;align-self:center}
.card-preview>.card.real img:not(.landscape-crop){height:auto;aspect-ratio:auto}

/* Keep the existing Underrated artwork crop in every card dialog. */
.dialog .card.real img.landscape-crop{aspect-ratio:600/432;object-fit:cover}
.dialog.backlash-dialog .card.real,.dialog.prematch-dialog .card.real{height:auto;min-height:0;align-self:start}
.dialog.backlash-dialog .card.real:hover,.dialog.backlash-dialog .card.real:focus-visible,.dialog.prematch-dialog .card.real:hover,.dialog.prematch-dialog .card.real:focus-visible{border-color:#f5c96a;outline:2px solid #f5c96a;outline-offset:0;box-shadow:0 0 18px #f5c96a66}

/* The controls and card inspector belong to the shared tabletop. */
.wrap.playing{padding:6px 6px 16px}
.game .layout{display:block}
.game .shared-table{display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:start}
.shared-table>.center,.shared-table>.table-zone-bar,.shared-table>#opponent,.shared-table>.table-divider,.shared-table>#self{grid-column:1;min-width:0}
.game .shared-table>.side{grid-column:2;grid-row:1/6;display:block;align-self:stretch;min-width:0;padding:12px;border-left:1px solid #46536a;background:#141a24}
.game .shared-table>.side .panel{margin:0 0 12px;padding:12px}
.game .shared-table>.side .panel:last-child{margin-bottom:0}
@media(max-width:850px){.game .shared-table{grid-template-columns:minmax(0,1fr)}.game .shared-table>.side{grid-column:1;grid-row:auto;border-left:0;border-top:1px solid #46536a;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game .shared-table>.side .panel{margin:0}.game .shared-table>.side .activity{grid-column:1/-1}}
@media(max-width:500px){.game .shared-table>.side{display:block}.game .shared-table>.side .panel{margin-bottom:12px}}

.card-title-filter,.card-title-select{width:100%;min-width:0;box-sizing:border-box;background:#24252c;color:var(--text);border:1px solid #50505b;border-radius:7px;padding:10px;font:inherit}.card-title-filter:focus-visible,.card-title-select:focus-visible{outline:2px solid #f5c96a;outline-offset:3px}

.voice-panel{border:1px solid #5d5269;border-radius:12px;background:#18141f;padding:12px 16px;margin:12px 0;color:#f4eef9}.voice-panel[hidden]{display:none}.voice-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.voice-heading span{font-size:13px;color:#c6bdd1}.voice-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.voice-panel small{display:block;color:#b9b0c6}.voice-panel .error{margin:8px 0 0}.voice-panel .btn[aria-pressed="true"]{border-color:#4bca90;color:#a2e4bf}.voice-panel audio{display:none}@media(max-width:600px){.voice-panel{padding:10px 12px}.voice-buttons .btn{flex:1 1 auto;min-height:42px}}

/* Dragging is an additional way to submit a legal card play. */
#self .hand .drag-playable{cursor:grab}#self .hand .drag-playing{opacity:.45;cursor:grabbing}#self .ring-area.drop-ready{outline:2px dashed #f5c96a;outline-offset:5px;border-radius:6px;background:#f5c96a0d}#self .ring-area.drop-over{outline-style:solid;background:#f5c96a26;box-shadow:0 0 22px #f5c96a33}#self .ring-area.drop-ready .ringlabel{color:#f5c96a}#self .ring-area.drop-ready .ringlabel::after{content:'Suelta aquí para jugar';font-size:11px;margin-left:auto}

.match-clock{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;margin:0 0 14px;border:1px solid #46536a;border-radius:8px;background:#141a24}.match-clock strong{font-size:11px;letter-spacing:1px;color:#c1ccdc}.match-clock small{display:block;color:#a9bde1;font-size:11px;margin-top:4px}.match-clock output{font-size:25px;line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:2px;color:#f5c96a}

/* Backlash stays beside the table without a modal backdrop. */
#overlay{background:transparent;backdrop-filter:none}
.backlash-drawer{position:fixed;right:14px;top:80px;bottom:18px;width:min(340px,calc(100vw - 28px));z-index:8;display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid #6e7890;border-radius:12px;background:#171d28;box-shadow:0 8px 28px #0006;overflow:hidden}.backlash-drawer[hidden]{display:none}.backlash-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.backlash-drawer-head h2{font-size:16px;line-height:1.4;margin:0;overflow-wrap:anywhere}.backlash-drawer-head .btn{white-space:nowrap;padding:7px 9px}.backlash-drawer>p{font-size:12px;line-height:1.5;color:#b7c3d9;margin:0}.backlash-drawer-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;overflow-y:auto;min-height:0;padding:4px 6px 12px;align-content:start}.backlash-drawer-cards .card,.backlash-drawer-cards .card.real{width:100%;max-width:100%;height:auto;min-height:0}.backlash-drawer-cards .card:not(.real){min-height:180px}.backlash-drawer-cards .card.real img{aspect-ratio:auto}.backlash-drawer-cards .drag-playable{cursor:grab}.card-drag-active .backlash-drawer{opacity:.18;pointer-events:none}.backlash-drawer-cards .drag-playing{opacity:.45}
/* Superstar and Backstage share one vertical column at every table size. */
.shared-table .player{grid-template-columns:195px 76px minmax(0,1fr) 92px}.shared-table .identity-column{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:12px;align-self:start;min-width:0}.shared-table .identity-column .identity-zone{width:100%;gap:6px}.shared-table .identity-column [data-identity-zone="superstar"] .card,.shared-table .identity-column [data-identity-zone="superstar"] .card.real{width:100%;max-width:100%;min-height:0}.shared-table .identity-column [data-identity-zone="superstar"] .card:not(.real){min-height:190px}.shared-table .identity-column [data-identity-zone="backstage"]{border-top:1px solid #56658070;padding-top:9px}.shared-table .identity-column [data-identity-zone="backstage"]::before{content:'BACKSTAGE';width:100%;font-size:9px;letter-spacing:1px;color:#aebcd0}.shared-table .identity-column [data-identity-zone="backstage"] .card,.shared-table .identity-column [data-identity-zone="backstage"] .card.real{width:calc(50% - 3px);max-width:100%;min-height:0}.shared-table .identity-column [data-identity-zone="backstage"] .card:not(.real){min-height:80px}
@media(min-width:1500px){.shared-table .player{grid-template-columns:195px 85px minmax(0,1fr) 100px}}
@media(max-width:950px){.shared-table .player{grid-template-columns:150px 70px minmax(0,1fr) 86px}.shared-table .identity-column{grid-row:2/4}}
@media(max-width:650px){.shared-table .player{grid-template-columns:112px 62px minmax(0,1fr)}.shared-table .identity-column [data-identity-zone="superstar"] .card:not(.real){min-height:125px}.shared-table .identity-column [data-identity-zone="backstage"] .card,.shared-table .identity-column [data-identity-zone="backstage"] .card.real{width:100%}.backlash-drawer{right:8px;top:70px;bottom:10px;width:min(290px,calc(100vw - 35px))}}
@media(max-width:380px){.shared-table .player{grid-template-columns:90px 56px minmax(0,1fr)}}

header .brand{display:flex;align-items:center;gap:12px;flex-shrink:0}header .brand-logo{display:block;width:126px;height:auto;object-fit:contain}header .brand-game{font-size:10px;letter-spacing:2px;color:#8e8696}header .toplinks{flex-wrap:wrap;justify-content:flex-end}@media(max-width:650px){header{flex-wrap:wrap;gap:12px}header .brand-logo{width:100px}header .toplinks{justify-content:flex-start;gap:10px}}

/* Backlash is a window in the table's own right column. */
.shared-table .backlash-drawer{position:relative;inset:auto;width:100%;height:auto;max-height:none;z-index:auto;overflow:visible;margin-bottom:14px;padding:12px;box-shadow:none}.shared-table .backlash-drawer-head{flex-wrap:wrap}.shared-table .backlash-drawer-cards{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-items:start;align-content:start;max-height:72vh;overflow-y:auto;padding:6px 5px 12px;scrollbar-gutter:stable}.shared-table .backlash-drawer-cards .card,.shared-table .backlash-drawer-cards .card.real{display:block;align-self:start;width:100%;height:auto;max-height:none;min-height:0;flex-shrink:0}.shared-table .backlash-drawer-cards .card.real img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}.shared-table .backlash-drawer-cards .card:not(.real){min-height:180px}

/* Crop only the outer white margin; preserve the black frame and original colors. */
header .brand-logo-frame{display:block;position:relative;width:104px;aspect-ratio:1800/870;overflow:hidden;flex-shrink:0;background:#000}header .brand-logo-frame .brand-logo{position:absolute;left:-6.8889%;top:-14.2529%;width:113.7223%;max-width:none;height:auto;transform:none;filter:none;mix-blend-mode:normal}@media(max-width:650px){header .brand-logo-frame{width:84px}}

/* Backlash belongs to the lower player's zone, after Ringside and Removed. */
.shared-table .backlash-dock{display:none;min-width:0;grid-column:5;grid-row:2;align-self:start}.shared-table .player.has-backlash-window>.backlash-dock{display:block}.shared-table #self .player.has-backlash-window{grid-template-columns:150px 62px minmax(130px,1fr) 76px minmax(180px,220px);column-gap:10px}.shared-table .backlash-dock .backlash-drawer{margin:0}.shared-table .backlash-dock .backlash-drawer-cards{max-height:55vh}
@media(min-width:1500px){.shared-table #self .player.has-backlash-window{grid-template-columns:175px 76px minmax(160px,1fr) 85px minmax(200px,250px)}}
@media(max-width:950px){.shared-table #self .player.has-backlash-window{grid-template-columns:115px 58px minmax(100px,1fr) 70px minmax(160px,190px);column-gap:8px}}
@media(max-width:650px){.shared-table #self .player.has-backlash-window{grid-template-columns:90px minmax(54px,1fr) minmax(125px,42%);gap:8px}.shared-table #self .has-backlash-window .identity-column{grid-column:1;grid-row:2/4}.shared-table #self .has-backlash-window .zones>.stack{grid-column:2;grid-row:2}.shared-table #self .has-backlash-window .pile-zones{grid-column:2;grid-row:3}.shared-table #self .has-backlash-window .ring-area{grid-column:1/3;grid-row:4}.shared-table #self .has-backlash-window .backlash-dock{grid-column:3;grid-row:2/5}.shared-table #self .has-backlash-window .hand{grid-row:5}.shared-table .backlash-dock .backlash-drawer{padding:8px}.shared-table .backlash-dock .backlash-drawer-cards{max-height:60vh;padding:4px 2px 8px}.shared-table .backlash-dock .backlash-drawer-head h2{font-size:13px}}

/* Zone shortcuts travel with the corresponding Superstar heading. */
#zoneBar{display:none}.shared-table .playerhead>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:0;flex:1}.shared-table .playerhead>div:first-child>h2{margin:0}.shared-table .playerhead>div:first-child>small,.shared-table .playerhead>div:first-child>.connected{flex-basis:100%;margin:0}.player-zone-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0;flex:1 1 420px}.player-zone-controls .table-zone-tab{font-size:9px;padding:6px 7px}.player-zone-controls .table-hand-count{font-size:9px}.shared-table .playerhead .f{align-self:flex-start}.game .shared-table>.side{grid-row:1/5}
/* Only public pile tops are shown; Arsenal always uses the same genuine back. */
.shared-table .stack.has-pile-art{padding:5px;min-height:0;height:auto;background:#151d2a}.pile-visual{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:5/7;overflow:hidden;border-radius:4px;background:#10151d}.pile-visual .pile-art{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;pointer-events:none}.pile-visual.arsenal-back .pile-art{position:absolute;left:50%;top:50%;width:116%;height:auto;max-width:none;transform:translate(-50%,-50%) rotate(1.1deg)}.pile-fallback{padding:6px;font-size:9px;line-height:1.35;overflow-wrap:anywhere;color:#e4d8b7}.shared-table .stack.has-pile-art>strong{display:block;font-size:15px;line-height:1.25;margin-top:5px}.shared-table .stack.has-pile-art>small{display:block;font-size:9px;line-height:1.35;margin-top:3px}
@media(max-width:850px){.game .shared-table>.side{grid-row:auto}}
@media(max-width:650px){.player-zone-controls{flex-basis:100%;gap:5px}.player-zone-controls .table-zone-tab{padding:7px 6px}.shared-table .playerhead{gap:8px}.shared-table .stack.has-pile-art>strong{font-size:14px}}

.account-checking>header,.account-checking>#appWrap,.account-checking>#backlashParking{visibility:hidden}#accountLoading{padding:60px 24px;text-align:center;color:#c9bdc6;font-size:14px}#accountLoading a{display:inline-block;padding:12px}

.saved-deck-entry{margin:18px 0 24px;padding:16px;border:1px solid #665047;border-radius:9px;background:#2a2020}.saved-deck-entry .note{margin-bottom:0}.cloud-decks-dialog{color:#eee8df;background:#171c25;border:1px solid #67718a;border-radius:12px;width:min(940px,calc(100vw - 28px));max-height:88vh;padding:24px;overflow:auto}.cloud-decks-dialog::backdrop{background:transparent}.cloud-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.cloud-head h2{margin:6px 0 8px}.cloud-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:11px}.cloud-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px;margin-top:16px}.cloud-list{display:grid;gap:8px;align-content:start}.cloud-list-section{max-height:60vh;overflow:auto;padding-right:6px}.cloud-deck{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;padding:13px;border:1px solid #485469;border-radius:8px;text-align:left;background:#202a39;color:#eee8df;overflow-wrap:anywhere}.cloud-deck[aria-pressed="true"]{border-color:#f5c96a;background:#373126}.cloud-deck strong{font-size:13px}.cloud-deck span{font-size:11px;color:#c0c9d8}.cloud-deck small{font-size:10px;color:#96a4bb}.cloud-review{border-left:1px solid #45516a;padding-left:22px;min-width:0}.cloud-review label{display:block;margin:14px 0 6px;font-size:11px;color:#c0c9d8}.cloud-review select{width:100%}.cloud-review details{font-size:11px;line-height:1.7;margin:16px 0}.cloud-review details ul{padding-left:18px;max-height:220px;overflow:auto}.cloud-review .btn.primary{margin-top:18px;width:100%}.cloud-review .error{line-height:1.6;overflow-wrap:anywhere}.cloud-ready{color:#8edbb6;font-size:12px}.cloud-counts{font-size:11px;line-height:1.7;color:#b7c9e2}.cloud-decks-dialog #cloudError:empty{display:none}#cloudMore{margin-top:12px}.cloud-decks-dialog button[hidden],.cloud-decks-dialog [hidden]{display:none!important}@media(max-width:650px){.cloud-decks-dialog{padding:16px}.cloud-columns{grid-template-columns:1fr}.cloud-list-section{max-height:32vh}.cloud-review{border-left:0;border-top:1px solid #45516a;padding:15px 0 0}}

.normal-format{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #46536a;border-radius:8px;margin:22px 0;background:#18202c}.normal-format span{font-size:9px;letter-spacing:1.5px;color:#9aa8be}.normal-format strong{font-size:13px;color:#e3d5b5}.excel-entry{padding-top:4px;margin-bottom:20px}.excel-entry .note{margin:0 0 10px}

.tie-break{padding:14px 18px;border-bottom:1px solid #665432;background:#242018;color:#f4e6c9;text-align:center}.tie-break>strong{font-size:12px}.tie-break-result p{font-size:11px;margin:10px 0 4px}.dice-row{display:flex;justify-content:center;gap:32px;flex-wrap:wrap}.dice-player{display:flex;align-items:center;gap:8px;font-size:12px}.tie-die{font-size:44px;line-height:1.2;color:#ffe2a3}.tie-break-result small{display:block;color:#c9b68f}.tie-break-result>b{display:block;font-size:12px;margin:6px 0}@media(prefers-reduced-motion:no-preference){.tie-die{animation:die-reveal .45s ease-out}@keyframes die-reveal{from{opacity:0;transform:rotate(-15deg) scale(.6)}to{opacity:1;transform:none}}}

.report-dialog{width:min(560px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #6e7890;border-radius:12px;background:#171d28;color:#eee8df}.report-dialog::backdrop{background:transparent}.report-dialog h2{margin:0 0 20px;font-size:22px}.report-dialog label{display:block;font-size:13px;margin-bottom:9px}.report-dialog textarea{box-sizing:border-box;display:block;width:100%;resize:vertical;min-height:160px;max-height:45dvh;padding:12px;border:1px solid #6e7890;border-radius:7px;background:#101622;color:#fff;font:inherit;font-size:14px;line-height:1.6}.report-dialog textarea:focus{outline:2px solid #e5bf69;outline-offset:2px}.report-dialog small{display:block;text-align:right;font-size:11px;color:#aebcd0;margin-top:5px}.report-dialog p{font-size:12px;line-height:1.6}.report-dialog .btn-row{justify-content:flex-end;flex-wrap:wrap}.report-dialog #reportStatus:empty{display:none}html[data-theme="light"] .report-dialog{background:#fff;color:#172033}html[data-theme="light"] .report-dialog textarea{background:#fff;color:#172033}html[data-theme="light"] .report-dialog small{color:#596579}

/* Optional viewport-fitting table; card dialogs remain at their normal reading size. */
#compactTable[aria-pressed="true"]{border-color:#f5c96a;background:#514128;color:#fff0c8}
.compact-table body:has(.wrap.playing)>header{padding:9px 18px}.compact-table .wrap.playing{padding:10px 14px}.compact-table .match-clock{padding:6px 12px;margin-bottom:6px}.compact-table .voice-panel{padding:6px 12px;margin-bottom:6px}
.compact-table .shared-table .center{padding:7px 10px}.compact-table .shared-table .player{padding:8px 10px;row-gap:6px;column-gap:9px}.compact-table .shared-table .playerhead{gap:6px}.compact-table .shared-table .playerhead h2{font-size:14px}.compact-table .shared-table .playerhead small.pre-stats{font-size:9px}.compact-table .shared-table .ringlabel{padding:0 0 5px}.compact-table .shared-table .ring{min-height:75px;gap:7px}.compact-table .shared-table .hand{gap:6px;padding-top:7px;margin-top:6px}.compact-table .shared-table .hand .card.real{width:64px}.compact-table .shared-table .ring>.card.real{width:70px}.compact-table .shared-table .match-stack{width:95px}.compact-table .shared-table .match-stack-card:not(:last-child){height:19px}.compact-table .shared-table .identity-column{gap:6px}.compact-table .shared-table .identity-column [data-identity-zone="superstar"]{max-width:115px}.compact-table .shared-table .identity-column [data-identity-zone="backstage"]{padding-top:5px}.compact-table .shared-table .identity-column [data-identity-zone="backstage"] .card.real{max-width:46px}.compact-table .shared-table .pile-visual{max-height:72px}.compact-table .shared-table .backlash-drawer-cards{max-height:220px}.compact-table .game .shared-table>.side{max-height:65vh;overflow-y:auto;padding:8px}.compact-table .shared-table .card-preview>.card.real{width:100px}.compact-table .shared-table .side .panel{padding:8px;margin-bottom:7px}.compact-table .shared-table .log{max-height:110px}.compact-table .shared-table .side h2{font-size:12px}.compact-table .shared-table .table-divider{padding:2px;min-height:2px}.compact-table .shared-table .backlash-drawer-head h2{font-size:12px}
@media(max-width:850px){.compact-table .game .shared-table>.side{max-height:160px;overflow:auto}.compact-table .shared-table .identity-column [data-identity-zone="superstar"]{max-width:90px}}

.compact-table #prematchPanel{max-height:75px;overflow:auto;padding:8px;margin-bottom:6px}

.ranking-dialog{width:min(1120px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #67718a;border-radius:12px;background:#171d28;color:#eee8df}.ranking-dialog::backdrop{background:transparent}.ranking-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.ranking-head h2{font-size:23px;margin:0}.ranking-rules{font-size:12px;line-height:1.7;color:#bec8d9}.ranking-dialog form{padding:13px;background:#222c3b;border-radius:8px;margin:16px 0}.ranking-dialog label{display:block;font-size:12px;margin-bottom:8px}.ranking-dialog form>div{display:flex;gap:8px;flex-wrap:wrap}.ranking-dialog input{min-width:0;flex:1;padding:10px;border:1px solid #68768d;border-radius:6px;background:#101622;color:#fff;font:inherit}.ranking-toolbar{display:flex;align-items:center;gap:14px;font-size:12px}.ranking-scroll{overflow-x:auto;margin:14px 0}.ranking-dialog table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.5}.ranking-dialog caption{text-align:left;font-weight:700;font-size:15px;margin:0 0 12px}.ranking-dialog th,.ranking-dialog td{padding:11px 9px;text-align:left;border-bottom:1px solid #3a485e;vertical-align:top}.ranking-dialog th{color:#f2d38a;white-space:nowrap}.ranking-dialog td:nth-child(3){min-width:160px}.ranking-self{background:#423a2455}.ranking-dialog #rankingError:empty{display:none}.ranking-dialog #rankingLoad[hidden],.ranking-dialog #rankingMore[hidden]{display:none}.ranking-dialog h3{margin-top:26px;font-size:16px}html[data-theme="light"] .ranking-dialog{background:#fff;color:#172033}html[data-theme="light"] .ranking-dialog form{background:#edf1f8}html[data-theme="light"] .ranking-dialog input{background:#fff;color:#172033}html[data-theme="light"] .ranking-dialog th{color:#714d12}html[data-theme="light"] .ranking-rules{color:#526079}@media(max-width:650px){.ranking-dialog{padding:16px}.ranking-head h2{font-size:19px}.ranking-dialog th,.ranking-dialog td{padding:9px 7px}}

/* Available actions sit directly beneath the local Removed from Game pile. */
.shared-table #self .player{grid-template-columns:175px 76px minmax(0,1fr) 200px}
.shared-table #self .player.has-backlash-window{grid-template-columns:150px 62px minmax(100px,1fr) 190px minmax(180px,220px)}
.shared-table #self .pile-zones>.stack{width:92px;align-self:flex-start}
.shared-table #self .table-actions{width:100%;box-sizing:border-box;margin:0;text-align:left;padding:12px;min-width:0}
.table-actions .label{font-size:10px;overflow-wrap:anywhere}.table-actions .inline-controls{flex-direction:column;gap:7px}.table-actions .inline-controls .btn,.table-actions #openStep{width:100%;white-space:normal;overflow-wrap:anywhere;font-size:11px;padding:9px;text-align:left}.table-actions #inlineStatus:empty{display:none}.compact-table .shared-table #self .table-actions{padding:8px}
@media(max-width:950px) and (min-width:651px){.shared-table #self .player{grid-template-columns:130px 62px minmax(0,1fr) 175px}.shared-table #self .player.has-backlash-window{grid-template-columns:115px 58px minmax(80px,1fr) 165px minmax(160px,190px)}.shared-table #self .pile-zones>.stack{width:76px}}
@media(max-width:650px){.shared-table #self .player{grid-template-columns:112px 62px minmax(0,1fr)}.shared-table #self .pile-zones,.shared-table #self .has-backlash-window .pile-zones{grid-column:2/-1;grid-row:3}.shared-table #self .pile-zones>.stack{width:62px}.shared-table #self .player.has-backlash-window{grid-template-columns:90px minmax(54px,1fr) minmax(125px,42%)}.shared-table #self .has-backlash-window .backlash-dock{grid-row:2}.shared-table #self .table-actions{max-width:260px}}

/* Align preview and history with the lower player's Fortitude heading. */
@media(min-width:851px){.game .shared-table:has(#self .table-actions)>.center{grid-row:1}.game .shared-table:has(#self .table-actions)>.tie-break{grid-column:1;grid-row:2}.game .shared-table:has(#self .table-actions)>#opponent{grid-row:3}.game .shared-table:has(#self .table-actions)>.table-divider{grid-row:4}.game .shared-table:has(#self .table-actions)>#self{grid-row:5}.game .shared-table:has(#self .table-actions)>.side{grid-row:5;align-self:start;margin-top:var(--sidebar-offset,0px)}}

/* Expanded table view preserves card sizes and the opposing player layout. */
#panoramicTable[aria-pressed="true"]{border-color:#f5c96a;background:#514128;color:#fff0c8}
html.panoramic-table body:has(.wrap.playing)>header{padding:5px 12px;gap:8px}
html.panoramic-table body:has(.wrap.playing)>header .brand-logo-frame{width:65px}
html.panoramic-table body:has(.wrap.playing)>header .brand-game{display:none}
html.panoramic-table .wrap.playing{padding:4px 8px 10px}
html.panoramic-table .match-clock{padding:4px 10px;margin-bottom:4px}
html.panoramic-table .voice-panel{padding:4px 10px;margin-bottom:4px}
html.panoramic-table .shared-table .center{padding:5px 10px}
html.panoramic-table .shared-table .player{padding-top:6px;padding-bottom:6px;row-gap:5px}
html.panoramic-table .shared-table .hand{padding-top:5px;margin-top:4px}
html.panoramic-table .shared-table .table-divider{padding:2px;min-height:2px}
html.panoramic-table #prematchPanel{padding:6px 10px;margin-bottom:4px}
html.panoramic-table #prematchPanel h2{margin:3px 0}
html.panoramic-table #prematchPanel .pre-steps{margin:4px 0}
html.panoramic-table #prematchPanel .note{margin:4px 0}
html.panoramic-table .game .shared-table>.side{max-height:320px;overflow:auto}
html.panoramic-table .table-rules{margin-top:4px}
/* Local hand sits directly beneath its Ring Area and fans around its center. */
#self .ring-area>.hand{--fan-card-width:125px;display:block;min-width:0;width:100%;margin:2px 0 0;padding:8px 0 0;border-top:1px solid #58688380;grid-row:auto}
#self .ring-area>.hand>label{display:block;margin:0 0 3px;font-size:9px;line-height:1.5}
#self .hand.fan-hand .hand-fan{position:relative;isolation:isolate;width:100%;height:246px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--control-accent) transparent;overscroll-behavior-x:contain}
#self .hand .hand-fan-track{position:relative;height:234px;min-width:100%}
#self .hand .hand-fan-track>.card,#self .hand .hand-fan-track>.card.real{position:absolute;left:var(--fan-x);top:32px;width:var(--fan-card-width);max-width:none;margin:0;z-index:var(--fan-z);transform:translate(-50%,var(--fan-y)) rotate(var(--fan-angle));transform-origin:50% 90%;transition:transform .18s ease,box-shadow .18s ease;touch-action:pan-x}
#self .hand .hand-fan-track>.card:hover,#self .hand .hand-fan-track>.card:focus-visible{z-index:100;transform:translate(-50%,calc(var(--fan-y) - 24px)) rotate(0deg) scale(1.1);box-shadow:0 0 0 2px var(--control-accent),0 9px 20px #0007}
#self .hand .hand-fan-track>.card.drag-playing{z-index:101;transition:none}
.compact-table #self .ring-area>.hand{--fan-card-width:92px}
.compact-table #self .hand.fan-hand .hand-fan{height:208px}.compact-table #self .hand .hand-fan-track{height:196px}
@media(max-width:650px){#self .ring-area>.hand{--fan-card-width:100px}#self .hand.fan-hand .hand-fan{height:222px}#self .hand .hand-fan-track{height:210px}}
@media(prefers-reduced-motion:reduce){#self .hand .hand-fan-track>.card{transition:none}}
#self .ring-area:has(>.fan-hand).drop-ready{outline:none;background:transparent;box-shadow:none}
#self .ring-area:has(>.fan-hand).drop-ready>.ring{outline:2px dashed var(--control-accent);outline-offset:3px}
#self .ring-area:has(>.fan-hand).drop-over>.ring{outline-style:solid;background:var(--accent-surface)}
/* Back arrows navigate views without changing the game state. */
.actions-heading{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.view-back{display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--accent-text);font-size:23px;line-height:1;cursor:pointer}
.view-back:hover,.view-back:focus-visible{border-color:var(--control-accent);box-shadow:0 0 0 1px var(--control-accent)}
#overlay .dialog,#nextStepOverlay .dialog{position:relative;padding-top:60px}
.dialog-back{position:absolute;left:18px;top:16px}
#availableActions .actions-heading .label{margin:0;line-height:1.5}

/* Continue the right table divider above the lower-player sidebar. */
.shared-table{--table-divider-color:#46536a}
html[data-theme=light] .shared-table{--table-divider-color:#ccd5e1}
@media(min-width:851px){
 .game .shared-table:has(#self .table-actions)::after{content:'';grid-column:2;grid-row:1/6;align-self:stretch;justify-self:start;width:1px;min-height:0;background:var(--table-divider-color);pointer-events:none;z-index:1}
 .game .shared-table:has(#self .table-actions)>.side{border-left:0}
}

/* Resolving cards keep their scan's natural orientation, just like full-card previews. */
.live-play .card.real{min-height:0;height:auto}
.live-play .card.real img:not(.landscape-crop){height:auto;aspect-ratio:auto}

/* Larger, bold zone labels on both sides of the table. */
.shared-table .player .ringlabel{font-size:14px;font-weight:800;line-height:1.5;flex-wrap:wrap;gap:4px 12px;overflow-wrap:anywhere}
.shared-table .player .ring-backlash-label,.shared-table .player .match-stack-label{font-size:12px;font-weight:800;line-height:1.5;letter-spacing:.4px;overflow-wrap:anywhere}
.shared-table .player .stack small{font-size:11px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.shared-table .player .hand>label,#self .ring-area>.hand>label{font-size:12px;font-weight:800;line-height:1.5;letter-spacing:.4px;overflow-wrap:anywhere}
.shared-table .player .playerhead small,.shared-table .player .playerhead small.pre-stats,.shared-table .player .connected{font-size:12px;font-weight:800;line-height:1.6}
.shared-table .player .identity-column [data-identity-zone="backstage"]::before,.shared-table .player .aux>.identity-zone[data-identity-zone="backstage"]::before{font-size:12px;font-weight:800;line-height:1.5;letter-spacing:.4px}
.shared-table .player .f{font-size:12px;font-weight:800}

/* Keep Backlash and match labels readable over playmats in both themes. */
.shared-table .player .ring-backlash-label,.shared-table .player .match-stack-label,
.shared-table .player .ring-backlash-label:hover,.shared-table .player .ring-backlash-label:focus-visible,
.shared-table .player .match-stack:hover .match-stack-label,.shared-table .player .match-stack:focus-visible .match-stack-label{color:var(--accent-text,#D8BC7E)}

/* Warm hover glow keeps the theme's readable label color. */
.shared-table .player .ring-backlash-label{transition:color .14s,border-color .14s,box-shadow .14s,text-shadow .14s}
.shared-table .player .match-stack-label{transition:text-shadow .14s}
@media(hover:hover){
 .shared-table .player .ring-backlash-label:hover,.shared-table .player .match-stack:hover .match-stack-label{text-shadow:0 0 6px #d8bc7eb3,0 0 14px #d8bc7e80}
}
.shared-table .player .ring-backlash-label:focus-visible,.shared-table .player .match-stack:focus-visible .match-stack-label{text-shadow:0 0 6px #d8bc7eb3,0 0 14px #d8bc7e80}
@media(prefers-reduced-motion:reduce){.shared-table .player .ring-backlash-label,.shared-table .player .match-stack-label{transition:none}}

/* The header brand is a native home link on every page. */
header a.brand{color:inherit;text-decoration:none}
header a.brand:focus-visible{outline:2px solid currentColor;outline-offset:5px;border-radius:3px}

/* Larger player summary and zone shortcuts, in both table views. */
.shared-table .player .playerhead h2{font-size:20px;line-height:1.35;overflow-wrap:anywhere}
.shared-table .player .playerhead small,.shared-table .player .playerhead small.pre-stats,.shared-table .player .playerhead .connected{font-size:14px;line-height:1.65;font-weight:800}
.shared-table .player .playerhead .player-account-label{font-size:14px;gap:9px}
.shared-table .player .playerhead .player-portrait{width:38px;height:38px}
.shared-table .player .player-zone-controls{gap:8px;flex-basis:540px}
.shared-table .player .player-zone-controls .table-zone-tab,.shared-table .player .player-zone-controls .table-hand-count{font-size:12px;font-weight:700;line-height:1.45;padding:9px 11px;border-radius:7px}
.shared-table .player .player-zone-controls .table-hand-count{border:1px solid transparent}
.shared-table .player .player-zone-controls :is(.table-zone-tab,.table-hand-count){transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease,color .16s ease}
.shared-table .player .player-zone-controls :is(.table-zone-tab,.table-hand-count):hover,.shared-table .player .player-zone-controls .table-zone-tab:focus-visible{border-color:#c49a4b;color:var(--accent-text,#D8BC7E);background:color-mix(in srgb,var(--panel,#1d2531) 88%,#d6b474);box-shadow:0 0 0 1px #d6b47466,0 0 16px #d6b47455;text-shadow:0 0 8px #d6b47444}
.shared-table .player .player-zone-controls .table-zone-tab:focus-visible{outline:2px solid #c49a4b;outline-offset:3px}
@media(max-width:650px){.shared-table .player .playerhead h2{font-size:18px}.shared-table .player .playerhead small,.shared-table .player .playerhead small.pre-stats,.shared-table .player .playerhead .connected{font-size:12px}.shared-table .player .player-zone-controls{flex-basis:100%;gap:7px}.shared-table .player .player-zone-controls .table-zone-tab,.shared-table .player .player-zone-controls .table-hand-count{font-size:12px;padding:8px 10px}}
@media(prefers-reduced-motion:reduce){.shared-table .player .player-zone-controls :is(.table-zone-tab,.table-hand-count){transition:none}}

/* Hand inspection is read-only and uses only cards already exposed by the server. */
.hand-zone-open{font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;border:0;background:transparent;padding:2px 0;text-align:left;cursor:pointer}
.hand-zone-open:hover{color:var(--accent,#cda952);text-shadow:0 0 9px #d2ac5055}
.hand-zone-open:focus-visible{outline:2px solid var(--accent,#cda952);outline-offset:3px}
.table-hand-count[type=button]{cursor:pointer;color:inherit;background:transparent}
.table-hand-count[type=button]:focus-visible{outline:2px solid var(--accent,#cda952);outline-offset:2px}

#availableActions[hidden]{display:none!important}
.manual-play-bar{display:flex;justify-content:flex-end;margin:8px 0;gap:8px}
.manual-play-bar[hidden]{display:none}
#assistedPlayToggle[aria-pressed=true]{border-color:var(--accent,#cda952)}

.shared-table #self .manual-play-bar{flex-direction:column;align-items:stretch;gap:8px}
.shared-table #self .manual-play-bar .btn{width:100%;white-space:normal;overflow-wrap:anywhere}

.shared-table #self .playerhead #prematchPanel{flex:0 0 100%;width:100%;min-width:0;box-sizing:border-box;margin:8px 0 0;padding:12px}
.shared-table #self .playerhead #prematchPanel h2{font-size:16px;margin:6px 0}
.shared-table #self .playerhead #prematchPanel .pre-steps{margin:10px 0;gap:6px}
.shared-table #self .playerhead #prematchPanel .note{white-space:normal;overflow-wrap:anywhere;line-height:1.6}

/* Complete match view: the page stays in the viewport; inspection dialogs keep their reading size. */
html.full-table490,html.full-table490 body{height:100%;overflow:hidden}
html.full-table490 body>header{padding:4px 10px;gap:8px;flex-wrap:nowrap;min-height:40px}
html.full-table490 body>header .brand-logo-frame{width:65px}
html.full-table490 body>header .brand-game{display:none}
html.full-table490 body>header .toplinks{gap:6px;align-items:center}
html.full-table490 body>header .toplinks .btn{padding:5px 7px;font-size:14px}
html.full-table490 .wrap.playing{max-width:none;width:100%;padding:3px 6px}
html.full-table490 #game{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 8px}
html.full-table490 #game>[hidden]{display:none!important}
html.full-table490 #game>.layout,html.full-table490 #game>#gameError,html.full-table490 #game>#invitePanel{grid-column:1/-1}
html.full-table490 #gameError:empty{display:none}
html.full-table490 #gameError{margin:0;padding:2px;min-height:0}
html.full-table490 .match-clock{padding:3px 8px;margin:0;gap:8px;min-height:32px}
html.full-table490 .match-clock>div{display:flex;align-items:center;gap:10px;min-width:0}
html.full-table490 .match-clock strong,html.full-table490 .match-clock small{font-size:13px;margin:0}
html.full-table490 .match-clock output{font-size:23px}
html.full-table490 .voice-panel{padding:3px 8px;margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-radius:7px}
html.full-table490 .voice-heading{gap:8px;font-size:13px}
html.full-table490 .voice-heading span{font-size:13px}
html.full-table490 .voice-buttons{margin:0;gap:4px}
html.full-table490 .voice-buttons .btn{padding:4px 6px;font-size:13px}
html.full-table490 .voice-panel>small{display:none}
html.full-table490 .voice-panel .error{margin:0;font-size:13px;min-height:0}
html.full-table490 .table-rules,html.full-table490 body>footer{display:none}
html.full-table490 .game .shared-table{grid-template-columns:minmax(0,1fr) 210px;align-items:start;transform-origin:top left}
html.full-table490 .game .shared-table>.center{grid-column:1;grid-row:1;padding:4px 8px;min-height:24px}
html.full-table490 .game .shared-table>.tie-break{grid-column:1;grid-row:2}
html.full-table490 .game .shared-table>#opponent{grid-column:1;grid-row:3}
html.full-table490 .game .shared-table>.table-divider{grid-column:1;grid-row:4;margin:0 6px;padding:0;height:1px;min-height:1px}
html.full-table490 .game .shared-table>#self{grid-column:1;grid-row:5}
html.full-table490 .game .shared-table>.side{grid-column:2;grid-row:1/6;display:grid;grid-template-columns:1fr;grid-template-rows:auto auto minmax(80px,1fr);align-self:stretch;align-content:start;gap:6px;padding:6px;margin:0;max-height:none;overflow:visible;border-left:1px solid var(--line)}
html.full-table490 .game .shared-table>.side .panel{padding:6px;margin:0;min-height:0}
html.full-table490 .game .shared-table>.side h2{font-size:14px;margin:0 0 5px}
html.full-table490 .game .shared-table>.side .card-preview{min-height:0;gap:4px;display:grid;grid-template-columns:70px minmax(0,1fr)}
html.full-table490 .game .shared-table>.side .card-preview>.card.real{width:70px;grid-row:1/3}
html.full-table490 .game .shared-table>.side .card-preview>b{font-size:14px}
html.full-table490 .game .shared-table>.side .card-preview>small{font-size:13px}
html.full-table490 .game .shared-table>.side .reveal{min-height:0;padding:4px;display:flex;gap:7px;text-align:left}
html.full-table490 .game .shared-table>.side .reveal .card.real{width:65px}
html.full-table490 .game .shared-table>.side .log{max-height:110px;font-size:13px}
html.full-table490 .game .shared-table:has(#self .table-actions)::after{grid-row:1/6}
html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player{grid-template-columns:148px 52px minmax(200px,1fr) 165px;gap:5px 7px;padding:5px 7px;align-items:start}
html.full-table490 .shared-table #self .player.has-backlash-window{grid-template-columns:148px 52px minmax(150px,1fr) 150px 150px}
html.full-table490 .shared-table .playerhead{grid-column:1/-1;grid-row:1;gap:8px}
html.full-table490 .shared-table .playerhead>div:first-child{gap:2px 8px}
html.full-table490 .shared-table .playerhead h2{font-size:18px;line-height:1.3}
html.full-table490 .shared-table .playerhead small,html.full-table490 .shared-table .playerhead small.pre-stats,html.full-table490 .shared-table .playerhead .connected{font-size:13px;line-height:1.25;flex-basis:auto}
html.full-table490 .shared-table .playerhead .player-account-label{font-size:14px;gap:4px}
html.full-table490 .shared-table .playerhead .player-portrait{width:22px;height:22px}
html.full-table490 .shared-table .playerhead .f{font-size:13px;gap:5px}
html.full-table490 .shared-table .playerhead .f strong{font-size:30px}
html.full-table490 .shared-table .player-zone-controls{flex:1 1 auto;gap:4px}
html.full-table490 .shared-table .player-zone-controls .table-zone-tab,html.full-table490 .shared-table .player-zone-controls .table-hand-count{font-size:13px;line-height:1.3;padding:4px 5px}
html.full-table490 .shared-table .identity-column{grid-column:1;grid-row:2;display:grid;grid-template-columns:95px 46px;align-items:start;gap:5px}
html.full-table490 .shared-table .identity-column [data-identity-zone=superstar]{max-width:95px}
html.full-table490 .shared-table .identity-column [data-identity-zone=backstage]{display:flex;flex-direction:column;gap:0;border:0;padding:0}
html.full-table490 .shared-table .identity-column [data-identity-zone=backstage]::before{font-size:12px;line-height:1.4}
html.full-table490 .shared-table .identity-column [data-identity-zone=backstage] .card.real{width:44px;max-width:44px;flex-shrink:0}
html.full-table490 .shared-table .identity-column [data-identity-zone=backstage] .card.real:not(:last-child){height:16px;overflow:hidden}
html.full-table490 .shared-table .identity-column [data-identity-zone=backstage] .card.real:hover,html.full-table490 .shared-table .identity-column [data-identity-zone=backstage] .card.real:focus-visible{height:auto;z-index:10}
html.full-table490 .shared-table .zones>.stack{grid-column:2;grid-row:2;min-height:0;padding:3px}
html.full-table490 .shared-table .pile-visual{max-height:55px}
html.full-table490 .shared-table .stack.has-pile-art>strong{font-size:18px;margin-top:2px}
html.full-table490 .shared-table .player .stack small{font-size:13px;line-height:1.2}
html.full-table490 .shared-table .ring-area{grid-column:3;grid-row:2;min-width:0}
html.full-table490 .shared-table .ringlabel{font-size:14px;line-height:1.3;padding-bottom:3px;margin-bottom:3px}
html.full-table490 .shared-table .ring{min-height:90px;gap:5px;padding:0}
html.full-table490 .shared-table .ring>.card.real{width:66px}
html.full-table490 .shared-table .ring-backlash{width:170px;column-gap:6px;row-gap:3px;flex-shrink:0}
html.full-table490 .shared-table .ring-backlash[data-count="1"]{width:82px}
html.full-table490 .shared-table .match-stack{width:82px}
html.full-table490 .shared-table .match-stack-card:not(:last-child){height:13px}
html.full-table490 .shared-table .ring-backlash-label,html.full-table490 .shared-table .match-stack-label{font-size:13px;line-height:1.3;padding-bottom:3px}
html.full-table490 .shared-table .pile-zones,html.full-table490 .shared-table #self .pile-zones{grid-column:4;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;align-content:start}
html.full-table490 .shared-table #self .pile-zones>.stack{width:100%}
html.full-table490 .shared-table .pile-zones>.stack{min-height:0;padding:3px}
html.full-table490 .shared-table #self .table-actions{grid-column:1/-1;padding:6px}
html.full-table490 .table-actions .actions-heading{margin-bottom:3px;gap:5px}
html.full-table490 .table-actions .view-back{width:24px;height:24px;min-width:24px;font-size:24px}
html.full-table490 .table-actions .inline-controls{gap:4px}
html.full-table490 .table-actions .inline-controls .btn,html.full-table490 .table-actions #openStep,html.full-table490 #manualPlayBar .btn{padding:5px;font-size:13px;line-height:1.3}
html.full-table490 #self .ring-area>.hand{--fan-card-width:100px;padding-top:3px;margin:3px 0 0}
html.full-table490 #self .hand.fan-hand .hand-fan{height:184px;overflow:hidden}
html.full-table490 #self .hand .hand-fan-track{height:178px}
html.full-table490 #self .hand .hand-fan-track>.card{top:8px}
html.full-table490 .shared-table .player .hand>label,html.full-table490 #self .ring-area>.hand>label{font-size:13px;line-height:1.3;margin-bottom:0}
html.full-table490 .shared-table .backlash-dock{grid-column:5;grid-row:2}
html.full-table490 .shared-table .backlash-dock .backlash-drawer-cards{max-height:160px;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
html.full-table490 .shared-table .live-play{width:100%;padding:5px;grid-template-columns:66px minmax(0,1fr);gap:8px}
html.full-table490 .shared-table .live-play .card.real{width:66px;min-height:0}
html.full-table490 .shared-table .live-info h3{font-size:15px;margin:3px 0}
html.full-table490 .shared-table .live-info p{font-size:13px;line-height:1.3;margin:3px 0}
html.full-table490 .shared-table .live-status{font-size:12px}
html.full-table490 .shared-table .live-responses{gap:4px;margin-top:4px}
html.full-table490 .shared-table .live-responses .btn,html.full-table490 .shared-table .live-info>.btn{font-size:13px;padding:5px}
@media(max-width:1000px){html.full-table490 .game .shared-table{grid-template-columns:minmax(0,1fr) 170px}html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player{grid-template-columns:112px 46px minmax(150px,1fr) 132px}html.full-table490 .shared-table .identity-column{grid-template-columns:66px 40px}html.full-table490 .shared-table .identity-column [data-identity-zone=superstar]{max-width:66px}html.full-table490 .shared-table #self .player.has-backlash-window{grid-template-columns:100px 44px minmax(130px,1fr) 125px 130px}}
@media(max-width:700px){html.full-table490 .game .shared-table{min-width:800px}html.full-table490 #game{grid-template-columns:minmax(0,1fr)}html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player{grid-template-columns:112px 46px minmax(150px,1fr) 132px}html.full-table490 body>header .toplinks{gap:3px}html.full-table490 body>header .toplinks a{font-size:12px}html.full-table490 body>header .toplinks .btn{font-size:12px;padding:3px 4px}}
html.full-table490 .game .shared-table:has(#self .table-actions)>.side{grid-row:1/6;align-self:stretch;margin-top:0;max-height:none;overflow:visible}
html.full-table490 .shared-table #self .has-backlash-window .identity-column{grid-column:1;grid-row:2}
html.full-table490 body>footer.r2f-legal-footer{display:block;position:fixed;inset:auto 0 0;z-index:2;margin:0;max-width:none;text-align:center;padding:3px 8px;font-size:12px;line-height:1.3;background:var(--bg);border-top:1px solid var(--line)}
html.full-table490 body>footer.r2f-legal-footer p,html.full-table490 body>footer.r2f-legal-footer strong{margin:0 auto;font:inherit;line-height:inherit}
html.full-table490 #self .hand .hand-fan-track>.card:hover,html.full-table490 #self .hand .hand-fan-track>.card:focus-visible{transform:translate(-50%,calc(var(--fan-y) - 6px)) rotate(0deg) scale(1.03)}

/* Use the complete available height instead of leaving an empty area below the mat. */
html.full-table490 .game .shared-table{grid-template-rows:auto auto minmax(min-content,1fr) 1px minmax(min-content,1fr)}
html.full-table490 .game .shared-table>#opponent,html.full-table490 .game .shared-table>#self{height:100%;min-height:0}
html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player{min-height:100%;grid-template-rows:auto minmax(min-content,1fr)}
html.full-table490 .shared-table .ring-area{display:flex;flex-direction:column;align-self:stretch}
html.full-table490 .shared-table .ring-area>.ring{flex:1;align-content:flex-start}
html.full-table490 .shared-table #self .playerhead #prematchPanel{max-height:none;height:auto;overflow:visible;margin-top:4px;padding:7px 9px}
html.full-table490 .shared-table #self .playerhead #prematchPanel h2{font-size:16px;margin:3px 0}
html.full-table490 .shared-table #self .playerhead #prematchPanel .pre-steps{margin:5px 0;gap:4px}
html.full-table490 #prematchPanel .pre-steps li{padding:4px 6px;font-size:13px}
html.full-table490 .shared-table #self .playerhead #prematchPanel .note{margin:4px 0;font-size:13px;line-height:1.4}
html.full-table490 .game .shared-table>.side .activity{display:flex;flex-direction:column;min-height:0}
html.full-table490 .game .shared-table>.side .activity .log{flex:1;min-height:0;max-height:100%;overflow:auto}
html.full-table490 .game .shared-table>.side .activity .log{height:0;flex:1 1 0;min-height:80px;max-height:none}

/* Full table only: left pile rail, larger right workspace and damage-first Ring stacks. */
.ring-groups493,.player-stats522>.ring-open493{display:none}
html.full-table490 .game .shared-table{grid-template-columns:minmax(0,1fr) clamp(350px,29vw,560px)}
html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player,html.full-table490 .shared-table #self .player.has-backlash-window{grid-template-columns:140px 52px 112px minmax(180px,1fr);gap:6px 8px}
html.full-table490 .shared-table .pile-zones,html.full-table490 .shared-table #self .pile-zones,html.full-table490 .shared-table #self .has-backlash-window .pile-zones{grid-column:3;grid-row:2;grid-template-columns:1fr;gap:6px}
html.full-table490 .shared-table .pile-zones>.stack,html.full-table490 .shared-table #self .pile-zones>.stack{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:2px 5px;text-align:left}
html.full-table490 .shared-table .pile-zones>.stack .pile-visual{grid-column:1;grid-row:1/3;width:42px;max-height:58px}
html.full-table490 .shared-table .pile-zones>.stack>.symbol{grid-column:1;grid-row:1/3;margin:0;text-align:center}
html.full-table490 .shared-table .pile-zones>.stack>strong{grid-column:2;grid-row:1;font-size:24px;margin:0;align-self:end}
html.full-table490 .shared-table .pile-zones>.stack>small{grid-column:2;grid-row:2;align-self:start;font-size:13px;line-height:1.25}
html.full-table490 .shared-table .ring-area,html.full-table490 .shared-table #self .has-backlash-window .ring-area{grid-column:4;grid-row:2}
html.full-table490 .ring-area>.ringlabel{display:none}
html.full-table490 .player-stats522 > .ring-open493 {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
html.full-table490 .ring-open493:hover,html.full-table490 .ring-open493:focus-visible{color:var(--accent-text,#d8bc7e);text-shadow:0 0 10px #d8bc7e66}
html.full-table490 .shared-table .ring>.ring-unstacked493{display:none}
html.full-table490 .shared-table .ring-groups493{display:flex;flex-wrap:wrap;gap:12px;align-items:start}
html.full-table490 .ring-type-stack493{width:100px;max-width:100%;flex-shrink:0;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:0 0 4px;border:0;background:transparent;color:inherit;text-align:left;border-radius:6px}
html.full-table490 .ring-type-label493{font-size:14px;line-height:1.4;font-weight:800;color:var(--accent-text,#d8bc7e)}
html.full-table490 .ring-type-layers493{display:block;isolation:isolate}
html.full-table490 .ring-type-layer493{display:block;position:relative;width:100%;height:34px;overflow:hidden;border:1px solid #9a865e;border-radius:5px;background:var(--panel,#202632);box-shadow:0 2px 5px #0005}
html.full-table490 .ring-type-layer493:first-child{height:140px}
html.full-table490 .ring-type-layer493+.ring-type-layer493{margin-top:3px}
html.full-table490 .ring-type-layer493 img{display:block;position:absolute;left:0;bottom:0;width:100%;height:auto;max-width:none}
html.full-table490 .ring-type-layer493 img[hidden]{display:none}
html.full-table490 .ring-type-name493{display:block;font-size:13px;padding:3px 5px 18px;overflow-wrap:anywhere}
html.full-table490 .ring-type-stack493:hover .ring-type-layer493,html.full-table490 .ring-type-stack493:focus-visible .ring-type-layer493{border-color:#e6bd63;box-shadow:0 0 10px #e6bd6355}
html.full-table490 .game .shared-table>.side,html.full-table490 .game .shared-table:has(#self .table-actions)>.side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto auto minmax(100px,1fr);gap:9px;padding:10px}
html.full-table490 .game .shared-table>.side .card-preview-panel{grid-column:1;grid-row:1}
html.full-table490 .game .shared-table>.side>.panel:has(#revealed){grid-column:2;grid-row:1}
html.full-table490 .game .shared-table>.side .card-preview{display:flex;flex-direction:column;gap:6px}
html.full-table490 .game .shared-table>.side .card-preview>.card.real{width:120px;max-width:100%}
html.full-table490 .game .shared-table>.side .card-preview>b{font-size:16px}
html.full-table490 .game .shared-table>.side .card-preview>small{font-size:14px}
html.full-table490 .game .shared-table>.side .reveal{display:flex;flex-direction:column;text-align:center;gap:6px}
html.full-table490 .game .shared-table>.side .reveal .card.real{width:120px;max-width:100%}
html.full-table490 .game .shared-table>.side h2{font-size:16px;margin-bottom:8px}
html.full-table490 .game .shared-table>.side #availableActions{grid-column:1/-1;grid-row:2;max-height:240px;overflow:auto}
html.full-table490 .game .shared-table>.side #availableActions .inline-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html.full-table490 .game .shared-table>.side #availableActions .btn{font-size:15px;line-height:1.4;padding:9px}
html.full-table490 .game .shared-table>.side #manualPlayBar{grid-column:1/-1;grid-row:3;margin:0;justify-content:stretch}
html.full-table490 .game .shared-table>.side #manualPlayBar .btn{flex:1;padding:9px;font-size:15px}
html.full-table490 .game .shared-table>.side .activity{grid-column:1/-1;grid-row:5}
html.full-table490 .game .shared-table>.side .activity .log{font-size:15px;min-height:90px}
html.full-table490 #overlay,html.full-table490 #nextStepOverlay{position:fixed;inset:var(--workspace-top493,90px) var(--workspace-right493,8px) 30px auto;width:var(--workspace-width493,clamp(350px,29vw,560px));padding:0;display:flex;align-items:stretch;justify-content:stretch;background:transparent;backdrop-filter:none;pointer-events:none;z-index:12}
html.full-table490 #overlay[hidden],html.full-table490 #nextStepOverlay[hidden],html.full-table490 #backlashDrawer[hidden]{display:none!important}
html.full-table490 #overlay .dialog,html.full-table490 #nextStepOverlay .dialog{width:100%;height:100%;max-width:none;max-height:100%;margin:0;padding:18px;overflow:auto;pointer-events:auto;border:1px solid #b99b5b;box-shadow:0 8px 28px #0006;border-radius:10px}
html.full-table490 #overlay .dialog h2,html.full-table490 #nextStepOverlay .dialog h2{font-size:29px;line-height:1.3}
html.full-table490 #overlay .dialog p,html.full-table490 #nextStepOverlay .dialog p{font-size:16px;line-height:1.6}
html.full-table490 #overlay .dialog .contents{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px}
html.full-table490 #overlay .dialog .contents>.card.real{width:calc(50% - 6px);max-width:200px}
html.full-table490 #overlay .dialog .contents>.btn,html.full-table490 #overlay .dialog .contents>p{flex-basis:100%}
html.full-table490 #nextStepOverlay .step-card .card.real{width:150px}
html.full-table490 #nextStepOverlay .controls{max-height:none;overflow:visible;gap:8px}
html.full-table490 #nextStepOverlay .controls .btn{font-size:18px;line-height:1.4;padding:11px}
html.full-table490 #backlashDrawer{position:fixed;inset:var(--workspace-top493,90px) var(--workspace-right493,8px) 30px auto;width:var(--workspace-width493,clamp(350px,29vw,560px));max-height:none;height:auto;z-index:10;display:flex;flex-direction:column;padding:18px;margin:0;overflow:hidden;box-shadow:0 8px 28px #0006}
html.full-table490 #backlashDrawer .backlash-drawer-cards{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;gap:12px;flex:1;overflow:auto}
html.full-table490 #backlashDrawer .backlash-drawer-cards .card.real{width:100%;max-width:200px}
@media(max-width:1200px){html.full-table490 .game .shared-table{grid-template-columns:minmax(0,1fr) 340px}html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player{grid-template-columns:110px 44px 92px minmax(130px,1fr)}html.full-table490 .shared-table .identity-column{grid-template-columns:65px 40px}html.full-table490 .ring-type-stack493{width:86px}html.full-table490 .ring-type-layer493:first-child{height:121px}html.full-table490 .shared-table .ring-groups493{gap:8px}}
@media(max-width:700px){html.full-table490 .game .shared-table{min-width:950px}html.full-table490 #overlay,html.full-table490 #nextStepOverlay,html.full-table490 #backlashDrawer{width:min(390px,calc(100vw - 12px));right:6px;top:64px}}
html.full-table490 .shared-table .live-play[data-in-ring493=true]{display:none}

/* Larger Superstar portraits in Full table, with a dedicated width for Backstage. */
html.full-table490{--superstar-size496:clamp(124px,9vw,175px);--identity-size496:calc(var(--superstar-size496) + 51px)}
html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player,html.full-table490 .shared-table #self .player.has-backlash-window{grid-template-columns:var(--identity-size496) 52px 112px minmax(180px,1fr)}
html.full-table490 .shared-table .identity-column{grid-template-columns:var(--superstar-size496) 46px}
html.full-table490 .shared-table .identity-column [data-identity-zone=superstar]{width:var(--superstar-size496);max-width:var(--superstar-size496)}
html.full-table490 .shared-table .identity-column [data-identity-zone=superstar] .card.real{width:100%;max-width:100%;height:auto}
@media(max-width:1200px){html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player,html.full-table490 .shared-table #self .player.has-backlash-window{grid-template-columns:var(--identity-size496) 44px 92px minmax(130px,1fr)}}

/* Backlash rows keep each scan's full height inside the right workspace. */
html.full-table490 #backlashDrawer .backlash-drawer-cards{grid-auto-rows:max-content;align-items:start;align-content:start;min-height:0;overflow-y:auto}
html.full-table490 #backlashDrawer .backlash-drawer-cards .card,html.full-table490 #backlashDrawer .backlash-drawer-cards .card.real{display:block;align-self:start;justify-self:center;width:100%;max-width:200px;height:auto;min-height:min-content;max-height:none;flex-shrink:0}
html.full-table490 #backlashDrawer .backlash-drawer-cards .card.real img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
html.full-table490 #backlashDrawer .backlash-drawer-cards .card.real img[hidden]{display:none}
.live-room500{padding:7px 12px;margin:0 0 6px}.live-room-head500{display:flex;align-items:center;justify-content:space-between;gap:10px}.live-room-head500 strong{font-size:11px}.live-room500 p,.live-room500 .btn{font-size:11px}.live-room500 .btn{padding:5px 8px}.live-room500 [hidden]{display:none!important}.live-person500{display:inline-flex;align-items:center;gap:8px;padding:5px;margin:3px;border:1px solid var(--line);border-radius:6px}.live-room500 audio{display:none}html.full-table490 #game>.live-room500{grid-column:1/-1}.live-room500>div:not(.live-room-head500){max-height:180px;overflow:auto}

/* Pre-match and Mid-match keep their scan proportions in every card selector. */
.card.real.landscape-card509{height:auto;min-height:0;align-self:flex-start}
.card.real.landscape-card509>img:not(.landscape-crop){height:auto;aspect-ratio:auto;object-fit:contain}

/* Full-table sizing follows the player's available viewport, not monitor pixels. */
html.full-table490 .game .shared-table{min-width:0;grid-template-columns:minmax(0,1fr) var(--table-sidebar511,350px)}
html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player,html.full-table490 .shared-table #self .player.has-backlash-window{grid-template-columns:var(--identity-size496) var(--table-arsenal511,52px) var(--table-piles511,112px) minmax(160px,1fr)}
html.full-table490 body>header{flex-wrap:wrap}
html.full-table490 body>header .toplinks{flex-wrap:wrap;min-width:0}
html.full-table490[data-table-screen=compact] .shared-table .identity-column{grid-template-columns:var(--superstar-size496) 38px}
html.full-table490[data-table-screen=compact]{--identity-size496:calc(var(--superstar-size496) + 43px)}
html.full-table490[data-table-screen=compact] .shared-table .identity-column [data-identity-zone=backstage] .card.real{width:36px;max-width:36px}
html.full-table490[data-table-screen=compact] .ring-type-stack493{width:82px}
html.full-table490[data-table-screen=compact] .ring-type-layer493:first-child{height:115px}
html.full-table490[data-table-screen=compact] .shared-table .ring-groups493{gap:7px}
html.full-table490[data-table-screen=compact] .shared-table .player-zone-controls{gap:3px}
html.full-table490[data-table-screen=compact] .shared-table .player-zone-controls .table-zone-tab{padding:3px 4px}

/* Hands authorized by Trash Talkin' Interview TB appear directly as images. */
.hand-choice519{flex:0 0 100%;width:100%;min-width:0}
.hand-choice-label519{margin:4px 0 10px;font-size:13px;font-weight:700}
.hand-choice-grid519{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px;align-items:start;padding:3px}
.hand-choice-item519{display:flex;justify-content:center;min-width:0}
.hand-choice-grid519 .card.real{width:100%;max-width:145px;min-height:0}
.hand-choice-grid519 .card.real img{height:auto;aspect-ratio:auto;object-fit:contain}
.hand-choice-grid519 .card[data-action]:hover,.hand-choice-grid519 .card[data-action]:focus-visible{border-color:#d8bc7e;box-shadow:0 0 14px #d8bc7e66}

/* Public opponent hand count remains prominent even when the cards are hidden. */
.shared-table .player .player-zone-controls .table-hand-count.opponent-hand521{display:inline-grid;grid-template-columns:auto auto;align-items:center;gap:0 9px;padding:5px 10px;border:2px solid var(--accent,#c49a4b);border-radius:8px;color:var(--text);background:var(--panel);font-weight:800;line-height:1.15;white-space:nowrap;vertical-align:middle;flex-shrink:0;box-shadow:0 0 0 1px #d8bc7e22}
.opponent-hand521 .opponent-hand-label521{grid-column:1;grid-row:1;font-size:12px;color:var(--text);font-weight:800}
.opponent-hand521 .opponent-hand-number521{grid-column:2;grid-row:1/3;font-size:30px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;color:var(--accent-text,#D8BC7E)}
.opponent-hand521 .opponent-hand-state521{grid-column:1;grid-row:2;font-size:11px;font-weight:600;color:var(--muted);line-height:1.3}
html.full-table490 .shared-table .player .player-zone-controls .table-hand-count.opponent-hand521{padding:4px 7px;gap:0 7px}
html.full-table490 .opponent-hand521 .opponent-hand-number521{font-size:33px}
html.full-table490 .opponent-hand521 .opponent-hand-label521{font-size:14px}
html.full-table490 .opponent-hand521 .opponent-hand-state521{font-size:13px}

/* Fixed Full table geometry: content never enlarges the mat or changes its zoom. */
.backstage-stack522{display:none}
html.full-table490 .game .shared-table{grid-template-rows:auto auto minmax(0,1fr) 1px minmax(0,1fr);overflow:hidden;align-items:stretch}
html.full-table490 .game .shared-table>#opponent,html.full-table490 .game .shared-table>#self{min-width:0;min-height:0;overflow:hidden}
html.full-table490 .shared-table .player,html.full-table490 .shared-table #self .player{height:100%;min-height:0;min-width:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
html.full-table490 .shared-table .ring-area{min-height:0;min-width:0;overflow:hidden}
html.full-table490 .shared-table .ring-area>.ring{min-height:0;overflow:auto;flex:1 1 0;min-width:0}
html.full-table490 .shared-table #self .ring-area>.hand{flex:0 0 auto;max-width:100%;min-width:0}
html.full-table490 .shared-table .identity-column{min-height:0;max-height:100%;overflow:auto;min-width:0}
html.full-table490 .shared-table .identity-column [data-identity-zone=backstage]{min-width:0;max-height:100%;overflow:hidden}
html.full-table490 .shared-table .identity-column [data-identity-zone=backstage]>*:not(.backstage-stack522){display:none}
html.full-table490 .shared-table .identity-column [data-identity-zone=backstage]::before{display:none}
html.full-table490 .shared-table .identity-column .backstage-stack522{display:flex;flex-direction:column;gap:4px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left}
html.full-table490 .backstage-stack522 .backstage-count522{display:none}
.backstage-count522{font-size:9px;font-weight:800;overflow-wrap:anywhere;color:var(--accent-text,#d8bc7e)}
.backstage-cards522{display:flex;flex-direction:column;width:100%;isolation:isolate}
.backstage-layer522{display:block;position:relative;height:12px;overflow:hidden;border:1px solid #9a865e;border-radius:3px;background:var(--panel);font-size:8px}
.backstage-layer522:last-child{height:64px}
.backstage-layer522 img{display:block;width:100%;height:auto}
.backstage-stack522:hover .backstage-layer522,.backstage-stack522:focus-visible .backstage-layer522{border-color:#e6bd63;box-shadow:0 0 8px #e6bd6355}
 .player-stats522{display:none}
html.full-table490 .shared-table .playerhead{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;margin-bottom:2px;min-width:0}
html.full-table490 .shared-table .playerhead>div:first-child{flex-basis:100%;min-width:0}
html.full-table490 .shared-table .playerhead>div:first-child>small,html.full-table490 .shared-table .playerhead>div:first-child>.connected,html.full-table490 .shared-table .playerhead>.f{display:none}
html.full-table490 .shared-table .playerhead>.player-stats522{display:flex;align-items:center;justify-content:flex-start;gap:4px 12px;flex-wrap:wrap;flex-basis:100%;min-width:0}
html.full-table490 .shared-table .playerhead .player-stats522>*{flex-basis:auto;margin:0}
html.full-table490 .shared-table .playerhead .player-stats522>.f{margin-left:0;align-self:center}
html.full-table490 .shared-table #self .playerhead #prematchPanel{max-height:115px;overflow:auto}
html.full-table490 .game .shared-table>.side,html.full-table490 .game .shared-table:has(#self .table-actions)>.side{min-height:0;overflow:hidden;grid-template-rows:minmax(0,240px) minmax(0,180px) auto auto minmax(70px,1fr)}
html.full-table490 .game .shared-table>.side>.panel{min-width:0;overflow:auto}
html.full-table490 .game .shared-table>.side .card-preview>.card.real,html.full-table490 .game .shared-table>.side .reveal .card.real{width:145px;max-width:100%}
html.full-table490 .game .shared-table>.side #availableActions{max-height:100%;min-height:0;overflow:auto}

/* Full table: Game Setup occupies the header immediately beside the R2F logo. */
html.full-table490.setup-header525 body>header{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(280px,44%);align-items:center;gap:8px 14px;padding:6px 10px}
html.full-table490.setup-header525 body>header>.brand{grid-column:1;grid-row:1;align-self:start;margin-top:8px}
html.full-table490.setup-header525 body>header>.toplinks{grid-column:3;grid-row:1;min-width:0;justify-content:flex-end;gap:5px}
html.full-table490 body>header>#prematchPanel{grid-column:2;grid-row:1;width:100%;min-width:0;max-width:none;margin:0;padding:7px 10px;max-height:118px;overflow:auto;border-radius:8px}
html.full-table490 body>header>#prematchPanel .label{font-size:12px;letter-spacing:1.5px}
html.full-table490 body>header>#prematchPanel h2{font-size:16px;line-height:1.3;margin:3px 0}
html.full-table490 body>header>#prematchPanel .pre-steps{display:flex;flex-wrap:wrap;gap:3px;margin:4px 0}
html.full-table490 body>header>#prematchPanel .pre-steps li{font-size:12px;padding:4px 5px}
html.full-table490 body>header>#prematchPanel .note{font-size:12px;line-height:1.35;margin:4px 0 0}
@media(max-width:1200px){html.full-table490.setup-header525 body>header{grid-template-columns:64px minmax(0,1fr)}html.full-table490.setup-header525 body>header>.toplinks{grid-column:1/-1;grid-row:2}html.full-table490 body>header>#prematchPanel{max-height:108px}}

.effect-card-search573{display:flex;align-items:end;flex-wrap:wrap;gap:8px;grid-column:1/-1;flex-basis:100%;width:100%;padding:10px 0;margin-bottom:8px}.effect-card-search573 label{flex:1 1 180px;display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}.effect-card-search573 input{box-sizing:border-box;width:100%;min-width:0;padding:10px 12px;border:1px solid #ad8a46;border-radius:6px;background:var(--panel,#fff);color:var(--ink,#202b35);font:inherit}.effect-card-search573 span{flex-basis:100%;font-size:12px;opacity:.8}.effect-card-search573 .btn{padding:9px 12px}.effect-card-search573 input:focus{outline:2px solid #d8b56c;outline-offset:2px}#dialogCards>[hidden],#controls>button[hidden],#inlineControls>button[hidden]{display:none!important}

/* Full Table: use the Ring's entire horizontal strip above the hand. */
html.full-table490 .shared-table .ring-area>.ring{display:flex;flex-wrap:nowrap;align-items:flex-start;align-content:flex-start;gap:10px;overflow:auto;min-width:0}
html.full-table490 .shared-table .ring>.ring-backlash,
html.full-table490 .shared-table .ring>.ring-groups493{display:contents}
html.full-table490 .shared-table .ring>.ring-backlash>.ring-backlash-label{flex:0 0 86px;width:86px;min-width:0;min-height:36px;align-self:flex-start;white-space:normal;text-align:left}
html.full-table490 .shared-table .ring>.ring-backlash>.match-stack{flex:0 0 100px;width:100px;min-width:0;max-width:100px;align-self:flex-start}
html.full-table490 .shared-table .ring>.ring-groups493>.ring-type-stack493{flex:0 0 100px;width:100px;min-width:0;align-self:flex-start}
html.full-table490[data-table-screen=compact] .shared-table .ring>.ring-backlash>.match-stack,
html.full-table490[data-table-screen=compact] .shared-table .ring>.ring-groups493>.ring-type-stack493{flex-basis:82px;width:82px;max-width:82px}
html.full-table490 .shared-table .ring>.empty{flex:1 0 100px;width:auto}

/* Local available actions stay highlighted until this player responds. */
#availableActions.actions-attention585{border-color:#d8b45c;box-shadow:0 0 0 1px #d8b45c66,0 0 14px #d8b45c33;animation:actions-attention585 1.8s ease-in-out infinite}
#availableActions.actions-attention585 .actions-heading .label{color:#d8b45c}
@keyframes actions-attention585{0%,100%{box-shadow:0 0 0 1px #d8b45c55,0 0 8px #d8b45c22}50%{box-shadow:0 0 0 2px #d8b45cbb,0 0 24px #d8b45c77}}
html[data-theme=light] #availableActions.actions-attention585 .actions-heading .label{color:#785500}
@media(prefers-reduced-motion:reduce){#availableActions.actions-attention585{animation:none}}

/* Full Table is available on desktop only, including before scripts load. */
@media(max-width:850px),(hover:none) and (pointer:coarse){#compactTable{display:none!important}}
/* Interactive three-dimensional dice. */
.dice611-player{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:145px;padding:12px}.dice611-player>span{font-size:12px}.dice611-roll{width:92px;height:92px;display:grid;place-items:center;background:transparent;border:1px solid #c5a35e;border-radius:14px;cursor:pointer}.dice611-roll:disabled{cursor:default;opacity:1;border-color:transparent}.dice611-roll:not(:disabled):hover,.dice611-roll:focus-visible{background:#c5a35e22;outline:2px solid #eac974;outline-offset:4px}.dice611-scene{display:block;width:54px;height:54px;perspective:300px}.dice611-cube{display:block;position:relative;width:54px;height:54px;transform-style:preserve-3d;transform:rotateX(-18deg) rotateY(-24deg);transition:transform .65s ease-out}.dice611-face{position:absolute;inset:0;display:grid;place-items:center;background:#fff7df;color:#302717;border:1px solid #b8995c;border-radius:8px;font-size:48px;line-height:1;backface-visibility:hidden}.dice611-face.face-1{transform:translateZ(27px)}.dice611-face.face-2{transform:rotateY(90deg) translateZ(27px)}.dice611-face.face-3{transform:rotateX(90deg) translateZ(27px)}.dice611-face.face-4{transform:rotateX(-90deg) translateZ(27px)}.dice611-face.face-5{transform:rotateY(-90deg) translateZ(27px)}.dice611-face.face-6{transform:rotateY(180deg) translateZ(27px)}.dice611-cube[data-value="2"]{transform:rotateX(-18deg) rotateY(-114deg)}.dice611-cube[data-value="3"]{transform:rotateX(-108deg) rotateY(-24deg)}.dice611-cube[data-value="4"]{transform:rotateX(72deg) rotateY(-24deg)}.dice611-cube[data-value="5"]{transform:rotateX(-18deg) rotateY(66deg)}.dice611-cube[data-value="6"]{transform:rotateX(-18deg) rotateY(156deg)}@media(prefers-reduced-motion:no-preference){.rolling .dice611-cube{animation:dice611-roll .65s ease-out}@keyframes dice611-roll{from{transform:rotateX(270deg) rotateY(270deg) scale(.8)}to{}}}

/* Persistent marker for cards holding other cards, including grouped views. */
.card.has-under620,.match-stack-card.has-under620,.ring-type-layer493.has-under620{outline:2px solid #f2c45b!important;outline-offset:1px;box-shadow:0 0 8px #e6b647b3!important}

/* History categories include text labels, not color alone. */
.log .event{border-left:3px solid #77808c;padding:9px 10px;margin:0 0 7px;background:#ffffff06;overflow-wrap:anywhere}.history623-tag{display:block;font-size:10px;font-weight:800;letter-spacing:.04em;margin-bottom:4px;color:#bdc6d2}.log .history623-play{border-color:#65adeb}.history623-play .history623-tag{color:#9ccfff}.log .history623-reversal{border-color:#ba8be3}.history623-reversal .history623-tag{color:#d8b3f9}.log .history623-damage{border-color:#e88775}.history623-damage .history623-tag{color:#ffb4a4}.log .history623-ability{border-color:#76c7ab}.history623-ability .history623-tag{color:#a2e7cd}.history623-response{padding:10px;border:1px solid #8a98aa;border-radius:7px;background:#15212f;color:#e3eaf1;font-weight:700;overflow-wrap:anywhere}.history623-response.history623-own{border-color:#e9bd62;background:#3c3018;color:#ffe4a5}

.play-info625{width:100%;padding:12px;border:1px solid #d0aa5a;border-radius:8px;background:#332b1b;color:#ffe4a5;text-align:left;overflow-wrap:anywhere}.play-info625 p{margin:6px 0 0;white-space:pre-line}.play-info625-available{border-color:#71bea5;background:#19352d;color:#b6efda}

/* A first-time download shows its authorized name rather than a black tile. */
.card.real{position:relative}
.card-image-loading646{position:absolute;inset:0;z-index:1;display:grid;place-items:center;padding:8px;border-radius:inherit;background:linear-gradient(145deg,#eee8dc,#d4c9b6);color:#433928;font:600 11px/1.3 system-ui,sans-serif;text-align:center;pointer-events:none}

/* Same-size low-resolution artwork, visible only while its original is pending. */
.card-image-loading646.has-preview647{padding:0;background:transparent}
.card-image-loading646>img.card-image-preview647{display:block;width:100%!important;height:100%!important;max-width:none;max-height:none;aspect-ratio:auto!important;object-position:center;pointer-events:none;border-radius:inherit}

/* My Decks gallery in Play, matching the Builder gallery. */
#cloudDeckDialog .modal-top{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:0}#cloudDeckDialog .modal-top h2{font-size:24px;letter-spacing:-.6px}.deck-gallery-intro{display:none}#cloudDeckDialog .deck-gallery-intro{display:block;padding:24px 0}.deck-gallery-kicker{color:var(--gold);font-size:10px;font-weight:800;letter-spacing:2.5px}.deck-gallery-intro h3{font-size:clamp(23px,3vw,34px);margin:10px 0 4px;letter-spacing:-1px}#cloudDeckDialog .cloud-list-section .deck-gallery-intro p{margin:0;color:var(--muted);font-size:13px}
#cloudDeckDialog #cloudList{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;align-items:start;padding:4px 2px 20px}#cloudDeckDialog .deck-game-card{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--sub);position:relative;box-shadow:0 6px 18px var(--shadow);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;animation:deck-appear463 .35s ease both;animation-delay:var(--deck-delay)}
#cloudDeckDialog .deck-game-card:hover,#cloudDeckDialog .deck-game-card:focus-within{transform:translateY(-6px);border-color:var(--gold);box-shadow:0 14px 35px var(--shadow),0 0 0 1px var(--gold)}
#cloudDeckDialog .deck-game-art{border:0;border-radius:0;padding:22px 20px 32px;width:100%;height:270px;display:grid;place-items:center;position:relative;isolation:isolate;background:transparent;overflow:hidden}#cloudDeckDialog .deck-game-image{grid-area:1/1;width:100%;height:210px;object-fit:contain;position:relative;z-index:1;filter:none;transition:transform .35s ease}#cloudDeckDialog .deck-game-card:hover .deck-game-image,#cloudDeckDialog .deck-game-card:focus-within .deck-game-image{transform:translateY(-4px) scale(1.045)}#cloudDeckDialog .deck-game-fallback{grid-area:1/1;font-size:45px;letter-spacing:-4px;font-weight:900;color:#d6b47430}.deck-game-index{position:absolute;left:14px;top:12px;color:#d6b474b0;font-size:11px;font-weight:800;letter-spacing:2px}.deck-game-enter{position:absolute;bottom:11px;left:0;right:0;color:#e0c18c;font-size:9px;font-weight:800;letter-spacing:2px;opacity:.6;transition:opacity .2s}.deck-game-card:hover .deck-game-enter,.deck-game-card:focus-within .deck-game-enter{opacity:1}
#cloudDeckDialog .deck-game-card>div:not(.saved-deck-actions){padding:18px 18px 12px;width:100%}#cloudDeckDialog .deck-game-card strong{font-size:16px;letter-spacing:-.25px;line-height:1.3}#cloudDeckDialog .deck-game-card small{font-size:11px;line-height:1.5;margin-top:7px}.deck-game-count{display:block;margin-top:12px;font-size:10px;font-weight:700;color:var(--gold);letter-spacing:.7px}#cloudDeckDialog .saved-deck-actions{width:100%;padding:4px 18px 18px;display:flex;justify-content:flex-start;gap:8px}#cloudDeckDialog .saved-deck-actions button{font-size:11px;padding:8px 12px;background:var(--panel)}#cloudDeckDialog .saved-deck-actions button:first-child{background:var(--gold);color:var(--gold-ink);border-color:var(--gold)}
@keyframes deck-appear463{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:580px){#cloudDeckDialog{padding:20px 14px;width:96vw;max-height:94dvh}#cloudDeckDialog #cloudList{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#cloudDeckDialog .deck-game-art{height:220px;padding:18px 10px 30px}#cloudDeckDialog .deck-game-image{height:170px}#cloudDeckDialog .deck-game-card>div:not(.saved-deck-actions){padding:14px 12px 10px}#cloudDeckDialog .saved-deck-actions{padding:4px 12px 14px;flex-wrap:wrap}#cloudDeckDialog .deck-game-card strong{font-size:14px}}
@media(max-width:350px){#cloudDeckDialog #cloudList{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#cloudDeckDialog .deck-game-card,#cloudDeckDialog .deck-game-image{animation:none;transition:none}#cloudDeckDialog .deck-game-card:hover,#cloudDeckDialog .deck-game-card:focus-within,#cloudDeckDialog .deck-game-card:hover .deck-game-image,#cloudDeckDialog .deck-game-card:focus-within .deck-game-image{transform:none}}
#cloudDeckDialog{--surface:#302b29;--panel:#171c25;--sub:#20212a;--line:#53483d;--gold:#d6b474;--gold-ink:#181818;--muted:#b5adba;--shadow:#0004;width:min(1120px,96vw);max-width:1120px;background:radial-gradient(ellipse at 0 0,var(--surface),transparent 65%),var(--panel);border-color:var(--line)}
#cloudDeckDialog .cloud-columns{grid-template-columns:minmax(0,1fr) minmax(250px,320px);margin-top:0}#cloudDeckDialog .cloud-list-section{max-height:58dvh}#cloudDeckDialog #cloudList{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}#cloudDeckDialog .cloud-deck{color:inherit;text-align:left;font:inherit;cursor:pointer}#cloudDeckDialog .cloud-deck-label>*{display:block}#cloudDeckDialog .deck-game-art{text-align:center}#cloudDeckDialog .deck-game-enter{color:var(--gold)}#cloudDeckDialog .cloud-deck[aria-pressed="true"]{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}#cloudDeckDialog .cloud-deck:focus-visible{outline:3px solid var(--gold);outline-offset:3px}#cloudDeckDialog .cloud-review{border-color:var(--line)}#cloudDeckDialog .cloud-deck-label{box-sizing:border-box}#cloudDeckDialog .deck-gallery-intro{padding:20px 0}#cloudDeckDialog .deck-gallery-intro p{margin:0;color:var(--muted);font-size:13px}
@media(max-width:750px){#cloudDeckDialog .cloud-columns{grid-template-columns:1fr}#cloudDeckDialog .cloud-list-section{max-height:44dvh}#cloudDeckDialog #cloudList{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#cloudDeckDialog .cloud-review{border-left:0;border-top:1px solid var(--line);padding:15px 0 0}}@media(max-width:350px){#cloudDeckDialog #cloudList{grid-template-columns:1fr}}

/* Keep the Play deck gallery on the selected theme, including its review panel. */
html[data-theme=light] #cloudDeckDialog{--surface:#f4ecdf;--panel:#fff;--sub:#f5f6f8;--line:#cdd3dc;--gold:#76551f;--gold-ink:#fff;--muted:#586170;--shadow:#1720330d;color:#171a21}
html[data-theme=light] #cloudDeckDialog .cloud-deck{background:var(--sub);color:#171a21}
html[data-theme=light] #cloudDeckDialog .cloud-deck[aria-pressed=true]{background:#f2e8d1;border-color:var(--gold)}
html[data-theme=light] #cloudDeckDialog :is(h2,h3,.cloud-deck strong,#cloudPreview>p:not([class])){color:#171a21}
html[data-theme=light] #cloudDeckDialog :is(.note,.cloud-deck-label>span,.cloud-deck-label>small,.cloud-counts,.cloud-review label,.deck-gallery-intro p){color:var(--muted)}
html[data-theme=light] #cloudDeckDialog :is(.deck-gallery-kicker,.deck-game-enter,.deck-game-index,.label,a:not(.btn)){color:var(--gold)}
html[data-theme=light] #cloudDeckDialog .deck-game-fallback{color:#76551f30}
html[data-theme=light] #cloudDeckDialog .cloud-ready{color:#236744}
html[data-theme=light] #cloudDeckDialog :is(.cloud-list-section,.cloud-review){scrollbar-color:#b9bec7 #f5f6f8}

/* Larger supporting text only while Full Table is active. */
html.full-table490 :is(.label,.note,.statusline,.room-title,.inline-status,.cloud-toolbar,.table-actions .label,.backlash-drawer-status,.card-search573 label,.card-search573 small){font-size:14px}
html.full-table490 :is(.btn,.aux button,input,select,textarea,.language-switch button,.theme-switch button){font-size:14px}
html.full-table490 .game .shared-table>.side .log :is(p,small,span){font-size:inherit}
html.full-table490 .shared-table .playerhead small.pre-stats{overflow-wrap:anywhere}
html.full-table490 body>header .toplinks a{font-size:14px}
html.full-table490 .shared-table .center :is(span,small){font-size:14px}
html.full-table490 .shared-table .center strong{font-size:18px}
html.full-table490 .game .shared-table>.side .log time{font-size:inherit}

/* Full Table: clock shares the header with the logo, freeing its former row. */
html.full-table490:not(.setup-header525) body>header{display:flex;flex-wrap:nowrap;align-items:center}
html.full-table490 body>header>.brand{flex:0 0 auto}
html.full-table490 body>header>.match-clock{grid-column:2;grid-row:1;flex:0 1 300px;min-width:210px;max-width:320px;gap:12px;margin:0;padding:7px 10px;align-self:center}
html.full-table490 body>header>.match-clock>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
html.full-table490 body>header>.match-clock output{white-space:nowrap;font-size:23px}
html.full-table490 body>header>.toplinks{flex:1 1 auto;min-width:0;margin-left:auto;justify-content:flex-end}
html.full-table490.setup-header525 body>header{grid-template-columns:64px minmax(210px,270px) minmax(160px,1fr) minmax(280px,44%)}
html.full-table490.setup-header525 body>header>#prematchPanel{grid-column:3;grid-row:1}
html.full-table490.setup-header525 body>header>.toplinks{grid-column:4;grid-row:1}
@media(max-width:1200px){html.full-table490.setup-header525 body>header{grid-template-columns:64px minmax(210px,270px) minmax(0,1fr)}html.full-table490.setup-header525 body>header>.toplinks{grid-column:3;grid-row:1}html.full-table490.setup-header525 body>header>#prematchPanel{grid-column:1/-1;grid-row:2}}
.faith-selection693{margin:10px 0;padding:12px;border:1px solid var(--gold,#b18a40);border-radius:10px;background:var(--panel);color:var(--ink,var(--text));grid-column:1/-1}.faith-selection693 p{margin:6px 0 10px}.faith-cards693{display:flex;flex-wrap:wrap;gap:10px;max-height:36vh;overflow:auto;padding:4px}.faith-card693{position:relative;width:clamp(65px,7vw,100px);aspect-ratio:5/7;padding:0;border:2px solid transparent;border-radius:7px;background:#151515;cursor:pointer;overflow:hidden}.faith-card693 img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.faith-card693:not(:disabled):hover,.faith-card693:focus-visible{border-color:#edc86d;outline:2px solid #edc86d;outline-offset:2px}.faith-card693[aria-pressed=true]{border-color:#edc86d;box-shadow:0 0 8px #edc86d}.faith-card693[aria-pressed=true] span{position:absolute;inset:auto 0 5px;text-align:center;font-size:26px;color:#fff;background:#000b}.faith-card693:disabled{cursor:default;opacity:1}
/* Full table clips player panels; keep the blind selection above the fixed mat. */
html.full-table490 body>.faith-selection693{position:fixed;z-index:10040;left:50%;top:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(900px,calc(100vw - 40px));max-height:70dvh;overflow:auto;padding:18px;background:var(--panel,#1b1e25);box-shadow:0 15px 70px #000b;border:2px solid #d8bc7e}
html.full-table490 body>.faith-selection693 .faith-cards693{max-height:50dvh;gap:12px}
html.full-table490 body>.faith-selection693 .faith-card693{width:clamp(75px,8vw,110px);flex-shrink:0}
html.full-table490 body>.faith-selection693 :is(strong,p){font-size:16px}

/* Full table only: remove the redundant heading without compressing artwork. */
html.full-table490 #self .ring-area>.hand>label{display:none}
html.full-table490 #self .ring-area>.hand{padding-top:0;margin-top:0}
/* The front card sizes from its full scan; only later stacked cards peek. */
html.full-table490 .ring-type-layer493:first-child{height:auto;min-height:0}
html.full-table490 .ring-type-layer493:first-child>img{position:relative;bottom:auto;left:auto}

/* Keep the Ring Area controls compact in Full table. */
html.full-table490 .shared-table .ring :is(.ring-type-label493, .match-stack-label) {
  display: none;
}

.shared-table .playerhead .wedding-ability-tag {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--accent, #c49a4b);
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent-text, #d8bc7e);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.shared-table .playerhead .wedding-ability-tag:focus-visible {
  outline: 2px solid var(--accent, #c49a4b);
  outline-offset: 2px;
}

.shared-table .playerhead .wedding-ability-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.shared-table .playerhead .wedding-ability-identity h2 {
  margin: 0;
}

#matchPlayerStats {
  display: none;
}

html.full-table490 body > header > .match-clock {
  flex: 2 1 720px;
  min-width: 0;
  max-width: none;
  justify-content: flex-start;
}

html.full-table490 .match-clock > div:first-child {
  display: none;
}

html.full-table490 .match-clock > output {
  flex: none;
}

html.full-table490 body > header > .match-clock > #matchPlayerStats {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(5, max-content);
  align-content: center;
  align-items: center;
  gap: 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
}

html.full-table490 #matchPlayerStats > div {
  display: contents;
}

html.full-table490 #matchPlayerStats .player-stats522 {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  white-space: nowrap;
  font-weight: 750;
}

html.full-table490 #matchPlayerStats .connected { grid-column: 3; }
html.full-table490 #matchPlayerStats .ring-open493 { grid-column: 4; }
html.full-table490 #matchPlayerStats .f { grid-column: 5; }

html.full-table490 #matchPlayerStats :is(small, .connected, .ring-open493, .f) {
  font-size: 12px;
  line-height: 1.2;
  margin: 0;
}

html.full-table490 #matchPlayerStats .f {
  gap: 4px;
  color: inherit;
}

html.full-table490 #matchPlayerStats .f strong {
  font-size: 18px;
  color: inherit;
}

/* Keep the clock and navigation on the same header row. */
html.full-table490 body > header > .match-clock:has(#matchPlayerStats .player-stats522) {
  flex: 3 1 0;
}

html.full-table490 body > header:has(#matchPlayerStats .player-stats522) > .toplinks {
  flex: 2 1 0;
  align-self: center;
}

html.full-table490.setup-header525 body > header:has(#matchPlayerStats .player-stats522) {
  grid-template-columns: 64px minmax(0, 3fr) minmax(0, 2fr);
}

html.full-table490.setup-header525 body > header:has(#matchPlayerStats .player-stats522) > .toplinks {
  grid-column: 3;
  grid-row: 1;
}

html.full-table490.setup-header525 body > header:has(#matchPlayerStats .player-stats522) > #prematchPanel {
  grid-column: 1 / -1;
  grid-row: 2;
}

body > header .table-account {
  white-space: nowrap;
}

html.full-table490 body > header > .match-clock:has(#matchPlayerStats .player-stats522) {
  flex-grow: 4;
}

html.full-table490.setup-header525 body > header:has(#matchPlayerStats .player-stats522) {
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 2fr);
}

/* Keep each player's Fortitude visible when the match panel is folded. */
#matchSummary[hidden],
.superstar-fortitude,
body:has(#matchSummary[hidden]) .shared-table .playerhead > .f {
  display: none;
}

body:has(#matchSummary[hidden]) .shared-table .superstar-fortitude {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 5px;
  width: 100%;
  margin: 0;
  padding: 3px 1px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  font-size: clamp(9px, 1.5vw, 12px);
  line-height: 1.2;
}

.shared-table .superstar-fortitude strong {
  font-size: 1.25em;
}

html.full-table490.setup-header525:not(.r2f-android) body > header:has(#matchSummary[hidden]) {
  grid-template-columns: 64px minmax(0, 1fr);
}

html.full-table490.setup-header525:not(.r2f-android) body > header:has(#matchSummary[hidden]) > .toplinks {
  grid-column: 2;
}

#rematchPanel > button:not([hidden]) {
  margin: 0 6px 6px 0;
}
#rematchError { color: var(--danger, #df6c78); }
