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

:root {
    --bg: #06060a;
    --text: #d4d0c8;
    --text-secondary: #7a7570;
    --text-dim: #2e2c28;
    --accent-focus: #7a8a6a;
    --accent-break: #8a7a6a;
    --accent: var(--accent-focus);
    --glow: rgba(122, 138, 106, 0.12);
}

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

.app {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Phase Label */
.phase-label {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--accent);
    transition: color 0.8s ease;
}

/* Timer Ring */
.timer-ring {
    position: relative;
    width: 260px;
    height: 260px;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 2;
}

.ring-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.8s ease;
    filter: drop-shadow(0 0 8px var(--glow));
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-size: 52px;
    font-weight: 200;
    letter-spacing: 4px;
    color: var(--text);
}

/* Start Button */
.start-btn {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 12px 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn:hover {
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 15px var(--glow);
}

/* Session Dots */
.session-dots {
    display: flex;
    gap: 8px;
}

.session-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: background 0.3s;
}

.session-dot.completed {
    background: var(--accent);
}

.session-dot.active {
    background: var(--accent);
    box-shadow: 0 0 6px var(--glow);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 16px;
    width: 100%;
    text-align: center;
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.footer-text a {
    color: var(--text-secondary);
    text-decoration: none;
}

/* Phase themes */
body.phase-break {
    --accent: var(--accent-break);
    --glow: rgba(138, 122, 106, 0.12);
}

@media (max-width: 480px) {
    .timer-ring { width: 220px; height: 220px; }
    .timer-display { font-size: 42px; }
}
