* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

#app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#init-screen {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 999;
    display: flex;
    flex-direction: column;
    /* CHANGE: Center everything vertically instead of spacing it out */
    align-items: center;
    justify-content: center; 
    padding: 20px;
    gap: 30px; /* Adds consistent space between Stats, Title, and Text */
}

#init-stats {
    text-align: center;
    opacity: 0.7;
    font-size: 1rem;
    letter-spacing: 2px;
}

#init-stats div {
    margin-bottom: 15px;
}


#init-content {
    text-align: center;
}

#init-screen h1 {
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
    font-weight: 300;
}

#init-screen p {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 20px;
}

#init-manifesto {
    margin-bottom: 40px;
    text-align: center;
}

#init-manifesto p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 12px;
    letter-spacing: 1px;
    line-height: 1.6;
}

.volume-warning {
    font-size: 0.6rem;
    color: #ff4444;
    opacity: 0.8;
    margin-top: 20px;
    letter-spacing: 1px;
    font-weight: bold;
}

#init-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 15px 60px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#init-btn:active {
    transform: scale(0.95);
}

#app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px 0;
    position: relative;
}

#stats {
    display: none;
}

#center-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

#timer-display {
    font-size: 6rem;
    font-weight: 200;
    z-index: 10;
    font-variant-numeric: tabular-nums;
}

/* The Circle Itself */
#breathing-guide {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    opacity: 0.05; /* Very faint when idle */
    pointer-events: none;
    transition: opacity 0.3s ease;
    /* Center it */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* The Active State (When Holding) */
.pulse-animation {
    /* The breathing math: 5.5s in, 5.5s out */
    animation: ghost-breath 11s infinite ease-in-out;
    opacity: 0.15 !important; /* Slightly brighter when active */
}

@keyframes ghost-breath {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5); /* Expands */
        /* The Glow: Large, soft, and faint */
        box-shadow: 0 0 60px rgba(255, 255, 255, 0.2); 
    }
}

#bottom-zone {
    width: 100%;
    padding: 20px;
    text-align: center;
}

#manifesto-display {
    font-size: 1.2rem;
    opacity: 0.6;
    letter-spacing: 2px;
    transition: opacity 0.5s ease;
    text-transform: uppercase;
}

#lockout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#lockout-message {
    text-align: center;
}

#lockout-message h2 {
    font-size: 2rem;
    color: #ff4444;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

#lockout-message p {
    opacity: 0.5;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

#lockout-result {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

#lockout-timer {
    font-size: 4rem;
    margin-top: 30px;
    font-weight: 200;
}

#mobile-check {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-align: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}
/* The Reference Link */
.research-link {
    display: block;
    margin-top: 20px;
    color: #444; /* Very dim initially */
    font-size: 0.7rem;
    font-family: monospace;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.research-link:hover {
    color: #00ff00; /* Glows green (System/Data color) on hover */
    text-shadow: 0 0 5px #00ff00;
}