/* 0.81, la fenêtre de retour (app/retour.js) : une fois par jour, une seule chose à faire, en grand ; deux autres en
   petit dessous. Lisible à bout de bras : rien sous 14 points, un seul gros bouton. */
.retour-fond { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(11,11,26,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: retour-fond .25s ease-out both; }
.retour-fenetre { position: relative; width: 100%; max-width: 420px; max-height: calc(100dvh - 32px); overflow: auto; border-radius: 28px; background: var(--panel, #15152B); border: 1.5px solid rgba(255,61,154,.55); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(255,61,154,.18); animation: retour-monte .32s cubic-bezier(.2,.8,.2,1) both; }
/* (24 novembre, Aurélien : « l'image n'est pas adaptée ; centrer ; espacer, les boutons sont très collés ».) L'image du
   haut est celle de ce qui est proposé (l'illustration du défi, le quartier, la séance du jour, Alloy à la porte pour
   l'entrée au club), dans un même cadre 16:10 pour toutes, cadrée selon son sujet ; le texte ne mord plus dessus. */
.retour-image { position: relative; aspect-ratio: 16 / 10; max-height: 32dvh; width: 100%; overflow: hidden; background: #0B0B1A; }
.retour-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.retour-image::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, rgba(21,21,43,0), var(--panel, #15152B)); }
.retour-fond[data-quoi="entree"] .retour-image img { object-position: center 18%; }
.retour-fond[data-quoi="histoire"] .retour-image { aspect-ratio: 720 / 294; }
.retour-fond[data-quoi="histoire"] .retour-image img { object-position: center; }
.retour-fond[data-quoi="seance"] .retour-image img { object-position: center 25%; }
.retour-fermer { position: absolute; top: 12px; right: 12px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(11,11,26,.72); color: #fff; cursor: pointer; }
.retour-fermer svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.retour-texte { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 8px 20px 22px; }
.retour-texte .kicker { margin: 0; font: 700 15px/1.2 var(--body); letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.retour-texte h2 { margin: -6px 0 0; font: 400 30px/1.05 var(--sign); color: var(--text, #FFF4E6); text-shadow: 0 3px 0 var(--pink); overflow-wrap: anywhere; }
.retour-dit { margin: 0; font: 500 17px/1.35 var(--body); color: var(--soft, #C9C3E6); }
.retour-texte .cta { margin-top: 6px; }
.retour-texte .cta span { margin-top: 4px; font-size: 14px; letter-spacing: .06em; line-height: 1.15; text-align: center; }
.retour-autres { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.retour-autres a { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 64px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: inherit; text-decoration: none; }
.retour-autres b { font: 800 14px/1.1 var(--body); letter-spacing: .1em; color: var(--teal); }
.retour-autres span { font: 600 15px/1.25 var(--body); color: var(--text, #FFF4E6); }
@keyframes retour-fond { from { opacity: 0; } }
@keyframes retour-monte { from { transform: translateY(16px) scale(.97); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .retour-fond, .retour-fenetre { animation: none; } }
@media (max-height: 700px) { .retour-image { max-height: 24dvh; } .retour-texte { gap: 12px; } .retour-texte h2 { font-size: 26px; } }

/* 0.81, lot 5 : la carte du round du jour, sur l'accueil, sous la carte de la ville (app/retour.js, vueRoundJour) :
   l'affiche B en fond, l'icône 2, trois lignes, un bouton. Joué aujourd'hui : le palier et les points, sans bouton.
   0.82 (Aurélien, 24 novembre) : sa section et son titre, comme LA SALLE DU CLUB (un filet et de l'air au-dessus, le
   titre des onglets Défis et Entraînements, `.porte`) ; la carte sur toute la largeur de l'accueil (elle avait 16 points
   de marge de plus de chaque côté que les autres) ; animée sans bruit (l'affiche respire, l'icône bat, un reflet passe sur
   le bouton ; seulement des transformations et de l'opacité, rien si le téléphone demande moins de mouvement) ; jouée,
   le compte à rebours jusqu'au prochain, à minuit à l'heure du téléphone. */
.round-jour { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line, rgba(255,255,255,.14)); }
.round-jour .porte { margin: 0; }
.round-jour .porte span { font-size: 14px; letter-spacing: .1em; opacity: .8; }
.carte-jour { position: relative; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; min-height: 140px; padding: 16px; border-radius: 22px; overflow: hidden; color: var(--text, #FFF4E6); text-decoration: none; border: 1.5px solid rgba(255,61,154,.75); box-shadow: 0 0 18px rgba(255,61,154,.35); background: #0B0B1A; }
.carte-jour .cadre-fond { position: absolute; inset: 0; overflow: hidden; }
.carte-jour .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .62; transform-origin: 70% 40%; }
.carte-jour::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,26,.9) 0%, rgba(11,11,26,.5) 68%, rgba(11,11,26,.12) 100%); }
.carte-jour > :not(.cadre-fond) { position: relative; z-index: 1; }
.carte-jour .icone { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.carte-jour .texte { display: flex; flex-direction: column; gap: 4px; }
.carte-jour .kicker { margin: 0; font: 700 14px/1.2 var(--body); letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.carte-jour h3 { margin: 0; font: 400 24px/1.05 var(--sign); text-shadow: 0 2px 0 var(--pink); }
.carte-jour p:not(.kicker) { margin: 0; font: 500 14px/1.35 var(--body); color: var(--soft, #C9C3E6); }
.carte-jour .go { position: relative; overflow: hidden; grid-column: 1 / -1; justify-self: stretch; text-align: center; padding: 14px; border-radius: 14px; font: 400 19px/1 var(--sign); color: #0B0B1A; background: var(--sunset, linear-gradient(90deg, #FFC94A, #FF3D9A)); box-shadow: 0 5px 0 #8A1457; }
.carte-jour .go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); transform: translateX(-120%) skewX(-18deg); opacity: 0; }
.carte-jour.fait { border-color: rgba(255,255,255,.22); box-shadow: none; }
/* Joué : le temps qui reste avant le prochain, en gros (un joueur myope le lit à bout de bras), et l'anneau de la journée. */
.jour-rebours { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(11,11,26,.78); border: 1.5px solid rgba(46,230,214,.6); }
.jour-rebours .anneau { flex: none; width: 44px; height: 44px; transform: rotate(-90deg); }
.jour-rebours .anneau circle { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 7; }
.jour-rebours .anneau .reste { stroke: var(--teal, #2EE6D6); stroke-linecap: round; }
.jour-rebours span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.jour-rebours small { font: 700 14px/1.1 var(--body); letter-spacing: .1em; color: var(--teal, #2EE6D6); }
.jour-rebours b { font: 400 30px/1 var(--sign); color: var(--gold, #FFD166); text-shadow: 0 2px 0 #8A1457; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (prefers-reduced-motion: no-preference) {
  .carte-jour .fond { animation: jour-respire 14s ease-in-out infinite alternate; }
  .carte-jour .icone { animation: jour-bat 2.6s ease-in-out infinite; }
  .carte-jour .go::after { animation: jour-reflet 3.2s ease-in-out 1s infinite; }
  .jour-rebours b { animation: jour-entre .5s cubic-bezier(.2,1.4,.4,1) both; }
}
@keyframes jour-respire { from { transform: scale(1); } to { transform: scale(1.1) translate3d(-2%, 1%, 0); } }
@keyframes jour-bat { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-4px) scale(1.06); } 60% { transform: translateY(-2px) scale(1.03); } }
@keyframes jour-reflet { 0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; } 10% { opacity: 1; } 45%, 100% { transform: translateX(520%) skewX(-18deg); opacity: 0; } }
@keyframes jour-entre { from { transform: scale(.85); opacity: 0; } }
/* 0.89 : le round du jour ouvre l'onglet Défis, en grande carte comme les défis, sans titre à lui (sa carte le dit). */
.round-jour.en-tete { margin-top: 0; padding-top: 0; border-top: 0; }
.round-jour.en-tete .carte-jour { min-height: 210px; grid-template-columns: 84px 1fr; align-content: end; border-radius: 20px; }
.round-jour.en-tete .carte-jour .fond { opacity: .78; object-position: center 35%; }
.round-jour.en-tete .carte-jour .icone { width: 84px; height: 84px; align-self: start; }
.round-jour.en-tete .carte-jour h3 { font-size: 26px; }
