:root {
    --primary-gold: #d4af37;
    --primary-red: #c30010;
    --glass-bg: rgba(0, 0, 0, 0.85);
    --glass-border: 1px solid rgba(212, 175, 55, 0.4);
    --text-color: #ffffff;
}

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

body, html {
    width: 100%; height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000; color: var(--text-color);
    user-select: none; -webkit-user-select: none;
    overflow-x: hidden;
}

.container {
    width: 100%; min-height: 100vh;
    position: relative; display: flex; flex-direction: column;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(20px);
}

.container::before {
    content: ""; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background-image: url('../img/background.png');
    background-size: cover; background-position: center;
    background-repeat: no-repeat; background-attachment: fixed;
    filter: blur(8px) brightness(0.6); z-index: -1;
}

.header {
    width: 100%; padding: 20px;
    display: flex; justify-content: space-between;
    align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.back-btn {
    background: none; border: none; color: white;
    cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px;
    opacity: 0.8; text-decoration: none;
}

.back-btn:hover { opacity: 1; color: var(--primary-gold); }

.page-title {
    color: var(--primary-gold); font-size: 1.5rem;
    text-transform: uppercase; letter-spacing: 1px;
}

.main-content {
    flex: 1; padding: 40px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: bold; color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    margin: 30px 0; text-align: center;
    padding: 20px; border-radius: 15px;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(212, 175, 55, 0.3);
    min-width: 300px; max-width: 90%;
}

.controls-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 15px; width: 100%; max-width: 400px;
    margin-top: 20px;
}

.timer-btn {
    padding: 15px; border-radius: 50px;
    border: none; font-weight: bold;
    font-size: clamp(1rem, 2vw, 1.1rem);
    cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center;
    justify-content: center; gap: 8px;
}

.start-btn { background: var(--primary-red); color: white; }
.pause-btn { background: var(--primary-gold); color: black; }
.reset-btn { background: #333; color: white; }

.timer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }