.ipal-landing {
	--ipal-bg: #030814;
	--ipal-panel: #071527;
	--ipal-panel-2: #0a1b31;
	--ipal-white: #ffffff;
	--ipal-copy: #ffffff;
	--ipal-muted: #ffffff;
	--ipal-green: #5ce39e;
	--ipal-green-dark: #1b8f58;
	--ipal-cyan: #46dff0;
	--ipal-purple: #7548c7;
	--ipal-purple-dark: #4d268f;
	--ipal-gold: #ffd66c;
	--ipal-border: #315a78;
	--ipal-shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
	width: 100%;
	max-width: none;
	margin: 0;
	background: var(--ipal-bg);
	color: var(--ipal-white);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.ipal-landing {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	overflow-x: clip;
}

body.ipal-canvas-page {
	margin: 0;
	background: var(--ipal-bg, #030814);
}

.ipal-landing *,
.ipal-landing *::before,
.ipal-landing *::after {
	box-sizing: border-box;
}

.ipal-landing img {
	display: block;
	max-width: 100%;
}

.ipal-landing a {
	color: inherit;
}

.ipal-landing a:focus-visible,
.ipal-landing button:focus-visible,
.ipal-landing input:focus-visible {
	outline: 3px solid var(--ipal-gold);
	outline-offset: 4px;
}

.ipal-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ipal-shell {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.ipal-skip-link {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 100000;
	transform: translateY(-150%);
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--ipal-gold);
	color: #171004 !important;
	font-weight: 900;
	text-decoration: none;
}

.ipal-skip-link:focus {
	transform: translateY(0);
}

/* Navigation */
.ipal-nav {
	position: sticky;
	top: 0;
	z-index: 2000;
	border-bottom: 1px solid #294963;
	background: rgba(3, 8, 20, 0.97);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(14px);
}

.admin-bar .ipal-nav {
	top: 32px;
}

.ipal-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1240px, calc(100% - 40px));
	min-height: 76px;
	margin-inline: auto;
}

.ipal-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: max-content;
	color: var(--ipal-white) !important;
	font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	font-weight: 900;
	text-decoration: none;
}

.ipal-brand__mark {
	display: inline-grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	background: var(--ipal-green);
	color: #05150c;
	font-size: 0.98rem;
}

.ipal-brand__logo {
	width: auto;
	max-width: min(190px, 42vw);
	height: 46px;
	object-fit: contain;
}

.ipal-brand__name {
	font-size: 1.02rem;
	letter-spacing: -0.01em;
}

.ipal-nav__links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(12px, 2vw, 28px);
}

.ipal-nav__link {
	padding: 10px 2px;
	color: #ffffff !important;
	font-size: 0.93rem;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}

.ipal-nav__link:hover {
	color: var(--ipal-green) !important;
}

.ipal-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--ipal-border);
	border-radius: 9px;
	background: var(--ipal-panel);
	color: var(--ipal-white);
	cursor: pointer;
}

.ipal-nav__toggle-lines,
.ipal-nav__toggle-lines::before,
.ipal-nav__toggle-lines::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.ipal-nav__toggle-lines {
	position: relative;
}

.ipal-nav__toggle-lines::before,
.ipal-nav__toggle-lines::after {
	position: absolute;
	left: 0;
	content: "";
}

.ipal-nav__toggle-lines::before { top: -7px; }
.ipal-nav__toggle-lines::after { top: 7px; }

/* Buttons */
.ipal-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0.78rem 1.35rem;
	border: 2px solid transparent;
	border-radius: 10px;
	font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	font-size: 1rem;
	font-weight: 900;
	letter-spacing: 0.025em;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
	transition: transform 160ms ease, filter 160ms ease;
}

.ipal-button[href]:hover,
.ipal-button[type="submit"]:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
}

.ipal-button--small {
	min-height: 42px;
	padding: 0.62rem 1rem;
	font-size: 0.86rem;
}

.ipal-button--green {
	border-color: #86f3bb;
	background: var(--ipal-green);
	color: #04150c !important;
}

.ipal-button--purple {
	border-color: #a983ee;
	background: var(--ipal-purple-dark);
	color: var(--ipal-white) !important;
}

