/* =============================================================================
   Space Miaou · l'œuf de Pâques du logo de Sartine (space-miaou/oeuf.js)
   ========================================================================== */
.sm-space-cible {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    /* pas de rectangle gris au toucher (iPhone) : seul le logo réagit, par son onde et ses couleurs */
    -webkit-tap-highlight-color: transparent;
}
.sm-space-cible:focus:not(:focus-visible) { outline: none; }

/* Pendant l'appui : les deux couleurs du logo s'inversent (« Sartine » prend la couleur de
   « Studio graphique », et l'inverse). Le header doublé + !important passent devant les
   couleurs posées en ligne par js/sartine.js et devant les règles du smartphone. */
.site-header.site-header.is-space-charge .header-logo #poisson path { fill: var(--hero-color) !important; transition: fill .5s ease !important; }
.site-header.site-header.is-space-charge .header-logo #texte path { fill: var(--white) !important; transition: fill .5s ease !important; }
@media (max-width: 800px), (max-height: 599px) {
    .site-header.site-header.is-space-charge .header-logo #poisson path { fill: var(--hero-responsive) !important; }
    .site-header.site-header.is-space-charge .header-logo #texte path { fill: var(--hero-color) !important; }
}

/* Le jeu en plein écran */
.sm-space {
    position: fixed; inset: 0; z-index: 2147483001;
    display: flex; flex-direction: column;
    background: #15161a;
    animation: sm-space-entree .35s cubic-bezier(.16, 1, .3, 1);
}
@keyframes sm-space-entree { from { opacity: 0; transform: scale(.96); } }
/* Sur ordinateur, le jeu s'ouvre par-dessus le hero, qui reste en fond derrière la fenêtre aux coins arrondis */
@media (hover: hover) and (pointer: fine) and (min-width: 801px) {
	.sm-space { background: transparent; }
	.sm-space-cadre { background: transparent; }
	html.sm-space-ouvert, html.sm-space-ouvert body { background: inherit; }
}
.sm-space-cadre { display: block; flex: 1 1 auto; width: 100%; min-height: 0; border: 0; }
/* sondes invisibles : la zone floutée par Safari en haut (1,9 fois la barre d'état), la barre d'accueil en bas */
.sm-space-sonde { position: fixed; top: 0; left: 0; width: 0; height: calc(env(safe-area-inset-top) * 1.9); visibility: hidden; pointer-events: none; }
.sm-space-sonde-bas { top: auto; bottom: 0; height: env(safe-area-inset-bottom); }
html.sm-space-ouvert, html.sm-space-ouvert body { overflow: hidden; background: #15161a; }

@media (prefers-reduced-motion: reduce) {
    .sm-space { animation: none; }
}
