
/* 28. MOBILE ADJUSTMENTS */
@media (max-width:640px) {
  #game-modal-title   { font-size:1.125rem; }
  #game-modal-subtitle{ font-size:0.75rem; }
  #memory-grid { grid-template-columns:repeat(auto-fill,minmax(75px,1fr)); gap:0.4rem; }
  .card-back-word { font-size:0.7rem; }
  .card-back-translation { font-size:0.6rem; }
  .letter-slot  { width:32px; height:40px; font-size:1.25rem; }
  .letter-choice{ width:38px; height:38px; font-size:1rem; }
  #fill-blanks-sentence { font-size:2.1rem; }
}


#game-view       { background: var(--bg-base) !important; }

#game-view > footer {
  background: var(--bg-base) !important;
  border-top-color: var(--border) !important;
}

/* ==========================================
   GAME HEADER
========================================== */

.game-header{
    padding: 12px 16px;
    background: #111827;
    border-bottom: 1px solid #1f2937;
    flex-shrink: 0;
}

.game-header-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.game-title-group{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.game-back-btn{
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9999px;

    background: linear-gradient(
        135deg,
        #3b82f6,
        #2563eb
    );

    color: white;

    box-shadow:
        0 0 15px rgba(59,130,246,.35);

    transition: all .2s ease;
}

.game-back-btn:hover{
    transform: translateY(-1px);
}

.game-header-info{
    min-width: 0;
}

.game-title{
    font-size: 1.2rem;
    font-weight: 700;
    color: #00bfff;
    line-height: 1.1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-subtitle{
    margin-top: 2px;

    font-size: 0.8rem;
    color: #94a3b8;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* ==========================================
   MOBILE
========================================== */

@media (max-width: 640px){

    .game-header{
        padding: 10px 14px;
    }

    .game-back-btn{
        width: 38px;
        height: 38px;
    }

    .game-title{
        font-size: 0.8rem;
    }

    .game-subtitle{
        font-size: 0.72rem;
    }

    .progress-badge{
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}