/* Tamaños de lectura. No modifica colores, zoom, tarjetas ni lógica del juego.
   Selectores acotados para prevalecer sobre los estilos antiguos de cada página. */
:root {
    --type-page-title: clamp(32px, 3.7vw, 48px);
    --type-section-title: clamp(22px, 2.2vw, 28px);
}

/* Avisos de resultado: el contenido no debe heredar tamaños de presentación. */
body .profile-flash-alert,
body .store-purchase-success,
body #inventory-skin-apply-status {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
}
body .profile-flash-alert :is(span, strong, b, p, div),
body .store-purchase-success :is(span, strong, b, p, div),
body #inventory-skin-apply-status :is(span, strong, b, p, div) {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
}
body .profile-flash-alert > span { min-width: 0; }

/* Cabeceras con una escala propia que no respetaban la escala global. */
body .store-page-head h1,
body .store-page-wrap .store-page-head h1,
body .events-hero h1,
body .events-heading h1,
body .announcements-hero h1,
body .announcement-article h1,
body .community-hero h1,
body.page-comunidad .community-hero h1,
body .combat-hero h1,
body .sky-hero h1,
body.page-ajustes main h1 {
    font-size: var(--type-page-title) !important;
    line-height: 1.08 !important;
    overflow-wrap: break-word;
}
body #events-featured-title,
body .hide-hunt-detail .hh3-hero h1,
body .hh-page .hh-heading h1 {
    font-size: var(--type-page-title) !important;
    line-height: 1.08 !important;
}
body .hh-page .hh-heading h1 span {
    font-size: .62em !important;
    line-height: 1.18 !important;
}
body .events-hero h1 span {
    font-size: .62em !important;
    line-height: 1.25 !important;
}
body .events-heading h1 span { font-size: .62em !important; line-height: 1.25 !important; }
body .hh-page .hh-map-heading h2,
body .hh-page .hh-panel h2,
body .hh-page .hh-card-head h2,
body .hide-hunt-detail .hh3-prizes h2,
body .hide-hunt-detail .hh3-overview h3,
body #events-catalog-title,
body #events-howto-title,
body .voice-lounge-content h2,
body #support-rules-title,
body .adm-page-head h2,
body .slot-history-head h2,
body .slot-panel h3 {
    font-size: var(--type-section-title) !important;
    line-height: 1.2 !important;
}
body .slot-page .slot-marquee h2 {
    font-size: clamp(28px, 3vw, 40px) !important;
    line-height: 1.1 !important;
}
body .slot-page .slot-result strong {
    font-size: 24px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
}
body .adm-hero h1 { font-size: clamp(30px, 3.4vw, 42px) !important; }

/* Títulos de modales, incluidos los que se abren en el inventario embebido. */
body #skin-detail-modal #skin-detail-name,
body #gift-reveal-modal .gift-reveal-name,
body #delete-modal #delete-modal-content h3,
body #dino-action-modal #dino-action-title {
    font-size: 28px !important;
    line-height: 1.18 !important;
    letter-spacing: normal !important;
    overflow-wrap: break-word;
}
body #skin-detail-modal #skin-detail-uses { font-size: 22px !important; line-height: 1.3 !important; }
body .entry-announcement-copy h2,
body .entry-event-copy h2 { font-size: 28px !important; line-height: 1.18 !important; }

@media (max-width: 820px) {
    :root {
        --type-page-title: clamp(28px, 8vw, 34px);
        --type-section-title: clamp(22px, 5.5vw, 26px);
    }
    body.page-perfil #profile-page-title,
    body .bp-hero h1,
    body .bp-summary h1 { font-size: var(--type-page-title) !important; line-height: 1.08 !important; }
    body .adm-hero h1 { font-size: 30px !important; line-height: 1.1 !important; }
    body .slot-page .slot-marquee h2 { font-size: 28px !important; }
    body .slot-page .slot-result strong { font-size: 20px !important; }
    body #skin-detail-modal #skin-detail-name,
    body #gift-reveal-modal .gift-reveal-name,
    body #delete-modal #delete-modal-content h3,
    body #dino-action-modal #dino-action-title,
    body .entry-announcement-copy h2,
    body .entry-event-copy h2 { font-size: 24px !important; }
    body .profile-flash-alert { gap: 10px; padding: 12px !important; }
    body .profile-flash-alert .profile-flash-dismiss { width: 42px; height: 42px; flex-basis: 42px; }
}