.ipal-button--outline {
	border-color: #7997ad;
	background: #071425;
	color: var(--ipal-white) !important;
}

.ipal-button--card {
	min-width: 92px;
	min-height: 46px;
	padding: 0.68rem 1rem;
}

.ipal-button.is-disabled,
.ipal-nav__link.is-disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.ipal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 30px;
}

/* Hero */
.ipal-hero {
	position: relative;
	overflow: hidden;
	padding: var(--ipal-desktop-space, 88px) 0;
	border-bottom: 1px solid #392574;
	background:
		radial-gradient(circle at 78% 42%, rgba(70, 223, 240, 0.14), transparent 31%),
		radial-gradient(circle at 15% 18%, rgba(117, 72, 199, 0.2), transparent 30%),
		linear-gradient(rgba(70, 223, 240, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(70, 223, 240, 0.06) 1px, transparent 1px),
		var(--ipal-bg);
	background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

.ipal-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
	align-items: center;
	gap: clamp(42px, 5vw, 74px);
}

.ipal-hero__background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.ipal-hero h1,
.ipal-section-heading h2,
.ipal-final h2,
.ipal-printables h2 {
	font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	font-weight: 950;
	letter-spacing: 0.01em;
}

.ipal-hero h1 {
	display: grid;
	width: max-content;
	max-width: 100%;
	justify-items: stretch;
	margin: 0;
	font-size: clamp(3.2rem, 5.5vw, 5.4rem);
	line-height: 0.96;
	text-transform: uppercase;
}

.ipal-hero__kicker {
	display: block;
	width: 100%;
	font-size: 0.56em;
	line-height: 1;
	text-align: center;
}

.ipal-hero__title-line {
	display: block;
	white-space: nowrap;
}

.ipal-hero__strapline {
	display: grid;
	gap: 7px;
	margin: 25px 0 27px;
	color: var(--ipal-green);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(1.12rem, 2vw, 1.56rem);
	font-weight: 900;
	letter-spacing: 0.055em;
	line-height: 1.24;
	text-transform: uppercase;
}

.ipal-hero__intro {
	max-width: 620px;
	margin: 0;
	color: var(--ipal-copy);
	font-size: clamp(1rem, 1.4vw, 1.19rem);
	line-height: 1.68;
}

.ipal-hero-game {
	min-width: 0;
}

.ipal-snake-window {
	display: grid;
	grid-template-rows: auto auto minmax(250px, 1fr) auto;
	min-height: 490px;
	overflow: hidden;
	border: 2px solid #3e7192;
	border-radius: 28px;
	background: #061426;
	box-shadow: var(--ipal-shadow), 0 0 42px rgba(70, 223, 240, 0.12);
}

.ipal-snake-window__header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 14px;
	min-height: 54px;
	padding: 10px 18px;
	border-bottom: 1px solid var(--ipal-border);
	background: #081b2d;
	color: var(--ipal-green);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(0.72rem, 1.3vw, 0.94rem);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ipal-snake-window__header strong {
	justify-self: center;
	color: var(--ipal-white);
	font-size: clamp(0.86rem, 1.5vw, 1.12rem);
	text-align: center;
}

.ipal-snake-window__question {
	margin: 0;
	padding: 14px 20px;
	border-bottom: 1px solid #294963;
	background: #0b1b2e;
	color: #ffffff;
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	font-weight: 700;
	text-align: center;
}

.ipal-snake-window__question strong {
	color: var(--ipal-gold);
}

.ipal-snake-board {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: repeat(6, minmax(0, 1fr));
	gap: clamp(3px, 0.5vw, 7px);
	min-height: 0;
	padding: clamp(16px, 3vw, 28px);
	background:
		linear-gradient(rgba(70, 223, 240, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(70, 223, 240, 0.08) 1px, transparent 1px),
		#04101d;
	background-size: 8.333% 16.667%;
}

.ipal-board-answer,
.ipal-snake-cell {
	grid-column: var(--col);
	grid-row: var(--row);
	width: 100%;
	aspect-ratio: 1;
	align-self: center;
	justify-self: center;
}

.ipal-board-answer {
	display: grid;
	place-items: center;
	border: 2px solid #b18bed;
	border-radius: 9px;
	background: #5b2ca6;
	color: #ffffff;
	font-size: clamp(0.82rem, 1.5vw, 1.08rem);
	font-weight: 900;
}

.ipal-snake-cell {
	position: relative;
	border: 2px solid #55f0d3;
	border-radius: 8px;
	background: #24b9bf;
	box-shadow: 0 0 14px rgba(36, 185, 191, 0.28);
}

.ipal-snake-cell--head {
	background: #3bd8df;
}

.ipal-snake-cell--head i {
	position: absolute;
	top: 30%;
	width: 12%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #02131d;
}

.ipal-snake-cell--head i:first-child { left: 26%; }
.ipal-snake-cell--head i:last-child { right: 26%; }

.ipal-snake-window__footer {
	display: grid;
	gap: 2px;
	min-height: 70px;
	padding: 13px 20px;
	border-top: 1px solid var(--ipal-border);
	background: #0a1b2e;
	text-align: center;
}

.ipal-snake-window__footer strong {
	color: #ffffff;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
}

.ipal-snake-window__footer span {
	color: var(--ipal-copy);
	font-size: 0.92rem;
	font-weight: 700;
}

/* Shared section headings */
.ipal-section-heading {
	max-width: 1040px;
	margin: 0 auto clamp(34px, 5vw, 54px);
	text-align: center;
}

.ipal-section-heading h2 {
	margin: 0;
	color: var(--ipal-white);
	font-size: clamp(2.25rem, 4.4vw, 4.4rem);
	line-height: 1.05;
	text-wrap: balance;
}

.ipal-section-heading p {
	margin: 14px 0 0;
	color: var(--ipal-copy);
	font-size: clamp(1rem, 1.7vw, 1.24rem);
}

/* Game cards */
.ipal-games {
	padding: var(--ipal-desktop-space, 88px) 0;
	background:
		radial-gradient(circle at 50% 18%, rgba(70, 223, 240, 0.08), transparent 40%),
		linear-gradient(180deg, #071322, #030814);
}

.ipal-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	align-items: stretch;
	gap: 26px;
}

.ipal-game-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 2px solid var(--ipal-border);
	border-radius: 24px;
	background: var(--ipal-panel);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

.ipal-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	min-height: 0;
	overflow: hidden;
	border-bottom: 1px solid var(--ipal-border);
	background: #04101d;
}

.ipal-mini-title,
.ipal-media-label {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	padding: 7px 12px;
	background: #07192b;
	color: var(--ipal-green);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(0.62rem, 0.9vw, 0.76rem);
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ipal-mini-title strong,
.ipal-media-label strong {
	color: var(--ipal-white);
	text-align: right;
}

.ipal-mini-answer-row {
	display: grid;
	grid-template-columns: repeat(3, 34px);
	justify-content: space-around;
	padding: 12px 18px 6px;
}

.ipal-mini-answer-row span {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 2px solid #b18bed;
	border-radius: 8px;
	background: #5b2ca6;
	color: #fff;
	font-weight: 900;
}

.ipal-mini-snake-grid {
	display: grid;
	grid-template-columns: repeat(6, 30px);
	grid-template-rows: repeat(3, 30px);
	justify-content: center;
	gap: 4px;
	padding: 2px 10px 14px;
}

.ipal-mini-snake-grid i {
	grid-column: var(--col);
	grid-row: var(--row);
	border: 2px solid #55f0d3;
	border-radius: 7px;
	background: #24b9bf;
}

.ipal-mini-snake-grid .is-head {
	position: relative;
	background: #3bd8df;
}

.ipal-mini-snake-grid .is-head::before,
.ipal-mini-snake-grid .is-head::after {
	position: absolute;
	top: 8px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #02131d;
	content: "";
}

.ipal-mini-snake-grid .is-head::before { left: 7px; }
.ipal-mini-snake-grid .is-head::after { right: 7px; }

.ipal-image-media {
	display: flex;
	flex-direction: column;
}

.ipal-image-media img {
	width: 100%;
	height: calc(100% - 36px);
	object-fit: cover;
}

.ipal-surgery-media__images {
	display: grid;
	grid-template-columns: minmax(0, 2.25fr) minmax(88px, 0.9fr);
	height: calc(100% - 36px);
	background: #061525;
}

.ipal-surgery-media__images img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ipal-surgery-media__sentence {
	border-right: 1px solid var(--ipal-border);
}

.ipal-game-card__body {
	flex: 1 1 auto;
	padding: 22px 24px 14px;
}

.ipal-game-card__body h3 {
	margin: 0 0 13px;
	color: var(--ipal-white);
	font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	font-size: clamp(1.34rem, 2vw, 1.72rem);
	font-weight: 900;
	line-height: 1.18;
	text-wrap: balance;
}

.ipal-game-card__body p {
	margin: 0;
	color: var(--ipal-copy);
	font-size: 0.98rem;
	line-height: 1.58;
}

.ipal-game-card__body .ipal-card-question {
	margin-bottom: 8px;
	color: var(--ipal-white);
	font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	font-size: 1.45rem;
	font-weight: 900;
	line-height: 1.2;
}

.ipal-game-card__body .ipal-card-options {
	color: var(--ipal-copy);
	font-size: 1.05rem;
	font-weight: 700;
}

.ipal-game-card__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-height: 84px;
	padding: 14px 20px 20px;
}

.ipal-game-card__footer--single {
	grid-template-columns: 1fr;
	justify-items: end;
}

.ipal-skill-pill {
	display: flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border: 1px solid #466d87;
	border-radius: 999px;
	background: #0b1e31;
	color: #ffffff;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.ipal-resource-banner {
	margin: 30px 0;
}

.ipal-resource-banner a,
.ipal-resource-banner__disabled {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 86px;
	padding: 18px 26px;
	border: 2px solid #724db4;
	border-radius: 18px;
	background: var(--ipal-panel);
	color: var(--ipal-white) !important;
	font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	font-size: clamp(1.25rem, 2.6vw, 2rem);
	font-weight: 900;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
}

.ipal-resource-banner__disabled {
	display: flex;
	opacity: 0.72;
}

.ipal-resource-banner a:hover {
	border-color: #ad86f3;
	background: #14253a;
}

.ipal-showcase-card .ipal-game-card__body {
	padding-top: 23px;
}

.ipal-media-heading {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 4;
	display: flex;
	min-height: 38px;
	align-items: center;
	padding: 7px 13px;
	border-bottom: 1px solid var(--ipal-border);
	background: #07192b;
	color: var(--ipal-green);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(0.68rem, 1vw, 0.8rem);
	font-weight: 900;
	letter-spacing: 0.055em;
	line-height: 1.15;
	text-transform: uppercase;
}

.ipal-nan-media {
	display: grid;
	grid-template-columns: 34% minmax(0, 1fr);
	gap: 8px;
	align-items: center;
	padding: 44px 8px 8px;
}

.ipal-nan-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
}

