@font-face {
  font-family: "PP Fraunces";
  src: url("/assets/pp/font-8.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "PP Fraunces";
  src: url("/assets/pp/font-5.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "PP DM Sans";
  src: url("/assets/pp/font-0.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PP DM Sans";
  src: url("/assets/pp/font-3.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --purple: #35135d;
  --purple-deep: #1e0b36;
  --cream: #f6eedb;
  --green: #234f3d;
  --red: #bc4433;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 280px;
  min-height: 100svh;
  margin: 0;
  color: #fff;
  background: radial-gradient(circle at 50% 0, #5c2a95, transparent 38rem), linear-gradient(var(--purple), var(--purple-deep));
  font-family: "Google Sans Flex", "Trebuchet MS", sans-serif;
}
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #fcd34d; outline-offset: 5px; }

.site-shell { width: min(100% - 2rem, 1220px); margin-inline: auto; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.5rem;
}
.site-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0; text-decoration: none; }
.site-brand .brand-straw { display: block; width: auto; height: 16.5rem; }
.site-brand .brand-words { display: flex; flex-direction: column; align-items: center; margin-left: -3.9rem; }
.site-brand .brand-get-bent { display: block; width: auto; height: 5.4rem; filter: invert(1); }
.site-brand .brand-games { display: block; width: auto; height: 2rem; margin-top: -.4rem; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(.5rem, 1.3vw, 1.25rem); }
.site-nav a { font-size: 2rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
.page-heading { margin: .2rem 0 2rem; font-size: clamp(.85rem, 1.75vw, 1.25rem); line-height: 1; }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: clamp(1rem, 2.2vw, 2rem); }
.game-card { min-width: 0; min-height: 36rem; overflow: hidden; display: flex; flex-direction: column; border: 2px solid rgba(255,255,255,.64); border-radius: 1.7rem; box-shadow: 0 1.3rem 3.5rem #13072480; }
.game-card .card-art { position: relative; flex: 1 1 auto; min-height: 24rem; overflow: hidden; }
.game-card-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: clamp(1.4rem, 3vw, 2rem); }
.game-card-copy h2, .game-card-copy p { margin: 0; }
.game-card-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.game-card-copy p { line-height: 1.5; }
.card-button, .back-link { display: inline-block; padding: .85rem 1.25rem; border-radius: .7rem; font-weight: 800; text-decoration: none; }
.card-button:focus-visible, .back-link:focus-visible { outline-offset: 4px; }
.store-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.store-button { display: inline-flex; align-items: center; min-width: 8.8rem; min-height: 3rem; padding: .35rem .65rem; border: 1px solid #8d8d8d; border-radius: .45rem; color: #fff; background: #0c0c0c; text-decoration: none; }
.store-button-copy { display: flex; flex-direction: column; line-height: 1.05; }
.store-button-copy small { font-size: .57rem; font-weight: 700; letter-spacing: .04em; }
.store-button-copy strong { margin-top: .18rem; font-size: 1.06rem; white-space: nowrap; }
.store-button.is-coming { opacity: .62; cursor: default; }
a.store-button:hover { border-color: #fff; background: #262626; }
.ps-card { background: #10152f; }
.ps-card .card-art { display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at 50% 35%, #a95ff6, #422075 56%, #111833); }
.ps-card .card-art img { width: min(80%, 19rem); filter: drop-shadow(0 1rem 2rem #0009); }
.ps-card .card-button { color: #121629; background: #fcd34d; }
.pp-card { color: var(--green); background: var(--cream); border-color: #ead9ac; font-family: "Google Sans Flex", sans-serif; }
.pp-card .card-art { background: radial-gradient(circle at 50% 30%, #fff9e9, transparent 65%), var(--cream); }
.pp-card .game-card-copy { position: relative; background: #fff7e5; }
.pp-card .game-card-copy h2 { font-family: "PP Fraunces", Georgia, serif; }
.pp-card .card-button { color: #fff7e5; background: var(--green); }

.pp-art { position: relative; isolation: isolate; overflow: hidden; }
.pp-art .pp-title { position: absolute; z-index: 4; inset: 0; margin: 0; color: var(--green); font-family: "PP Fraunces", Georgia, serif; font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 800; letter-spacing: -.07em; line-height: 1; text-align: left; pointer-events: none; }
.pp-art .pp-title-pizza, .pp-art .pp-title-parlour { position: absolute; left: 6%; display: block; }
.pp-art .pp-title-pizza { bottom: 61%; }
.pp-art .pp-title-parlour { top: 53%; color: #d44d39; font-weight: 700; text-shadow: 0 0 .025em #0008; }
/* Keep the peel outline inline so a CSS upload cannot leave an older mask on the server. Source: assets/pp/peel-mask.svg. */
.pp-art .pp-peel { position: absolute; z-index: 1; left: -27%; top: 46%; width: 130%; height: auto; aspect-ratio: 1024 / 500; background: url("/assets/pp/TEXTURE_wood-1.webp") center / cover; -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDUwMCI+CiAgPHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0wIDIzNUg2MDBDNjM0IDIzNSA2NTEgMjI1IDY2MCAxOTRDNjc3IDEzMSA3MTYgOTYgNzg1IDk2SDg4N0M5NDQgOTYgOTg2IDEzOSA5ODYgMTk4VjMwMkM5ODYgMzY2IDk0NCA0MDggODg3IDQwOEg3ODVDNzE2IDQwOCA2NzcgMzczIDY2MCAzMTBDNjUxIDI4MCA2MzQgMjY5IDYwMCAyNjlIMFoiLz4KPC9zdmc+Cg==") center / 100% 100% no-repeat; mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDUwMCI+CiAgPHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0wIDIzNUg2MDBDNjM0IDIzNSA2NTEgMjI1IDY2MCAxOTRDNjc3IDEzMSA3MTYgOTYgNzg1IDk2SDg4N0M5NDQgOTYgOTg2IDEzOSA5ODYgMTk4VjMwMkM5ODYgMzY2IDk0NCA0MDggODg3IDQwOEg3ODVDNzE2IDQwOCA2NzcgMzczIDY2MCAzMTBDNjUxIDI4MCA2MzQgMjY5IDYwMCAyNjlIMFoiLz4KPC9zdmc+Cg==") center / 100% 100% no-repeat; transform: translateY(-50%); filter: drop-shadow(0 .2rem .25rem #45301c44); }
.pp-art .pp-pizza { position: absolute; z-index: 2; width: 30%; top: 46%; left: 77.5%; transform: translate(-50%, -50%) rotate(-8deg); filter: drop-shadow(0 .7rem .7rem #5b3e3b44); }
.pp-art .pp-chef { position: absolute; z-index: 3; width: 25%; bottom: 0; filter: drop-shadow(.35rem .35rem .3rem #26302438); }
.pp-art .pp-chef-happy { left: -18%; transform: rotate(30deg); transform-origin: center bottom; }
.pp-art .pp-chef-angry { right: -18%; transform: rotate(-35deg) scaleX(-1); transform-origin: center bottom; }
.pp-card .pp-title { font-size: clamp(3.5rem, 5vw, 4.5rem); }
.pp-card .pp-pizza { width: 34%; }
.pp-card .pp-chef { width: 31%; }

.game-page { padding-block: 2rem 4rem; }
.game-page .back-link { margin-bottom: 1.5rem; background: #ffffff1c; }
.pp-page { color: var(--green); background: #f6eedb; font-family: "Google Sans Flex", sans-serif; }
.pp-page .pp-header-band { background: var(--green); }
.pp-page .site-nav a { color: #fff7e5; }
.pp-page .site-brand { color: #fff; }
.pp-page .back-link { color: var(--green); background: #e8ddc6; }
.pp-hero { width: min(100%, 1080px); height: clamp(28rem, 50vw, 32rem); margin-inline: auto; border: 1px solid #e4d9bd; border-radius: 1.5rem; background: radial-gradient(circle at 50% 20%, #fffaf0, transparent 60%), var(--cream); }
.pp-hero .pp-title { font-size: clamp(4.3rem, 9vw, 8rem); }
.pp-hero .coming-soon { position: absolute; z-index: 4; left: 50%; bottom: 5%; transform: translateX(-50%); padding: .55rem 1rem; color: #fff7e5; background: var(--red); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pp-intro { max-width: 52rem; margin: 2.8rem auto; text-align: center; }
.pp-intro h2 { margin: 0 0 .6rem; font: 800 clamp(1.8rem, 4vw, 3rem) "PP Fraunces", Georgia, serif; }
.pp-intro p { margin: 0; line-height: 1.65; font-size: 1.1rem; }
.availability { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.75rem auto 0; }
.availability span { min-width: 12rem; padding: .9rem 1.2rem; border: 2px solid #d8c9ab; border-radius: .7rem; background: #fff7e5; font-weight: 700; }
.video-placeholder { width: min(100%, 960px); aspect-ratio: 16 / 9; display: grid; place-content: center; gap: .5rem; margin: 0 auto 3rem; padding: 1.5rem; border: 2px solid #d7c8a8; border-radius: 1.4rem; background: #e8ddc6 url("/assets/pp/TEXTURE_wood-1.webp") center / cover; text-align: center; }
.video-placeholder-inner { padding: 1.4rem 2rem; border-radius: .8rem; background: #fff7e5e8; }
.video-placeholder strong { display: block; font: 800 clamp(1.4rem, 3vw, 2.3rem) "PP Fraunces", Georgia, serif; }
.video-placeholder span { display: block; margin-top: .4rem; }
.game-gallery { max-width: 1060px; margin: 0 auto; }
.game-gallery h2 { font: 800 clamp(1.8rem, 4vw, 2.6rem) "PP Fraunces", Georgia, serif; }
.site-nav a, .card-button, .back-link, .pp-hero .coming-soon,
.availability span, .video-placeholder strong {
  font-family: "Google Sans Flex", sans-serif;
}
.page-heading, .game-card-copy h2, .pp-card .game-card-copy h2,
.pp-intro h2, .game-gallery h2 {
  font-family: "GBG Baloo 2", "PP DM Sans", sans-serif;
}
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gallery-grid img { display: block; width: 100%; border-radius: .7rem; box-shadow: 0 .5rem 1.5rem #254f3d24; }
.site-footer { padding-block: 3rem; text-align: center; opacity: .8; }

@media (max-width: 820px) {
  .game-grid { grid-template-columns: 1fr; max-width: 650px; margin-inline: auto; }
  .game-card { min-height: 32rem; }
  .pp-card .pp-title { font-size: clamp(3.5rem, 9vw, 4.5rem); }
}

@media (max-width: 600px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .site-nav { justify-content: flex-start; }
  .site-shell { width: min(100% - 1.5rem, 1220px); }
  .game-card .card-art { min-height: 19rem; }
  .pp-card .pp-title { font-size: clamp(2.6rem, 9vw, 3.5rem); }
  .pp-card .pp-pizza { width: 40%; }
  .pp-hero .pp-title { font-size: clamp(3.3rem, 12vw, 5.5rem); }
  .pp-hero .pp-pizza { width: 39%; }
  .pp-hero .pp-chef { width: 36%; bottom: -5%; }
  .pp-hero .coming-soon { bottom: 6%; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-brand .brand-straw { height: 9rem; }
  .site-brand .brand-words { margin-left: -1.8rem; }
  .site-brand .brand-get-bent { height: 3.24rem; }
  .site-brand .brand-games { height: 1.2rem; margin-top: -.24rem; }
}
