/* ===== location ===============================================================
   A popup that plays a clip of the film (location-video.mp4) from 0:25, offers
   a SKIP after three seconds, stops dead on the neon speedometer at 0:59, and
   turns into a little music player whose dial swings with the beat
   (location.js). */
#location-icon-group {
    top: 347px;
    right: 152px;
}
#location-icon {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    position: absolute;
    top: 0;
    right: 26px; /* centers the 48px icon within the 100px group */
    width: 48px;
    height: auto;
    image-rendering: pixelated;
}
#location-icon-label {
    position: absolute;
    top: 50px;
    right: 0;
    width: 100px;
    text-align: center;
    font-family: 'W95FA', sans-serif;
    font-size: 13px;
    line-height: 1.2;
}
#location-icon-label a {
    color: #fff;
    text-decoration: none;
}

#location-window {
    display: none;
    width: 620px;
    max-width: calc(100vw - 16px);
    left: 30vw;
    top: 8vw;
    text-align: left;
}
#location-window:focus {
    outline: none;
}

.loc-inner {
    background: #c0c0c0;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 12px;
    color: #000;
    user-select: none;
    padding: 6px;
}
body.dark-mode .loc-inner {
    background: #b4b4b4;
}

/* Win95 bevels */
.loc-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 12px;
    border: 0;
    border-radius: 0;
    background: #c0c0c0;
    color: #000;
    font-family: 'W95FA', Tahoma, sans-serif;
    font-size: 13px;
    line-height: 1.1;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
    cursor: url('cursor-pointer.png') 8 0, pointer;
}
.loc-btn:active {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
    background: #b8b8b8;
}
.loc-btn:disabled {
    color: #808080;
    text-shadow: 1px 1px #fff;
    cursor: default;
}
.loc-btn:focus-visible {
    outline: 1px dotted #000;
    outline-offset: -5px;
}

/* ----- the picture: the film, then the dial that takes its place ----- */
.loc-stage {
    position: relative;
    aspect-ratio: 640 / 268;
    background: #000;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
    padding: 2px;
    box-sizing: border-box;
    overflow: hidden;
}
.loc-video,
.loc-canvas {
    position: absolute;
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    display: block;
    background: #000;
}
.loc-video {
    object-fit: cover;
}
.loc-canvas {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.loc-stage.is-player .loc-canvas {
    opacity: 1;
}

.loc-loading {
    position: absolute;
    inset: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9fd8ff;
    font-family: 'W95FA', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    background: #050b2a;
}
.loc-loading[hidden] {
    display: none;
}

/* SKIP waits three seconds, then fades in over the corner of the film */
.loc-skip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: 'W95FA', Tahoma, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
    cursor: url('cursor-pointer.png') 8 0, pointer;
}
.loc-skip.show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.loc-skip:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #000;
}

/* ----- the player bar, which only appears with the dial ----- */
.loc-bar {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.loc-inner.is-player .loc-bar {
    display: flex;
}
.loc-lcd {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 8px;
    background: #061a0e;
    color: #39ff7a;
    font-family: 'W95FA', monospace;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
    text-shadow: 0 0 6px rgba(57, 255, 122, 0.7);
}
.loc-play.pulse {
    animation: loc-pulse 0.9s ease-in-out infinite;
}
@keyframes loc-pulse {
    50% { background: #e8ffe8; }
}
