/* ==========================================================================
   Flappy Hiro campaign page (page-hiro-flap.php) — loaded on that page only.
   Styled after the approved posters (REQ-101 Flappy Hiro Soc Med v4-01/02/03):
   underwater blue with light rays, white cards rimmed in orange, white
   headline type outlined in orange.
   ========================================================================== */

.flap-sea, .flap-terms {
	--fh-orange: #F7941D;
	--fh-orange-deep: #E0620B;
	--fh-blue-text: #2F5DA8;
	--fh-sea-top: #5BB8F2;
	--fh-sea-mid: #1B7BE3;
	--fh-sea-deep: #0A45C2;
	--fh-cream: #FFF8EE;
	--fh-head: 'Luckiest Guy', var(--font-display);
}

/* ---------- The sea that runs behind everything down to the terms ---------- */
.flap-sea {
	position: relative; overflow-x: clip; color: var(--white);
	background:
		radial-gradient(120% 40% at 50% 0%, rgba(255, 255, 255, .35), transparent 60%),
		linear-gradient(180deg, var(--fh-sea-top) 0%, var(--fh-sea-mid) 22%, #0F5FD6 55%, var(--fh-sea-deep) 100%);
}
/* Light rays falling from the surface (poster top-left). */
.flap-sea::before {
	content: ''; position: absolute; inset: 0 0 auto; height: min(1400px, 140vh); z-index: 0; pointer-events: none;
	background: repeating-conic-gradient(from 160deg at 18% -12%, rgba(255, 255, 255, .16) 0deg 4deg, transparent 4deg 11deg);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	filter: blur(6px);
}
.flap-sea > * { position: relative; z-index: 1; }

/* White type with a thick orange rim and a little orange depth, like the posters' headlines. */
.flap-outline {
	font-family: var(--fh-head); font-weight: 400; letter-spacing: .02em; line-height: 1.02;
	color: var(--white);
	-webkit-text-stroke: .16em var(--fh-orange);
	paint-order: stroke fill;
	text-shadow: 0 .09em 0 var(--fh-orange-deep), 0 .16em .35em rgba(0, 35, 110, .35);
}

.flap-title { font-size: clamp(2.6rem, 6.4vw, 5rem); text-align: center; }
.flap-sub { margin: .8rem auto 0; max-width: 46ch; text-align: center; font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.45; text-shadow: 0 2px 10px rgba(0, 30, 100, .35); }
.flap-sub--end { margin-top: clamp(1.8rem, 3vw, 2.6rem); }

/* ---------- Bubbles ---------- */
.flap-bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.flap-bubbles i {
	position: absolute; bottom: -6%; width: 22px; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, .18) 30%, rgba(255, 255, 255, .06) 62%, rgba(255, 255, 255, .5) 100%);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
}
.flap-bubbles i:nth-child(1) { left: 6%; width: 30px; }
.flap-bubbles i:nth-child(2) { left: 22%; width: 14px; }
.flap-bubbles i:nth-child(3) { left: 46%; width: 20px; }
.flap-bubbles i:nth-child(4) { right: 30%; width: 38px; }
.flap-bubbles i:nth-child(5) { right: 12%; width: 16px; }
.flap-bubbles i:nth-child(6) { right: 4%; width: 26px; }

/* ---------- Hero ---------- */
.flap-hero { padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3.5rem)) 0 clamp(3rem, 6vw, 5rem); }
.flap-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.flap-hero__logo { margin: 0; line-height: 0; }
.flap-hero__logo-img { width: min(100%, 520px); height: auto; filter: drop-shadow(0 12px 24px rgba(0, 30, 110, .35)); }
.flap-hero__dates {
	display: inline-block; margin-top: clamp(.8rem, 1.6vw, 1.3rem); padding: .55em 1.2em;
	font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--fh-blue-text);
	background: var(--white); border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 30, 110, .25);
}
.flap-hero__headline { margin-top: clamp(1rem, 2vw, 1.5rem); font-size: clamp(2.1rem, 4.6vw, 3.9rem); max-width: 14ch; }
.flap-hero__lead { max-width: 44ch; margin-top: 1rem; font-weight: 700; font-size: clamp(1.02rem, 1.4vw, 1.25rem); line-height: 1.55; text-shadow: 0 2px 10px rgba(0, 30, 100, .35); }
.flap-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(1.3rem, 2.4vw, 2rem); }
.flap-hero__note { margin-top: 1.1rem; font-size: .82rem; opacity: .92; }
.flap-hero__note a, .flap-disclaimer a { color: inherit; }
.flap-hero__art { position: relative; display: grid; place-items: center; }
.flap-hero__hiro { width: min(100%, 440px); max-height: min(78vh, 720px); height: auto; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(0, 25, 90, .4)); }

/* ---------- Scoreboard (above How to Play; filled by assets/js/flap-board.js) ---------- */
.flap-board { padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.flap-board__frame {
	max-width: 1000px; margin: clamp(2rem, 4vw, 3rem) auto 0; padding: clamp(1.2rem, 3vw, 2.4rem);
	background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
	border: 2px solid rgba(255, 255, 255, .42); border-radius: 30px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 18px 40px rgba(0, 25, 90, .25);
}
.flap-board__status {
	width: fit-content; max-width: 56ch; margin: 0 auto; padding: .6em 1.3em; text-align: center;
	font-weight: 800; line-height: 1.45; color: var(--fh-blue-text); background: var(--white);
	border-radius: 18px; box-shadow: 0 6px 18px rgba(0, 30, 110, .22);
}
.flap-board[data-state="error"] .flap-board__status { color: var(--fh-orange-deep); }

/* Top 3: a podium — 2nd, 1st, 3rd, with the winner's card standing tallest. */
.flap-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(.6rem, 2vw, 1.4rem); margin: clamp(2.6rem, 4vw, 3.2rem) 0 0; padding: 0; list-style: none; }
.flap-spot {
	position: relative; display: grid; justify-items: center; align-content: end; gap: .3rem; min-height: 180px;
	padding: 2.4rem .8rem 1.1rem; text-align: center; color: var(--fh-blue-text); background: var(--white);
	border: 3px solid var(--fh-orange); border-radius: 22px; box-shadow: 0 10px 26px rgba(0, 30, 110, .25);
}
.flap-spot[data-rank="1"] { order: 2; min-height: 236px; }
.flap-spot[data-rank="2"] { order: 1; min-height: 206px; }
.flap-spot[data-rank="3"] { order: 3; }
.flap-spot__n {
	--medal: radial-gradient(circle at 34% 28%, #FFF1B8, #F4B728 52%, #B7770B);
	position: absolute; top: 0; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 3.4rem; aspect-ratio: 1;
	font-family: var(--fh-head); font-size: 1.8rem; line-height: 1; color: var(--white); text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
	background: var(--medal); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 6px 14px rgba(0, 30, 110, .3);
}
.flap-spot[data-rank="1"] .flap-spot__n { width: 4.2rem; font-size: 2.2rem; }
.flap-spot[data-rank="2"] .flap-spot__n { --medal: radial-gradient(circle at 34% 28%, #FFFFFF, #BAC5D4 52%, #74808F); }
.flap-spot[data-rank="3"] .flap-spot__n { --medal: radial-gradient(circle at 34% 28%, #FFD9B0, #CD7F32 52%, #874B16); }
.flap-spot__name { max-width: 100%; font-weight: 900; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.25; overflow-wrap: anywhere; }
.flap-spot__score { font-family: var(--fh-head); font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1; color: var(--fh-orange); }
.flap-spot__prize { margin-top: .35rem; padding: .35em .85em; font-weight: 900; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--fh-blue-text); border-radius: 999px; }
.flap-spot[data-rank="1"] .flap-spot__prize { background: var(--fh-orange-deep); }

/* 4th–20th: two white lists. */
.flap-board__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1rem, 2.4vw, 1.6rem); margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.flap-board__group { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0 0 .7rem; font-family: var(--fh-head); font-weight: 400; font-size: 1.45rem; letter-spacing: .02em; color: var(--white); text-shadow: 0 2px 8px rgba(0, 30, 100, .35); }
.flap-board__group span { padding: .35em .8em; font: 900 .72rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--fh-blue-text); background: var(--white); border-radius: 999px; text-shadow: none; }
.flap-ranks { margin: 0; padding: 0; list-style: none; color: var(--fh-blue-text); background: var(--white); border: 3px solid var(--fh-orange); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 26px rgba(0, 30, 110, .2); }
.flap-rank { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .55rem 1rem; }
.flap-rank:nth-child(even) { background: #EEF5FF; }
.flap-rank__n { font-family: var(--fh-head); font-size: 1.2rem; text-align: center; color: var(--fh-orange); }
.flap-rank__name { overflow: hidden; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.flap-rank__score { font-family: var(--fh-head); font-size: 1.2rem; }
/* Empty places keep a soft dash until someone claims them. */
.flap-rank:not(.is-filled) .flap-rank__name, .flap-rank:not(.is-filled) .flap-rank__score,
.flap-spot:not(.is-filled) .flap-spot__name, .flap-spot:not(.is-filled) .flap-spot__score { color: #A7BADB; }
.flap-board__note { margin-top: clamp(1.2rem, 2.4vw, 1.6rem); text-align: center; font-size: .86rem; line-height: 1.5; opacity: .92; }

/* ---------- How to play (poster v4-03) ---------- */
.flap-how { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.flap-steps { display: grid; gap: clamp(3.2rem, 5.5vw, 4.2rem); max-width: 1000px; margin: clamp(3rem, 5vw, 4.2rem) auto 0; padding: 0; list-style: none; } /* an <ol>: main.css only resets <ul>, so drop the browser indent or the cards sit 40px off centre */
.flap-step {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 15vw, 170px); align-items: center; gap: 1rem;
	min-height: 150px; padding: clamp(2.1rem, 3.2vw, 2.6rem) clamp(1.3rem, 3vw, 2.4rem) clamp(1.3rem, 2.4vw, 1.9rem);
	color: var(--fh-blue-text); background: var(--white);
	border: 3px solid var(--fh-orange); border-radius: 20px; box-shadow: 0 10px 28px rgba(0, 30, 110, .25);
}
.flap-step--2 { grid-template-columns: clamp(120px, 15vw, 170px) minmax(0, 1fr); }
.flap-step--2 .flap-step__hiro { order: -1; }
.flap-step--2 .flap-step__title { left: auto; right: clamp(1rem, 3vw, 2.2rem); }
/* Orange-rimmed triangle pointing to the next step. */
.flap-step:not(:last-child)::after {
	content: ''; position: absolute; left: 50%; bottom: calc(-1 * clamp(3.2rem, 5.5vw, 4.2rem) + .5rem); width: 58px; height: 44px; translate: -50% 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 46'%3E%3Cpath d='M7 7h46L30 39z' fill='%23fff' stroke='%23F7941D' stroke-width='7' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flap-step__title { position: absolute; top: 0; left: clamp(1rem, 3vw, 2.2rem); translate: 0 -55%; margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.9rem); white-space: nowrap; }
.flap-step__lead { font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.45; }
.flap-step__more { margin-top: .5rem; font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.55; color: #44587d; }
.flap-step__hiro { justify-self: center; width: 100%; height: auto; margin-block: -2.6rem -1.6rem; filter: drop-shadow(0 8px 14px rgba(0, 30, 110, .2)); }

.flap-repeat {
	position: relative; max-width: 860px; margin: clamp(3.4rem, 6vw, 4.6rem) auto 0; padding: clamp(2.3rem, 3.6vw, 2.8rem) clamp(1.3rem, 3vw, 2.4rem) clamp(1.4rem, 2.4vw, 1.9rem);
	text-align: center; color: var(--fh-blue-text); background: var(--white);
	border: 3px solid var(--fh-orange); border-radius: 22px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), 0 10px 28px rgba(0, 30, 110, .25);
}
.flap-repeat__title { position: absolute; top: 0; left: 50%; translate: -50% -55%; margin: 0; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.flap-repeat__lead { font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.45; }
.flap-repeat__more { margin-top: .5rem; font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.55; color: #44587d; }

/* ---------- Prizes (poster v4-02) ---------- */
.flap-prizes { position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.flap-prize-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); max-width: 1080px; margin: clamp(2.2rem, 4vw, 3.4rem) auto 0; }
.flap-prize {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem;
	padding: clamp(1.3rem, 2.6vw, 2rem); text-align: center; color: var(--fh-blue-text); background: var(--white);
	border: 3px solid var(--fh-orange); border-radius: 26px; box-shadow: 0 10px 28px rgba(0, 30, 110, .25);
}
.flap-prize__photo { position: relative; display: grid; place-items: center; width: 100%; }
.flap-prize__img { width: auto; max-width: 100%; height: auto; max-height: 230px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 30, 90, .22)); }
.flap-prize__place { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.flap-prize__note { margin-top: .35rem; font-weight: 900; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fh-orange-deep); }
.flap-prize__name { margin-top: .5rem; font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.4; }

.flap-prize--grand { grid-column: 1 / -1; flex-direction: row-reverse; justify-content: center; gap: clamp(1rem, 3vw, 3rem); padding-inline: clamp(1.4rem, 4vw, 3.4rem); text-align: left; }
.flap-prize--grand .flap-prize__photo { width: auto; flex: 0 0 auto; }
.flap-prize--grand .flap-prize__img { max-height: 400px; }
.flap-prize--grand .flap-prize__text { flex: 0 1 30rem; }
.flap-prize--grand .flap-prize__place { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.flap-prize--grand .flap-prize__name { font-size: clamp(1.15rem, 2vw, 1.6rem); max-width: 24ch; }

.flap-prize--minor { flex-direction: row; text-align: left; gap: clamp(.8rem, 2vw, 1.4rem); }
.flap-prize--minor .flap-prize__photo { width: 40%; flex: 0 0 40%; }
.flap-prize--minor .flap-prize__img { max-height: 150px; }
.flap-prize--minor .flap-prize__place { font-size: clamp(1.4rem, 2.4vw, 2rem); }

/* "WORTH RM2,199" starburst: a blue-rimmed white badge, tilted, over the photo's corner. */
.flap-prize__worth { position: absolute; top: -.4rem; right: -.6rem; z-index: 2; rotate: -9deg; filter: drop-shadow(0 6px 10px rgba(0, 30, 90, .25)); }
.flap-prize__ring, .flap-prize__face {
	clip-path: polygon(50% 0%, 58.6% 6.8%, 69.1% 3.8%, 74.4% 13.4%, 85.4% 14.6%, 86.6% 25.6%, 96.2% 30.9%, 93.2% 41.4%, 100% 50%, 93.2% 58.6%, 96.2% 69.1%, 86.6% 74.4%, 85.4% 85.4%, 74.4% 86.6%, 69.1% 96.2%, 58.6% 93.2%, 50% 100%, 41.4% 93.2%, 30.9% 96.2%, 25.6% 86.6%, 14.6% 85.4%, 13.4% 74.4%, 3.8% 69.1%, 6.8% 58.6%, 0% 50%, 6.8% 41.4%, 3.8% 30.9%, 13.4% 25.6%, 14.6% 14.6%, 25.6% 13.4%, 30.9% 3.8%, 41.4% 6.8%);
}
.flap-prize__ring { display: grid; place-items: center; width: clamp(104px, 12vw, 138px); aspect-ratio: 1; background: #2E63C7; }
.flap-prize__face {
	display: grid; place-content: center; width: calc(100% - 10px); aspect-ratio: 1;
	font-family: var(--fh-head); font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1; color: var(--fh-orange); text-align: center;
	background: #FFFBEF;
}
.flap-prize__face small { display: block; margin-bottom: .2em; font-size: .72em; color: #2E63C7; letter-spacing: .08em; }
.flap-prize--grand .flap-prize__worth { top: -1.2rem; right: auto; left: -1.6rem; }

/* "×7" / "×10" in the poster's outlined type, on the photo's corner. */
.flap-prize__qty { position: absolute; right: -.7rem; bottom: -1.3rem; font-family: var(--fh-head); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--white); -webkit-text-stroke: .16em var(--fh-orange); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--fh-orange-deep); }

.flap-disclaimer { margin-top: clamp(1.6rem, 3vw, 2.4rem); text-align: center; font-size: .88rem; opacity: .92; }

/* ---------- When / Where / Winners ---------- */
.flap-info { position: relative; padding: clamp(1rem, 3vw, 2rem) 0 clamp(7rem, 12vw, 10rem); }
.flap-info__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); max-width: 1080px; margin-inline: auto; }
.flap-panel {
	position: relative; padding: clamp(2.2rem, 3vw, 2.6rem) clamp(1.2rem, 2.2vw, 1.8rem) clamp(1.3rem, 2.2vw, 1.8rem);
	color: var(--fh-blue-text); background: var(--white);
	border: 3px solid var(--fh-orange); border-radius: 22px; box-shadow: 0 10px 28px rgba(0, 30, 110, .25);
	font-size: 1rem; line-height: 1.55;
}
.flap-panel__title { position: absolute; top: 0; left: clamp(1rem, 2vw, 1.5rem); translate: 0 -55%; margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.flap-panel a { color: var(--fh-blue-text); font-weight: 800; }
.flap-panel__small { margin-top: .8rem; font-size: .88rem; color: #5a6b8c; }
.flap-when { display: grid; gap: .8rem; }
.flap-when dt { font-weight: 900; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fh-orange-deep); }
.flap-when dd { margin: .1rem 0 0; font-weight: 800; font-size: 1.15rem; }
.flap-outlets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1rem; margin-top: .7rem; }
.flap-outlets li { position: relative; padding-left: 1.1rem; }
.flap-outlets li::before { content: ''; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--fh-orange); }
.flap-winners { display: grid; gap: .55rem; }
.flap-winners li { position: relative; padding-left: 1.1rem; }
.flap-winners li::before { content: ''; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--fh-orange); }
.flap-info__cta { position: relative; z-index: 2; margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.flap-info__edge { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; color: var(--fh-cream); }

/* ---------- Final T&Cs ---------- */
.flap-terms { padding: clamp(2rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem); background: var(--fh-cream); scroll-margin-top: 6rem; }
.flap-terms .container { max-width: 860px; }
.flap-terms__title { font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; }
.flap-terms__body { margin-top: .5rem; color: #2b2b2b; }
.flap-terms__body h3 { margin-top: 2rem; font-weight: 900; font-size: clamp(1.08rem, 1.5vw, 1.25rem); }
.flap-terms__list { margin-top: .6rem; padding-left: 1.6rem; list-style: decimal; }
.flap-terms__list > li { margin-top: .55rem; padding-left: .3rem; font-size: .97rem; line-height: 1.65; }
.flap-terms__sub { margin-top: .35rem; padding-left: 1.5rem; list-style: decimal; }
.flap-terms__sub li { margin-top: .2rem; padding-left: .2rem; }
.flap-terms__links { margin-top: 2.2rem; font-weight: 700; }

/* ---------- Motion (never on transform: GSAP owns it for [data-reveal]) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.flap-hero__hiro { animation: flap-bob 3.4s ease-in-out infinite; }
	.flap-bubbles i { animation: flap-rise 10s linear infinite; }
	.flap-bubbles i:nth-child(2) { animation-duration: 7s; animation-delay: 1.2s; }
	.flap-bubbles i:nth-child(3) { animation-duration: 12s; animation-delay: 3s; }
	.flap-bubbles i:nth-child(4) { animation-duration: 9s; animation-delay: 4.4s; }
	.flap-bubbles i:nth-child(5) { animation-duration: 8s; animation-delay: 2.2s; }
	.flap-bubbles i:nth-child(6) { animation-duration: 11s; animation-delay: 5.5s; }
}
@keyframes flap-bob {
	0%, 100% { translate: 0 0; rotate: -2deg; }
	50% { translate: 0 -12px; rotate: 2deg; }
}
@keyframes flap-rise {
	0% { translate: 0 0; opacity: 0; }
	10% { opacity: .8; }
	100% { translate: 24px -110vh; opacity: 0; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1024px) {
	.flap-info__grid { grid-template-columns: 1fr 1fr; }
	.flap-info__grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.flap-hero { text-align: center; }
	.flap-hero__inner { grid-template-columns: 1fr; gap: .5rem; }
	.flap-hero__logo-img { width: min(88%, 380px); }
	.flap-hero__headline, .flap-hero__lead { margin-inline: auto; }
	.flap-hero__actions { justify-content: center; }
	.flap-hero__art { order: 2; }
	.flap-hero__hiro { width: min(62vw, 260px); max-height: none; }

	.flap-steps { gap: 3.6rem; margin-top: 3.4rem; }
	/* The lead sits beside Hiro; the small print runs the full card width underneath. */
	.flap-step, .flap-step--2 { grid-template-columns: minmax(0, 1fr) 84px; grid-template-areas: "lead hiro" "more more"; gap: .5rem .6rem; padding: 2.1rem 1.1rem 1.2rem; min-height: 0; }
	.flap-step--2 { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "hiro lead" "more more"; }
	.flap-step__body { display: contents; }
	.flap-step__lead { grid-area: lead; align-self: center; margin: 0; }
	.flap-step__more { grid-area: more; margin: 0; }
	.flap-step__hiro { grid-area: hiro; width: 84px; }
	.flap-step:not(:last-child)::after { bottom: -3.1rem; width: 46px; height: 34px; }
	.flap-step__title, .flap-step--2 .flap-step__title { left: 50%; right: auto; translate: -50% -55%; font-size: clamp(1.45rem, 7vw, 1.9rem); }
	.flap-step__hiro { margin-block: -.5rem -.6rem; }
	.flap-step__lead, .flap-repeat__lead { font-size: 1.02rem; }
	.flap-step__more, .flap-repeat__more { font-size: .93rem; }

	.flap-podium { gap: .45rem; }
	.flap-spot { min-height: 150px; padding: 2rem .35rem .8rem; border-radius: 18px; }
	.flap-spot[data-rank="1"] { min-height: 186px; }
	.flap-spot[data-rank="2"] { min-height: 168px; }
	.flap-spot__n { width: 2.8rem; font-size: 1.45rem; }
	.flap-spot[data-rank="1"] .flap-spot__n { width: 3.4rem; font-size: 1.8rem; }
	.flap-spot__name { font-size: .92rem; }
	.flap-spot__prize { padding: .35em .55em; font-size: .58rem; letter-spacing: .02em; white-space: nowrap; }
	.flap-board__lists { grid-template-columns: 1fr; }

	.flap-prize-grid { grid-template-columns: 1fr; }
	.flap-prize--grand { flex-direction: column; text-align: center; }
	.flap-prize--grand .flap-prize__img { max-height: 260px; }
	.flap-prize--grand .flap-prize__worth { left: auto; right: -.8rem; top: -1rem; }
	.flap-prize--grand .flap-prize__text { flex: none; }
	.flap-prize--grand .flap-prize__name { margin-inline: auto; }
	/* Smaller prizes stack too, so the ×7 / ×10 never runs into the prize name. */
	.flap-prize--minor { flex-direction: column; text-align: center; }
	.flap-prize--minor .flap-prize__photo { width: auto; flex: none; margin-bottom: .5rem; }
	.flap-prize__img { max-height: 190px; }

	.flap-info__grid { grid-template-columns: 1fr; gap: 2.4rem; }
	.flap-panel__title { left: 50%; translate: -50% -55%; white-space: nowrap; }
}
