#stagehudTunerOverlay {
    padding: calc(14px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px)) !important;
    background:
        radial-gradient(circle at 50% 36%, rgba(50, 215, 75, 0.026), rgba(0, 0, 0, 0.94) 48%, #000 100%) !important;
    backdrop-filter: blur(16px);
}

.stagehud-tuner-card {
    position: relative;
    width: min(1240px, 97vw) !important;
    min-height: min(760px, 92dvh);
    border-radius: 30px !important;
    border: 1px solid rgba(245, 245, 247, 0.105) !important;
    background:
        radial-gradient(circle at 50% 29%, rgba(50, 215, 75, 0.028), transparent 28%),
        linear-gradient(180deg, rgba(5, 8, 9, 0.96), rgba(0, 0, 0, 0.99)) !important;
    box-shadow:
        0 24px 90px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
    padding: clamp(18px, 2.6vw, 34px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    text-align: center !important;
}

.stagehud-tuner-card::before,
.stagehud-tuner-fork,
#stagehudTunerHint {
    display: none !important;
}

.stagehud-tuner-topline {
    position: static !important;
    width: 100% !important;
    height: 0 !important;
    display: block !important;
    justify-content: flex-start !important;
}

.stagehud-tuner-label {
    display: none !important;
}

.stagehud-tuner-card .stagehud-tuner-close {
    position: absolute !important;
    top: clamp(18px, 3vw, 40px) !important;
    right: clamp(18px, 3vw, 40px) !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 4;
    min-width: 104px;
    padding: 12px 22px !important;
    border-radius: 16px !important;
    background: rgba(245, 245, 247, 0.07) !important;
    color: rgba(245, 245, 247, 0.8) !important;
    border: 1px solid rgba(245, 245, 247, 0.115) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
    font-family: var(--font-ui) !important;
    font-size: clamp(16px, 1.55vw, 21px) !important;
    font-weight: 750 !important;
    letter-spacing: 0.075em !important;
    text-transform: uppercase !important;
}

.stagehud-tuner-meter {
    position: relative;
    width: min(1180px, 94vw);
    height: clamp(245px, 28vw, 330px);
    margin: clamp(64px, 8.4vh, 92px) auto 0;
    flex: 0 0 auto;
}

.stagehud-tuner-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.stagehud-tuner-arc-line {
    fill: none;
    stroke: rgba(245, 245, 247, 0.20);
    stroke-width: 1.15;
    vector-effect: non-scaling-stroke;
}

.stagehud-tuner-under-arc {
    fill: none;
    stroke: url("#stagehudTunerUnderArcGradient");
    stroke-width: 1.05;
    vector-effect: non-scaling-stroke;
    filter: url("#stagehudTunerGlow");
    opacity: 0.52;
    transition: opacity 140ms ease;
}

.stagehud-tuner-glow {
    fill: url("#stagehudTunerCenterGlow");
    opacity: 0.28;
    transition: opacity 140ms ease;
}

.stagehud-tuner-tick {
    stroke: rgba(245, 245, 247, 0.46);
    stroke-width: 0.9;
    stroke-linecap: square;
    vector-effect: non-scaling-stroke;
}

.stagehud-tuner-tick.medium {
    stroke: rgba(245, 245, 247, 0.62);
    stroke-width: 1.35;
}

.stagehud-tuner-tick.major {
    stroke: rgba(245, 245, 247, 0.82);
    stroke-width: 2.25;
}

.stagehud-tuner-tick.target {
    stroke: rgba(118, 255, 141, 0.56);
}

.stagehud-tuner-tick.edge {
    stroke: #76ff8d;
    filter: url("#stagehudTunerGlow");
}

.stagehud-tuner-tick.center {
    stroke: #76ff8d;
    stroke-width: 3.1;
    filter: url("#stagehudTunerGlow");
}

.stagehud-tuner-scale-label {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 760;
    letter-spacing: 0.035em;
    fill: rgba(245, 245, 247, 0.84);
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.86);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.stagehud-tuner-scale-label.edge,
.stagehud-tuner-scale-label.center {
    color: #76ff8d;
    fill: #76ff8d;
}

.stagehud-tuner-scale-label.center {
    transition: font-size 150ms ease, filter 150ms ease, fill 150ms ease;
}

.stagehud-tuner-needle {
    opacity: 0.78;
    transition: opacity 120ms ease;
}

.stagehud-tuner-needle-line {
    stroke: #8dff9f;
    stroke-width: 4.4;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    filter: url("#stagehudTunerGlow");
    transition:
        x2 105ms cubic-bezier(0.2, 0.0, 0.15, 1),
        y2 105ms cubic-bezier(0.2, 0.0, 0.15, 1);
}

.stagehud-tuner-needle-tip {
    display: none !important;
}

#stagehudTunerOverlay.near .stagehud-tuner-glow {
    opacity: 0.42;
}

#stagehudTunerOverlay.in-tune .stagehud-tuner-glow {
    opacity: 0.58;
}

#stagehudTunerOverlay.in-tune .stagehud-tuner-under-arc {
    opacity: 0.72;
}

