body {
    margin: 0;
    padding: 16px;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-family: var(--font-main);

    background:
        radial-gradient(circle at top left, rgba(155, 191, 101, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(111, 143, 69, 0.10), transparent 38%),
        linear-gradient(180deg, var(--bg-main), var(--bg-deep));

    color: var(--text-main);
}

#app {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

:root {
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "ZCOOL XiaoWei", serif;

    --route-node-size: 34px;
    --route-column-width: 44px;
    --route-line-width: 2px;

    --panda-token-nudge-x: 0px;
    --panda-token-nudge-y: 0px;

    --bg-main: #10170f;
    --bg-deep: #0b120a;
    --bg-soft: #1a2416;

    --panel: rgba(22, 34, 20, 0.94);
    --panel-soft: rgba(32, 48, 27, 0.84);
    --panel-glass: rgba(41, 59, 34, 0.58);

    --border: rgba(151, 174, 118, 0.24);
    --border-strong: rgba(176, 196, 133, 0.42);

    --accent: #9bbf65;
    --accent-strong: #c1d98a;
    --accent-dark: #6f8f45;

    --text-main: #f3f6e9;
    --text-soft: rgba(243, 246, 233, 0.76);
    --text-faint: rgba(243, 246, 233, 0.54);

    --glow: rgba(193, 217, 138, 0.28);
    --glow-strong: rgba(193, 217, 138, 0.48);
}

.logo {
    font-size: 32px;
}

h1 {
    font-size: 18px;
    margin: 0;
}

header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.7;
}

#screen {
    background: rgba(255,255,255,0.04);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

button {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: #1b3a4b;
    color: white;
    font-size: 16px;
    margin-top: 10px;
}

button:active {
    transform: scale(0.98);
    opacity: 0.8;
}

button:hover {
    background: #1fbfa9;
}

input {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: white;
}

input, textarea, select {
    font-size: 16px;
}

hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 15px 0;
}

#screen {
    transition: opacity 0.35s ease;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

.reveal-image {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    image-rendering: pixelated;
    filter: blur(10px);
    transform: scale(1.02);
    opacity: 0.75;
    transition:
        filter 5s ease,
        transform 5s ease,
        opacity 5s ease;
}

.reveal-image.loaded {
    image-rendering: auto;
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}

.decode-bar {
    height: 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0;
}

.decode-fill {
    height: 100%;
    width: 0%;
    background: #2dd4bf;
    transition: width 5s linear;
}

.decode-fill.loading {
    width: 100%;
}

.reconstruction-panel {
    margin-top: 12px;
}

.reconstruction-terminal {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    min-height: 120px;
}

.reconstruction-terminal p {
    margin: 5px 0;
}

.reconstruction-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0;
}

.reconstruction-progress-fill {
    height: 100%;
    width: 0%;
    background: #2dd4bf;
    transition: width 1s linear;
}

.reconstruction-canvas {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(45, 212, 191, 0.35);
    background: rgba(0, 0, 0, 0.4);
    margin-top: 10px;
}

.reconstruction-complete {
    border: 1px solid rgba(45, 212, 191, 0.55);
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
    background: rgba(45, 212, 191, 0.08);
}

.route-map {
    position: relative;
    margin: 18px 0;
    padding: 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(45, 212, 191, 0.25);
    overflow: hidden;
}

.route-node {
    position: relative;
    display: grid;
    grid-template-columns: var(--route-column-width) 1fr;
    gap: 10px;
    padding: 12px 0;
}

.route-node:not(:last-child)::after {
    content: "";
    position: absolute;

    left: calc(
        (var(--route-node-size) / 2) -
        (var(--route-line-width) / 2)
    );

    top: calc(var(--route-node-size) + 12px);

    width: var(--route-line-width);
    height: calc(100% - var(--route-node-size) + 2px);

    background: rgba(45, 212, 191, 0.22);
}

.route-dot {
    width: var(--route-node-size);
    height: var(--route-node-size);
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
}

.route-node.complete .route-dot {
    background: rgba(45, 212, 191, 0.22);
    border-color: rgba(45, 212, 191, 0.65);
}

.route-node.active .route-dot {
    background: rgba(45, 212, 191, 0.3);
    border-color: #2dd4bf;
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.45);
}

.route-node.locked {
    opacity: 0.45;
}

.route-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.route-status {
    font-size: 13px;
    opacity: 0.78;
    line-height: 1.35;
}

.route-markers {
    margin-top: 8px;
}

.player-marker {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.travel-note {
    font-size: 13px;
    opacity: 0.78;
    line-height: 1.4;
}

.route-panda-token {
    position: absolute;
    left: 0;
    top: 0;

    width: var(--route-node-size);
    height: var(--route-node-size);
    box-sizing: border-box;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
    line-height: 1;

    transform: translate(-50%, -50%);
    transform-origin: center center;

    opacity: 1;
    z-index: 7;

    transition:
        left 7s linear,
        top 7s linear;
}

.route-panda-token::before {
    content: "";
    position: absolute;

    left: 50%;
    top: 50%;

    width: var(--route-node-size);
    height: var(--route-node-size);
    box-sizing: border-box;

    border-radius: 50%;
    background: rgba(45, 212, 191, 0.2);
    border: 1px solid rgba(45, 212, 191, 0.6);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.45);

    transform: translate(-50%, -50%);
    z-index: -1;
}

.route-panda-token.arrived::before {
    animation: pandaRingPulse 1.8s ease-in-out infinite;
}

@keyframes pandaRingPulse {
    0%, 100% {
        width: var(--route-node-size);
        height: var(--route-node-size);
        box-shadow: 0 0 12px rgba(45, 212, 191, 0.45);
    }

    50% {
        width: calc(var(--route-node-size) + 6px);
        height: calc(var(--route-node-size) + 6px);
        box-shadow: 0 0 18px rgba(45, 212, 191, 0.75);
    }
}

.route-node:not(:last-child)::after {
    content: "";
    position: absolute;

    left: calc(var(--route-node-size) / 2);
    transform: translateX(-50%);

    top: calc(var(--route-node-size) + 12px);

    width: var(--route-line-width);
    height: calc(100% - var(--route-node-size) + 2px);

    background: rgba(45, 212, 191, 0.22);
}

.route-node.active:not(:last-child)::after {
    background: rgba(45, 212, 191, 0.18);
}

@keyframes routeGlow {
    0%, 100% {
        box-shadow: 0 0 6px rgba(45, 212, 191, 0.35);
    }

    50% {
        box-shadow: 0 0 16px rgba(45, 212, 191, 0.85);
    }
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

button:disabled:active {
    transform: none;
}

.fullscreen-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;
    background: rgba(0, 0, 0, 0.86);
}

.fullscreen-viewer img {
    max-width: 100%;
    max-height: 86vh;

    border-radius: 16px;
    object-fit: contain;
}

.fullscreen-close {
    position: fixed;
    top: 16px;
    right: 16px;

    width: auto;
    padding: 8px 12px;

    border-radius: 999px;
    z-index: 10001;
}

