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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(180deg, #0a0a1f 0%, #151530 50%, #1a1a35 100%);
    min-height: 100vh;
    color: #e8e8e8;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 30px 0 20px;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 8px;
}

header .date {
    font-size: 0.9rem;
    color: #888;
}

/* Speedometer Section */
.speedometer {
    padding: 20px 0;
}

.arc-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.arc-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Arc paths */
.arc-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
    stroke-linecap: round;
}

.arc-progress {
    fill: none;
    stroke: url(#arcGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 6px rgba(100, 100, 200, 0.5));
}

/* Phase markers on arc */
.phase-marker {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.phase-marker.active {
    opacity: 1;
}

.phase-marker .marker-emoji {
    font-size: 26px;
    filter: grayscale(0.5);
    transition: all 0.3s ease;
}

.phase-marker.active .marker-emoji {
    font-size: 34px;
    filter: grayscale(0) drop-shadow(0 0 15px rgba(255, 255, 200, 0.9));
}

.phase-marker .marker-label {
    font-size: 11px;
    fill: #777;
    font-weight: 400;
    transition: all 0.3s ease;
}

.phase-marker.active .marker-label {
    fill: #d4af37;
    font-weight: 500;
}

/* Needle */
.needle-group {
    transform-origin: 200px 200px;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.needle {
    stroke: #d4af37;
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.7));
}

.needle-center {
    fill: #d4af37;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.8));
}

/* Current phase display */
.current-phase-display {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.current-emoji {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 200, 0.6));
}

/* Phase Info Section */
.phase-info {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-bottom: 20px;
}

.phase-info h2 {
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    color: #d4af37;
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Phase Navigation (Prev/Next) */
.phase-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
}

.nav-phase {
    flex: 1;
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.nav-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.nav-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-emoji {
    font-size: 2rem;
    filter: grayscale(0.3);
}

.nav-name {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.nav-date {
    font-size: 0.75rem;
    color: #888;
}

/* All Phases Strip */
.all-phases {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.all-phases h3 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phases-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.phase-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    transition: all 0.3s ease;
}

.phase-dot .dot-emoji {
    font-size: 1.4rem;
    filter: grayscale(0.6);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.phase-dot.active .dot-emoji {
    font-size: 1.8rem;
    filter: grayscale(0) drop-shadow(0 0 10px rgba(255, 255, 200, 0.7));
    opacity: 1;
}

.phase-dot .dot-label {
    font-size: 0.55rem;
    color: #555;
    text-align: center;
    max-width: 50px;
    line-height: 1.2;
}

.phase-dot.active .dot-label {
    color: #d4af37;
}

/* Progress bar */
.cycle-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.cycle-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    border-radius: 3px;
    transition: width 1s ease;
    width: 0%;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #444;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .current-emoji {
        font-size: 2.5rem;
    }

    .stats-row {
        gap: 10px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .phase-dot .dot-emoji {
        font-size: 1.1rem;
    }

    .phase-dot.active .dot-emoji {
        font-size: 1.4rem;
    }

    .phase-dot .dot-label {
        display: none;
    }

    .nav-emoji {
        font-size: 1.6rem;
    }

    .phase-marker .marker-label {
        display: none;
    }
}
