/* ============================================================
   Bowlbo: The Quest for Bing Bing
   Candy-colored sibling to oneyware.com's late-night arcade.
   Shared DNA: Bungee + Sora, scanline atmosphere, arcade buttons,
   reveal-on-scroll. Its own identity: warm plum night, a
   bubblegum-pink → yolk-yellow candy gradient pulled from the logo.
   ============================================================ */

:root {
	--night:      #160a12;   /* page background — warm plum-black */
	--night-2:    #22101b;   /* raised surfaces */
	--night-3:    #3a1c2c;   /* borders / lines */
	--cream:      #fff3e6;   /* off-white, matches logo outline */
	--cream-dim:  #d3b3bd;

	--pink:       #ff5f95;   /* logo bubblegum — primary accent */
	--pink-deep:  #d13567;   /* button shadow / borders */
	--yolk:       #ffd23f;   /* logo yellow — secondary accent */
	--yolk-deep:  #e0a81f;
	--ember:      #ff6a3d;   /* blood-moon orange */

	--glow:       rgba(255, 95, 149, 0.20);
	--candy:      linear-gradient(96deg, var(--pink) 0%, #ff8f6b 45%, var(--yolk) 100%);

	--font-display: "Bungee", cursive;
	--font-body:    "Sora", sans-serif;

	--edge: clamp(1.25rem, 5vw, 3.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: var(--night);
	color: var(--cream);
	font-family: var(--font-body);
	font-weight: 300;
	line-height: 1.7;
	overflow-x: hidden;
}

::selection { background: var(--pink); color: var(--night); }

img { max-width: 100%; }

/* ---------- atmosphere ---------- */

.grain {
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 106, 61, 0.10), transparent 60%),
		radial-gradient(ellipse 70% 50% at 50% 108%, rgba(255, 95, 149, 0.08), transparent 65%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Ccircle cx='32' cy='32' r='1.1' fill='%23fff3e6' fill-opacity='0.035'/%3E%3C/svg%3E");
}

.scanlines {
	position: fixed;
	inset: 0;
	z-index: 60;
	pointer-events: none;
	background: repeating-linear-gradient(
		to bottom,
		transparent 0px,
		transparent 3px,
		rgba(0, 0, 0, 0.12) 4px
	);
	mix-blend-mode: overlay;
}

/* ---------- shared type ---------- */

.eyebrow {
	font-family: var(--font-display);
	font-size: 0.72rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--pink);
}

.eyebrow::before,
.eyebrow::after {
	content: "\25C6";              /* ◆ */
	font-size: 0.5em;
	vertical-align: middle;
	margin: 0 0.9em;
	opacity: 0.55;
	color: var(--yolk);
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.12;
	text-wrap: balance;
}

em { font-style: italic; }

.candy {
	background: var(--candy);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- header ---------- */

.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 40;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem var(--edge);
	background: linear-gradient(to bottom, rgba(22, 10, 18, 0.85), rgba(22, 10, 18, 0));
	backdrop-filter: blur(2px);
}

.brand img { height: 30px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }

.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }

.site-header nav a {
	color: var(--cream-dim);
	text-decoration: none;
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	transition: color 0.2s;
}

.site-header nav a:hover { color: var(--yolk); }

/* ---------- hero ---------- */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 7rem var(--edge) 5rem;
	overflow: hidden;
}

/* full-bleed key art, cinematically dimmed */
.hero-art {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("/images/bg.jpg") center 30% / cover no-repeat;
	transform: scale(1.08);
	animation: kenburns 26s ease-in-out infinite alternate;
}

.hero-art::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 65% 60% at 50% 42%, transparent 0%, rgba(22, 10, 18, 0.35) 70%, var(--night) 100%),
		linear-gradient(to bottom, rgba(22, 10, 18, 0.55) 0%, rgba(22, 10, 18, 0.15) 30%, rgba(22, 10, 18, 0.55) 72%, var(--night) 100%);
}

@keyframes kenburns {
	from { transform: scale(1.08) translateY(0); }
	to   { transform: scale(1.16) translateY(-2%); }
}

.hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.35rem;
	max-width: 46rem;
}

.hero-logo {
	width: clamp(240px, 46vw, 500px);
	height: auto;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 45px var(--glow));
	animation: bob 5s ease-in-out infinite;
}

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

.hero h1 {
	font-size: clamp(1.7rem, 5vw, 3.2rem);
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}