.fullscreen-image-shell {
    position: relative;
    width: 100%;
    max-width: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image-shell img {
    max-width: 100%;
    max-height: 86vh;

    border-radius: 16px;
    object-fit: contain;
}

.fullscreen-image-shell.has-multiple-images img {
    max-height: 78vh;
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;
    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: 1px solid rgba(193, 217, 138, 0.45);
    background: rgba(0, 0, 0, 0.58);
    color: var(--accent-strong);

    font-size: 34px;
    line-height: 1;
    z-index: 10002;
}

.fullscreen-prev {
    left: 8px;
}

.fullscreen-next {
    right: 8px;
}

.fullscreen-counter {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);

    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(193, 217, 138, 0.38);

    background: rgba(0, 0, 0, 0.66);
    color: var(--accent-strong);

    font-family: monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.fullscreen-swipe-hint {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: max-content;
    max-width: calc(100vw - 42px);
    margin: 0;
    padding: 6px 10px;

    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: rgba(243, 246, 233, 0.82);

    font-size: 12px;
    text-align: center;
}

@media (max-width: 520px) {
    .fullscreen-nav {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .fullscreen-prev {
        left: -4px;
    }

    .fullscreen-next {
        right: -4px;
    }
}

.tap-hint {
    font-size: 12px;
    opacity: 0.65;
    margin-top: 6px;
    text-align: center;
}

.pbls-website {
    text-align: center;
}

.pbls-site-badge {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 12px;

    border: 1px solid rgba(45, 212, 191, 0.5);
    border-radius: 999px;

    color: #5eead4;
    font-size: 12px;
    letter-spacing: 2px;
}

.pbls-tagline {
    opacity: 0.75;
    margin-bottom: 20px;
}

.pbls-hero-card,
.briefing-card,
.upload-panel,
.scan-panel {
    padding: 16px;
    margin: 16px 0;

    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(45, 212, 191, 0.25);
}

.pbls-info-grid {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    text-align: left;
}

.pbls-info-grid div {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.pbls-info-grid p {
    margin-bottom: 0;
    font-size: 13px;
    opacity: 0.75;
}

.upload-box {
    display: block;
    padding: 22px;
    margin-bottom: 14px;

    border: 2px dashed rgba(45, 212, 191, 0.5);
    border-radius: 14px;

    text-align: center;
    cursor: pointer;
}

.upload-box span {
    display: block;
    font-weight: bold;
}

.upload-box small {
    display: block;
    margin-top: 6px;
    opacity: 0.65;
}

.uploaded-preview {
    margin-top: 12px;
    text-align: center;
}

.uploaded-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;

    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.uploaded-preview p {
    font-size: 13px;
    opacity: 0.75;
}

.form-label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 13px;
    opacity: 0.8;
}

.briefing-list {
    padding-left: 20px;
}

.briefing-list li {
    margin-bottom: 10px;
}

.scan-globe {
    font-size: 54px;
    text-align: center;
    margin-bottom: 14px;
    animation: globePulse 2s ease-in-out infinite;
}

.terminal-log {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes globePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.search-visuals {
    display: grid;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.reference-scan-card {
    padding: 12px;

    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(45, 212, 191, 0.25);

    text-align: center;
}

.scan-label {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #5eead4;
    opacity: 0.9;
}

.scan-image-wrap {
    position: relative;
    overflow: hidden;

    max-width: 220px;
    margin: 0 auto;

    border-radius: 12px;
    border: 1px solid rgba(45, 212, 191, 0.35);
}

.scan-reference-image {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: cover;

    filter: contrast(1.08) saturate(0.9);
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    top: -20%;

    height: 20%;

    background: linear-gradient(
        to bottom,
        rgba(45, 212, 191, 0),
        rgba(45, 212, 191, 0.7),
        rgba(45, 212, 191, 0)
    );

    animation: scanLineMove 2.2s linear infinite;
}

.scan-status {
    margin: 10px 0 0;
    font-size: 12px;
    opacity: 0.75;
}

@keyframes scanLineMove {
    0% {
        top: -20%;
    }

    100% {
        top: 100%;
    }
}

.satellite-sequence {
    margin-top: 16px;
}

.satellite-frame {
    position: relative;
    overflow: hidden;

    width: 100%;
    max-width: 100%;

    border-radius: 16px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    background: rgba(0, 0, 0, 0.2);

    margin-bottom: 14px;
}

.satellite-image {
    display: block;

    width: 100%;
    height: 210px;

    object-fit: cover;
    object-position: center;

    transition: opacity 0.6s ease;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

.satellite-image {
    position: relative;
    z-index: 1;
}

.satellite-frame::before,
.satellite-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
}

.satellite-frame::before {
    background:
        radial-gradient(circle at var(--zoom-x, 50%) var(--zoom-y, 50%), rgba(193, 217, 138, 0.18), transparent 22%),
        radial-gradient(circle at var(--zoom-x, 50%) var(--zoom-y, 50%), transparent 0 24%, rgba(0, 0, 0, 0.48) 74%);
}

.satellite-frame::after {
    background:
        linear-gradient(rgba(193, 217, 138, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(193, 217, 138, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, transparent, rgba(193, 217, 138, 0.16), transparent);
    background-size: 100% 7px, 18px 100%, 100% 100%;
    mix-blend-mode: screen;
}

.satellite-frame.satellite-dive-active::before {
    animation: satelliteDiveVignette 2.1s ease-in-out forwards;
}

.satellite-frame.satellite-layer-syncing::after {
    animation: satelliteLayerSync 1.05s ease-in-out forwards;
}

.satellite-image.satellite-zoom-morph,
.satellite-image.satellite-dive-in {
    transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
    animation: satelliteDiveIn 1.45s cubic-bezier(0.22, 0.75, 0.18, 1) forwards;
}

.satellite-image.satellite-image-reveal,
.satellite-image.satellite-layer-stabilise {
    transform-origin: center center;
    animation: satelliteLayerStabilise 0.76s ease-out forwards;
}

@keyframes satelliteDiveIn {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1) contrast(1) blur(0);
    }

    62% {
        transform: scale(1.42);
        opacity: 1;
        filter: brightness(1.12) contrast(1.08) blur(0.3px);
    }

    100% {
        transform: scale(1.78);
        opacity: 0.16;
        filter: brightness(1.28) contrast(1.12) blur(2.2px);
    }
}

@keyframes satelliteLayerStabilise {
    0% {
        transform: scale(1.045);
        opacity: 0.54;
        filter: brightness(1.22) contrast(1.12) blur(1.2px);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1) contrast(1) blur(0);
    }
}

@keyframes satelliteDiveVignette {
    0% {
        opacity: 0;
    }

    38% {
        opacity: 0.68;
    }

    100% {
        opacity: 0.12;
    }
}

@keyframes satelliteLayerSync {
    0% {
        opacity: 0;
        transform: translateY(-8%);
    }

    32% {
        opacity: 0.82;
    }

    100% {
        opacity: 0;
        transform: translateY(8%);
    }
}

.tracking-box {
    position: absolute;

    width: 70px;
    height: 70px;

    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    border: 2px solid #5eead4;
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.8);
    border-radius: 6px;

    z-index: 5;

    animation: targetPulse 1.3s ease-in-out infinite;
}

.tracking-box.satellite-lock {
    animation: satelliteTargetLock 0.62s ease-in-out 2;
}

.tracking-box.satellite-reacquire {
    animation: satelliteTargetReacquire 0.76s ease-out 1;
}

.tracking-box::before,
.tracking-box::after {
    content: "";
    position: absolute;
    background: #5eead4;
}

.tracking-box::before {
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
}

.tracking-box::after {
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
}

.scan-earth {
    animation: earthScan 2.4s linear forwards;
}

.satellite-status {
    min-height: 120px;
}

@keyframes earthScan {
    0% {
        left: 10%;
        top: 18%;
        transform: translate(-50%, -50%);
    }

    25% {
        left: 75%;
        top: 22%;
        transform: translate(-50%, -50%);
    }

    50% {
        left: 30%;
        top: 55%;
        transform: translate(-50%, -50%);
    }

    75% {
        left: 68%;
        top: 68%;
        transform: translate(-50%, -50%);
    }

    100% {
        left: 30.3%;
        top: 44.2%;
        transform: translate(-50%, -50%);
    }
}

@keyframes targetPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(94, 234, 212, 0.6);
    }

    50% {
        box-shadow: 0 0 22px rgba(94, 234, 212, 1);
    }
}

@keyframes satelliteTargetLock {
    0%, 100% {
        box-shadow: 0 0 12px rgba(94, 234, 212, 0.8);
        border-color: #5eead4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        box-shadow: 0 0 28px rgba(193, 217, 138, 0.95);
        border-color: var(--accent-strong);
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes satelliteTargetReacquire {
    0% {
        opacity: 0.42;
        box-shadow: 0 0 6px rgba(94, 234, 212, 0.3);
        transform: translate(-50%, -50%) scale(0.92);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(94, 234, 212, 0.8);
        transform: translate(-50%, -50%) scale(1);
    }
}

.tuner-frame {
    cursor: crosshair;
}

.tuner-marker {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: targetPulse 1.1s ease-in-out infinite;
    pointer-events: none;
}

.tuner-output {
    margin-top: 14px;
    padding: 12px;

    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(45, 212, 191, 0.25);
}

.tuner-output pre {
    white-space: pre-wrap;
    word-break: break-word;

    padding: 10px;
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.3);
    font-size: 12px;
}

.corp-header {
    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 14px;
    margin: -4px -4px 18px;

    border-radius: 18px;
    background: rgba(4, 13, 24, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.corp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.corp-logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(14, 165, 233, 0.12)),
        rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(94, 234, 212, 0.32);
    color: #99f6e4;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.corp-brand-title {
    font-weight: 800;
    letter-spacing: -0.2px;
}

.corp-brand-subtitle {
    margin-top: 2px;
    font-size: 12px;
    opacity: 0.62;
}

.corp-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.corp-nav a {
    flex: 0 0 auto;

    padding: 8px 11px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);

    color: rgba(229, 247, 245, 0.82);
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}

.corp-nav a.corp-nav-cta {
    color: #06111d;
    background: #5eead4;
    border-color: #5eead4;
    font-weight: 800;
}

.corp-hero {
    display: grid;
    gap: 16px;

    padding: 18px;
    margin-bottom: 14px;

    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 0%, rgba(94, 234, 212, 0.18), transparent 35%),
        radial-gradient(circle at 90% 15%, rgba(56, 189, 248, 0.14), transparent 40%),
        rgba(5, 15, 27, 0.82);

    border: 1px solid rgba(94, 234, 212, 0.2);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.corp-eyebrow {
    margin: 0 0 8px;

    color: #5eead4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.corp-hero h1 {
    margin: 0 0 12px;

    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -1.4px;
}

.corp-hero-text {
    margin-bottom: 0;

    font-size: 15px;
    line-height: 1.55;
    color: rgba(229, 247, 245, 0.78);
}

.corp-hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.corp-primary-button,
.corp-secondary-button {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 800;
}

.corp-primary-button {
    background: #5eead4;
    color: #06111d;
    border: 1px solid #5eead4;
    box-shadow: 0 12px 28px rgba(94, 234, 212, 0.18);
}

.corp-secondary-button {
    background: rgba(255, 255, 255, 0.07);
    color: #e5f7f5;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.corp-portal-notice {
    min-height: 18px;
    margin: 12px 0 0;

    font-size: 12px;
    color: rgba(229, 247, 245, 0.64);
}

.corp-hero-image-card {
    position: relative;
    overflow: hidden;

    min-height: 260px;
    border-radius: 20px;

    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.3), rgba(15, 118, 110, 0.2));

    border: 1px solid rgba(255, 255, 255, 0.13);
}

.corp-hero-image-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;

    display: block;
    object-fit: cover;
    object-position: 65% center;

    filter: saturate(0.92) contrast(1.06);
}

.corp-live-card {
    position: absolute;
    left: 12px;
    bottom: 12px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;
    border-radius: 999px;

    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(94, 234, 212, 0.28);
    backdrop-filter: blur(10px);

    font-size: 12px;
}

.corp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;

    background: #5eead4;
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.9);

    animation: corpPulse 1.8s ease-in-out infinite;
}

.corp-trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    margin: 14px 0 22px;
}

