/* Cookie Clamp Games website. Same chunky cartoon look as the games themselves. */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("nunito-latin-800-normal.woff2") format("woff2"); }
:root {
  --ink: #1d1b2e; --paper: #fffaf0; --sun: #ffd43b; --pink: #ff5c8a; --green: #17c26b; --blue: #2f9bff;
  --purple: #7b4dff; --orange: #ff9f1c; --red: #ef4444; --teal: #12b5a6;
  --display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; font: 700 1.05rem/1.55 var(--body); color: var(--ink); background: var(--purple); background-image: radial-gradient(rgba(255,255,255,0.14) 2px, transparent 2.5px); background-size: 28px 28px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0 0; }
.brand { display: flex; align-items: center; gap: 0.5rem; font: 700 1.3rem var(--display); color: #fff; text-decoration: none; text-shadow: 2px 2px 0 var(--ink); }
.brand span { color: var(--sun); }
.btn { display: inline-block; font: 700 1.1rem var(--display); text-decoration: none; background: var(--sun); color: var(--ink); border: 3px solid var(--ink); border-radius: 0.5rem; padding: 0.6em 1.4em; box-shadow: 5px 5px 0 var(--ink); transition: transform 0.1s, box-shadow 0.1s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.small { font-size: clamp(1rem, 1.8vw, 1.35rem); padding: 0.5em 1.2em; }
.btn.plain { background: var(--paper); }

.hero { display: grid; gap: 2rem; align-items: center; padding: 2rem 0 3.5rem; color: #fff; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: -0.02em; text-shadow: 3px 3px 0 var(--ink); }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero p { font-size: 1.2rem; margin: 1rem 0 1.5rem; max-width: 32rem; text-shadow: 1px 1px 0 var(--ink); }
.hero .row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.1fr 1fr; } }

/* A drawn telly with phones gathered round it */
.scene { position: relative; aspect-ratio: 4 / 3; max-width: 30rem; width: 100%; margin-inline: auto; }
.telly { position: absolute; inset: 2% 6% 36% 6%; background: var(--pink); border: 0.5rem solid var(--ink); border-radius: 0.6rem; box-shadow: 10px 10px 0 var(--ink); display: grid; place-content: center; justify-items: center; gap: 0.3rem; text-align: center; color: var(--ink); }
.telly::after { content: ''; position: absolute; left: 35%; right: 35%; bottom: -1.6rem; height: 1.1rem; background: var(--ink); border-radius: 0 0 0.6rem 0.6rem; }
.telly b { font: 700 clamp(1.3rem, 4.5vw, 2.1rem) var(--display); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.telly .code { font: 700 clamp(1.1rem, 4vw, 1.8rem) var(--display); letter-spacing: 0.2em; background: var(--paper); border: 3px solid var(--ink); border-radius: 0.3rem; padding: 0.1em 0.6em; }
.telly small { font-size: 0.85rem; }
.phone { position: absolute; bottom: 0; width: 15%; aspect-ratio: 9 / 17; background: var(--paper); border: 4px solid var(--ink); border-radius: 0.6rem; box-shadow: 5px 5px 0 var(--ink); display: grid; place-items: center; font-size: clamp(1.4rem, 5vw, 2.2rem); animation: bob 1.6s ease-in-out infinite alternate; }
.phone:nth-of-type(2) { left: 8%; transform: rotate(-8deg); background: var(--sun); }
.phone:nth-of-type(3) { left: 30%; animation-delay: -0.5s; background: #c6f3ec; }
.phone:nth-of-type(4) { left: 53%; animation-delay: -1s; background: #ffd0dd; }
.phone:nth-of-type(5) { left: 75%; transform: rotate(8deg); animation-delay: -0.3s; background: #cfe6ff; }
@keyframes bob { to { translate: 0 -0.6rem; } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } html { scroll-behavior: auto; } }

section.band { padding: 3.5rem 0; }
section.band.paper { background: var(--paper); border-block: 4px solid var(--ink); }
section.band h2 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
section.band:not(.paper) h2 { color: #fff; text-shadow: 3px 3px 0 var(--ink); }
section.band > .wrap > p.lead { max-width: 38rem; margin-bottom: 2rem; }
section.band:not(.paper) p.lead { color: #fff; text-shadow: 1px 1px 0 var(--ink); }

.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: #fff; border: 3px solid var(--ink); border-radius: 0.5rem; box-shadow: 6px 6px 0 var(--ink); padding: 1.3rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 0.7rem; font: 700 1.3rem var(--display); background: var(--sun); border: 3px solid var(--ink); border-radius: 50%; }
.steps h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }

.games { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.game { background: var(--c, #fff); border: 3px solid var(--ink); border-radius: 0.5rem; box-shadow: 6px 6px 0 var(--ink); padding: 1.1rem 1.2rem; }
.game .icon { font-size: 2.2rem; line-height: 1; }
.game h3 { font-size: 1.35rem; margin: 0.4rem 0 0.2rem; }
.game small { display: inline-block; margin-top: 0.6rem; font: 600 0.8rem var(--display); background: var(--ink); color: #fff; border-radius: 0.25rem; padding: 0.15em 0.7em; }

.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.facts li { background: #fff; border: 3px solid var(--ink); border-radius: 0.5rem; padding: 1rem 1.1rem; }
.facts b { display: block; font: 700 1.15rem var(--display); }

.buy { background: var(--sun); border: 4px solid var(--ink); border-radius: 0.6rem; box-shadow: 10px 10px 0 var(--ink); padding: 2rem; display: grid; gap: 1rem; justify-items: start; }
.buy h2 { color: var(--ink) !important; text-shadow: none !important; margin: 0; }
.tag { font: 600 0.85rem var(--display); background: var(--ink); color: #fff; border-radius: 0.25rem; padding: 0.2em 0.8em; transform: rotate(-3deg); }

footer { color: #fff; padding: 2.5rem 0 3rem; font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; }
.doc { background: var(--paper); border: 3px solid var(--ink); border-radius: 0.5rem; box-shadow: 6px 6px 0 var(--ink); padding: 1.5rem; margin-block: 1rem 3rem; }
.doc h1 { font-size: 2rem; margin-bottom: 1rem; }
.doc h2 { font-size: 1.3rem; margin: 1.4rem 0 0.4rem; }
.doc p + p { margin-top: 0.7rem; }

.brand img { width: clamp(7.5rem, 14vw, 11rem); height: auto; display: block; filter: drop-shadow(4px 4px 0 rgba(29, 27, 46, 0.35)); }
.game { transition: transform 0.15s; }
.game:nth-child(odd) { transform: rotate(-0.8deg); }
.game:nth-child(even) { transform: rotate(0.6deg); }
.game:hover { transform: rotate(0) scale(1.03); }
.game .kicker { display: block; font: 600 0.8rem var(--display); text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
/* A strip of game names that scrolls across the page */
.ticker { background: var(--pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); border-block: 4px solid var(--ink); overflow: hidden; white-space: nowrap; font: 700 1.4rem var(--display); letter-spacing: 0.03em; padding: 0.5rem 0; transform: rotate(-1deg); margin-inline: -1rem; }
.ticker span { display: inline-block; padding-right: 2rem; animation: slide 30s linear infinite; }
@keyframes slide { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; } .game { transform: none !important; } }
.hero .sticker { display: inline-block; font: 700 clamp(1rem, 2vw, 1.5rem) var(--display); background: var(--teal); color: #fff; border: 3px solid var(--ink); border-radius: 0.3rem; padding: 0.15em 0.7em; transform: rotate(-3deg); margin-bottom: 1rem; text-shadow: none; box-shadow: 3px 3px 0 var(--ink); }
