.stack {
    display: grid;
    gap: 18px;
}

.session-card {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
}

.session-number-badge {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), #a6a3d6);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.65rem;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(124, 121, 184, 0.28);
}

.session-content h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.session-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

/* Objective panels — the game modal's tinted-panel language (soft gradient,
   icon badge, deep-hue heading), one hue per objective kind. */
.objective-box {
    border-radius: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(34, 42, 70, 0.05);
}

.objective-box-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.objective-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
}

.objective-box-icon .lm-icon {
    display: block;
    vertical-align: 0;
}

.objective-box h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
}

.objective-box p {
    margin: 0;
    color: #454b63;
    line-height: 1.65;
    font-size: 0.95rem;
}

.objective-box-grammar {
    background: linear-gradient(180deg, #f3eefa 0%, #e9e1f6 100%);
    border-color: #d8cbef;
}
.objective-box-grammar .objective-box-icon { background: rgba(139, 127, 191, 0.2); color: #5a4a96; }
.objective-box-grammar h3 { color: #5a4a96; }

.objective-box-action {
    background: linear-gradient(180deg, #fdf3e2 0%, #fbe9cc 100%);
    border-color: #f0d59b;
}
.objective-box-action .objective-box-icon { background: rgba(216, 150, 47, 0.2); color: #8a5a13; }
.objective-box-action h3 { color: #8a5a13; }

.objective-box-lexical {
    background: linear-gradient(180deg, #edf2fc 0%, #e3eafa 100%);
    border-color: #cdd8f1;
}
.objective-box-lexical .objective-box-icon { background: rgba(106, 143, 212, 0.18); color: #3a558f; }
.objective-box-lexical h3 { color: #3a558f; }

.games-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.game-card {
    padding: 22px;
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 18px;
    align-items: start;
}

.game-order {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
}

.game-order-glyph {
    display: block;
    line-height: 0;
    color: var(--primary);
    opacity: 0.85;
}

.game-order-glyph .lm-icon {
    display: block;
    vertical-align: 0;
}

/* The game's place in the session — same numbered bubble as the session
   tiles on the course page, pinned to the box corner. */
.game-order-num {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(40, 44, 90, 0.22);
}

.game-content h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.game-content p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.65;
}

.game-aside {
    text-align: right;
    min-width: 120px;
}

.duration-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0faf4 0%, #e2f3e9 100%);
    border: 1px solid #cfe8d9;
    color: #2f7256;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.duration-pill-icon {
    display: block;
    line-height: 0;
    opacity: 0.75;
    margin-right: 1px;
}

.duration-pill-icon .lm-icon {
    display: block;
    vertical-align: 0;
}

.duration-pill strong {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.duration-pill-unit {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.8;
}

.game-card-clickable {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card-clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 121, 184, 0.25);
}

.game-open-hint {
    margin-top: 14px !important;
    font-weight: 700;
    color: var(--primary-dark) !important;
}

@media (max-width: 900px) {
    .session-card,
    .game-card {
        grid-template-columns: 1fr;
    }

    .session-number-badge,
    .game-order {
        width: 72px;
        height: 72px;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .game-aside {
        text-align: left;
    }
}

/* Vocabulary / phrase cards on the session page. They embed the shared
   pronunciation practice row, whose margin-top:auto only pins to the bottom
   inside a flex column — as a plain block it collapsed to 0 and the Listen
   button rode up into the phonetic line above it (IPA descenders collided).
   Flex column + height:100% restores the pin (buttons line up across a row);
   the practice card's own padding-top is the guaranteed floor for the gap,
   since an auto margin can't be given a minimum. */
/* The vocabulary and phrase grids are page content, not a modal: they borrow the
   shared card look from modal.css and supply their own multi-column layout, which
   modal.css deliberately does not have (a modal's list is a single column). */
.lexicon-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.lexicon-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lexicon-card .pronunciation-practice-card {
    padding-top: 12px;
}

.vocab-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eef0fb;
    border: 1px solid #d9ddee;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.vocab-audio-btn:hover {
    background: var(--primary);
    color: #fff;
}

.vocab-audio-btn.is-playing {
    transform: scale(1.08);
}
