/* PLAYGROUND add-on: card video + demo window */
.card .img video{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block;border-radius:12px}

/* Playground card background: change --pg-bg to any colour you like */
.card.is-play .img{--pg-bg:#F3E3F6;background:var(--pg-bg)!important;border-radius:20px;overflow:hidden;padding:7% 8% 0!important;display:flex;align-items:flex-end;justify-content:center}
.card.is-play .img video,.card.is-play .img img{width:100%;height:100%;object-fit:contain;object-position:center bottom;border-radius:12px 12px 0 0;box-shadow:0 10px 30px rgb(80 30 90 / 12%)}

.pg-modal{position:fixed;inset:0;z-index:60;background:#F5F5F5;display:flex;flex-direction:column;visibility:hidden;opacity:0}
.pg-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px var(--pad,24px);border-bottom:1px solid rgb(0 0 0 / 10%)}
.pg-ctrl{display:flex;gap:10px;align-items:center}
.pg-new{font-size:14px;color:#0D0D0D;text-decoration:none;border:1px solid #0D0D0D;border-radius:99px;padding:10px 16px;transition:background .3s,color .3s}
@media (hover:hover){.pg-new:hover{background:#0D0D0D;color:#fff}}
.pg-x{width:40px;height:40px;border-radius:50%;background:#0D0D0D;color:#fff;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.pg-modal iframe{flex:1;width:100%;border:0;background:#F5F5F5}
.pg-open .cursor-ring,.pg-open .cursor{opacity:0!important}
@media (max-width:600px){.pg-new{display:none}}

/* stickers that pop out of the Playground card */
.pg-wrap{position:relative}
.pg-pop{position:absolute;z-index:3;height:auto;pointer-events:none;filter:drop-shadow(0 4px 8px rgb(0 0 0 / 18%));will-change:transform}
.card.is-play .img video,.card.is-play .img img{transform-origin:50% 100%}

/* ---- Works on phones: tighter space between projects ---- */
@media (max-width:600px){
  .grid{row-gap:24px!important}           /* space between projects: smaller number = closer */
  .card .cap-t{margin-top:12px!important}  /* space between picture and title */
}

/* ---- SIDE QUESTS page ---- */
.sq-head{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8%;align-items:end;margin-bottom:64px}
.sq-head .h2{margin:0;text-wrap:balance}
.sq-lead{max-width:26em;margin:0;font-size:18px;line-height:1.5}
.sq .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.sq-soon{aspect-ratio:600/468;border:1.5px dashed rgb(0 0 0 / 18%);border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:24px}
.sq-soon .flower-i{width:28px;height:30px;color:#D573E7;animation:crspin 8s linear infinite;margin-bottom:6px}
.sq-soon b{font-weight:400;font-size:20px}
@media (max-width:900px){.sq-head{grid-template-columns:minmax(0,1fr);row-gap:16px;margin-bottom:40px}}
@media (max-width:600px){.sq-lead{font-size:16px}.sq-head{margin-bottom:32px}.sq .grid{grid-template-columns:minmax(0,1fr)}}

/* Works page = client work only. Side quests live on their own page (Quests in the header). */
body[data-page="works"] .card[data-cat="play"]{display:none!important}
body[data-page="works"] .filters button[data-k="play"]{display:none!important}

.grid:empty{min-height:150vh}