/* Furgoblin Kids' Corner */
.pkc {
	--pkc-ink: #1b1715;
	--pkc-cream: #fffae9;
	--pkc-lime: #e9fe80;
	--pkc-pink: #ff007f;
	--pkc-pink-dark: #c4005f;
	--pkc-sky: #a8e6ff;
	--pkc-sun: #ffd84d;
	--pkc-radius: 22px;
	--pkc-shadow: 5px 5px 0 var(--pkc-ink);
	color: var(--pkc-ink);
	font-size: 1.05rem;
	line-height: 1.5;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 0 48px;
}
.pkc *, .pkc *::before, .pkc *::after { box-sizing: border-box; }
.pkc h1, .pkc h2, .pkc h3 { color: var(--pkc-ink); line-height: 1.15; }
.pkc .screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.pkc a:focus-visible, .pkc button:focus-visible, .pkc-dialog button:focus-visible {
	outline: 4px solid var(--pkc-ink); outline-offset: 3px; box-shadow: 0 0 0 7px #fff;
}

/* Blocksy draws its own page title; this page has its own hero. */
.pkc-page .hero-section, .pkc-page .entry-header { display: none; }

/* Hero */
.pkc-hero {
	position: relative;
	text-align: center;
	background: var(--pkc-lime);
	border: 3px solid var(--pkc-ink);
	border-radius: 32px;
	box-shadow: 8px 8px 0 var(--pkc-ink);
	padding: 40px 24px 36px;
	margin: 24px 0 36px;
	overflow: hidden;
	background-image: radial-gradient(circle at 12% 20%, rgba(255, 0, 127, .14) 0 46px, transparent 47px),
		radial-gradient(circle at 90% 80%, rgba(255, 255, 255, .6) 0 70px, transparent 71px),
		radial-gradient(circle at 80% 14%, rgba(255, 0, 127, .12) 0 20px, transparent 21px);
}
.pkc-hero__cats { display: block; width: 240px; max-width: 70%; height: auto; margin: 0 auto 8px; }
.pkc-hero__title { font-size: clamp(2rem, 6vw, 3.6rem); margin: 0 0 10px; letter-spacing: -.02em; }
.pkc-hero__tag {
	display: inline-block; margin: 0 0 12px; font-size: clamp(1.1rem, 2.6vw, 1.45rem); font-weight: 700;
	background: var(--pkc-pink-dark); color: #fff; padding: 6px 18px; border-radius: 999px; transform: rotate(-1.5deg);
}
.pkc-hero__meet { margin: 0; font-weight: 600; }

/* Navigation cards */
.pkc-nav ul { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.pkc-nav__card {
	display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
	padding: 22px 12px 20px; min-height: 100%;
	border: 3px solid var(--pkc-ink); border-radius: var(--pkc-radius); box-shadow: var(--pkc-shadow);
	color: var(--pkc-ink) !important; text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
.pkc-nav__card:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--pkc-ink); }
.pkc-nav__card svg { width: 64px; height: 58px; margin-bottom: 6px; }
.pkc-nav__title { font-size: 1.25rem; font-weight: 800; }
.pkc-nav__sub { font-size: .98rem; font-weight: 600; }
.pkc-tone--pink { background: #ffd1e8; }
.pkc-tone--lime { background: var(--pkc-lime); }
.pkc-tone--sky { background: var(--pkc-sky); }
.pkc-tone--sun { background: var(--pkc-sun); }

/* Sections */
.pkc-section { margin: 0 0 52px; scroll-margin-top: 90px; }
.pkc-section > h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 6px; display: inline-block; position: relative; }
.pkc-section > h2::after {
	content: ""; display: block; height: 8px; margin-top: 2px; border-radius: 8px; background: var(--pkc-pink); width: 60%;
}
.pkc-lead { margin: 4px 0 20px; font-weight: 500; }
.pkc-empty {
	background: #fff; border: 3px dashed #b9b0a4; border-radius: var(--pkc-radius); padding: 22px; text-align: center;
	font-weight: 600; margin: 8px 0;
}
.pkc-admin-hint { text-align: center; font-size: .9rem; }
.pkc-season-title { font-size: 1.3rem; margin: 18px 0 12px; }

