/* Play with Splat (play.html): the page that introduces each game on its own card.
   Each card's picture borrows the look of its game, so visitors can tell them apart at a glance. */
.ph{--plum:#2b1427;--rose:#a85565;--line:#e7dde3;--soft:#6b6372;--cream:#fbf6ea;
  max-width:1180px;margin:0 auto;padding:clamp(20px,4vw,44px) clamp(16px,4vw,32px) clamp(40px,6vw,72px);box-sizing:border-box}

/* Introduction */
.ph-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.ph-hero-copy{max-width:40em}
.ph-kicker{margin:0 0 4px;font-family:'Caveat',cursive;font-size:30px;color:#8a5a8c}
.ph h1{margin:0;font-family:'Grandstander','Fraunces',serif;font-weight:800;font-size:clamp(36px,5.4vw,64px);line-height:1.02;letter-spacing:-.01em;color:var(--plum)}
.ph-lede{margin:16px 0 0;font-size:clamp(17px,1.5vw,20px);line-height:1.6;color:#4a3a47}
.ph-hero-art{flex:0 0 auto;width:clamp(120px,16vw,190px);height:auto;margin-bottom:-14px;filter:drop-shadow(0 12px 12px rgba(43,20,39,.2))}

/* The game cards */
.ph-games{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:clamp(20px,3vw,32px);margin-top:clamp(28px,4vw,44px)}
.ph-card{position:relative;display:flex;flex-direction:column;border-radius:24px;overflow:hidden;background:#fff;
  box-shadow:0 22px 40px -30px rgba(43,20,39,.6),inset 0 0 0 1.5px var(--line);transition:transform .25s ease,box-shadow .25s ease}
.ph-card:hover{transform:translateY(-4px);box-shadow:0 28px 46px -28px rgba(43,20,39,.65),inset 0 0 0 1.5px var(--rose)}
.ph-card:focus-within{box-shadow:0 0 0 3px #fff,0 0 0 6px var(--rose)}
.ph-body{display:flex;flex-direction:column;flex:1;padding:22px 26px 26px}
.ph h2{margin:0;font-family:'Grandstander','Fraunces',serif;font-weight:800;font-size:clamp(26px,2.6vw,32px);line-height:1.1;color:var(--plum)}
/* The title link covers the whole card, so a tap anywhere on it opens the game */
.ph-link{color:inherit;text-decoration:none;outline:none}
.ph-link::after{content:"";position:absolute;inset:0;border-radius:24px;z-index:3}
.ph-desc{margin:10px 0 0;font-size:17px;line-height:1.55;color:#4a3a47}
/* What a game helps children practise */
.ph-learn{margin:12px 0 0;padding:8px 12px;border-left:3px solid var(--rose);border-radius:0 10px 10px 0;background:#fbf3f5;font-size:15.5px;line-height:1.45;color:var(--plum)}
.ph-learn b{font-weight:600;color:var(--rose)}
.ph-facts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;list-style:none}
.ph-facts li{padding:4px 12px;border-radius:999px;background:#f6eff3;color:var(--plum);font-size:14.5px}
.ph-go{align-self:flex-start;margin-top:auto;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 22px;border-radius:999px;
  background:var(--plum);color:var(--cream);font-size:17px}
.ph-body .ph-facts{margin-bottom:22px}
.ph-arr{transition:transform .2s}
.ph-card:hover .ph-arr{transform:translateX(4px)}

/* Picture panels */
.ph-art{position:relative;height:clamp(200px,22vw,250px);overflow:hidden}

/* Splat’s Toy Duck Shop: the shop among its ducks */
.ph-card-shop .ph-art{background:#eef2f4}
.ph-shop-img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 38%}

/* Duck Island: the ducks gathered round the corn at sunset, with the lanterns coming on */
.ph-card-island .ph-art{background:#f2b48a}
.ph-card-island .ph-shop-img{object-position:50% 62%}

/* Purrfect Pairs: two cards face down, a matching pair face up, Splat cheering */
.ph-card-pairs .ph-art{background:radial-gradient(ellipse at 30% 30%,#fff 0,#fbf6ea 55%,#f3e6d6 100%)}
.ph-back,.ph-face{position:absolute;width:clamp(78px,8.4vw,96px);aspect-ratio:1;border-radius:16px}
.ph-back{background:url(../images/logo/splat-the-cat-logo.webp) center/56% no-repeat,radial-gradient(circle,#fbf6ea 0 38%,rgba(251,246,234,0) 39%),linear-gradient(160deg,#3d8189,#1f4a52);
  box-shadow:0 12px 20px -10px rgba(18,43,49,.6),inset 0 0 0 3px rgba(251,246,234,.22),inset 0 0 0 6px #1f4a52,inset 0 0 0 7px rgba(240,176,44,.45)}
.ph-face{display:grid;place-items:center;background:#c96f86;box-shadow:0 12px 20px -10px rgba(43,20,39,.55),inset 0 0 0 3px rgba(255,255,255,.35)}
.ph-face img{width:78%;height:auto}
.ph-back-1{left:7%;top:16%;transform:rotate(-9deg)}
.ph-back-2{left:27%;top:8%;transform:rotate(5deg)}
.ph-face-1{left:12%;top:52%;transform:rotate(-4deg)}
.ph-face-2{left:33%;top:46%;transform:rotate(6deg)}
.ph-art-splat{position:absolute;right:6%;bottom:-6px;width:clamp(150px,17vw,200px);height:auto;filter:drop-shadow(0 12px 12px rgba(43,20,39,.22))}

/* Splat Four: the game as it looks now. Splat's bedroom wall at night and the mid-wood tabletop; the pale maple
   frame with Splat's ears, square on, running off the bottom of the picture with four Splats in a row; and Splat
   holding his four ducks on the right, standing on the bottom edge */
.ph-card-four .ph-art{--h:clamp(200px,22vw,250px);--fw:min(56%,calc(var(--h)*1.12));--fl:max(3%,calc(50% - var(--fw) + 3%));
  background:#3a3566 url(../images/play/four/bedroom-wall.webp) center top/cover no-repeat}
.ph-card-four .ph-art::after{content:"";position:absolute;left:0;right:0;bottom:0;height:20%;
  background:#a8692f url(../images/play/four/wood/mid-wood-table.jpg) center/420px auto;box-shadow:inset 0 7px 9px -6px rgba(0,0,0,.45)}
/* the frame and Splat stand together as a pair in the middle of the picture; the frame is sized from the picture's height */
.ph-frame{position:absolute;z-index:1;left:var(--fl);top:clamp(10px,1.4vw,16px);display:block;width:var(--fw);filter:drop-shadow(0 12px 10px rgba(30,15,5,.45))}
.ph-board{display:grid;grid-template-columns:repeat(7,1fr);gap:clamp(3px,.45vw,5px);box-sizing:border-box;
  padding:calc(clamp(6px,.8vw,9px) + 10%) clamp(6px,.8vw,9px) clamp(6px,.8vw,9px);
  background:linear-gradient(160deg,rgba(255,255,255,.35),rgba(255,255,255,0) 45%),#ecd8b4 url(../images/play/four/wood/light-wood.jpg) center/180% auto;
  clip-path:polygon(0 100%,0 12%,5% 1%,26% 12%,74% 12%,95% 1%,100% 12%,100% 100%)}
.ph-four-splat{position:absolute;z-index:2;left:calc(var(--fl) + var(--fw) - 6%);bottom:0;height:97%;width:auto;max-width:46%;object-fit:contain;object-position:left bottom;
  filter:drop-shadow(-6px 8px 10px rgba(20,10,40,.35))}
/* phones: a bigger frame, cut off by the bottom edge, with Splat standing just in front of its right-hand columns */
@media (max-width:520px){.ph-card-four .ph-art{--fw:64%}.ph-four-splat{left:calc(var(--fl) + var(--fw) - 16%);max-width:48%}}
.ph-hole,.ph-ctr{aspect-ratio:1;border-radius:50%}
.ph-hole{background:#3c3a72;box-shadow:inset 0 3px 5px rgba(20,10,40,.55),0 1px 0 rgba(255,255,255,.5)}
.ph-ctr{display:block;overflow:hidden;background:var(--c);box-shadow:inset 0 0 0 2px rgba(255,255,255,.7),inset 0 0 0 4px var(--c),0 0 0 2px rgba(110,70,30,.35)}
.ph-ctr img{display:block;width:100%;height:100%;object-fit:cover}
.ph-win{box-shadow:inset 0 0 0 2px rgba(255,255,255,.75),0 0 0 2px #ffcd4d,0 0 14px 3px rgba(255,205,77,.6)}
/* duck counters: the duck on a cream inlay inside a ring of its colour */
.ph-ctr.ph-duck{box-sizing:border-box;padding:9%;background:#fff8ec;box-shadow:inset 0 0 0 3px var(--c),0 0 0 2px rgba(110,70,30,.35)}
.ph-ctr.ph-duck img{object-fit:contain}

.ph-more{margin:clamp(26px,4vw,40px) 0 0;text-align:center;font-family:'Caveat','Fraunces',cursive;font-size:clamp(22px,2.2vw,26px);color:var(--soft)}

@media (max-width:640px){
  .ph-hero{align-items:flex-start}
  .ph-hero-art{display:none}
  .ph-body{padding:20px 20px 22px}
}
@media (prefers-reduced-motion:reduce){
  .ph-card,.ph-arr{transition:none}
  .ph-card:hover{transform:none}
  .ph-card:hover .ph-arr{transform:none}
}
