  /* ── General breathing room ──────────────────────────────── */
  #main-content { padding: 28px 20px 64px; }

  /* ── Nav: smaller, cleaner ───────────────────────────────── */
  .nav-logo-text  { font-size: 1.4rem; }
  .tab-btn        { font-size: 0.78rem; gap: 4px; }
  .tab-btn .tab-icon { font-size: 1rem; }

  /* ── Section headers: less margin ────────────────────────── */
  .section-header { margin-bottom: 24px; }
  .section-title  { font-size: 1.5rem; }

  /* ── Game mode cards: 3-col square tiles ─────────────────── */
  .game-mode-cards {
    grid-template-columns: repeat(3, 1fr);
    max-width: 760px;
    gap: 18px;
  }
  .game-mode-card {
    /* Was aspect-ratio:1. A forced square clipped any description that
       needed a third line (Teatro worst, and every English string is
       longer than its Spanish one) because .game-mode-card is
       overflow:hidden. min-height keeps the tidy square look at the
       common widths but lets a tall card grow instead of cutting words off. */
    min-height: 250px;
    padding: 26px 18px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .game-mode-card.mode-timed         { border-color: rgba(168,71,46,.3); }
  .game-mode-card:hover.mode-timed   { border-color: #A8472E; }
  /* Live card is the wide banner below — opt it out of the tile min-height */
  .game-mode-card.mode-live { min-height: 0; }
  .game-mode-title { font-size: 1.15rem; margin-bottom: 4px; }
  .game-mode-desc  { display: block; font-size: .82rem; color: var(--c-text-soft); line-height: 1.5; }
  .game-mode-coming { display: none; }

  /* ── Mission cards: bigger, cleaner ──────────────────────── */
  .mission-card   { padding: 18px 20px; border-radius: var(--radius-lg); }
  .mission-icon   { width: 48px; height: 48px; font-size: 1.5rem; }
  .mission-title  { font-size: 1.1rem; }
  .mission-meta   { display: none; } /* remove question-count / XP text */

  /* ── Free setup: cleaner ─────────────────────────────────── */
  .free-setup-grid { grid-template-columns: 1fr 1fr; }

  /* ── Game play: bigger question, full-width MC ───────────── */
  .game-question-card { padding: 36px 24px; border-radius: var(--radius-xl); }
  .game-q-verb        { font-size: 2.6rem; margin-bottom: 8px; }
  .game-q-label       { font-size: 0.78rem; margin-bottom: 6px; }
  .game-q-context     { font-size: 1.3rem; font-weight: 700; }

  .mc-options {
    grid-template-columns: 1fr;   /* one button per row */
    max-width: 520px;
    gap: 10px;
  }
  .mc-option {
    padding: 17px 20px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
    text-align: left;
  }

  /* ── Feedback: more visible ──────────────────────────────── */
  .game-feedback { font-size: 1rem; margin: 12px 0 4px; min-height: 28px; }

  /* ── Results: more breathing room ───────────────────────── */
  .results-card   { padding: 40px 24px; }
  .results-emoji  { font-size: 4.5rem; }
  .results-title  { font-size: 1.8rem; }
  .results-actions { gap: 12px; }
  .results-actions .btn { min-width: 140px; }

  /* ── Quiz type cards: bigger, 2-col on small screens ─────── */
  .quiz-type-cards {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .quiz-type-card  { padding: 22px 14px; border-radius: var(--radius-xl); }
  .quiz-type-icon  { font-size: 1.6rem; margin-bottom: 8px; }
  .quiz-type-title { font-size: 1rem; margin-bottom: 4px; }
  .quiz-type-desc  { display: block; font-size: .78rem; color: var(--c-text-soft); line-height: 1.4; }

  /* ── Quiz question card ───────────────────────────────────── */
  .quiz-q-card { padding: 30px 22px; border-radius: var(--radius-xl); }
  .quiz-q-text { font-size: 1.2rem; }

  /* ── VOTD hero: more impact ───────────────────────────────── */
  .votd-hero   { padding: 36px 28px; }
  .votd-verb   { font-size: 3.4rem; }
  .votd-meaning{ font-size: 1.05rem; }

  /* ── Teacher layout: simpler sidebar ─────────────────────── */
  .teacher-nav-item { font-size: 0.88rem; padding: 14px 16px; }

  /* ── Modals: more padding ─────────────────────────────────── */
  .modal { padding: 32px 28px; }

  /* ── Dictionary: clean search bar ───────────────────────── */
  .dict-search-input { font-size: 1rem; padding: 12px 18px; }
  .dict-verb-grid    { gap: 10px; }
  .dict-verb-card    { padding: 16px 12px; }
  .dict-verb-card .verb-infinitive { font-size: 1.05rem; }

  /* ── Buttons: always feel tappable ──────────────────────── */
  .btn    { padding: 13px 24px; font-size: 0.95rem; }
  .btn-lg { padding: 16px 32px; font-size: 1.05rem; }
  .btn-sm { padding: 8px 16px;  font-size: 0.82rem; }

  /* ── Mobile: stack game mode cards ──────────────────────── */
  @media (max-width: 420px) {
    .game-mode-cards { grid-template-columns: 1fr; }
    .mc-option { padding: 16px 16px; }
  }
  /* ── Richer background ───────────────────────────────────── */
  body {
    background: #F5F2FF;
    background-image:
      radial-gradient(ellipse at 10% 20%, rgba(43,61,133,.07) 0%, transparent 55%),
      radial-gradient(ellipse at 90% 80%, rgba(58,78,157,.06) 0%, transparent 55%);
  }

  /* ── Nav: matches home page bar ─────────────────────────── */
  #top-nav {
    background: #fff;
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(43,61,133,.12);
    height: 60px;
    --nav-h: 60px;
  }

  /* ── Logo: same as home page (purple + orange, no gradient) ── */
  .nav-logo-text {
    font-size: 1.7rem;
    letter-spacing: -0.5px;
    color: #2B3D85;
    background: none;
    -webkit-text-fill-color: #2B3D85;
  }
  .nav-logo-text span {
    color: #DE826A;
    -webkit-text-fill-color: #DE826A;
  }

  /* ── Tab bar: pill style, more colorful ─────────────────── */
  #tab-bar {
    background: #fff;
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(43,61,133,.09);
    padding: 0 12px;
    gap: 4px;
  }
  .tab-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: #7B7BA0;
    border-bottom: none;
    border-radius: var(--radius-md);
    margin: 8px 2px;
    padding: 6px 14px;
    transition: all .2s cubic-bezier(.34,1.56,.64,1);
    flex: initial;
  }
  .tab-btn:hover {
    background: rgba(43,61,133,.08);
    color: #2B3D85;
    transform: translateY(-1px);
  }
  .tab-btn.active {
    background: linear-gradient(135deg, #3A4E9D, #FF8C42);
    color: #fff;
    border-bottom: none;
    box-shadow: 0 3px 10px rgba(58,78,157,.35);
    transform: translateY(-1px);
  }

  /* ── Main content: wider viewport, responsive ───────────── */
  #main-content {
    max-width: 1060px;
    padding: 32px 28px 80px;
  }
  /* Desktop wide (≥ 1024px): generous side padding */
  @media (min-width: 1024px) {
    #main-content { padding: 40px 48px 80px; }
    .dict-verb-grid  { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .dict-tense-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .free-setup-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .game-mode-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: none; }
    .mc-options      { max-width: 600px; }
  }
  /* Tablet / iPad (600px – 1023px): standard padding */
  @media (min-width: 600px) and (max-width: 1023px) {
    #main-content { padding: 28px 24px 72px; }
  }
  /* Phone (< 600px): compact padding */
  @media (max-width: 599px) {
    #main-content { padding: 18px 14px 60px; }
    .game-mode-cards { grid-template-columns: 1fr; max-width: none; }
    .mc-options { max-width: none; }
  }

  /* ── Mobile polish for the top bar + tab bar ─────────────────
     The "redesign" rules above (pill tabs, 1.7rem logo) override the
     original responsive media queries, so on phones the top bar
     overflowed (logo overlapped the pills) and the tabs were desktop-
     sized. These rules come later in source, so they win, restoring a
     tidy single-row top bar and compact, cleanly-scrollable tabs. */
  @media (max-width: 600px) {
    #top-nav { padding: 0 12px; }
    #top-nav .nav-logo { flex: 0 0 auto; }
    #top-nav .nav-logo-text { font-size: 1.15rem; }
    #top-nav .nav-right { gap: 6px; min-width: 0; flex-wrap: nowrap; }
    #top-nav .lang-btn { padding: 4px 8px; font-size: 0.76rem; }
    #top-nav .btn-login { padding: 6px 10px; font-size: 0.76rem; white-space: nowrap; }
    .level-pill, .streak-pill { padding: 4px 8px; font-size: 0.74rem; }
    .level-pill .lp-word { display: none; }

    #tab-bar { padding: 0 8px; gap: 2px; scroll-padding-left: 8px; }
    #tab-bar .tab-btn { font-size: 0.8rem; padding: 6px 12px; margin: 7px 1px; flex: 0 0 auto; }

    /* "Juego en directo" live card: stack vertically so the text no longer
       squeezes into a narrow column and the button stops running off-screen */
    .game-mode-card.mode-live { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
    .game-mode-card.mode-live .mode-live-text { flex: none; width: 100%; }
    .game-mode-card.mode-live .game-mode-title { font-size: 1.3rem; }
    .game-mode-card.mode-live .game-mode-desc { max-width: none; }
    /* Stacked, the column is align-items:stretch, and the icon is a fixed
       120px box - so it sat hard against the left edge while every other
       activity card centres its illustration. Measured: 93px off centre. */
    .game-mode-card.mode-live .game-mode-icon { align-self: center; }
    .mode-live-cta { align-self: stretch; text-align: center; }

    /* XP / level bar: let the "save your PX" login link wrap to its own row
       so the level name + progress bar get full width (fixes "0 / 100 PX"
       wrapping vertically into a squished column) */
    .level-bar-wrap { flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
    .level-bar-info { flex: 1 1 55%; min-width: 150px; }
    .level-bar-xp { white-space: nowrap; }
    .level-bar-login-cta { flex: 1 1 100%; text-align: center; }
  }
  @media (max-width: 380px) {
    #top-nav .nav-logo-text { font-size: 1.02rem; }
    #top-nav .btn-login { padding: 6px 9px; font-size: 0.72rem; }
    #top-nav .lang-btn { padding: 4px 7px; font-size: 0.72rem; }
    #tab-bar .tab-btn { font-size: 0.76rem; padding: 6px 10px; }
  }

  /* ── Section headers ─────────────────────────────────────── */
  .section-title {
    font-family: var(--font-display); font-weight: var(--font-display-weight);
    font-size: 2rem;
    background: linear-gradient(120deg, #1F2850, #2B3D85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ── Cards: more depth and warmth ───────────────────────── */
  .card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 24px rgba(43,61,133,.10), 0 1px 4px rgba(0,0,0,.06);
  }

  /* ── Buttons: chunkier, more bounce ─────────────────────── */
  .btn {
    border-radius: var(--radius-lg);
    font-size: 1rem;
    letter-spacing: .01em;
    transition: all .18s cubic-bezier(.34,1.56,.64,1);
  }
  .btn:hover  { transform: translateY(-3px); }
  .btn:active { transform: translateY(1px); }
  .btn-primary {
    background: linear-gradient(135deg, #3A4E9D, #FF7043);
    box-shadow: 0 5px 0 #a8472e, 0 8px 20px rgba(58,78,157,.3);
  }
  .btn-primary:hover { box-shadow: 0 7px 0 #a8472e, 0 12px 24px rgba(58,78,157,.35); }
  .btn-lg { padding: 17px 36px; font-size: 1.1rem; border-radius: var(--radius-xl); }

  /* ── Game mode cards: more vibrant ──────────────────────── */
  .game-mode-card {
    border: none;
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    transition: all .22s cubic-bezier(.34,1.56,.64,1);
  }
  .game-mode-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,.14);
  }
  /* ── Per-card accent ──────────────────────────────────────────────
     Every activity card carries a bright top border and a matching wash.
     Both come from two custom properties, so ADDING AN ACTIVITY MEANS
     ADDING ONE LINE TO THE LIST BELOW and nothing else.

     The accent used to be written out per card as a full rule, with a
     note saying "add a rule here whenever a new card type is
     introduced". That note was missed six times: Flashcards, Historias
     culturales, Construye la oración, Canciones, Videos and Teatro all
     shipped with no accent at all, and nobody noticed until Sandra did
     (2026-09-19). Now a card with no line still gets the brand colour,
     so the worst case is the wrong colour, never a missing accent.

     .mode-live is the wide dark banner and keeps its own treatment. */
  .game-mode-card:not(.mode-live) {
    background: linear-gradient(145deg, var(--card-wash, #f7f6ff), #fff);
    border-top: 4px solid var(--card-accent, #2B3D85);
  }
  /* accent          wash */
  .game-mode-card.mode-mission         { --card-accent:#3A4E9D; --card-wash:#fff8f7; }
  .game-mode-card.mode-free            { --card-accent:#76AF77; --card-wash:#f5fffd; }
  .game-mode-card.mode-timed           { --card-accent:#A8472E; --card-wash:#fffaf0; }
  .game-mode-card.mode-mc              { --card-accent:#3A4E9D; --card-wash:#fff8f7; }
  .game-mode-card.mode-fill            { --card-accent:#76AF77; --card-wash:#f5fffd; }
  .game-mode-card.mode-match           { --card-accent:#2B3D85; --card-wash:#f7f6ff; }
  .game-mode-card.mode-wordsearch      { --card-accent:#16a34a; --card-wash:#f3fbf4; }
  .game-mode-card.mode-wordsearch-plus { --card-accent:#dc2626; --card-wash:#fef3f2; }
  .game-mode-card.card-story-mode      { --card-accent:#6366f1; --card-wash:#f5f5ff; }
  .game-mode-card.card-exam-mode       { --card-accent:#10b981; --card-wash:#f0fbf5; }
  /* The six that were missing. Each takes its own card colour, the same
     one its title and hover border already use. */
  .game-mode-card.card-flashcards      { --card-accent:#5048d4; --card-wash:#f6f5ff; }
  .game-mode-card.card-cultural-stories{ --card-accent:#0ea5e9; --card-wash:#f0f9ff; }
  .game-mode-card.card-construye       { --card-accent:#db2777; --card-wash:#fdf2f8; }
  .game-mode-card.card-songs           { --card-accent:#d97706; --card-wash:#fffbeb; }
  .game-mode-card.card-videos          { --card-accent:#e11d48; --card-wash:#fff1f2; }
  .game-mode-card.card-teatro          { --card-accent:#7c3aed; --card-wash:#f5f3ff; }
  .game-mode-card.card-hora            { --card-accent:#0d9488; --card-wash:#f0fdfa; }
  /* Tabú's own pink — the colour of the badge on its cards. */
  .game-mode-card.card-tabu            { --card-accent:#E23468; --card-wash:#fef2f6; }

  /* ── Mission cards: more color ───────────────────────────── */
  .mission-card {
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: all .2s cubic-bezier(.34,1.56,.64,1);
  }
  .mission-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }

  /* ── Game question card ───────────────────────────────────── */
  .game-question-card {
    border: none;
    box-shadow: 0 6px 28px rgba(43,61,133,.12);
    background: linear-gradient(160deg, #fff, #f9f8fb);
  }
  .game-q-verb {
    font-size: 3rem;
    background: linear-gradient(120deg, #3A4E9D, #2B3D85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ── MC options: rounder, more colorful on correct/wrong ── */
  .mc-option {
    border-radius: var(--radius-lg);
    border: 2.5px solid var(--c-border);
    font-weight: 700;
    transition: all .18s cubic-bezier(.34,1.56,.64,1);
    background: #fff;
  }
  .mc-option:not(:disabled):hover {
    border-color: #2B3D85;
    background: rgba(43,61,133,.05);
    transform: translateX(4px);
  }
  .mc-option.correct {
    background: linear-gradient(135deg, #76AF77, #4E8F57);
    border-color: #2F6B38;
    color: #fff;
    transform: scale(1.02);
  }
  .mc-option.wrong {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-color: #b91c1c;
    color: #fff;
  }

  /* ── XP / progress bar ───────────────────────────────────── */
  .xp-bar-wrap {
    background: #ede9f8;
    border-radius: 99px;
    height: 10px;
    overflow: hidden;
  }
  .xp-bar-fill {
    background: linear-gradient(90deg, #2B3D85, #3A4E9D);
    border-radius: 99px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
  }

  /* ── VOTD hero ───────────────────────────────────────────── */
  .votd-hero {
    border-radius: 28px;
    box-shadow: 0 8px 40px rgba(58,78,157,.25);
  }
  .votd-verb { font-size: 4rem; }

  /* ── Dictionary search ───────────────────────────────────── */
  .dict-search-wrap {
    box-shadow: 0 4px 20px rgba(43,61,133,.12);
    border: none;
    border-radius: 20px;
  }
  .dict-search-input { font-size: 1.05rem; }

  /* ── Dict verb cards ─────────────────────────────────────── */
  .dict-verb-card {
    border: none;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transition: all .2s cubic-bezier(.34,1.56,.64,1);
  }
  .dict-verb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(43,61,133,.15);
  }
  .verb-infinitive {
    font-family: var(--font-display); font-weight: var(--font-display-weight);
    font-size: 1.2rem;
    color: #3A4E9D;
  }

  /* ── Quiz cards ──────────────────────────────────────────── */
  .quiz-type-card {
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.09);
    transition: all .2s cubic-bezier(.34,1.56,.64,1);
  }
  .quiz-type-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 32px rgba(43,61,133,.18);
  }

  /* ── Sentence practice card ──────────────────────────────── */
  .game-sentence-card {
    background: linear-gradient(160deg, #fdf8ff, #fff);
    box-shadow: 0 6px 28px rgba(43,61,133,.14);
    border-left: 5px solid #2B3D85;
  }
  .game-sentence-text { font-size: 1.35rem; line-height: 1.7; }

  /* ── Live game tiles ─────────────────────────────────────── */
  .live-mc-tile {
    border-radius: 18px;
    box-shadow: 0 4px 0 rgba(0,0,0,.2);
    transition: all .15s cubic-bezier(.34,1.56,.64,1);
  }
  .live-mc-tile:not(:disabled):hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 7px 0 rgba(0,0,0,.2);
  }

  /* ── Animations ──────────────────────────────────────────── */
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .tab-panel.active { animation: slideUp .35s cubic-bezier(.34,1.56,.64,1); }

  @keyframes bounceIn {
    0%   { transform: scale(0.7); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
  }
  .anim-popIn { animation: bounceIn .45s cubic-bezier(.34,1.56,.64,1); }

  /* The bounce overshoots to about 1.1x. A question card is already as wide
     as the column, so on a phone or tablet that overshoot stuck ~10 px past
     the edge and flashed a horizontal scrollbar at every new question — the
     page jiggled sideways each time. Found while fixing the story layout,
     2026-10-08. The card grows instead of overshooting; wide screens, where
     there is room on both sides, keep the bounce. */
  @keyframes popInFlat {
    0%   { transform: scale(0.94); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }
  @media (max-width: 1000px) {
    .game-question-card.anim-popIn,
    .cs-question-card.anim-popIn {
      animation: popInFlat .3s cubic-bezier(.4, 0, .2, 1) both;
    }
  }

  /* ── Dictionary sentence examples ───────────────────────── */
  .dict-sentences-section {
    background: linear-gradient(135deg, #f8f5ff, #fff);
    border-left: 5px solid #2B3D85;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 18px;
    margin: 16px 0 20px;
  }
  .dict-sentences-title {
    font-family: var(--font-display); font-weight: var(--font-display-weight);
    font-size: 1rem;
    color: #2B3D85;
    margin-bottom: 12px;
    letter-spacing: .02em;
  }
  .dict-sentence-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(43,61,133,.1);
  }
  .dict-sentence-row:last-child { border-bottom: none; }
  .dict-sentence-tense {
    display: inline-block;
    background: rgba(43,61,133,.12);
    color: #2B3D85;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 5px;
  }
  .dict-sentence-es {
    font-size: 1rem;
    color: var(--c-text);
    line-height: 1.5;
    margin: 3px 0 2px;
  }
  .dict-sentence-blank,
  .dict-sentence-fill  { color: #2B3D85; font-weight: 800; }
  .dict-sentence-en {
    font-size: 0.85rem;
    color: var(--c-text-soft);
    font-style: italic;
    margin: 0;
  }

  /* ── Mobile responsiveness ───────────────────────────────── */
  @media (max-width: 600px) {
    .nav-logo-text { font-size: 1.6rem; }
    .nav-logo-icon { width: 38px; height: 38px; }
    #main-content  { padding: 20px 14px 80px; }
    .section-title { font-size: 1.6rem; }
    .game-q-verb   { font-size: 2.4rem; }
    .game-sentence-text { font-size: 1.15rem; }
    .votd-verb     { font-size: 3rem; }
    .tab-btn       { font-size: 0.78rem; padding: 5px 10px; }
  }

  /* ── Activity hero ────────────────────────────────────────────────
     Shared banner at the top of every activity screen (markup from
     activityHero() in js/util.js). The artwork is square and tells a
     whole scene, so it is shown whole beside the text — a full-width
     banner crop was tried and rejected, it zoomed into the subject and
     lost the rest, the same slicing Sandra objected to in the icons. */
  .activity-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--mission-bg);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--mission-bg), transparent 85%);
  }
  .activity-hero-art {
    width: 190px; height: 190px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(20,16,60,.14);
  }
  .activity-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .activity-hero-text { flex: 1; min-width: 0; }
  .activity-hero-title {
    font-family: var(--font-display); font-weight: var(--font-display-weight);
    font-size: 1.45rem; line-height: 1.2; margin-bottom: 6px;
    color: var(--mission-color);
  }
  .activity-hero-blurb { font-size: 1rem; line-height: 1.55; color: var(--c-text-soft); }

  /* On a phone the row squeezes the text to a sliver, so stack and
     centre it the way the live banner does. */
  @media (max-width: 599px) {
    /* The hero lives inside a .section-header flex row. On a phone that row
       does not wrap, so the hero was pushed to x=216 and ran 24 px off the
       right edge — a sideways scroll on the Juego en directo screen, which
       is a screen students use. Found 2026-10-11 while checking Teatro on a
       phone; it was live, not something new. Scoped with :has() so no other
       section header changes. */
    .section-header:has(> .activity-hero) { flex-wrap: wrap; }
    .section-header > .activity-hero { flex: 1 0 100%; }
    .activity-hero { flex-direction: column; text-align: center; padding: 14px; gap: 12px; }
    .activity-hero-art { width: 168px; height: 168px; }
    .activity-hero-title { font-size: 1.25rem; }
  }
