/* =====================================================================
   peeper.css — the look of sky/peeper.js.
   (it used to be written inside the script, as strings; same rules, now here)
   ===================================================================== */

.peep-spots {
    position: absolute;
    left: -6%;
    bottom: -12px;
    width: 112%;
    height: calc(100% + 12px);
    pointer-events: none;
    visibility: hidden;
}
body.peep-view .peep-spots {
    visibility: visible;
}
.peep-spot {
    position: absolute;
    padding: 0;
    border: 0;
    border-radius: 1px;
    cursor: zoom-in;
    pointer-events: auto;
    background: #ffe7a8;
    box-shadow: 0 0 4px 1px rgba(255, 214, 130, .95), 0 0 10px 3px rgba(255, 190, 90, .55);
    animation: peep-glow 2.6s ease-in-out infinite alternate;
}
.peep-spot:hover,
.peep-spot:focus-visible {
    background: #fff6dc;
    outline: none;
    box-shadow: 0 0 5px 2px rgba(255, 236, 180, 1), 0 0 16px 6px rgba(255, 200, 110, .8);
    animation: none;
}
@keyframes peep-glow {
    from {
        opacity: .72;
    }
    to {
        opacity: 1;
    }
}
.ground-city.peep-drag {
    transition: none !important;
}
body.peep-view .ground-city {
    transform-origin: 50% 100%;
}
body.peep-view .scope-lens,
body.peep-close .scope-lens {
    opacity: 1;
    visibility: visible;
    transition: opacity .8s ease .15s;
}
body.peep-view .scene-character,
body.peep-view .ui-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
body.peep-view .signpost,
body.peep-close .signpost {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s, visibility 0s .4s;
}
body.peep-view {
    cursor: crosshair;
}
body.peep-view.peep-pushing {
    cursor: move;
}
/* on a touch screen the whole view belongs to your finger while you look: no page scroll, no zoom */
html.peep-touch,
html.peep-touch body,
html.peep-touch body * {
    touch-action: none !important;
    overscroll-behavior: none;
}
@media (hover: none),
(pointer: coarse) {
    body.peep-view {
        cursor: grab;
    }
    body.peep-view.peep-dragging {
        cursor: grabbing;
    }
}
/* things drawn on the telescope's glass */
.peep-ui {
    position: fixed;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility 0s .4s;
    font-family: "IM Fell English", Georgia, serif;
}
body.peep-view .peep-ui,
body.peep-close .peep-ui {
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease .7s;
}
body.peep-close .peep-ui .pu-note {
    opacity: 0;
}
body.sky-view .peep-ui {
    opacity: 0 !important;
    visibility: hidden !important;
}
.peep-ui button {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
    font: italic 1rem "IM Fell English", Georgia, serif;
}
.peep-ui .pu-leave {
    position: absolute;
    left: 18px;
    top: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    background: rgba(40, 28, 18, .8);
    color: #f3e6c2;
}
.peep-ui .pu-leave:hover {
    background: rgba(40, 28, 18, .95);
}
.peep-ui .pu-up {
    position: absolute;
    left: 50%;
    top: calc(48% - min(45vh, 46vw) + 84px);
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(234, 220, 185, .9);
    color: #3a2716;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.peep-ui .pu-up:hover {
    background: #eadcb9;
}
.peep-ui .pu-note {
    position: absolute;
    left: 50%;
    top: calc(48% + min(45vh, 46vw) - 74px);
    transform: translateX(-50%);
    max-width: min(80vw, 60vh);
    text-align: center;
    font-style: italic;
    color: #fff6dc;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
    font-size: 1.05rem;
}
/* a window, up close */
.peep-scene {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity .5s, visibility 0s .5s;
    font-family: "IM Fell English", Georgia, serif;
}
body.peep-close .peep-scene {
    visibility: visible;
    opacity: 1;
    transition: opacity .6s ease .35s;
}
.ps-frame {
    position: relative;
    width: calc(min(45vh, 46vw) * 1.5);
    height: calc(min(45vh, 46vw) * 1.18);
    margin-top: -4vh;
    pointer-events: auto;
    border: 14px solid #2a1d14;
    background: #1b140e;
    box-shadow: 0 0 0 3px #4a3322, 0 0 60px 10px rgba(255, 190, 100, .35);
}
.ps-frame::after {
    content: "";
    position: absolute;
    left: -26px;
    right: -26px;
    bottom: -32px;
    height: 16px;
    background: #2a1d14;
    box-shadow: 0 6px 8px rgba(0, 0, 0, .5);
}
.ps-view {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #f0e2c0;
}
.ps-view>img,
.ps-view>video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ps-view>div {
    padding: 6% 8%;
    color: #3a2716;
    overflow: auto;
    max-height: 100%;
}
.ps-curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 52%;
    z-index: 2;
    transition: transform 1s cubic-bezier(.5, 0, .2, 1);
    background: repeating-linear-gradient(90deg, #7a2a1c 0 10px, #6a2216 10px 18px, #8a3322 18px 26px);
    box-shadow: inset 0 -30px 40px rgba(0, 0, 0, .35);
}
.ps-curtain.l {
    left: 0;
    transform-origin: 0 0;
}
.ps-curtain.r {
    right: 0;
    transform-origin: 100% 0;
}
.peep-scene.drawn .ps-curtain.l,
.peep-scene.drawn .ps-curtain.r {
    transform: scaleX(.16);
}
body.peep-close .pu-up {
    display: none;
}
body.peep-close .scene-character,
body.peep-close .ui-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.ps-title {
    position: absolute;
    left: 50%;
    top: calc(100% + 30px);
    transform: translateX(-50%) rotate(-1deg);
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 14px;
    background: #eadcb9;
    color: #3a2716;
    font-style: italic;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .4);
}
.ps-title small {
    color: #6e5236;
}
/* skizy's window: on the skyline, and up close with its boards */
.peep-spot.skizy {
    background: #4a3526;
    box-shadow: 0 0 3px 1px rgba(255, 170, 90, .45);
    animation: skizy-flick 3.4s ease-in-out infinite;
}
.peep-spot.skizy:hover,
.peep-spot.skizy:focus-visible {
    background: #6b4b34;
    box-shadow: 0 0 5px 2px rgba(255, 180, 100, .8);
}
@keyframes skizy-flick {
    0%,
    100% {
        opacity: .75;
    }
    45% {
        opacity: 1;
    }
    50% {
        opacity: .55;
    }
}
body.city-aim,
body.city-aim * {
    cursor: var(--cursor-look, zoom-in) !important;
}
.skizy-planks {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
}
.skizy-board {
    position: absolute;
    left: -5%;
    width: 110%;
    height: 17%;
    transform-origin: 50% 50%;
    transition: transform .25s;
    background: repeating-linear-gradient(90deg, #6b4a32 0 3px, #5c3f2b 3px 11px, #735037 11px 14px, #5a3d29 14px 22px);
    border-radius: 2px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.skizy-board>.art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.skizy-board::before,
.skizy-board::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: #9aa0a6;
    box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .4);
}
.skizy-board::before {
    left: 7%;
}
.skizy-board::after {
    right: 7%;
}
.skizy-board.has-art::before,
.skizy-board.has-art::after {
    display: none;
}
.skizy-board.shake {
    animation: board-shake .3s;
}
@keyframes board-shake {
    0%,
    100% {
        translate: 0 0;
    }
    25% {
        translate: -3px 1px;
    }
    50% {
        translate: 3px -1px;
    }
    75% {
        translate: -2px 0;
    }
}
.skizy-board.loose {
    transition: transform .3s;
}
.skizy-board.gone {
    transition: transform 1.1s cubic-bezier(.5, 0, .8, .6), opacity .6s .6s;
    opacity: 0;
    pointer-events: none;
}
.peep-scene.skizy .ps-view {
    background: #1a1418;
}
body.peep-skizy .peep-ui .pu-note {
    opacity: 1;
    transition: opacity .3s;
}
.peep-scene.skizy .ps-curtain {
    display: none;
}
.peep-scene.skizy .ps-frame {
    box-shadow: 0 0 0 3px #3a2a20, 0 0 40px 6px rgba(255, 160, 80, .18);
    border-color: #3a2a20;
}
.peep-scene.skizy.in .ps-frame {
    box-shadow: 0 0 0 3px #3a2a20, 0 0 70px 14px rgba(255, 170, 90, .4);
    transition: box-shadow 1.5s;
}
.peep-scene.skizy .ps-view>.skizy-dark {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 1;
    transition: opacity 1.2s ease-out;
    pointer-events: none;
}
.peep-scene.skizy.in .ps-view>.skizy-dark {
    opacity: 0;
}
.peep-scene.skizy .ps-view>svg {
    width: 100%;
    height: 100%;
    display: block;
}
.peep-scene.skizy.void .ps-view>.skizy-dark {
    opacity: 1 !important;
    transition: opacity .3s;
}
/* her room (schizophyllu.me.room/, skizy's own): live through the glass once the boards are off */
.ps-view>.skizy-live {
    position: absolute;
    inset: 0;
    padding: 0;
    overflow: hidden;
    max-height: none;
    background: #07080d;
    cursor: pointer;
}
.skizy-live iframe {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1600px;
    height: 900px;
    border: 0;
    pointer-events: none;
    transform-origin: 50% 50%;
}
.skizy-climb {
    position: absolute;
    left: 50%;
    bottom: 7%;
    z-index: 6;
    transform: translateX(-50%);
    padding: 7px 18px;
    border: 1px solid rgba(109, 255, 176, .55);
    border-radius: 999px;
    background: rgba(7, 8, 13, .8);
    color: #9dffc8;
    font: 1rem ui-monospace, Menlo, Consolas, monospace;
    cursor: pointer;
    opacity: 0;
    transition: opacity .8s .6s;
}
.peep-scene.skizy.in .skizy-climb {
    opacity: 1;
}
.skizy-climb:hover,
.skizy-climb:focus-visible {
    background: rgba(20, 40, 30, .9);
    outline: none;
}
.skizy-through {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #000;
    opacity: 0;
    pointer-events: all;
    transition: opacity .9s ease-in;
}
.skizy-through.on {
    opacity: 1;
}
.peep-scene.skizy.climbing .ps-frame {
    transition: transform 1.1s cubic-bezier(.6, 0, .9, .5);
    transform: scale(3.2);
}
@media (max-width: 620px) {
    .scope-lens {
        --r: min(45vh, 47vw);
    }
    body.peep-close .scope-lens {
        --r: 49vw;
    }
    .peep-ui .pu-note {
        font-size: .95rem;
    }
    .ps-frame {
        border-width: 9px;
    }
}