.ipal-nan-speech {
	align-self: center;
	max-height: calc(100% - 2px);
	margin: 0;
	overflow: auto;
	padding: 11px 12px;
	border: 2px solid #4b7e9d;
	border-radius: 12px;
	background: #f7fbff;
	color: #10243a;
	font-size: clamp(0.63rem, 0.9vw, 0.78rem);
	font-weight: 650;
	line-height: 1.38;
}

.ipal-wildflower-media {
	background: #102b20;
}

.ipal-wildflower-media img {
	position: absolute;
	top: -16px;
	left: -4.5%;
	width: 112%;
	max-width: none;
	height: auto;
}

.ipal-exam-media {
	padding-top: 38px;
	background: #f5edcf;
}

.ipal-exam-media__screen {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.ipal-exam-media__trophy {
	position: absolute;
	right: 9px;
	bottom: 9px;
	z-index: 3;
	width: 68px;
	height: 68px;
	border: 2px solid var(--ipal-gold);
	border-radius: 14px;
	background: #201339;
	object-fit: cover;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

/* How it works */
.ipal-how {
	padding: var(--ipal-desktop-space, 88px) 0;
	border-top: 1px solid #284862;
	border-bottom: 1px solid #284862;
	background: #05101f;
}

.ipal-how__subheading {
	color: var(--ipal-green) !important;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: clamp(0.92rem, 1.8vw, 1.18rem) !important;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.ipal-benefit-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 24px;
}

.ipal-benefit-card {
	display: flex;
	height: 100%;
	min-height: 280px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px;
	border: 2px solid;
	border-radius: 22px;
	background: var(--ipal-panel);
	text-align: center;
}

.ipal-benefit-card--green { border-color: #2aa86d; }
.ipal-benefit-card--blue { border-color: #4d7fd0; }
.ipal-benefit-card--purple { border-color: #8051c7; }

.ipal-benefit-icon {
	display: grid;
	width: 80px;
	height: 80px;
	place-items: center;
	margin-bottom: 18px;
	border: 2px solid currentColor;
	border-radius: 50%;
	color: var(--ipal-green);
	font-size: 2.2rem;
	font-weight: 900;
}

.ipal-benefit-card--blue .ipal-benefit-icon { color: #8eb8ff; }
.ipal-benefit-card--purple .ipal-benefit-icon { color: #c29aff; }

.ipal-benefit-card h3 {
	margin: 0 0 12px;
	color: var(--ipal-white);
	font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	font-size: 1.65rem;
	font-weight: 900;
}

.ipal-benefit-card p {
	margin: 0;
	color: var(--ipal-copy);
	font-size: 1rem;
	line-height: 1.55;
}

/* Printables */
.ipal-printables {
	padding: var(--ipal-desktop-space, 88px) 0;
	background: #030814;
}

.ipal-printables__panel {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
	align-items: center;
	gap: 34px;
	padding: clamp(30px, 5vw, 54px);
	border: 2px solid var(--ipal-border);
	border-radius: 26px;
	background: var(--ipal-panel);
}

.ipal-printables h2 {
	margin: 0 0 12px;
	font-size: clamp(2rem, 3.5vw, 3.45rem);
	line-height: 1.05;
}

.ipal-printables p {
	margin: 0;
	color: var(--ipal-copy);
	font-size: 1.05rem;
}

.ipal-printable-icons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.ipal-printable-icons span {
	display: grid;
	min-height: 88px;
	place-items: center;
	padding: 10px;
	border: 1px solid #466d87;
	border-radius: 14px;
	background: #0a2032;
	color: var(--ipal-white);
	font-size: 0.72rem;
	font-weight: 900;
	text-align: center;
}

/* Final lap */
.ipal-final {
	padding: var(--ipal-desktop-space, 88px) 0;
	background:
		radial-gradient(circle at 20% 50%, rgba(117, 72, 199, 0.24), transparent 34%),
		radial-gradient(circle at 80% 45%, rgba(70, 223, 240, 0.13), transparent 35%),
		#040817;
}

.ipal-final__grid {
	display: grid;
	grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(38px, 6vw, 78px);
}

.ipal-final__visual img {
	width: 100%;
	border-radius: 26px;
	box-shadow: var(--ipal-shadow);
}

.ipal-final h2 {
	margin: 0 0 20px;
	color: var(--ipal-gold);
	font-size: clamp(3rem, 6vw, 6.1rem);
	line-height: 0.95;
	letter-spacing: -0.025em;
	white-space: nowrap;
	text-transform: uppercase;
}

.ipal-final__copy > p {
	margin: 0;
	color: var(--ipal-copy);
	font-size: clamp(1.08rem, 1.7vw, 1.34rem);
	line-height: 1.55;
}

.ipal-skill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.ipal-skill-list li {
	padding: 8px 12px;
	border: 1px solid #52708a;
	border-radius: 999px;
	background: #0a1a2e;
	color: var(--ipal-white);
	font-size: 0.85rem;
	font-weight: 800;
}

/* Footer */
.ipal-footer {
	border-top: 1px solid #284862;
	background: #02060f;
}

.ipal-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 92px;
	color: #ffffff;
	font-size: 0.9rem;
}

.ipal-footer__inner > a:last-child {
	color: #ffffff;
}

.ipal-image-media.is-contain img,
.ipal-card-media img.is-contain {
	object-fit: contain;
}

.ipal-image-media.is-cover img,
.ipal-card-media img.is-cover {
	object-fit: cover;
}

.ipal-game-unavailable {
	max-width: 760px;
	margin: 60px auto;
	padding: 24px;
	border: 2px solid #6f4eb0;
	border-radius: 14px;
	background: #0a1930;
	color: var(--ipal-white);
	font-weight: 800;
	text-align: center;
}

/* Responsive layout */
@media (max-width: 1080px) {
	.ipal-hero__grid {
		grid-template-columns: 1fr;
	}

	.ipal-hero__copy {
		max-width: 780px;
	}

	.ipal-hero-game {
		width: min(800px, 100%);
	}

	.ipal-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ipal-card-grid .ipal-game-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		width: min(calc(50% - 13px), 580px);
		justify-self: center;
	}

	.ipal-benefit-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ipal-final__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.ipal-nav__toggle {
		display: inline-flex;
	}

	.ipal-nav__links {
		position: absolute;
		top: calc(100% + 1px);
		right: 20px;
		left: 20px;
		display: none;
		align-items: stretch;
		padding: 18px;
		border: 1px solid var(--ipal-border);
		border-radius: 0 0 14px 14px;
		background: #04101d;
		box-shadow: 0 24px 44px rgba(0, 0, 0, 0.44);
	}

	.ipal-nav.is-open .ipal-nav__links {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ipal-nav__link {
		padding: 12px;
	}

	.ipal-printables__panel,
	.ipal-final__grid {
		grid-template-columns: 1fr;
	}

	.ipal-printable-icons {
		max-width: 620px;
	}
}

@media (max-width: 760px) {
	.admin-bar .ipal-nav { top: 46px; }

	.ipal-shell,
	.ipal-nav__inner {
		width: min(100% - 28px, 1180px);
	}

	.ipal-brand__name {
		font-size: 0.92rem;
	}

	.ipal-hero {
		padding-top: 52px;
	}

	.ipal-hero h1 {
		font-size: clamp(3rem, 15vw, 4.8rem);
	}

	.ipal-final h2 {
		font-size: clamp(2.25rem, 10.5vw, 4.2rem);
	}

	.ipal-hero__strapline {
		font-size: clamp(1.08rem, 4.8vw, 1.32rem);
	}

	.ipal-actions,
	.ipal-actions .ipal-button {
		width: 100%;
	}

	.ipal-snake-window {
		min-height: 420px;
	}

	.ipal-snake-window__header {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 3px;
	}

	.ipal-snake-window__header span:first-child {
		justify-self: start;
	}

	.ipal-snake-window__header span:last-child {
		display: none;
	}

	.ipal-card-grid,
	.ipal-benefit-grid {
		grid-template-columns: 1fr;
	}

	.ipal-card-grid .ipal-game-card:last-child:nth-child(odd) {
		grid-column: auto;
		width: 100%;
	}

	.ipal-card-media {
		aspect-ratio: 16 / 9;
	}

	.ipal-benefit-card {
		min-height: 240px;
	}

	.ipal-footer__inner {
		flex-direction: column;
		justify-content: center;
		padding: 24px 0;
		text-align: center;
	}

}

@media (max-width: 520px) {
	.ipal-nav.is-open .ipal-nav__links {
		grid-template-columns: 1fr;
	}

	.ipal-nav__links {
		right: 14px;
		left: 14px;
	}

	.ipal-brand__mark {
		width: 38px;
		height: 38px;
	}

	.ipal-hero__intro {
		font-size: 1rem;
	}

	.ipal-snake-board {
		padding: 14px 10px;
	}

	.ipal-game-card__body {
		padding: 20px 18px 12px;
	}

	.ipal-game-card__footer {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 12px 16px 18px;
	}

	.ipal-skill-pill {
		font-size: 0.66rem;
	}

	.ipal-nan-speech {
		font-size: 0.58rem;
		line-height: 1.32;
	}

	.ipal-printable-icons {
		grid-template-columns: 1fr;
	}

	.ipal-skill-list {
		gap: 7px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.ipal-landing *,
	.ipal-landing *::before,
	.ipal-landing *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
