* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    z-index: 2;
}

.start-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff4757, #ff3742);
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: calc(50vh - 232px);
    z-index: 10;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(255, 71, 87, 0.6);
}

.start-button:active {
    transform: scale(0.98);
}

.timer-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    
    /* width: 600px;
    height: 600px; */
    width: calc(100vw - 32px);
    max-width: calc(100vh - 232px);
    max-height: calc(100vh - 232px);
    min-width: 100px;
    min-height: 100px;
    aspect-ratio: 1 / 1;

    margin-bottom: 30px;
}

.timer-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* background: conic-gradient(#2ecc71 100%, transparent 100%); */
    background: conic-gradient(#a0f6ff 100%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 0 30px rgba(46, 204, 113, 0.3); */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.timer-circle::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background: #16213e;
    border-radius: 50%;
    z-index: 1;
}

.timer {
    /* font-size: 160px; */
    font-size: 20vh;
    font-weight: bold;
    z-index: 2;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.countdown {
    display: none;
    font-size: 100px;
    font-weight: bold;
    color: #ff4757;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.7);
    animation: pulse 0.5s infinite alternate;
    margin-top: calc(50vh - 182px);
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.controls {
    display: none;
    gap: 20px;
    margin-top: 20px;
}

.control-button {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.fail-button {
    background: linear-gradient(145deg, #ff4757, #ff3742);
}

.win-button {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
}

.restart-button {
    display: none;
    background: linear-gradient(145deg, #3498db, #2980b9);
    margin-top: 20px;
}

.restart-button:hover {
    transform: scale(1.05);
}

.title {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
    color: #ffffff;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0.8;
}

.timer-fail {
    /* background: conic-gradient(#ff4757 0%, transparent 0%) !important; */
    box-shadow: 0 0 100px rgba(255, 71, 87, 0.5) !important;
}

.timer-win {
    /* background: conic-gradient(#2ecc71 0%, transparent 0%) !important; */
    box-shadow: 0 0 100px rgba(46, 204, 113, 0.5) !important;
}

.timer-fail .timer {
    color: #ff4757 !important;
}

.timer-win .timer {
    color: #2ecc71 !important;
}