@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/0.woff2) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(fonts/1.woff2) format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/2.woff2) format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/3.woff2) format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/4.woff2) format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/5.woff2) format('truetype');
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

canvas#petalCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  cursor: pointer;
}

:root {
  --rf-theme: #df418d;
  --rf-theme-soft: #f28cba;
}

#hud {
  display: none;
  position: fixed;
  z-index: 5;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
}

#hud.visible {
  display: block;
}

.rf-disc {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.55));
  transition: transform .2s ease;
}

.rf-disc:hover { transform: scale(1.06); }
.rf-disc:active { transform: scale(.94); }

.rf-disc:focus-visible {
  outline: 2px solid var(--rf-theme-soft);
  outline-offset: 4px;
  border-radius: 50%;
}

.rf-disc__svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--rf-theme) 55%, transparent), 0 0 16px color-mix(in srgb, var(--rf-theme) 35%, transparent);
  transition: box-shadow .35s ease, opacity .35s ease;
}

.rf-disc__vinyl { fill: #1a0a12; }
.rf-disc__groove { fill: none; stroke: rgba(255,255,255,.09); stroke-width: .8; }
.rf-disc__shine { fill: none; stroke: rgba(255,255,255,.32); stroke-width: 2.2; stroke-linecap: round; }
.rf-disc__shine--soft { stroke: rgba(255,255,255,.14); }
.rf-disc__label { fill: var(--rf-theme); }
.rf-disc__label-ring { fill: none; stroke: var(--rf-theme-soft); stroke-width: 1.4; stroke-dasharray: 2 2.4; }
.rf-disc__heart { fill: #fff; }
.rf-disc__sparkle { fill: rgba(255,255,255,.75); }

.rf-disc.on .rf-disc__svg {
  animation: rfDiscSpin 3s linear infinite;
  box-shadow: 0 0 0 2px var(--rf-theme-soft), 0 0 24px color-mix(in srgb, var(--rf-theme) 60%, transparent);
}

.rf-disc:not(.on) .rf-disc__svg { opacity: .82; }

.rf-disc__notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rf-disc__notes i {
  position: absolute;
  left: 4px;
  top: 12px;
  font: 700 15px/1 Outfit, system-ui, sans-serif;
  font-style: normal;
  color: var(--rf-theme-soft);
  text-shadow: 0 0 8px color-mix(in srgb, var(--rf-theme) 70%, transparent);
  opacity: 0;
}

.rf-disc.on .rf-disc__notes i { animation: rfNote 2.4s ease-out infinite; }
.rf-disc.on .rf-disc__notes i:nth-child(2) { animation-delay: .8s; font-size: 13px; }
.rf-disc.on .rf-disc__notes i:nth-child(3) { animation-delay: 1.6s; font-size: 11px; }

@keyframes rfDiscSpin {
  to { transform: rotate(360deg); }
}

@keyframes rfNote {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.6); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-26px, 30px) rotate(-18deg) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .rf-disc.on .rf-disc__svg,
  .rf-disc.on .rf-disc__notes i { animation: none; }
}