.elg-binoculars {
    --spot-x: 50%;
    --spot-y: 50%;
    --spot-radius: 92px;
    max-width: 980px;
    margin: 24px auto;
    padding: 20px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f8fafc;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}
.elg-binoculars *, .elg-binoculars *::before, .elg-binoculars *::after {
    box-sizing: border-box;
}
.elg-binoculars [hidden] {
    display: none !important;
}
.elg-bn-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.elg-bn-title {
    margin: 0;
    color: #172554;
    font-size: 1.3rem;
    font-weight: 800;
}
.elg-bn-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1d4ed8;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}
.elg-bn-icon-btn:hover,
.elg-bn-icon-btn:focus-visible {
    background: #eff6ff;
    outline: none;
}
.elg-bn-icon-btn:active {
    transform: scale(.96);
}
.elg-bn-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.elg-bn-help {
    max-width: 780px;
    margin: 0 auto 16px;
    color: #475569;
    font-size: .94rem;
    line-height: 1.45;
    text-align: center;
}
.elg-bn-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}
.elg-bn-file-btn,
.elg-bn-btn,
.elg-bn-chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: filter .2s ease, transform .1s ease, opacity .2s ease;
}
.elg-bn-file-btn {
    padding: 11px 20px;
    background: #1d4ed8;
    color: #fff;
}
.elg-bn-file-btn input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.elg-bn-btn {
    padding: 11px 22px;
    background: #f59e0b;
    color: #111827;
}
.elg-bn-btn.active {
    background: #16a34a;
    color: #fff;
}
.elg-bn-btn:disabled {
    cursor: default;
    opacity: .55;
}
.elg-bn-chip {
    min-width: 64px;
    padding: 10px 14px;
    background: #e2e8f0;
    color: #334155;
}
.elg-bn-chip.active {
    background: #172554;
    color: #fff;
}
.elg-bn-file-btn:hover,
.elg-bn-btn:hover:not(:disabled),
.elg-bn-chip:hover {
    filter: brightness(.96);
}
.elg-bn-file-btn:active,
.elg-bn-btn:active:not(:disabled),
.elg-bn-chip:active {
    transform: scale(.96);
}
.elg-bn-answer-field {
    min-width: min(100%, 280px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #334155;
    font-size: .84rem;
    font-weight: 700;
}
.elg-bn-answer-field input {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font: inherit;
    outline: none;
}
.elg-bn-answer-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.elg-bn-size-group {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: #f1f5f9;
}
.elg-bn-message {
    min-height: 22px;
    color: #dc2626;
    font-size: .92rem;
    font-weight: 700;
    text-align: center;
}
.elg-bn-stage {
    position: relative;
    width: 100%;
    min-height: 360px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    touch-action: none;
    user-select: none;
}
.elg-bn-stage:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 3px;
}
.elg-bn-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
}
.elg-bn-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at var(--spot-x) var(--spot-y),
            rgba(0, 0, 0, 0) 0 var(--spot-radius),
            rgba(2, 6, 23, .9) calc(var(--spot-radius) + 2px));
    pointer-events: none;
}
.elg-bn-overlay::after {
    content: "";
    position: absolute;
    width: calc(var(--spot-radius) * 2);
    height: calc(var(--spot-radius) * 2);
    left: var(--spot-x);
    top: var(--spot-y);
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, .08), 0 0 26px rgba(255, 255, 255, .32);
    transform: translate(-50%, -50%);
}
.elg-binoculars.revealed .elg-bn-overlay {
    display: none;
}
.elg-bn-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 24px;
    color: #e2e8f0;
    text-align: center;
}
.elg-bn-placeholder strong {
    font-size: 1.15rem;
}
.elg-bn-placeholder span {
    color: #94a3b8;
    font-size: .92rem;
}
.elg-binoculars.has-image .elg-bn-placeholder {
    display: none;
}
.elg-bn-answer {
    position: absolute;
    left: 50%;
    bottom: 18px;
    max-width: calc(100% - 36px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #172554;
    font-size: 1.05rem;
    font-weight: 900;
    text-align: center;
    transform: translateX(-50%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}

@media (max-width: 640px) {
    .elg-binoculars {
        margin: 16px auto;
        padding: 14px 10px 18px;
    }
    .elg-bn-panel {
        align-items: stretch;
    }
    .elg-bn-file-btn,
    .elg-bn-btn,
    .elg-bn-answer-field {
        width: 100%;
    }
    .elg-bn-size-group {
        width: 100%;
        justify-content: center;
    }
    .elg-bn-stage {
        min-height: 280px;
        aspect-ratio: 4 / 3;
    }
}

.elg-binoculars:fullscreen,
.elg-binoculars.is-fullscreen {
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    border: 0;
    border-radius: 0;
    overflow: auto;
}
.elg-binoculars:fullscreen .elg-bn-stage,
.elg-binoculars.is-fullscreen .elg-bn-stage {
    width: min(96vw, 150vh);
    margin: 0 auto;
    min-height: min(78vh, 760px);
}
