/* Racklet site. Values from branding/tokens.json. */

@font-face { font-family: "Luckiest Guy"; src: url("/assets/luckiest-guy.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fredoka-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/nunito-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
	--ink: #1E1240; --violet: #7A3CFF; --violet-light: #9B6BFF; --violet-deep: #4B1FB8;
	--lime: #B8F53A; --lime-deep: #6FB800; --gold: #FFC83D; --gold-deep: #E09A00;
	--pink: #FF4F9A; --sky: #3CC8FF; --cloud: #FFF7EA; --white: #FFFFFF;
	--display: "Luckiest Guy", "Arial Black", sans-serif;
	--heading: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
	--body: "Nunito", system-ui, sans-serif;
	--outline: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cloud); color: var(--ink); font: 800 18px/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero {
	background: radial-gradient(circle at 50% 0%, var(--violet-light), var(--violet) 65%);
	border-bottom: var(--outline);
	color: var(--white);
	text-align: center;
	padding: 56px 0 64px;
	overflow: hidden;
}
.hero h1 { margin: 0 auto; max-width: 640px; }
.tagline { font: 400 clamp(28px, 5vw, 44px)/1.1 var(--display); margin: 20px 0 8px; color: var(--gold); text-shadow: 0 3px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); }
.lead { max-width: 34ch; margin: 0 auto 28px; font-size: 20px; }

/* Buttons: face, Ink outline, Deep lip */
.btn {
	--face: var(--lime); --lip: var(--lime-deep);
	display: inline-block; font: 600 22px/1 var(--heading); color: var(--ink); text-decoration: none;
	background: var(--face); border: var(--outline); border-radius: 12px; padding: 14px 26px;
	box-shadow: 0 6px 0 var(--lip), 0 6px 0 3px var(--ink);
	cursor: pointer; transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--lip), 0 2px 0 3px var(--ink); }
.btn:focus-visible, .toy-mark:focus-visible { outline: 4px solid var(--sky); outline-offset: 4px; }
.btn.gold { --face: var(--gold); --lip: var(--gold-deep); }
.btn:disabled { filter: saturate(.35); opacity: .75; cursor: not-allowed; transform: none; }

/* Toy: a tiny incremental in the hero */
.toy {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px;
	margin: 48px auto 0; padding: 20px 24px; width: calc(100% - 32px); max-width: 560px;
	background: rgba(30, 18, 64, .35); border: var(--outline); border-radius: 24px;
}
.toy-mark { background: none; border: 0; padding: 0; cursor: pointer; position: relative; touch-action: manipulation; transition: transform .08s ease-out; }
.toy-mark:active { transform: scale(.92); }
.toy-mark img { width: 140px; filter: drop-shadow(0 6px 0 rgba(30, 18, 64, .5)); }
.toy-panel { display: grid; gap: 10px; justify-items: center; min-width: 220px; }
.pill {
	display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white);
	border: 3px solid var(--white); border-radius: 999px; padding: 6px 22px 6px 8px;
	font: 400 34px/1 var(--display); min-width: 170px;
}
.coin { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); border: 3px solid var(--white); box-shadow: inset 0 -4px 0 var(--gold-deep); flex: none; }
.rate { margin: 0; font: 600 17px var(--heading); }
.global { flex-basis: 100%; margin: 0; padding-top: 14px; border-top: 2px dashed rgba(255, 255, 255, .3); font: 600 18px var(--heading); }
.global-note { flex-basis: 100%; margin: -6px 0 0; font: 600 16px var(--heading); color: var(--lime); }
.global strong { display: inline-block; font: 400 26px/1 var(--display); color: var(--gold); letter-spacing: .5px; text-shadow: 0 2px 0 var(--ink); }
.float {
	position: absolute; left: 50%; top: 10%; pointer-events: none;
	font: 400 30px/1 var(--display); color: var(--gold);
	text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 2px 2px var(--ink), -2px 2px var(--ink), 2px -2px var(--ink), -2px -2px var(--ink), 0 4px var(--ink);
	animation: rise .9s ease-out forwards;
}
@keyframes rise { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -60px); opacity: 0; } }
.bump { animation: bump .25s ease-out; }
@keyframes bump { 50% { transform: scale(1.1); } }

/* Sections */
main > .wrap { margin-top: clamp(80px, 12vw, 120px); }
h2 { font: 400 clamp(36px, 6vw, 52px)/1 var(--display); margin: 0 0 8px; }
.section-lead { margin: 0 0 28px; max-width: 56ch; }

.games { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.game {
	--game: var(--violet); --game-deep: var(--violet-deep);
	background: var(--white); border: var(--outline); border-radius: 16px; overflow: hidden;
	box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column;
}
.game-art {
	aspect-ratio: 16 / 9; display: grid; place-items: center; border-bottom: var(--outline);
	background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--game) 55%, white), var(--game) 75%);
}
.game-art svg { width: 78%; }
.game-body { padding: 16px 20px 22px; }
.game h3 { font: 400 32px/1 var(--display); margin: 10px 0 6px; }
.game p { margin: 0; font-size: 17px; }
.tag { display: inline-block; font: 600 14px/1 var(--heading); text-transform: uppercase; letter-spacing: 1px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lime); }
.coin-pit { --game: var(--gold); --game-deep: var(--gold-deep); }
.locked { --game: #B9B4C7; --game-deep: #8C86A0; }
.locked .tag { background: var(--cloud); }
.locked .game-art span { font: 400 88px/1 var(--display); color: var(--white); text-shadow: 0 5px 0 var(--ink); -webkit-text-stroke: 3px var(--ink); }
.locked h3, .locked p { opacity: .7; }

.about p { max-width: 60ch; }

footer { margin-top: 72px; background: var(--ink); color: var(--cloud); padding: 32px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer img { width: 200px; }
footer p { margin: 0; font-size: 15px; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.float, .bump { animation: none; }
	.float { display: none; }
}
