.scroll-stage {
  min-height: var(--roll-scroll-min-height);
}

.mock-section-top {
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.roll-scene {
  position: sticky;
  top: 0; 
  height: var(--height-viewport-static);
  min-height: fit-content;
  overflow: hidden; 
}

.roll-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.paper-shell {
  position: absolute;
  top: 0;
  left: var(--paper-left);
  width: var(--paper-width);
  height: var(--paper-height);
  transform: translate3d(var(--paper-translate-x), var(--paper-top), 0);
  will-change: transform, width, height, left;
}

.paper-window {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 12px 32px var(--paper-shadow);
}

.paper-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
  opacity: 0.14;
  pointer-events: none;
  z-index: 2;
}

.paper-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.capsule-rack {
  position: absolute;
  left: 2.8%;
  bottom: 1.6%;
  width: 17.5%;
  height: 18.7%;
  z-index: 3;
  pointer-events: none;
}

.capsule-rack__token {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  /*rotate: var(--rotate);*/
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  opacity: 0;
  --token-move-x: 0px;
  --token-move-y: 0px;
  --token-scale: 1;
  transform: translate3d(
    calc(-50% + var(--token-move-x)),
    calc(-50% + 12px + var(--token-move-y)),
    0
  ) scale(calc(0.88 * var(--token-scale)));
  filter: drop-shadow(0 8px 14px rgba(23, 50, 95, 0.18));
  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.roll-scene.is-interactive .capsule-rack__token {
  opacity: 1;
  transform: translate3d(
    calc(-50% + var(--token-move-x)),
    calc(-50% + var(--token-move-y)),
    0
  ) scale(var(--token-scale));
}

.capsule-rack__token--signe,
.capsule-rack__token--double {
  will-change: transform;
}

.capsule-launch-token {
  position: absolute;
  left: var(--launch-token-x, 50%);
  top: var(--launch-token-y, 90%);
  width: 5.5%;
  aspect-ratio: 1;
  z-index: 4;
  pointer-events: none;
  object-fit: contain;
  opacity: 0;
  --token-move-x: 0px;
  --token-move-y: 0px;
  --token-scale: 1;
  --token-rotate: 0deg;
  --token-travel-delay: 0ms;
  transform: translate3d(
    calc(-50% + var(--token-move-x)),
    calc(-50% + var(--token-move-y)),
    0
  ) rotate(var(--token-rotate)) scale(var(--token-scale));
  filter: drop-shadow(0px -0.2px 1px rgba(0, 0, 0, 0.252));
  transition:
    opacity 180ms ease,
    transform 680ms cubic-bezier(0.2, 0.9, 0.2, 1);
  transition-delay: 0ms, var(--token-travel-delay);
  will-change: transform, opacity;
}

.roll-scene.is-interactive .capsule-launch-token {
  opacity: 1;
}

.capsule-launch-token--is-shot {
  --token-scale: 1.02;
}

.capsule-launch-token--resetting {
  transition: none !important;
}

.plateau-hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.hotspot-marker {
  position: absolute;
  inset: -22%;
  opacity: 0;
  transition: opacity 120ms ease;
}

.hotspot-marker svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hotspot-marker path {
  fill: none;
  stroke: var(--color5);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--path-length, 430);
  stroke-dashoffset: var(--path-length, 430);
}

.roll-scene.is-interactive .plateau-hotspots {
  pointer-events: auto;
}

.roll-scene.is-interactive .hotspot {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.hotspot:hover .hotspot-marker,
.hotspot:focus-visible .hotspot-marker,
.hotspot.is-active .hotspot-marker {
  opacity: 1;
}

.hotspot:hover .hotspot-marker path,
.hotspot:focus-visible .hotspot-marker path,
.hotspot.is-active .hotspot-marker path {
  animation: marker-draw 1.3s ease forwards;
}

.hotspot.is-resolved .hotspot-marker {
  opacity: 0 !important;
}

.hotspot.is-resolved .hotspot-marker path {
  animation: none !important;
}

.hotspot.is-resolved:hover .hotspot-marker,
.hotspot.is-resolved:focus-visible .hotspot-marker {
  opacity: 1 !important;
}

.hotspot.is-resolved:hover .hotspot-marker path,
.hotspot.is-resolved:focus-visible .hotspot-marker path {
  animation: marker-draw 0.8s ease forwards !important;
}

.hotspot:focus-visible {
  outline: none;
}

.info-panel {
  position: absolute;
  top: 15%;
  right: var(--right-info-panel);
  
  width: var(--panel-width);
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 360ms ease;
}

.roll-scene.is-interactive .info-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}


.info-card {
  display: none;
  padding: 1.4rem 1.5rem;
}

.info-card.is-active {
  display: grid;
  grid-template-columns: 20% 80%;
  gap: 30px;
}

.info-card-case{
  display: flex;
  align-items: start;
  justify-content: center;
  fill: var(--color4);
}


.info-card-case img{
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85%;
  overflow: visible;
  padding: 10px;

  border-radius: calc(var(--radius)/4);
  background-color: var(--color1);
  border: solid calc(var(--border-sticker)/1.5) var(--color1bis);
  box-shadow: 0 0 0 calc(var(--border-sticker)/1.5) var(--color4);

  /*background-color: var(--color1-opacity);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);

    box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(255,255,255,0.15),
    0 10px 30px rgba(0,0,0,0.08);

  filter: var(--drop-shadow);*/
}