.corp-trust-bar div {
    padding: 14px;

    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.085);
}

.corp-trust-bar strong {
    display: block;

    color: #99f6e4;
    font-size: 24px;
    line-height: 1;
}

.corp-trust-bar span {
    display: block;
    margin-top: 6px;

    font-size: 12px;
    color: rgba(229, 247, 245, 0.62);
}

.corp-section,
.corp-process-section {
    margin-top: 24px;
}

.corp-section-heading {
    margin-bottom: 13px;
}

.corp-section-heading h2 {
    margin: 0;

    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -0.8px;
}

.corp-card-grid {
    display: grid;
    gap: 13px;
}

.corp-info-card {
    overflow: hidden;

    border-radius: 20px;
    background: rgba(5, 15, 27, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.corp-info-card img {
    width: 100%;
    height: 150px;

    display: block;
    object-fit: cover;
}

.corp-info-card div {
    padding: 15px;
}

.corp-info-card h3 {
    margin: 0 0 7px;
}

.corp-info-card p {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
    color: rgba(229, 247, 245, 0.68);
}

.corp-process-grid {
    display: grid;
    gap: 10px;
}

.corp-process-grid div {
    padding: 15px;

    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(94, 234, 212, 0.08), transparent),
        rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(94, 234, 212, 0.16);
}

.corp-process-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    margin-bottom: 10px;

    border-radius: 50%;
    background: rgba(94, 234, 212, 0.12);
    color: #99f6e4;

    font-size: 12px;
    font-weight: 800;
}

.corp-process-grid h3 {
    margin: 0 0 6px;
}

.corp-process-grid p {
    margin: 0;

    font-size: 13px;
    line-height: 1.45;
    color: rgba(229, 247, 245, 0.68);
}

.corp-case-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;

    margin-top: 24px;
    padding: 18px;

    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(94, 234, 212, 0.14), transparent 40%),
        rgba(4, 13, 24, 0.78);

    border: 1px solid rgba(94, 234, 212, 0.2);
}

.corp-case-panel h2 {
    margin: 0 0 8px;
}

.corp-case-panel p {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
    color: rgba(229, 247, 245, 0.68);
}

.corp-case-status {
    width: 78px;
    height: 78px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: 1px solid rgba(94, 234, 212, 0.45);
    box-shadow: 0 0 25px rgba(94, 234, 212, 0.14);
}

.corp-case-status span {
    font-size: 10px;
    opacity: 0.58;
}

.corp-case-status strong {
    color: #5eead4;
    font-size: 15px;
}

.corp-news-section {
    display: grid;
    gap: 10px;

    margin-top: 16px;
}

.corp-mini-news {
    padding: 14px;

    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.corp-mini-news strong {
    display: block;
    margin-bottom: 5px;
}

.corp-mini-news p {
    margin: 0;

    font-size: 13px;
    line-height: 1.45;
    color: rgba(229, 247, 245, 0.64);
}

.corp-footer {
    display: grid;
    gap: 12px;

    margin-top: 24px;
    padding: 18px 4px 6px;

    border-top: 1px solid rgba(255, 255, 255, 0.09);

    color: rgba(229, 247, 245, 0.58);
    font-size: 12px;
}

.corp-footer p {
    margin: 4px 0 0;
}

.corp-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.corp-footer-links a {
    color: rgba(229, 247, 245, 0.72);
    text-decoration: none;
}

@keyframes corpPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

@media (min-width: 720px) {
    .corp-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .corp-hero {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
    }

    .corp-hero-actions {
        grid-template-columns: auto auto;
        justify-content: start;
    }

    .corp-primary-button,
    .corp-secondary-button {
        width: auto;
        padding-left: 22px;
        padding-right: 22px;
    }

    .corp-trust-bar {
        grid-template-columns: repeat(4, 1fr);
    }

    .corp-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .corp-process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .corp-news-section {
        grid-template-columns: 1fr 1fr;
    }

    .corp-footer {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.route-window-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 12px 0 8px;
    padding: 9px 11px;

    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.18);

    font-size: 12px;
}

.route-window-summary span {
    opacity: 0.75;
}

.route-window-summary strong {
    color: #5eead4;
}

.route-hidden-note {
    margin: 8px 0;
    text-align: center;

    font-size: 12px;
    opacity: 0.55;
}

.help-button {
    position: fixed;
    right: 16px;
    bottom: 16px;

    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: 1px solid rgba(94, 234, 212, 0.55);

    background: rgba(4, 13, 24, 0.9);
    color: #5eead4;

    font-size: 22px;
    font-weight: bold;

    z-index: 9000;

    box-shadow: 0 0 18px rgba(45, 212, 191, 0.25);
}

.help-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background: rgba(0, 0, 0, 0.72);
    z-index: 9998;
}

.help-panel {
    position: relative;

    width: 100%;
    max-width: 430px;
    max-height: 86vh;
    overflow-y: auto;

    padding: 20px;

    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.13), transparent 40%),
        #06111d;

    border: 1px solid rgba(94, 234, 212, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.help-close {
    position: absolute;
    right: 14px;
    top: 14px;

    width: auto;
    padding: 7px 11px;

    border-radius: 999px;

    font-size: 12px;
}

.help-kicker {
    margin: 0 0 8px;

    color: #5eead4;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.help-panel h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.help-steps {
    display: grid;
    gap: 10px;
}

.help-steps div {
    padding: 13px;

    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.help-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    margin-bottom: 8px;

    border-radius: 50%;
    background: rgba(94, 234, 212, 0.12);
    color: #5eead4;

    font-size: 11px;
    font-weight: bold;
}

.help-steps strong {
    display: block;
    margin-bottom: 5px;
}

.help-steps p {
    margin: 0;

    font-size: 13px;
    line-height: 1.45;
    opacity: 0.75;
}

.help-note {
    margin-top: 12px;
    padding: 12px;

    border-radius: 14px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.18);

    font-size: 13px;
    line-height: 1.45;
}

/* ===========================
   GREEN / BAMBOO PALETTE OVERRIDES
   =========================== */