.hero .lede {
	max-width: 34rem;
	color: var(--cream);
	font-size: clamp(1rem, 1.7vw, 1.15rem);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-actions {
	margin-top: 0.6rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

/* ---------- arcade button ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.9rem 1.8rem;
	font-family: var(--font-display);
	font-size: 0.82rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--night);
	background: var(--candy);
	border-radius: 10px;
	box-shadow: 0 6px 0 var(--pink-deep);
	transition: transform 0.14s, box-shadow 0.14s;
}

.btn span { font-size: 0.7em; }
.btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 0 var(--pink-deep), 0 0 35px var(--glow); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pink-deep); }

/* award pill */
.award-strip {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.7rem 1.3rem;
	border: 1px solid var(--yolk-deep);
	border-radius: 999px;
	background: rgba(255, 210, 63, 0.09);
	color: var(--yolk);
	text-decoration: none;
	font-size: 0.76rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.award-strip:hover {
	background: rgba(255, 210, 63, 0.16);
	box-shadow: 0 0 26px rgba(255, 210, 63, 0.22);
	transform: translateY(-2px);
}

.award-strip .trophy { width: 16px; height: 16px; flex-shrink: 0; }

/* scroll cue */
.scroll-cue {
	position: absolute;
	bottom: 1.6rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	color: var(--cream-dim);
	font-size: 0.62rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.scroll-cue i { font-style: normal; animation: nudge 1.6s ease-in-out infinite; }

@keyframes nudge {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(4px); }
}

/* ---------- moveset marquee ---------- */

.marquee {
	overflow: hidden;
	border-top: 2px solid var(--night-3);
	border-bottom: 2px solid var(--night-3);
	background: var(--night-2);
	padding: 0.9rem 0;
}

.marquee-track {
	display: flex;
	width: max-content;
	animation: scroll-x 24s linear infinite;
}

.marquee-track span {
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 2.6vw, 1.7rem);
	text-transform: uppercase;
	color: var(--cream);
	white-space: nowrap;
	letter-spacing: 0.04em;
}

.marquee-track b {
	color: var(--pink);
	font-size: 0.7em;
	vertical-align: middle;
	margin: 0 0.85em;
}

@keyframes scroll-x {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ---------- story ---------- */

.story {
	padding: clamp(5rem, 10vw, 8rem) var(--edge);
	max-width: 78rem;
	margin: 0 auto;
}

.story-head { text-align: center; }

.story-head h2 {
	font-size: clamp(1.5rem, 4vw, 2.6rem);
	margin-top: 0.9rem;
}

.panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.2rem, 3vw, 2rem);
	margin: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.panel {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--night-3);
	min-height: 30rem;
	display: flex;
	align-items: flex-end;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.panel-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s ease;
}

.panel::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 6, 11, 0.95) 8%, rgba(15, 6, 11, 0.35) 55%, rgba(15, 6, 11, 0.1) 100%);
}

.panel-body { position: relative; z-index: 1; padding: clamp(1.6rem, 3vw, 2.4rem); }

.panel:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.5); }
.panel:hover .panel-media { transform: scale(1.05); }
.panel--before:hover { border-color: var(--yolk-deep); }
.panel--after:hover  { border-color: var(--pink-deep); }

.tag {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 0.66rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	padding: 0.3rem 0.75rem;
	border-radius: 6px;
	background: var(--yolk);
	color: var(--night);
	margin-bottom: 0.9rem;
}

.tag--danger { background: var(--pink); }

.panel-body h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--cream); }

.panel-body p {
	margin-top: 0.7rem;
	color: var(--cream-dim);
	font-size: 0.95rem;
	max-width: 26rem;
}

.story-close {
	margin: clamp(2.4rem, 5vw, 3.4rem) auto 0;
	max-width: 40rem;
	text-align: center;
	color: var(--cream-dim);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.6;
}

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

.trailer-section {
	padding: clamp(4rem, 9vw, 7rem) var(--edge);
	text-align: center;
	border-top: 1px solid var(--night-3);
}

.trailer-section h2 { font-size: clamp(1.5rem, 4vw, 2.6rem); margin-top: 0.9rem; }

.trailer {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 60rem;
	margin: clamp(2rem, 5vw, 3rem) auto 0;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--night-3);
	background: var(--night-2);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 95, 149, 0.06);
}

.trailer iframe,
.trailer-facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.trailer-facade { cursor: pointer; background: none; padding: 0; display: block; }

.trailer-facade img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: brightness(0.72);
	transition: filter 0.3s, transform 0.4s;
}

.trailer-facade:hover img { filter: brightness(0.95); transform: scale(1.03); }

