/* Mixtape: the table, the player, the paper and everything on it */
@font-face{font-family:"Geist";src:url(fonts/Geist-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"VT323";src:url(fonts/VT323-Regular.woff2) format("woff2");font-display:swap}
/* the four pens */
@font-face{font-family:"Nothing You Could Do";src:url(fonts/NothingYouCouldDo.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Zeyada";src:url(fonts/Zeyada.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Covered By Your Grace";src:url(fonts/CoveredByYourGrace.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Waiting for the Sunrise";src:url(fonts/WaitingfortheSunrise.woff2) format("woff2");font-display:swap}
:root{--ink:#131114;--bone:#F6F6F4;--lilac:#BFA6F2;--soft:#D9D2E6;color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;background:var(--ink);color:var(--bone);font:400 18px/1.5 "Geist",system-ui,sans-serif;padding:36px clamp(16px,5vw,64px) 80px}
p{margin:0 0 20px;max-width:44em;color:var(--soft)}

/* the recorder, seen from directly above */
.rec{position:relative;width:100%;aspect-ratio:4/3;border-radius:3cqw;
  background:linear-gradient(155deg,#323136,#1d1c20 45%,#131215);
  box-shadow:inset 0 .25cqw 0 rgba(255,255,255,.16),inset 0 -.5cqw .8cqw rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.08),0 3cqw 4cqw -1.5cqw #000}
.rec>*{position:absolute}

.disp{left:4%;top:4%;width:57%;height:14%;border-radius:1cqw;background:#07060a;overflow:hidden;color:#cdb6ff;font-family:"VT323",monospace;text-transform:uppercase;
  text-shadow:0 0 .5em rgba(191,166,242,.75);box-shadow:inset 0 .3cqw 1cqw #000,inset 0 0 0 .18cqw #000,0 0 0 1px rgba(255,255,255,.14);
  display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;gap:.3cqw 2cqw;padding:1cqw 1.8cqw .9cqw}
.disp .top{font-size:2.3cqw;letter-spacing:.14em;line-height:1;white-space:pre;display:flex;justify-content:space-between;gap:2cqw}
.disp .name{font-size:5cqw;line-height:1;white-space:nowrap;overflow:hidden;align-self:end}
.disp .name span{display:inline-block;padding-left:100%}
.on .disp .name span{animation:run 9s linear infinite}
.disp .name.still span{padding-left:0;animation:none}
@keyframes run{to{transform:translateX(-100%)}}
.eq{grid-row:1/3;grid-column:2;display:flex;align-items:flex-end;gap:.45cqw;height:100%}
.eq i{width:1.1cqw;height:14%;background:repeating-linear-gradient(0deg,#cdb6ff 0 .5cqw,transparent .5cqw .75cqw);box-shadow:0 0 .6cqw rgba(191,166,242,.6)}
.on .eq i{animation:eq .9s ease-in-out infinite alternate}
.on .eq i:nth-child(2){animation-duration:.6s}.on .eq i:nth-child(3){animation-duration:1.1s;animation-delay:-.3s}.on .eq i:nth-child(4){animation-duration:.7s;animation-delay:-.5s}
.on .eq i:nth-child(5){animation-duration:.5s}.on .eq i:nth-child(6){animation-duration:.95s;animation-delay:-.2s}.on .eq i:nth-child(7){animation-duration:.65s;animation-delay:-.4s}.on .eq i:nth-child(8){animation-duration:1.2s}
@keyframes eq{from{height:12%}to{height:100%}}

.bay{left:4%;top:21%;width:57%;aspect-ratio:3/2;border-radius:1.4cqw;overflow:hidden;
  background:radial-gradient(circle at 33.4% 52.6%,#8a8890 0 .5cqw,#55535b .5cqw 1.05cqw,#1c1b1f 1.05cqw 1.5cqw,transparent 1.6cqw),radial-gradient(circle at 67.8% 52.6%,#8a8890 0 .5cqw,#55535b .5cqw 1.05cqw,#1c1b1f 1.05cqw 1.5cqw,transparent 1.6cqw),#050406;
  box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.bay svg{position:absolute;inset:0;width:100%;height:100%;mix-blend-mode:lighten;transition:opacity .4s}
.rec:not(.in) .bay svg{opacity:0}
/* the door covers the edges of the tape, and its window shows the label and the reels */
.lid{left:4%;top:21%;width:57%;aspect-ratio:3/2;border-radius:1.4cqw;overflow:hidden;pointer-events:none;box-shadow:inset 0 .2cqw 0 rgba(255,255,255,.14),inset 0 0 0 1px rgba(255,255,255,.1)}
.lid .win{position:absolute;left:8.5%;right:8.5%;top:11.5%;bottom:27%;border-radius:1.1cqw;
  box-shadow:0 0 0 60cqw #232227,inset 0 .7cqw 1.2cqw rgba(0,0,0,.85),inset 0 0 0 .22cqw #0b0a0d,inset 0 0 0 .34cqw rgba(255,255,255,.12);
  background:linear-gradient(112deg,rgba(255,255,255,.2),rgba(255,255,255,.03) 22%,rgba(255,255,255,0) 50%,rgba(255,255,255,.08) 78%,rgba(255,255,255,.02))}
.lid .grip{position:absolute;left:30%;right:30%;bottom:8.5%;height:9%;background:repeating-linear-gradient(180deg,rgba(0,0,0,.6) 0 .22cqw,rgba(255,255,255,.1) .22cqw .34cqw,transparent .34cqw .62cqw)}
.hub{transform-box:view-box}
.on .hub{animation:spin 3.2s linear infinite}.on .hub.b{animation-duration:5.2s}
@keyframes spin{to{transform:rotate(-360deg)}}

.spk{left:65%;top:4%;right:4%;height:61%;border-radius:1.2cqw;background:radial-gradient(circle,#050406 0 .42cqw,transparent .5cqw) 0 0/1.5cqw 1.5cqw,#232226;
  box-shadow:inset 0 .2cqw .5cqw rgba(0,0,0,.8),inset 0 0 0 1px rgba(255,255,255,.07)}
.vol{left:65%;top:67%;width:31%;height:6%;display:flex;align-items:center;gap:1.4cqw}
.vol small{font:600 max(1.9cqw,12px)/1 "Geist",sans-serif;letter-spacing:.06em;color:#c9c6d0}
.vol div{flex:1;height:1.1cqw;border-radius:1cqw;background:#050406;box-shadow:inset 0 .15cqw .3cqw #000,0 0 0 1px rgba(255,255,255,.1);position:relative}
.vol div{cursor:pointer;touch-action:none}
.vol div::before{content:"";position:absolute;inset:-1.7cqw 0}
.vol div::after{content:"";position:absolute;left:calc(8% + var(--v,.8)*84%);top:50%;width:3cqw;height:2.6cqw;translate:-50% -50%;border-radius:.5cqw;
  background:repeating-linear-gradient(90deg,#4a4950 0 .25cqw,#2a292e .25cqw .5cqw);box-shadow:0 .3cqw .5cqw #000,inset 0 .1cqw 0 rgba(255,255,255,.3)}

.names{left:4%;right:4%;top:76%;display:grid;grid-template-columns:repeat(6,1fr);gap:.8cqw;font:600 max(1.95cqw,12px)/1.05 "Geist",sans-serif;letter-spacing:.03em;color:#c9c6d0;text-align:center;top:auto;bottom:20.7%;align-items:end}
.keys{left:4%;right:4%;top:80%;bottom:0;display:grid;grid-template-columns:repeat(6,1fr);gap:.8cqw;padding:0 0 0;
  background:#070608;border-radius:.9cqw .9cqw 0 0;box-shadow:inset 0 .5cqw 1cqw #000;padding:.7cqw .7cqw 0}
.key{all:unset;cursor:pointer;display:grid;place-items:center;border-radius:.7cqw .7cqw 1.6cqw 1.6cqw;color:#e9e6f0;margin-bottom:1.6cqw;
  background:linear-gradient(180deg,#3a393f,#26252a 60%,#1b1a1e);box-shadow:inset 0 .2cqw 0 rgba(255,255,255,.22),inset 0 -1.1cqw 1cqw -.5cqw rgba(0,0,0,.8),0 1.1cqw 0 #0c0b0e,0 1.6cqw 1.4cqw -.4cqw #000;transition:transform .09s,box-shadow .09s}
.key svg{width:3.4cqw;height:3.4cqw}
.key.rec1{color:#ff6b5e}
.key.down,.key:active{transform:translateY(.9cqw);box-shadow:inset 0 .2cqw 0 rgba(255,255,255,.14),inset 0 -.5cqw .6cqw -.3cqw rgba(0,0,0,.8),0 .2cqw 0 #0c0b0e}
.key:focus-visible{outline:.3cqw solid var(--lilac);outline-offset:.3cqw}
@media (prefers-reduced-motion:reduce){*{animation:none!important}
  /* with no moving line, the song name stands still at the start of the screen */
  .disp .name span{padding-left:0}
  .loose.fly,.pen,.clip,.key,.bay svg,.bname{transition:none!important}}

body{padding:0;overflow:hidden;background:#1a120d}
.scene{position:relative;width:100vw;height:100vh;background:url(images/table-2400.jpg) center/cover;overflow:hidden}
.scene::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 30% 20%,rgba(255,220,170,.10),transparent 55%),radial-gradient(ellipse at 50% 50%,transparent 55%,rgba(0,0,0,.42))}
.tbl{position:absolute;left:50%;top:50%;translate:-50% -50%;width:min(100cqw,calc(100cqh*16/9));aspect-ratio:16/9;container-type:size;--pw:41cqw}
.pl{position:absolute;left:3cqw;bottom:5cqh;width:var(--pw);container-type:inline-size;filter:drop-shadow(1.2cqw 1.6cqw 1.4cqw rgba(0,0,0,.55))}
.pl .rec{box-shadow:inset 0 .25cqw 0 rgba(255,255,255,.16),inset 0 -.5cqw .8cqw rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.08)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* a backup hand for letters the four pens cannot write, such as Cyrillic and accented letters */
@font-face{font-family:"Backup 0";src:url(fonts/Caveat.woff2) format("woff2");font-weight:400 700;size-adjust:128%}
@font-face{font-family:"Backup 1";src:url(fonts/Caveat.woff2) format("woff2");font-weight:400 700;size-adjust:92%}
@font-face{font-family:"Backup 2";src:url(fonts/Caveat.woff2) format("woff2");font-weight:400 700;size-adjust:108%}
@font-face{font-family:"Backup 3";src:url(fonts/Caveat.woff2) format("woff2");font-weight:400 700;size-adjust:106%}
body[data-pen="0"]{--bk:"Backup 0";--hf:"Nothing You Could Do","Backup 0","Playpen Sans Arabic","Playpen Sans Hebrew","Playpen Sans Deva","Playpen Sans Thai","Mynerve","Yomogi","Gaegu","Ma Shan Zheng","Noto Sans Armenian","Noto Sans Georgian",cursive;--hw:400;--pen:#23308f;--ks:3.15;--kt:6.3}
body[data-pen="1"]{--bk:"Backup 1";--hf:"Zeyada","Backup 1","Playpen Sans Arabic","Playpen Sans Hebrew","Playpen Sans Deva","Playpen Sans Thai","Mynerve","Yomogi","Gaegu","Ma Shan Zheng","Noto Sans Armenian","Noto Sans Georgian",cursive;--hw:400;--pen:#1c2452;--ks:4.6;--kt:9.2}
body[data-pen="2"]{--bk:"Backup 2";--hf:"Covered By Your Grace","Backup 2","Playpen Sans Arabic","Playpen Sans Hebrew","Playpen Sans Deva","Playpen Sans Thai","Mynerve","Yomogi","Gaegu","Ma Shan Zheng","Noto Sans Armenian","Noto Sans Georgian",cursive;--hw:400;--pen:#17131c;--ks:3.95;--kt:8}
body[data-pen="3"]{--bk:"Backup 3";--hf:"Waiting for the Sunrise","Backup 3","Playpen Sans Arabic","Playpen Sans Hebrew","Playpen Sans Deva","Playpen Sans Thai","Mynerve","Yomogi","Gaegu","Ma Shan Zheng","Noto Sans Armenian","Noto Sans Georgian",cursive;--hw:400;--pen:#4b4a52;--ks:3.9;--kt:7.9}
.hand{font-family:var(--hf);font-weight:var(--hw);color:var(--pen)}
/* the paper: writing sits on every second ruled line */
.sheet{position:absolute;right:2cqw;top:8cqh;height:84cqh;aspect-ratio:1100/1457;rotate:1.5deg;container-type:size;--row:5.114cqh;--paperink:#544D5C}
.sheet>img{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(.5cqw .8cqw .8cqw rgba(0,0,0,.5));pointer-events:none}
.write{position:absolute;left:21.5%;right:3.5%;top:13.05%;font-size:calc(var(--ks)*1cqh*var(--fs,1));line-height:var(--row)}
.write input,.write textarea{font:inherit;color:inherit;line-height:var(--row);height:var(--row);margin:0;padding:0 .25em;border:0;border-radius:3px;background:none;min-width:0;display:block}
/* room under the line for the tails of letters such as y and g, without moving the rows */
.write textarea{box-sizing:content-box;padding-bottom:.5em;margin-bottom:-.5em}
.write input::placeholder,.write textarea::placeholder{color:var(--paperink);opacity:1}
.write input:hover,.write textarea:hover{background:rgba(84,77,92,.07)}
.write input:focus-visible,.write textarea:focus-visible{outline:0;background:rgba(138,43,226,.09);box-shadow:inset 0 -2px 0 #8A2BE2}
.write [hidden]{display:none}
.who{display:block}
.who label{display:flex;align-items:flex-start;gap:.35em;min-height:var(--row)}
.who label span{font:500 2.5cqh/var(--row) "Geist",sans-serif;color:var(--paperink)}
.who label span{flex:none;min-width:3.2em}
.who textarea{flex:1;width:0;resize:none;overflow:hidden}
.write ol{margin:0;padding:0;list-style:none;counter-reset:s}
.write li{counter-increment:s;position:relative;display:flex;align-items:flex-start;min-height:var(--row)}
.write li::before{content:counter(s) ".";flex:none;min-width:1.35em;white-space:nowrap}
.write .ttl{flex:1;resize:none;overflow:hidden}
.lkb{all:unset;flex:none;width:calc(var(--row)*.82);height:calc(var(--row)*.82);margin:calc(var(--row)*.09) 0 0 .3em;display:grid;place-items:center;border-radius:50%;cursor:pointer;color:var(--paperink);opacity:.75}
.lkb svg{width:58%;height:58%}
.lkb:hover{opacity:1;background:rgba(84,77,92,.1)}
.lkb.has{opacity:1;color:#2a2433;box-shadow:inset 0 0 0 .32cqh currentColor;rotate:-8deg}
.sug{position:absolute;left:1.35em;right:0;top:calc(100% - .2cqh);z-index:6;display:grid;gap:.2cqh;padding:.5cqh;border-radius:1.1cqh;background:rgba(250,246,236,.62);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);box-shadow:0 .7cqh 1.8cqh rgba(40,30,20,.16),inset 0 0 0 1px rgba(84,77,92,.12)}
.sug button{all:unset;cursor:pointer;padding:.75cqh 1.3cqh;border-radius:.7cqh;font:400 2.5cqh/1.3 "Geist",sans-serif;color:#4a4352;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sug button b{font-weight:500;color:#2a2433}
.sug button:hover,.sug button:focus-visible{background:rgba(84,77,92,.1)}
.sug button:focus-visible{outline:.4cqh solid #8A2BE2;outline-offset:-.4cqh}
.lkb.sp,.lkb.am{box-shadow:none;outline:.3cqh dashed currentColor;outline-offset:-.3cqh}
.lkb:focus-visible{outline:.4cqh solid #8A2BE2;outline-offset:.2cqh}
.write .url{position:absolute;left:0;right:0;top:0;z-index:2;width:100%;background:#efe9da;font:400 2.6cqh/var(--row) "Geist",sans-serif;color:#2a2433;box-shadow:0 .3cqh .8cqh rgba(0,0,0,.25),inset 0 -2px 0 #8A2BE2}
.write .url:hover,.write .url:focus-visible{background:#efe9da}
.write .url[aria-invalid="true"]{box-shadow:0 .3cqh .8cqh rgba(0,0,0,.25),inset 0 -3px 0 #a3261d}
/* three pen marks at the top of the paper choose the pen */
.pens{position:absolute;left:21%;top:3.6%;display:flex;gap:2cqw;border:0;margin:0;padding:0}
.pens label{position:relative;display:block;width:10cqw;height:5.6cqh;cursor:pointer}
.pens input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.pens svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.pens .ring{opacity:0}
.pens input:checked+svg .ring{opacity:.9}
.pens input:focus-visible+svg{outline:.4cqh solid #8A2BE2;outline-offset:.3cqh;border-radius:4px}
/* a strip of three stickers chooses the colour of the cassette */
.dots{position:absolute;left:47.5cqw;top:31.5cqh;display:flex;gap:.8cqw;padding:.55cqw .9cqw;margin:0;border:0;background:linear-gradient(170deg,#f6f3ea,#e5e0d2);rotate:3deg;box-shadow:.2cqw .35cqw .4cqw rgba(0,0,0,.45)}
.dots label{position:relative;display:block;width:2.5cqw;aspect-ratio:1;cursor:pointer}
.dots input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.dots span{position:absolute;inset:0;border-radius:50%;background:var(--sw);box-shadow:inset 0 0 0 1px rgba(0,0,0,.28),inset 0 .15cqw .2cqw rgba(255,255,255,.6)}
.dots input:checked+span{outline:.24cqw solid #1b1530;outline-offset:.14cqw}
.dots input:focus-visible+span{outline:.3cqw solid #8A2BE2;outline-offset:.14cqw}
/* the name on the label, on the table and behind the player door */
.loose{container-type:inline-size}
#tname,.bname{position:absolute;left:15.2%;top:21.2%;width:71%;height:21%;margin:0;padding:0 1%;border:0;border-radius:4px;background:none;text-align:center;line-height:1;white-space:nowrap;overflow:hidden;display:block}
#tname{font-size:calc(var(--kt)*1cqw);rotate:-1.2deg;cursor:text}
#tname::placeholder{color:#544D5C;opacity:1}
#tname:hover{background:rgba(84,77,92,.08)}
#tname:focus-visible{outline:.5cqw solid #8A2BE2;background:rgba(138,43,226,.07)}
.bname{left:14.6%;top:20.6%;width:72.4%;height:22.2%;font-size:calc(var(--kt)*.57cqw);display:grid;align-content:center;mix-blend-mode:normal;opacity:0;transition:opacity .4s;pointer-events:none}
.rec.in .bname{opacity:1}
.loose{position:absolute;left:45.5cqw;top:9cqh;width:16.5cqw;aspect-ratio:3/2;transform:rotate(-5deg);z-index:3;cursor:pointer}
.loose.fly{transition:transform .6s cubic-bezier(.35,0,.15,1),opacity .2s}
.loose svg:focus-visible{outline:3px solid #BFA6F2;outline-offset:6px;border-radius:8px}
.loose .sh{position:absolute;inset:8% 5.5% 7% 5.5%;border-radius:1.2cqw;background:rgba(0,0,0,.6);filter:blur(.9cqw);translate:.7cqw 1cqw}
.loose svg{position:absolute;inset:0;width:100%;height:100%}
.loose .lh{transform-box:view-box}
.loose.winding .lh{animation:spinback .28s linear infinite}
@keyframes spinback{to{transform:rotate(360deg)}}
@font-face{font-family:"Caveat";src:url(fonts/Caveat.woff2) format("woff2");font-weight:400 700}
@font-face{font-family:"Reenie Beanie";src:url(fonts/ReenieBeanie.woff2) format("woff2")}
.insta{position:absolute;left:47.2cqw;top:41cqh;width:12.5cqw;padding:.9cqw .9cqw 4.7cqw;text-decoration:none;rotate:-6deg;display:block;
  background:linear-gradient(160deg,#f6f3ea,#e9e5d9);box-shadow:.5cqw .8cqw 1cqw rgba(0,0,0,.5),inset 0 0 0 1px rgba(0,0,0,.06),inset 0 .08cqw 0 rgba(255,255,255,.8)}
.insta img{display:block;width:100%;aspect-ratio:1;object-fit:cover;box-shadow:inset 0 0 0 1px rgba(0,0,0,.3);filter:saturate(.92) contrast(1.02)}
.insta .note{position:absolute;left:1.1cqw;right:1cqw;bottom:.55cqw;font:400 2.15cqw/1 "Reenie Beanie","Caveat",cursive;color:#1b1530;rotate:-2deg}
.insta .note b{font-weight:400;display:flex;align-items:center;gap:.35cqw;white-space:nowrap;font-size:.86em}
.insta .note svg{width:1.5cqw;height:1.4cqw;flex:none;translate:0 .1cqw}
.insta .note i{display:block;font-style:normal;font-size:1.65cqw;text-align:right;margin-top:.25cqw;rotate:1.5deg}
.insta::after{content:"";position:absolute;left:.9cqw;right:.9cqw;top:.9cqw;aspect-ratio:1;pointer-events:none;background:linear-gradient(125deg,rgba(255,255,255,.16),transparent 40%);box-shadow:inset 0 0 .5cqw rgba(0,0,0,.45)}
/* Apple's own badge, used exactly as Apple supplies it: no tilt, no shadow, clear space round it */
.am{position:absolute;right:2.2cqw;bottom:1.6cqh;height:4.9cqh;display:block;border-radius:.6cqh}
.am img{display:block;height:100%;width:auto}
.am:focus-visible{outline:3px solid #BFA6F2;outline-offset:4px}
.insta:focus-visible{outline:3px solid #BFA6F2;outline-offset:5px}
.vol div:focus-visible{outline:.3cqw solid var(--lilac);outline-offset:.9cqw}
/* the paper clip copies a link to the tape */
.clip{all:unset;position:absolute;right:5.5cqw;top:5cqh;width:3.6cqw;rotate:38deg;z-index:2;cursor:pointer;filter:drop-shadow(.18cqw .28cqw .16cqw rgba(0,0,0,.6));transition:translate .2s cubic-bezier(.16,1,.3,1),filter .2s}
.clip img{display:block;width:100%;height:auto;pointer-events:none;user-select:none;-webkit-user-drag:none}
@media (hover:hover){.clip:hover{translate:0 -3px;filter:drop-shadow(.3cqw .5cqw .3cqw rgba(0,0,0,.5))}}
.clip:active{translate:0 0}
.clip:focus-visible{outline:2px solid #BFA6F2;outline-offset:6px;border-radius:6px}
/* a tape that came by link can be played and read, and nothing on it can be changed */
body[data-got] #shells,body[data-got] #pens{display:none}
body[data-got] .write textarea,body[data-got] #tname{pointer-events:none;background:none;box-shadow:none}
.pen{all:unset;--x:0px;--y:0px;--r:-4deg;position:absolute;left:44.5cqw;top:87cqh;width:19cqw;padding:1cqh 0;cursor:grab;touch-action:none;z-index:4;
  transform:translate(var(--x),var(--y)) rotate(var(--r));transform-origin:98.6% 50%;filter:drop-shadow(.5cqw .8cqw .5cqw rgba(0,0,0,.55));transition:transform .2s cubic-bezier(.16,1,.3,1),filter .2s}
.pen img{display:block;width:100%;height:auto;pointer-events:none;user-select:none;-webkit-user-drag:none}
.pen:hover{--y:-3px;filter:drop-shadow(.7cqw 1.2cqw .8cqw rgba(0,0,0,.5))}
.pen.drag{cursor:grabbing;transition:none;filter:drop-shadow(1cqw 1.8cqw 1.1cqw rgba(0,0,0,.45))}
.pen.wind{transition:transform .38s cubic-bezier(.16,1,.3,1)}.pen.wind.go{transition:none}
.pen.back{transition:transform .5s cubic-bezier(.16,1,.3,1),filter .3s}
.pen:focus-visible{outline:2px solid #BFA6F2;outline-offset:6px;border-radius:4px}
/* the load screen: the sparkle turns, then the page shows at once and only the reels roll */
.boot{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:var(--ink);transition:opacity .15s linear}
.boot.out{opacity:0;pointer-events:none}
.boot img{width:72px;height:72px;filter:drop-shadow(0 0 12px rgba(191,166,242,.85));animation:turn 1.1s cubic-bezier(.45,0,.2,1) infinite}
@keyframes turn{0%{transform:rotate(0) scale(.72)}50%{transform:rotate(45deg) scale(1.12)}100%{transform:rotate(90deg) scale(.72)}}
.loose.roll .lh{animation:roll 2s cubic-bezier(.3,.1,.2,1) 1}
@keyframes roll{to{transform:rotate(-720deg)}}

/* the keepsakes: when STOP/EJECT sends the tape out, a tray comes out of the player with a print of the tape and a small badge */
.pl{z-index:1}
.keep{position:absolute;z-index:0;left:7cqw;top:15.5cqh;width:27cqw;height:27cqh;display:flex;gap:1.8cqw;align-items:flex-start;justify-content:center;padding:1.5cqw 1.5cqw 0;
  border-radius:1.1cqw 1.1cqw 0 0;background:linear-gradient(155deg,#323136,#1d1c20 45%,#131215);
  box-shadow:inset 0 .12cqw 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(255,255,255,.08),inset 0 0 0 .5cqw #1b1a1e,inset 0 0 1.4cqw .5cqw #000,.6cqw .9cqw 1.2cqw rgba(0,0,0,.5);
  transform:translateY(104%);visibility:hidden;transition:transform .35s cubic-bezier(.2,.8,.2,1),visibility 0s .35s}
.keep.open{transform:none;visibility:visible;transition:transform .5s cubic-bezier(.2,.8,.2,1),visibility 0s}
.keep button{all:unset;cursor:pointer;display:grid;justify-items:center;gap:.9cqh;flex:none;transition:translate .2s cubic-bezier(.16,1,.3,1)}
@media (hover:hover){.keep button:hover{translate:0 -3px}.keep button:active{translate:0 0}}
.keep button:focus-visible{outline:3px solid #BFA6F2;outline-offset:5px;border-radius:6px}
.keep button span{font:600 max(1cqw,12px)/1 "Geist",sans-serif;letter-spacing:.03em;color:#d6d3dc}
.keep canvas{display:block;width:100%;height:auto}
.keep .kp{width:13.2cqw}
.kp canvas{padding:.45cqw;background:linear-gradient(160deg,#f6f3ea,#e9e5d9);box-shadow:.25cqw .4cqw .6cqw rgba(0,0,0,.6);rotate:-2deg}
.keep .kb{width:9cqw;margin-top:1.6cqh}
.kb canvas{border-radius:.25cqw;box-shadow:.2cqw .35cqw .5cqw rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.14);rotate:1.5deg}
@media (prefers-reduced-motion:reduce){.keep,.keep.open,.keep button{transition:none}}

/* The phone collage (Lucy, 23 Nov 2026): tape on top, player under it, paper next, her photo in the lower right corner.
   Used on phones, in tall narrow windows and in any window too small for the wide table.
   The table becomes one tall column that scrolls. Every size is in cqw, so 1cqw is one hundredth of the column width. */
@media (max-width:899px),(max-aspect-ratio:1/1),(max-height:559px){
  html{background:#1a120d}
  body{overflow:auto;overflow-x:hidden}
  .scene{width:100%;height:auto;min-height:100vh;min-height:100dvh;overflow:hidden;background-size:auto 100%;background-position:center top;background-size:cover}
  .tbl{position:relative;left:auto;top:auto;translate:none;margin:0 auto;width:min(100vw,560px);--d:0cqw;--k:0cqw;aspect-ratio:100/350;--pw:94cqw}
  /* a tape that came by link has no color stickers, so everything under the tape moves up */
  body[data-got] .tbl{--d:-17cqw;aspect-ratio:100/333}

  /* the tape, on top */
  .loose{left:4cqw;top:8cqw;width:64cqw}
  /* the pencil stands along the right side, point down, next to the tape it winds */
  .pen{left:38cqw;top:52cqw;width:54cqw;padding:2.4cqw 0;--r:80deg}
  .pen:hover{--y:0px}
  .pen{touch-action:pan-y}
  /* the color stickers, large enough for a thumb */
  .dots{left:7cqw;top:55cqw;gap:3cqw;padding:2cqw 3.2cqw;rotate:-3deg;box-shadow:.5cqw .9cqw 1cqw rgba(0,0,0,.45)}
  .dots label{width:11.8cqw}
  .dots span{box-shadow:inset 0 0 0 1px rgba(0,0,0,.28),inset 0 .5cqw .6cqw rgba(255,255,255,.6)}
  .dots input:checked+span{outline-width:.8cqw;outline-offset:.5cqw}
  .dots input:focus-visible+span{outline-width:.9cqw;outline-offset:.5cqw}

  /* the player, full width */
  .pl{left:3cqw;bottom:auto;top:calc(76cqw + var(--d));filter:drop-shadow(1.6cqw 2.4cqw 2.4cqw rgba(0,0,0,.55))}

  /* the words on the player are larger on a small screen, and the volume slider has a taller area for a thumb */
  .names{font-size:max(2.5cqw,11px)}
  /* the two line STOP/EJECT name needs the volume row a little higher */
  .spk{height:58.5%}.vol{top:63.6%}
  .vol small{font-size:max(2.3cqw,11px);letter-spacing:.06em}
  .vol div::before{inset:-6cqw 0}
  .disp .top{font-size:2.9cqw}

  /* the paper, a little wider than the screen so the writing is large; its left edge runs off the table */
  .sheet{left:-5cqw;right:auto;top:calc(152cqw + var(--d));width:108cqw;height:auto;rotate:1deg}
  .write{right:6.5%}
  .who label span{font-size:2.9cqh}
  /* the list of song matches, with rows tall enough for a thumb */
  .sug button{font-size:2.9cqh;padding:1.9cqh 1.3cqh}
  .clip{right:5.5cqw;top:calc(146.5cqw + var(--d));width:9cqw;padding:2.5cqw}

  /* her photo, in the lower right corner, over the corner of the paper */
  .insta{left:54cqw;top:calc(292cqw + var(--d));width:41cqw;padding:3cqw 3cqw 15.4cqw;rotate:5deg;z-index:3;box-shadow:1.4cqw 2.2cqw 3cqw rgba(0,0,0,.5),inset 0 0 0 1px rgba(0,0,0,.06)}
  .insta::after{left:3cqw;right:3cqw;top:3cqw}
  .insta .note{left:3.6cqw;right:3.2cqw;bottom:1.8cqw;font-size:7cqw}
  .insta .note b{gap:1.1cqw}
  .insta .note svg{width:4.9cqw;height:4.6cqw}
  .insta .note i{font-size:5.4cqw;margin-top:.8cqw}

  /* Apple's badge, lower left */
  .am{right:auto;left:6cqw;bottom:auto;top:calc(326cqw + var(--d));height:11cqw;border-radius:1.4cqw}
}

@media (max-width:899px),(max-aspect-ratio:1/1),(max-height:559px){
  /* on a phone the tray comes out of the front of the player, and the paper and everything under it move down to make room */
  body.kopen .tbl{--k:33cqw;aspect-ratio:100/383}
  body.kopen[data-got] .tbl{aspect-ratio:100/366}
  .sheet,.clip,.insta,.am{translate:0 var(--k);transition:translate .5s cubic-bezier(.2,.8,.2,1)}
  .clip{transition:translate .5s cubic-bezier(.2,.8,.2,1),filter .2s}
  .clip:hover,.clip:active{translate:0 var(--k)}
  body:not(.kopen) .sheet,body:not(.kopen) .clip,body:not(.kopen) .insta,body:not(.kopen) .am{transition-duration:.35s}
  .keep{left:9cqw;top:calc(141cqw + var(--d));width:82cqw;height:37cqw;gap:5cqw;align-items:flex-end;padding:0 4cqw 3.4cqw;border-radius:0 0 3cqw 3cqw;transform:translateY(-104%);
    box-shadow:inset 0 -.3cqw 0 rgba(255,255,255,.1),inset 0 0 0 1px rgba(255,255,255,.08),inset 0 0 0 1.4cqw #1b1a1e,inset 0 0 4cqw 1.4cqw #000,1.4cqw 2.2cqw 3cqw rgba(0,0,0,.5)}
  .keep button{gap:2cqw}
  .keep button span{font-size:3.2cqw}
  .keep .kp{width:40cqw}.kp canvas{padding:1.3cqw}
  .keep .kb{width:27cqw;margin:0 0 2cqw}
}
@media (max-width:899px) and (prefers-reduced-motion:reduce),(max-aspect-ratio:1/1) and (prefers-reduced-motion:reduce),(max-height:559px) and (prefers-reduced-motion:reduce){.sheet,.clip,.insta,.am{transition:none}}
