/* ============================================
   The Identity Code — Overlay Styles
   Poster-first: PNG untouched, overlay on top
   ============================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --bg: #050e05;
    --accent: #7fff00;
    --sense-eye: #00ff88;
    --sense-ears: #ff6b9d;
    --sense-nose: #ffa726;
    --sense-tongue: #e040fb;
    --sense-skin: #29b6f6;
    --mono: 'Space Mono', monospace;
    --sans: 'Inter', -apple-system, sans-serif;
}

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: var(--bg);
    font-family: var(--sans);
}

/* ---- Poster Container ---- */
body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.poster-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.poster-wrap img {
    display: block;
    max-height: 100vh;
    max-width: 100vw;
    width: auto;
    height: auto;
}

#overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    cursor: crosshair;
}

/* ---- Floating Filter Bar ---- */
.filter-bar {
    display: none;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 28px;
    background: rgba(8, 22, 8, 0.82);
    border: 1px solid rgba(127,255,0,0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 20px rgba(127,255,0,0.05);
    z-index: 50;
    transition: opacity .4s;
}

.filter-label {
    font-family: var(--mono);
    font-size: .65rem;
    color: rgba(127,255,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
}

.filter-btns { display: flex; gap: 6px; }

.fbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: rgba(200,230,200,0.6);
    font-family: var(--mono);
    font-size: .62rem;
    cursor: pointer;
    transition: all .22s ease;
    user-select: none;
}
.fbtn:hover { background: rgba(255,255,255,0.06); }
.fbtn.on {
    border-color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
    color: var(--c);
    box-shadow: 0 0 10px color-mix(in srgb, var(--c) 18%, transparent);
}
.fbtn .d {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c);
    opacity: .35;
    transition: opacity .22s;
}
.fbtn.on .d { opacity: 1; box-shadow: 0 0 5px var(--c); }

/* ---- Tooltip Card ---- */
.tip {
    position: fixed;
    z-index: 100;
    min-width: 230px;
    max-width: 310px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(8, 22, 8, 0.88);
    border: 1px solid rgba(127,255,0,0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 22px rgba(127,255,0,0.1),
        0 8px 30px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(127,255,0,0.04);
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px) scale(.97);
    transition: opacity .25s ease, transform .25s ease;
    will-change: opacity, transform;
}
.tip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}



.tip-place {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: #e8f5e9;
    margin-bottom: 3px;
    line-height: 1.3;
}
.tip-coords {
    font-family: var(--mono);
    font-size: .65rem;
    color: var(--accent);
    opacity: .65;
    margin-bottom: 9px;
    letter-spacing: .4px;
}
.tip-img-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2px;
    min-height: 60px;
    background: rgba(127,255,0,0.03);
}
.tip-img-wrap.hidden { display: none; }
.tip-img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transition: opacity .3s ease;
}
.tip-img.loaded { opacity: 1; }

/* ---- Loading ---- */
.loader {
    position: fixed; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--bg);
    z-index: 200;
    transition: opacity .6s ease;
}
.loader.gone { opacity: 0; pointer-events: none; }
.loader p {
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--accent);
    margin-top: 16px;
    opacity: .6;
}
.spin {
    width: 32px; height: 32px;
    border: 2px solid rgba(127,255,0,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: sp .9s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }
