/* Brick Busters & Co promo page, in the game's own look: overall blue, hi-vis yellow, orange,
   Bungee lettering with thick ink outlines, chunky block panels and buttons, hazard tape. */

.bbp {
	--blue: #3369c4;
	--blue-light: #5494ed;
	--blue-deep: #1f428c;
	--navy: #13285a;
	--yellow: #ffcc1f;
	--orange: #ff8517;
	--ink: #121217;
	--good: #73d973;
	--white: #ffffff;
	--edge: 4px;
	color: var(--white);
	font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-weight: 600;
	line-height: 1.5;
	background: var(--blue);
	overflow-x: hidden;
}

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

body.bbp-body {
	margin: 0;
	background: var(--ink);
}

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

/* Lettering: Bungee with a hard ink outline and a drop shadow, like the game's BlockText. */
.bbp-title,
.bbp-h2,
.bbp-h3,
.bbp-lead,
.bbp-step-title,
.bbp-cta-title,
.bbp-num,
.bbp-store-big,
.bbp-co,
.bbp-tagline {
	font-family: "Bungee", "Arial Black", Impact, sans-serif;
	font-weight: 400;
	letter-spacing: 0.01em;
	text-shadow:
		-3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink),
		0 3px 0 var(--ink), 3px 0 0 var(--ink), 0 -3px 0 var(--ink), -3px 0 0 var(--ink),
		0 7px 0 rgba(0, 0, 0, 0.45);
}

/* Chunky block: solid colour, ink border, a darker lip along the bottom. */
.bbp-block {
	border: var(--edge) solid var(--ink);
	box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.18), 0 8px 0 rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------- hazard tape */

.bbp-tape {
	height: 30px;
	border-top: var(--edge) solid var(--ink);
	border-bottom: var(--edge) solid var(--ink);
	background: repeating-linear-gradient(-45deg, var(--yellow) 0 22px, var(--ink) 22px 44px);
}

/* ---------------------------------------------------------------- hero (the title screen) */

.bbp-hero {
	position: relative;
	background:
		radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, 0.12), transparent 55%),
		linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
}

.bbp-hero-band {
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 20px 64px;
	text-align: center;
}

.bbp-icon {
	width: 160px;
	height: 160px;
	margin: 0 auto 26px;
	border-radius: 34px;
	border: 6px solid var(--ink);
	box-shadow: 0 10px 0 rgba(0, 0, 0, 0.4);
	animation: bbp-bob 3.2s ease-in-out infinite;
}

.bbp-title {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 0.95;
	color: var(--yellow);
}

.bbp-title-word {
	font-size: clamp(56px, 14vw, 140px);
	display: block;
	animation: bbp-drop 0.55s cubic-bezier(0.2, 1.4, 0.5, 1) both;
}

.bbp-title-word:nth-child(2) {
	animation-delay: 0.12s;
}

.bbp-title-tag {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 14px;
}

.bbp-co {
	display: inline-block;
	padding: 8px 18px 12px;
	font-size: clamp(30px, 6vw, 52px);
	color: var(--white);
	background: var(--orange);
	border: var(--edge) solid var(--ink);
	box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.18), 0 6px 0 rgba(0, 0, 0, 0.35);
	transform: rotate(4deg);
	animation: bbp-stamp 0.35s 0.45s cubic-bezier(0.3, 1.6, 0.6, 1) both;
}

.bbp-tagline {
	font-size: clamp(16px, 3vw, 28px);
	color: var(--white);
}

.bbp-lead {
	margin: 34px 0 10px;
	font-size: clamp(24px, 4.5vw, 40px);
	color: var(--white);
}

.bbp-intro {
	max-width: 640px;
	margin: 0 auto 30px;
	font-size: clamp(16px, 2.2vw, 19px);
	color: rgba(255, 255, 255, 0.92);
}

/* ---------------------------------------------------------------- store buttons */

.bbp-stores {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.bbp-store {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 220px;
	padding: 10px 24px 16px;
	text-decoration: none;
	color: var(--ink);
	background: var(--yellow);
	border: var(--edge) solid var(--ink);
	box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.16), 0 8px 0 rgba(0, 0, 0, 0.35);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.bbp-store-google {
	background: var(--orange);
	color: var(--white);
}

.bbp-store-small {
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.bbp-store-big {
	font-size: 28px;
	line-height: 1.1;
	color: inherit;
	text-shadow: none;
}

.bbp-store-google .bbp-store-big {
	text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
}

a.bbp-store:hover,
a.bbp-store:focus-visible {
	transform: translateY(-3px) rotate(-1deg);
	box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.16), 0 11px 0 rgba(0, 0, 0, 0.35);
	outline: none;
}

a.bbp-store:active {
	transform: translateY(4px);
	box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16), 0 3px 0 rgba(0, 0, 0, 0.35);
}

