:root {
    --zen-bg: #03050a;
    --zen-accent: #a5f3fc; /* Cyan-ish for purity */
    --zen-glow: rgba(165, 243, 252, 0.4);
    --zen-text: #f8fafc;
}

body.zen-page {
    background-color: var(--zen-bg);
    color: var(--zen-text);
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    overflow: hidden;
}

#starfield-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.game-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
}

.back-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}
.back-link:hover { color: var(--zen-accent); }

.game-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 5px;
    opacity: 0.8;
}

.game-title .accent { color: var(--zen-accent); }

.height-display {
    text-align: right;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.height-display .label {
    display: block;
    font-size: 0.6rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

.height-display .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zen-accent);
}

/* Canvas Area */
.canvas-wrapper {
    flex-grow: 1;
    border-radius: 30px;
    background: radial-gradient(circle at center, rgba(165, 243, 252, 0.05) 0%, transparent 70%);
    position: relative;
    cursor: crosshair;
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 1s ease;
}

.overlay.active { display: flex; opacity: 1; }

.overlay-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.zen-icon {
    font-size: 4rem;
    color: var(--zen-accent);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--zen-glow));
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.massive-text {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.mission-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
}

.controls-guide {
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
}

.guide-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.key {
    background: var(--zen-accent);
    color: var(--zen-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 800;
    margin-right: 0.5rem;
}

.play-btn {
    background: transparent;
    color: var(--zen-accent);
    border: 1px solid var(--zen-accent);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.play-btn:hover {
    background: var(--zen-accent);
    color: var(--zen-bg);
    box-shadow: 0 0 40px var(--zen-glow);
    transform: translateY(-5px);
}

/* Floating Concept Message */
.zen-message-overlay {
    position: absolute;
    bottom: 20%;
    left: 0; width: 100%;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}

.zen-concept-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 20px rgba(165, 243, 252, 0.6);
}

/* Footer */
.game-footer {
    padding: 1rem 0;
}

.status-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.status-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item span {
    color: var(--zen-accent);
}

@media (max-width: 768px) {
    .massive-text { font-size: 2.2rem; }
    .height-display { display: none; }
}

/* Mobile Controls UI */
.mobile-controls {
    position: absolute;
    bottom: 80px;
    right: 20px;
    display: none; /* Desktop hidden by default */
    flex-direction: column;
    gap: 15px;
    z-index: 50;
}

@media (hover: none) and (pointer: coarse) {
    .mobile-controls {
        display: flex; /* Show on touch devices */
    }
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(165, 243, 252, 0.1);
    border: 1px solid rgba(165, 243, 252, 0.3);
    color: var(--zen-accent);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.control-btn:active {
    background: rgba(165, 243, 252, 0.3);
    transform: scale(0.9);
}

.control-btn.distance-btn {
    font-size: 1.2rem;
}
