/* Shard.games — landing (base: forum.css + painel.css) */

.shard-page .shard-app {
	min-height: 100vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.shard-page .shard-app__content {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
}

/* Rodapé fora do .forum-wrap: colado às bordas da viewport (sem recuo do wrap) */
.shard-page .shard-app__content > .shard-footer {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
	flex-shrink: 0;
}

/* Vídeo de fundo (YouTube) */
.shard-video-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.shard-video-bg__wrap {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100vw;
	height: 56.25vw;
	min-width: 177.78vh;
	min-height: 100vh;
	transform: translate(-50%, -50%);
}

.shard-video-bg__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}

.shard-video-bg__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse 120% 80% at 50% 20%, rgba(18, 18, 18, 0.45) 0%, rgba(18, 18, 18, 0.82) 55%, rgba(10, 10, 12, 0.92) 100%),
		rgba(10, 10, 12, 0.55);
	pointer-events: none;
}

body.shard-page--video-bg.painel-body-root {
	background-color: #0a0a0c;
	background-image: none;
}

.shard-topbar {
	position: sticky;
	top: 0;
	z-index: 500;
	padding: 12px 16px 0;
}

.shard-topbar__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 12px 20px;
	background: var(--header-bar-bg);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--header-border);
	border-radius: 16px;
	box-shadow: var(--header-shadow);
}

.shard-topbar__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.shard-main {
	flex: 1;
	width: 100%;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 28px 16px 56px;
}

.shard-games__title {
	margin: 0 0 8px;
}

.shard-games__hint {
	margin: 0 0 16px;
	font-size: 13px;
}

.shard-games__empty {
	margin: 0;
	padding: 20px 0;
}

/* Flex: centraliza linhas com poucos cards (evita alinhamento à esquerda do grid auto-fill) */
.shard-games__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 16px;
	margin-top: 8px;
}

.shard-games__grid > .shard-game-card.feature-card {
	flex: 0 1 260px;
	width: min(100%, 280px);
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.shard-game-card {
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shard-game-card:not(.shard-game-card--disabled):hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.shard-game-card--disabled {
	opacity: 0.75;
	cursor: default;
}

.shard-game-card__visual {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #0a0a0c;
	overflow: hidden;
}

.shard-game-card__static,
.shard-game-card__mini {
	position: absolute;
	inset: 0;
	transition: opacity 0.22s ease;
}

.shard-game-card__static {
	z-index: 1;
}

.shard-game-card__mini {
	z-index: 2;
	opacity: 0;
	background: #0a0a0c;
	pointer-events: none;
}

.shard-game-card--has-mini-video.shard-game-card--mini-ready .shard-game-card__static {
	opacity: 0;
}

.shard-game-card--has-mini-video.shard-game-card--mini-ready .shard-game-card__mini {
	opacity: 1;
}

.shard-game-card__static-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shard-game-card__mini-frame,
.shard-game-card__mini-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
	object-fit: cover;
}

.shard-game-card__yt-root {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.shard-game-card__yt-root iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}

.shard-game-card__placeholder.shard-game-card__static-img {
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

.shard-game-card__placeholder.shard-game-card__static-img::after {
	content: "";
	width: 48px;
	height: 48px;
	border-radius: 10px;
	border: 1px dashed var(--border);
	opacity: 0.6;
}

.shard-game-card .feature-card__cap.shard-game-card__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.shard-game-card__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.shard-game-card .shard-game-card__title {
	margin: 0 0 0;
	font-size: 14px;
	line-height: 1.3;
}

.shard-game-card__tag {
	display: inline-block;
	max-width: 100%;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--header-accent);
	background: rgba(126, 184, 218, 0.12);
	border: 1px solid rgba(126, 184, 218, 0.35);
	line-height: 1.35;
}

.shard-game-card__version {
	display: inline-block;
	max-width: 100%;
	padding: 6px 11px;
	border-radius: var(--radius);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--text-muted);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.shard-game-card .feature-card__cap span.shard-game-card__tag,
.shard-game-card .feature-card__cap span.shard-game-card__version,
.shard-game-card__badges .shard-game-card__tag,
.shard-game-card__badges .shard-game-card__version {
	margin-top: 0;
}

/* ——— Footer ——— */
.shard-footer {
	margin-top: auto;
	padding: 28px 16px 32px;
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.shard-footer__inner {
	max-width: var(--max-w);
	margin: 0 auto;
	text-align: center;
}

.shard-footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 4px;
	margin: 0 0 18px;
	font-size: 13px;
}

.shard-footer__shard-brand {
	display: flex;
	justify-content: center;
	margin: 0 0 18px;
	padding: 4px 0 0;
}

.shard-footer__shard-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	opacity: 0.9;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.shard-footer__shard-link:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.shard-footer__shard-logo {
	display: block;
	height: auto;
	width: auto;
	max-width: min(200px, 60vw);
	max-height: 36px;
	object-fit: contain;
}

.shard-footer__link {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 500;
	padding: 4px 6px;
	border-radius: 6px;
	transition: color 0.15s ease, background 0.15s ease;
}

.shard-footer__link:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.04);
}

.shard-footer__link--accent {
	color: var(--header-accent);
}

.shard-footer__link--accent:hover {
	color: #fff;
	background: rgba(126, 184, 218, 0.12);
}

.shard-footer__sep {
	color: var(--border);
	user-select: none;
	padding: 0 2px;
}

.shard-footer__sep--wide {
	display: none;
}

@media (min-width: 640px) {
	.shard-footer__sep--wide {
		display: inline;
		padding: 0 10px;
	}
}

.shard-footer__copy {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.02em;
}
