/* Pink Purr Studios — kawaii gingham + lace theme, matched to the header art */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --pink-50: #fff6f9;
  --pink-100: #ffe9f1;
  --pink-200: #ffd3e3;
  --pink-300: #ffb3cd;
  --pink-400: #ff8fb7;
  --pink-500: #f26b9d;
  --pink-600: #e0538a;
  --pink-700: #c23f74;
  --berry: #e8456b;
  --lilac: #a678c9;
  --lilac-dark: #8a5cae;
  --cream: #fffaf4;
  --ink: #7a3a5c;
  --ink-soft: #9a5f7c;
  --gingham-a: #fbd0df;
  --gingham-b: #f8bfd3;
  --radius: 26px;
  --shadow: 0 6px 0 rgba(224, 83, 138, 0.14), 0 14px 30px rgba(194, 63, 116, 0.14);
  --font-display: "Fredoka", "Baloo 2", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;

  /* icons as data URIs (CSP allows data: images) */
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23f26b9d'%3E%3Cellipse cx='16' cy='21' rx='7.5' ry='6.2'/%3E%3Cellipse cx='7.2' cy='13.5' rx='3.2' ry='3.9'/%3E%3Cellipse cx='12.4' cy='7.8' rx='3.2' ry='3.9'/%3E%3Cellipse cx='19.6' cy='7.8' rx='3.2' ry='3.9'/%3E%3Cellipse cx='24.8' cy='13.5' rx='3.2' ry='3.9'/%3E%3C/g%3E%3C/svg%3E");
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23f26b9d' d='M16 28C7 21.5 2.5 16.6 2.5 10.9 2.5 6.9 5.6 4 9.4 4c2.7 0 5 1.5 6.6 3.8C17.6 5.5 19.9 4 22.6 4c3.8 0 6.9 2.9 6.9 6.9 0 5.7-4.5 10.6-13.5 17.1z'/%3E%3C/svg%3E");
  --heart-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3.5' d='M16 26C8 20.2 4.2 16 4.2 11.2c0-3.3 2.6-5.6 5.6-5.6 2.4 0 4.4 1.4 6.2 3.9 1.8-2.5 3.8-3.9 6.2-3.9 3 0 5.6 2.3 5.6 5.6 0 4.8-3.8 9-11.8 14.8z'/%3E%3C/svg%3E");
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M16 1c1.2 7.6 7.4 13.8 15 15-7.6 1.2-13.8 7.4-15 15-1.2-7.6-7.4-13.8-15-15C8.6 14.8 14.8 8.6 16 1z'/%3E%3C/svg%3E");
  --lace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='22' viewBox='0 0 40 22'%3E%3Cpath fill='%23ffffff' d='M0 0h40v8c-3 0-3.5 7-10 7S23 8 20 8s-3.5 7-10 7S3 8 0 8z'/%3E%3Cg fill='%23ffd3e3'%3E%3Ccircle cx='10' cy='9' r='1.6'/%3E%3Ccircle cx='30' cy='9' r='1.6'/%3E%3Ccircle cx='20' cy='4' r='1.3'/%3E%3Ccircle cx='0' cy='4' r='1.3'/%3E%3Ccircle cx='40' cy='4' r='1.3'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='5' cy='16.5' r='2.2'/%3E%3Ccircle cx='15' cy='16.5' r='2.2'/%3E%3Ccircle cx='25' cy='16.5' r='2.2'/%3E%3Ccircle cx='35' cy='16.5' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.65;
  background-color: var(--gingham-a);
  /* pink gingham */
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 50%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.28) 50%, transparent 50%);
  background-size: 28px 28px;
}

a { color: var(--pink-700); text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--pink-300); }
a:hover { color: var(--pink-500); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar {
  position: relative;
  background: rgba(255, 233, 241, 0.92);
  padding: 14px 0 18px;
}
.topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -20px; height: 22px;
  background: var(--lace) repeat-x;
  background-size: 40px 22px;
  pointer-events: none;
  z-index: 2;
}
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--pink-600); text-decoration: none;
  background: #fff;
  border: 2px solid var(--pink-200);
  border-radius: 999px;
  padding: 6px 16px 6px 12px;
  box-shadow: 0 3px 0 var(--pink-200);
  transition: transform .12s ease, box-shadow .12s ease;
}
.nav a::before { content: ""; width: 15px; height: 15px; background: var(--heart) center / contain no-repeat; }
.nav a:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--pink-200); color: var(--pink-700); }
.nav a[aria-current="page"] { background: var(--pink-500); border-color: #fff; color: #fff; box-shadow: 0 3px 0 var(--pink-700); }
.nav a[aria-current="page"]::before { background-image: var(--heart-white); }

/* ---------- banner ---------- */
.banner { padding: 34px 0 10px; }
.banner-frame {
  position: relative;
  border-radius: 34px;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--pink-100);
}
a.banner-frame { display: block; }
.banner-frame img { width: 100%; aspect-ratio: 2000 / 750; object-fit: cover; }
.banner.small .banner-frame { max-width: 760px; margin: 0 auto; border-width: 5px; border-radius: 26px; }

