/* Idea Lab: original glass and soft-surface experiments. */
.idea-stage {
  --idea-ink: var(--cc-ink, #1d1d1f);
  --idea-muted: var(--cc-muted, #55555d);
  --idea-shadow: var(
    --cc-shadow,
    0 10px 28px -14px #26344942,
    inset 0 1px 0 #fff
  );
  --idea-inset: var(
    --cc-inset,
    inset 3px 3px 8px #2634491a,
    inset -3px -3px 8px #ffffffd9
  );
  position: relative;
  isolation: isolate;
  min-height: 240px;
  width: 100%;
  padding: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(
    --cc-stage,
    linear-gradient(135deg, #f7f9fb 0%, #e4e8ee 58%, #dce7f1 100%)
  );
  color: var(--idea-ink);
  font: 14px/1.4
    var(--cc-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
.idea-stage * {
  box-sizing: border-box;
}
.idea-stage button,
.idea-stage input {
  font: inherit;
}
.idea-stage :is(button, input):focus-visible {
  outline: 3px solid var(--cc-accent, #0066cc);
  outline-offset: 4px;
}
.idea-label {
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: var(--cc-muted, #55555d);
}
.idea-pill {
  border: 1px solid var(--cc-glass-edge, #ffffffd9);
  border-radius: 99px;
  padding: 9px 15px;
  background: var(--cc-glass, linear-gradient(135deg, #ffffffed, #f2f6fbd9));
  color: var(--cc-accent, #0066cc);
  font-weight: 700 !important;
  font-size: 12px !important;
  box-shadow: var(--idea-shadow);
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s;
}
.idea-pill:hover {
  transform: translateY(-3px);
  box-shadow:
    0 11px 22px
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 12%, transparent),
    inset 0 1px 0 var(--cc-glass-edge, #ffffffd9);
}
.idea-pill:active,
.idea-pill[aria-pressed="true"] {
  transform: translateY(1px);
  box-shadow: var(--idea-inset);
}
.idea-orbit,
.idea-wave-card,
.idea-prism,
.idea-portal,
.idea-deck,
.idea-signal {
  width: min(100%, 260px);
  border: 1px solid var(--cc-glass-edge, #ffffffd9);
  border-radius: 22px;
  background:
    linear-gradient(
      115deg,
      transparent 28%,
      var(--cc-glass-edge, #ffffffd9) 48%,
      transparent 67%
    ),
    var(--cc-glass, linear-gradient(135deg, #ffffffed, #f2f6fbd9));
  background-size:
    230% 100%,
    100% 100%;
  background-position:
    100% 0,
    0 0;
  box-shadow:
    0 2px 4px color-mix(in srgb, var(--cc-shadow-ink, #263449) 3%, transparent),
    0 16px 30px
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 16%, transparent),
    inset 0 1px 0 var(--cc-glass-edge, #ffffffd9),
    inset 0 -1px 0
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 6%, transparent);
  -webkit-backdrop-filter: blur(var(--cc-frost, 15px));
  backdrop-filter: blur(var(--cc-frost, 15px));
  padding: 16px;
  text-align: center;
  transition:
    background-position 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s,
    transform 0.4s;
}
:is(
  .idea-orbit,
  .idea-wave-card,
  .idea-prism,
  .idea-portal,
  .idea-deck,
  .idea-signal
):is(:hover, :focus-within) {
  background-position:
    0 0,
    0 0;
  box-shadow:
    0 22px 36px
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 18%, transparent),
    0 0 22px
      color-mix(in srgb, var(--cc-accent-light, #79b5ee) 17%, transparent),
    inset 0 1px 0 var(--cc-glass-edge, #ffffffd9),
    inset 0 -1px 0
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 8%, transparent);
}
.idea-orbit-ring {
  width: 110px;
  height: 110px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--cc-accent, #0066cc) calc(var(--level) * 1%),
    #cdd7e8 0
  );
  box-shadow:
    5px 5px 14px
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 15%, transparent),
    -4px -4px 12px white;
  transform: rotate(-90deg);
  transition: background 0.3s;
}
.idea-orbit-core {
  display: grid;
  place-content: center;
  width: 87px;
  height: 87px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--cc-surface, #f8f9fb),
    var(--cc-accent-soft, #e4effa)
  );
  box-shadow: var(--idea-inset);
  transform: rotate(90deg);
}
.idea-orbit-core span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--cc-muted, #55555d);
}
.idea-orbit-core strong {
  font-size: 23px;
  letter-spacing: -0.06em;
}
.idea-range-label,
.idea-signal label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cc-muted, #55555d);
  text-align: left;
}
.idea-stage input[type="range"] {
  accent-color: var(--cc-accent, #0066cc);
  width: 100%;
  cursor: pointer;
}
.idea-wave {
  height: 86px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.idea-wave i {
  width: 11px;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(
    180deg,
    var(--cc-accent-light, #79b5ee),
    var(--cc-accent, #0066cc)
  );
  box-shadow: 2px 3px 7px
    color-mix(in srgb, var(--cc-shadow-ink, #263449) 11%, transparent);
  transition: height 0.35s;
}
.idea-wave i:nth-child(2),
.idea-wave i:nth-child(6) {
  height: 34px;
}
.idea-wave i:nth-child(3),
.idea-wave i:nth-child(5) {
  height: 54px;
}
.idea-wave i:nth-child(4) {
  height: 68px;
}
.is-playing .idea-wave i {
  animation: idea-wave 0.7s ease-in-out infinite alternate;
}
.is-playing .idea-wave i:nth-child(2n) {
  animation-delay: -0.3s;
}
.is-playing .idea-wave i:nth-child(3n) {
  animation-delay: -0.5s;
}
.idea-prism-orb {
  width: 90px;
  height: 90px;
  margin: 10px auto;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #fff,
    var(--prism) 44%,
    #57619e 100%
  );
  box-shadow:
    0 15px 25px
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 13%, transparent),
    inset -6px -7px 14px
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 18%, transparent);
  transition:
    background 0.4s,
    transform 0.4s;
}
.idea-prism:focus-within .idea-prism-orb,
.idea-prism:hover .idea-prism-orb {
  transform: rotate(12deg) scale(1.06);
}
.idea-swatches {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.idea-swatches legend {
  font-size: 10px;
  color: var(--idea-muted);
  margin: auto auto 6px;
}
.idea-swatches label {
  position: relative;
  cursor: pointer;
}
.idea-swatches input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.idea-swatches span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--swatch);
  border: 3px solid var(--cc-glass-edge, #ffffffd9);
  box-shadow: 2px 3px 8px
    color-mix(in srgb, var(--cc-shadow-ink, #263449) 14%, transparent);
  font-size: 0;
  transition: transform 0.25s;
}
.idea-swatches input:checked + span {
  outline: 2px solid var(--cc-accent, #0066cc);
  outline-offset: 2px;
  transform: scale(1.1);
}
.idea-swatches input:focus-visible + span {
  outline: 3px solid var(--cc-accent, #0066cc);
  outline-offset: 4px;
}
.idea-portal-ring {
  width: 100px;
  height: 100px;
  margin: 8px auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle,
    var(--cc-night, #142235) 25%,
    var(--cc-accent-light, #79b5ee) 42%,
    var(--cc-surface, #f8f9fb) 49%,
    #c6d0e7 58%,
    var(--cc-surface, #f8f9fb) 68%
  );
  box-shadow: var(--idea-shadow);
  transition:
    transform 0.55s,
    filter 0.55s;
}
.idea-portal-ring span {
  color: white;
  font-size: 32px;
  transition: transform 0.55s;
}
.idea-portal.is-open .idea-portal-ring {
  transform: scale(1.06);
  filter: drop-shadow(0 0 13px #8789e9);
}
.idea-portal.is-open .idea-portal-ring span {
  transform: rotate(90deg);
}
.idea-portal p,
.idea-deck p {
  font-size: 12px;
  color: var(--idea-muted);
  margin: 7px 0 12px;
}
.idea-deck {
  text-align: left;
  position: relative;
}
.idea-deck:hover,
.idea-deck:focus-within {
  transform: rotate(-2deg) translateY(-3px);
  box-shadow:
    0 23px 40px
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 20%, transparent),
    0 0 22px
      color-mix(in srgb, var(--cc-accent-light, #79b5ee) 20%, transparent),
    inset 0 1px 0 var(--cc-glass-edge, #ffffffd9);
}
.idea-deck .idea-label {
  display: flex;
  justify-content: space-between;
}
.idea-deck-art {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin: 10px 0;
  color: var(--cc-accent, #0066cc);
  font-size: 30px;
  background: linear-gradient(
    145deg,
    var(--cc-surface, #f8f9fb),
    var(--cc-accent-soft, #e4effa)
  );
  box-shadow:
    4px 4px 10px
      color-mix(in srgb, var(--cc-shadow-ink, #263449) 8%, transparent),
    -3px -3px 9px var(--cc-glass-edge, #ffffffd9);
}
.idea-deck strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.idea-signal-top {
  display: flex;
  justify-content: space-between;
}
.idea-signal-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  height: 90px;
  margin-bottom: 10px;
}
.idea-signal-bars i {
  width: 21px;
  border-radius: 8px 8px 4px 4px;
  background: #ced7e8;
  box-shadow: var(--idea-inset);
  transition:
    background 0.35s,
    transform 0.35s;
}
.idea-signal-bars i:nth-child(1) {
  height: 22%;
}
.idea-signal-bars i:nth-child(2) {
  height: 38%;
}
.idea-signal-bars i:nth-child(3) {
  height: 55%;
}
.idea-signal-bars i:nth-child(4) {
  height: 72%;
}
.idea-signal-bars i:nth-child(5) {
  height: 90%;
}
.idea-signal-bars i:nth-child(-n + 3),
.idea-signal-bars i.on {
  background: linear-gradient(
    var(--cc-accent-light, #79b5ee),
    var(--cc-accent, #0066cc)
  );
  box-shadow: 0 4px 10px
    color-mix(in srgb, var(--cc-accent-light, #79b5ee) 24%, transparent);
}
.idea-signal-bars:has(.on) i:not(.on) {
  background: #ced7e8;
  box-shadow: var(--idea-inset);
}
html:is([data-motion="paused"], [data-ff-motion="off"]) .idea-stage,
html:is([data-motion="paused"], [data-ff-motion="off"]) .idea-stage *,
html:is([data-motion="paused"], [data-ff-motion="off"]) .idea-stage *::before,
html:is([data-motion="paused"], [data-ff-motion="off"]) .idea-stage *::after {
  animation: none !important;
  transition: none !important;
}
@keyframes idea-wave {
  from {
    transform: scaleY(0.35);
    opacity: 0.7;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .idea-stage *,
  .idea-stage *:before,
  .idea-stage *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .idea-deck:hover,
  .idea-deck:focus-within,
  .idea-prism:focus-within .idea-prism-orb,
  .idea-prism:hover .idea-prism-orb {
    transform: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .idea-orbit,
  .idea-wave-card,
  .idea-prism,
  .idea-portal,
  .idea-deck,
  .idea-signal {
    background: var(--cc-surface, #f8f9fb);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
