*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
}

body{
    font-family:Arial,sans-serif;
    color:white;

    background:
    radial-gradient(
        circle at center,
        #16213e 0%,
        #0f172a 40%,
        #050510 100%
    );

    display:flex;
    justify-content:center;
    align-items:center;
}

/* =========================
   START SCREEN
========================= */

.container{
    position:relative;
    z-index:2;

    width:90%;
    max-width:700px;

    text-align:center;
}

.portal{
    width:220px;
    height:220px;

    margin:0 auto 40px;

    border-radius:50%;

    background:
    radial-gradient(
        circle,
        #7df9ff 0%,
        #4facfe 35%,
        #00f2fe 65%,
        transparent 100%
    );

    box-shadow:
        0 0 30px #00f2fe,
        0 0 80px #00f2fe,
        0 0 150px rgba(0,242,254,.7);

    animation:
        pulse 3s ease-in-out infinite;
}

.container h1{
    font-size:4rem;
    letter-spacing:6px;

    margin-bottom:15px;

    text-shadow:
        0 0 15px rgba(255,255,255,.4),
        0 0 35px rgba(0,242,254,.3);
}

.subtitle{
    font-size:1.2rem;

    opacity:.85;

    margin-bottom:40px;

    line-height:1.6;
}

button{
    border:none;

    padding:18px 35px;

    border-radius:999px;

    font-size:1rem;
    font-weight:bold;

    cursor:pointer;

    color:black;

    background:
    linear-gradient(
        45deg,
        #00f2fe,
        #4facfe
    );

    box-shadow:
        0 0 15px #00f2fe,
        0 0 40px #00f2fe;

    transition:.3s;
}

button:hover{
    transform:translateY(-2px);
}

button:active{
    transform:scale(.95);
}

.stars{
    position:absolute;
    inset:0;

    background-image:
        radial-gradient(
            white 1px,
            transparent 1px
        );

    background-size:40px 40px;

    opacity:.15;
}

/* =========================
   PORTAL HALL
========================= */

.hall{

    width:100%;
    height:100vh;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    padding:30px;

    text-align:center;

    background:
    radial-gradient(
        circle,
        #111827,
        #020617
    );
}

.hall h1{

    font-size:3rem;

    margin-bottom:15px;

    text-shadow:
        0 0 20px #00f2fe;
}

.hall-subtitle{

    opacity:.75;

    margin-bottom:40px;
}

.portal-grid{

    width:100%;
    max-width:500px;

    display:flex;
    flex-direction:column;

    gap:16px;
}

.portal-btn{

    width:100%;

    padding:18px;

    border:none;

    border-radius:18px;

    font-size:1rem;

    transition:.3s;
}

.portal-btn.active{

    background:
    linear-gradient(
        45deg,
        #00f2fe,
        #4facfe
    );

    color:black;

    box-shadow:
        0 0 20px #00f2fe,
        0 0 40px rgba(0,242,254,.5);
}

.portal-btn.locked{

    background:#111;

    color:#666;

    border:1px solid #222;
}

/* =========================
   DREAMWEAVER UI
========================= */

#dreamweaver-ui{

    position:fixed;

    top:20px;
    left:20px;

    z-index:1000;

    padding:12px 18px;

    border-radius:12px;

    background:
        rgba(0,0,0,.35);

    backdrop-filter:blur(8px);

    font-size:20px;
    font-weight:bold;

    color:white;

    border:
        1px solid rgba(255,255,255,.1);
}

#gameCanvas{

    position:fixed;

    top:0;
    left:0;

    width:100vw;
    height:100vh;

    display:block;

    touch-action:none;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes pulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

    100%{
        transform:scale(1);
    }
}