/* ---------- section titles (pill with paws) ---------- */
.pill-title {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: fit-content; max-width: 100%;
  margin: 34px auto 20px;
  padding: 8px 26px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  color: var(--pink-600);
  background: var(--pink-100);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--pink-300), 0 10px 22px rgba(194, 63, 116, 0.12);
}
.pill-title::before, .pill-title::after {
  content: ""; flex: none; width: 24px; height: 24px;
  background: var(--paw) center / contain no-repeat;
}
.pill-title::after { transform: scaleX(-1) rotate(-8deg); }
.pill-title::before { transform: rotate(-8deg); }
.card .pill-title { margin-top: 0; font-size: clamp(1.3rem, 3.5vw, 1.6rem); }

/* ---------- cards (cream with dashed stitching) ---------- */
.card {
  position: relative;
  background: var(--cream);
  border: 5px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.card::before {
  content: "";
  position: absolute; inset: 7px;
  border: 2px dashed var(--pink-300);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}
.card.pink { background: #fff0f5; }

.grid { display: grid; gap: 24px; }
.grid.games { grid-template-columns: 1.75fr 1fr; }
.grid.info { grid-template-columns: 1.75fr 1fr; margin-top: 8px; }

/* ---------- game card ---------- */
.game { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
.game-art {
  border-radius: 30px; border: 5px solid #fff;
  box-shadow: 0 5px 0 var(--pink-300);
  width: 200px;
}
.game-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin: 4px 0 2px;
  color: var(--pink-500);
  -webkit-text-stroke: 1px #fff;
  text-shadow: 0 3px 0 #fff, 0 5px 0 var(--pink-200);
  letter-spacing: 0.5px;
}
.tagline { font-family: var(--font-display); font-weight: 500; color: var(--lilac-dark); font-size: 1.12rem; margin: 0 0 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  padding: 3px 14px 3px 10px; border-radius: 999px;
  background: #fff; color: var(--pink-600); border: 2px solid var(--pink-200);
}
.tag::before { content: ""; width: 13px; height: 13px; background: var(--sparkle) center / contain no-repeat; filter: drop-shadow(0 0 1px var(--pink-500)) drop-shadow(0 0 1px var(--pink-500)); }
.hearts { list-style: none; padding: 0; margin: 10px 0 18px; }
.hearts li { position: relative; padding-left: 26px; margin: 4px 0; }
.hearts li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; background: var(--heart) center / contain no-repeat; }

/* ---------- buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.buttons.center { justify-content: center; margin: 4px 0 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  text-decoration: none; color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink-400), var(--pink-500));
  border: 3px solid #fff;
  box-shadow: 0 4px 0 var(--pink-700), 0 8px 16px rgba(194, 63, 116, 0.2);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn::after { content: ""; width: 16px; height: 16px; background: var(--heart-white) center / contain no-repeat; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--pink-700), 0 10px 18px rgba(194, 63, 116, 0.22); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pink-700); }
.btn.soft { background: #fff; color: var(--pink-600); border-color: var(--pink-200); box-shadow: 0 4px 0 var(--pink-300); }
.btn.soft::after { background-image: var(--heart); }
.btn.disabled { background: #f6e6ed; color: #b68aa0; border-color: #fff; box-shadow: 0 4px 0 #e8cfda; pointer-events: none; }
.btn.disabled::after { display: none; }

/* ---------- coming soon card ---------- */
.soon { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.soon p { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); margin: 0 0 6px; }
.mystery {
  position: relative; width: 150px; height: 150px; margin: 6px auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0 52%, transparent 53%), var(--pink-200);
  display: grid; place-items: center;
}
.mystery img { width: 110px; filter: grayscale(1) brightness(1.55) sepia(1) hue-rotate(290deg) saturate(2.5) opacity(.55); }
.mystery span {
  position: absolute; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: var(--pink-500);
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 4px 0 var(--pink-200);
  bottom: 4px; right: 10px;
}