button {
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    color: #102012;
    border: 1px solid var(--border-strong);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

button:hover,
button:focus {
    filter: brightness(1.04);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

input,
select {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
}

input::placeholder {
    color: var(--text-faint);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
}

.pbls-corporate-site,
.pbls-website {
    color: var(--text-main);
}

.corp-header,
.pbls-web-header,
.help-panel,
.fullscreen-viewer .fullscreen-close,
.briefing-card,
.upload-panel,
.scan-panel,
.satellite-frame,
.tuner-output,
.pbls-hero-card,
.pbls-case-file,
.corp-info-card,
.corp-mini-news,
.corp-process-grid div,
.corp-case-panel,
.route-window-summary {
    background: var(--panel);
    border-color: var(--border);
    color: var(--text-main);
}

.corp-hero {
    background:
        radial-gradient(circle at 10% 0%, rgba(139, 207, 106, 0.18), transparent 35%),
        radial-gradient(circle at 90% 15%, rgba(174, 214, 115, 0.12), transparent 42%),
        rgba(12, 22, 15, 0.90);
    border: 1px solid var(--border-strong);
}

.corp-logo,
.pbls-logo-mark {
    background:
        linear-gradient(135deg, rgba(139, 207, 106, 0.22), rgba(167, 224, 122, 0.12)),
        rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
    color: var(--accent-strong);
}

.corp-brand-subtitle,
.pbls-brand-subtitle,
.pbls-tagline,
.site-notice,
.corp-portal-notice,
.pbls-service-card p,
.corp-info-card p,
.corp-process-grid p,
.corp-mini-news p,
.help-steps p,
.help-note,
.route-hidden-note,
.tap-hint,
.form-label,
.uploaded-preview p,
.scan-status,
.route-window-summary span {
    color: var(--text-soft);
}

.corp-nav a,
.pbls-nav a,
.corp-footer-links a {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
}

.corp-nav a.corp-nav-cta,
#findMyPandaNavLink,
.primary-web-cta,
.corp-primary-button {
    background: linear-gradient(180deg, var(--accent-strong), var(--accent));
    color: #102012;
    border-color: var(--accent);
}

.secondary-web-cta,
.corp-secondary-button {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border-color: var(--border);
}

.corp-eyebrow,
.pbls-kicker,
.scan-label,
.help-kicker,
.pbls-site-badge,
.pbls-brand-name,
.corp-brand-name,
.route-window-summary strong,
.corp-trust-bar strong,
.pbls-stat-grid strong,
.corp-case-status strong {
    color: var(--accent-strong);
}

.status-dot,
.corp-live-dot {
    background: var(--accent-strong);
    box-shadow: 0 0 12px var(--glow-strong);
}

.corp-alert-strip,
.pbls-alert-strip {
    background: rgba(139, 207, 106, 0.10);
    border-color: var(--border);
    color: var(--text-main);
}

.pbls-info-grid div,
.pbls-service-card,
.corp-trust-bar div,
.help-steps div,
.route-dot,
.route-node .route-dot {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

.upload-box {
    border-color: var(--border-strong);
    background: rgba(139, 207, 106, 0.05);
}

.uploaded-preview img,
.scan-image-wrap,
.corp-hero-image-card,
.fullscreen-viewer img {
    border-color: var(--border);
}

.scan-line {
    background: linear-gradient(
        to bottom,
        rgba(139, 207, 106, 0),
        rgba(139, 207, 106, 0.75),
        rgba(139, 207, 106, 0)
    );
}

.tracking-box {
    border-color: var(--accent-strong);
    box-shadow: 0 0 12px var(--glow-strong);
}

.tracking-box::before,
.tracking-box::after {
    background: var(--accent-strong);
}

.route-node.complete .route-dot,
.route-node.active .route-dot {
    border-color: var(--border-strong);
    box-shadow: 0 0 12px var(--glow);
}

.route-panda-token::before {
    background: rgba(139, 207, 106, 0.18);
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 12px var(--glow);
}

.help-button {
    background: rgba(11, 22, 16, 0.92);
    color: var(--accent-strong);
    border-color: var(--border-strong);
    box-shadow: 0 0 18px var(--glow);
}

.help-close,
.fullscreen-close {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.help-note,
.route-window-summary,
.pbls-case-file {
    background: rgba(139, 207, 106, 0.08);
    border-color: var(--border);
}

.tuner-output pre {
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-main);
}

.corp-footer,
.pbls-footer {
    border-top-color: var(--border);
    color: var(--text-faint);
}

* {
    box-sizing: border-box;
}

button,
.corp-primary-button,
.primary-web-cta {
    background: linear-gradient(180deg, var(--accent-strong), var(--accent-dark));
    color: #10170f;
}

button:hover,
button:focus {
    filter: brightness(1.03) saturate(0.95);
}

.tracking-box,
.route-panda-token::before,
.help-button,
.status-dot,
.corp-live-dot {
    box-shadow: 0 0 12px var(--glow);
}

.tracking-box {
    border-color: var(--accent-strong);
}

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 16px;
}

#app,
.app,
.container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

#screen,
.screen {
    width: 100%;
    max-width: 100%;
}

.pbls-corporate-site,
.pbls-website {
    width: 100%;
    max-width: 100%;
}

.corp-header,
.corp-hero,
.corp-trust-bar,
.corp-section,
.corp-process-section,
.corp-case-panel,
.corp-news-section,
.corp-footer,
.route-map,
.scan-panel,
.upload-panel,
.briefing-card,
.satellite-frame {
    width: 100%;
    max-width: 100%;
}

img,
canvas {
    max-width: 100%;
}

h1,
h2,
.corp-brand-title,
.corp-logo,
.pbls-brand-name,
.corp-hero h1,
.corp-section-heading h2 {
    font-family: var(--font-display);
    letter-spacing: 0.2px;
}

.upload-section-title {
    display: block;
    margin: 18px 0 10px;

    font-size: 1.5em;
    line-height: 1.2;
    font-weight: 700;

    color: var(--text-main);
}

.panda-confirm-panel {
    margin-top: 12px;
    padding: 14px;

    border-radius: 16px;
    background: rgba(155, 191, 101, 0.08);
    border: 1px solid var(--border);
}

.panda-confirm-panel h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.panda-confirm-panel p {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-soft);
}

.hidden {
    display: none !important;
}

/* CLEAN PBLS HOMEPAGE LAYOUT FIX */

.pbls-corporate-site {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.pbls-corporate-site * {
    min-width: 0;
}

/* Give the corporate homepage slightly more breathing room inside the app shell */
#screen:has(.pbls-corporate-site) {
    padding: 14px;
}

/* Hero area */
.corp-hero {
    padding: 15px;
    border-radius: 20px;
}

.corp-hero h1 {
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.04;
    letter-spacing: -0.8px;
}

.corp-hero-text {
    font-size: 14px;
    line-height: 1.45;
}

.corp-hero-image-card {
    min-height: 230px;
}

.corp-hero-image-card img {
    min-height: 230px;
    object-position: 58% center;
}

/* Small live badge on hero image */
.corp-live-card {
    left: 10px;
    bottom: 10px;

    max-width: calc(100% - 20px);
    padding: 7px 10px;

    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.corp-live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
}

/* Trust/stat cards */
.corp-trust-bar {
    gap: 9px;
}

.corp-trust-bar div {
    padding: 12px;
    border-radius: 15px;
}

.corp-trust-bar strong {
    font-size: 20px;
}

.corp-trust-bar span {
    font-size: 11px;
    line-height: 1.2;
}

/* Recovery system cards */
.corp-card-grid {
    gap: 11px;
}

.corp-info-card {
    border-radius: 17px;
}

.corp-info-card img {
    height: 125px;
}

.corp-info-card div {
    padding: 13px;
}

.corp-info-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.15;
}

.corp-info-card p {
    font-size: 12.5px;
    line-height: 1.42;
}

/* Process cards */
.corp-process-grid {
    gap: 9px;
}

.corp-process-grid div {
    padding: 13px;
    border-radius: 16px;
}

.corp-process-grid h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.15;
}

.corp-process-grid p {
    font-size: 12.5px;
    line-height: 1.4;
}

/* Case panel */
.corp-case-panel {
    grid-template-columns: 1fr;
    padding: 15px;
}

.corp-case-panel h2 {
    font-size: 21px;
    line-height: 1.12;
}

.corp-case-panel p {
    font-size: 12.5px;
    line-height: 1.45;
}

.corp-case-status {
    width: auto;
    height: auto;
    justify-self: start;

    flex-direction: row;
    gap: 8px;

    padding: 7px 10px;
    border-radius: 999px;
}

/* News cards */
.corp-mini-news {
    padding: 13px;
    border-radius: 16px;
}

.corp-mini-news p {
    font-size: 12.5px;
    line-height: 1.4;
}

/* HOMEPAGE BUTTON + TITLE FONT POLISH */

/* Make the two main homepage buttons comfortably fit their text */
.pbls-corporate-site .corp-hero-actions {
    display: grid;
    gap: 11px;
}

.pbls-corporate-site .corp-primary-button,
.pbls-corporate-site .corp-secondary-button {
    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 13px 18px;
    margin-top: 0;

    border-radius: 999px;

    font-size: 15px;
    line-height: 1.15;
    font-weight: 800;
    text-align: center;

    white-space: normal;
}

/* Use the Chinese-inspired display font for corporate website titles */
.pbls-corporate-site .corp-brand-title,
.pbls-corporate-site .corp-logo,
.pbls-corporate-site .corp-hero h1,
.pbls-corporate-site .corp-section-heading h2,
.pbls-corporate-site .corp-info-card h3,
.pbls-corporate-site .corp-process-grid h3,
.pbls-corporate-site .corp-case-panel h2,
.pbls-corporate-site .corp-mini-news strong,
.pbls-corporate-site .corp-trust-bar strong {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Slightly resize card titles now that they use the display font */
.pbls-corporate-site .corp-info-card h3,
.pbls-corporate-site .corp-process-grid h3 {
    font-size: 18px;
    line-height: 1.12;
}

/* Make the stat titles like 24/7, 418, 92%, LIVE feel intentional */
.pbls-corporate-site .corp-trust-bar strong {
    font-size: 24px;
    line-height: 1;
}

/* Make mini-news headings like Network notice / Technology update stand out */
.pbls-corporate-site .corp-mini-news strong {
    display: block;
    margin-bottom: 6px;

    font-size: 18px;
    line-height: 1.12;
}

.pbls-corporate-site .corp-process-grid span {
    width: 50px;
    height: 50px;

    font-size: 17px;
    line-height: 1;

    margin-bottom: 13px;
}

.pbls-corporate-site .corp-logo {
    width: 64px;
    height: 64px;

    font-size: 17px;
    border-radius: 18px;
}
.upload-section-title {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.2px;
}

#continueToBriefingBtn {
    display: block;
    margin: 18px auto 0;
    width: auto;
    min-width: 160px;
}

#beginWorldwideSearchBtn {
    display: block;
    margin: 18px auto 0;
    width: auto;
    min-width: 210px;
}

#confirmPandaBtn {
    display: block;
    margin: 14px auto 0;
    width: auto;
    min-width: 190px;
}

#reconstructionTopResult .reconstruction-complete {
    margin-top: 12px;
    margin-bottom: 12px;
}

.arrival-confirm-image {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;

    margin: 14px 0 6px;

    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
}

.location-confirm-panel {
    margin-top: 14px;
    padding: 14px;

    border-radius: 16px;
    background: rgba(155, 191, 101, 0.08);
    border: 1px solid var(--border);
}

.location-confirm-panel h3 {
    margin-top: 0;
    margin-bottom: 8px;

    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.location-confirm-panel p {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-soft);
}

#confirmArrivalBtn {
    display: block;
    margin: 14px auto 0;
    width: auto;
    min-width: 230px;
}

.calibration-context-card {
    margin: 14px 0;
    padding: 14px;

    border-radius: 16px;
    background: rgba(155, 191, 101, 0.08);
    border: 1px solid var(--border);
}

.calibration-context-card p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-soft);
}

.calibration-context-card p:last-child {
    margin-bottom: 0;
}

.route-context-card {
    margin: 14px 0;
    padding: 14px;

    border-radius: 16px;
    background: rgba(155, 191, 101, 0.08);
    border: 1px solid var(--border);
}

