/* YARAG landing page — mirrors the game's card aesthetic: the REAL card-frame
 * PNG as the panel border, the game's parchment/ink/gold palette, and the
 * Pixel Operator font (CC0), all rendered with hard pixels. */

@font-face {
	font-family: "PixelOperator";
	src: url("assets/PixelOperator.ttf") format("truetype");
	font-weight: normal;
}
@font-face {
	font-family: "PixelOperator";
	src: url("assets/PixelOperator-Bold.ttf") format("truetype");
	font-weight: bold;
}

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

html, body { height: 100%; }

body {
	background: #1a1e28;
	background-image: radial-gradient(ellipse at 50% 20%, #232937 0%, #1a1e28 65%);
	color: #e9dbb1;
	font-family: "PixelOperator", monospace;
	-webkit-font-smoothing: none;
	font-smooth: never;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 12px;
}

img { image-rendering: pixelated; }

/* The panel IS a card: the game's frame PNG as a 9-slice border over parchment. */
.card {
	width: min(440px, 100%);
	min-width: 0;
	background: #e9dbb1 padding-box;
	border: 44px solid transparent;
	border-image: url("assets/card_frame.png") 26 stretch;
	image-rendering: pixelated;
	padding: 8px 18px 18px;
	text-align: center;
	color: #3a3222;
}

h1 {
	font-size: 56px;
	font-weight: bold;
	letter-spacing: 4px;
	color: #232937;
	line-height: 1;
}

.tag {
	font-size: 20px;
	color: #6b6250;
	margin: 6px 0 22px;
}

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: inherit;
	font-weight: bold;
	text-decoration: none;
	border: 3px solid #232937;
	box-shadow: 0 4px 0 #232937;
	padding: 14px 10px;
	margin: 0 auto;
}
.btn:active { transform: translateY(4px); box-shadow: none; }

.btn.play {
	background: #c9a227;
	color: #232937;
	font-size: 28px;
	width: 100%;
}
.btn.play:hover { background: #d9b23a; }

.hint {
	font-size: 16px;
	color: #6b6250;
	margin: 10px 0 24px;
}

.downloads {
	display: flex;
	gap: 12px;
	justify-content: center;
}

.btn.dl {
	background: #232937;
	color: #e9dbb1;
	border-color: #c9a227;
	box-shadow: 0 4px 0 #0e1016;
	font-size: 20px;
	flex: 1;
}
.btn.dl:hover { background: #2c3648; }

.foot {
	margin-top: 22px;
	font-size: 16px;
	color: #6b6250;
}
.foot code { font-family: inherit; color: #0e9384; }

@media (max-width: 420px) {
	.card { border-width: 32px; }
	h1 { font-size: 40px; }
	.btn.play { font-size: 22px; }
	.downloads { flex-direction: column; }
}
