@font-face {
	font-family: "Aktifo-A";
	src: url("../../src/font.woff") format("woff");
}

@font-face {
	font-family: "Aktifo-A-Bold";
	src: url("../../src/Aktifo-A-Bold.woff") format("woff");
}

:root {
	--blue: #100047;
	--blue-soft: #1e213c;
	--pink: #e236fe;
	--yellow: #f1de00;
	--cyan: #1de0ff;
	--white: #fff;
	--muted: rgba(255, 255, 255, 0.74);
	--panel: rgba(255, 255, 255, 0.1);
	--panel-strong: rgba(255, 255, 255, 0.16);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	color: var(--white);
	font-family: "Aktifo-A", Arial, sans-serif;
	background:
		radial-gradient(circle at 18% 12%, rgba(226, 54, 254, 0.34), transparent 24rem),
		radial-gradient(circle at 88% 14%, rgba(241, 222, 0, 0.18), transparent 18rem),
		linear-gradient(150deg, #09002c 0%, #1d0748 46%, #4c1582 100%);
	overflow-x: hidden;
}

button,
input {
	font: inherit;
}

.game-shell {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 18px;
	min-height: 100vh;
	padding: 22px;
}

.game-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.game-title {
	display: grid;
	gap: 4px;
}

.game-kicker {
	color: var(--yellow);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h1 {
	margin: 0;
	font-family: "Aktifo-A-Bold", Arial, sans-serif;
	font-size: clamp(30px, 6vw, 54px);
	line-height: 0.95;
}

.game-title p {
	max-width: 520px;
	margin: 0;
	color: var(--muted);
	line-height: 1.4;
}

body.embedded .game-shell {
	min-height: auto;
	padding: 16px;
}

body.embedded .game-title p {
	max-width: 560px;
}

.stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.stat {
	min-width: 92px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	background: var(--panel);
	text-align: center;
}

.stat span {
	display: block;
	color: var(--yellow);
	font-family: "Aktifo-A-Bold", Arial, sans-serif;
	font-size: 22px;
	line-height: 1;
}

.stat small {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
}

.game-card {
	position: relative;
	display: grid;
	align-content: start;
	gap: 16px;
	overflow: hidden;
	min-height: 460px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	background: rgba(8, 0, 34, 0.55);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.btn {
	min-height: 42px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	color: #111;
	background: var(--yellow);
	box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
	font-family: "Aktifo-A-Bold", Arial, sans-serif;
	cursor: pointer;
}

.btn.secondary {
	color: var(--white);
	background: rgba(255, 255, 255, 0.16);
	box-shadow: none;
}

.btn:active {
	transform: translateY(2px);
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.message {
	min-height: 28px;
	color: var(--yellow);
	font-family: "Aktifo-A-Bold", Arial, sans-serif;
	font-size: 18px;
}

.play-area {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		rgba(255, 255, 255, 0.06);
	background-size: 28px 28px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.confetti-piece {
	position: fixed;
	top: -14px;
	z-index: 20;
	width: 10px;
	height: 18px;
	border-radius: 3px;
	pointer-events: none;
	animation: confetti-fall 1.3s ease-in forwards;
}

@keyframes confetti-fall {
	to {
		transform: translate3d(24px, 110vh, 0) rotate(420deg);
		opacity: 0;
	}
}

@media (max-width: 720px) {
	.game-shell {
		padding: 14px;
	}

	.game-top {
		align-items: stretch;
		flex-direction: column;
	}

	.stats {
		justify-content: flex-start;
	}

	.stat {
		min-width: 82px;
	}
}
