/* ── Local Font Faces ── */
@font-face {
    font-family: "Chakra Petch";
    src: url("../fonts/Chakra_Petch/ChakraPetch-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Chakra Petch";
    src: url("../fonts/Chakra_Petch/ChakraPetch-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Chakra Petch";
    src: url("../fonts/Chakra_Petch/ChakraPetch-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Chakra Petch";
    src: url("../fonts/Chakra_Petch/ChakraPetch-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ══════════════════════════════════
   RESET & BASE
   ══════════════════════════════════ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background-color: #000000;
    z-index: 9999;
    font-family: "Chakra Petch", sans-serif;
    color: #ffffff;
    overflow: hidden;
    pointer-events: auto;
    visibility: visible;
    transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 2.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear;
}

.preloader.curtain-opening {
    opacity: 0 !important;
    filter: blur(30px) !important;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 2.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 2.2s !important;
}

/* ── Reset: kill ALL transitions, hide rails + panels instantly ── */
.preloader.curtain-reset .curtain-panel,
.preloader.curtain-reset .rail--left,
.preloader.curtain-reset .rail--right {
    transition: none !important;
    opacity: 0 !important;
}

/* ── Fade out HUD elements when curtain is closing/opening ── */
.preloader.curtain-closing #signal-panel,
.preloader.curtain-closing #coords-panel,
.preloader.curtain-closing #progress-section,
.preloader.curtain-closing #bottom-section,
.preloader.curtain-opening #signal-panel,
.preloader.curtain-opening #coords-panel,
.preloader.curtain-opening #progress-section,
.preloader.curtain-opening #bottom-section {
    opacity: 0 !important;
    filter: blur(8px) !important;
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), filter 1.0s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none;
}

/* ── Reopening/Reverse states for curtain panels & rails ── */
.preloader.curtain-opening .curtain-panel--left {
    width: 3.13%;
    transition: width 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader.curtain-opening .curtain-panel--right {
    width: 4.03%;
    transition: width 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader.curtain-opening .curtain-panel--left::after,
.preloader.curtain-opening .curtain-panel--right::after {
    opacity: 0;
    transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader.curtain-opening .rail--left {
    left: 3.13%;
    transition: left 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader.curtain-opening .rail--right {
    right: 4.03%;
    transition: right 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive overrides for rails in curtain-opening state */
@media (max-width: 480px) {
    .preloader.curtain-opening .rail--left { left: 3%; }
    .preloader.curtain-opening .rail--right { right: 3%; }
    .preloader.curtain-opening .curtain-panel--left { width: 3%; }
    .preloader.curtain-opening .curtain-panel--right { width: 3%; }
}
@media (min-width: 481px) and (max-width: 600px) {
    .preloader.curtain-opening .rail--left { left: 2.5%; }
    .preloader.curtain-opening .rail--right { right: 2.5%; }
    .preloader.curtain-opening .curtain-panel--left { width: 2.5%; }
    .preloader.curtain-opening .curtain-panel--right { width: 2.5%; }
}
@media (min-width: 601px) and (max-width: 1024px) {
    .preloader.curtain-opening .rail--left { left: 1.8%; }
    .preloader.curtain-opening .rail--right { right: 1.8%; }
    .preloader.curtain-opening .curtain-panel--left { width: 1.8%; }
    .preloader.curtain-opening .curtain-panel--right { width: 1.8%; }
}

.preloader.curtain-opening .rail {
    opacity: 0 !important;
    transition: opacity 2.5s cubic-bezier(0.32, 0, 0.67, 0),
                left 2.5s cubic-bezier(0.16, 1, 0.3, 1),
                right 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════
   VERTICAL RAIL LINES (flex-based)
   ══════════════════════════════════ */
.rail {
    position: absolute;
    z-index: 10;
    width: 33px;
    top: 6%;
    bottom: 6%;
    display: flex;
    flex-direction: column;
    opacity: 0.5;
}
.rail--left {
    left: 3.13%;
}
.rail--right {
    right: 4.03%;
}

/* Custom rail background silhouette to match rail_design.svg cuts */
.rail-bg {
    fill: #000000;
    pointer-events: none;
    transition: fill 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader.curtain-opening .rail-bg {
    fill: transparent !important;
}

.rail-middle::after {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    background: #000000;
    pointer-events: none;
    z-index: -1;
    transition: background 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.preloader.curtain-opening .rail-middle::after {
    background: transparent !important;
}

.rail--left .rail-middle::after {
    left: 0;
    right: 3.413%; /* 100% - 96.587% */
}

.rail--right .rail-middle::after {
    left: 1.984%;
    right: 0;
}
.rail-top {
    flex-shrink: 1;
    width: 100%;
    height: clamp(80px, 30svh, 354px);
    max-height: 42%;
    display: block;
    min-height: 0;
}
.rail-bottom {
    flex-shrink: 1;
    width: 100%;
    height: clamp(80px, 30svh, 354px);
    max-height: 42%;
    display: block;
    min-height: 0;
}
.rail-middle {
    flex: 1;
    position: relative;
    min-height: 0;
}
.rail--left .rail-middle::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: 96.587%;
    transform: translateX(-50%);
    width: 1.1px;
    background: white;
}
.rail--right .rail-middle::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: 1.984%;
    transform: translateX(-50%);
    width: 1.1px;
    background: white;
}
.rail-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: white;
    opacity: 0.8;
    transform: translate(-50%, -50%);
}
.rail--left .rail-dot {
    left: calc(50% - 2px);
}
.rail--right .rail-dot {
    left: calc(50% + 2px);
}
.rail-dot--1 {
    top: 25%;
}
.rail-dot--2 {
    top: 74%;
}
.rail-top--mobile {
    display: none !important;
}

/* ══════════════════════════════════
   SIGNAL DETECTED — top-left panel
   ══════════════════════════════════ */
.info-panel {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    filter: blur(8px);
}

.preloader.reveal-active #signal-panel {
    animation: blur-reveal 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.preloader.reveal-active #coords-panel {
    animation: blur-reveal 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    animation-delay: 0.1s;
}

@keyframes blur-reveal {
    0% {
        filter: blur(8px);
        opacity: 0;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

.info-panel--signal {
    top: 14.45%;
    left: 8.92%;
}

.bracket-slashes {
    display: flex;
    align-items: center;
    gap: 2px;
    transform: translateY(-0.5px);
}
.bracket-slashes svg {
    width: 5px;
    height: 8.5px;
    display: block;
}

.panel-label {
    font-weight: 500;
    font-size: 11px;
    line-height: 1;
    color: #ffffff;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.signal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7A2CEF;
    box-shadow: 0px 0px 72px 12px rgba(155, 93, 248, 0.7);
    flex-shrink: 0;
    animation: blink 1.5s infinite ease-in-out;
}

.signal-dot.offline {
    background: #FF3B30;
    box-shadow: 0px 0px 72px 12px rgba(255, 59, 48, 0.7);
}

@keyframes blink {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* ══════════════════════════════════
   COORDINATES — top-right panel
   ══════════════════════════════════ */
.info-panel--coords {
    top: 14.45%;
    right: 8.4%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.coords-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coords-values {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 22px;
    margin-left: 38.5px;
}

.coords-value {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 14.11px;
    color: #ffffff;
}

/* ══════════════════════════════════
   CENTER — PROGRESS SECTION
   ══════════════════════════════════ */
.progress-section {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 471px;
    max-width: 85vw;
}

.progress-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
    padding: 0 8px;
}

.progress-status {
    font-family: "Chakra Petch", monospace, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 14.11px;
    color: #ffffff;
    opacity: 0.5;
    text-transform: uppercase;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
}

.progress-status.confirmed {
    color: #7A2CEF;
    opacity: 1;
    text-shadow: 0 0 10px rgba(122, 44, 239, 0.7);
}

.progress-percent {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #ffffff;
}

/* Progress bar — uses the actual Figma SVG */
.progress-track {
    position: relative;
    width: 100%;
    height: 11px;
    overflow: visible;
}

.progress-shine {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 25%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 150px 100%;
    background-repeat: no-repeat;
    mix-blend-mode: plus-lighter;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 5;
    clip-path: polygon(3.59px 0%, 100% 0%, calc(100% - 4.28px) 100%, 0% 100%);
    will-change: background-position, width, opacity;
}

.progress-track.show-shine .progress-shine {
    opacity: 1;
    animation: shineSweep 1.6s linear infinite;
}

@keyframes shineSweep {
    0% {
        background-position: -150px 0;
    }
    100% {
        background-position: calc(100% + 150px) 0;
    }
}
.progress-track svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.progress-bars--mobile {
    display: none !important;
}

.progress-bars--desktop g path,
.progress-bars--mobile g path {
    display: none;
}

.access-granted {
    display: none;
    font-family: "Chakra Petch", monospace, sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 10px;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
}

.access-granted.confirmed {
    color: #7A2CEF;
    opacity: 1;
    text-shadow: 0 0 10px rgba(122, 44, 239, 0.7);
}

/* ══════════════════════════════════
   BOTTOM — TAGLINE, CROSSHAIR & DATE
   ══════════════════════════════════ */
.bottom-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    bottom: clamp(16px, 8svh, 120px);
}

.tagline {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 17px;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.85;

    background: -webkit-linear-gradient(125deg, #CAA9FB 0%, #CAA9FB 35%, #ffffff 50%, #CAA9FB 65%, #CAA9FB 100%);
    background: linear-gradient(125deg, #CAA9FB 0%, #CAA9FB 35%, #ffffff 50%, #CAA9FB 65%, #CAA9FB 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    animation: fluid-gradient 5s linear infinite;
}

@keyframes fluid-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: #CAA9FB;
    margin-left: 3px;
    vertical-align: middle;
    opacity: 0.8;
    animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.8; }
}

.crosshair-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 12px 0;
    width: 198px;
    height: 16px;
}
.divider-line {
    height: 1.2px;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}
.divider-line--left {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}
.divider-line--right {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}
.divider-line::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 0%;
    opacity: 1;
}
.divider-line--left::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    animation: fill-line-left 1.8s infinite ease-in-out;
}
.divider-line--right::after {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    animation: fill-line-right 1.8s infinite ease-in-out;
}

@keyframes fill-line-left {
    0% {
        width: 0%;
        opacity: 1;
    }
    30% {
        width: 100%;
        opacity: 1;
    }
    80% {
        width: 100%;
        opacity: 0;
    }
    100% {
        width: 0%;
        opacity: 0;
    }
}

@keyframes fill-line-right {
    0% {
        width: 0%;
        opacity: 1;
    }
    30% {
        width: 100%;
        opacity: 1;
    }
    80% {
        width: 100%;
        opacity: 0;
    }
    100% {
        width: 0%;
        opacity: 0;
    }
}
.crosshair-x {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: rotate-scale-x 1.8s infinite ease-in-out;
}
.crosshair-x svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes rotate-scale-x {
    0% {
        transform: rotate(45deg) scale(1);
    }
    30% {
        transform: rotate(45deg) scale(1.35);
    }
    100% {
        transform: rotate(405deg) scale(1);
    }
}

.date-text {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 17px;
    color: #ffffff;
    text-align: center;
}

/* ══════════════════════════════════
   CURTAIN CLOSE ANIMATION
   ══════════════════════════════════ */
.curtain-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #000000;
    z-index: 9;
    transition: none;
    pointer-events: none;
    overflow: visible;
}
.curtain-panel--left {
    left: 0;
    width: 3.13%;
}
.curtain-panel--right {
    right: 0;
    width: 4.03%;
}

.curtain-panel--left::after,
.curtain-panel--right::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.curtain-panel--left::after {
    left: 100%;
    background: linear-gradient(
        to right,
        #000000 0%,
        #000000 30%,
        rgba(0, 0, 0, 0.85) 55%,
        rgba(0, 0, 0, 0.5)  80%,
        transparent         100%
    );
}
.curtain-panel--right::after {
    right: 100%;
    background: linear-gradient(
        to left,
        #000000 0%,
        #000000 30%,
        rgba(0, 0, 0, 0.85) 55%,
        rgba(0, 0, 0, 0.5)  80%,
        transparent         100%
    );
}

.preloader.curtain-closing .curtain-panel {
    transition: width 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader.curtain-closing .curtain-panel--left  { width: calc(50% - 36px); }
.preloader.curtain-closing .curtain-panel--right { width: calc(50% - 36px); }

.preloader.curtain-closing .curtain-panel--left::after,
.preloader.curtain-closing .curtain-panel--right::after {
    opacity: 1;
}

.preloader.curtain-closing .curtain-panel--left {
    box-shadow:  18px 0 35px 6px rgba(0, 0, 0, 0.75);
}
.preloader.curtain-closing .curtain-panel--right {
    box-shadow: -18px 0 35px 6px rgba(0, 0, 0, 0.75);
}

.preloader.curtain-closed .curtain-panel--left  { width: calc(50% - 36px); }
.preloader.curtain-closed .curtain-panel--right { width: calc(50% - 36px); }

.preloader.curtain-closing .rail--left {
    transition: left 0.9s cubic-bezier(0.76, 0, 0.24, 1);
    left: calc(50% - 36px);
}
.preloader.curtain-closing .rail--right {
    transition: right 0.9s cubic-bezier(0.76, 0, 0.24, 1);
    right: calc(50% - 36px);
}

.preloader.curtain-closed .rail--left  { left:  calc(50% - 36px); }
.preloader.curtain-closed .rail--right { right: calc(50% - 36px); }

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (max-width: 480px)
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
    .rail {
        width: 20px;
        top: 4%;
        bottom: 3%;
    }
    .rail--left { left: 3%; }
    .rail--right { right: 3%; }
    .curtain-panel--left { width: 3%; }
    .curtain-panel--right { width: 3%; }
    .rail-top--desktop {
        display: none !important;
    }
    .rail-top--mobile {
        display: block !important;
    }
    .panel-label {
        font-size: 14px;
    }
    .coords-value {
        font-size: 13px;
    }
    .bracket-slashes svg {
        width: 6.5px;
        height: 11.5px;
    }
    .signal-dot {
        width: 7px;
        height: 7px;
    }

    .info-panel--signal {
        top: 11%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .info-panel--coords {
        top: 18%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
    }
    .coords-header {
        justify-content: center;
    }
    .coords-values {
        margin-left: 0;
        align-items: center;
    }

    .progress-section {
        width: 220px;
        max-width: 55vw;
        top: 50%;
    }
    .progress-header {
        justify-content: flex-end;
        padding: 0 9px 0 0;
        margin-bottom: 2px;
    }
    .progress-status {
        display: none;
    }
    .progress-bars--desktop {
        display: none !important;
    }
    .progress-bars--mobile {
        display: block !important;
    }
    .progress-track {
        height: 9px;
    }
    .progress-percent {
        font-size: 12px;
    }

    .access-granted {
        display: block;
        font-size: 11px;
        margin-top: 9px;
        letter-spacing: 0.12em;
        padding-left: 3px;
    }

    .bottom-section {
        bottom: clamp(12px, 5svh, 60px);
    }
    .tagline {
        font-size: 13px;
        line-height: 22px;
    }
    .crosshair-divider {
        width: 180px;
        margin: 12px 0;
    }
    .date-text {
        font-size: 14px;
    }

    .rail-top,
    .rail-bottom {
        height: clamp(80px, 38svh, 354px);
        max-height: 45%;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE — LARGE PHONES (481px – 600px)
   ══════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 600px) {
    .rail {
        width: 22px;
        top: 5%;
        bottom: 4%;
    }
    .rail--left { left: 2.5%; }
    .rail--right { right: 2.5%; }
    .rail-top--desktop {
        display: none !important;
    }
    .rail-top--mobile {
        display: block !important;
    }
    .panel-label {
        font-size: 14px;
    }
    .coords-value {
        font-size: 13px;
    }
    .bracket-slashes svg {
        width: 6.5px;
        height: 11.5px;
    }
    .signal-dot {
        width: 7px;
        height: 7px;
    }

    .info-panel--signal {
        top: 11%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .info-panel--coords {
        top: 17%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
    }
    .coords-header {
        justify-content: center;
    }
    .coords-values {
        margin-left: 0;
        align-items: center;
    }

    .progress-section {
        width: 220px;
        max-width: 55vw;
    }
    .progress-header {
        justify-content: flex-end;
        padding: 0 9px 0 0;
        margin-bottom: 2px;
    }
    .progress-status {
        display: none;
    }
    .progress-bars--desktop {
        display: none !important;
    }
    .progress-bars--mobile {
        display: block !important;
    }
    .progress-track {
        height: 9px;
    }
    .progress-percent {
        font-size: 12px;
    }
    .access-granted {
        display: block;
        font-size: 11px;
        margin-top: 9px;
        padding-left: 3px;
    }

    .bottom-section {
        bottom: clamp(12px, 6svh, 80px);
    }
    .tagline {
        font-size: 13px;
    }
    .crosshair-divider {
        width: 200px;
    }

    .rail-top,
    .rail-bottom {
        height: clamp(80px, 38svh, 354px);
        max-height: 45%;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (601px – 1024px)
   ══════════════════════════════════════════ */
@media (min-width: 601px) and (max-width: 1024px) {
    .rail {
        width: 26px;
        top: 6%;
        bottom: 5%;
    }
    .rail--left { left: 1.8%; }
    .rail--right { right: 1.8%; }
    .curtain-panel--left { width: 1.8%; }
    .curtain-panel--right { width: 1.8%; }

    .info-panel--signal {
        top: 10%;
        left: calc(6% + 4px);
    }
    .info-panel--coords {
        top: 10%;
        right: calc(6% + 4px);
    }
    .panel-label {
        font-size: 14px;
    }
    .coords-value {
        font-size: 13px;
    }
    .bracket-slashes svg {
        width: 6.5px;
        height: 11.5px;
    }
    .signal-dot {
        width: 7px;
        height: 7px;
    }

    .progress-section {
        width: 400px;
    }

    .bottom-section {
        bottom: clamp(12px, 7svh, 100px);
    }

    .rail-top,
    .rail-bottom {
        height: clamp(80px, 38svh, 354px);
        max-height: 45%;
    }
}

/* ══════════════════════════════════════════
   SHORT SCREENS — landscape phones
   ══════════════════════════════════════════ */
@media (max-height: 500px) {
    .rail {
        top: 3%;
        bottom: 3%;
    }
    .rail-top,
    .rail-bottom {
        height: clamp(50px, 35svh, 150px);
        max-height: 48%;
    }
    .bottom-section {
        bottom: clamp(8px, 4svh, 40px);
    }
    .tagline {
        font-size: 10px;
        line-height: 14px;
    }
    .crosshair-divider {
        margin: 6px 0;
    }
    .date-text {
        font-size: 10px;
    }
    .info-panel--signal {
        top: 6%;
    }
    .info-panel--coords {
        top: 6%;
    }
    .progress-section {
        top: 50%;
    }
}

/* --- ACCESS GRANTED confirmation blink --- */
.progress-status.confirm-blink,
.access-granted.confirm-blink {
    color: #7A2CEF !important;
    text-shadow: 0 0 10px rgba(122, 44, 239, 0.9), 0 0 20px rgba(122, 44, 239, 0.4) !important;
    animation: confirmBlinkAnim 0.8s ease-in-out forwards !important;
}

@keyframes confirmBlinkAnim {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    30% {
        opacity: 0;
    }
    45% {
        opacity: 1;
    }
    60% {
        opacity: 0;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}
