*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

:root{
    --green:#123D2F;
    --green2:#174C3A;
    --green3:#0A2B21;

    --cream:#FFF8ED;
    --latte:#E6D1B3;

    --gold:#B88932;
    --gold2:#D0A76A;

    --correct:#397357;
    --present:#A77D35;
    --wrong:#34443E;
}

body{
    min-height:100vh;
    background:
        radial-gradient(
            circle at 50% -10%,
            #24654e 0%,
            var(--green) 38%,
            var(--green3) 100%
        );

    color:var(--cream);

    font-family:
        Arial,
        sans-serif;
}

button{
    font:inherit;
}

button,
a{
    -webkit-tap-highlight-color:transparent;
}


/* ================================
   SAYFA
================================ */

.game-page{
    width:min(1050px,92%);
    min-height:100vh;

    margin:auto;

    padding:
        28px 0
        70px;
}


/* ================================
   HEADER
================================ */

.topbar{
    display:grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items:center;
}

.back-link{
    color:var(--cream);

    text-decoration:none;

    font-size:12px;

    opacity:.65;
}

.brand{
    text-align:center;
}

.brand span{
    display:block;

    color:var(--gold2);

    font-size:8px;

    letter-spacing:4px;
}

.brand strong{
    display:block;

    margin-top:5px;

    font-family:
        Georgia,
        serif;

    font-size:18px;

    font-weight:normal;
}

.daily-rights{
    justify-self:end;

    text-align:right;
}

.daily-rights span{
    display:block;

    font-size:7px;

    letter-spacing:2px;

    opacity:.5;
}

.daily-rights strong{
    display:block;

    margin-top:4px;

    font-family:
        Georgia,
        serif;

    font-size:18px;
}


/* ================================
   BAŞLANGIÇ
================================ */

.start-screen{
    padding-top:70px;
}

.start-heading{
    max-width:650px;

    margin:auto;

    text-align:center;
}

.eyebrow{
    color:var(--gold2);

    font-size:8px;

    letter-spacing:3px;
}

.start-heading h1{
    margin-top:15px;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            42px,
            7vw,
            72px
        );

    line-height:.95;

    font-weight:normal;
}

.start-heading h1 em{
    color:var(--latte);

    font-weight:normal;
}

.start-heading p{
    max-width:440px;

    margin:
        22px auto 0;

    line-height:1.7;

    font-size:12px;

    opacity:.62;
}


/* ================================
   ZORLUK KARTLARI
================================ */

.difficulty-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:18px;

    max-width:780px;

    margin:
        45px auto 0;
}

