:root {
    --bg-color: #f4f0ea;
    --text-color: #111111;
    --border-color: #111111;
    --accent: #4f46e5;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 5rem 2rem 2rem 2rem;
}

.header {
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

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

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

.subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

#physics-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.controls {
    position: fixed;
    bottom: 3rem;
    display: flex;
    gap: 1.5rem;
    z-index: 100;
}

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

.main-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--border-color);
}

.secondary {
    background-color: #fff;
    color: var(--text-color);
}

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

.hidden {
    display: none !important;
}