/* ---------- about card with cat crop from the banner ---------- */
.about { display: grid; grid-template-columns: 210px 1fr; gap: 22px; align-items: center; }
.cat-crop {
  width: 210px; aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 5px 0 var(--pink-300);
  background: var(--pink-100) url("/img/header.webp") no-repeat;
  background-size: auto 130%;
  background-position: 13% 35%;
}
.motto {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; color: var(--pink-600); font-size: 1.15rem;
}
.motto::before, .motto::after { content: ""; width: 16px; height: 16px; background: var(--heart) center / contain no-repeat; }

.contact-card { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.contact-card .btn { margin: 4px auto; }
.small-print { font-size: .92rem; color: var(--ink-soft); }

/* ---------- long-form pages ---------- */
.doc { padding: 10px 0 20px; }
.doc .card { padding: 34px clamp(20px, 4.5vw, 48px); }
.doc h1 {
  font-size: clamp(2rem, 6vw, 2.7rem); margin: 0 0 4px; color: var(--pink-500);
  text-shadow: 0 3px 0 #fff, 0 5px 0 var(--pink-200);
}
.doc h2 {
  font-size: 1.4rem; margin: 30px 0 8px; color: var(--pink-600);
  display: flex; align-items: center; gap: 10px;
}
.doc h2::before { content: ""; flex: none; width: 22px; height: 22px; background: var(--paw) center / contain no-repeat; }
.doc h3 { font-size: 1.15rem; margin: 18px 0 6px; color: var(--lilac-dark); }
.doc .meta { color: var(--ink-soft); margin: 0 0 18px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .96rem; background: #fff; border-radius: 14px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-bottom: 2px dashed var(--pink-100); vertical-align: top; }
.doc th { background: var(--pink-100); color: var(--pink-700); font-family: var(--font-display); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.note { background: #fff3c9; border: 2px dashed #f5d36b; border-radius: 16px; padding: 12px 16px; margin: 14px 0; }
details {
  border: 3px solid #fff; border-radius: 18px; padding: 12px 18px; margin: 12px 0;
  background: var(--pink-100); box-shadow: 0 3px 0 var(--pink-200);
}
summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--pink-700); font-size: 1.06rem; }
summary::marker { color: var(--pink-400); }
details[open] { background: #fff; }
details[open] summary { margin-bottom: 6px; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 26px 0 10px; }
.lost h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--pink-500); margin: 10px 0; text-shadow: 0 3px 0 #fff, 0 5px 0 var(--pink-200); }
.lost h1 span { color: var(--lilac); }
.lost .cat-crop { margin: 0 auto; }
.lost .buttons { justify-content: center; margin-top: 18px; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: 56px;
  padding: 34px 0 30px;
  background: rgba(255, 233, 241, 0.94);
  text-align: center;
  color: var(--ink-soft);
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -20px; height: 22px;
  background: var(--lace) repeat-x;
  background-size: 40px 22px;
  transform: scaleY(-1);
}
.icon-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.icon-btn {
  width: 50px; height: 50px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--pink-400), var(--pink-500));
  border: 3px solid #fff;
  box-shadow: 0 4px 0 var(--pink-700);
  color: #fff;
}
.icon-btn:hover { color: #fff; transform: translateY(-2px); }
.icon-btn svg { width: 24px; height: 24px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; font-family: var(--font-display); font-weight: 500; }
.footer-links a { text-decoration: none; }
.made-with { display: inline-flex; align-items: center; gap: 6px; }
.made-with i { display: inline-block; width: 14px; height: 14px; background: var(--heart) center / contain no-repeat; }

/* ---------- motion ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.game-art { animation: float 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-art { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid.games, .grid.info { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .banner { padding-top: 30px; }
  .banner-frame { border-width: 4px; border-radius: 20px; }
  .game, .about { grid-template-columns: 1fr; text-align: center; }
  .game-art { width: 170px; margin: 0 auto; }
  .cat-crop { width: 170px; margin: 0 auto; }
  .hearts { text-align: left; display: inline-block; }
  .buttons { justify-content: center; }
  .nav a { font-size: .95rem; padding: 5px 13px 5px 10px; }
  .card { padding: 22px 18px; }
}
