.page-header{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.page-header h1{
    font-size:24px;
    color:var(--secondary);
}

.page-header p{
    color:#666;
    font-size:14px;
}

.back-btn{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:var(--secondary);
    color:#fff;
    font-size:20px;
    cursor:pointer;
}

.back-btn:active{
    transform:scale(.95);
}

.screen{
    display:none;
}

.screen.active{
    display:block;
}

/* ==========================
   TABLE GRID
========================== */

.table-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:12px;
    margin-top:20px;
}

.table-btn{

    aspect-ratio:1;

    border:none;

    border-radius:12px;

    background:#fff;

    font-size:20px;

    font-weight:bold;

    cursor:pointer;

    box-shadow:0 3px 10px rgba(0,0,0,.08);

    transition:.2s;

}

.table-btn:hover{

    background:var(--primary);
    color:#fff;

}

.table-btn:active{

    transform:scale(.95);

}

/* ==========================
   PREVIEW
========================== */

.preview-list{

    margin-top:20px;

    background:#fff;

    padding:20px;

    border-radius:12px;

    box-shadow:0 4px 10px rgba(0,0,0,.08);

    line-height:2;

    font-size:18px;

}

.action-group{

    display:grid;

    gap:15px;

    margin-top:25px;

}

/* ==========================
   SETTINGS
========================== */

.card label{

    display:block;

    margin-bottom:10px;

    font-weight:bold;

}

.btn-small{

    width:auto;

    padding:10px 18px;

}

/* ==========================
   GAME
========================== */

.game-info{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.question-card{

    background:#fff;

    border-radius:15px;

    padding:30px;

    text-align:center;

    margin-bottom:20px;

    box-shadow:0 4px 12px rgba(0,0,0,.08);

}

.question{

    font-size:38px;

    font-weight:bold;

    color:var(--secondary);

}

/* ==========================
   ANSWER
========================== */

.answer-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

.answer-btn{

    padding:18px;

    border:none;

    border-radius:12px;

    background:var(--primary);

    color:#fff;

    font-size:22px;

    font-weight:bold;

    cursor:pointer;

}

.answer-btn:active{

    transform:scale(.97);

}

/* ==========================
   RESULT
========================== */

#screen-result .card{

    text-align:center;

}

#finalScore{

    font-size:60px;

    color:var(--primary);

    margin-bottom:10px;

}

#finalDetail{

    font-size:18px;

    color:#555;

}

/* ==========================
   MOBILE
========================== */

@media(min-width:768px){

    .container{

        max-width:600px;

    }

    .answer-grid{

        grid-template-columns:repeat(4,1fr);

    }

}
/* =====================================
   GAME
===================================== */

.game-header{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-bottom:20px;
}

.score-box{
    text-align:center;
}

.score-box small{
    display:block;
    color:#666;
    margin-bottom:6px;
}

.score-box h2{
    color:var(--primary);
    font-size:28px;
}

.question-card{

    background:#fff;

    border-radius:16px;

    padding:30px;

    margin-bottom:20px;

    text-align:center;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.question{

    font-size:42px;

    font-weight:bold;

    color:var(--secondary);

}

.answer-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

.answer-btn{

    border:none;

    border-radius:12px;

    padding:20px;

    font-size:24px;

    font-weight:bold;

    cursor:pointer;

    background:var(--primary);

    color:white;

    transition:.2s;

}

.answer-btn:hover{

    opacity:.9;

}

.answer-btn:active{

    transform:scale(.96);

}

.answer-btn:disabled{

    cursor:default;

}

/* =====================================
   RESULT
===================================== */

.result-card{

    text-align:center;

}

.result-score{

    font-size:70px;

    color:var(--primary);

    font-weight:bold;

    margin:20px 0;

}

.result-list{

    display:flex;

    flex-direction:column;

    gap:10px;

    margin-top:20px;

}

.result-item{

    display:flex;

    justify-content:space-between;

    background:#f6f6f6;

    padding:14px 18px;

    border-radius:10px;

}

.result-item strong{

    color:var(--primary);

}

/* =====================================
   SETTING
===================================== */

.setting{

    margin-top:20px;

}

.setting label{

    display:block;

    margin-bottom:8px;

    font-weight:bold;

}

.radio-group{

    display:flex;

    gap:20px;

    margin-top:10px;

}

.radio-group label{

    font-weight:normal;

}

.action-group{

    display:grid;

    gap:12px;

    margin-top:25px;

}
/* =====================================
   GAME
===================================== */

.game-header{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-bottom:20px;
}

.score-box{
    text-align:center;
}

.score-box small{
    display:block;
    color:#666;
    margin-bottom:6px;
}

.score-box h2{
    color:var(--primary);
    font-size:28px;
}

.question-card{

    background:#fff;

    border-radius:16px;

    padding:30px;

    margin-bottom:20px;

    text-align:center;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.question{

    font-size:42px;

    font-weight:bold;

    color:var(--secondary);

}

.answer-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

.answer-btn{

    border:none;

    border-radius:12px;

    padding:20px;

    font-size:24px;

    font-weight:bold;

    cursor:pointer;

    background:var(--primary);

    color:white;

    transition:.2s;

}

.answer-btn:hover{

    opacity:.9;

}

.answer-btn:active{

    transform:scale(.96);

}

.answer-btn:disabled{

    cursor:default;

}

/* =====================================
   RESULT
===================================== */

.result-card{

    text-align:center;

}

.result-score{

    font-size:70px;

    color:var(--primary);

    font-weight:bold;

    margin:20px 0;

}

.result-list{

    display:flex;

    flex-direction:column;

    gap:10px;

    margin-top:20px;

}

.result-item{

    display:flex;

    justify-content:space-between;

    background:#f6f6f6;

    padding:14px 18px;

    border-radius:10px;

}

.result-item strong{

    color:var(--primary);

}

/* =====================================
   SETTING
===================================== */

.setting{

    margin-top:20px;

}

.setting label{

    display:block;

    margin-bottom:8px;

    font-weight:bold;

}

.radio-group{

    display:flex;

    gap:20px;

    margin-top:10px;

}

.radio-group label{

    font-weight:normal;

}

.action-group{

    display:grid;

    gap:12px;

    margin-top:25px;

}