/* Step 155: MCQ mobile question-first focus layer.
   Cache-safe standalone CSS so mobile fixes apply even when app.css is cached.
   Presentation only: no MCQ submit, heartbeat, security, answer, result, or access logic is changed. */
@media (max-width: 760px) {
    html.player-fullscreen-root,
    body.player-fullscreen-mode.page-student-mcq-play,
    body.player-fullscreen-mode.page-mcq-free-play {
        min-height: 100dvh !important;
        height: 100dvh !important;
        overflow: hidden !important;
        background: #050b1c !important;
    }

    body.page-student-mcq-play .route-strip,
    body.page-mcq-free-play .route-strip {
        display: none !important;
    }

    .phase155-mcq-mobile-focus.secure-player,
    body.page-student-mcq-play .secure-mcq-player,
    body.page-mcq-free-play .secure-mcq-player {
        width: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        gap: 7px !important;
        margin: 0 !important;
        padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
        border-radius: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        box-shadow: none !important;
        background: #050b1c !important;
    }

    .phase155-mcq-mobile-focus .player-palette,
    body.page-student-mcq-play .secure-mcq-player .player-palette,
    body.page-mcq-free-play .secure-mcq-player .player-palette {
        order: 1 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: 168px !important;
        overflow: hidden !important;
        padding: 8px !important;
        border-radius: 17px !important;
        display: grid !important;
        grid-template-rows: auto auto auto !important;
        gap: 6px !important;
    }

    .phase155-mcq-mobile-focus .premium-player-head,
    body.page-student-mcq-play .secure-mcq-player .premium-player-head,
    body.page-mcq-free-play .secure-mcq-player .premium-player-head {
        display: grid !important;
        gap: 5px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .phase155-mcq-mobile-focus .player-brand-lockup,
    body.page-student-mcq-play .secure-mcq-player .player-brand-lockup,
    body.page-mcq-free-play .secure-mcq-player .player-brand-lockup {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: center !important;
        min-width: 0 !important;
    }

    .phase155-mcq-mobile-focus .player-brand-mark,
    body.page-student-mcq-play .secure-mcq-player .player-brand-mark,
    body.page-mcq-free-play .secure-mcq-player .player-brand-mark {
        width: 33px !important;
        height: 33px !important;
        flex: 0 0 33px !important;
        border-radius: 12px !important;
        font-size: .78rem !important;
    }

    .phase155-mcq-mobile-focus .premium-player-head .eyebrow,
    body.page-student-mcq-play .secure-mcq-player .premium-player-head .eyebrow,
    body.page-mcq-free-play .secure-mcq-player .premium-player-head .eyebrow {
        font-size: .58rem !important;
        line-height: 1 !important;
        letter-spacing: .08em !important;
        margin: 0 0 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .phase155-mcq-mobile-focus .premium-player-head h3,
    body.page-student-mcq-play .secure-mcq-player .premium-player-head h3,
    body.page-mcq-free-play .secure-mcq-player .premium-player-head h3 {
        display: block !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: .94rem !important;
        line-height: 1.12 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .phase155-mcq-mobile-focus .premium-stat-grid,
    body.page-student-mcq-play .secure-mcq-player .premium-stat-grid,
    body.page-mcq-free-play .secure-mcq-player .premium-stat-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .phase155-mcq-mobile-focus .premium-stat-grid .premium-stat:nth-child(3),
    .phase155-mcq-mobile-focus .premium-stat-grid .premium-stat:nth-child(5),
    body.page-student-mcq-play .secure-mcq-player .premium-stat-grid .premium-stat:nth-child(3),
    body.page-student-mcq-play .secure-mcq-player .premium-stat-grid .premium-stat:nth-child(5),
    body.page-mcq-free-play .secure-mcq-player .premium-stat-grid .premium-stat:nth-child(3),
    body.page-mcq-free-play .secure-mcq-player .premium-stat-grid .premium-stat:nth-child(5) {
        display: none !important;
    }

    .phase155-mcq-mobile-focus .premium-stat,
    body.page-student-mcq-play .secure-mcq-player .premium-stat,
    body.page-mcq-free-play .secure-mcq-player .premium-stat {
        min-height: 38px !important;
        padding: 5px 6px !important;
        border-radius: 12px !important;
    }

    .phase155-mcq-mobile-focus .premium-stat span,
    body.page-student-mcq-play .secure-mcq-player .premium-stat span,
    body.page-mcq-free-play .secure-mcq-player .premium-stat span {
        font-size: .52rem !important;
        line-height: 1 !important;
        letter-spacing: .06em !important;
        margin: 0 0 3px !important;
        white-space: nowrap !important;
    }

    .phase155-mcq-mobile-focus .premium-stat strong,
    body.page-student-mcq-play .secure-mcq-player .premium-stat strong,
    body.page-mcq-free-play .secure-mcq-player .premium-stat strong {
        font-size: .78rem !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .phase155-mcq-mobile-focus .player-progress-wrap,
    body.page-student-mcq-play .secure-mcq-player .player-progress-wrap,
    body.page-mcq-free-play .secure-mcq-player .player-progress-wrap {
        height: 4px !important;
        margin: 0 !important;
    }

    .phase155-mcq-mobile-focus .palette-grid,
    body.page-student-mcq-play .secure-mcq-player .palette-grid,
    body.page-mcq-free-play .secure-mcq-player .palette-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        min-height: 31px !important;
        max-height: 32px !important;
        padding: 0 0 2px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .phase155-mcq-mobile-focus .palette-grid::-webkit-scrollbar,
    body.page-student-mcq-play .secure-mcq-player .palette-grid::-webkit-scrollbar,
    body.page-mcq-free-play .secure-mcq-player .palette-grid::-webkit-scrollbar {
        display: none !important;
    }

    .phase155-mcq-mobile-focus .palette-item,
    body.page-student-mcq-play .secure-mcq-player .palette-item,
    body.page-mcq-free-play .secure-mcq-player .palette-item {
        flex: 0 0 32px !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 4px !important;
        border-radius: 11px !important;
        font-size: .76rem !important;
    }

    .phase155-mcq-mobile-focus .player-palette > .cta-row,
    body.page-student-mcq-play .secure-mcq-player .player-palette > .cta-row,
    body.page-mcq-free-play .secure-mcq-player .player-palette > .cta-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        margin: 0 !important;
    }

    .phase155-mcq-mobile-focus .player-palette > .cta-row .btn,
    body.page-student-mcq-play .secure-mcq-player .player-palette > .cta-row .btn,
    body.page-mcq-free-play .secure-mcq-player .player-palette > .cta-row .btn {
        min-height: 42px !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 15px !important;
        padding: 9px 12px !important;
        font-size: .92rem !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    .phase155-mcq-mobile-focus .player-stage,
    body.page-student-mcq-play .secure-mcq-player .player-stage,
    body.page-mcq-free-play .secure-mcq-player .player-stage {
        order: 2 !important;
        min-height: 0 !important;
        height: 100% !important;
        overflow-y: auto !important;
        padding: 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .phase155-mcq-mobile-focus .stage-topline,
    body.page-student-mcq-play .secure-mcq-player .stage-topline,
    body.page-mcq-free-play .secure-mcq-player .stage-topline {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2px !important;
        border-radius: 15px !important;
        padding: 8px 10px !important;
        margin: 0 0 7px !important;
        align-items: start !important;
    }

    .phase155-mcq-mobile-focus .stage-topline > .cta-row,
    body.page-student-mcq-play .secure-mcq-player .stage-topline > .cta-row,
    body.page-mcq-free-play .secure-mcq-player .stage-topline > .cta-row {
        display: none !important;
    }

    .phase155-mcq-mobile-focus .stage-topline .eyebrow,
    body.page-student-mcq-play .secure-mcq-player .stage-topline .eyebrow,
    body.page-mcq-free-play .secure-mcq-player .stage-topline .eyebrow {
        font-size: .56rem !important;
        line-height: 1 !important;
        letter-spacing: .08em !important;
    }

    .phase155-mcq-mobile-focus #mcqProgressLabel,
    body.page-student-mcq-play .secure-mcq-player #mcqProgressLabel,
    body.page-mcq-free-play .secure-mcq-player #mcqProgressLabel {
        display: block !important;
        font-size: .88rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .phase155-mcq-mobile-focus .mcq-attempt-warning-stage,
    body.page-student-mcq-play .secure-mcq-player .mcq-attempt-warning-stage,
    body.page-mcq-free-play .secure-mcq-player .mcq-attempt-warning-stage {
        display: none !important;
    }

    .phase155-mcq-mobile-focus .question-panel,
    body.page-student-mcq-play .secure-mcq-player .question-panel,
    body.page-mcq-free-play .secure-mcq-player .question-panel {
        min-height: auto !important;
        border-radius: 16px !important;
        padding: 11px !important;
        margin: 0 !important;
    }

    .phase155-mcq-mobile-focus .question-panel-head,
    body.page-student-mcq-play .secure-mcq-player .question-panel-head,
    body.page-mcq-free-play .secure-mcq-player .question-panel-head {
        margin: 0 0 10px !important;
        padding: 0 !important;
    }

    .phase155-mcq-mobile-focus .question-panel-head .eyebrow,
    body.page-student-mcq-play .secure-mcq-player .question-panel-head .eyebrow,
    body.page-mcq-free-play .secure-mcq-player .question-panel-head .eyebrow {
        font-size: .58rem !important;
        line-height: 1 !important;
        margin-bottom: 6px !important;
    }

    .phase155-mcq-mobile-focus .question-panel-head h3,
    body.page-student-mcq-play .secure-mcq-player .question-panel-head h3,
    body.page-mcq-free-play .secure-mcq-player .question-panel-head h3 {
        font-size: clamp(1.1rem, 5.2vw, 1.48rem) !important;
        line-height: 1.24 !important;
        margin: 0 !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .phase155-mcq-mobile-focus .option-stack,
    body.page-student-mcq-play .secure-mcq-player .option-stack,
    body.page-mcq-free-play .secure-mcq-player .option-stack {
        gap: 8px !important;
    }

    .phase155-mcq-mobile-focus .option-card,
    body.page-student-mcq-play .secure-mcq-player .option-card,
    body.page-mcq-free-play .secure-mcq-player .option-card {
        min-height: 52px !important;
        padding: 9px 10px !important;
        border-radius: 15px !important;
        gap: 9px !important;
        align-items: center !important;
    }

    .phase155-mcq-mobile-focus .option-badge,
    body.page-student-mcq-play .secure-mcq-player .option-badge,
    body.page-mcq-free-play .secure-mcq-player .option-badge {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: .88rem !important;
    }

    .phase155-mcq-mobile-focus .option-text,
    body.page-student-mcq-play .secure-mcq-player .option-text,
    body.page-mcq-free-play .secure-mcq-player .option-text {
        font-size: .96rem !important;
        line-height: 1.28 !important;
    }

    .phase155-mcq-mobile-focus .question-nav,
    body.page-student-mcq-play .secure-mcq-player .question-nav,
    body.page-mcq-free-play .secure-mcq-player .question-nav {
        position: sticky !important;
        bottom: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 7px !important;
        margin-top: 10px !important;
        padding-top: 8px !important;
        background: linear-gradient(180deg, rgba(5,11,28,0), #050b1c 42%) !important;
    }

    .phase155-mcq-mobile-focus .question-nav .btn,
    body.page-student-mcq-play .secure-mcq-player .question-nav .btn,
    body.page-mcq-free-play .secure-mcq-player .question-nav .btn {
        min-height: 43px !important;
        width: 100% !important;
        justify-content: center !important;
        border-radius: 14px !important;
        font-size: .9rem !important;
    }
}

@media (min-width: 761px) and (max-width: 1024px) {
    .phase155-mcq-mobile-focus.secure-player,
    body.page-student-mcq-play .secure-mcq-player,
    body.page-mcq-free-play .secure-mcq-player {
        grid-template-columns: minmax(230px, 275px) minmax(0, 1fr) !important;
        gap: 12px !important;
    }
    .phase155-mcq-mobile-focus .player-palette,
    body.page-student-mcq-play .secure-mcq-player .player-palette,
    body.page-mcq-free-play .secure-mcq-player .player-palette {
        min-width: 0 !important;
        padding: 14px !important;
    }
    .phase155-mcq-mobile-focus .premium-stat-grid,
    body.page-student-mcq-play .secure-mcq-player .premium-stat-grid,
    body.page-mcq-free-play .secure-mcq-player .premium-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .phase155-mcq-mobile-focus .premium-stat,
    body.page-student-mcq-play .secure-mcq-player .premium-stat,
    body.page-mcq-free-play .secure-mcq-player .premium-stat {
        min-height: 52px !important;
    }
}

@media (max-width: 767.98px) {
    .phase155-mcq-mobile-focus .player-palette > .cta-row .btn i,
    body.page-student-mcq-play .secure-mcq-player .player-palette > .cta-row .btn i,
    body.page-mcq-free-play .secure-mcq-player .player-palette > .cta-row .btn i {
        font-size: 1rem !important;
        margin-right: 6px !important;
    }
}
