/* Five weekly highlights and a separate editor's pick, in one artwork wall. */
#main.home-stage { max-width: none; width: 100%; padding: 0; margin: 0; flex: 0 0 auto; display: grid; grid-template-rows: minmax(490px, 1fr) auto; min-height: calc(100svh - var(--header-h) + 1px); }
.home-showcase { position: relative; overflow: clip; }
.showcase-heading { position: absolute; inset: 24px auto auto 0; max-width: calc(100% - 18px); z-index: 3; display: flex; align-items: center; gap: 22px; pointer-events: none; }
.showcase-heading > div { position: relative; isolation: isolate; min-width: 0; padding: 15px 28px 15px 16px; animation: showcase-label-enter 600ms cubic-bezier(.22,1,.36,1) both; }
.showcase-heading > div::before { content: ''; position: absolute; inset: 0 0 0 -24px; z-index: -1; transform: skewX(-12deg); transform-origin: top right; background: oklch(.17 .02 260 / .9); border: 1px solid oklch(.98 .005 260 / .45); box-shadow: 0 8px 24px oklch(.1 .02 260 / .18); }
.showcase-heading h2 { margin: 0; color: var(--pt-night-text); font: 650 clamp(18px, 1.5vw, 25px)/1.2 var(--pt-display); letter-spacing: -.02em; }
#highlightWeek { display: block; margin-top: 5px; color: oklch(.79 .015 260); font: 12px/1.3 var(--pt-body); }
.showcase-heading #editHighlights { pointer-events: auto; background: var(--pt-night); border-color: oklch(.65 .02 260); color: var(--pt-night-text); }
.showcase-panels { --slant: clamp(52px, 7vw, 140px); display: flex; position: relative; isolation: isolate; list-style: none; padding: 0; margin: 0; height: 100%; min-height: 490px; overflow: clip; background: var(--pt-night); }
.showcase-panels > li { position: relative; flex: 0 0 calc(100% / var(--panels, 6) + var(--slant)); margin-inline: calc(var(--slant) / -2); min-width: 0; pointer-events: none; }
.showcase-game { position: absolute; inset: 0; clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); color: var(--pt-night-text); background: var(--pt-night); display: flex; flex-direction: column; align-items: flex-start; isolation: isolate; pointer-events: auto; }
.showcase-panels > li:first-child .showcase-game { clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.showcase-panels > li:last-child .showcase-game { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
.showcase-art, .showcase-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.showcase-art { z-index: -2; }
.showcase-art img { object-fit: cover; filter: saturate(.65) brightness(.86); transition: filter 350ms ease-out, opacity 360ms cubic-bezier(.22,1,.36,1); }
html[data-showcase-loading] .showcase-art img:not(.is-ready) { opacity: 0; }
/* If the enhancement fails to start, the original images remain available. */
html[data-showcase-loading="pending"] .showcase-art img { animation: showcase-image-recover 1ms 2500ms forwards; }
@keyframes showcase-image-recover { to { opacity: 1; } }
.showcase-game::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(.16 .02 260 / .1), transparent 30%, oklch(.13 .025 260 / .46) 65%, oklch(.13 .025 260 / .98)); z-index: -1; }
.showcase-caption { margin: auto 0 clamp(20px, 2.4vh, 32px) calc(var(--slant) * .5 + 24px); width: calc((100% - var(--slant)) * .64); }
.showcase-maker { display: block; color: oklch(.88 .008 260); font: 13px/1.45 var(--pt-body); overflow-wrap: anywhere; }
.showcase-caption h3 { color: inherit; font: 650 clamp(18px, 1.65vw, 32px)/1.15 var(--pt-display); letter-spacing: -.025em; margin: 12px 0 26px; overflow-wrap: anywhere; text-wrap: balance; }
.showcase-actions { display: flex; align-items: center; gap: clamp(20px, 1.6vw, 28px); width: max-content; }
.showcase-actions a { color: var(--pt-night-text); text-decoration: none; outline: none; }
/* The Check Project link covers the artwork too, without nesting the Play link. */
.showcase-project::before { content: ''; position: absolute; inset: 0; z-index: 0; }
.showcase-action-face { position: relative; z-index: 1; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 0; border-radius: 3px; font: 700 clamp(16px, 1vw, 18px)/1.4 var(--pt-body); white-space: nowrap; text-shadow: 0 2px 8px oklch(.1 .02 260 / .9); transition: color 180ms ease-out; }
.showcase-action-face::before { content: ''; position: absolute; inset: 5px -8px; z-index: -1; border-radius: 8px; background: oklch(.1 .02 260 / .3); filter: blur(8px); pointer-events: none; }
.showcase-actions a:hover .showcase-action-face { color: var(--pt-amber); }
.showcase-actions a:focus-visible .showcase-action-face { color: var(--pt-amber); outline: 2px solid var(--pt-amber); outline-offset: 4px; }
.showcase-play { position: relative; z-index: 1; }
.showcase-play .ui-icon { width: 16px; height: 16px; flex-basis: 16px; fill: currentColor; stroke: none; color: var(--pt-amber); }
.showcase-editor-label { display: block; width: fit-content; margin-bottom: 15px; color: var(--pt-amber); font: 600 12px/1.4 var(--pt-body); }
.showcase-game:hover .showcase-art img, .showcase-game:focus-within .showcase-art img, .is-expanded .showcase-art img { filter: saturate(1) brightness(1); }
.showcase--motion > li { position: absolute; inset: 0 auto 0 0; margin: 0; width: var(--canvas-width); transform: translateX(var(--panel-x)); }
.showcase-panels.showcase--motion > li .showcase-game { clip-path: polygon(var(--cut-start) 0, var(--cut-top) 0, var(--cut-bottom) 100%, 0 100%); }
.showcase--motion .showcase-art { transform: translateX(var(--art-x)); }
.showcase--motion .showcase-caption { width: calc(var(--base-width) * .64); }
.showcase--motion .showcase-play { opacity: 0; transform: translateX(-6px); pointer-events: none; transition: opacity 160ms ease-out, transform 220ms ease-out; }
.showcase--motion .is-expanded .showcase-play, .showcase--motion .showcase-play:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
.home-invitation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px 32px; padding: 24px clamp(20px, 2.4vw, 48px) 28px; }
.home-invitation-action { grid-column: 2; display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 14px; }
.home-invitation p { color: var(--pt-text); font: 18px/1.5 var(--pt-body); margin: 0; }
.home-invitation .btn { white-space: nowrap; min-height: 48px; }
.home-community-link { color: var(--pt-muted); font: 14px/1.5 var(--pt-body); text-decoration: none; padding-block: 10px; }
.home-community-link strong { color: var(--pt-ink); font-weight: 600; }
.home-community-link > span { margin-left: 7px; }
.home-community-link:hover, .home-community-link:hover strong { color: var(--pt-gold); }
.home-community-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-review-link { display: inline-block; margin-left: 14px; }
.showcase-panels .highlights-empty { flex: 1; padding: 150px 32px 64px; margin: 0; color: var(--pt-night-text); pointer-events: auto; }
.highlights-empty a { color: var(--pt-amber); }
/* Without expansion, every destination remains visible and reachable. */
.showcase-panels:not(.showcase--motion) .showcase-actions { flex-direction: column; align-items: flex-start; }
@media (max-width: 1100px) { .home-invitation { grid-template-columns: 1fr; justify-items: center; gap: 12px; } .home-invitation-action { grid-column: 1; grid-row: 1; } }
@media (max-width: 900px) {
  #main.home-stage { display: block; }
  .showcase-heading { inset: 18px 18px auto 0; gap: 12px 16px; flex-wrap: wrap; }
  .showcase-heading > div { padding: 12px 28px 12px 16px; }
  .showcase-heading #editHighlights { margin-left: 16px; }
  .showcase-panels { height: auto; display: block; overflow: visible; }
  .showcase-panels > li { margin: 0; min-height: 255px; }
  .showcase-panels > li:first-child { min-height: 420px; }
  .home-showcase .showcase-panels > li .showcase-game { clip-path: none; }
  .showcase-art img { filter: none; }
  .showcase-game::after { background: linear-gradient(0deg, oklch(.13 .025 260 / .97), oklch(.13 .025 260 / .16) 80%); }
  .showcase-caption { margin: auto 24px 24px; width: calc(100% - 48px); }
  .showcase-caption h3 { font-size: 29px; max-width: 24ch; margin: 6px 0 14px; }
  .showcase-panels:not(.showcase--motion) .showcase-actions { flex-direction: row; }
  .showcase-action-face { font-size: 16px; }
  .showcase-editor-label { margin-bottom: 10px; }
  .home-invitation { padding: 20px 24px 28px; gap: 20px; }
  .home-invitation-action { margin: 0; gap: 20px; }
  .home-invitation p { font-size: 17px; }
  .home-review-link { margin-left: 6px; }
}
@keyframes showcase-label-enter { from { transform: translateX(calc(-100% - 24px)); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  html[data-showcase-loading] .showcase-art img:not(.is-ready) { opacity: 1; animation: none; }
  .showcase-heading > div { animation: none; }
  .showcase-art, .showcase-art img, .showcase--motion > li, .showcase--motion > li .showcase-game, .showcase-play, .showcase-action-face { transition: none; }
}
@media (forced-colors: active) {
  .showcase-heading > div::before { border-color: CanvasText; }
  .showcase-action-face { text-shadow: none; }
  .showcase-action-face::before { display: none; }
  .showcase-actions a:focus-visible .showcase-action-face { outline-color: Highlight; }
}
