.gvr-start--sphere {
    background: linear-gradient(135deg, #7a5208, #b87913);
    box-shadow: 0 16px 40px rgba(122, 82, 8, .28);
}

.gvr-start--sphere:hover {
    background: linear-gradient(135deg, #694504, #9d650d);
}

.gvr-real-start {
    min-height: 54px;
    border: 1px solid rgba(11, 51, 92, .28);
    color: #0b335c;
    background: #fff;
    box-shadow: none;
}

.gvr-real-start span {
    border-color: rgba(11, 51, 92, .3);
    color: #0b335c;
}

.gvr-real-start:hover {
    color: #fff;
    background: #124a79;
}

.gvr-preview-card__mode {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: #fff5dc;
    background: rgba(26, 18, 4, .7);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.gvr-sphere-viewer[hidden],
.gvr-sphere-help[hidden],
.gvr-sphere-loading[hidden],
.gvr-sphere-fallback[hidden] {
    display: none !important;
}

.gvr-sphere-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    color: #f8f5ed;
    background: #0e0e0e;
    font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
}

.gvr-sphere-viewer > * {
    min-width: 0;
}

.gvr-sphere-viewer__topbar,
.gvr-sphere-viewer__bottom {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-color: rgba(255, 255, 255, .13);
    background: rgba(15, 15, 15, .96);
}

.gvr-sphere-viewer__topbar {
    min-height: 68px;
    padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    justify-content: space-between;
}

.gvr-sphere-viewer__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gvr-sphere-viewer__identity > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.gvr-sphere-viewer__identity strong {
    overflow: hidden;
    font-size: clamp(15px, 2vw, 20px);
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gvr-sphere-viewer__identity small {
    color: rgba(255, 255, 255, .67);
    font-size: 12px;
}

.gvr-sphere-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 207, 104, .55);
    border-radius: 999px;
    color: #ffe5a8;
    background: rgba(122, 80, 0, .34);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
}

.gvr-sphere-viewer__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.gvr-sphere-viewer__controls button,
.gvr-sphere-scene-button,
.gvr-sphere-help button,
.gvr-sphere-fallback button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gvr-sphere-viewer__controls button {
    min-width: 42px;
    padding: 8px 11px;
}

.gvr-sphere-viewer__controls button:hover,
.gvr-sphere-viewer__controls button:focus-visible,
.gvr-sphere-scene-button:hover,
.gvr-sphere-scene-button:focus-visible,
.gvr-sphere-help button:hover,
.gvr-sphere-help button:focus-visible,
.gvr-sphere-fallback button:hover,
.gvr-sphere-fallback button:focus-visible {
    border-color: #f8d584;
    outline: 2px solid transparent;
    background: rgba(248, 213, 132, .16);
}

.gvr-sphere-viewer__close {
    border-color: rgba(255, 255, 255, .38) !important;
    background: rgba(255, 255, 255, .15) !important;
}

.gvr-sphere-canvas-wrap {
    position: relative;
    z-index: 1;
    min-height: 0;
    overflow: hidden;
    background: #0e0e0e;
}

.gvr-sphere-panorama {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #0e0e0e;
    outline: none;
    touch-action: none;
}

.gvr-sphere-panorama:focus-visible {
    box-shadow: inset 0 0 0 3px #f8d584;
}

.gvr-sphere-canvas-badge {
    position: absolute;
    z-index: 12;
    top: 12px;
    left: max(12px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 24px);
    padding: 8px 12px;
    border: 1px solid rgba(255, 216, 131, .34);
    border-radius: 999px;
    color: #fff1c8;
    background: rgba(17, 13, 5, .74);
    backdrop-filter: blur(9px);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    pointer-events: none;
}

.gvr-sphere-drag-guide {
    position: absolute;
    z-index: 11;
    right: max(14px, env(safe-area-inset-right));
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .88);
    background: rgba(0, 0, 0, .58);
    font-size: 12px;
    pointer-events: none;
}

.gvr-sphere-loading,
.gvr-sphere-fallback {
    position: absolute;
    z-index: 30;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(158, 110, 22, .24), transparent 38%),
        #101010;
}

.gvr-sphere-loading > div,
.gvr-sphere-fallback > div {
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 520px;
}

.gvr-sphere-loading__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, .18);
    border-top-color: #f6d17d;
    border-radius: 50%;
    animation: gvr-sphere-spin 1s linear infinite;
}

.gvr-sphere-loading strong {
    font-size: 17px;
}

.gvr-sphere-loading small,
.gvr-sphere-fallback p {
    color: rgba(255, 255, 255, .72);
    line-height: 1.65;
}

.gvr-sphere-fallback button {
    padding: 10px 16px;
}

