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

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: #020617;
    min-height: 100vh;
    overflow: hidden;
}

#wrap {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#game-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

#game-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#audio-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 55;
    padding: 10px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #ea580c, #c2410c);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

#audio-btn:hover {
    filter: brightness(1.08);
}

#audio-btn.muted {
    background: #475569;
}

#hud {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 120px;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    pointer-events: none;
    justify-content: flex-start;
}

.hud-row {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 8px 14px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
}

.hud-row .label {
    color: #94a3b8;
    font-weight: 500;
    margin-right: 8px;
}

#hud span:last-child {
    color: #38bdf8;
    font-weight: 700;
}

#hint {
    flex-basis: 100%;
    font-size: 0.78rem;
    color: #64748b;
    padding-left: 2px;
}

#portal-link {
    position: fixed;
    bottom: 14px;
    left: 14px;
    z-index: 60;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    text-decoration: none;
}

#portal-link:hover {
    color: #fff;
    border-color: #38bdf8;
}
