

:root {
    --bg-color: #e0e0e0;
    --text-color: #333333;
    --arrow-color: #333333;
    --b-width: clamp(6px, 1.5vw, 18px);
    --b-radius: calc(var(--b-width) * 2.5);
    --b-size: clamp(40px, 12vw, 120px);
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    overflow: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    cursor: default;
}

/* --- CORNER BRACKETS --- */
.corner {
    position: fixed;
    width: var(--b-size);
    height: var(--b-size);
    border-width: var(--b-width);
    border-color: var(--arrow-color);
    border-style: solid;
    opacity: 0.8;
    pointer-events: none;
    z-index: 20;
    transition: border-color 0.5s ease;
}

.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; border-top-left-radius: var(--b-radius); }
.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; border-top-right-radius: var(--b-radius); }
.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; border-bottom-left-radius: var(--b-radius); }
.br { bottom: 20px; right: 20px; border-left: none; border-top: none; border-bottom-right-radius: var(--b-radius); }

/* --- BACK BUTTON --- */
.back-btn {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 800;
    opacity: 0.4;
    transition: opacity 0.2s, color 0.5s ease;
    cursor: pointer;
}
.back-btn:hover { opacity: 1; }

/* --- VISIT TRACKER --- */
#new-tracker-display {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.35;
    color: var(--text-color);
    transition: color 0.5s ease, opacity 0.2s;
    pointer-events: none;
}

/* --- ANIMATIONS --- */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
