html, body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fffdd0;
    gap: 0;
    box-sizing: border-box;
    padding: 2rem;
}

h1 {
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

#login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.login-options {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 500px) {
    .login-options {
        flex-direction: column;
    }

    .divider {
        width: 100%;
        height: 1px;
    }
}

.join-side {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#app {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#app.active {
    display: flex;
}

#timer {
    font-size: clamp(5rem, 25vw, 10rem);
    font-weight: 200;
    margin: 0;
    color: #fffdd0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(244, 208, 63, 0.2);
}

button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid #f4d03f;
    border-radius: 50px;
    background: transparent;
    color: #f4d03f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

button:hover {
    background: #f4d03f;
    color: #1a1a1a;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.4);
}

button:active {
    transform: scale(0.98);
}

#status-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

img {
    width: clamp(60px, 12vw, 100px);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 20px rgba(244, 208, 63, 0.3));
}

input[type="text"] {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: 2px solid #f4d03f;
    border-radius: 50px;
    background: transparent;
    color: #fffdd0;
    text-align: center;
    width: clamp(200px, 50vw, 280px);
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: #666;
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
}

.button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

#timerMode {
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    opacity: 0.8;
}

hr {
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
}

.divider {
    width: 1px;
    background-color: #ccc;
    align-self: stretch;
}

#settings-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#settings-overlay.active {
    display: flex;
}

#settings-panel {
    background: #2d2d2d;
    border: 2px solid #f4d03f;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 280px;
}

#settings-panel h3 {
    margin: 0;
    text-align: center;
    color: #f4d03f;
}

#settings-panel label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

#settings-panel label:has(input[type="number"]) {
    flex-direction: column;
    align-items: stretch;
}

#settings-panel label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border: 2px solid #f4d03f;
    border-radius: 50px;
    background: transparent;
    color: #fffdd0;
}
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #f4d03f;
}

#settings-panel input[type="number"] {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #f4d03f;
    border-radius: 50px;
    background: transparent;
    color: #fffdd0;
    text-align: center;
    transition: all 0.3s ease;
}

#settings-panel input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
}

#settings-panel input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f4d03f;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

#settings-panel input[type="checkbox"]:checked {
    background: #f4d03f;
}