.route-context-card h3 {
    margin-top: 0;
    margin-bottom: 8px;

    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.route-context-card p {
    margin: 0 0 10px;

    font-size: 14px;
    line-height: 1.45;
    color: var(--text-soft);
}

.route-context-card p:last-child {
    margin-bottom: 0;
}

.route-context-card.compact {
    padding: 12px;
}

.route-context-card.compact h3 {
    font-size: 18px;
}

.player-marker {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 12px;
    line-height: 1;

    padding: 6px 9px;
    border-radius: 999px;

    background: rgba(155, 191, 101, 0.12);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.owner-emoji-picker {
    margin: 18px 0;
    padding: 14px;

    border-radius: 16px;
    background: rgba(155, 191, 101, 0.08);
    border: 1px solid var(--border);
}

.owner-emoji-picker p {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-soft);
}

.emoji-group {
    margin-top: 14px;
}

.emoji-group h3 {
    margin: 0 0 8px;

    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.emoji-choice {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border-radius: 12px;
    border: 1px solid var(--border);

    background: rgba(0, 0, 0, 0.18);
    font-size: 22px;
}

.emoji-choice.selected {
    background: rgba(155, 191, 101, 0.24);
    border-color: var(--accent-strong);
    box-shadow: 0 0 14px var(--glow);
}

.route-owner-token {
    position: absolute;
    left: 0;
    top: 0;

    width: var(--route-node-size);
    height: var(--route-node-size);
    box-sizing: border-box;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    line-height: 1;

    transform: translate(-50%, -50%);
    transform-origin: center center;

    opacity: 1;
    z-index: 5;

    transition:
        left 7s linear,
        top 7s linear;
}

.route-owner-token::before {
    content: "";
    position: absolute;

    left: 50%;
    top: 50%;

    width: var(--route-node-size);
    height: var(--route-node-size);
    box-sizing: border-box;

    border-radius: 50%;
    background: rgba(243, 246, 233, 0.13);
    border: 1px solid rgba(243, 246, 233, 0.36);
    box-shadow: 0 0 10px rgba(243, 246, 233, 0.22);

    transform: translate(-50%, -50%);
    z-index: -1;
}

.route-owner-token.arrived::before {
    animation: none;
}

.route-panda-token {
    z-index: 7;
}

@keyframes ownerRingPulse {
    0%, 100% {
        width: var(--route-node-size);
        height: var(--route-node-size);
        box-shadow: 0 0 10px rgba(243, 246, 233, 0.22);
    }

    50% {
        width: calc(var(--route-node-size) + 5px);
        height: calc(var(--route-node-size) + 5px);
        box-shadow: 0 0 15px rgba(243, 246, 233, 0.36);
    }
}

.travel-reference-card {
    margin: 14px 0;
    padding: 14px;

    border-radius: 16px;
    background: rgba(155, 191, 101, 0.08);
    border: 1px solid var(--border);
}

.travel-reference-label {
    margin: 0 0 10px;

    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.2px;

    color: var(--text-main);
}

.travel-reference-image {
    display: block;
    width: 100%;
    max-height: 280px;

    object-fit: contain;

    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);

    cursor: zoom-in;
}

.travel-reference-note {
    margin: 10px 0 0;

    font-size: 13px;
    line-height: 1.45;
    color: var(--text-soft);
}

/* CENTRE GAME PROGRESS BUTTONS */

#arrivedBtn,
#continueBtn,
#confirmArrivalBtn,
#submitBtn {
    display: block;

    width: auto;
    max-width: 100%;

    min-width: 220px;
    margin: 18px auto 0;

    text-align: center;
}
/* ------------------------------------------------------------
   PBLS TECHNICAL POLISH — SUBTLE GAMEPLAY TOOL INTERFACE
   Applied only to the working app screens, not the dummy website copy.
------------------------------------------------------------ */

.pbls-tool-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin: -2px 0 14px;
    padding: 8px 10px;

    border-radius: 9px;
    background:
        linear-gradient(90deg, rgba(193, 217, 138, 0.10), transparent 62%),
        rgba(0, 0, 0, 0.20);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-strong);

    font-family: monospace;
    text-transform: uppercase;
}

.pbls-tool-strip span {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: var(--accent-strong);
}

.pbls-tool-strip strong {
    flex: 0 0 auto;
    padding: 3px 7px;

    border-radius: 999px;
    background: rgba(193, 217, 138, 0.10);
    border: 1px solid rgba(193, 217, 138, 0.22);

    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-soft);
}

.pbls-inline-status,
.route-window-summary span,
.route-window-summary strong,
.scan-label {
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pbls-inline-status {
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--accent-strong);
    opacity: 0.9;
}

.pbls-owner-line {
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-soft);
}

#screen > h2 {
    margin-top: 0;
    letter-spacing: 0.1px;
}

/* Terminal windows now behave like a small rolling display instead of a growing list. */
.terminal-window,
.reconstruction-terminal {
    position: relative;
    overflow: hidden;

    min-height: 112px;
    max-height: 142px;
    padding: 12px;

    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(193, 217, 138, 0.045), transparent 72%),
        rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(193, 217, 138, 0.24);
    box-shadow:
        inset 0 0 22px rgba(0, 0, 0, 0.34),
        inset 3px 0 0 rgba(193, 217, 138, 0.28);
}

.terminal-window::after,
.reconstruction-terminal::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;

    background: linear-gradient(to bottom, transparent, rgba(11, 18, 10, 0.88));
    pointer-events: none;
}

.terminal-line,
.terminal-window p,
.reconstruction-terminal p {
    margin: 6px 0;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-soft);
}

.terminal-line:last-child,
.terminal-window p:last-child,
.reconstruction-terminal p:last-child {
    color: var(--accent-strong);
}

.terminal-line:last-child::after,
.terminal-window p:last-child::after,
.reconstruction-terminal p:last-child::after {
    content: "_";
    margin-left: 3px;
    animation: terminalCursorBlink 0.9s steps(2, start) infinite;
}

@keyframes terminalCursorBlink {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

/* Less cookie-cutter: panels become flatter, more like instrument modules. */
.briefing-card,
.upload-panel,
.scan-panel,
.reference-scan-card,
.calibration-context-card,
.location-confirm-panel,
.route-context-card,
.travel-reference-card,
.reconstruction-complete,
.panda-confirm-panel {
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(193, 217, 138, 0.065), transparent 58%),
        rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(193, 217, 138, 0.28);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.18);
}

.calibration-context-card,
.location-confirm-panel,
.route-context-card,
.travel-reference-card,
.panda-confirm-panel {
    padding: 13px;
}

.question-text {
    margin: 14px 0 10px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-strong);
}

#msg {
    min-height: 18px;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 0.4px;
    color: var(--accent-strong);
}

/* Evidence/image presentation: more recovered-file, less generic photo card. */
.arrival-confirm-image,
.travel-reference-image,
.reconstruction-canvas,
.scan-reference-image {
    box-shadow:
        inset 0 0 0 1px rgba(193, 217, 138, 0.14),
        0 10px 22px rgba(0, 0, 0, 0.18);
}

.arrival-confirm-image,
.travel-reference-image,
.reconstruction-canvas {
    border-radius: 8px;
    border-color: rgba(193, 217, 138, 0.28);
    background: rgba(0, 0, 0, 0.28);
}

.scan-image-wrap,
.satellite-frame {
    border-radius: 10px;
    border-color: rgba(193, 217, 138, 0.30);
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.24),
        0 10px 24px rgba(0, 0, 0, 0.18);
}

.reconstruction-progress,
.decode-bar {
    height: 8px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.10);
}

.reconstruction-progress-fill,
.decode-fill {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-strong));
}

.route-map {
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(193, 217, 138, 0.035), transparent 64%),
        rgba(0, 0, 0, 0.22);
    border-color: rgba(193, 217, 138, 0.25);
}

.route-window-summary {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.20);
    border: 1px solid var(--border);
}

.route-window-summary span {
    font-size: 10px;
    color: var(--text-faint);
}

.route-window-summary strong {
    font-size: 11px;
    color: var(--accent-strong);
}

button {
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(193, 217, 138, 0.28), rgba(111, 143, 69, 0.42)),
        rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(193, 217, 138, 0.36);
    color: var(--text-main);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

button:hover {
    background:
        linear-gradient(180deg, rgba(193, 217, 138, 0.34), rgba(111, 143, 69, 0.52)),
        rgba(0, 0, 0, 0.32);
}

input {
    border-radius: 8px;
    border-color: var(--border);
    background: rgba(0, 0, 0, 0.28);
}

/* ------------------------------------------------------------
   PBLS TERMINAL FADE FIX
   Removes the bottom fade/mask from all rolling terminal windows
   so text remains crisp as it reaches the bottom of the frame.
------------------------------------------------------------ */
.terminal-window::after,
.reconstruction-terminal::after,
.terminal-log::after,
.satellite-status::after {
    content: none !important;
    display: none !important;
    background: none !important;
    opacity: 0 !important;
}

.terminal-window,
.reconstruction-terminal,
.terminal-log,
.satellite-status {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.terminal-line,
.terminal-window p,
.reconstruction-terminal p,
.terminal-log p,
.satellite-status p {
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
    position: relative;
    z-index: 1;
}

/* Collapse reconstruction terminal once the recovered image is ready */

.reconstruction-terminal,
.reconstruction-progress {
    transition:
        max-height 420ms ease,
        min-height 420ms ease,
        height 420ms ease,
        opacity 300ms ease,
        padding 420ms ease,
        margin 420ms ease,
        border-color 300ms ease;
}

.reconstruction-terminal.reconstruction-log-collapsed {
    min-height: 0 !important;
    max-height: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    border-color: transparent !important;
    opacity: 0;

    overflow: hidden;
}

.reconstruction-terminal.reconstruction-log-collapsed p {
    opacity: 0;
}

.reconstruction-progress.reconstruction-progress-collapsed {
    height: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    opacity: 0;
    overflow: hidden;
}

/* OWNER LOCATION NAMING + CALIBRATION SUCCESS */

.pbls-tool-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pbls-tool-main em {
    font-style: normal;

    font-size: 10px;
    letter-spacing: 1.1px;
    color: var(--text-faint);
}

.calibration-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    margin: 0 0 14px;
}

.calibration-dashboard div {
    padding: 8px;

    border-radius: 8px;
    background: rgba(0, 0, 0, 0.20);
    border: 1px solid var(--border);
}

.calibration-dashboard span {
    display: block;
    margin-bottom: 4px;

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: var(--text-faint);
}