/* No store link yet: same colours, a hazard-striped edge, and it doesn't react. */
.bbp-store.is-soon {
	cursor: default;
	background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.08) 0 10px, transparent 10px 20px);
}

/* ---------------------------------------------------------------- sections */

.bbp-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 64px 20px;
}

.bbp-h2 {
	margin: 0 0 40px;
	font-size: clamp(30px, 6vw, 54px);
	line-height: 1.05;
	text-align: center;
	color: var(--yellow);
}

.bbp-h3 {
	margin: 4px 0 8px;
	font-size: clamp(22px, 3.4vw, 32px);
	line-height: 1.1;
	color: var(--white);
}

/* ---------------------------------------------------------------- trailer */

.bbp-tv {
	max-width: 900px;
	margin: 0 auto;
	padding: 18px;
	background: var(--orange);
	border: var(--edge) solid var(--ink);
	box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.18), 0 10px 0 rgba(0, 0, 0, 0.35);
}

.bbp-tv-screen {
	position: relative;
	aspect-ratio: 16 / 9;
	border: var(--edge) solid var(--ink);
	background: var(--ink);
}

.bbp-tv-screen iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------------------------------------------------------------- features: screenshot + one-liner */

.bbp-feature-list {
	display: grid;
	gap: 44px;
}

.bbp-feature {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 32px;
	align-items: center;
}

.bbp-feature.is-flipped .bbp-screen {
	order: 2;
}

/* The screenshot sits in a chunky "van laptop" screen frame. */
.bbp-screen {
	padding: 12px;
	background: var(--blue-deep);
	border: var(--edge) solid var(--ink);
	box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.2), 0 10px 0 rgba(0, 0, 0, 0.35);
	transform: rotate(-1.2deg);
}

.bbp-feature.is-flipped .bbp-screen {
	transform: rotate(1.2deg);
}

.bbp-shot-button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.bbp-shot {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 3px solid var(--ink);
	background: var(--navy);
}

.bbp-shot-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		repeating-linear-gradient(-45deg, rgba(255, 204, 31, 0.08) 0 18px, transparent 18px 36px),
		var(--navy);
}

.bbp-shot-empty span {
	font-family: "Bungee", "Arial Black", sans-serif;
	font-size: clamp(16px, 2.6vw, 24px);
	color: rgba(255, 255, 255, 0.45);
}

.bbp-feature-text p {
	margin: 0;
	font-size: clamp(16px, 2.2vw, 20px);
	color: rgba(255, 255, 255, 0.92);
}

.bbp-num {
	display: inline-block;
	padding: 2px 12px 6px;
	font-size: 20px;
	color: var(--ink);
	background: var(--yellow);
	border: 3px solid var(--ink);
	text-shadow: none;
}

/* ---------------------------------------------------------------- how to play */

.bbp-how {
	background: none;
}

.bbp-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.bbp-step {
	position: relative;
	padding: 34px 20px 24px;
	background: var(--blue-light);
	border: var(--edge) solid var(--ink);
	box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.16), 0 8px 0 rgba(0, 0, 0, 0.35);
	text-align: center;
}

.bbp-step:nth-child(even) {
	background: var(--blue-deep);
}

.bbp-step-num {
	position: absolute;
	top: -24px;
	left: 50%;
	width: 48px;
	height: 48px;
	margin-left: -24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Bungee", sans-serif;
	font-size: 24px;
	color: var(--ink);
	background: var(--yellow);
	border: var(--edge) solid var(--ink);
	border-radius: 50%;
}

.bbp-step-title {
	margin: 4px 0 8px;
	font-size: 26px;
	color: var(--yellow);
}

.bbp-step p {
	margin: 0;
	font-size: 16px;
}

/* ---------------------------------------------------------------- gifts from the big boss */

.bbp-awards-lead {
	max-width: 680px;
	margin: -18px auto 34px;
	text-align: center;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.9);
}

