/* Mode intro disclosure — triggered by the page's ? icon (see how_to_play.js).
   The <details> element sits inline in the page so the rich editorial copy
   is in the DOM at load (crawler-friendly), but renders nothing when closed:
   the <summary> is visually hidden, and the body only paints when open. The
   ? icon toggles details.open and scrolls the panel into view. */

.mode_intro_details {
    position: relative;
    z-index: 2;
    width: 88vw;
    max-width: 880px;
    margin: 0 auto;
    color: #ffffff;
    font-family: 'MarvelFont', sans-serif;
}

/* Visually hidden but still announced to screen readers and indexed by
   crawlers. We don't paint it at all because the ? icon is the visible
   trigger. */
.mode_intro_details > .mode_intro_summary {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mode_intro_details > .mode_intro_summary::-webkit-details-marker {
    display: none;
}

/* The rich panel — only laid out when the disclosure is open. Matches the
   streak popup border (2px solid #DCE1F4) and dark fill so the dropdown
   reads as part of the same family of UI panels. */
.mode_intro_body {
    position: relative;
    z-index: 2;
    margin: 2vh auto 2vh;
    padding: 18px 24px 22px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #DCE1F4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-family: Arial, sans-serif;
    line-height: 1.65;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85);
}

.mode_intro_body .mode_intro_meta {
    font-size: 0.82em;
    color: #d6dbe8;
    margin: 4px 0 8px;
}

.mode_intro_body h1 {
    font-family: 'MarvelFont', 'Franklin Gothic Medium', sans-serif;
    font-size: 1.55em;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
    margin: 6px 0 12px;
    text-transform: uppercase;
}

.mode_intro_body h2 {
    font-family: 'MarvelFont', 'Franklin Gothic Medium', sans-serif;
    font-size: 1.15em;
    color: #ffd166;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
    margin: 18px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
}

.mode_intro_body p,
.mode_intro_body li {
    font-size: 0.96em;
    margin: 8px 0;
    color: #f6f7fb;
}

.mode_intro_body .lede {
    font-size: 1em;
    color: #ffffff;
}

.mode_intro_body a {
    color: #ffd166;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 209, 102, 0.6);
}

.mode_intro_body a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.mode_intro_body em,
.mode_intro_body strong {
    color: #ffffff;
}

.mode_intro_body ul {
    padding-left: 22px;
    margin: 8px 0;
}

@media (max-width: 720px) {
    .mode_intro_details {
        width: 94vw;
    }

    .mode_intro_body {
        padding: 14px 16px 18px;
    }

    .mode_intro_body h1 {
        font-size: 1.3em;
    }

    .mode_intro_body h2 {
        font-size: 1em;
    }

    .mode_intro_body p,
    .mode_intro_body li {
        font-size: 0.9em;
    }
}
