/* ============================================
   The Wrong Door — Loom Experience
   play.loom.web.id/wrong-door/
   ============================================ */

:root {
    --bg: #1e1b4b;
    --text: #e0f2fe;
    --text-dim: rgba(224, 242, 254, 0.35);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    font-family: 'Cabinet Grotesk', sans-serif;
    color: var(--text);
}

/* Full-viewport canvas */
#room-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    display: block;
}

/* Hint text — bottom center */
.overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6vh;
    z-index: 10;
}

.hint {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    opacity: 0;
    text-align: center;
    transition: opacity 0.8s ease;
}

.hint.visible {
    opacity: 1;
}

/* Big state messages — center screen */
.state-msg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    opacity: 0;
    text-align: center;
    padding: 2rem;
}

/* Back nav */
.back-link {
    position: fixed;
    top: 4vh;
    left: 4vw;
    z-index: 30;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.03em;
    opacity: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.back-link:hover {
    color: var(--text);
}
