:root {
    --bg-color: #111111;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --accent: #581c87;
}

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

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

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.back-link {
    position: fixed;
    top: 2rem; left: 2rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    border: 2px solid #fff;
    padding: 0.5rem 1rem;
    background: transparent;
    box-shadow: 4px 4px 0 #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 1rem;
}

.tile {
    width: 100px;
    height: 100px;
    border: 3px solid #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.tile.active {
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

.title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
}

#win-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.main-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: #fff;
    border: 4px solid #fff;
    border-radius: 12px;
    box-shadow: 6px 6px 0 #fff;
    cursor: pointer;
    margin-top: 2rem;
}

.hidden { display: none !important; }
