.cd-native { display: none }
#gift-cd, #edit-cd { display: grid; justify-items: center }
.cd-experience {
  --cd-tint: #e2dbce; --cd-tint-light: #f4f0e7;
  width: min(100%, 238px); padding: 6px 0 9px; text-align: center;
}
.cd-experience[data-color="persimmon"] { --cd-tint: #d5a29a; --cd-tint-light: #efcec5 }
.cd-experience[data-color="moss"] { --cd-tint: #a4b299; --cd-tint-light: #d6dfcc }
.cd-experience[data-color="mist"] { --cd-tint: #9db3c0; --cd-tint-light: #d0dce4 }
.cd-experience .cd-player {
  position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 1;
  min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  cursor: pointer; filter: drop-shadow(0 7px 7px #44332636);
}
.cd-experience .cd-player:focus-visible { outline: 2px solid #286466; outline-offset: 5px }
.cd-face {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  transform: scale(.79);
  transition: transform 480ms cubic-bezier(.22,.75,.25,1), filter 240ms ease;
}
.cd-player.is-playing .cd-face { transform: scale(1) }
.cd-disc, .cd-glint {
  position: absolute; inset: 0; border-radius: 50%;
  mask: radial-gradient(circle closest-side, transparent 0 11.5%, #000 12.1%);
}
.cd-hub {
  position: absolute; top: 50%; left: 50%; width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle, transparent 0 58%,
      #fffefaeb 59% 65%, #e8eeebd9 66% 71%, #a7b4b8a6 72% 76%,
      #f8f6eeeb 77% 89%, #b4c2c65c 90% 100%);
  box-shadow: inset 0 0 0 1px #fffffa8c, inset 0 0 5px #50636b26;
}
.cd-glint {
  pointer-events: none; opacity: .76; transform: rotate(-8deg);
  transition: transform 640ms cubic-bezier(.22,.75,.25,1), opacity 420ms ease;
  background:
    radial-gradient(ellipse at 25% 15%,#fff8 0%,#fff2 31%,transparent 52%),
    linear-gradient(135deg,transparent 12%,#fff1 20%,#fff4 26%,#ffffffe8 30%,#fffffff5 31.5%,
      #fff4 35%,transparent 44%,#07172c16 62%,#f3ffffa0 79%,#fff3 83%,transparent 92%);
}
.cd-disc {
  border: 1px solid #8a9499;
  background:
    radial-gradient(ellipse at 27% 17%, #ffffff9c 0%, #ffffff38 27%, transparent 49%),
    radial-gradient(ellipse at 73% 83%, #ffffff42 0%, transparent 43%),
    radial-gradient(circle,transparent 0 12.1%,#d6dcdd 12.4% 13.7%,#f7f8f1c4 14% 16.2%,#8b9a9e66 17%,#fff0 18.2%),
    radial-gradient(circle,transparent 0 90%,#ffffff70 94.5%,#fdfcf7e6 97.8%,#65737bc4 99.3%,transparent 100%),
    repeating-radial-gradient(circle,transparent 0 1.4px,#34454b12 1.6px,#f7ffff30 2px,transparent 2.3px 2.8px),
    conic-gradient(from 22deg,
      #828c93 0%,#c2c9c9 6%,#fbf5e7 11%,#f8fcfd 14%,#b7d2e7 19%,#ddcae9 23%,
      var(--cd-tint-light) 27%,#e7eeee 33%,#929ea6 40%,#7c858d 47%,#aeb9c0 52%,#aed9d0 58%,
      #fbfcf0 64%,var(--cd-tint) 68%,#d8d4e7 73%,#9daab6 79%,#eef5fa 86%,#dee2dd 91%,#828c93 100%);
  box-shadow:
    inset 0 0 0 1px #fcfbefb8,
    inset 0 0 10px #ffffef58,
    inset 0 -2px 7px #5b6b7418;
  animation: cd-spin 8s linear infinite paused;
}
.cd-heart {
  position: absolute; top: 78%; left: 50%; width: 24px; height: 23px;
  transform: translateX(-50%) rotate(-8deg); pointer-events: none; background: #b23a2e;
  clip-path: path("M 12 21.7 C 11.4 22.1 10.9 21.6 10.4 21.2 C 6 17.4 1.5 13.3 1.1 8.9 C .8 5.1 3.2 2.6 6.4 2.5 C 8.9 2.4 10.7 3.9 12 5.8 C 13.2 3.7 15.1 2.3 17.8 2.6 C 21.3 2.9 23.2 5.9 22.5 9.3 C 21.6 13.8 17.1 18.1 12 21.7 Z");
}

.cd-player.is-playing .cd-disc { animation-play-state: running }
.cd-player.is-playing .cd-glint { transform: rotate(7deg); opacity: 1 }
@keyframes cd-spin { to { transform: rotate(1turn) } }
.cd-feedback { margin: 7px 0 0; color: #6d2f26; font-size: 14px }
.cd-colors { border: 0; min-inline-size: 0; margin: 16px 0 10px; padding: 0 }
.cd-colors legend { padding: 0; font-size: 14px; font-weight: 650 }
.cd-color-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px }
#editor .cd-swatch {
  --swatch: #e8dcc7; position: relative; display: flex; align-items: center; gap: 6px;
  min-height: 44px; margin: 0; padding: 5px 8px; border: 1px solid #b9a995; border-radius: 6px;
  background: #fffaf3; color: #46342b; font-size: 13px; cursor: pointer;
}
.cd-swatch::before { content: ""; flex: none; width: 15px; height: 15px; border: 1px solid #5b4f41; border-radius: 50%; background: var(--swatch) }
#editor .cd-swatch[data-color="persimmon"] { --swatch: #c68375 }
#editor .cd-swatch[data-color="moss"] { --swatch: #aeb799 }
#editor .cd-swatch[data-color="mist"] { --swatch: #a8bac4 }
#editor .cd-swatch:has(:checked) { border-color: #8b4336; background: #f4e5d6; font-weight: 700 }
#editor .cd-swatch:has(:focus-visible) { outline: 2px solid #286466; outline-offset: 2px }
#editor .cd-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer }
#edit-cd { margin-bottom: 11px }
@media (prefers-reduced-motion: reduce) {
  .cd-disc { animation: none }
  .cd-player .cd-face, .cd-player.is-playing .cd-face,
  .cd-player .cd-glint, .cd-player.is-playing .cd-glint { transform: none; transition: none }
}

@media (hover: hover) {
  .cd-experience .cd-player:hover .cd-face { filter: brightness(1.035) saturate(1.02) }
  .cd-experience .cd-player:active .cd-face { filter: brightness(.975) }
}

.cd-control {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border: 1px solid #fff4e2;
  border-radius: 50%;
  background: #4e3129;
  color: #fff4e2;
  pointer-events: none;
}
.cd-control::before {
  content: "";
  width: 12px;
  height: 14px;
  margin-left: 2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.cd-player.is-playing .cd-control::before {
  width: 11px;
  margin-left: 0;
  background: transparent;
  border-inline: 3px solid currentColor;
  clip-path: none;
}
