/* Poké Star : le soleil se lève (balisage : scene.mjs ; mouvement : scene.js).
   Composition finale, fixe : le disque photo à moitié levé sur l'horizon, rayé de filets crème comme le
   soleil du logo ; le titre à gauche. --sx : centre du soleil ; --sr : son rayon ; --horizon : sa ligne. */

.scene-soleil { --scene-fond: #fffaf0; --grain: .06; --sx: 70%; --sr: min(28vw, 50vh); --horizon: 80%; }
.scene-soleil .scene-cadre { background: linear-gradient(#fff6e6, #fffaf0 60%); }
.so-ciel { position: absolute; left: 0; right: 0; top: 0; height: var(--horizon); overflow: hidden; }
.so-lueur {
  position: absolute; left: var(--sx); top: 100%; width: calc(var(--sr) * 3.4); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(255 171 73 / .38), rgb(250 135 111 / .14) 55%, transparent);
}
/* Le disque : le centre sur l'horizon, la moitié du bas cachée sous la ligne. */
.so-disque {
  position: absolute; left: calc(var(--sx) - var(--sr)); top: calc(100% - var(--sr));
  width: calc(var(--sr) * 2); height: calc(var(--sr) * 2); border-radius: 50%; overflow: hidden;
  background: #ffab49;
}
/* La photo, réduite (jamais agrandie) et cadrée sur sa partie nette : la zone 300–1500 × 300–900 de hero-2000
   (le bol, les baguettes, le pouce) remplit la moitié visible du disque. 2000 × 1333 affichée à 2R / 1200. */
.so-photo { position: absolute; left: -25%; top: -25%; width: 166.67%; height: 111.08%; transform-origin: 40% 45%; }
.so-photo img { display: block; width: 100%; height: 100%; }
.so-raie { position: absolute; left: 0; right: 0; background: #fffaf0; transform: scaleY(.3); }
.so-horizon { position: absolute; left: 0; right: 0; top: var(--horizon); height: 2px; margin-top: -1px; background: #14706e; }
.so-vagues {
  position: absolute; left: 0; top: calc(var(--horizon) + 14px); width: 200%; height: 54px; overflow: visible;
}
.so-vagues path { fill: none; stroke: #239f9c; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .7; }
.so-vagues path:nth-child(2) { stroke: #fa876f; opacity: .55; }
.so-vagues path:nth-child(3) { opacity: .35; }
.scene-soleil.en-vue .so-vagues { animation: so-houle 9s linear infinite; }
@keyframes so-houle { to { transform: translateX(-50%); } }

.scene-soleil .scene-texte { left: var(--g); top: 47%; transform: translateY(-50%); width: calc(var(--sx) - var(--sr) - var(--g) - 40px); max-width: 600px; }
.scene-soleil h2 { font-size: clamp(36px, 4.6vw, 72px); }
.scene-soleil h2 em { font-style: normal; color: #14706e; }
/* Les bowls qui défilent : une fenêtre d'une ligne, la piste monte d'un nom à la fois. */
.so-roule { margin-top: 22px; height: 1.15em; overflow: hidden; font: 700 clamp(22px, 2.2vw, 32px)/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: #d9563d; }
.so-roule-piste { display: flex; flex-direction: column; }
.so-roule-piste span { height: 1.15em; }
.so-roule-piste span::before { content: "★"; margin-right: .5em; font-size: .7em; vertical-align: .15em; color: #ffab49; }

@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .scene-soleil { --sx: 50%; --sr: min(82vw, 38vh); --horizon: calc(100% - var(--bas) - 40px); }
  .scene-soleil .scene-texte { top: 84px; transform: none; width: auto; right: var(--g); }
  .scene-soleil h2 { font-size: clamp(30px, 8.4vw, 60px); }
  .so-roule { margin-top: 14px; font-size: 22px; }
}
@media (max-aspect-ratio: 1/1) and (min-width: 761px) { .scene-soleil .scene-texte { top: 120px; } }
