/*
Theme Name: Dandy Pixel
Theme URI: https://dandypixel.app
Author: Dandy Pixel LLC
Author URI: https://dandypixel.app
Description: Playful block theme for Dandy Pixel - big bold type, lots of white space and colorful characters.
Version: 1.3.1
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dandypixel
*/

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
a { text-underline-offset: .18em; text-decoration-thickness: 2px; }

/* ---------- header ---------- */
.dp-header { padding: 22px clamp(20px, 3vw, 44px) !important; }
.dp-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none !important; color: var(--wp--preset--color--ink); }
.dp-logo img { width: 46px; height: auto; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.dp-logo:hover img { transform: rotate(-10deg) scale(1.08); }
.dp-logo span { font-family: var(--wp--preset--font-family--fredoka); font-weight: 700; font-size: 1.55rem; letter-spacing: -.01em; line-height: 1; }
.dp-header .wp-block-navigation { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 1.3rem; gap: clamp(14px, 2.2vw, 34px); }
.dp-header .wp-block-navigation a { text-decoration: none; position: relative; }
.dp-header .wp-block-navigation a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--wp--preset--color--pink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.dp-header .wp-block-navigation a:hover::after { transform: scaleX(1); }


/* ---------- shared layout ---------- */
.dp-wrap { width: min(1240px, calc(100% - 2 * clamp(20px, 4vw, 48px))); margin-inline: auto; }
.dp-block { padding-top: clamp(80px, 13vh, 150px) !important; padding-bottom: clamp(40px, 6vh, 70px) !important; }
.dp-colorband { padding-top: clamp(72px, 12vh, 140px) !important; padding-bottom: clamp(72px, 12vh, 140px) !important; margin-top: clamp(72px, 12vh, 140px) !important; }
.dp-band-pink { background: #FFA8D3; }
.dp-band-green { background: #7EE08E; }

/* big centred Toca-style titles */
.dp-title-xl, .dp-title-lg { font-family: var(--wp--preset--font-family--fredoka); font-weight: 700; color: var(--wp--preset--color--ink); text-align: center; letter-spacing: -.04em; margin: 0 auto !important; }
.dp-title-xl { font-size: clamp(2.9rem, 7.6vw, 7.2rem) !important; line-height: .95 !important; max-width: 13ch; }
.dp-title-lg { font-size: clamp(2.6rem, 5.4vw, 5.2rem) !important; line-height: .95 !important; }
.dp-sub { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.75rem) !important; line-height: 1.2; text-align: center; color: var(--wp--preset--color--ink); margin: .55em auto 0 !important; }
.dp-nw { white-space: nowrap; }
.dp-title-icon { display: inline-block; height: .8em; width: auto; vertical-align: -.08em; margin: 0 -.14em; position: relative; z-index: 1; }
.dp-star { animation: dp-wiggle 2.8s ease-in-out infinite; }
.dp-bigtext { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: clamp(1.3rem, 2.3vw, 2.05rem) !important; line-height: 1.22; letter-spacing: -.01em; max-width: 1100px; margin: clamp(32px, 5vh, 56px) auto 0 !important; color: var(--wp--preset--color--ink); }

/* letters swapped for pictures (heart / character faces) */
.dp-o { display: inline-block; position: relative; width: .64em; height: .64em; vertical-align: -.03em; margin: 0 .015em; }
.dp-o img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; max-width: none; }
.dp-o-heart img { animation: dp-beat 1.5s ease-in-out infinite; }
.dp-faces img { opacity: 0; transform: scale(.2) rotate(-40deg); transition: opacity .2s ease, transform .5s cubic-bezier(.3,1.8,.5,1); }
.dp-faces img.is-on { opacity: 1; transform: none; }

/* buttons */
.dp-pill { display: inline-flex; align-items: center; gap: .5em; height: 64px; padding: 0 1.55em; box-sizing: border-box; border-radius: 999px; background: var(--wp--preset--color--ink); color: #fff !important; font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 1.2rem; text-decoration: none !important; transition: background .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.dp-pill svg { width: 1.1em; height: 1.1em; transition: transform .25s; }
.dp-pill:hover, .dp-pill:focus-visible { background: var(--wp--preset--color--pink); transform: translateY(-3px); }
.dp-pill:hover svg { transform: translateX(4px); }
.dp-pill-sm { height: auto; padding: .6em 1.3em; font-size: 1rem; }
.dp-play-badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s; box-shadow: 0 8px 20px -10px rgba(21,18,26,.55); }
.dp-play-badge img { height: 64px; width: auto; display: block; }
.dp-play-badge:hover, .dp-play-badge:focus-visible { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 26px -10px rgba(21,18,26,.55); }
.dp-badge { display: table; margin: 0 auto 18px; font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 1rem; padding: .4em 1em; border-radius: 999px; background: #fff; box-shadow: 0 4px 12px -6px rgba(21,18,26,.35); }

/* ---------- hero ---------- */
.dp-hero { padding-top: clamp(30px, 7vh, 90px) !important; padding-bottom: 0 !important; overflow-x: clip; }
.dp-hero-title { position: relative; width: fit-content; margin: 0 auto !important; text-align: center; font-family: var(--wp--preset--font-family--fredoka); font-weight: 700; font-size: clamp(3.4rem, 11.5vw, 10.5rem) !important; line-height: .9 !important; letter-spacing: -.045em; color: var(--wp--preset--color--ink); }
.dp-line { display: block; white-space: nowrap; }
.dp-w { display: inline-block; animation: dp-word .9s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i) * .13s + .1s); }
.dp-hero-sparkle { position: absolute; left: .35em; top: -.5em; width: .5em; height: auto; animation: dp-twinkle-big 3s ease-in-out infinite; }
.dp-hero-burst { display: inline-block; width: .42em; height: auto; vertical-align: .55em; margin-left: .04em; animation: dp-burst 2.2s ease-in-out infinite; }