.calibration-dashboard strong {
    display: block;

    font-family: monospace;
    font-size: 13px;
    color: var(--accent-strong);
}

.location-name-panel {
    margin: 14px 0;
    padding: 14px;

    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(193, 217, 138, 0.075), transparent 60%),
        rgba(0, 0, 0, 0.22);

    border: 1px solid var(--border);
    border-left: 3px solid rgba(193, 217, 138, 0.34);
}

.location-name-panel h3 {
    margin: 0 0 8px;

    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.location-name-panel p {
    margin: 0 0 10px;

    font-size: 13px;
    line-height: 1.45;
    color: var(--text-soft);
}

.location-name-panel label {
    display: block;

    margin: 10px 0 6px;

    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: var(--accent-strong);
}

.location-name-panel.location-name-locked {
    border-color: rgba(193, 217, 138, 0.44);
    box-shadow:
        inset 0 0 18px rgba(193, 217, 138, 0.045),
        0 0 18px rgba(193, 217, 138, 0.08);
}

#locationNameMsg,
#msg {
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
    color: var(--accent-strong);
}

#locationNameMsg {
    margin-top: 16px;
}

#lockLocationNameBtn {
    display: block;
    width: auto;
    max-width: 60%;
    min-width: 190px;
    margin: 14px auto 0;

    text-align: center;
}


.locked-evidence-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.locked-evidence-summary div {
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
}

.locked-evidence-summary span {
    display: block;
    margin-bottom: 5px;

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-faint);
}

.locked-evidence-summary strong {
    display: block;
    color: var(--accent-strong);
    font-size: 13px;
}

.locked-evidence-image {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: cover;

    margin-top: 10px;
    border-radius: 9px;
    border: 1px solid var(--border);
}

.locked-evidence-note {
    margin: 10px 0 0;
}

.calibration-query-title {
    margin: 16px 0 8px;

    font-family: monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.calibration-success-panel {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;

    margin-top: 16px;
    padding: 12px;

    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(193, 217, 138, 0.16), transparent 58%),
        rgba(0, 0, 0, 0.26);

    border: 1px solid rgba(193, 217, 138, 0.42);
    box-shadow:
        inset 0 0 18px rgba(193, 217, 138, 0.08),
        0 0 24px rgba(193, 217, 138, 0.12);
}

.calibration-success-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(193, 217, 138, 0.16);
    border: 1px solid rgba(193, 217, 138, 0.5);

    font-family: monospace;
    font-weight: bold;
    color: var(--accent-strong);

    box-shadow: 0 0 16px rgba(193, 217, 138, 0.25);
}

.calibration-success-panel strong {
    display: block;

    margin-bottom: 4px;

    font-family: monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: var(--accent-strong);
}

.calibration-success-panel p {
    margin: 0;

    font-size: 13px;
    line-height: 1.35;
    color: var(--text-soft);
}

.calibration-success-active {
    animation: calibrationLockPulse 850ms ease-out 1;
}

@keyframes calibrationLockPulse {
    0% {
        transform: scale(0.96);
        opacity: 0;
        box-shadow: 0 0 0 rgba(193, 217, 138, 0);
    }

    45% {
        transform: scale(1.02);
        opacity: 1;
        box-shadow: 0 0 28px rgba(193, 217, 138, 0.32);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow:
            inset 0 0 18px rgba(193, 217, 138, 0.08),
            0 0 24px rgba(193, 217, 138, 0.12);
    }
}

/* PBLS CAMERA / SURVEILLANCE GALLERY */

.gallery-button {
    position: fixed;
    right: 70px;
    bottom: 16px;

    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    max-width: none !important;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50%;
    border: 1px solid var(--border-strong);

    background:
        radial-gradient(circle at 50% 40%, rgba(193, 217, 138, 0.16), transparent 58%),
        rgba(11, 22, 16, 0.94);

    color: var(--accent-strong);

    font-size: 20px;
    line-height: 1;

    z-index: 9000;

    box-shadow:
        inset 0 0 14px rgba(193, 217, 138, 0.08),
        0 0 18px var(--glow);
}

.gallery-button::before {
    display: none !important;
}

.gallery-button:hover,
.gallery-button:focus {
    filter: brightness(1.08);
}

.gallery-panel {
    max-width: 430px;
}

.gallery-intro {
    margin: 0 0 14px;

    font-size: 13px;
    line-height: 1.45;
    color: var(--text-soft);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    display: block;

    margin: 0 !important;
    padding: 8px !important;

    border-radius: 10px;
    border: 1px solid var(--border);

    background:
        linear-gradient(135deg, rgba(155, 191, 101, 0.07), transparent 58%),
        rgba(0, 0, 0, 0.26);

    color: var(--text-main);
    text-align: left;

    box-shadow:
        inset 0 0 16px rgba(0, 0, 0, 0.24),
        0 0 12px rgba(0, 0, 0, 0.14);
}

.gallery-card::before {
    display: none !important;
}

.gallery-image-frame {
    position: relative;
    overflow: hidden;

    border-radius: 8px;
    border: 1px solid rgba(193, 217, 138, 0.28);

    background: rgba(0, 0, 0, 0.38);
}

.gallery-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);

    background-size: 18px 18px;
    opacity: 0.18;

    pointer-events: none;
}

.gallery-image-frame img {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    filter: contrast(1.06) saturate(0.92);
}

.gallery-frame-code {
    position: absolute;
    left: 6px;
    top: 6px;

    padding: 4px 6px;

    border-radius: 4px;

    font-family: monospace;
    font-size: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    background: rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(193, 217, 138, 0.32);
    color: var(--accent-strong);

    z-index: 2;
}

.gallery-surveillance-tag {
    margin-top: 8px;
    padding: 7px 8px;

    border-radius: 7px;
    border-left: 2px solid rgba(193, 217, 138, 0.58);

    background: rgba(0, 0, 0, 0.22);
}

.gallery-surveillance-tag span {
    display: block;

    margin-bottom: 3px;

    font-family: monospace;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: var(--text-faint);
}

.gallery-surveillance-tag strong {
    display: block;

    font-size: 12px;
    line-height: 1.25;

    color: var(--accent-strong);
}

.gallery-surveillance-tag.pending {
    border-left-color: rgba(243, 246, 233, 0.22);
}

.gallery-surveillance-tag.pending strong {
    color: var(--text-faint);
}

.gallery-empty {
    grid-column: 1 / -1;

    padding: 14px;

    border-radius: 10px;
    border: 1px solid var(--border);

    background: rgba(0, 0, 0, 0.22);
}

.gallery-empty p {
    margin: 0;

    font-size: 13px;
    color: var(--text-soft);
}
/* OWNER LOCATION PHOTO CUE */

.owner-location-photo-panel {
    margin-top: 10px;
}

.owner-location-photo-upload {
    display: block;

    padding: 14px;
    margin-top: 8px;

    border-radius: 10px;
    border: 1px dashed rgba(193, 217, 138, 0.46);

    background:
        linear-gradient(135deg, rgba(193, 217, 138, 0.06), transparent 62%),
        rgba(0, 0, 0, 0.22);

    text-align: center;
    cursor: pointer;
}

.owner-location-photo-upload span {
    display: block;

    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: var(--accent-strong);
}

.owner-location-photo-upload small {
    display: block;

    margin-top: 5px;

    font-size: 12px;
    color: var(--text-faint);
}

.owner-location-photo-preview {
    margin-top: 10px;
    padding: 8px;

    border-radius: 12px;
    border: 1px solid rgba(193, 217, 138, 0.38);

    background:
        linear-gradient(135deg, rgba(193, 217, 138, 0.11), transparent 60%),
        rgba(0, 0, 0, 0.24);

    box-shadow:
        inset 0 0 16px rgba(193, 217, 138, 0.045),
        0 0 16px rgba(193, 217, 138, 0.07);
}

.owner-location-photo-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;

    margin-bottom: 8px;
}

.owner-location-photo-preview-header span,
.owner-location-photo-preview-header strong {
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.owner-location-photo-preview-header span {
    color: var(--accent-strong);
}

.owner-location-photo-preview-header strong {
    font-weight: 400;
    color: var(--text-faint);
}

.owner-location-photo-preview img {
    display: block;

    width: 100%;
    max-height: 190px;

    object-fit: cover;
    object-position: center;

    border-radius: 9px;
    border: 1px solid rgba(193, 217, 138, 0.26);

    background: rgba(0, 0, 0, 0.32);

    filter: contrast(1.04) saturate(0.92);
}

.owner-location-photo-preview p {
    margin: 8px 0 0;

    font-size: 12px;
    line-height: 1.4;
    color: var(--text-soft);
}

/* PBLS DESIGN CHANGE PACK — MOBILE NAV, LIVE STATUS, TUTORIAL CUES */

.corp-nav {
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    flex-wrap: nowrap !important;
    scrollbar-width: none;

    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px 8px;

    max-width: calc(100% + 28px);
    cursor: grab;
}

.corp-nav::-webkit-scrollbar {
    display: none;
}

.corp-nav a {
    scroll-snap-align: start;
    -webkit-user-select: none;
    user-select: none;
}

#corpFindMyPandaBtn.corp-primary-button {
    position: relative;
    overflow: hidden;

    min-height: 50px;
    padding: 13px 18px;

    border-radius: 12px;
    border: 1px solid rgba(193, 217, 138, 0.78);

    background:
        linear-gradient(180deg, rgba(243, 246, 233, 0.18), transparent 42%),
        linear-gradient(135deg, var(--accent-strong), var(--accent));

    color: #102012;

    font-family: monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 12px 26px rgba(0, 0, 0, 0.26),
        0 0 18px rgba(193, 217, 138, 0.18);
}

