* {
    box-sizing: border-box;
}

/* Force landscape on mobile by rotating the viewport */
@media (max-width: 600px) and (orientation: portrait) {
    html {
        transform: rotate(90deg);
        transform-origin: left top;
        width: 100vh;
        height: 100vw;
        overflow: hidden;
        position: absolute;
        top: 100%;
        left: 0;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f5f7ff;
    background:
        radial-gradient(circle at top, rgba(76, 110, 245, 0.25), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #111827 55%, #050816 100%);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html,
#app {
    width: 100%;
    height: 100%;
}

#app {
    min-height: 100vh;
}

.game-shell {
    min-height: 100vh;
}

.game-shell__stage {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: auto;
    image-rendering: smooth;
}

.gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate__box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 340px;
}

.gate__emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.gate__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: #f5f7ff;
}

.gate__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gate__input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #f5f7ff;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    outline: none;
    text-align: center;
    letter-spacing: 0.1em;
}

.gate__input:focus {
    border-color: rgba(76, 110, 245, 0.8);
}

.gate__btn {
    background: #4c6ef5;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem;
    transition: background 0.15s;
}

.gate__btn:hover {
    background: #3b5bdb;
}

.gate__error {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
    min-height: 1.2em;
}
