.rb-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #e9d5b5;
  overflow: hidden;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.rb-dialog::backdrop { background: transparent; }
.rb-dialog button { -webkit-tap-highlight-color: transparent; font: inherit; }
.rb-space { position: absolute; inset: 0; }
.rb-orbit { position: absolute; inset: 0; perspective: 1450px; perspective-origin: 50% 44%; }
.rb-departing { position: fixed; z-index: 80; pointer-events: none; }
.rb-record-slot {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(40vw, 49vh, 440px);
  aspect-ratio: 1;
  transform-style: flat;
  isolation: isolate;
  transition: transform 660ms cubic-bezier(.22,.8,.25,1);
  will-change: transform;
  pointer-events: none;
}
.rb-opening .rb-record-slot, .rb-closing .rb-record-slot { transition: none; }
.rb-record-slot.rb-wrap-reset { transition: none !important; visibility: hidden; }
.rb-opening .rb-cover, .rb-opening .rb-peek-disc,
.rb-closing .rb-cover, .rb-closing .rb-peek-disc { pointer-events: none; }
.rb-sleeve { position: relative; width: 100%; height: 100%; pointer-events: none; }
/* One painted surface per sleeve: cover, disc and shadows cannot be sorted
   or clipped independently by the mobile compositor during a transition. */
.rb-illustration {
  position: absolute;
  left: -25%;
  top: -25%;
  width: 175%;
  height: 150%;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.rb-cover, .rb-peek-disc {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  outline: none !important;
  cursor: pointer;
  pointer-events: auto;
}
.rb-cover { inset: 0; width: 100%; height: 100%; z-index: 2; }
.rb-peek-disc {
  width: 91%;
  height: 91%;
  left: 4.5%;
  top: 4.5%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}
.rb-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  padding: 12px;
  background: transparent;
  color: #e4cfad;
  opacity: .64;
  cursor: pointer;
  transition: opacity 200ms, background 200ms;
}
.rb-icon svg { width: 22px; height: 22px; }
.rb-icon:hover { opacity: 1; background: #ded0ae0c; }
.rb-icon:focus-visible,
.rb-dots button:focus-visible { outline: 1px solid #e4cfad; outline-offset: 3px; }
.rb-close { position: absolute; right: max(20px, env(safe-area-inset-right)); top: max(20px, env(safe-area-inset-top)); }
.rb-navigation {
  position: absolute;
  left: 50%;
  top: calc(47% + min(20vw, 24.5vh, 220px) + 75px);
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}
.rb-previous svg { transform: rotate(180deg); }
.rb-dots { display: flex; gap: 0; align-items: center; }
.rb-dots button { display: grid; place-items: center; width: 26px; height: 30px; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.rb-dots span { width: 4px; height: 4px; border-radius: 50%; background: #d5c3a3; opacity: .32; transition: opacity 300ms, box-shadow 300ms; }
.rb-dots [aria-pressed="true"] span { opacity: .95; box-shadow: 0 0 0 3px #e0c8a018; }
.rb-navigation, .rb-close { opacity: 0; pointer-events: none; transition: opacity 350ms; }
.rb-ready .rb-navigation { opacity: 1; pointer-events: auto; }
.rb-ready .rb-close { opacity: .7; pointer-events: auto; }
.rb-closing .rb-navigation, .rb-closing .rb-close { opacity: 0; transition-delay: 0ms; }
@media (max-width: 600px) {
  .rb-record-slot { width: min(65vw, 47vh); }
  .rb-navigation { top: calc(47% + min(32.5vw, 23.5vh) + 62px); }
  .rb-orbit { perspective: 1000px; }
  .rb-close { right: 12px; top: 12px; }
  .rb-navigation { gap: 12px; }
  .rb-dots button { width: 24px; }
}
@media (max-height: 520px) and (min-width: 601px) {
  .rb-record-slot { width: 55vh; }
  .rb-navigation { top: auto; bottom: 8px; gap: 10px; }
  .rb-close { top: 8px; right: 12px; }
}