/* Cards */
.pkc-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pkc-card {
	background: #fff; border: 3px solid var(--pkc-ink); border-radius: var(--pkc-radius); box-shadow: var(--pkc-shadow);
	padding: 12px 12px 16px; display: flex; flex-direction: column;
}
.pkc-card__img {
	position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #fff;
	border: 2px solid #eee6da; display: flex; align-items: center; justify-content: center;
}
.pkc-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pkc-card__img svg { width: 55%; height: auto; }
.pkc-badge {
	position: absolute; top: 10px; left: 10px; background: var(--pkc-lime); border: 2px solid var(--pkc-ink);
	border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .85rem; transform: rotate(-6deg);
}
.pkc-card__title { font-size: 1.15rem; margin: 12px 4px 10px; }
.pkc-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pkc-card__actions .pkc-btn { flex: 1 1 auto; }

/* Buttons */
.pkc-btn, .pkc-dialog .pkc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 48px; padding: 10px 18px; font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
	border: 3px solid var(--pkc-ink); border-radius: 999px; cursor: pointer; text-decoration: none !important;
	box-shadow: 3px 3px 0 var(--pkc-ink); transition: transform .12s ease, box-shadow .12s ease;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pkc-btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--pkc-ink); }
.pkc-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pkc-ink); }
.pkc-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.pkc-btn--pink { background: var(--pkc-pink-dark); color: #fff !important; }
.pkc-btn--lime { background: var(--pkc-lime); color: var(--pkc-ink) !important; }
.pkc-btn--plain { background: #fff; color: var(--pkc-ink) !important; }
.pkc-btn--ink { background: var(--pkc-ink); color: #fff !important; box-shadow: 3px 3px 0 var(--pkc-pink); }
.pkc-btn--sm { min-height: 40px; padding: 6px 14px; font-size: .95rem; }
.pkc-btn--active { background: var(--pkc-pink-dark); color: #fff !important; }

/* Game cards */
.pkc-games { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pkc-game-card {
	border: 3px solid var(--pkc-ink); border-radius: var(--pkc-radius); box-shadow: var(--pkc-shadow);
	padding: 22px; display: flex; flex-direction: column; align-items: flex-start;
}
.pkc-game-card h3 { margin: 10px 0 6px; font-size: 1.4rem; }
.pkc-game-card p { margin: 0 0 16px; flex: 1; }
.pkc-game-card__art { width: 160px; height: 96px; image-rendering: pixelated; background: rgba(255, 255, 255, .7); border: 2px solid var(--pkc-ink); border-radius: 14px; }

/* Dialogs */
.pkc-dialog {
	--pkc-ink: #1b1715; --pkc-lime: #e9fe80; --pkc-pink: #ff007f; --pkc-pink-dark: #c4005f;
	color: var(--pkc-ink); background: var(--pkc-cream, #fffae9); border: 3px solid var(--pkc-ink); border-radius: 26px;
	padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
	box-shadow: 8px 8px 0 var(--pkc-ink);
}
.pkc-dialog::backdrop { background: rgba(27, 23, 21, .55); }
.pkc-dialog__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px;
	background: var(--pkc-lime); border-bottom: 3px solid var(--pkc-ink); position: sticky; top: 0; z-index: 2;
}
.pkc-dialog__head h2 { margin: 0; font-size: clamp(1.15rem, 3.5vw, 1.5rem); color: var(--pkc-ink); }
.pkc-dialog__close {
	width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--pkc-ink); background: #fff; color: var(--pkc-ink);
	font-size: 1.8rem; line-height: 1; cursor: pointer; flex: none; padding: 0;
}
.pkc-dialog__body { padding: 16px; }
.pkc-dialog .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Game UI shared */
.pkc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pkc-bar__stat { font-weight: 800; background: #fff; border: 2px solid var(--pkc-ink); border-radius: 999px; padding: 6px 14px; }
.pkc-bar__spacer { flex: 1; }
.pkc-levels { display: flex; gap: 6px; flex-wrap: wrap; }

/* Memory */
.pkc-mem { display: grid; gap: 10px; margin: 0 auto; max-width: 620px; }
.pkc-mem__card {
	position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; perspective: 600px;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation; border-radius: 14px;
}
.pkc-mem__inner {
	position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .35s ease; border-radius: 14px;
}
.pkc-mem__card.is-up .pkc-mem__inner { transform: rotateY(180deg); }
.pkc-mem__face {
	position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px;
	border: 3px solid var(--pkc-ink); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pkc-mem__back {
	background: var(--pkc-pink-dark);
	background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .25) 0 22%, transparent 23%);
	color: #fff; font-weight: 900; font-size: 1.6rem;
}
.pkc-mem__front { background: #fff; transform: rotateY(180deg); }
.pkc-mem__front img { width: 82%; height: 82%; object-fit: contain; image-rendering: pixelated; }
.pkc-mem__card.is-matched .pkc-mem__front { background: var(--pkc-lime); }
.pkc-mem__card.is-matched { cursor: default; }

/* Catch */
.pkc-catch { position: relative; max-width: 480px; margin: 0 auto; }
.pkc-catch canvas {
	display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; border: 3px solid var(--pkc-ink); border-radius: 18px;
	background: #bfeaff; touch-action: none; image-rendering: pixelated; cursor: pointer;
}
.pkc-catch__pads { display: flex; gap: 12px; margin-top: 12px; }
.pkc-catch__pads .pkc-btn { flex: 1; min-height: 64px; font-size: 1.6rem; }
.pkc-catch__overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	text-align: center; padding: 20px; background: rgba(255, 250, 233, .9); border-radius: 18px; border: 3px solid var(--pkc-ink);
}
.pkc-catch__overlay[hidden] { display: none; }
.pkc-catch__overlay h3 { margin: 0; font-size: 1.7rem; }
.pkc-catch__overlay p { margin: 0; font-weight: 600; }
.pkc-help { font-size: .95rem; margin: 10px 0 0; text-align: center; }

/* Celebration */
.pkc-win { text-align: center; padding: 12px; background: var(--pkc-lime); border: 3px solid var(--pkc-ink); border-radius: 18px; margin-top: 14px; }
.pkc-win h3 { margin: 0 0 4px; font-size: 1.6rem; }
.pkc-win p { margin: 0 0 10px; font-weight: 600; }
.pkc-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; width: 100vw; height: 100vh; }

/* Colour Online */
.pkc-colour {
	background: #fff; border: 3px solid var(--pkc-ink); border-radius: var(--pkc-radius); box-shadow: var(--pkc-shadow); padding: 16px;
}
.pkc-colour__pick { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 12px; margin-bottom: 8px; scroll-snap-type: x proximity; }
.pkc-colour__thumb {
	flex: none; width: 84px; height: 100px; border: 3px solid #d8d0c4; border-radius: 12px; background: #fff; padding: 4px;
	cursor: pointer; scroll-snap-align: start;
}
.pkc-colour__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pkc-colour__thumb[aria-pressed="true"] { border-color: var(--pkc-pink-dark); box-shadow: 0 0 0 3px var(--pkc-lime); }
.pkc-colour__main { display: grid; grid-template-columns: 1fr 230px; gap: 18px; align-items: start; }
.pkc-colour__stage { position: relative; background: #fff; border: 2px solid #e5ddd0; border-radius: 14px; overflow: hidden; display: flex; justify-content: center; }
.pkc-colour__stage canvas { display: block; max-width: 100%; height: auto; max-height: 78vh; touch-action: manipulation; cursor: crosshair; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pkc-colour__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .8); font-weight: 800; }
.pkc-colour__loading[hidden] { display: none; }
.pkc-colour__tools h3 { font-size: 1.05rem; margin: 0 0 8px; }
.pkc-toolrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.pkc-tool {
	display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 60px; font: inherit; font-weight: 800; font-size: .9rem;
	background: #fff; color: var(--pkc-ink); border: 3px solid var(--pkc-ink); border-radius: 14px; cursor: pointer; touch-action: manipulation;
}
.pkc-tool svg { width: 26px; height: 26px; }
.pkc-tool[aria-pressed="true"] { background: var(--pkc-pink-dark); color: #fff; box-shadow: 3px 3px 0 var(--pkc-ink); }
.pkc-sizes { display: flex; gap: 8px; margin-bottom: 14px; }
.pkc-sizes[hidden] { display: none; }
.pkc-size {
	flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; background: #fff;
	border: 3px solid var(--pkc-ink); border-radius: 12px; cursor: pointer; padding: 0; touch-action: manipulation;
}
.pkc-size span { display: block; border-radius: 50%; background: var(--pkc-ink); }
.pkc-size[aria-pressed="true"] { background: var(--pkc-lime); box-shadow: 3px 3px 0 var(--pkc-ink); }
.pkc-colour__tools h3 + .pkc-toolrow { margin-top: 0; }
.pkc-palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.pkc-swatch {
	aspect-ratio: 1; min-width: 44px; min-height: 44px; border-radius: 50%; border: 3px solid var(--pkc-ink); cursor: pointer; padding: 0;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pkc-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--pkc-ink); transform: scale(1.06); }
.pkc-colour__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pkc-colour__actions .pkc-btn { padding-left: 10px; padding-right: 10px; }
.pkc-colour__current { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 10px; }
.pkc-colour__current span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--pkc-ink); display: inline-block; }

/* Grown-ups FAQ */
.pkc-faq { display: grid; gap: 12px; }
.pkc-faq__item { background: #fff; border: 3px solid var(--pkc-ink); border-radius: 18px; padding: 0 18px; }
.pkc-faq__item summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; }
.pkc-faq__item summary::-webkit-details-marker { display: none; }
.pkc-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-weight: 900; font-size: 1.6rem; color: var(--pkc-pink-dark); }
.pkc-faq__item[open] summary::after { content: "\2013"; }
.pkc-faq__item summary:focus-visible { outline: 4px solid var(--pkc-ink); outline-offset: 2px; border-radius: 8px; }
.pkc-faq__item h3 { display: inline; font-size: 1.1rem; margin: 0; }
.pkc-faq__item p { margin: 0 0 16px; }
.pkc-more { margin-top: 16px; font-weight: 600; }
.pkc-more a { color: var(--pkc-pink-dark); font-weight: 800; }

