/* PO2 teaser cards (until 8 Dec 09:00 WIB). Builds on the PO1 mystery card in shop.css. */
trace-teaser-card { display: grid; gap: .9rem; justify-items: center; width: 100%; }
.teaser-card { max-width: 21rem; }
/* The card spins on its own every few seconds while it shows the TRACE logo. */
.teaser-card[aria-pressed="false"]:not(.is-landing):not(.is-tapped) .card-turn { animation: teaser-spin 4.2s cubic-bezier(.45,.05,.2,1) infinite; }
.teaser-card.is-landing .card-turn { animation: teaser-land 1.3s cubic-bezier(.3,.05,.2,1) forwards; }
@keyframes teaser-land { from { transform: rotateY(0deg); } to { transform: rotateY(540deg); } }
trace-teaser-card:nth-of-type(2) .teaser-card[aria-pressed="false"] .card-turn,
.teaser-hand > :nth-child(2) .teaser-card[aria-pressed="false"] .card-turn { animation-delay: 1.4s; }
@keyframes teaser-spin {
  0%, 62% { transform: rotateY(0deg); }
  86% { transform: rotateY(375deg); }
  100% { transform: rotateY(360deg); }
}
.teaser-front { padding: 0; gap: .4rem; justify-content: center; background: #151110; color: #f1ebe2; border-color: #f1ebe2; }
.teaser-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) saturate(.8); transform: scale(1.15); opacity: .9; }
.teaser-front::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, transparent 20%, #0b0807cc 80%); }
.teaser-front > :not(.teaser-blur) { position: relative; z-index: 1; }
.teaser-front .card-question-mark { width: 52%; height: 46%; color: #f1ebe2; filter: drop-shadow(0 4px 14px #000a); }
.teaser-front .card-edition { letter-spacing: .14em; opacity: .85; }
.teaser-front-name { font-weight: 900; font-size: clamp(1rem, 3vw, 1.6rem); letter-spacing: -.01em; }
.teaser-redact { --redact: #f1ebe2; display: inline-block; filter: blur(4px); background: var(--redact); color: transparent; border-radius: 2px; user-select: none; text-shadow: none; }
.teaser-redact::selection { background: transparent; }
.teaser-caption { display: grid; gap: .45rem; justify-items: center; text-align: center; }
.teaser-name { margin: 0; font-weight: 900; font-size: clamp(1.15rem, 3.4vw, 1.7rem); letter-spacing: -.02em; text-transform: uppercase; }
.teaser-price { margin: 0; color: #e4a0a5; }
.teaser-remind { font-size: .82rem; }

/* Home hero: two cards fanned out like a hand. */
.teaser-hand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 3vw, 2rem); align-items: start; padding-block: 1rem; }
.teaser-hand > :first-child { transform: rotate(-4deg); }
.teaser-hand > :last-child { transform: rotate(4deg) translateY(1.2rem); }
.teaser-hand .teaser-name { font-size: clamp(.95rem, 2.6vw, 1.4rem); }
.teaser-hand .teaser-remind { display: none; }
.teaser-hand-note { grid-column: 1 / -1; text-align: center; margin: 1.6rem 0 0; }
@media (max-width: 760px) {
  .teaser-hand { order: 2; padding-inline: .6rem; gap: 1rem; }
  .teaser-hand > :first-child { transform: rotate(-3deg); }
  .teaser-hand > :last-child { transform: rotate(3deg) translateY(.8rem); }
}

/* Road stop: the card takes the photo's place. */
.road-photo.teaser-photo { display: grid; place-items: center; padding: 1.2rem; aspect-ratio: auto; overflow: visible; }
.road-photo.teaser-photo .teaser-card { max-width: min(15rem, 62vw); }
.road-photo.teaser-photo img { height: auto; filter: none; }
.road-photo.teaser-photo .card-corner { width: 15%; }
.road-photo.teaser-photo .card-oval img { width: 83%; }
.road-photo.teaser-photo .teaser-blur { width: 100%; height: 100%; }

/* Shop grid: a teaser fills one card slot. */
.first-drop-cards > li.is-teaser { display: grid; align-content: start; padding: .8rem; }
.first-drop-cards > li.is-teaser .teaser-card { max-width: 100%; }

.teaser-sheet { width: min(26rem, calc(100vw - 2rem)); border: 1px solid #3a312c; background: #1b1715; color: #f1ebe2; padding: 1.6rem 1.4rem 1.4rem; border-radius: 4px; }
.teaser-sheet::backdrop { background: #000b; backdrop-filter: blur(4px); }
.teaser-sheet h2 { margin: .3rem 0 .6rem; font-size: 1.5rem; font-weight: 900; line-height: 1.05; }
.teaser-sheet p { margin: 0 0 1rem; color: #c9bdb0; line-height: 1.5; }
.teaser-sheet-kicker { color: #e4a0a5 !important; margin: 0 !important; font-size: .75rem; letter-spacing: .14em; }
.teaser-sheet-actions { display: grid; gap: .6rem; }
.teaser-sheet-actions .trace-primary { display: flex; justify-content: center; align-items: center; gap: .5rem; min-height: 3rem; padding: .8rem 1rem; text-align: center; text-decoration: none; font-weight: 800; letter-spacing: .04em; background: #a8343c; color: #f1ebe2; border: 1px solid #a8343c; }
.teaser-sheet-alt { background: transparent !important; color: #f1ebe2 !important; border: 1px solid #f1ebe2 !important; }
.teaser-sheet-ig { text-align: center; color: #c9bdb0; font-size: .72rem; margin-top: .3rem; }
.teaser-sheet-close { position: absolute; top: .5rem; right: .5rem; margin: 0; }
.teaser-sheet-close button { width: 2.4rem; height: 2.4rem; border: 0; background: transparent; color: #f1ebe2; font-size: 1.6rem; cursor: pointer; }
.teaser-sheet-close button:focus-visible, .teaser-card:focus-visible { outline: 2px solid #f1ebe2; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .teaser-card .card-turn { animation: none !important; }
  .teaser-hand > * { transform: none !important; }
}

/* Sewn-in garment label instead of a CENSORED ribbon. */
.teaser-tag { position: absolute !important; top: 7%; right: 8%; z-index: 2 !important; display: grid; gap: .1rem; padding: .35rem .5rem .4rem; background: #f1ebe2; color: #151110; border-radius: 1px; transform: rotate(4deg); box-shadow: 0 4px 10px #0007; text-align: left; line-height: 1.1; }
.teaser-tag::before { content: ""; position: absolute; left: 50%; top: -.45rem; width: 1px; height: .5rem; background: #f1ebe2; }
.teaser-tag b { font-size: clamp(.55rem, 1.6vw, .72rem); font-weight: 900; letter-spacing: .02em; }
.teaser-tag .pixel { font-size: clamp(.42rem, 1.2vw, .55rem); letter-spacing: .08em; }
.teaser-front-price { color: #e4a0a5; font-size: clamp(.6rem, 1.6vw, .8rem); letter-spacing: .08em; }

/* Name and price are already on the card face in the Home hero. */
.teaser-hand .teaser-caption { display: none; }

/* After landing on the question mark, the card keeps spinning every few seconds (both cards, staggered). */
.teaser-card[aria-pressed="true"]:not(.is-landing):not(.is-tapped) .card-turn { animation: teaser-spin-front 5s cubic-bezier(.45,.05,.2,1) 1.2s infinite; }
@keyframes teaser-spin-front {
  0%, 64% { transform: rotateY(180deg); }
  88% { transform: rotateY(555deg); }
  100% { transform: rotateY(540deg); }
}
.teaser-hand > :nth-child(2) .teaser-card[aria-pressed="true"] .card-turn,
.first-drop-cards > li.is-teaser + li.is-teaser .teaser-card[aria-pressed="true"] .card-turn,
.road-stop-teaser + .road-stop-teaser .teaser-card[aria-pressed="true"] .card-turn { animation-delay: 3.7s; }
.teaser-card.is-landing .card-turn { animation-delay: 0s !important; }
