
/* =========================
   GLOBAL SETTINGS
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
}

/* =========================
   AR CAMERA SCENE
========================= */

a-scene {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Keep AR canvas full screen */

.a-canvas {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

/* =========================
   WELCOME SCREEN
========================= */

#welcome {
    position: fixed;
    inset: 0;
    z-index: 10;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 25px;
    text-align: center;

    background: linear-gradient(
        135deg,
        #fff0f5,
        #ffe0eb,
        #fce4ec
    );

    color: #4a1930;
}

/* Welcome heading */

#welcome h1 {
    font-size: clamp(28px, 7vw, 42px);
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 18px;
    color: #c2185b;
    text-shadow: 0 2px 8px rgba(194, 24, 91, 0.12);
}

/* Welcome message */

#welcome p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 22px;
    color: #71334e;
}

/* =========================
   START BUTTON
========================= */

#startButton {
    display: inline-block;

    padding: 15px 28px;
    margin: 10px 0;

    border: none;
    border-radius: 50px;

    background: linear-gradient(
        135deg,
        #ec407a,
        #c2185b
    );

    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.3px;

    cursor: pointer;

    box-shadow: 0 8px 22px rgba(194, 24, 91, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

#startButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(194, 24, 91, 0.35);
}

#startButton:active {
    transform: scale(0.97);
}

#startButton:focus-visible {
    outline: 3px solid #880e4f;
    outline-offset: 4px;
}

/* =========================
   HINT TEXT
========================= */

#welcome .hint {
    margin-top: 15px;
    margin-bottom: 0;

    font-size: 13px;
    color: #89566d;
    opacity: 0.9;
}

/* =========================
   STATUS MESSAGE
========================= */

#status {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);

    width: max-content;
    max-width: calc(100% - 30px);

    padding: 11px 18px;
    border-radius: 30px;

    z-index: 5;

    color: #ffffff;
    background: rgba(40, 20, 30, 0.72);

    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    pointer-events: none;
}

/* =========================
   SOUND BUTTON
========================= */

#soundButton {
    position: fixed;
    right: 15px;
    bottom: 20px;

    z-index: 8;

    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;

    color: #ffffff;
    background: rgba(194, 24, 91, 0.9);

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#soundButton[hidden] {
    display: none !important;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media screen and (max-width: 600px) {

    #welcome {
        padding: 20px;
    }

    #welcome h1 {
        font-size: 30px;
        margin-bottom: 14px;
    }

    #welcome p {
        font-size: 15px;
    }

    #startButton {
        width: auto;
        max-width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    #status {
        top: 12px;
        max-width: calc(100% - 24px);
        padding: 9px 14px;
        font-size: 12px;
    }

    #soundButton {
        right: 12px;
        bottom: 15px;
        font-size: 13px;
    }
}

/* =========================
   SMALL SCREEN HEIGHT
========================= */

@media screen and (max-height: 500px) {

    #welcome {
        padding: 12px;
    }

    #welcome h1 {
        font-size: 25px;
        margin-bottom: 8px;
    }

    #welcome p {
        margin-bottom: 10px;
        font-size: 14px;
    }

    #startButton {
        padding: 10px 20px;
        margin: 5px 0;
    }

    #welcome .hint {
        margin-top: 8px;
    }
}