.dp-keyart { width: min(1500px, calc(100% - 2 * clamp(14px, 2.4vw, 40px))); margin: clamp(30px, 5vh, 60px) auto 0; animation: dp-rise 1s .5s cubic-bezier(.2,1,.3,1) both; }
.dp-keyart-card { position: relative; overflow: hidden; border-radius: clamp(26px, 3.4vw, 54px); aspect-ratio: 16 / 7.2; transform: scale(var(--dp-s, 1)); transform-origin: center top; will-change: transform; box-shadow: 0 30px 60px -36px rgba(21,18,26,.5); }
.dp-keyart-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: dp-drift 22s ease-in-out infinite alternate; }
.dp-keyart-crew { position: absolute; left: 50%; bottom: -1%; width: 88%; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 12px 14px rgba(21,18,26,.25)); animation: dp-crew 1.1s .85s cubic-bezier(.2,1.4,.4,1) both; }

.dp-intro { width: min(1100px, calc(100% - 2 * clamp(20px, 4vw, 48px))); margin: clamp(56px, 9vh, 110px) auto 0; }
.dp-intro-text { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: clamp(1.45rem, 2.8vw, 2.55rem) !important; line-height: 1.18; letter-spacing: -.015em; color: var(--wp--preset--color--ink); margin: 0 !important; }
.dp-intro-text strong { color: var(--wp--preset--color--pink); font-weight: 700; }
.dp-intro-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: clamp(26px, 4vh, 40px); }

