.flick-card {
  position: relative;
  margin-block-end: 12px;
  border-radius: var(--radius-xl);
  perspective: 1100px;
  touch-action: pan-y pinch-zoom;
}

.flick-tilt,
.flick-rotor { transform-style: preserve-3d; }

.flick-rotor {
  display: grid;
  transform: rotateY(0deg);
  cursor: grab;
}
.flick-rotor:active { cursor: grabbing; }

.flick-face {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  margin: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flick-face::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--flick-light-x, 50%) 0%, #edf6ff, transparent 70%);
  opacity: var(--flick-light, 0);
  content: "";
}
.flick-front { transform: translateZ(3px); }
.flick-back {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: radial-gradient(ellipse at top right, #223c56 0%, transparent 72%), #151b25;
  transform: rotateY(180deg) translateZ(3px);
}
.flick-front > :first-child { max-inline-size: calc(100% - 36px); }
.flick-front > .badge:first-child { white-space: normal; }

.flick-edge,
.flick-edge::before,
.flick-edge::after {
  position: absolute;
  inset: 1px;
  border-radius: var(--radius-xl);
  background: #24354a;
  pointer-events: none;
}
.flick-edge::before,
.flick-edge::after { content: ""; transform: translateZ(2px); }
.flick-edge { transform-style: preserve-3d; }
.flick-edge::after { transform: translateZ(-2px); background: #18304a; }

.flick-shadow {
  position: absolute;
  inset: auto 10% -5px;
  block-size: 22px;
  border-radius: 50%;
  background: #111c2b;
  filter: blur(13px);
  opacity: var(--flick-shadow, 0);
  transform: scaleX(var(--flick-shadow-width, 1));
  pointer-events: none;
}

.flick-toggle {
  position: absolute;
  z-index: 2;
  inset: 8px auto auto 7px;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #d7e8fa;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}
.flick-toggle::before {
  position: absolute;
  inset: 7px;
  border: 1px solid #ffffff25;
  border-radius: inherit;
  background: #ffffff10;
  content: "";
}
.flick-toggle > svg { position: relative; }
.flick-toggle:focus-visible { outline: 2px solid #a3d1ff; outline-offset: -5px; }
.flick-toggle[aria-pressed="true"] { color: #b8e7ff; }

.flick-request-options { display: grid; gap: 7px; padding-inline-end: 36px; }
.flick-request-options > div {
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid #ffffff16;
  border-radius: 12px;
  background: #ffffff08;
}
.flick-request-options .sub { margin: 0; color: #c0cedf; }
.flick-referral-code {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 22px 8px 10px;
  text-align: center;
}
.flick-referral-code strong {
  color: #68deb5;
  font-size: clamp(22px, 7vw, 32px);
  overflow-wrap: anywhere;
}
.flick-referral-code .sub { color: #c0cedf; }
.flick-copy-back { align-self: center; }

@media (prefers-reduced-motion: reduce) {
  .flick-shadow, .flick-face::after { display: none; }
}