#corpFindMyPandaBtn.corp-primary-button::after {
    content: "";
    position: absolute;
    left: -35%;
    top: 0;

    width: 28%;
    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    animation: officialButtonSweep 3.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes officialButtonSweep {
    0%, 45% { left: -35%; opacity: 0; }
    55% { opacity: 1; }
    82%, 100% { left: 112%; opacity: 0; }
}

.pbls-tool-strip strong {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pbls-tool-strip strong::before {
    content: "";

    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: #ff4b4b;
    box-shadow:
        0 0 7px rgba(255, 75, 75, 0.92),
        0 0 14px rgba(255, 75, 75, 0.48);

    animation: pblsStatusDotPulse 1.25s ease-in-out infinite;
}

@keyframes pblsStatusPillPulse {
    0%, 100% {
        border-color: rgba(255, 75, 75, 0.28);
        box-shadow:
            inset 0 0 10px rgba(255, 75, 75, 0.05),
            0 0 0 rgba(255, 75, 75, 0);
    }

    50% {
        border-color: rgba(255, 75, 75, 0.62);
        box-shadow:
            inset 0 0 12px rgba(255, 75, 75, 0.10),
            0 0 16px rgba(255, 75, 75, 0.20);
    }
}

@keyframes pblsStatusDotPulse {
    0%, 100% {
        opacity: 0.56;
        transform: scale(0.86);
    }

    50% {
        opacity: 1;
        transform: scale(1.16);
    }
}

.tutorial-overlay {
    background:
        radial-gradient(circle at calc(100% - 92px) calc(100% - 36px), rgba(193, 217, 138, 0.20), transparent 86px),
        radial-gradient(circle at calc(100% - 32px) calc(100% - 36px), rgba(193, 217, 138, 0.14), transparent 70px),
        rgba(0, 0, 0, 0.78);
}

.tutorial-panel {
    border-color: rgba(193, 217, 138, 0.44);
    padding-top: 62px;
    box-shadow:
        inset 0 0 22px rgba(193, 217, 138, 0.045),
        0 0 34px rgba(193, 217, 138, 0.16),
        0 22px 60px rgba(0, 0, 0, 0.42);
}

.tutorial-panel .help-close {
    top: 16px;
    right: 16px;
}

.tutorial-callout {
    margin: 0 0 14px;
    padding: 12px;

    border-radius: 10px;
    border: 1px solid rgba(193, 217, 138, 0.32);
    border-left: 3px solid rgba(193, 217, 138, 0.62);

    background:
        linear-gradient(135deg, rgba(193, 217, 138, 0.12), transparent 62%),
        rgba(0, 0, 0, 0.24);
}

.tutorial-callout strong {
    display: block;
    margin-bottom: 5px;

    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.tutorial-callout p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-soft);
}

.help-button.tutorial-button-pulse,
.gallery-button.tutorial-button-pulse {
    animation: tutorialFloatingButtonPulse 820ms ease-in-out infinite;
}

@keyframes tutorialFloatingButtonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            inset 0 0 14px rgba(193, 217, 138, 0.08),
            0 0 18px rgba(193, 217, 138, 0.26);
    }

    50% {
        transform: scale(1.12);
        box-shadow:
            inset 0 0 18px rgba(193, 217, 138, 0.16),
            0 0 30px rgba(193, 217, 138, 0.58);
    }
}

/* PBLS FIRST-REVEAL BUTTON SPOTLIGHT TWEAK */

.tutorial-button-spotlight {
    position: fixed;
    inset: 0;

    pointer-events: auto;
    touch-action: none;
    overscroll-behavior: contain;

    z-index: 8990;

    background:
        radial-gradient(circle at calc(100% - 92px) calc(100% - 38px), rgba(193, 217, 138, 0.34), transparent 74px),
        radial-gradient(circle at calc(100% - 32px) calc(100% - 38px), rgba(193, 217, 138, 0.24), transparent 68px),
        rgba(0, 0, 0, 0.66);

    opacity: 0;
    animation: tutorialSpotlightFadeIn 360ms ease forwards;
}

.tutorial-button-spotlight.tutorial-spotlight-fading {
    animation: tutorialSpotlightFadeOut 420ms ease forwards;
}

.tutorial-spotlight-label {
    position: fixed;
    right: 16px;
    bottom: 78px;

    width: min(260px, calc(100vw - 32px));
    padding: 10px 12px;

    border-radius: 10px;
    border: 1px solid rgba(193, 217, 138, 0.42);

    background:
        linear-gradient(135deg, rgba(193, 217, 138, 0.13), transparent 64%),
        rgba(8, 15, 8, 0.94);

    box-shadow:
        inset 0 0 18px rgba(193, 217, 138, 0.05),
        0 0 24px rgba(0, 0, 0, 0.42);

    text-align: right;
}

.tutorial-spotlight-label strong {
    display: block;

    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: var(--accent-strong);
}

.tutorial-spotlight-label span {
    display: block;
    margin-top: 3px;

    font-size: 12px;
    line-height: 1.3;
    color: var(--text-soft);
}

body.tutorial-spotlight-active {
    overflow: hidden;
}

body.tutorial-spotlight-active .help-button,
body.tutorial-spotlight-active .gallery-button {
    z-index: 9010;
    pointer-events: none;
}

@keyframes tutorialSpotlightFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes tutorialSpotlightFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* MODERN MOBILE WEBSITE NAVIGATION — BURGER DROPDOWN */

.pbls-corporate-site .corp-header {
    position: relative;
    gap: 0;
    padding: 12px;
    margin: -6px -6px 18px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(94, 234, 212, 0.08), transparent 56%),
        rgba(4, 13, 24, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.corp-nav-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pbls-corporate-site .corp-brand {
    min-width: 0;
}

.pbls-corporate-site .corp-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
}

.pbls-corporate-site .corp-brand-title {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.pbls-corporate-site .corp-brand-subtitle {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.corp-menu-button {
    position: relative;
    flex: 0 0 44px;

    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    max-width: none !important;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 14px !important;
    border: 1px solid rgba(94, 234, 212, 0.28) !important;

    background:
        linear-gradient(135deg, rgba(94, 234, 212, 0.10), transparent 64%),
        rgba(255, 255, 255, 0.055) !important;

    color: #e5f7f5 !important;
    box-shadow:
        inset 0 0 16px rgba(94, 234, 212, 0.035),
        0 8px 22px rgba(0, 0, 0, 0.18);
}

.corp-menu-button::before {
    display: none !important;
}

.corp-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(229, 247, 245, 0.88);
    transition:
        transform 220ms ease,
        opacity 180ms ease,
        background 220ms ease;
}

.corp-menu-button.is-open {
    border-color: rgba(94, 234, 212, 0.52) !important;
    box-shadow:
        inset 0 0 16px rgba(94, 234, 212, 0.07),
        0 0 18px rgba(94, 234, 212, 0.13);
}

.corp-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.corp-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.corp-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.pbls-corporate-site .corp-nav {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;

    max-height: 0;
    overflow: hidden !important;

    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;

    opacity: 0;
    transform: translateY(-6px);

    cursor: default !important;
    scrollbar-width: none;
    touch-action: auto;

    transition:
        max-height 300ms ease,
        opacity 220ms ease,
        transform 220ms ease,
        padding 300ms ease,
        margin 300ms ease;
}

.pbls-corporate-site .corp-nav.is-open {
    max-height: 320px;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    opacity: 1;
    transform: translateY(0);
}

.pbls-corporate-site .corp-nav::-webkit-scrollbar {
    display: none;
}

.pbls-corporate-site .corp-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    box-sizing: border-box;

    padding: 12px 13px !important;
    border-radius: 14px !important;

    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;

    color: rgba(229, 247, 245, 0.86) !important;
    text-decoration: none;
    font-size: 13px !important;
    font-weight: 650;
    letter-spacing: -0.1px;
    white-space: nowrap;
    user-select: none;
}

.pbls-corporate-site .corp-nav a::after {
    content: "›";
    font-size: 18px;
    line-height: 1;
    color: rgba(94, 234, 212, 0.64);
}

