/* The interactive playground has been retired; the idea cards now stand alone. */
.playground-section > .section-heading,
.playground-section > .playground-layout,
.playground-section > .idea-panel {
  display: none;
}

.playground-section {
  padding-block: 80px;
}

.playground-section .idea-grid {
  margin-top: 0;
}

.idea-card {
  cursor: pointer;
}

.idea-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.idea-card[aria-pressed="true"] {
  box-shadow: none;
}

.idea-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms;
}

.idea-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.idea-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(8 7 12 / 72%);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.idea-modal__dialog {
  position: relative;
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: 0 28px 90px rgb(0 0 0 / 36%);
  padding: clamp(28px, 5vw, 48px);
  transform: translateY(24px) scale(.96);
  opacity: 0;
  transition: transform 300ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease;
}

.idea-modal.is-open .idea-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.idea-modal__index {
  display: block;
  color: var(--accent);
  letter-spacing: -3px;
  font-size: 56px;
  font-weight: 650;
  line-height: 1;
}

.idea-modal__dialog h2 {
  margin-block: 20px 12px;
}

.idea-modal__dialog p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.idea-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.idea-modal__close:hover {
  border-color: var(--accent);
  transform: rotate(6deg);
}

@media (max-width: 720px) {
  .playground-section {
    padding-block: 56px;
  }

  .idea-modal {
    align-items: end;
    padding: 12px;
  }

  .idea-modal__dialog {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 16px 16px;
    transform: translateY(44px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .idea-modal,
  .idea-modal__dialog,
  .idea-modal__close {
    transition-duration: 1ms;
  }
}
