.generation-showcase { background: var(--night); color: var(--paper-bright); }
.showcase-heading { max-width: 820px; }
.showcase-heading h2 { margin: 0; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.showcase-heading > p { max-width: 65ch; margin: 20px 0 0; color: var(--cream); font-size: 17px; line-height: 1.65; }
.showcase-enlarge svg, .showcase-play svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.showcase-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: 36px 24px; list-style: none; margin: 32px 0 0; padding: 0; }
.showcase-item { grid-column: span 2; min-width: 0; }
.showcase-item-wide { grid-column: span 3; }
.showcase-item article { height: 100%; display: flex; flex-direction: column; }
.showcase-visual { position: relative; min-width: 0; }
.showcase-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); }
.showcase-media img { display: block; width: 100%; height: auto; object-fit: contain; }
.showcase-media.image-viewer-trigger { padding: 0; border: 0; background: transparent; border-radius: 0; }
.showcase-media.image-viewer-trigger img { border-radius: 0; }
.showcase-enlarge { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: var(--paper-bright); pointer-events: none; }
.showcase-media:hover .showcase-enlarge { color: var(--orange-dark); }
.showcase-caption { padding: 18px 0 0; }
.showcase-caption h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; text-wrap: pretty; }
.showcase-caption p { margin: 8px 0 12px; color: var(--cream); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.showcase-caption a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--orange-light); font-size: 14px; font-weight: 650; text-decoration: none; }
.showcase-caption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.showcase-caption a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.showcase-prompt-toggle { position: absolute; inset-inline-start: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 22px; background: var(--paper-bright); color: var(--ink); font-size: 14px; font-weight: 650; cursor: pointer; }
.showcase-prompt-toggle:hover { background: var(--orange-soft); }
.showcase-prompt-toggle svg, .showcase-prompt-toolbar svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.is-prompt-open .showcase-prompt-toggle { visibility: hidden; }
.showcase-prompt-panel { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; max-height: min(82%, 320px); padding: 8px 12px 12px; background: var(--night-soft); color: var(--paper-bright); animation: showcase-prompt-enter 180ms var(--ease) both; }
.showcase-prompt-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; }
.showcase-prompt-label { margin-inline-end: auto; font-size: 14px; font-weight: 650; line-height: 1.3; }
.showcase-prompt-copy, .showcase-prompt-close { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--paper-bright); font-size: 13px; line-height: 1.3; cursor: pointer; }
.showcase-prompt-copy:hover, .showcase-prompt-close:hover { background: rgba(255, 250, 243, .12); }
.showcase-prompt-copy:disabled { opacity: .6; cursor: progress; }
.showcase-prompt-copy[data-copied="true"] { color: var(--orange-light); }
.showcase-prompt-copy .showcase-check-icon, .showcase-prompt-copy[data-copied="true"] .showcase-copy-icon { display: none; }
.showcase-prompt-copy[data-copied="true"] .showcase-check-icon { display: block; }
.showcase-prompt-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--cream) var(--night-soft); }
.showcase-prompt-scroll pre { margin: 0; padding: 0 4px 0 0; font: inherit; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: wrap; user-select: text; }
.showcase-prompt-feedback { flex: 0 0 auto; margin: 8px 0 0; color: var(--cream); font-size: 13px; line-height: 1.4; }
@keyframes showcase-prompt-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .showcase-prompt-panel { animation: none; } }
.showcase-video-stage { aspect-ratio: 16 / 9; }
.showcase-video-start { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.showcase-video-start img { height: 100%; }
.showcase-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper-bright); transform: translate(-50%, -50%); pointer-events: none; }
.showcase-play svg { width: 26px; height: 26px; margin-left: 3px; }
.showcase-video-start:hover .showcase-play { background: var(--orange-soft); color: var(--orange-dark); }
.showcase-video-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.showcase-video-error { padding: 20px; color: var(--paper-bright); font-size: 15px; text-align: center; }
.showcase-video-error button { min-height: 44px; margin-top: 12px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.generation-showcase [hidden] { display: none !important; }
.generation-showcase :is(a, button, [tabindex]):focus-visible { outline: 2px solid var(--orange-light); outline-offset: 3px; }
@media (max-width: 1023px) {
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-item { grid-column: auto; }
}
@media (max-width: 600px) {
  .showcase-heading h2 { font-size: clamp(29px, 8.3vw, 38px); }
  .showcase-heading > p { margin-top: 16px; font-size: 16px; line-height: 1.55; }
  .showcase-grid { gap: 24px 16px; margin-top: 24px; }
  .showcase-caption { padding-top: 12px; }
  .showcase-caption h3 { font-size: 17px; line-height: 1.3; }
  .showcase-caption p { margin: 8px 0 4px; font-size: 13px; line-height: 1.5; }
  .showcase-caption a { font-size: 13px; gap: 6px; line-height: 1.4; }
  .showcase-caption a svg { flex: 0 0 16px; width: 16px; height: 16px; }
  .showcase-enlarge { right: 6px; bottom: 6px; width: 30px; height: 30px; }
  .showcase-enlarge svg { width: 16px; height: 16px; }
  .showcase-prompt-toggle { inset-inline-start: 6px; bottom: 6px; padding: 0 8px; font-size: 13px; }
  .showcase-prompt-toggle svg { flex-basis: 16px; width: 16px; height: 16px; }
  .showcase-prompt-panel { max-height: 100%; padding: 4px 8px 8px; }
  .showcase-prompt-toolbar { justify-content: space-between; gap: 4px; margin-bottom: 4px; }
  .showcase-prompt-label, .showcase-prompt-copy [data-showcase-copy-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
