/* One portrait per seat. Positions are in the same projected-table space
   as the racks, not the unrotated phone viewport. */
html body .approved-camera-frame .approved-camera-seat:not([hidden]){
 --seat-portrait:clamp(30px,min(5.85cqw,13.5cqh),85px);
 --approved-avatar-size:var(--seat-portrait);
 --seat-blue-edge:#7399bd;
 z-index:2;
 background:linear-gradient(155deg,#183751eb,#101e34f2)!important;
 border:1px solid var(--seat-blue-edge)!important;border-radius:clamp(6px,.9cqw,12px);
 box-shadow:0 4px 12px #0c142a72,inset 0 1px #9fc2e43d!important;
}
html body .approved-camera-frame .approved-camera-seat[aria-current=true]{
 outline:1px solid #9bd8ff;outline-offset:1px;
}
html body .approved-camera-frame .approved-camera-seat-avatar{
 inline-size:var(--seat-portrait);block-size:var(--seat-portrait);
 flex:none;border:2px solid #9ac8ed;outline:1px solid #253f61;
 box-shadow:0 0 0 2px #304b6f,0 3px 12px #0c142bb0;
 background-color:#162840;
}
html body .approved-camera-frame .approved-camera-seat[aria-current=true] .approved-camera-seat-avatar{
 box-shadow:0 0 0 2px #446c98,0 0 12px #57abfdb0;
}
html body .approved-camera-frame .approved-camera-seat-name{min-width:0;color:#fff3db}
html body .approved-camera-frame .approved-camera-seat .seat-name-full{
 width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.12;
 font-size:calc(1em * var(--seat-legacy-fit,1));transform:none!important;
}
html body .approved-camera-frame :is(.approved-camera-seat--left,.approved-camera-seat--right):not([hidden]){
 display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;
 justify-items:center;align-items:center;
 /* The old side-avatar rail, independent from the wall rails. */
 top:48%;width:clamp(50px,9.35cqw,140px);max-width:14%;box-sizing:border-box;
 transform:translate(-50%,-50%);padding:.49em .34em;
 gap:.32em .23em;font-size:clamp(.54rem,1.15cqw,1.08rem);
}
html body .approved-camera-frame .approved-camera-seat--left{left:7.15%}
html body .approved-camera-frame .approved-camera-seat--right{left:92.85%}
html body .approved-camera-frame :is(.approved-camera-seat--left,.approved-camera-seat--right) .approved-camera-seat-avatar{
 grid-area:1/1/2/3;position:relative;margin-bottom:.13em;
}
html body .approved-camera-frame :is(.approved-camera-seat--left,.approved-camera-seat--right) .approved-camera-seat-name{
 grid-area:2/1/3/2;justify-self:stretch;max-width:100%;
}
html body .approved-camera-frame :is(.approved-camera-seat--left,.approved-camera-seat--right):not(:has(.approved-camera-seat-wind:not([hidden]))) .approved-camera-seat-name{
 grid-column:1/3;
}
html body .approved-camera-frame :is(.approved-camera-seat--left,.approved-camera-seat--right) .approved-camera-seat-wind{
 grid-area:2/2/3/3;justify-self:start;
}
html body .approved-camera-frame :is(.approved-camera-seat--left,.approved-camera-seat--right) .approved-camera-seat-score-line{
 grid-area:3/1/4/3;color:#f7d37d;font-size:.91em;letter-spacing:.02em;
}
/* Keep each portrait inside the same solid card as its label. The far
   card uses a horizontal row and the same portrait diameter as every seat. */
html body .approved-camera-frame .approved-camera-seat--far:not([hidden]){
 left:51%;top:max(5.8%,calc(var(--seat-portrait) / 2 + .22em + 3px));max-width:25%;padding:.22em .38em;
 gap:.29em;font-size:clamp(.57rem,1.42cqw,1.2rem);
}
html body .approved-camera-frame .approved-camera-seat--far .approved-camera-seat-avatar{
 position:relative;
}
/* Anchor the whole near card on the previous label rail; keep it clear
   of the centred hand even with a wide deck or a long player name. */
html body .approved-camera-frame .approved-camera-seat--self:not([hidden]){
 display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;
 justify-items:center;align-items:center;
 left:14%;top:auto;bottom:2.5%;width:clamp(50px,10cqw,142px);max-width:14%;
 transform:translateX(-50%);padding:.34em .30em;gap:.21em .20em;
}
html body .approved-camera-frame .approved-camera-seat--self .approved-camera-seat-avatar{
 grid-area:1/1/2/3;position:relative;overflow:visible;margin-bottom:.13em;
}
html body .approved-camera-frame .approved-camera-seat--self .approved-camera-seat-name{
 grid-area:2/1/3/2;justify-self:stretch;max-width:100%;
}
html body .approved-camera-frame .approved-camera-seat--self:not(:has(.approved-camera-seat-wind:not([hidden]))) .approved-camera-seat-name{grid-column:1/3}
html body .approved-camera-frame .approved-camera-seat--self .approved-camera-seat-wind{grid-area:2/2/3/3;justify-self:start}
html body .approved-camera-frame .approved-camera-seat--self .approved-camera-seat-score-line{grid-area:3/1/4/3;color:#f7d37d;font-size:.91em}
html body .approved-camera-frame .approved-camera-seat--self .approved-camera-seat-avatar > img:not(.mg-profile-frame){
 clip-path:circle(49% at 50% 50%);
}
html body .approved-camera-frame :is(.approved-camera-seat--left,.approved-camera-seat--right) .approved-camera-seat-rule-cue{
 right:auto;left:50%;max-width:110%;text-align:center;white-space:normal;transform:translateX(-50%);
}
.approved-camera-round-head{display:flex;align-items:center;gap:clamp(3px,.7cqw,9px)}
.approved-camera-active .approved-camera-round-info .approved-camera-round-progress{
 position:static;font-variant-numeric:tabular-nums;white-space:nowrap
}
.approved-camera-round-progress[hidden]{display:none!important}
html body .approved-camera-frame .approved-camera-seat--self{
 font-size:clamp(.56rem,1.12cqw,1.18rem)
}
html body .scene-3d.approved-camera-active .player .move #status[data-approved-round-done]{
 left:29%;right:29%;text-align:center;max-width:none
}
/* The result dialog already announces this; do not let the compact status
   overlay share the portrait's rail once a hand has finished. */
html body .scene-3d.approved-camera-active .player .move #status[data-approved-round-done]{
 position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important
}

/* Opening instructions hug the lower-right rail, including on the rotated
   mobile plane. They must never use the near seat's portrait lane. */
html body .scene-3d.approved-camera-active .player .move #status[data-approved-opening-note]{
 position:absolute!important;inset:auto 8% 2.7% 54%!important;text-align:right!important;
 width:auto!important;height:auto!important;max-width:none!important;clip-path:none!important;transform:none!important;
 white-space:normal!important;text-wrap:pretty;line-height:1.14;overflow-wrap:anywhere;pointer-events:none;
 font-size:clamp(.57rem,1.64cqh,.91rem);color:#fff0c8;text-shadow:0 1px 3px #150d0a,0 1px 4px #150d0a
}

/* Constrain decorative art independently of the photo's size and text rows. */
html body .approved-camera-frame .approved-camera-seat-avatar.mg-profile-framed>img.mg-profile-frame{
 inset:-10%;width:120%;height:120%;max-width:none;max-height:none;object-fit:contain;
}
html body .approved-camera-frame :is(.approved-camera-seat--self,.approved-camera-seat--left,.approved-camera-seat--right) .approved-camera-seat-avatar.mg-profile-framed{margin-bottom:.45em}
html body .approved-camera-frame .approved-camera-seat--far .approved-camera-seat-avatar.mg-profile-framed{margin-inline-end:.35em}
