/* 404 game: Charlie and the mural pieces. */
.pg-game-wrap { padding: 72px var(--pg-gutter, 24px) 88px; background: var(--pg-cream, #F5F3EE); }
.pg-game-wrap__inner { max-width: 960px; margin: 0 auto; }
.pg-game-wrap__head { max-width: 620px; margin: 0 0 28px; }
.pg-game-wrap__head .pg-eyebrow { margin: 0 0 10px; }
html body .pg-game-wrap__head h2 { margin: 0 0 12px; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: clamp(34px, 4vw, 48px); font-weight: 500; line-height: 1.05; }
.pg-game-wrap__head p:last-child { margin: 0; color: var(--pg-muted, #4A4A44); }
.pg-game {
	position: relative; overflow: hidden;
	background: var(--pg-white, #fff); border: 1px solid var(--pg-line, rgba(15, 21, 18, .13));
	cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.pg-game:focus-visible { outline: 2px solid var(--pg-black, #0F1512); outline-offset: 3px; }
.pg-game canvas { display: block; width: 100%; height: 250px; }
.pg-game-wrap__help { margin: 12px 0 0; font-size: 13px; color: var(--pg-muted, #4A4A44); }
@media (max-width: 560px) {
	.pg-game-wrap { padding: 56px var(--pg-gutter, 20px) 64px; }
	.pg-game canvas { height: 230px; }
}

/* [pilgrim_charlie] inside a page: no band of its own, just the panel. */
.pg-game-wrap--inline { padding: 0; margin: 48px 0; background: none; }
.pg-game-wrap--inline .pg-game-wrap__inner { max-width: none; }

/* The game spans the full width of the block it's in, even inside a text or HTML block
 * that's otherwise kept to a reading width (teacher Profile sections, article blocks). */
.pg-game-wrap--inline { width: 100%; }
:is(.pga-text, .pga-embed, .pg-prose, .entry-content):has(> .pg-game-wrap--inline),
:is(.pga-text, .pga-embed, .pg-prose, .entry-content):has(> p > .pg-game-wrap--inline),
.pg-teacher__sections > :has(.pg-game-wrap--inline) { max-width: none !important; width: 100%; }
