:root {
    --bg-color: #050510;
    --primary-color: #00f2ff;
    --secondary-color: #008cff;
    --text-color: #ffffff;
    --glow: 0 0 20px var(--primary-color), 0 0 50px var(--secondary-color);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ui-layer {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Let clicks pass to canvas/orb logic if needed, but we'll put events on orb */
}

.timer-container {
    position: relative;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.timer-container:hover {
    transform: scale(1.05);
}

.orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 0px rgba(0,0,0,0);
    transition: all 0.5s ease;
}

.timer-container.active .orb {
    box-shadow: var(--glow);
    border-color: rgba(0, 242, 255, 0.5);
    animation: pulse 4s infinite ease-in-out;
}

h1#timer {
    font-size: 4rem;
    font-weight: 200;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    position: relative;
    z-index: 3;
}

p#status {
    margin-top: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
    text-transform: uppercase;
}

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

.controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.timer-container.active .controls {
    opacity: 0;
    pointer-events: none;
}

.controls button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.controls button:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.1);
}

.controls button:active {
    transform: scale(0.95);
}
