/* Illustrated milestone surfaces: graduation and the exported memory reel.
   The bitmap is presentation only; every word and control remains live HTML. */

:root[data-storybook-art="riso"] .credits-screen {
  background:#687765 !important;
}

:root[data-storybook-art="riso"] .credits-card {
  position:relative;
  isolation:isolate;
  max-width:760px !important;
  padding:clamp(104px,12vw,132px) clamp(72px,10vw,104px) clamp(112px,13vw,146px) !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  clip-path:none !important;
}

:root[data-storybook-art="riso"] .credits-card::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border:0;
  background:url('../art/ui/storybook/shared-riso/graduation-folio.png') center/100% 100% no-repeat;
  pointer-events:none;
  filter:drop-shadow(0 12px 9px rgba(45,39,34,.22));
}

:root[data-storybook-art="riso"] .credits-card::after { display:none; }
:root[data-storybook-art="riso"] .credits-card > * { position:relative; z-index:1; }
:root[data-storybook-art="riso"] .credits-card .cc-school {
  margin-top:2px;
  background:#53627c;
}
:root[data-storybook-art="riso"] .credits-card .cc-seal { display:none !important; }
:root[data-storybook-art="riso"] .credits-card .cc-ending,
:root[data-storybook-art="riso"] .credits-card .cc-rels {
  background:rgba(255,248,230,.54);
  box-shadow:none;
}
:root[data-storybook-art="riso"] .credits-card .cc-stats {
  border-block:1px dashed rgba(151,119,83,.46);
}
:root[data-storybook-art="riso"] .credits-card .cc-actions .bigbtn {
  border:0 !important;
  box-shadow:0 3px 0 rgba(69,55,43,.16) !important;
}

/* The reel begins as a real keepsake album. The existing ending SVG is retired;
   the photo opening shows the already-approved painted school gate instead. */
:root[data-storybook-art="riso"] .reel-strip {
  width:min(540px,calc(100vw - 24px));
  max-width:540px;
  padding:12px 18px 34px;
  gap:18px;
  background:#f8ecd4;
  box-shadow:0 10px 0 rgba(54,63,51,.2);
}

:root[data-storybook-art="riso"] .reel-cover:first-child {
  position:relative;
  isolation:isolate;
  width:calc(100% + 36px);
  aspect-ratio:1122 / 1402;
  margin:-12px -18px 0;
  display:block;
  background:url('../art/ui/storybook/shared-riso/memory-reel-folio.png') center/100% 100% no-repeat;
}
:root[data-storybook-art="riso"] .reel-cover:first-child::before {
  content:"";
  position:absolute;
  left:24.5%;
  top:11.2%;
  width:61.5%;
  height:27.2%;
  z-index:-1;
  background:url('../art/bg/gate-riso.jpg') center 64%/cover no-repeat;
}
:root[data-storybook-art="riso"] .reel-cover:first-child > svg { display:none; }
:root[data-storybook-art="riso"] .reel-cover:first-child > h2 {
  position:absolute;
  left:18%;
  top:47%;
  width:64%;
  margin:0;
  font-family:var(--sb-display);
  font-size:clamp(24px,5vw,34px);
  line-height:1.16;
  letter-spacing:.05em;
}
:root[data-storybook-art="riso"] .reel-cover:first-child > span {
  position:absolute;
  left:18%;
  top:56%;
  width:64%;
  font-size:clamp(13px,2.8vw,16px);
  line-height:1.35;
  opacity:1;
}
:root[data-storybook-art="riso"] .reel-day {
  position:relative;
  padding:16px 18px 12px;
  border:0;
  background:#fff7e5;
  box-shadow:2px 3px 0 rgba(68,51,38,.14);
  clip-path:polygon(1% 2%,98% 0,100% 93%,96% 100%,2% 98%,0 7%);
}
:root[data-storybook-art="riso"] .reel-day:nth-of-type(even) { transform:rotate(.35deg); }
:root[data-storybook-art="riso"] .reel-day:nth-of-type(3n) { transform:rotate(-.35deg); }
:root[data-storybook-art="riso"] .reel-cover.reel-end {
  margin-top:4px;
  padding:24px 24px 28px;
  background:#e3ead6;
  box-shadow:2px 3px 0 rgba(68,51,38,.14);
  clip-path:polygon(1% 3%,99% 0,100% 90%,95% 100%,0 96%);
}

@media(max-width:700px) {
  :root[data-storybook-art="riso"] .credits-screen { padding:50px 4px 24px !important; }
  :root[data-storybook-art="riso"] .credits-card {
    width:min(100%,430px) !important;
    padding:132px 47px 88px !important;
  }
  :root[data-storybook-art="riso"] .credits-card .cc-school { font-size:10px; letter-spacing:.07em; }
  :root[data-storybook-art="riso"] .credits-card .cc-name { font-size:30px; }
  :root[data-storybook-art="riso"] .credits-card .cc-ending { padding:9px 11px; }
  :root[data-storybook-art="riso"] .credits-card .cc-stats { gap:2px !important; padding:9px 0; }
  :root[data-storybook-art="riso"] .credits-card .cc-stat { min-width:calc(50% - 2px) !important; padding:5px 4px; }
  :root[data-storybook-art="riso"] .credits-card .cc-rels { padding:8px; }
  :root[data-storybook-art="riso"] .credits-card .cc-actions .bigbtn { flex-basis:100%; }
  :root[data-storybook-art="riso"] .reel-strip { padding-inline:12px; }
  :root[data-storybook-art="riso"] .reel-cover:first-child { width:calc(100% + 24px); margin-inline:-12px; }
}

@media(min-width:701px) and (max-height:760px) {
  :root[data-storybook-art="riso"] .credits-card { padding-top:94px !important; padding-bottom:105px !important; }
}