#stagehudTunerOverlay.in-tune .stagehud-tuner-tick.target {
    stroke: rgba(118, 255, 141, 0.92);
}

#stagehudTunerOverlay.in-tune .stagehud-tuner-scale-label.center {
    font-size: 24px;
    fill: #8dff9f;
    filter: url("#stagehudTunerGlow");
}

#stagehudTunerOverlay.in-tune .stagehud-tuner-needle {
    opacity: 1;
}

#stagehudTunerOverlay.in-tune .stagehud-tuner-needle-line {
    stroke-width: 4.9;
}

.stagehud-tuner-lock-marker {
    fill: #76ff8d;
    opacity: 0;
    filter: url("#stagehudTunerGlow");
    transform-box: fill-box;
    transform-origin: center;
    transform: translateY(-4px) scale(0.82);
    transition: opacity 150ms ease, transform 150ms ease;
}

#stagehudTunerOverlay.in-tune .stagehud-tuner-lock-marker {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stagehud-tuner-cents-word {
    margin-top: clamp(-28px, -2.4vw, -16px);
    font-family: var(--font-ui);
    font-size: clamp(11px, 1.25vw, 15px);
    color: rgba(245, 245, 247, 0.52);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stagehud-tuner-readout {
    position: relative;
    display: block;
    align-items: baseline;
    justify-content: center;
    margin-top: clamp(24px, 3.2vh, 38px);
    min-width: clamp(190px, 22vw, 285px);
    text-align: center;
}

#stagehudTunerNote {
    margin: 0 !important;
    font-family: var(--font-display) !important;
    font-size: clamp(156px, 18vw, 230px) !important;
    line-height: 0.82 !important;
    color: #f8fff9 !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 0 22px rgba(245, 245, 247, 0.12) !important;
    transition: color 120ms ease, text-shadow 120ms ease;
}

#stagehudTunerOverlay.in-tune #stagehudTunerNote {
    color: #32d74b !important;
    text-shadow: 0 0 24px rgba(50, 215, 75, 0.48), 0 0 56px rgba(50, 215, 75, 0.18) !important;
}

.stagehud-tuner-octave {
    position: absolute;
    left: calc(50% + clamp(54px, 6.2vw, 82px));
    bottom: clamp(8px, 1.4vw, 18px);
    font-family: var(--font-display);
    font-size: clamp(52px, 6.4vw, 80px);
    color: rgba(50, 215, 75, 0.64);
    line-height: 1;
}

#stagehudTunerStatus {
    display: none !important;
}

@media (max-width: 720px) {
    .stagehud-tuner-card {
        min-height: 88dvh;
    }

    .stagehud-tuner-meter {
        margin-top: 68px;
        height: 240px;
    }

    .stagehud-tuner-scale-label {
        font-size: 18px;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    #stagehudTunerOverlay {
        padding: calc(6px + env(safe-area-inset-top, 0px)) calc(8px + env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px)) !important;
    }

    .stagehud-tuner-card {
        width: calc(100vw - 18px) !important;
        min-height: calc(100dvh - 14px);
        border-radius: 20px !important;
        padding: 10px 18px 18px !important;
    }

    .stagehud-tuner-card .stagehud-tuner-close {
        top: calc(10px + env(safe-area-inset-top, 0px)) !important;
        right: calc(16px + env(safe-area-inset-right, 0px)) !important;
        min-width: 84px;
        padding: 9px 16px !important;
        border-radius: 13px !important;
        font-size: clamp(13px, 1.7vw, 16px) !important;
        letter-spacing: 0.09em !important;
    }

    .stagehud-tuner-meter {
        width: min(1160px, 94vw);
        height: clamp(205px, 39vh, 240px);
        margin-top: clamp(42px, 8vh, 56px);
    }

    .stagehud-tuner-scale-label {
        font-size: 18px;
        stroke-width: 3.5px;
    }

    .stagehud-tuner-tick {
        stroke-width: 0.9;
    }

    .stagehud-tuner-tick.medium {
        stroke-width: 1.35;
    }

    .stagehud-tuner-tick.major {
        stroke-width: 2.25;
    }

    .stagehud-tuner-tick.center {
        stroke-width: 3.1;
    }

    .stagehud-tuner-needle-line {
        stroke-width: 4.4;
    }

    .stagehud-tuner-cents-word {
        margin-top: clamp(-34px, -5.8vh, -24px);
        font-size: clamp(10px, 1.45vw, 13px);
        letter-spacing: 0.13em;
    }

    .stagehud-tuner-readout {
        margin-top: clamp(12px, 2.4vh, 18px);
        min-width: clamp(170px, 20vw, 250px);
    }

    #stagehudTunerNote {
        font-size: clamp(138px, 26vh, 168px) !important;
        line-height: 0.76 !important;
    }

    .stagehud-tuner-octave {
        left: calc(50% + clamp(48px, 8.5vh, 64px));
        bottom: clamp(4px, 1vh, 9px);
        font-size: clamp(42px, 7.8vh, 56px);
    }

    #stagehudTunerOverlay.in-tune .stagehud-tuner-scale-label.center {
        font-size: 21px;
    }
}
