/* ═══════════════════════════════════════════════
   CLOVER OOC — CATALOGUE STYLES
   aceenvw
   ═══════════════════════════════════════════════ */

/* ═══ CATALOGUE HEADER ═══ */
.catalogue-header {
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--border);
}

.catalogue-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--text);
}

/* ═══ CATEGORY NAVIGATION ═══ */
.category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.category-nav-link {
  padding: 0.5rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.category-nav-link:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══ FILTERS STRIP ═══ */
.filters-strip {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filters-top-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 400px;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--text-dim);
}

/* ═══ TAGS FILTER (collapsible) ═══ */
.tags-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: min(50vh, 22rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tags-filter[hidden] {
  display: none;
}

/* ═══ FILTERS TOGGLE ═══ */
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.filters-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filters-toggle svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.filters-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.filters-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.filters-toggle-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1;
  color: var(--accent);
  background: var(--accent-faint);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
}

.filters-toggle-count:empty {
  display: none;
}

.tag-pill {
  padding: 0.5rem 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
}

.tag-pill:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.tag-pill.active {
  background: var(--accent-faint);
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══ VIEW CONTROLS ═══ */
.view-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.view-toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
}

.view-toggle svg {
  display: block;
  flex-shrink: 0;
  margin: auto;
}

.view-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.view-toggle.active {
  background: var(--accent-faint);
  border-color: var(--accent);
  color: var(--accent);
}

.clear-filters {
  padding: 0.625rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.random-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--accent-faint);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--accent-text);
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.random-btn:hover {
  background: var(--accent);
  color: #fff;
}

.random-btn:active {
  transform: scale(0.96);
}

@keyframes randomPulse {
  0% { box-shadow: 0 0 0 0 var(--accent-pulse, rgba(45, 122, 79, 0.3)); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

:root { --accent-pulse: rgba(45, 122, 79, 0.3); }
[data-theme="dark"] { --accent-pulse: rgba(74, 186, 111, 0.3); }

.random-btn.pulsed {
  animation: randomPulse 0.6s ease;
}

.random-btn:hover svg {
  stroke: #fff;
}

.clear-filters:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══ RESULTS COUNT ═══ */
.results-count {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.results-count strong {
  color: var(--accent);
  font-weight: 600;
}

/* ═══ PROMPTS SECTION ═══ */
.prompts-section {
  padding: 60px 0 120px;
}

/* ═══ CATEGORY HEADER ═══ */
.category-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-height) + 140px);
}

.category-header:not(:first-child) {
  margin-top: 4rem;
}

.category-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
}

.category-count {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-dim);
  padding: 0.25rem 0.625rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ═══ CATEGORY GRID ═══ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ═══ GRID VIEW ═══ */
.prompts-grid[data-view="grid"] {
  display: block;
}

.prompts-grid[data-view="list"] {
  display: block;
}

.prompt-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.prompt-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.prompt-image-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--accent-faint), var(--bg-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.prompt-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
}

.placeholder-inner svg {
  opacity: 0.3;
}

.placeholder-inner span {
  font-size: 0.875rem;
  opacity: 0.5;
}

.prompt-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prompt-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.prompt-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.prompt-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
}

/* Solo/Pair badge shown in mixed-category cards */
.prompt-kind-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-dim);
  flex-shrink: 0;
  align-self: center;
}

.prompt-kind-solo {
  background: var(--accent-faint);
  border-color: var(--accent);
  color: var(--accent);
}

.prompt-kind-pair {
  background: var(--bg-surface);
  border-color: var(--border);
  color: var(--text);
}

.prompt-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.prompt-tag {
  padding: 0.25rem 0.625rem;
  background: var(--accent-faint);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.prompt-preview {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-dim);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-top: auto;
}

