@font-face {
    font-family: "Upheaval";
    src: url("../../fonts/upheaval-do6XNlH.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

/* A common size keeps short page titles consistent; long titles fit on one line. */
html body h1 {
    --page-title-size: clamp(1.75rem, 8vw, 2.25rem);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100% !important;
    font-family: var(--font-page-title, "Upheaval", "Arial Black", sans-serif) !important;
    font-size: var(--fitted-title-size, var(--page-title-size)) !important;
    font-weight: var(--font-page-title-weight, 400) !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    white-space: var(--page-title-white-space, nowrap) !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: var(--page-title-text-wrap, nowrap) !important;
}

html body h1 :is(span, strong, em, a) {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
}

@media (min-width: 961px) {
    html body h1 { --page-title-size: 3rem; }
}

/* The longer guest headline must fit even before fonts and JS finish loading. */
@media (max-width: 960px) {
    html body.guest-home-body h1 {
        --page-title-size: clamp(1rem, 5.8vw, 2.25rem);
    }
    body.guest-home-body .guest-home-hero {
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Shared header hierarchy: title, violet subtitle, white description. */
html body .heading-subtitle {
    margin: 0;
    color: var(--color-secondary, #a85ff7);
    font-family: var(--font-mono);
    font-size: clamp(0.55rem, 1vw, 0.72rem);
    font-weight: 800;
    line-height: 1.55;
    text-transform: uppercase;
}
:is(html body .heading-subtitle):where(p) { font-size: calc(clamp(0.55rem, 1vw, 0.72rem) + 3px); }

html body .heading-description,
html body .app-page-hero .heading-description {
    color: #fff;
}

/* PRODUCT-163: one public/player hero composition, shared with Home/Markets.
   Child forms, status panels and actions retain their own component layouts. */
html body.arcade-page .app-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: start;
    justify-items: stretch;
    gap: var(--space-2);
    min-height: 0;
    height: auto;
    margin: 0 0 var(--hero-bottom-space, var(--space-5));
    padding: var(--space-3) 0 var(--space-1) !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    text-align: left !important;
}
html body.arcade-page .app-page-hero > div:has(> h1) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
    min-width: 0;
}
html body.arcade-page .app-page-hero > *,
html body.arcade-page .app-page-hero > div:has(> h1) > * {
    min-width: 0;
    max-width: 100%;
    margin-block: 0;
    text-align: left !important;
}
html body.arcade-page .app-page-hero h1 {
    margin: 0;
    color: var(--color-text);
    text-transform: uppercase;
    text-shadow: 0 0 16px rgb(168 95 247 / 70%);
}
html body.arcade-page .app-page-hero .heading-subtitle {
    color: var(--color-secondary, #a85ff7);
    font: 800 clamp(0.55rem, 1vw, 0.72rem)/1.55 var(--font-mono);
}
:is(html body.arcade-page .app-page-hero .heading-subtitle):where(p) { font-size: calc(clamp(0.55rem, 1vw, 0.72rem) + 3px); }
html body.arcade-page .app-page-hero .heading-description {
    max-width: var(--mobile-page-hero-content-width);
    color: #fff;
    font: 500 0.82rem/1.55 var(--font-body);
}
:is(html body.arcade-page .app-page-hero .heading-description):where(p) { font-size: calc(0.82rem + 3px); }
html body.arcade-page .app-page-hero::before,
html body.arcade-page .app-page-hero::after,
html body.arcade-page .app-page-hero .app-page-hero__decoration {
    display: none;
}