.pbls-corporate-site .corp-nav a.corp-nav-cta {
    margin-top: 2px;
    color: #06111d !important;
    background:
        linear-gradient(135deg, #99f6e4, #5eead4) !important;
    border-color: rgba(94, 234, 212, 0.9) !important;
    box-shadow: 0 12px 28px rgba(94, 234, 212, 0.16);
    font-weight: 850;
}

.pbls-corporate-site .corp-nav a.corp-nav-cta::after {
    color: rgba(6, 17, 29, 0.58);
}

.pbls-corporate-site .corp-nav a:active,
.corp-menu-button:active {
    transform: scale(0.985);
}

@media (min-width: 520px) {
    .pbls-corporate-site .corp-brand-title,
    .pbls-corporate-site .corp-brand-subtitle {
        max-width: 280px;
    }
}


/* CORPORATE FOOTER OFFICIAL DETAIL */

.corp-footer {
    gap: 18px !important;
    margin-top: 28px !important;
    padding: 20px 0 6px !important;
}

.corp-footer-main {
    display: grid;
    gap: 10px;
}

.corp-footer-brand-block strong {
    display: block;

    font-size: 18px;
    letter-spacing: 1.4px;
    color: rgba(229, 247, 245, 0.92);
}

.corp-footer-brand-block p,
.corp-footer-statement,
.corp-footer-bottom p {
    margin: 0;
}

.corp-footer-brand-block p {
    margin-top: 3px;
    color: rgba(229, 247, 245, 0.62);
}

.corp-footer-statement {
    max-width: 34rem;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(229, 247, 245, 0.58);
}

.corp-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    padding: 12px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.corp-footer-column {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.corp-footer-column span {
    display: block;

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: rgba(153, 246, 228, 0.82);
}

.corp-footer-column a {
    display: block;
    min-width: 0;

    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;

    color: rgba(229, 247, 245, 0.66) !important;
    font-size: 11px;
    line-height: 1.25;
    text-decoration: none;
}

.corp-footer-column a:hover,
.corp-footer-column a:focus {
    color: rgba(153, 246, 228, 0.96) !important;
}

.corp-footer-bottom {
    display: grid;
    gap: 5px;

    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);

    font-size: 10.5px;
    line-height: 1.45;
    color: rgba(229, 247, 245, 0.46);
}

@media (max-width: 480px) {
    .corp-footer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .corp-footer-column {
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .corp-footer-column:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .corp-footer-column a {
        font-size: 12px;
    }
}


/* FIND MY PANDA PROCESS CARD REFINEMENTS */
.corp-process-grid span {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    padding: 0;
}

.pbls-corporate-site .corp-process-grid h3 {
    white-space: nowrap;
}

/* HERO ORDER UPDATE: place network image + stats before main CTA */
.pbls-corporate-site .corp-hero-content {
    grid-column: 1 / -1;
}

.pbls-corporate-site .corp-hero-content .corp-hero-image-card {
    margin-top: 16px;
}

.pbls-corporate-site .corp-hero-content .corp-trust-bar {
    margin: 14px 0 16px;
}

.pbls-corporate-site .corp-hero-content .corp-hero-actions {
    margin-top: 0;
}

@media (min-width: 720px) {
    .pbls-corporate-site .corp-hero {
        grid-template-columns: 1fr;
    }

    .pbls-corporate-site .corp-hero-content .corp-trust-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* MOBILE HEADER / MARGIN FIXES */
@media (max-width: 480px) {
    body {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #app,
    .app,
    .container {
        max-width: none !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        box-sizing: border-box;
    }

    #screen,
    .screen {
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box;
        overflow: visible;
    }

    .pbls-corporate-site .corp-header {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px !important;
        overflow: visible !important;
    }

    .corp-nav-topbar {
        gap: 8px !important;
        width: 100%;
        min-width: 0;
        overflow: visible !important;
    }

    .pbls-corporate-site .corp-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 9px !important;
        overflow: visible !important;
    }

    .pbls-corporate-site .corp-brand > div:last-child {
        flex: 1 1 auto;
        min-width: 0;
    }

    .pbls-corporate-site .corp-logo {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        min-width: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
        box-sizing: border-box;
        line-height: 1;
        font-size: 12px !important;
    }

    .pbls-corporate-site .corp-brand-title,
    .pbls-corporate-site .corp-brand-subtitle {
        max-width: 100% !important;
        min-width: 0;
    }

    .corp-menu-button {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
        min-width: 42px !important;
        overflow: visible !important;
        box-sizing: border-box;
    }
}

@media (max-width: 360px) {
    body {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    #app,
    .app,
    .container {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    #screen,
    .screen {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .pbls-corporate-site .corp-brand-title {
        font-size: 13px !important;
    }

    .pbls-corporate-site .corp-brand-subtitle {
        font-size: 10px !important;
    }

    .pbls-corporate-site .corp-logo {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
        min-width: 38px !important;
    }

    .corp-menu-button {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
        min-width: 40px !important;
    }
}

/* HOW IT WORKS NUMBER BADGE CENTRING */
.pbls-corporate-site .corp-process-grid span {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.pbls-corporate-site .corp-process-grid span::before,
.pbls-corporate-site .corp-process-grid span::after {
    display: none !important;
}

/* PBLS BRIEFING ACCEPTANCE STEP */

.briefing-acceptance-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;

    margin: 14px 0 12px;
    padding: 12px;

    border-radius: 12px;
    border: 1px solid rgba(193, 217, 138, 0.34);

    background:
        linear-gradient(135deg, rgba(193, 217, 138, 0.08), transparent 62%),
        rgba(0, 0, 0, 0.22);

    cursor: pointer;
}

.briefing-acceptance-card input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--accent-strong);
}

.briefing-acceptance-card strong {
    display: block;

    font-family: monospace;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    color: var(--accent-strong);
}

.briefing-acceptance-card small {
    display: block;

    margin-top: 5px;

    font-size: 12px;
    line-height: 1.4;

    color: var(--text-soft);
}

#beginWorldwideSearchBtn:disabled {
    opacity: 0.42;
    filter: grayscale(0.35);
}

/* FINAL SATELLITE SIGNAL LOCK PING */

.signal-lock-ping {
    position: absolute;
    left: var(--signal-lock-x, 50%);
    top: var(--signal-lock-y, 50%);
    transform: translate(-50%, -50%) scale(0.92);

    min-width: 132px;
    padding: 10px 12px;

    border-radius: 10px;
    border: 1px solid rgba(193, 217, 138, 0.62);

    background:
        radial-gradient(circle at center, rgba(193, 217, 138, 0.18), transparent 68%),
        rgba(3, 10, 7, 0.84);

    box-shadow:
        inset 0 0 18px rgba(193, 217, 138, 0.10),
        0 0 28px rgba(193, 217, 138, 0.28);

    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 9;
}

.signal-lock-ping::before,
.signal-lock-ping::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;

    width: 42px;
    height: 42px;

    border-radius: 50%;
    border: 1px solid rgba(193, 217, 138, 0.45);

    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    pointer-events: none;
}

.signal-lock-ping strong {
    position: relative;
    z-index: 1;

    display: block;

    font-family: monospace;
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;

    color: var(--accent-strong);
}

.signal-lock-ping span {
    position: relative;
    z-index: 1;

    display: block;
    margin-top: 4px;

    font-family: monospace;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: var(--text-soft);
}

.signal-lock-ping.signal-lock-ping-active {
    animation: signalLockPanelPing 2.1s ease-out forwards;
}

.signal-lock-ping.signal-lock-ping-active::before {
    animation: signalLockRingPing 2.1s ease-out forwards;
}

.signal-lock-ping.signal-lock-ping-active::after {
    animation: signalLockRingPing 2.1s ease-out 180ms forwards;
}

.tracking-box.signal-lock-box-confirmed {
    animation: signalLockBoxConfirm 2.1s ease-out forwards;
}

@keyframes signalLockPanelPing {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
        filter: brightness(1);
    }

    18% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.04);
        filter: brightness(1.2);
    }

    68% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
        filter: brightness(0.95);
    }
}

@keyframes signalLockRingPing {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }

    16% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3.25);
    }
}

@keyframes signalLockBoxConfirm {
    0%, 100% {
        border-color: var(--accent-strong);
        box-shadow: 0 0 12px var(--glow);
    }

    18%, 42% {
        border-color: rgba(235, 255, 188, 0.96);
        box-shadow:
            0 0 18px rgba(193, 217, 138, 0.58),
            0 0 34px rgba(193, 217, 138, 0.28);
    }
}

@media (max-width: 480px) {
    .signal-lock-ping {
        min-width: 118px;
        padding: 9px 10px;
    }

    .signal-lock-ping strong {
        font-size: 12px;
        letter-spacing: 1.35px;
    }

    .signal-lock-ping span {
        font-size: 7px;
        letter-spacing: 0.85px;
    }
}


/* PANDA MATCH IMAGE TO LOCATION CONTEXT REVEAL */

.reconstruction-canvas.reconstruction-context-shift {
    animation: reconstructionContextShift 520ms ease-in forwards;
}

.reconstruction-canvas.reconstruction-context-reveal {
    animation: reconstructionContextReveal 680ms ease-out forwards;
}

@keyframes reconstructionContextShift {
    0% {
        transform: scale(1);
        filter: brightness(1) contrast(1) blur(0);
        opacity: 1;
    }

    100% {
        transform: scale(0.965);
        filter: brightness(1.28) contrast(1.08) blur(1.4px);
        opacity: 0.62;
    }
}

@keyframes reconstructionContextReveal {
    0% {
        transform: scale(1.045);
        filter: brightness(1.22) contrast(1.08) blur(1.1px);
        opacity: 0.58;
    }

    100% {
        transform: scale(1);
        filter: brightness(1) contrast(1) blur(0);
        opacity: 1;
    }
}


/* TARGETED FIRST-REVEAL TUTORIAL SPOTLIGHTS */

.tutorial-button-spotlight.spotlight-help {
    background:
        radial-gradient(circle at calc(100% - 32px) calc(100% - 38px), rgba(193, 217, 138, 0.38), transparent 72px),
        rgba(0, 0, 0, 0.68);
}

.tutorial-button-spotlight.spotlight-gallery {
    background:
        radial-gradient(circle at calc(100% - 92px) calc(100% - 38px), rgba(193, 217, 138, 0.38), transparent 74px),
        rgba(0, 0, 0, 0.68);
}


/* FINAL STAGE — PANDA RECOVERY MODE */

.final-signal-panel,
.final-search-action-panel {
    margin: 16px 0;
    padding: 15px;

    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 75, 75, 0.10), transparent 58%),
        rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 75, 75, 0.28);
}

.final-signal-panel p,
.final-search-action-panel p {
    margin-top: 0;
    line-height: 1.48;
    color: var(--text-soft);
}

.final-search-action-panel h3 {
    margin-top: 0;
    color: #ff9a9a;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 12px;
}

#confirmPandaLocatedBtn {
    display: block;
    width: 100%;
    margin-top: 14px;

    background: linear-gradient(135deg, #ff4b4b, #c93434);
    color: #fff;
    border: 1px solid rgba(255, 154, 154, 0.7);
    box-shadow: 0 0 22px rgba(255, 75, 75, 0.22);
    font-weight: 800;
}