.copy-btn {
  min-height: 44px;
  margin-top: 1rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.copy-btn:hover,
.copy-btn.copied {
  background: var(--accent-faint);
}

/* ═══ LIST VIEW (vertical stack) ═══ */
.prompts-grid[data-view="list"] .prompt-card {
  cursor: default;
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.prompts-grid[data-view="list"] .prompt-card:hover {
  transform: none;
}

.prompts-grid[data-view="list"] .prompt-image-placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-bottom: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.prompts-grid[data-view="list"] .prompt-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.prompts-grid[data-view="list"] .prompt-card-content {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prompts-grid[data-view="list"] .prompt-preview {
  display: none;
}

.prompts-grid[data-view="list"] .prompt-full-text {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--code-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.prompts-grid[data-view="list"] .copy-btn {
  align-self: flex-start;
}

.prompts-grid[data-view="list"] .copy-btn:hover {
  color: var(--accent);
}

.prompts-grid[data-view="list"] .copy-btn.copied {
  color: var(--accent);
}

/* ═══ MODAL ═══ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.active .modal-content {
  animation: modalSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-y: auto;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-header {
  padding: 2rem 2rem 1.5rem;
}

.modal-title-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.modal-title-row .prompt-kind-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
}

.modal-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-dim);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text);
}

.modal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--accent-faint), var(--bg-surface));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2rem;
}

.modal-prompt-text {
  padding: 1.5rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--code-text);
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

.modal-copy-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.modal-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══ SCROLL TO TOP BUTTON ═══ */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.scroll-to-top:active {
  transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .catalogue-header {
    padding: 100px 0 40px;
  }

  .category-nav {
    gap: 0.5rem;
  }

  .category-nav-link {
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
  }

  .filters-strip {
    gap: 0.75rem;
  }

  .filters-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search-box {
    max-width: none;
    width: 100%;
  }

  .view-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filters-toggle {
    flex: 1 0 auto;
    justify-content: center;
    min-height: 44px;
  }

  .view-toggle {
    min-height: 44px;
  }

  .clear-filters,
  .random-btn {
    min-height: 44px;
  }

  .tags-filter {
    max-height: min(60vh, 24rem);
  }

  .tag-pill {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .prompts-grid[data-view="list"] .prompt-card {
    max-width: none;
  }

  .prompts-grid[data-view="list"] .prompt-image-placeholder {
    aspect-ratio: 16 / 9;
  }

  .prompts-grid[data-view="list"] .prompt-card-content {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .modal {
    padding: 1rem;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 2rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* ═══ NO RESULTS ═══ */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
}

.no-results svg {
  margin: 0 auto 1rem;
  opacity: 0.3;
}

.no-results h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.no-results p {
  font-size: 0.95rem;
}

/* ═══ CREDITS NOTICE ═══ */
.credits-notice {
  margin-top: 1.25rem;
  max-width: 820px;
}

.credits-notice summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  list-style: none;
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.credits-notice summary::-webkit-details-marker { display: none; }
.credits-notice summary::marker { content: ''; }

.credits-notice summary:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.credits-notice summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.credits-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.credits-label {
  flex: 1;
}

.credits-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.credits-notice[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  color: var(--text);
}

.credits-notice[open] .credits-chevron {
  transform: rotate(180deg);
}

.credits-body {
  padding: 1rem 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.credits-body p {
  margin: 0;
}

.credits-body a {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  transition: border-color 0.15s, color 0.15s;
}

.credits-body a:hover,
.credits-body a:focus-visible {
  border-bottom-color: var(--accent);
  color: var(--accent-hover);
}

.credits-body a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.credits-name {
  color: var(--text);
  font-weight: 500;
}

/* ─── sticky note ─── */
.credits-stickynote {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.625rem 1rem 0.75rem;
  background: #fef3c7;
  color: #4a3a10;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 6px 14px rgba(120, 90, 20, 0.18),
    0 12px 24px rgba(120, 90, 20, 0.06);
  transform: rotate(-2.5deg);
  transform-origin: top left;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.credits-stickynote::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 38px;
  height: 12px;
  background: rgba(255, 220, 130, 0.6);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.credits-stickynote:hover {
  transform: rotate(-1deg) scale(1.02);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 10px 20px rgba(120, 90, 20, 0.22),
    0 18px 36px rgba(120, 90, 20, 0.1);
}

[data-theme="dark"] .credits-stickynote {
  background: #3a3318;
  color: #f0e4b8;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .credits-stickynote::before {
  background: rgba(180, 150, 70, 0.45);
}

[data-theme="dark"] .credits-icon {
  color: var(--accent);
}

@media (max-width: 640px) {
  .credits-notice {
    margin-top: 1rem;
  }

  .credits-notice summary {
    font-size: 0.8125rem;
    padding: 0.625rem 0.75rem;
  }

  .credits-body {
    padding: 0.875rem 0.875rem 1.125rem;
    font-size: 0.8125rem;
    line-height: 1.7;
  }

  .credits-body a {
    /* slight extra vertical padding so tap targets don't crowd in wrapped text */
    padding: 3px 0;
  }

  .credits-stickynote {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem 0.625rem;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .credits-chevron,
  .credits-stickynote,
  .credits-notice summary,
  .credits-body a {
    transition: none;
  }

  .credits-stickynote:hover {
    transform: rotate(-2.5deg);
  }
}

/* ─── disclaimer variant ─── */
.disclaimer-notice {
  margin-top: 0.625rem;
}

.disclaimer-notice .credits-icon {
  color: #c97a1f;
}

[data-theme="dark"] .disclaimer-notice .credits-icon {
  color: #e0a861;
}

.disclaimer-notice .credits-body strong {
  color: var(--text);
  font-weight: 600;
}

.disclaimer-notice .credits-body em {
  color: var(--accent-text);
  font-style: italic;
}
