body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, #1e3c72, #2a5298);
    font-family: Arial, sans-serif;
    color: white;
    text-align: center;
}

.container {
    margin-top: 40px;
}

.title {
    font-size: 48px;
    margin-bottom: 40px;
}

/* Tagline styling */
#tagline {
    font-size: 1.35rem;      /* universally readable on phones */
    font-weight: 400;
    color: #f2f2f2;
    text-align: center;
    max-width: 700px;
    margin: 15px auto 30px auto;
    line-height: 1;
    opacity: 0.95;
    padding: 0 10px;         /* prevents edge-to-edge text on phones */
}

.subtitle {
    font-size: 24px;
    margin-top: 40px;
}


/* Purchase note styling */
.purchase-note {
    font-size: 1.25rem;
    opacity: 1;
    margin-top: 10px;
    margin-bottom: 20px;
}



.main-btn {
    background-color: #ffcc00;
    color: black;
    padding: 15px 30px;   /* keep capsule size the same */
    font-size: 26px;      /* same size unless you want it larger */
    font-weight: 600;     /* added boldness for readability */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 20px 0;
}

.main-btn:hover {
    background-color: #ffdd33;
}


/* ============================================================
   ONBOARDING — REGISTER TREASURE CHESTS
   ============================================================ */

.register-chest-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    width: 100%;
    margin: 10px auto 5px auto;
}

.onboarding-chest {
    width: clamp(180px, 22vw, 300px);
    height: auto;
    object-fit: contain;

    /* Decorative images should not block buttons */
    pointer-events: none;

    flex-shrink: 1;
}

.register-chest-row #registerEmailBtn {
    flex-shrink: 0;
}




/* Purchased state — visually disabled */
.purchased {
    opacity: 0.5;
}




.device-buttons {
    margin-top: 20px;
}

.device-btn {
    background-color: #ffffff;
    color: #1e3c72;
    padding: 12px 25px;     /* keep capsule size the same */
    font-size: 26px;        /* increased text size */
    font-weight: 600;       /* added boldness for readability */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
}

.device-btn:hover {
    background-color: #e6e6e6;
}


/* ============================================================
   GLOBAL FORM FIELD UPGRADE — PHONE FRIENDLY
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 85%;                 /* large but not edge-to-edge */
    max-width: 500px;           /* perfect on desktop too */
    padding: 12px 16px;         /* big tap target */
    font-size: 1.3rem;          /* readable on phones */
    border-radius: 10px;        /* modern rounded look */
    border: none;
    margin: 8px auto;          /* spacing between fields */
    display: block;             /* centers the fields */
    background: #ffffff;
    color: #1e3c72;
}

/* Placeholder text larger */
input::placeholder {
    font-size: 1.2rem;
    color: #7a8ca8;
}

/* Login + Create Account buttons */
.login-btn,
.create-btn {
    background-color: #ffcc00;
    color: black;
    padding: 18px 30px;         /* bigger button */
    font-size: 2rem;            /* readable on phones */
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.login-btn:hover,
.create-btn:hover {
    background-color: #ffdd33;
}





/* ============================================================
   DEVICE INSTRUCTIONS BUTTON
   ============================================================ */

.device-instructions-row {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 12px;
}

.device-instructions-btn {
    background-color: #6a2ca0;
    color: #ffffff;

    padding: 12px 28px;

    font-size: 26px;
    font-weight: 600;

    border: none;
    border-radius: 8px;

    cursor: pointer;
}

.device-instructions-btn:hover {
    background-color: #7b38b5;
}



/* ============================================================
   DEVICE INSTRUCTIONS PAGE
   ============================================================ */

.device-instructions-page {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    padding-bottom: 40px;
}


/* Main instructions panel */
.instructions-panel {
    background: rgba(255, 255, 255, 0.96);
    color: #1e3c72;

    width: 90%;
    max-width: 800px;

    margin: 0 auto 20px auto;
    padding: 30px 40px;

    border-radius: 14px;
    box-sizing: border-box;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);

    text-align: left;
}


/* Section headings */
.instructions-panel h2 {
    color: #1e3c72;

    font-size: 24px;
    font-weight: 700;

    margin-top: 28px;
    margin-bottom: 8px;
}


/* Prevent extra space above first heading */
.instructions-panel h2:first-child {
    margin-top: 0;
}


/* Instruction text */
.instructions-panel p {
    color: #243b63;

    font-size: 20px;
    line-height: 1.5;

    margin-top: 0;
    margin-bottom: 18px;
}


/* Sign Up Page return button */
.device-instructions-page .main-btn {
    margin-top: 18px;
}


/* ============================================================
   DEVICE INSTRUCTIONS — SMALL SCREEN ADJUSTMENT
   ============================================================ */

@media (max-width: 600px) {

    .device-instructions-page {
        width: 94%;
        margin-top: 25px;
    }

    .device-instructions-page .title {
        font-size: 36px;
        margin-bottom: 25px;
    }

    .instructions-panel {
        width: 100%;
        padding: 24px 20px;
    }

    .instructions-panel h2 {
        font-size: 22px;
    }

    .instructions-panel p {
        font-size: 18px;
        line-height: 1.45;
    }
}