.gvr-sphere-viewer__bottom {
    align-items: stretch;
    min-height: 112px;
    padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.gvr-sphere-scene-rail {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.gvr-sphere-scene-button {
    flex: 0 0 140px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-content: center;
    align-items: center;
    column-gap: 9px;
    min-height: 76px;
    padding: 7px;
    text-align: left;
}

.gvr-sphere-scene-button img {
    grid-row: 1;
    align-self: stretch;
    width: 54px;
    height: 62px;
    border-radius: 7px;
    object-fit: cover;
}

.gvr-sphere-scene-button span {
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gvr-sphere-scene-button.is-active {
    border-color: #f3cc70;
    color: #fff1c8;
    background: rgba(174, 119, 12, .2);
}

.gvr-sphere-viewer__disclosure {
    flex: 0 0 min(31vw, 390px);
    align-self: center;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    line-height: 1.5;
}

.gvr-sphere-live {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.gvr-sphere-help {
    position: absolute;
    z-index: 60;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(10px);
}

.gvr-sphere-help > div {
    width: min(560px, 100%);
    max-height: min(680px, calc(100dvh - 40px));
    overflow: auto;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    color: #f8f5ed;
    background: #1a1a1a;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

.gvr-sphere-help h2 {
    margin: 0 0 14px;
    font-size: clamp(23px, 4vw, 34px);
}

.gvr-sphere-help p,
.gvr-sphere-help li {
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
}

.gvr-sphere-help ul {
    padding-left: 20px;
}

.gvr-sphere-help__warning {
    padding: 12px 14px;
    border-left: 3px solid #f3cc70;
    background: rgba(243, 204, 112, .09);
}

.gvr-sphere-help button {
    width: 100%;
    margin-top: 8px;
}

@keyframes gvr-sphere-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .gvr-sphere-loading__spinner {
        animation: none;
    }
}

@media (max-width: 900px) {
    .gvr-sphere-viewer__topbar {
        min-height: 60px;
        gap: 8px;
    }

    .gvr-sphere-badge {
        padding-inline: 8px;
        font-size: 11px;
    }

    .gvr-sphere-viewer__identity small {
        display: none;
    }

    .gvr-sphere-viewer__controls {
        gap: 4px;
    }

    .gvr-sphere-viewer__controls button {
        min-width: 40px;
        min-height: 40px;
        padding-inline: 9px;
        font-size: 12px;
    }

    .gvr-sphere-viewer__controls .gvr-sphere-control-label {
        display: none;
    }

    .gvr-sphere-viewer__bottom {
        min-height: 102px;
    }

    .gvr-sphere-viewer__disclosure {
        display: none;
    }

    .gvr-sphere-scene-button {
        flex-basis: 136px;
        min-height: 72px;
    }
}

@media (max-width: 560px) {
    .gvr-sphere-viewer {
        grid-template-rows: auto minmax(0, 1fr) 86px;
    }

    .gvr-sphere-viewer__topbar {
        align-items: flex-start;
        padding-bottom: 8px;
    }

    .gvr-sphere-badge {
        min-height: 27px;
    }

    .gvr-sphere-viewer__identity {
        align-items: flex-start;
        gap: 7px;
    }

    .gvr-sphere-viewer__identity strong {
        max-width: 90px;
        padding-top: 5px;
        font-size: 14px;
    }

    #gvr-sphere-zoom-out,
    #gvr-sphere-zoom-in,
    #gvr-sphere-fullscreen {
        display: none;
    }

    .gvr-sphere-canvas-badge {
        top: 10px;
        max-width: calc(100% - 20px);
        font-size: 11px;
    }

    .gvr-sphere-drag-guide {
        right: 10px;
        bottom: 10px;
    }

    .gvr-sphere-viewer__bottom {
        min-height: 86px;
        padding-block: 6px;
    }

    .gvr-sphere-scene-button {
        flex-basis: 120px;
        grid-template-columns: 44px minmax(0, 1fr);
        min-height: 68px;
        padding: 5px;
    }

    .gvr-sphere-scene-button img {
        width: 44px;
        height: 56px;
    }
}

@media (max-width: 400px) {
    .gvr-sphere-viewer__identity > div {
        display: grid;
    }

    .gvr-sphere-viewer__identity strong {
        max-width: 110px;
    }

    .gvr-sphere-viewer__controls button {
        padding-inline: 7px;
    }
}

@media (max-width: 360px) {
    #gvr-sphere-auto {
        display: none;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .gvr-sphere-viewer {
        grid-template-rows: 54px minmax(0, 1fr) 70px;
    }

    .gvr-sphere-viewer__topbar {
        min-height: 54px;
        padding-top: max(6px, env(safe-area-inset-top));
        padding-bottom: 6px;
    }

    .gvr-sphere-viewer__controls button {
        min-height: 38px;
    }

    .gvr-sphere-viewer__bottom {
        min-height: 70px;
        padding-block: 4px;
    }

    .gvr-sphere-scene-button {
        flex-basis: 120px;
        grid-template-columns: 42px minmax(0, 1fr);
        min-height: 60px;
        padding: 4px;
    }

    .gvr-sphere-scene-button img {
        width: 42px;
        height: 50px;
    }

    .gvr-sphere-canvas-badge {
        top: 8px;
    }

    .gvr-sphere-drag-guide {
        bottom: 8px;
    }

    .gvr-sphere-help > div {
        max-height: calc(100dvh - 20px);
        padding: 18px;
    }
}

body.gvr-expanded-mode {
    overflow: hidden !important;
    background: #0e0e0e;
}

body.gvr-expanded-mode header,
body.gvr-expanded-mode footer,
body.gvr-expanded-mode .gvr-page,
body.gvr-expanded-mode .gvr-viewer,
body.gvr-expanded-mode .premium-fixed-call {
    display: none !important;
}

body.gvr-expanded-mode .gvr-sphere-viewer__close {
    display: none !important;
}

body.gvr-expanded-mode #gvr-sphere-fullscreen {
    display: inline-flex !important;
}

body.gvr-expanded-mode:not(.gvr-embed-mode) .gvr-sphere-panorama {
    touch-action: none !important;
}

body.gvr-embed-mode .gvr-sphere-panorama {
    touch-action: pan-y !important;
}

body.gvr-embed-mode .gvr-sphere-viewer:fullscreen .gvr-sphere-panorama {
    touch-action: none !important;
}