.difficulty-card{
    position:relative;

    padding:28px;

    border:
        1px solid
        rgba(255,248,237,.13);

    border-radius:22px;

    background:
        rgba(255,255,255,.045);

    color:var(--cream);

    text-align:left;

    cursor:pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.difficulty-card:hover{
    transform:
        translateY(-5px);

    border-color:
        rgba(230,209,179,.4);

    background:
        rgba(255,255,255,.075);
}

.difficulty-card.premium{
    border-color:
        rgba(184,137,50,.42);

    background:
        linear-gradient(
            145deg,
            rgba(184,137,50,.13),
            rgba(255,255,255,.035)
        );
}

.difficulty-top{
    display:flex;

    justify-content:
        space-between;

    color:var(--gold2);

    font-size:7px;

    letter-spacing:2px;
}

.letter-preview{
    display:flex;

    gap:5px;

    margin:
        25px 0;
}

.letter-preview i{
    width:34px;
    height:39px;

    display:flex;

    align-items:center;
    justify-content:center;

    border:
        1px solid
        rgba(255,248,237,.18);

    border-radius:7px;

    background:
        rgba(255,255,255,.04);

    font-family:
        Georgia,
        serif;

    font-style:normal;
}

.letter-preview.seven i{
    width:30px;
}

.difficulty-card h2{
    font-family:
        Georgia,
        serif;

    font-size:32px;

    font-weight:normal;
}

.difficulty-card p{
    margin-top:9px;

    max-width:260px;

    font-size:11px;

    line-height:1.6;

    opacity:.58;
}

.reward-level{
    margin-top:25px;
}

.reward-level > span{
    font-size:7px;

    letter-spacing:2px;

    opacity:.5;
}

.reward-level div{
    display:flex;

    gap:5px;

    margin-top:8px;
}

.reward-level b,
.reward-level i{
    width:28px;
    height:3px;

    border-radius:10px;

    background:
        rgba(255,255,255,.13);
}

.reward-level b{
    background:
        var(--gold);
}

.play-text{
    display:block;

    margin-top:25px;

    color:var(--latte);

    font-size:9px;

    letter-spacing:1px;
}


/* ================================
   KURAL
================================ */

.rules{
    display:flex;

    align-items:center;

    gap:15px;

    max-width:470px;

    margin:
        35px auto 0;

    padding:16px 20px;

    border-top:
        1px solid
        rgba(255,255,255,.1);
}

.rules > span{
    font-family:
        Georgia,
        serif;

    font-size:35px;

    color:var(--gold2);
}

.rules p{
    font-size:10px;

    line-height:1.6;

    opacity:.6;
}


/* ================================
   OYUN
================================ */

.play-screen{
    width:min(540px,100%);

    margin:
        55px auto 0;
}

.play-screen[hidden]{
    display:none;
}

.play-heading{
    text-align:center;
}

.small-back{
    display:block;

    margin:
        0 auto 20px;

    border:0;

    background:none;

    color:var(--cream);

    font-size:9px;

    opacity:.55;

    cursor:pointer;
}

.difficulty-label{
    color:var(--gold2);

    font-size:8px;

    letter-spacing:3px;
}

.play-heading h2{
    margin-top:7px;

    font-family:
        Georgia,
        serif;

    font-size:37px;

    font-weight:normal;
}

.play-heading p{
    margin-top:7px;

    font-size:10px;

    opacity:.55;
}


/* ================================
   İPUCU
================================ */

.hint-card{
    display:flex;

    justify-content:
        space-between;

    align-items:center;

    gap:20px;

    margin:
        24px auto;

    padding:
        15px 18px;

    border:
        1px solid
        rgba(184,137,50,.28);

    border-radius:13px;

    background:
        rgba(184,137,50,.07);
}

.hint-card span{
    display:block;

    color:var(--gold2);

    font-size:7px;

    letter-spacing:2px;
}

.hint-card strong{
    display:block;

    margin-top:5px;

    font-family:
        Georgia,
        serif;

    font-size:16px;

    font-weight:normal;
}

.hint-card small{
    max-width:170px;

    text-align:right;

    font-size:8px;

    line-height:1.5;

    opacity:.45;
}


/* ================================
   BOARD
================================ */

.word-board{
    display:flex;

    flex-direction:column;

    gap:6px;

    width:100%;

    margin:auto;
}

.word-row{
    display:flex;

    justify-content:center;

    gap:6px;
}

.letter-box{
    width:52px;
    height:52px;

    display:flex;

    align-items:center;
    justify-content:center;

    border:
        1px solid
        rgba(255,248,237,.18);

    border-radius:9px;

    background:
        rgba(255,255,255,.035);

    font-family:
        Georgia,
        serif;

    font-size:23px;

    transition:
        .2s ease;
}

.letter-box.filled{
    border-color:
        rgba(230,209,179,.65);

    transform:
        scale(1.04);
}

.letter-box.hint{
    color:#241b0c;

    background:
        var(--latte);

    border-color:
        var(--latte);
}

.letter-box.correct{
    background:
        var(--correct);

    border-color:
        var(--correct);
}

.letter-box.present{
    background:
        var(--present);

    border-color:
        var(--present);
}

.letter-box.absent{
    background:
        var(--wrong);

    border-color:
        var(--wrong);
}


/* ================================
   KLAVYE
================================ */

.keyboard{
    display:flex;

    flex-direction:column;

    gap:6px;

    margin-top:25px;
}

.keyboard-row{
    display:flex;

    justify-content:center;

    gap:4px;
}

.keyboard button{
    min-width:36px;
    height:47px;

    padding:0 7px;

    border:0;

    border-radius:7px;

    background:
        rgba(255,248,237,.12);

    color:var(--cream);

    font-size:11px;

    font-weight:bold;

    cursor:pointer;
}

.keyboard button:active{
    transform:
        scale(.93);
}

.keyboard .wide{
    min-width:58px;

    font-size:8px;
}

.keyboard button.correct{
    background:
        var(--correct);
}

.keyboard button.present{
    background:
        var(--present);
}

.keyboard button.absent{
    background:
        var(--wrong);

    opacity:.55;
}


/* ================================
   MODAL
================================ */

.modal{
    position:fixed;

    inset:0;

    z-index:1000;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:20px;
}

.modal[hidden]{
    display:none;
}

.modal-overlay{
    position:absolute;

    inset:0;

    background:
        rgba(3,18,13,.88);

    backdrop-filter:
        blur(10px);
}

.reward-card{
    position:relative;

    z-index:2;

    width:min(430px,100%);

    padding:
        43px 34px;

    border-radius:24px;

    background:
        var(--cream);

    color:
        var(--green);

    text-align:center;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,.4);

    animation:
        popup .4s ease;
}

