/* /playtest/: the listing of games in open playtest (platform/PLAYTEST.md). Phone first (390x844), then 844x390,
   then 1440x900. Tokens from design/garden.css; the vote button and its count come from platform/playtest.css. */

.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- top ---------- */
.pt-top { display: grid; gap: 8px; padding: 16px 0 14px; }
.pt-eyebrow { margin: 0; }
.pt-top h1 { font-size: clamp(38px, 11vw, 64px); line-height: 1; letter-spacing: -.035em; }
.pt-lede { margin: 0; max-width: 46ch; color: var(--gg-ink-2); font-size: var(--gg-text-md); font-weight: 600; line-height: 1.4; }
.pt-facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.pt-facts li {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px 4px 8px;
  border: 2px solid var(--gg-ink); border-radius: var(--gg-r-pill); background: var(--gg-paper);
  font-weight: 700; font-size: var(--gg-text-xs); line-height: 1.1;
}
.pt-facts li::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--gg-ink); background: var(--gg-lavender); }
.pt-facts li:nth-child(2)::before { background: var(--gg-butter); }
.pt-facts li:nth-child(3)::before { background: var(--gg-sky); }
.pt-facts li:nth-child(4)::before { background: var(--gg-lime); }

/* ---------- the cards ---------- */
.pt-list { padding: 4px 0 0; }
.pt-grid { display: grid; gap: 18px; }
.pt-card {
  display: grid; min-width: 0; padding: 6px; background: var(--gg-paper);
  border: var(--gg-border); border-radius: var(--gg-r-xl); box-shadow: var(--gg-shadow-lg);
  animation: gg-rise var(--gg-dur-lg) var(--gg-ease-out) both; animation-delay: calc(var(--d, 0) * 70ms * var(--gg-time));
}
.pt-card__art {
  display: block; height: 168px; overflow: hidden; border: 2px solid var(--gg-ink); border-radius: 24px; background: var(--gg-lavender-100);
  container-type: size;
}
.pt-card__art svg { display: block; width: 100cqw; height: 100cqh; }
.pt-card__body { display: grid; gap: 8px; padding: 12px 8px 8px; min-width: 0; }
.pt-card__head { display: grid; gap: 8px; }
.pt-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; min-height: 30px; }
.pt-early { background: var(--gg-lavender-100); }
.pt-card h3 { font-size: var(--gg-text-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.pt-working { background: var(--gg-butter-100); }
.pt-card__by { margin: 0; min-height: 1.5em; line-height: 1.5; color: var(--gg-ink-2); font-weight: 600; font-size: var(--gg-text-sm); }
.pt-card__by b, .pt-card__by a { color: var(--gg-ink); font-weight: 800; }
.pt-stars { margin-left: 6px; white-space: nowrap; color: var(--gg-ink); font-weight: 800; }
.pt-stars span { color: #E0A400; }
.pt-stars small { color: var(--gg-ink-2); font-weight: 600; }
.pt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 4px; }
.pt-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 8px 10px; border-radius: var(--gg-r-md); background: var(--gg-cream); border: 2px solid var(--gg-line); }
.pt-stats dt { font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-3); }
.pt-stats dd { margin: 0; min-height: 1.1em; font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
/* one row of actions at every width: Play, the vote, Share (an icon until the card is wide) */
.pt-card { container: ptcard / inline-size; }
.pt-card__acts { display: flex; align-items: center; gap: 8px; min-height: 54px; }
.pt-play { flex: none; padding-inline: 22px; }
.pt-vote { flex: 1 1 auto; min-width: 0; padding-inline: 12px 8px; font-size: var(--gg-text-sm); }
.pt-vote .ggpt-vote__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-share { flex: none; width: 52px; padding: 0; }
.pt-share span { display: none; }
@container ptcard (min-width: 470px) {
  .pt-vote { flex: 0 1 auto; padding-inline: 16px 10px; font-size: var(--gg-text-md); }
  .pt-share { width: auto; padding: 12px 18px; }
  .pt-share span { display: inline; }
}

/* skeleton: same boxes as a real card, so nothing moves when the numbers arrive */
.pt-card.is-skel { animation: none; }
.pt-card.is-skel .pt-card__art { background: var(--gg-sand); border-style: dashed; border-color: var(--gg-line); }
.pt-card.is-skel i { display: block; height: 1.2em; width: 9ch; border-radius: var(--gg-r-pill); background: var(--gg-sand); }
.pt-card.is-skel h3 i { width: 12ch; height: 1.05em; }
.pt-card.is-skel .pt-stats i { width: 4ch; height: 1.1em; }
.pt-card.is-skel .pt-early { color: transparent; border-color: var(--gg-line); background: var(--gg-sand); }
.pt-card.is-skel .gg-btn { color: transparent; background: var(--gg-sand); border-color: var(--gg-line); box-shadow: none; }
.pt-card.is-skel.is-rest { opacity: .55; }
.pt-status { margin: 14px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--gg-ink-2); font-weight: 700; }
.pt-status[hidden] { display: none; }
.pt-status a { font-weight: 800; }

/* ---------- plant an idea ---------- */
.pt-plant {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 8px 12px; margin-top: 26px; padding: 12px 14px;
  border: 2px dashed var(--gg-ink); border-radius: var(--gg-r-lg); background: var(--gg-butter-100); color: var(--gg-ink); text-decoration: none;
  transition: transform var(--gg-dur-md) var(--gg-ease-spring), background var(--gg-dur-sm);
}
.pt-plant:active { transform: translate(2px, 2px); }
@media (hover: hover) { .pt-plant:hover { background: var(--gg-butter); } }
.pt-plant:focus-visible { outline: 3px solid var(--gg-ink); outline-offset: 3px; }
.pt-plant__art svg { display: block; width: 56px; height: 56px; }
.pt-plant__text { display: grid; gap: 2px; }
.pt-plant__text b { font-family: var(--gg-font-display); font-size: var(--gg-text-lg); font-weight: 800; letter-spacing: -.015em; }
.pt-plant__text span { color: var(--gg-ink-2); font-size: var(--gg-text-sm); line-height: 1.35; }
.pt-plant__btn { grid-column: 1 / -1; justify-self: start; pointer-events: none; }

/* ---------- about ---------- */
.pt-about { padding: 30px 0 4px; }
.pt-about h2 { font-size: var(--gg-text-xl); }

/* ---------- short landscape phones: a slimmer top, cards side by side ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .pt-top { padding: 10px 0 10px; gap: 6px; }
  .pt-top h1 { font-size: 34px; }
  .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pt-card__art { height: 120px; }
  .pt-card h3 { font-size: var(--gg-text-xl); }
}
/* tablets and up: two cards side by side, art on top */
@media (min-width: 760px) {
  .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .pt-plant { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .pt-plant__art svg { width: 64px; height: 64px; }
  .pt-plant__btn { grid-column: auto; justify-self: end; }
}
@media (min-width: 1000px) {
  .pt-top { padding: 40px 0 22px; gap: 12px; }
  .pt-top h1 { font-size: 72px; }
  .pt-lede { font-size: var(--gg-text-lg); }
  .pt-card__art { height: 230px; }
  .pt-card__body { padding: 16px 12px 10px; gap: 10px; }
  .pt-about { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) { .pt-card { animation: none; } }