/* ---------- featured game band ---------- */
.dp-showcase { position: relative; display: block; max-width: 1100px; margin: clamp(36px, 6vh, 64px) auto 0; text-decoration: none !important; }
.dp-showcase-shot { display: block; width: 100%; height: auto; border-radius: clamp(24px, 3vw, 44px); box-shadow: 0 30px 50px -28px rgba(110,30,80,.55); transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.dp-showcase:hover .dp-showcase-shot { transform: scale(1.015) rotate(-.6deg); }
.dp-showcase-char { position: absolute; bottom: -7%; height: 72%; width: auto; max-width: none; filter: drop-shadow(0 14px 16px rgba(21,18,26,.25)); transform-origin: bottom center; }
.dp-c1 { left: -4%; animation: dp-wave 3.2s ease-in-out infinite; }
.dp-c2 { right: -4%; animation: dp-wave 3.7s .7s ease-in-out infinite; }
.dp-sparkle { position: absolute; width: 28px; height: 28px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: dp-twinkle 2.4s ease-in-out infinite; }
.dp-s1 { top: -14px; left: 14%; } .dp-s2 { top: 10%; right: 12%; width: 20px; height: 20px; animation-delay: .8s; } .dp-s3 { bottom: 8%; left: 40%; width: 22px; height: 22px; animation-delay: 1.4s; background: #FFD84D; }
.dp-chips { list-style: none; padding: 0 !important; margin: 30px 0 26px !important; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.dp-chips li { background: #fff; border-radius: 999px; padding: .55em 1.1em; font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 1.05rem; box-shadow: 0 4px 12px -8px rgba(21,18,26,.4); margin: 0; }
.dp-store-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.dp-store-row .dp-small { margin: 0; line-height: 1.35; color: var(--wp--preset--color--ink); }

/* ---------- highlights ---------- */
.dp-hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(36px, 6vh, 60px); }
.dp-hl { display: flex; flex-direction: column; align-items: center; background: #F1EFFF; border-radius: 34px; padding: 22px 22px 28px; }
.dp-hl img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; display: block; transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.dp-hl:hover img { transform: scale(1.03) rotate(-1deg); }
.dp-hl .dp-date { align-self: flex-start; margin: 16px 0 0 !important; font-size: .9rem !important; }
.dp-hl h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem) !important; line-height: 1.1 !important; text-align: center; margin: .3em 0 .35em !important; }
.dp-hl p { align-self: stretch; margin: 0 0 20px !important; font-size: 1.02rem; }
.dp-hl .dp-pill { margin-top: auto; }

/* ---------- values ---------- */
.dp-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(80px, 12vh, 120px); }
.dp-value { background: var(--bg); border-radius: 34px; padding: 0 22px 30px; text-align: center; }
.dp-value img { display: block; height: 220px; width: auto; margin: -64px auto 0; filter: drop-shadow(0 10px 12px rgba(21,18,26,.15)); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.dp-value:hover img { transform: rotate(-5deg) scale(1.06) translateY(-6px); }
.dp-value h3 { font-size: 1.7rem !important; margin: .4em 0 .25em !important; }
.dp-value p { margin: 0 !important; }

/* ---------- parents band ---------- */
.dp-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.dp-split-left { text-align: center; }
.dp-checks { list-style: none; padding-left: 0 !important; display: inline-block; text-align: left; margin: 26px 0 0 !important; }
.dp-checks li { position: relative; padding-left: 2.1em; margin: .6em 0; font-weight: 700; }
.dp-checks li::before { content: ""; position: absolute; left: 0; top: .05em; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--wp--preset--color--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.dp-rows { display: flex; flex-direction: column; gap: 14px; }
.dp-row { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); padding: 10px 18px 10px 10px; border-radius: 30px; font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 2.1rem); letter-spacing: -.015em; color: var(--wp--preset--color--ink) !important; text-decoration: none !important; transition: background .2s; }
.dp-row img { width: clamp(76px, 8vw, 116px); height: auto; flex: none; transition: transform .35s cubic-bezier(.3,1.7,.5,1); }
.dp-row span { flex: 1; }
.dp-row-arrow { width: 34px; height: 34px; flex: none; transition: transform .25s; }
.dp-row:hover, .dp-row:focus-visible { background: rgba(255,255,255,.4); }
.dp-row:hover img { transform: rotate(-8deg) scale(1.06); }
.dp-row:hover .dp-row-arrow { transform: translateX(6px); }

/* ---------- scroll reveal (only when JS runs) ---------- */
.dp-js .dp-reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,1.2,.3,1); transition-delay: var(--d, 0ms); }
.dp-js .dp-reveal.is-in { opacity: 1; transform: none; }

/* ---------- cards ---------- */
.dp-card { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 2px 0 rgba(21,18,26,.06), 0 14px 40px -18px rgba(21,18,26,.25); transition: transform .3s cubic-bezier(.3,1.4,.5,1), box-shadow .3s; height: 100%; }
.dp-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 2px 0 rgba(21,18,26,.06), 0 24px 50px -18px rgba(214,51,108,.35); }
.dp-card .wp-block-image { margin: 0 !important; }
.dp-card .wp-block-image img { aspect-ratio: 3/2; object-fit: cover; width: 100%; display: block; }
.dp-card-body { padding: 22px 26px 28px !important; }
.dp-date { font-size: .9rem !important; color: var(--wp--preset--color--ink-soft); font-weight: 700; margin: 0 !important; }
.dp-more a, a.dp-more { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; color: var(--wp--preset--color--ink); text-decoration: none; }
.dp-more a:hover, a.dp-more:hover { color: var(--wp--preset--color--pink); }


/* ---------- footer ---------- */
.dp-footer { border-radius: 40px 40px 0 0; }
.dp-footer a { color: inherit; text-decoration: none; }
.dp-footer a:hover { color: var(--wp--preset--color--pink); }
.dp-footer-big { font-size: clamp(2.6rem, 6vw, 5.5rem) !important; line-height: 1 !important; letter-spacing: -.03em; }
.dp-footer .dp-logo span { font-size: 1.4rem; }
.dp-small { font-size: .92rem !important; color: var(--wp--preset--color--ink-soft); }