@keyframes popup{
    from{
        opacity:0;

        transform:
            translateY(20px)
            scale(.95);
    }

    to{
        opacity:1;

        transform:none;
    }
}

.reward-icon{
    display:block;

    margin-bottom:15px;

    color:var(--gold);

    font-size:35px;
}

.reward-small{
    color:var(--gold);

    font-size:8px;

    letter-spacing:3px;
}

.reward-card h2{
    margin-top:8px;

    font-family:
        Georgia,
        serif;

    font-size:35px;

    font-weight:normal;
}

.reward-card > p{
    margin-top:10px;

    font-size:11px;

    opacity:.55;
}

.reward-name{
    margin:
        27px 0;

    color:var(--gold);

    font-family:
        Georgia,
        serif;

    font-size:27px;
}

.cashier-box{
    padding:17px;

    border:
        1px solid
        rgba(18,61,47,.15);

    border-radius:13px;

    background:
        rgba(18,61,47,.04);
}

.cashier-box span{
    font-size:8px;

    letter-spacing:2px;

    color:var(--gold);
}

.cashier-box p{
    margin-top:7px;

    font-size:11px;

    line-height:1.5;
}

.reward-date{
    margin-top:14px;

    font-size:9px;

    opacity:.45;
}

.reward-card button{
    width:100%;

    margin-top:23px;

    padding:14px;

    border:0;

    border-radius:100px;

    background:
        var(--green);

    color:
        var(--cream);

    cursor:pointer;

    font-size:10px;
}


/* ================================
   KAYITLI ÖDÜL
================================ */

.saved-reward{
    position:fixed;

    right:20px;
    bottom:20px;

    z-index:100;

    padding:
        14px 19px;

    border:
        1px solid
        rgba(184,137,50,.35);

    border-radius:14px;

    background:
        var(--cream);

    color:
        var(--green);

    text-align:left;

    cursor:pointer;

    box-shadow:
        0 15px 50px
        rgba(0,0,0,.25);
}

.saved-reward span{
    display:block;

    color:
        var(--gold);

    font-size:7px;

    letter-spacing:2px;
}

.saved-reward strong{
    display:block;

    margin-top:4px;

    font-family:
        Georgia,
        serif;
}

.saved-reward small{
    display:block;

    margin-top:4px;

    font-size:8px;

    opacity:.5;
}


/* ================================
   MOBİL
================================ */

@media(max-width:650px){

    .game-page{
        width:94%;
    }

    .brand{
        display:none;
    }

    .topbar{
        grid-template-columns:
            1fr 1fr;
    }

    .start-screen{
        padding-top:48px;
    }

    .difficulty-grid{
        grid-template-columns:
            1fr;
    }

    .start-heading h1{
        font-size:43px;
    }

    .difficulty-card{
        padding:23px;
    }

    .letter-box{
        width:
            min(48px,11.5vw);

        height:
            min(48px,11.5vw);

        font-size:20px;
    }

    .keyboard button{
        flex:1;

        min-width:0;

        height:44px;

        padding:0 2px;

        font-size:10px;
    }

    .keyboard .wide{
        flex:1.45;

        min-width:0;
    }

    .hint-card{
        align-items:flex-start;
    }

    .saved-reward{
        left:14px;
        right:14px;
        bottom:14px;
    }

}