/* Print sheet (hidden on screen) */
.pkc-print-sheet { display: none; }

/* Responsive */
@media (max-width: 960px) {
	.pkc-nav ul { grid-template-columns: repeat(2, 1fr); }
	.pkc-colour__main { grid-template-columns: 1fr; }
	.pkc-palette { grid-template-columns: repeat(8, 1fr); }
	.pkc-colour__actions { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
	.pkc { font-size: 1rem; }
	.pkc-hero { padding: 28px 16px; border-radius: 24px; box-shadow: 5px 5px 0 var(--pkc-ink); margin-top: 12px; }
	.pkc-hero__cats { width: 180px; }
	.pkc-nav ul { gap: 12px; }
	.pkc-nav__card { padding: 16px 8px; }
	.pkc-nav__card svg { width: 48px; height: 44px; }
	.pkc-nav__title { font-size: 1.05rem; }
	.pkc-nav__sub { font-size: .88rem; }
	.pkc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.pkc-card { padding: 8px 8px 12px; box-shadow: 4px 4px 0 var(--pkc-ink); }
	.pkc-card__title { font-size: 1rem; margin: 8px 2px; }
	.pkc-card__actions .pkc-btn { flex-basis: 100%; min-height: 44px; padding: 8px 10px; font-size: .92rem; }
	.pkc-palette { grid-template-columns: repeat(6, 1fr); }
	.pkc-colour__actions { grid-template-columns: 1fr 1fr; }
	.pkc-colour { padding: 10px; }
	.pkc-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; box-shadow: none; }
	.pkc-dialog__body { padding: 12px; }
	.pkc-mem { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.pkc *, .pkc-dialog * { transition: none !important; animation: none !important; }
}

/* Printing: only the chosen picture, on A4.
   Zero page margin stops the browser adding its date/URL header and footer;
   the sheet's own padding provides the white margin. */
@media print {
	@page { size: A4 portrait; margin: 0; }
	html:has(body.pkc-printing), body.pkc-printing {
		margin: 0 !important; padding: 0 !important; border: 0 !important; outline: 0 !important;
		box-shadow: none !important; background: #fff !important;
	}
	html:has(body.pkc-printing)::before, html:has(body.pkc-printing)::after,
	body.pkc-printing::before, body.pkc-printing::after { display: none !important; content: none !important; }
	body.pkc-printing > *:not(.pkc-print-sheet) { display: none !important; }
	body.pkc-printing .pkc-print-sheet {
		display: flex !important; align-items: center; justify-content: center; box-sizing: border-box;
		width: 210mm; height: 296mm; padding: 12mm; margin: 0; overflow: hidden; background: #fff;
		page-break-inside: avoid; break-inside: avoid;
	}
	body.pkc-printing .pkc-print-sheet img { max-width: 100%; max-height: 100%; object-fit: contain; }
}

/* ---- Tweaks Nov 2026: Ad Free Zone pill, spacing, hide extras ---- */
.pkc-adfree {
  display: inline-flex;
  align-items: center;
  margin: 0 auto 14px;
  padding: 6px 16px;
  background: #FFFDE4;
  color: #1a1715;
  border: 3px solid #1a1715;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #1a1715;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.pkc-nav { margin-bottom: 56px !important; }
.pkc-section h2 { margin-top: 0; }
@media (max-width: 600px) { .pkc-nav { margin-bottom: 40px !important; } }

/* Hide the Wool Hunt and walking pixel cats on the Kids' Corner page */
body.pkc-page .wh-pill,
body.pkc-page [class^="wh-"],
body.pkc-page [class*=" wh-"],
body.pkc-page .pcat-lanes,
body.pkc-page .pcat { display: none !important; }

/* Pull the hero up closer to the site header */
body.pkc-page .ct-container-full { padding-top: 24px !important; }
body.pkc-page .pkc-hero { margin-top: 0 !important; }