.bbp-award-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.bbp-award {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px 18px;
	background: var(--blue-deep);
	border: var(--edge) solid var(--ink);
	box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.18), 0 8px 0 rgba(0, 0, 0, 0.35);
}

.bbp-award-jobs {
	flex: 0 0 auto;
	width: 86px;
	padding: 6px 0 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--yellow);
	border: var(--edge) solid var(--ink);
	transform: rotate(-3deg);
	color: var(--ink);
}

.bbp-award:nth-child(even) .bbp-award-jobs {
	background: var(--orange);
	transform: rotate(3deg);
}

.bbp-award-n {
	font-family: "Bungee", sans-serif;
	font-size: 32px;
	line-height: 1;
}

.bbp-award-unit {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.bbp-award-text {
	display: flex;
	flex-direction: column;
}

.bbp-award-name {
	font-family: "Bungee", sans-serif;
	font-size: 22px;
	line-height: 1.15;
	color: var(--yellow);
	text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
}

.bbp-award-line {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 760px) {
	.bbp-award-list {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------- last call and footer */

.bbp-cta {
	padding: 64px 20px 70px;
	text-align: center;
	background: linear-gradient(180deg, var(--blue-deep) 0%, var(--navy) 100%);
	border-top: var(--edge) solid var(--ink);
}

.bbp-cta-title {
	margin: 0 0 8px;
	font-size: clamp(30px, 6vw, 56px);
	line-height: 1.05;
	color: var(--yellow);
}

.bbp-cta p {
	margin: 0 0 26px;
	font-size: 18px;
}

.bbp-footer {
	padding: 26px 20px 34px;
	text-align: center;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
}

.bbp-footer img {
	width: 96px;
	height: 96px;
	margin: 0 auto 8px;
	border-radius: 14px;
}

.bbp-footer p {
	margin: 0;
}

/* ---------------------------------------------------------------- lightbox */

.bbp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(10, 14, 30, 0.92);
	cursor: zoom-out;
}

.bbp-lightbox[hidden] {
	display: none;
}

.bbp-lightbox-img {
	max-width: 100%;
	max-height: 100%;
	border: var(--edge) solid var(--ink);
	box-shadow: 0 10px 0 rgba(0, 0, 0, 0.4);
}

.bbp-lightbox-close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 52px;
	height: 52px;
	font-size: 34px;
	line-height: 1;
	color: var(--ink);
	background: var(--yellow);
	border: var(--edge) solid var(--ink);
	cursor: pointer;
}

/* ---------------------------------------------------------------- motion */

.bbp-reveal {
	opacity: 0;
	transform: translateY(28px) scale(0.97);
	transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 1.3, 0.5, 1);
}

.bbp-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Without the script (or before it runs) everything just shows. */
.bbp:not(.bbp-js) .bbp-reveal {
	opacity: 1;
	transform: none;
}

@keyframes bbp-drop {
	0% { transform: translateY(-120px) scale(1, 1); opacity: 0; }
	60% { transform: translateY(0) scale(1.08, 0.86); opacity: 1; }
	100% { transform: translateY(0) scale(1, 1); }
}

@keyframes bbp-stamp {
	0% { transform: rotate(-14deg) scale(2.4); opacity: 0; }
	100% { transform: rotate(4deg) scale(1); opacity: 1; }
}

@keyframes bbp-bob {
	0%, 100% { transform: translateY(0) rotate(-2deg); }
	50% { transform: translateY(-8px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
	.bbp-title-word,
	.bbp-co,
	.bbp-icon {
		animation: none;
	}
	.bbp-reveal {
		transition: none;
	}
}

/* ---------------------------------------------------------------- phones and tablets */

@media (max-width: 860px) {
	.bbp-feature,
	.bbp-feature.is-flipped {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.bbp-feature.is-flipped .bbp-screen {
		order: 0;
	}
	.bbp-feature-text {
		text-align: center;
	}
	.bbp-steps {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 40px;
	}
}

@media (max-width: 480px) {
	.bbp-hero-band {
		padding: 40px 16px 48px;
	}
	.bbp-section {
		padding: 48px 16px;
	}
	.bbp-icon {
		width: 120px;
		height: 120px;
		border-radius: 26px;
	}
	.bbp-steps {
		grid-template-columns: 1fr;
	}
	.bbp-store {
		width: 100%;
		align-items: center;
	}
}
