/* Ponk Games: shared base + home page.
   Colour-blocked like the logo: purple disc, cyan letters, yellow shadow, Ponk's own skin and black outline. */
@font-face { font-family: "DynaPuff"; src: url("fonts/DynaPuff-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Righteous"; src: url("fonts/Righteous-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Trueno"; src: url("fonts/TruenoRg.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Trueno"; src: url("fonts/TruenoSBd.otf") format("opentype"); font-weight: 600; font-display: swap; }

:root {
  --purple: #5b0d85;
  --purple-ring: #8632ae;
  --purple-deep: #33084c;
  --cyan: #38b6ff;
  --yellow: #fff02a;
  --skin: #ffdfb8;
  --ink: #160320;
  --white: #ffffff;
  --display: "DynaPuff", "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --body: "Trueno", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --line: 3px solid var(--ink);
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--purple); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--yellow); padding: .5rem 1rem; border: var(--line); border-radius: 999px; }
.skip:focus { top: 1rem; }
.wrap { max-width: calc(var(--wrap) + 3rem); margin-inline: auto; padding-inline: max(1.5rem, env(safe-area-inset-left, 0px)) max(1.5rem, env(safe-area-inset-right, 0px)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.5rem; border: var(--line); border-radius: 999px; background: var(--yellow); color: var(--ink); font: 600 1.0625rem/1.2 var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.btn--plain { background: var(--white); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.top__logo img { width: 96px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem .35rem; }
.nav a { padding: .45rem .9rem; border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { background: var(--yellow); color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--purple); color: var(--white); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem; min-height: min(780px, 92vh); padding-block: 8rem 4rem; }
.hero h1 { font: 700 clamp(2.9rem, 7.2vw, 6rem)/.98 var(--display); color: var(--cyan); text-shadow: 0 0 0 var(--yellow), 2px 2px 0 var(--yellow), 4px 4px 0 var(--yellow), 6px 6px 0 var(--yellow); text-wrap: balance; }
.hero p { margin-block: 1.75rem 2rem; max-width: 33ch; font-size: 1.1875rem; line-height: 1.55; }
.hero__ponk { position: relative; z-index: 1; justify-self: center; width: min(100%, 470px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.hero__ponk svg { width: 100%; height: 100%; overflow: visible; display: block; }
.hero__ponk:focus-visible { outline-offset: 18px; border-radius: 50%; }
.ring { pointer-events: none; transition: fill .22s ease-out; }
.ring--1 { fill: #b26fd8; }
.ring--2 { fill: #7d2ea9; }
.ring--3 { fill: #6a1a95; }
/* A poke: the rings light up from the middle out, then fade back. */
.glow .ring { transition-duration: .03s; }
.glow .ring--1 { fill: #f6dcff; }
.glow .ring--2 { fill: #cf8cf2; transition-delay: .015s; }
.glow .ring--3 { fill: #a552d0; transition-delay: .03s; }
.hero__ponk .ring--1 { filter: drop-shadow(0 0 0 rgb(246 220 255 / 0)); }
.glow .ring--1 { filter: drop-shadow(0 0 60px rgb(246 220 255 / 1)); }
.hero .wrap > div { position: relative; z-index: 2; }
.ponk__face { transform-origin: 1000px 1000px; transition: transform .25s cubic-bezier(.3, 2.2, .5, 1); }
.hero__ponk:hover .ponk__face { transform: rotate(-3deg) scale(1.02); }
.hero__ponk:active .ponk__face { transform: scale(1.05, .93); }
.ponk__eyes { transform-origin: 1114px 960px; transition: transform .07s; }
.blink .ponk__eyes { transform: scaleY(.07); }

/* Sections */
.sec { padding-block: clamp(4rem, 9vw, 7rem); }
.sec > .wrap > h2 { font: 700 clamp(2.25rem, 5vw, 3.75rem)/1.05 var(--display); text-wrap: balance; margin-bottom: 2.25rem; }

/* Conquer feature */
.feature { position: relative; display: block; overflow: hidden; border-block: 6px solid var(--ink); background: #0f56c4; color: var(--white); text-decoration: none; }
.feature > video, .feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(22 3 32 / .86) 0%, rgb(22 3 32 / .6) 42%, rgb(22 3 32 / 0) 78%); }
.feature .wrap { position: relative; z-index: 1; padding-block: clamp(4rem, 9vw, 7.5rem); }
.feature__logo { width: min(520px, 100%); }
.feature p { max-width: 42ch; margin-block: 1.5rem 2rem; font-size: 1.1875rem; }
.feature .tag { display: inline-block; margin-bottom: 1.25rem; padding: .25rem .9rem; border: var(--line); border-radius: 999px; background: var(--cyan); color: var(--ink); font-weight: 600; }

/* Games */
.games { background: var(--cyan); }
.game { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.game__art { border: 5px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 10px 10px 0 var(--yellow); background: var(--ink); aspect-ratio: 16 / 9; position: relative; }
.game__art img { width: 100%; height: 100%; object-fit: cover; }
.game h3 { font: 700 clamp(1.75rem, 3.2vw, 2.5rem)/1.1 var(--display); }
.game .meta { margin-top: .4rem; font-weight: 600; }
.game .blurb { margin-block: 1rem 1.5rem; max-width: 48ch; }
.thumbs { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.thumbs button { flex: 1 1 0; max-width: 120px; padding: 0; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--ink); cursor: pointer; aspect-ratio: 16 / 9; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--yellow); }

.itch { background: var(--skin); }
.itch .wrap > p { max-width: 52ch; margin: -1.25rem 0 2rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.cards a { display: block; text-decoration: none; line-height: 1.4; }
.cards img { width: 100%; border: 4px solid var(--ink); border-radius: 20px; background: var(--white); transition: transform .18s, box-shadow .18s; }
.cards a:hover img { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--purple); }
.cards b { display: block; margin-top: .8rem; font: 700 1.4rem/1.15 var(--display); }
.cards span { display: block; margin-top: .3rem; font-size: 1rem; }
.cards em, .playinfo em { font-style: normal; font-weight: 600; background: var(--purple); color: var(--white); border-radius: 999px; padding: .1rem .7rem; font-size: .875rem; display: inline-block; white-space: nowrap; margin-top: .45rem; }

/* Play pages */
.playpage { background: var(--purple); color: var(--white); }
.playpage .wrap { padding-block: 8rem 3.5rem; }
.playpage h1 { font: 700 clamp(2.4rem, 5.5vw, 4.25rem)/1 var(--display); color: var(--cyan); text-shadow: 2px 2px 0 var(--yellow), 4px 4px 0 var(--yellow); margin-bottom: 1.75rem; }
/* As wide as the column, but never taller than the window. */
.player { position: relative; width: min(100%, calc((100vh - 7rem) * var(--w) / var(--h))); margin-inline: auto; aspect-ratio: var(--w) / var(--h); overflow: hidden; border: 6px solid var(--ink); border-radius: 22px; background: #000; display: grid; place-items: center; }
.player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player > .btn { position: relative; align-self: end; margin-bottom: 9%; padding: 1.1rem 2.25rem; font-size: 1.375rem; }
.player > p, .player noscript p { position: relative; margin: 1rem; max-width: 30ch; padding: 1rem 1.25rem; border: var(--line); border-radius: 16px; background: var(--white); color: var(--ink); font-weight: 600; text-align: center; }
.player iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #000; }
.player:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.player__bar { justify-content: center; margin-top: 1.5rem; }
.playinfo { background: var(--white); }
.playinfo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 6vw, 5rem); }
.playinfo h2 { font: 700 clamp(1.75rem, 3.2vw, 2.5rem)/1.1 var(--display); margin-bottom: 1rem; }
.playinfo__text p + p { margin-top: 1rem; }
.playinfo__text p { max-width: 56ch; font-size: 1.125rem; }
.keys { display: grid; }
.keys div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 1rem; padding-block: .7rem; border-top: var(--line); }
.keys div:last-child { border-bottom: var(--line); }
.keys dt { font-weight: 600; }

/* News */
.news { background: var(--yellow); }
.news article { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .5rem 2rem; padding-block: 1.5rem; border-top: var(--line); }
.news article:last-of-type { border-bottom: var(--line); }
.news time { font-weight: 600; }
.news h3 { font: 700 1.625rem/1.2 var(--display); }
.news article p { margin-top: .4rem; max-width: 58ch; }
.news a { font-weight: 600; text-underline-offset: 3px; }

/* About */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__text { display: grid; gap: 1.1rem; max-width: 58ch; font-size: 1.125rem; }
.about__text h2 { font: 700 clamp(2.25rem, 5vw, 3.75rem)/1.05 var(--display); text-wrap: balance; margin-bottom: .75rem; }
.portrait { justify-self: center; width: min(100%, 420px); border: 6px solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--cyan); background: var(--purple); }
.music { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 2rem clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3.5rem, 7vw, 5.5rem); padding: clamp(1.5rem, 3.5vw, 2.75rem); border: 5px solid var(--ink); border-radius: 28px; background: var(--purple); color: var(--white); box-shadow: 10px 10px 0 var(--yellow); }
.music__text { display: grid; gap: 1rem; }
.music h3 { font: 700 clamp(1.75rem, 3.2vw, 2.5rem)/1.1 var(--display); color: var(--yellow); }
.music .btns { margin-top: .5rem; }
.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.covers a { display: block; text-decoration: none; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.covers img { width: 100%; border: 3px solid var(--ink); border-radius: 12px; transition: transform .18s; }
.covers a:hover img { transform: translateY(-4px) rotate(-2deg); }
.covers span { display: block; margin-top: .45rem; }
.covers a:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Contact */
.contact { background: var(--purple); color: var(--white); position: relative; overflow: hidden; }
.contact > .wrap > h2 { color: var(--cyan); text-shadow: 2px 2px 0 var(--yellow), 4px 4px 0 var(--yellow); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); }
.contact__grid p { max-width: 46ch; font-size: 1.125rem; }
.mail { display: inline-block; margin-top: 1.25rem; font: 700 clamp(1.35rem, 3vw, 2rem)/1.2 var(--display); color: var(--yellow); overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; }
.form__wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; padding: .75rem .9rem; border: var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.4 var(--body); }
.form textarea { resize: vertical; min-height: 8rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.form__end p { flex: 1 1 14rem; font-size: 1rem; font-weight: 600; color: var(--yellow); }
.contact__grid .form__note { max-width: none; font-size: .9375rem; color: #e7d3f3; }
.form .btn[disabled] { opacity: .6; cursor: default; }

/* Footer links */
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.links a { display: flex; align-items: baseline; gap: .6rem; padding: .7rem 1.1rem; border-radius: 14px; background: var(--purple-ring); color: var(--white); text-decoration: none; white-space: nowrap; }
.links b { font-weight: 600; }
.links span { opacity: .85; }
.links a:hover { background: var(--yellow); color: var(--ink); }

.foot { background: var(--purple-deep); color: #e7d3f3; }
.foot .wrap { max-width: 1480px; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-block: 2rem; }
.foot img { width: 84px; }
.foot small { font-size: .9375rem; }
.foot small a, .foot small button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Cookie banner, only used if Google Analytics or the Meta pixel is turned on in site.js */
.cookies { position: fixed; inset: auto 1rem 1rem; z-index: 60; max-width: 620px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; background: var(--white); color: var(--ink); border: var(--line); border-radius: 18px; }
.cookies p { flex: 1 1 100%; }

/* Privacy page */
.legal__top { background: var(--purple); color: var(--white); padding: 9rem 0 2.5rem; }
.legal__top h1 { font: 700 clamp(2.25rem, 5vw, 3.5rem)/1.1 var(--display); }
.legal { background: var(--white); padding-top: 3rem; }
.legal .wrap, .legal__top .wrap { max-width: 780px; }
.sec.legal h2 { font-size: 1.5rem; line-height: 1.2; margin: 2.25rem 0 .75rem; max-width: none; }
.legal p { margin-bottom: 1rem; max-width: 65ch; }
.legal a { color: var(--purple); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 8.5rem 3.5rem; min-height: 0; gap: 3.5rem; }
  .hero__ponk { width: min(78%, 340px); }
  .game, .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .news article { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .playinfo__grid { grid-template-columns: minmax(0, 1fr); }
  .cards em { white-space: normal; border-radius: 12px; }
  .music { grid-template-columns: minmax(0, 1fr); }
  .links a { white-space: normal; }
  .feature::after { background: linear-gradient(0deg, rgb(22 3 32 / .72), rgb(22 3 32 / .62)); }
}
@media (max-width: 560px) {
  .top .wrap { align-items: flex-start; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .links a { flex-direction: column; gap: 0; }
  .links a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .top__logo img { width: 72px; }
  .nav a { padding: .3rem .55rem; font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