.play-btn {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 76px; height: 76px;
	border-radius: 50%;
	background: rgba(22, 10, 18, 0.7);
	border: 2px solid var(--pink);
	color: var(--pink);
	display: grid;
	place-items: center;
	transition: transform 0.25s, background 0.25s, color 0.25s;
}

.play-btn svg { width: 34px; height: 34px; margin-left: 4px; }

.trailer-facade:hover .play-btn {
	transform: translate(-50%, -50%) scale(1.1);
	background: rgba(255, 95, 149, 0.18);
	color: var(--yolk);
}

/* ---------- awards ---------- */

.awards {
	padding: clamp(5rem, 10vw, 8rem) var(--edge);
	text-align: center;
	position: relative;
	border-top: 1px solid var(--night-3);
}

.awards::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255, 210, 63, 0.07), transparent 70%);
}

.awards h2 { font-size: clamp(1.5rem, 4vw, 2.6rem); margin-top: 0.9rem; }

.award-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1.2rem, 3vw, 2.4rem);
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	max-width: 62rem;
}

.award-card {
	flex: 1 1 260px;
	max-width: 22rem;
	padding: 2.8rem 2rem 2.4rem;
	background: linear-gradient(160deg, var(--night-2), var(--night));
	border: 1px solid var(--night-3);
	border-radius: 16px;
	position: relative;
	transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.award-card::before {
	content: "";
	position: absolute;
	top: -1px; left: 50%;
	transform: translateX(-50%);
	width: 55%; height: 2px;
	background: var(--candy);
}

.award-card:hover {
	transform: translateY(-6px);
	border-color: var(--yolk-deep);
	box-shadow: 0 22px 45px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 210, 63, 0.14);
}

.laurel { width: 120px; height: 70px; color: var(--yolk); margin-bottom: 1rem; }

.award-card h3 { font-size: 1.2rem; color: var(--cream); }

.award-meta {
	margin-top: 0.9rem;
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--cream-dim);
}

.awards-note {
	margin: clamp(2.2rem, 5vw, 3.2rem) auto 0;
	max-width: 30rem;
	color: var(--cream-dim);
	font-size: 0.95rem;
}

.awards-note em { color: var(--cream); }

/* ---------- follow ---------- */

.follow {
	padding: clamp(5rem, 10vw, 8rem) var(--edge);
	text-align: center;
	border-top: 1px solid var(--night-3);
}

.follow h2 { font-size: clamp(1.6rem, 4.4vw, 3rem); }

.follow > p { margin: 1rem auto 0; max-width: 30rem; color: var(--cream-dim); }

.follow-links {
	margin-top: 2.2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.social-btn {
	padding: 0.85rem 1.7rem;
	border: 1px solid var(--night-3);
	border-radius: 999px;
	color: var(--cream);
	text-decoration: none;
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.social-btn:hover {
	border-color: var(--pink);
	color: var(--pink);
	background: rgba(255, 95, 149, 0.08);
	transform: translateY(-2px);
}

/* ---------- footer ---------- */

.site-footer {
	border-top: 1px solid var(--night-3);
	padding: 3.5rem var(--edge) 3rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	background: var(--night-2);
}

.made-by {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--cream-dim);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	transition: color 0.2s, background 0.2s;
}

.made-by:hover { color: var(--cream); background: rgba(255,255,255,0.03); }
.made-by img { display: block; }
.made-by .oney-wordmark { height: 16px; width: auto; }

.footer-contact a {
	color: var(--cream);
	text-decoration: none;
	font-size: 1rem;
	letter-spacing: 0.05em;
	border-bottom: 1px solid var(--pink-deep);
	padding-bottom: 2px;
	transition: color 0.2s;
}

.footer-contact a:hover { color: var(--pink); }

.copyright {
	margin-top: 0.4rem;
	color: var(--cream-dim);
	font-size: 0.74rem;
	opacity: 0.7;
}

/* ---------- reveal on scroll ---------- */

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal.is-visible:nth-child(2) { transition-delay: 0.08s; }
.reveal.is-visible:nth-child(3) { transition-delay: 0.16s; }
.reveal.is-visible:nth-child(4) { transition-delay: 0.24s; }
.reveal.is-visible:nth-child(5) { transition-delay: 0.32s; }

/* ---------- responsive ---------- */

@media (max-width: 780px) {
	.panels { grid-template-columns: 1fr; }
	.panel { min-height: 22rem; }
	.site-header nav { gap: 1rem; }
	.site-header nav a:nth-child(1),
	.site-header nav a:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero-logo, .hero-art, .scroll-cue i, .marquee-track { animation: none; }
	html { scroll-behavior: auto; }
}
