/* The realistic cassette (js/cassette.js). Sized by whatever holds it: it is
   100 : 63.5, a real cassette's proportions, and everything inside is in the
   svg's own units. */
@font-face{font-family:'Permanent Marker';font-weight:400;font-style:normal;font-display:block;src:url(../fonts/PermanentMarker.woff2) format('woff2')}

.cassette{position:relative;width:100%;aspect-ratio:100/63.5;container-type:inline-size}
/* Realism.castShadow: three shadows, not one - a tight dark line under the
   object, a middle one, and a wide soft one - so it reads as something with
   weight sitting on a surface. A static box behind the svg, never a filter on
   it: the reels turn every frame. */
.cassette .shadow{position:absolute;inset:0;border-radius:3.5%;
  box-shadow:1px 1px 2px rgba(0,0,0,.6),3px 3px 8px rgba(0,0,0,.35),9px 9px 26px rgba(0,0,0,.32);
  box-shadow:.4cqw .4cqw .3cqw rgba(0,0,0,.6),1.2cqw 1.2cqw 1.6cqw rgba(0,0,0,.35),3.4cqw 3.4cqw 5.2cqw rgba(0,0,0,.32)}
.cassette svg{position:relative;display:block;width:100%;height:100%;overflow:visible}
.cassette .grain{position:absolute;inset:0;width:100%;height:100%;border-radius:3.5%;pointer-events:none}

/* The designs: each in turn is laid over the last and fades IN, and only then
   is the old one taken away, so the case is never see-through. */
.cassette .design{opacity:0}
.cassette .design.on{opacity:1;transition:opacity .45s ease-out}
.cassette .hw{transition:fill .45s ease-out,stroke .45s ease-out}

.cassette .marker{font-family:'Permanent Marker',cursive}
.cassette .letter{font-family:ui-rounded,'SF Pro Rounded',system-ui,sans-serif}
.cassette .mono{font-family:ui-monospace,'SF Mono',Menlo,monospace}
