@media (pointer:none), (pointer:coarse) {
    /* ✅ Lock page scroll (no background scroll/URL bar collapse trigger) */
    html, body {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body {
        background-position-x: 55% !important;
        background-repeat: no-repeat;
        width: auto;
        height: 100vh;
        background-image: url("../art/bg-min.jpg");
    }
    
    input {
        font-size: 4rem;
        letter-spacing: 2rem;
        width: 30rem;
        height: 11rem;
        padding-left: 2rem;
    }
    
    #title-img{
        width: 30rem;
        margin-bottom: 2rem;
    }
    
    .btn, .txt{
        font-size: 4rem;
    }

    .txtshadow {
        text-shadow: 0.2rem 0.2rem black;
    }

    #codeBlock {
        padding: 2rem;
        width: 50rem;
        height: 29rem;
        margin-bottom: 2rem;
    }
    
    #hint, #hint2 {
        width: 59rem;/*40rem bij 15 rem*/
        height: 22rem;
        margin-bottom: 2rem;
        display: grid;
        padding-bottom: 2rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    /* Wrapper owns the background on mobile too */
    .textarea-frame {
        width: 58rem;
        height: 34rem;
        background-image: url("../art/bigrectangle.webp");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        padding: 2rem 3.5rem;   /* inner safe area */
        box-sizing: border-box;
        overflow: hidden;
        margin-bottom: 4rem;
    }
    
    /* TEXTAREA (mobile) */
        #sentenceInput {
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        outline: none;
        padding: 0;
        box-sizing: border-box;
        font-size: 4rem;
        color: white;
        font-family: CurlzMT;
        text-align: center;
        resize: none;
        overflow-y: auto;
        overflow-x: hidden;
        white-space: pre-wrap;
        word-break: break-word;

        /* hide scrollbar but keep scroll */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #sentenceInput::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }

    #storyDisplay {
        padding: 1rem;
        width: 90rem;
        height: 89rem;
        font-size: 4rem;
        text-align: center;
        padding-top: 18rem;
        padding-left: 24rem;
        padding-right: 27rem;
        padding-bottom: 15rem;
        margin-top: -20rem;
    }

    #shareBtn {
        width: 5rem;
        height: 5rem;
        margin-left: 4.3rem;
        margin-top: 3.8rem;
        visibility: visible;
    }
    
    #inGameCode {
        font-size: xxx-large;
    }

    #playerCount {
        font-size: xxx-large;
    }

    #newGameButton {
        background-size: 30rem;
        width: 30rem;
        height: 12rem;
        padding-top: 2rem;
        font-size: 4rem;
        margin-bottom: 2rem;
    }
    
    #joinGameButton {
        background-size: 30rem;
        width: 30rem;
        height: 12rem;
        padding-top: 2rem;
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    #creditsButton {
        background-size: 30rem;
        width: 30rem;
        height: 12rem;
        padding-top: 2rem;
        font-size: 4rem;
    }

    #coffeeBtn {
        background-size: 30rem;
        width: 30rem;
        height: 12rem;
        padding-top: 2rem;
        font-size: 4rem;
    }
      
    #startGameButton {
        background-size: 30rem;
        width: 30rem;
        height: 12rem;
        text-align: center;
        padding-bottom: 2rem;
        padding-right: 2rem;
    }

    #waitRoomButtonsWrapper {
        display: block;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    #shareRoomButton{
        background-size: 30rem;
        width: 30rem;
        height: 12rem;
        text-align: center;
        padding-bottom: 2rem;
        padding-right: 2rem;
    }

    #endButtonsWrapper  {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    #replayGameButton {
        height: 7rem;
        width: 7rem;
        padding-bottom: 2rem;
    }
    
    #finishGameButton {
        background-size: 30rem;
        width: 30rem;
        height: 12rem;
        padding-bottom: 2rem;
    }
    
    #enterSentenceButton {
        background-size: 30rem;
        width: 30rem;
        height: 12rem;
        padding-bottom: 2rem;
        padding-right: 2rem;
    }

    #customAlertDialog {
        margin-right: -6rem;
    }
    
    #codeBlockAlert {
        padding: 2rem;
        width: 50rem;
        height: 29rem;
        margin-left: -4rem; /*puke line*/
        margin-bottom: 2rem;
    }

    #scrollTitle {
        font-size: 4rem;
        margin-top: -10rem;
    }
    
    #theStory {
        margin-top: 3rem;
        max-height: 54rem;
        min-height: 54rem;
        max-width: 38rem;
    }
    
    #scrollStudioName{
        font-size: 3rem;
        margin-left: -3.3rem;
        margin-top: 5rem;
    }

    /*
    * Drop down menu
    */
    #dropdownWrapper {
        display: flex;
        width: 100%;
        margin-top: 1rem;
        padding-top: 4rem;
    }
    .dropbtn {
        background-image: url("../art/square.webp");
        font-size: 3rem;
        height: 7rem;
        width: 7rem;
        text-align: center;
    }
    
    .dropdown-content a {
        width: 7rem;
        height: 7rem;
        font-size: 3rem;
        text-align: center;    
        text-shadow: 0.2rem 0.2rem black;
    }
    /*
    * End drop down menu
    */
}
