@font-face {
  font-family: 'I Eat Crayons';
  src: url('./assets/i-eat-crayons.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
:root {
  --hand: 'I Eat Crayons', 'Caveat', 'Bradley Hand', cursive;
}
@font-face {
  font-family: 'Caveat';
  src: url('./assets/caveat-latin-ext.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  src: url('./assets/caveat-latin.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.rocket-wordmark {
  display: block;
  position: relative;
  width: clamp(196px, 19vw, 274px);
  aspect-ratio: 2.52;
  touch-action: manipulation;
  user-select: none;
}
.rocket-wordmark > img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.rocket-wordmark[data-mesh] > img,
.rocket-tape[data-mesh] .rocket-spine-label {
  opacity: 0;
}
.rocket-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}
.rocket-scene[hidden] {
  display: none;
}
.cassette-stack {
  position: relative;
  display: flow-root;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  line-height: 0;
}
.rocket-tape {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.29;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.rocket-tape + .rocket-tape {
  margin-top: -33.5%;
}
.cassette-stack > .rocket-tape { left: var(--stack-offset, 0%); }
.cassette-stack > .rocket-tape:not([data-mesh]) {
  transform: skewY(calc(var(--stack-yaw, 0rad) * .32));
}
.bin[data-tower-state] .rocket-tape:not(.tower-seated) { visibility: hidden; }
.rocket-tower-flight {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2;
  pointer-events: none;
  container-type: inline-size;
}
.rocket-tape:not([data-mesh]) {
  clip-path: polygon(2% 38%, 9% 15%, 93% 15%, 96% 74%, 92% 95%, 2% 95%);
}
[data-source='internet'],
[data-loaded='internet'] {
  --shell-color: var(--rocket-internet, #aa96d4);
}
[data-source='fresh'],
[data-loaded='fresh'] {
  --shell-color: var(--rocket-fresh, #eabb62);
}
[data-source='phone'],
[data-loaded='phone'] {
  --shell-color: var(--rocket-phone, #83ac94);
}
.rocket-tape:not([data-mesh])::before {
  content: '';
  position: absolute;
  inset: 13% 2% 5%;
  background:
    radial-gradient(ellipse at 34% 36%, #5e6054 0 2.5%, #f0edd7 3% 6%, #505348 7% 10%, transparent 10.5%),
    radial-gradient(ellipse at 65% 36%, #5e6054 0 2.5%, #f0edd7 3% 6%, #505348 7% 10%, transparent 10.5%),
    linear-gradient(175deg, transparent 0 64%, #0003 66% 72%, transparent 73%), var(--shell-color);
}
.rocket-tape.is-lifted {
  visibility: hidden;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bin .rocket-tape:not([data-mesh])::before,
  .bin .rocket-tape:not([data-mesh]) .rocket-spine-label { transition: transform 140ms ease-out; }
  body:not(.carrying-tape) .bin .rocket-tape:not([data-mesh]):hover::before,
  body:not(.carrying-tape) .bin .rocket-tape:not([data-mesh]):hover .rocket-spine-label {
    transform: translateX(1%) rotate(.65deg);
  }
}
.rocket-spine-label {
  position: absolute;
  left: 3%;
  top: 69%;
  width: 90%;
  height: 24%;
  display: grid;
  place-items: center;
  overflow: hidden;
  white-space: nowrap;
  color: #20251e;
  border-radius: 3px;
  background-color: #faf3de;
  border: 2px solid var(--shell-color);
  font: 400 6.3cqi/1 var(--hand);
}
.rocket-spine-name {
  grid-area: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rocket-tape:not([data-initials='']) .rocket-spine-name {
  max-width: 72%;
}
.rocket-spine-initials {
  grid-area: 1 / 1;
  justify-self: end;
  margin-right: 1.3%;
  font-size: 0.88em;
  color: #b81f18;
}
.rocket-tape:is(:focus-visible, .is-picked) .rocket-spine-name {
  color: #123fa7;
  text-decoration: underline;
}
button.rocket-tape {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
}
.rocket-player-view,
.rocket-prop-view {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  pointer-events: none;
}
.rocket-player-view[data-mesh] .player-fallback-shell,
.rocket-prop-view[data-mesh] i,
.rocket-pen-view[data-mesh] b {
  visibility: hidden;
}
.player-fallback-shell {
  position: absolute;
  top: 2%;
  left: 50%;
  height: 84%;
  aspect-ratio: 0.79;
  border: 1px solid #1f2427;
  border-bottom: 3px solid #24282a;
  border-radius: 5%;
  background: linear-gradient(115deg, #464a4b, #383d3f 54%, #2c3033);
  transform: translateX(-50%) rotate(7deg);
  box-shadow: 1px 2px 0 #222629;
}
.player-fallback-shell::before {
  content: '';
  position: absolute;
  left: 7%;
  right: 7%;
  top: 5%;
  height: 31%;
  border: 1px solid #292e30;
  border-radius: 3%;
  background:
    repeating-linear-gradient(to bottom, #303538 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #1d2225 0 1px, #414748 1px 3px);
}
.player-fallback-bay {
  position: absolute;
  inset: 42% 9% 22%;
  border: 2px solid #222728;
  border-radius: 4%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: #282d30;
  box-shadow: inset 0 1px 2px #191f21;
}
.player-fallback-bay::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid #353a3e;
  border-top-color: #687071;
  background: linear-gradient(117deg, transparent 0 45%, #a5b9c321 45% 51%, transparent 51%);
  transform-origin: top;
  transition: transform 0.3s;
}
.recorder-enlarged .rocket-player-view:not([data-loaded]) .player-fallback-bay::after,
.rocket-player-view[data-loaded]:not([data-seated]) .player-fallback-bay::after {
  transform: perspective(70px) rotateX(64deg);
}
.player-fallback-keys {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6%;
  height: 12%;
  border-radius: 2px;
  border: 1px solid #262a2b;
  border-bottom: 2px solid #181a1b;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2%;
  background: #24282a;
}
.player-fallback-keys i { border-radius: 1px; background: #494c4d; border-bottom: 2px solid #303335; }
.player-fallback-keys i:first-child { background: #c33c2f; border-color: #8f2821; }
.player-fallback-handle {
  position: absolute;
  left: 2%;
  right: 2%;
  height: 14%;
  top: 95%;
  border: 2px solid #303536;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.player-tape-label {
  position:absolute; bottom:2%; left:4%; right:4%; height:22%;
  display:flex; justify-content:center; align-items:center; gap:2%;
  overflow:hidden; white-space:nowrap; border-radius:1px; color:#34352e; background:#f8f3df;
  font:400 clamp(3px,.47vw,8px)/1 var(--hand);
}
.player-tape-label b {color:#b81f18; font-weight:400;}
.rocket-player-view:not([data-seated]) .player-tape-label {visibility:hidden;}
.player-fallback-bay i {
  border-radius: 50%;
  height: 35%;
  aspect-ratio: 1;
  background: repeating-conic-gradient(#e5e0c6 0deg 33deg, #48483c 33deg 60deg);
}
.rocket-player-view[data-loaded][data-seated] .player-fallback-bay {
  background: var(--shell-color);
}
.rocket-player-view[data-turning] .player-fallback-bay i {
  animation: rocket-spindle 0.63s linear infinite;
}
@keyframes rocket-spindle {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .player-fallback-bay::after {
    transition: none;
  }
  .rocket-player-view[data-turning] .player-fallback-bay i {
    animation: none;
    transform: rotate(37deg);
  }
}
.rocket-pen-view i,
.rocket-note-model b {
  position: absolute;
  left: 47%;
  top: 3%;
  width: 6%;
  min-width: 4px;
  height: 94%;
  border-radius: 40% 40% 20% 20%;
  background: linear-gradient(90deg, #a32923 0 18%, #df4739 32%, #c3332d 78%, #912820);
  transform: rotate(-4deg);
  clip-path: polygon(15% 0, 88% 0, 100% 76%, 52% 100%, 0 76%, 0 3%);
}
.writing-pen-away .rocket-pen-view {
  visibility: hidden;
}
.rocket-pen-view b {
  position: absolute;
  top: 1%;
  left: calc(50% - 1px - 3.1%);
  width: 4%;
  min-width: 2px;
  height: 6%;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(#b8322a 0 36%, #b5b7ae 36% 100%);
  transform: rotate(-4deg);
}
@media (prefers-reduced-motion: no-preference) {
  #desk-pen[data-idle-hover] .rocket-pen-view:not([data-mesh]) { animation: pen-rock .41s ease-in-out; }
  #desk-pen[data-idle-hover] .rocket-pen-view b { animation: pen-click .41s ease-in-out; }
  #player-target[data-idle-hover] .player-fallback-shell { animation: recorder-rock .41s ease-in-out; }
  #paint-brush[data-idle-hover] .rocket-brush-view:not([data-mesh]) i { animation: brush-roll .72s ease-in-out; }
  .player-fallback-keys i { transition: transform .09s ease; }
  .player-fallback-keys i[data-pressed] { transform: translateY(1.5px) scaleY(.79); filter: brightness(.88); }
}
@keyframes pen-rock { 50% { transform: rotate(-6deg); } }
@keyframes pen-click { 50% { transform: translateY(46%) rotate(-4deg); } }
@keyframes recorder-rock { 50% { transform: translateX(-50%) rotate(9deg); } }
@keyframes brush-roll { to { transform: perspective(270px) rotateX(360deg); } }
.brush-in-hand .rocket-brush-view { visibility: hidden; }
.rocket-brush-view i {
  position: absolute;
  left: 3%;
  top: 28%;
  width: 94%;
  height: 44%;
  border-radius: 68% 24% 24% 68%;
  background: linear-gradient(90deg, #a36838 0 65%, #989d92 66% 77%, #8a6549 79%, #b4916d);
  clip-path: polygon(0 40%, 67% 31%, 78% 10%, 100% 0, 100% 100%, 78% 86%, 64% 70%, 0 60%);
}
.rocket-flying-fallback {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
  aspect-ratio: 2;
  border-radius: 5%;
  background:
    radial-gradient(circle at 33% 45%, #eae6d4 0 7%, #42463c 8% 12%, transparent 13%),
    radial-gradient(circle at 67% 45%, #eae6d4 0 7%, #42463c 8% 12%, transparent 13%), var(--shell-color);
}
.rocket-note-model {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.74;
  pointer-events: none;
}
.rocket-note-model canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
}
.rocket-note-model i {
  position: absolute;
  inset: 4%;
  border-radius: 5%;
  background:
    radial-gradient(circle at 2% 4%, #73786f 0 1.1%, transparent 1.4%),
    radial-gradient(circle at 98% 4%, #73786f 0 1.1%, transparent 1.4%), #faf6e8;
  border: clamp(12px, 2.4vw, 28px) solid var(--shell-color);
}
.rocket-note-model > b {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  min-width: 0;
  transform-origin: 50% 100%;
  border-radius: 24% 24% 1% 1%;
  background:
    linear-gradient(to bottom, #b62b23 0 3%, #c7c7bd 3% 9%, transparent 9% 83%, #d2d1c3 85% 96%, #555650 98%),
    linear-gradient(90deg, #8d211c 0%, #e15a45 34%, #b72e26 77%, #8b211b);
  clip-path: polygon(25% 0, 75% 0, 75% 6%, 99% 9%, 93% 78%, 85% 86%, 55% 98%, 52% 100%, 48% 100%, 45% 98%, 15% 86%, 7% 78%, 1% 9%, 25% 6%);
}
.rocket-note-model[data-mesh] > i,
.rocket-note-model[data-pen-mesh] > b {
  visibility: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .note-dialog[open]::backdrop {
    animation: rocket-backdrop 0.64s both;
  }
  .note-dialog[open] > header {
    animation: rocket-header 0.64s both;
  }
  @keyframes rocket-backdrop {
    from {
      background: transparent;
    }
    to {
      background: rgba(255, 255, 255, 0.91);
    }
  }
  @keyframes rocket-header {
    0%,
    55% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
}
