/* Separate HUD wings. No background, border, shadow or label crosses the game HUD. */
.dr-overlay.dr-score-mode .dr-app,
.dr-overlay.dr-score-mode.dr-bottom .dr-app{inset:0;width:1920px;height:1080px;transform:none}
.dr-hud-scoreboard{position:absolute;inset:0;width:1920px;height:1080px;background:none;border:0;box-shadow:none;pointer-events:none}
.dr-hud-card{--wing:#64c7ff;position:absolute;width:226px;height:172px;transform-origin:top left;overflow:hidden;padding:10px 13px 9px;background:linear-gradient(140deg,#162333f5,#0a111df7);border:1px solid #cfb17c8c;border-left:3px solid var(--wing);border-radius:5px;box-shadow:inset 0 1px 0 #fff2;display:flex;flex-direction:column;gap:4px;color:#f6f7fa;font-family:Draft,Arial,sans-serif;isolation:isolate}
.dr-hud-b{--wing:#ff867c;border-left:1px solid #cfb17c8c;border-right:3px solid var(--wing)}
.dr-hud-brand{display:flex;align-items:center;justify-content:space-between;height:13px;flex-shrink:0;letter-spacing:1px;line-height:1;color:#dbbe8b;font-size:8px}
.dr-hud-brand>span{display:flex;gap:5px;align-items:center}.dr-hud-brand svg{width:8px;height:11px}.dr-hud-brand>b{font-size:9px;color:#aebdce;letter-spacing:.7px;font-weight:400}
.dr-hud-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;flex-shrink:0;height:38px;line-height:19px;font-size:15px;font-weight:700;letter-spacing:-.25px;color:var(--wing)}
.dr-hud-b .dr-hud-name{text-align:right}
.dr-hud-result{display:flex;align-items:center;justify-content:space-between;min-height:62px;gap:8px;flex:1}
.dr-hud-b .dr-hud-result{flex-direction:row-reverse}
.dr-hud-god{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.dr-hud-b .dr-hud-god{flex-direction:row-reverse;text-align:right}
.dr-hud-god>img{width:44px;height:54px;object-fit:cover;object-position:50% 15%;border-radius:2px;border:1px solid #bca67855;flex-shrink:0}
.dr-hud-god>.dr-unknown{width:44px;height:54px;flex-shrink:0;font-size:30px;background:#ffffff07}
.dr-hud-god>span:not(.dr-unknown){font-size:10px;line-height:1.3;overflow-wrap:anywhere;color:#d1dbea;max-width:74px}
.dr-hud-tally{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:46px;flex-shrink:0}
.dr-hud-tally>b{font-size:44px;line-height:.95;font-variant-numeric:tabular-nums;letter-spacing:-2px}
.dr-hud-tally>span{font-size:6px;line-height:1.5;letter-spacing:1px;color:#b6c4d6;margin-top:5px}
.dr-hud-card>footer{display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid #ffffff18;padding-top:6px;line-height:1;flex-shrink:0;height:20px;min-width:0}
.dr-hud-status{display:flex;align-items:center;gap:5px;font-size:7px;letter-spacing:.4px;white-space:nowrap;color:#adc0d5}
.dr-hud-status .dr-dot{width:4px;height:4px;box-shadow:none}
.dr-hud-card>footer small{font-size:8px;color:#d6bf98;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100px}
.dr-hud-reconnect{display:none;font-size:8px;color:#f1c481}.dr-connection-lost .dr-hud-status{display:none}.dr-connection-lost .dr-hud-reconnect{display:block}
.dr-score-mode .dr-overlay-connection{display:none!important}
.dr-score-mode .dr-demo-watermark{top:auto;bottom:24px;left:24px;font-size:10px}
.dr-hud-guide{position:absolute;top:0;border:2px dashed #72d8b8;background:#64dcb00e;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;padding:15px;color:#a9edda;pointer-events:none;font-size:13px;letter-spacing:2px}
.dr-hud-guide small{font-size:10px;letter-spacing:.6px;color:#bddcd2}
/* Calibration belongs to the studio only. Captures never enter the OBS URL. */
.dr-studio .dr-preview{isolation:isolate}.dr-studio .dr-preview iframe{position:absolute;inset:0;z-index:2;pointer-events:none}
.dr-preview-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:top center;z-index:1}
.dr-preview-shot[hidden],.dr-studio [hidden]{display:none!important}
.dr-capture-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.dr-capture-tools .dr-btn{font-size:10px;padding:8px 12px;min-height:36px}
.dr-capture-tools label{cursor:pointer}.dr-capture-tools input{max-width:220px;font-size:10px;padding:8px}
.dr-capture-note{font-size:11px;color:#acbdcc;line-height:1.7;margin-top:10px}
.dr-preview-edge{position:absolute;top:0;height:25.93%;width:18px;padding:0;transform:translateX(-50%);background:none;border:0;cursor:ew-resize;touch-action:none;z-index:4;color:#90f0ce}
.dr-preview-edge::before{content:'';position:absolute;left:8px;top:0;bottom:0;border-left:2px solid #82e4bf}
.dr-preview-edge::after{content:'↔';position:absolute;top:40%;left:-5px;width:28px;height:28px;border:1px solid #a9f2d6;border-radius:4px;background:#10231ff2;display:flex;align-items:center;justify-content:center;font-size:15px}
.dr-preview-edge:focus-visible{outline:2px solid #edc780;outline-offset:2px}
.dr-studio-settings .dr-hud-settings{border:0;border-top:1px solid #ffffff21;margin:2px 0;padding:16px 0 0;display:flex;flex-direction:column;gap:14px;min-width:0}
.dr-hud-settings legend{font-size:11px;color:#edc780;padding:0 0 4px;font-weight:700}
.dr-hud-settings .dr-field-title{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dr-hud-settings .dr-number{width:86px;padding:5px 7px;color:#e7d4af;font-variant-numeric:tabular-nums}
.dr-studio-settings #dr-measure-readout{font-size:10px;line-height:1.8;color:#abbacf}
.dr-studio-settings #dr-fit-warning{font-size:10px;line-height:1.6;color:#efbc86;margin:0}
.dr-studio-grid{align-items:start}.dr-studio-grid>.dr-studio-visual{position:sticky;top:18px}
@media(max-width:700px){.dr-studio-grid>.dr-studio-visual{position:static}.dr-capture-tools{align-items:flex-start}.dr-preview-edge::after{width:22px;height:22px;font-size:12px;left:-2px}}