.info-card-case.score img{
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80px;
  overflow: visible;
  padding: 10px;

  border-radius: calc(var(--radius)/4);
  background-color: var(--color1);
  border: solid calc(var(--border-sticker)/1.5) var(--color1bis);
  box-shadow: 0 0 0 calc(var(--border-sticker)/1.5) var(--color4);
}

.info-card-txt{display: flex; flex-direction: column; align-items: center;}

.info-card-txt-title{
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.info-card-txt-title b, a{font-family: var(--secondaryFont); font-weight: 400; transition: 0.2s;}
.info-card-txt-title a{ opacity: 60%; text-decoration: none; color: var(--color4);}

.info-card-txt-title a:hover{cursor: pointer; opacity: 100%; translate: 0 -2px}

.info-card-txt-content{
  display: flex;
  width: 100%;
  height: auto;
  min-height: fit-content;
  overflow: visible;
  z-index: 1;
}

.info-card-content-img{flex: 0.2; z-index: 3}
.info-card-content-sticker{flex: 0.7; margin-left: 0px;}


.info-card h2,
.mock-copy h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  line-height: 1.05;
}

.info-card p,
.mock-copy p,
.mock-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--panel-text);
}

.info-card p + p,
.mock-copy p + p,
.mock-card p + p {
  margin-top: 0.85rem;
}

.info-label {
  margin-bottom: 0.55rem !important;
  color: var(--panel-muted) !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-roll {
  position: absolute;
  width: 100%;
  height: var(--roll-size);
  bottom: -2px;
  opacity: var(--roll-opacity);
  transform: scaleY(var(--roll-scale));
  transform-origin: center bottom;
  background:
    radial-gradient(
      ellipse at 50% 18%,
      rgba(255, 255, 255, var(--roll-highlight-alpha)),
      rgba(255, 255, 255, 0) 40%
    ),
    linear-gradient(
      180deg,
      var(--roll-bottom-color) 0%,
      var(--roll-low-color) 35%,
      var(--roll-mid-color) 65%,
      var(--roll-top-color) 100%
    );
  box-shadow:
    inset 0 4px 7px rgba(255, 255, 255, 0.85),
    inset 0 -10px 14px rgba(71, 79, 90, var(--roll-shadow-alpha)),
    0 -13px 5px var(--roll-shadow);
  pointer-events: none;
  z-index: 3;
}

.mock-section {
  position: relative;
  z-index: 1;
  padding: 6rem 5vw 8rem;
}

.mock-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.mock-copy {
  max-width: 680px;
  margin-bottom: 2rem;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.mock-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(23, 50, 95, 0.08);
  box-shadow: 0 16px 32px rgba(23, 50, 95, 0.08);
}

.mock-card h3 {
  margin: 0 0 0.7rem;
  color: var(--panel-text);
  font-size: 1.2rem;
}

@keyframes marker-draw {
  from { stroke-dashoffset: var(--path-length, 430); }
  to   { stroke-dashoffset: 20; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-stage {
    min-height: var(--height-viewport-static);
  }  

  .roll-scene {
    position: relative;
  }

  .paper-shell {
    position: relative;
    top: auto;
    left: 10%;
    width: 80vw;
    height: auto;
    transform: translate3d(0, calc(var(--vh-static) * 5), 0);
  }

  .paper-window {
    height: auto;
    max-height: none;
  }

  .paper-roll {
    display: none;
  }
}


.scroll-stage-mobile {
  display: none;
}


@media (max-width: 850px) {
.scroll-stage-mobile {
  min-height: calc(var(--vh-static) * 250);
  display: block;
  margin-top: calc(var(--vh-static) * -60);
}

.scroll-stage{
  display: none;
}

.roll-scene-mobile {
  position: sticky;
  top: 0;
  height: var(--height-viewport-static);
  overflow: hidden;
}

.paper-shell-mobile {
  position: absolute;
  top: 0;
  left: var(--paper-left);
  width: var(--paper-width);
  height: var(--paper-height);
  transform: translate3d(var(--paper-translate-x), var(--paper-top), 0);
  will-change: transform, width, height;
}

.paper-window-mobile {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 12px 32px var(--paper-shadow);
}

.paper-image-mobile {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.paper-roll-mobile {
  position: absolute;
  width: 100%;
  height: var(--roll-size);
  bottom: -2px;
  transform: scaleY(var(--roll-scale));
  transform-origin: center bottom;
  background:
    radial-gradient(
      ellipse at 50% 18%,
      rgba(255, 255, 255, var(--roll-highlight-alpha)),
      rgba(255, 255, 255, 0) 40%
    ),
    linear-gradient(
      180deg,
      var(--roll-bottom-color) 0%,
      var(--roll-low-color) 35%,
      var(--roll-mid-color) 65%,
      var(--roll-top-color) 100%
    );
  box-shadow:
    inset 0 4px 7px rgba(255, 255, 255, 0.85),
    inset 0 -10px 14px rgba(71, 79, 90, var(--roll-shadow-alpha)),
    0 -13px 5px var(--roll-shadow);
  pointer-events: none;
  z-index: 3;
}


.mobile-invite {
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: var(--secondaryFont);
  opacity: 0.7;
}
}
