/* glugmaster.com: one stylesheet, the game's own font and colors, no third-party requests. */
@font-face {
	font-family: "Baloo 2";
	src: url("/assets/baloo2.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
}

:root {
	--teal-top: #22d0c4;
	--teal-deep: #0f7fa3;
	--ink: #2a2350;
	--ink-soft: #5b5480;
	--paper: #ffffff;
	--mist: #eef8f8;
	--gold: #ffc83d;
	--red: #e8433a;
	--yellow: #ffc21a;
	--orange: #ff8a1f;
	--blue: #2f6fe4;
	--purple: #9b4dca;
	--green: #2db36a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Baloo 2", system-ui, sans-serif;
	font-size: 1.125rem;
	line-height: 1.55;
}

a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Home: the sea-glass gradient of the app icon. */
.hero {
	background: linear-gradient(180deg, var(--teal-top), var(--teal-deep));
	color: var(--paper);
	text-align: center;
	padding: 48px 16px 0;
	overflow: hidden;
}
.hero .wordmark { width: min(560px, 100%); height: auto; display: block; margin: 0 auto; }
.hero .lede {
	font-size: clamp(1.35rem, 4.5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	max-width: 22ch;
	margin: 4px auto 28px;
	text-shadow: 0 2px 0 rgba(42, 35, 80, 0.25);
}

/* The one memorable thing: two tubes pour into a third and the colors mix. */
.bench {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: clamp(18px, 6vw, 40px);
	height: 230px;
	margin-top: 8px;
}
.tube {
	--tilt: 52deg;
	position: relative;
	width: 58px;
	height: 190px;
	border: 5px solid rgba(255, 255, 255, 0.95);
	border-top: 0;
	border-radius: 0 0 29px 29px;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
}
.tube::before { /* the lip */
	content: "";
	position: absolute;
	top: 0; left: -5px; right: -5px;
	height: 8px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 4px;
}
.liquid {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: var(--fill);
	background: var(--c);
	transition: height 0.9s ease-in-out, background-color 0.9s ease-in-out;
}
.liquid::after { /* surface shine */
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 7px;
	background: rgba(255, 255, 255, 0.28);
}
.bench .left { transform-origin: 100% 0; animation: pour-right 3.2s ease-in-out 0.6s both; }
.bench .right { transform-origin: 0 0; animation: pour-left 3.2s ease-in-out 0.6s both; }
.bench .left .liquid { animation: drain 3.2s ease-in-out 0.6s both; }
.bench .right .liquid { animation: drain 3.2s ease-in-out 0.6s both; }
.bench .mix .liquid { animation: fill-mix 3.2s ease-in-out 0.6s both; }
@keyframes pour-right { 0%, 15% { transform: none; } 40%, 70% { transform: translate(14px, -18px) rotate(var(--tilt)); } 95%, 100% { transform: none; } }
@keyframes pour-left { 0%, 15% { transform: none; } 40%, 70% { transform: translate(-14px, -18px) rotate(calc(-1 * var(--tilt))); } 95%, 100% { transform: none; } }
@keyframes drain { 0%, 35% { height: 50%; } 72%, 100% { height: 0%; } }
@keyframes fill-mix {
	0%, 35% { height: 0%; background: var(--red); }
	52% { height: 30%; background: #f45f2c; }
	72%, 100% { height: 80%; background: var(--orange); }
}
.equation {
	font-size: 1.05rem;
	font-weight: 700;
	padding: 14px 0 22px;
	opacity: 0.95;
}
@media (max-width: 480px) {
	.bench { height: 190px; }
	.tube { --tilt: 40deg; height: 150px; width: 50px; }
}
@media (prefers-reduced-motion: reduce) {
	.bench .left, .bench .right, .bench .liquid { animation: none !important; }
	.bench .left .liquid, .bench .right .liquid { height: 0; }
	.bench .mix .liquid { height: 80%; background: var(--orange); }
}

.store {
	display: inline-block;
	margin: 0 auto 40px;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-weight: 800;
	font-size: 1.15rem;
	text-decoration: none;
	box-shadow: 0 5px 0 var(--ink);
}
.store[aria-disabled="true"] { opacity: 0.85; cursor: default; }

/* Plain reading column for everything below the hero and for the policy pages. */
.page { max-width: 680px; margin: 0 auto; padding: 40px 16px 56px; }
.page h1 { font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.1; margin: 0 0 8px; }
.page h2 { font-size: 1.45rem; line-height: 1.2; margin: 36px 0 6px; }
.page h3 { font-size: 1.15rem; margin: 22px 0 4px; }
.page p, .page li { color: var(--ink); }
.page .meta { color: var(--ink-soft); margin-top: 0; }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }

/* The promises: each starts with a paint dot, the game's colors in order. */
.promises { list-style: none; padding: 0 !important; }
.promises li { position: relative; padding-left: 30px; margin: 12px 0; }
.promises li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.45em;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--dot);
}
.promises li:nth-child(6n+1) { --dot: var(--red); }
.promises li:nth-child(6n+2) { --dot: var(--yellow); }
.promises li:nth-child(6n+3) { --dot: var(--blue); }
.promises li:nth-child(6n+4) { --dot: var(--orange); }
.promises li:nth-child(6n+5) { --dot: var(--purple); }
.promises li:nth-child(6n+6) { --dot: var(--green); }

/* Policy pages: a slim teal band with the icon, so they still feel like the game. */
.band {
	background: linear-gradient(90deg, var(--teal-top), var(--teal-deep));
	padding: 12px 16px;
}
.band a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--paper);
	font-weight: 800;
	font-size: 1.2rem;
	text-decoration: none;
}
.band img { width: 40px; height: 40px; border-radius: 10px; }

.mail {
	display: inline-block;
	font-size: 1.3rem;
	font-weight: 800;
	padding: 10px 22px;
	border-radius: 14px;
	background: var(--mist);
	text-decoration: none;
	color: var(--ink);
	border: 2px solid var(--teal-top);
}

footer {
	border-top: 2px solid var(--mist);
	padding: 20px 16px 32px;
	text-align: center;
	color: var(--ink-soft);
	font-size: 1rem;
}
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 6px; }