/* ---------- reading pages (privacy, terms, posts) ---------- */
.dp-page-title { font-size: clamp(2.4rem, 5.5vw, 4.6rem) !important; letter-spacing: -.03em; line-height: 1.02 !important; }
.dp-prose { font-size: 1.12rem; }
.dp-prose h2 { font-size: 1.8rem; margin-top: 2.2em; }
.dp-prose h3 { font-size: 1.35rem; margin-top: 1.8em; }


/* ---------- motion ---------- */
@keyframes dp-word { from { opacity: 0; transform: translateY(.5em) rotate(7deg) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes dp-beat { 0%,100% { transform: scale(1) rotate(-6deg); } 15% { transform: scale(1.18) rotate(4deg); } 30% { transform: scale(.96) rotate(-2deg); } 45% { transform: scale(1.1) rotate(2deg); } 60% { transform: scale(1) rotate(-6deg); } }
@keyframes dp-wiggle { 0%,100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(12deg) scale(1.1); } }
@keyframes dp-twinkle-big { 0%,100% { transform: rotate(0) scale(.85); } 50% { transform: rotate(45deg) scale(1.15); } }
@keyframes dp-burst { 0%,100% { transform: scale(.8) rotate(0); opacity: .75; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
@keyframes dp-rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes dp-crew { from { opacity: 0; transform: translate(-50%, 40%); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes dp-drift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.12) translateX(1.5%); } }
@keyframes dp-wave { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-8px); } }
@keyframes dp-twinkle { 0%,100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .dp-js .dp-reveal { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .dp-hl-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .dp-values { grid-template-columns: 1fr 1fr; row-gap: 90px; }
  .dp-split { grid-template-columns: 1fr; }
}
@media (max-width: 781px) {
  .dp-keyart-card { aspect-ratio: 4 / 3.4; }
  .dp-keyart-crew { width: 150%; }
  .dp-showcase-char { height: 58%; }
  .dp-footer { border-radius: 28px; }
  .dp-value img { height: 170px; margin-top: -54px; }
  .dp-play-badge img { height: 56px; }
  .dp-pill { height: 56px; font-size: 1.08rem; }
}
@media (max-width: 480px) { .dp-values { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

/* ---------- welcome pop-up (grown-up / kid) ---------- */
html.dp-gate-open, html.dp-gate-open body { overflow: hidden; }
.dp-gate[hidden] { display: none; }
.dp-gate { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgba(21, 18, 26, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: dp-fade .3s ease both; }
.dp-gate-out { animation: dp-fade-out .3s ease both; }
.dp-gate-card { background: #F3F1FF; border-radius: 40px; padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 52px) clamp(28px, 4vw, 48px); width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); animation: dp-pop .45s cubic-bezier(.3,1.5,.5,1) both; }
.dp-gate-title { font-family: var(--wp--preset--font-family--fredoka); font-weight: 700; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 auto clamp(22px, 4vw, 40px); max-width: 12ch; color: var(--wp--preset--color--ink); }
.dp-gate-choices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.5vw, 26px); }
.dp-gate-choice { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) clamp(18px, 2.4vw, 26px); border-radius: 34px; transition: transform .3s cubic-bezier(.3,1.5,.5,1), box-shadow .3s; }
.dp-gate-adult { background: #FFE45C; }
.dp-gate-kid { background: #FF8FC8; }
.dp-gate-choice img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 28px; display: block; transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.dp-gate-choice:hover, .dp-gate-choice:focus-visible { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 30px -14px rgba(21,18,26,.4); }
.dp-gate-kid:hover, .dp-gate-kid:focus-visible { transform: translateY(-6px) rotate(1deg); }
.dp-gate-choice:hover img { transform: scale(1.03); }
.dp-gate-choice:focus-visible { outline: 4px solid var(--wp--preset--color--ink); outline-offset: 4px; }
.dp-gate-btn { display: inline-flex; align-items: center; gap: .35em; margin-top: -24px; position: relative; background: var(--wp--preset--color--ink); color: #fff; font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: clamp(1rem, 1.8vw, 1.3rem); padding: .55em 1.1em .55em 1.3em; border-radius: 999px; white-space: nowrap; }
.dp-gate-btn svg { width: 1.05em; height: 1.05em; }
@keyframes dp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dp-fade-out { to { opacity: 0; visibility: hidden; } }
@keyframes dp-pop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .dp-gate-card { border-radius: 30px; } .dp-gate-btn { margin-top: -20px; font-size: .95rem; } .dp-gate-choice { border-radius: 26px; } .dp-gate-choice img { border-radius: 20px; } }

