:root { --magoo-header-height: 58px; }
/* Shared header from the What is Magoo? pages. Scoped to avoid app/nav conflicts. */
.magoo-site-header {
    --site-red: #CC0000;
    --site-gold: #FFB242;
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    height: auto;
    background: var(--site-red);
    border-bottom: 6px solid var(--site-gold);
    text-align: left;
    font-family: Roboto, "roboto-regular", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    padding-top: env(safe-area-inset-top, 0px);
}
.magoo-site-header *, .magoo-site-header *::before, .magoo-site-header *::after {
    box-sizing: border-box;
    font-family: inherit;
}
.magoo-site-header__inner {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    min-height: 52px;
}
.magoo-site-header a { text-decoration: none; }
.magoo-site-header a:focus-visible, .magoo-site-header summary:focus-visible {
    outline: 3px solid var(--site-gold);
    outline-offset: 3px;
    border-radius: 6px;
}
.magoo-site-header__navigation { display: flex; align-items: center; gap: 20px; margin: 0; }
.magoo-site-header__navigation a {
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}
.magoo-site-header__navigation a[aria-current] { border-bottom: 2px solid var(--site-gold); }
.magoo-site-header__brand { display: flex; justify-self: center; align-self: end; margin-bottom: -22px; border-radius: 50%; }
.magoo-site-header__brand svg { display: block; width: 58px; height: 58px; }
.magoo-site-header__action { display: flex; justify-content: flex-end; }
.magoo-site-header__action a { background: #fff; color: var(--site-red); padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.magoo-site-header__menu { display: none; position: relative; justify-self: start; }
.magoo-site-header__menu summary { list-style: none; cursor: pointer; color: #fff; padding: 8px 4px; display: flex; align-items: center; }
.magoo-site-header__menu summary::-webkit-details-marker { display: none; }
.magoo-site-header__menu summary svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.magoo-site-header__menu nav { position: absolute; left: -20px; top: calc(100% + 6px); background: var(--site-red); border-bottom: 6px solid var(--site-gold); display: flex; flex-direction: column; width: min(230px, calc(100vw - 20px)); padding: 8px 0; box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.magoo-site-header__menu nav a { color: #fff; font-weight: 700; padding: 12px 20px; }
.magoo-site-header__menu nav a[aria-current] { background: #A30000; }
.magoo-app-shell > main { padding-top: 24px; }
.magoo-scanner-shell #scanner-page { height: calc(100dvh - var(--magoo-header-height) - env(safe-area-inset-top, 0px)); }
.magoo-studio-shell .studio-mobile-main-container { height: calc(100dvh - var(--magoo-header-height) - env(safe-area-inset-top, 0px)); }
.magoo-studio-shell #studio-three-scene { height: calc(100dvh - var(--magoo-header-height) - 112px - env(safe-area-inset-top, 0px)); }
.magoo-viewer-shell .viewar-screen, .magoo-viewer-shell #unity-container { top: calc(var(--magoo-header-height) + env(safe-area-inset-top, 0px)); height: calc(100dvh - var(--magoo-header-height) - env(safe-area-inset-top, 0px)); }
.magoo-viewer-shell .magoo-icon-container-viewar, .magoo-viewer-shell .close-btn-viewar { top: calc(var(--magoo-header-height) + 10px + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) {
    .magoo-site-header__navigation { display: none; }
    .magoo-site-header__menu { display: block; }
    .magoo-site-header__inner { gap: 8px; }
}
@media (max-width: 480px) {
    .magoo-site-header__brand svg { width: 50px; height: 50px; }
    .magoo-site-header__action a { padding: 7px 12px; font-size: .85rem; }
}
@media (max-width: 380px) {
    .magoo-site-header__action a { padding: 7px 10px; font-size: .75rem; }
}
