*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:transparent;font-family:Arial,Helvetica,sans-serif;color:#f4fffc}
.overlay-canvas{position:relative;width:100vw;height:100vh;min-width:0;min-height:0;overflow:hidden;background:transparent;--teal:#12e7c2;--teal-dark:#00a98e;--ink:#071311;--panel:rgba(3,18,17,.94);--line:#050807}
.ov-player,.ov-teams,.ov-bid,.ov-photo-frame{position:absolute}
/* Left player panel: angular outer silhouette with the bright name strip. */
.ov-player{left:23.35%;bottom:4.25%;width:20.15%;height:14.1%;padding:0 1.05% .45%;display:flex;flex-direction:column;justify-content:space-between;background:var(--panel);border:3px solid var(--line);outline:2px solid var(--teal);clip-path:polygon(7% 0,88% 0,96% 8%,100% 47%,96% 90%,89% 100%,7% 100%,0 76%,3% 28%);filter:drop-shadow(0 0 2px var(--teal));}
.ov-name-band{height:28%;margin:2.2% 1.4% 0;padding:0 4%;display:flex;align-items:center;justify-content:center;background:var(--teal);color:#061512;clip-path:polygon(3% 0,97% 0,100% 50%,97% 100%,0 100%);}
.ov-name-band strong{font-size:clamp(10px,1.12vw,18px);font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.015em}
.ov-detail{height:20%;display:flex;align-items:center;gap:3.5%;padding:0 4%;font-size:clamp(8px,.82vw,13px);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-role-line{border-bottom:1px solid rgba(18,231,194,.5)}
.ov-symbol{display:inline-flex;align-items:center;justify-content:center;width:9%;flex:0 0 9%;color:var(--teal);font-size:clamp(13px,1.45vw,23px);line-height:1}
.ov-class-line{color:#f0f7f5}
.ov-base{height:25%;display:flex;align-items:center;justify-content:space-between;padding:0 5%;font-size:clamp(8px,.86vw,14px);font-weight:800}
.ov-base strong{white-space:nowrap}
.ov-base-divider{height:70%;width:1px;background:var(--teal);margin:0 4%}
.ov-base b{color:var(--teal);font-size:clamp(12px,1.35vw,22px);white-space:nowrap}
/* Portrait rises above and connects visually to the bid plate. */
.ov-photo-frame{left:45.4%;top:71.25%;width:9.2%;height:16.45%;z-index:2;display:grid;place-items:center;overflow:hidden;background:#071b17;border:3px solid var(--line);outline:2px solid var(--teal);border-radius:9px 9px 2px 2px;box-shadow:0 0 0 2px rgba(18,231,194,.55)}
.ov-photo-frame:before{content:"";position:absolute;inset:3px;border:1px solid rgba(18,231,194,.65);border-radius:5px 5px 0 0;pointer-events:none;z-index:1}
.ov-photo-frame img{width:100%;height:100%;object-fit:cover;object-position:center 24%}
.ov-photo-frame span{font-size:clamp(18px,2.2vw,35px);font-weight:900;color:var(--teal)}
/* Central bid plate overlaps the portrait and both side panels. */
.ov-bid{left:42.35%;bottom:3.65%;width:15.3%;height:9.35%;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:2px 5px 5px;background:linear-gradient(180deg,#08201b,#03110f);border:4px solid var(--line);outline:2px solid var(--teal);clip-path:polygon(7% 0,93% 0,100% 44%,91% 75%,50% 100%,9% 75%,0 44%);filter:drop-shadow(0 0 3px var(--teal));}
.ov-bid-label{font-size:clamp(11px,1.35vw,22px);font-weight:900;line-height:1;white-space:nowrap}
.ov-bid>b{color:var(--teal);font-size:clamp(11px,1.25vw,20px);line-height:1;white-space:nowrap}
.ov-bid small{font-size:clamp(6px,.55vw,9px);line-height:1;color:#c5d7d2;white-space:nowrap;max-width:90%;overflow:hidden;text-overflow:ellipsis}
/* Right team panel mirrors the left panel. */
.ov-teams{right:23.35%;bottom:4.25%;width:19.7%;height:14.1%;padding:0 1.1%;display:flex;flex-direction:column;justify-content:center;background:var(--panel);border:3px solid var(--line);outline:2px solid var(--teal);clip-path:polygon(11% 0,93% 0,100% 24%,97% 76%,91% 100%,11% 100%,4% 90%,0 50%,4% 10%);filter:drop-shadow(0 0 2px var(--teal));}
.ov-team-head,.ov-team-row{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(24px,.42fr) minmax(0,.82fr);align-items:center;text-align:center;column-gap:2px;padding:0 4%;}
.ov-team-head{height:27%;color:var(--teal);font-size:clamp(8px,.85vw,14px);font-weight:900;border-bottom:1px solid var(--teal)}
.ov-team-head strong+strong{border-left:1px solid var(--teal)}
.ov-team-row{height:24%;font-size:clamp(7px,.78vw,13px);font-weight:800;border-bottom:1px solid rgba(18,231,194,.45)}
.ov-team-row:last-child{border-bottom:0}
.ov-team-row span:first-child{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:1%}
.ov-team-row span:nth-child(2){border-left:1px solid var(--teal);border-right:1px solid var(--teal)}
.ov-team-row span:last-child{white-space:nowrap}
[hidden]{display:none!important}
@media(max-aspect-ratio:4/3){.ov-player{left:8%;width:30%;height:16%;bottom:5%}.ov-teams{right:8%;width:30%;height:16%;bottom:5%}.ov-photo-frame{left:43%;top:68%;width:14%;height:19%}.ov-bid{left:39%;width:22%;bottom:5%;height:10%}}

/* Editor-only controls. The OBS source at /overlay never displays this panel. */
.overlay-editor-panel{position:fixed;top:14px;right:14px;z-index:10000;width:min(310px,calc(100vw - 28px));padding:14px 16px;background:rgba(8,20,18,.97);color:#f4fffc;border:1px solid #12e7c2;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,.45);font-family:Arial,Helvetica,sans-serif}
.overlay-editor-panel[hidden]{display:none}
.overlay-editor-heading{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}
.overlay-editor-heading strong{font-size:14px;color:#12e7c2}
.overlay-editor-heading small,.overlay-editor-panel p{font-size:11px;line-height:1.4;color:#c5d7d2}
.overlay-editor-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid rgba(18,231,194,.2);font-size:13px;font-weight:700}
.overlay-editor-toggle input{width:18px;height:18px;accent-color:#12e7c2}
.overlay-editor-panel p{margin:9px 0}
.overlay-editor-panel p[data-error="true"]{color:#ff9999}
.overlay-editor-panel a{font-size:11px;color:#12e7c2;text-decoration:underline}
