/* Tanafos - live public games listing. Added 2026-09-15.
   Reuses the site tokens from tanafos-landing.css (--tn-*) with fallbacks so
   the block still renders correctly if that stylesheet ever changes. */

.tn-live-games {
	padding-block: clamp(32px, 5vw, 56px);
	background: var(--tn-paper, #f7faf8);
}

.tn-live-games__h {
	margin: 0 0 8px;
	font-family: "Bebas Neue", Impact, sans-serif;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: var(--tn-ink, #071b16);
}

.tn-live-games__lead {
	margin: 0 0 4px;
	max-width: 62ch;
	color: var(--tn-muted, #526a61);
	font-size: 16px;
	line-height: 1.55;
}

.tn-live-games__preview {
	display: inline-block;
	margin: 12px 0 0;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--tn-sun, #ffe58c);
	color: #4a3a00;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.tn-live-games__stamp {
	margin: 10px 0 20px;
	color: var(--tn-muted, #526a61);
	font-size: 13px;
	min-height: 1em;
}

.tn-live-games__stamp::before {
	content: "";
	display: inline-block;
	inline-size: 8px;
	block-size: 8px;
	margin-inline-end: 8px;
	border-radius: 50%;
	background: var(--tn-grass, #00ae68);
	vertical-align: middle;
}

/* ---- grid ---- */

.tn-game-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.tn-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.tn-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- card ---- */

.tn-game-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 24px;
	background: var(--tn-white, #fff);
	box-shadow: 0 1px 2px rgba(7, 27, 22, 0.05), 0 12px 28px rgba(7, 27, 22, 0.08);
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tn-game-card:hover,
.tn-game-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(7, 27, 22, 0.06), 0 18px 38px rgba(7, 27, 22, 0.13);
}

.tn-game-card:focus-visible {
	outline: 3px solid var(--tn-focus, #006b47);
	outline-offset: 2px;
}

.tn-game-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tn-mist, #ebf4ef);
}

.tn-game-card__media img,
.tn-game-card__ph {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
}

.tn-game-card__badges {
	position: absolute;
	inset-block-end: 12px;
	inset-inline-start: 12px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.tn-game-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tn-white, #fff);
	color: var(--tn-ink, #071b16);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(7, 27, 22, 0.16);
}

.tn-game-card__badge--muted {
	background: rgba(255, 255, 255, 0.92);
	color: var(--tn-muted, #526a61);
	font-weight: 600;
}

.tn-game-card__badge .tn-game-card__ico {
	inline-size: 13px;
	block-size: 13px;
	color: var(--tn-grass, #00ae68);
}

.tn-game-card__tag--community {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--tn-forest, #0a4032);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.tn-game-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.tn-game-card__title {
	display: block;
	overflow: hidden;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tn-ink, #071b16);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.tn-game-card__row {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--tn-muted, #526a61);
	font-size: 14px;
	line-height: 1.4;
}

.tn-game-card__row .tn-game-card__ico {
	flex: 0 0 auto;
	inline-size: 16px;
	block-size: 16px;
	color: var(--tn-muted, #526a61);
}

.tn-game-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-block-start: 6px;
	padding-block-start: 14px;
	border-block-start: 1px solid var(--tn-line, #cfe0d7);
}

.tn-game-card__avail {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tn-game-card__pill {
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--tn-mist, #ebf4ef);
	color: var(--tn-muted, #526a61);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.tn-game-card__pill--full {
	background: #fdecec;
	color: #a3282b;
}

.tn-game-card__spots {
	color: var(--tn-muted, #526a61);
	font-size: 12px;
	white-space: nowrap;
}

.tn-game-card__spots.is-low {
	color: var(--tn-focus, #006b47);
	font-weight: 700;
}

.tn-game-card__price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	white-space: nowrap;
}

.tn-game-card__price b {
	font-size: 19px;
	font-weight: 700;
	color: var(--tn-ink, #071b16);
}

.tn-game-card__price small {
	font-size: 12px;
	color: var(--tn-muted, #526a61);
}

/* ---- empty state ---- */

.tn-live-games__empty {
	padding: 28px 24px;
	border-radius: 24px;
	background: var(--tn-mint, #e7f9f2);
	text-align: center;
}

.tn-live-games__empty-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: var(--tn-ink, #071b16);
}

.tn-live-games__empty-body {
	margin: 0 0 18px;
	color: var(--tn-muted, #526a61);
	font-size: 15px;
}

/* ---- homepage compact mount ---- */

.tn-honest-state .tn-live-mini {
	display: grid;
	gap: 12px;
	margin-block-start: 14px;
}

@media (min-width: 720px) {
	.tn-honest-state .tn-live-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tn-live-mini__card {
	display: block;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--tn-white, #fff);
	border: 1px solid var(--tn-line, #cfe0d7);
	color: inherit;
	text-decoration: none;
}

.tn-live-mini__card:hover { border-color: var(--tn-grass, #00ae68); }

.tn-live-mini__name {
	display: block;
	overflow: hidden;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--tn-ink, #071b16);
}

.tn-live-mini__meta {
	display: block;
	margin-block-start: 4px;
	color: var(--tn-muted, #526a61);
	font-size: 13px;
}

.tn-live-mini__foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-block-start: 8px;
	font-size: 13px;
}

.tn-live-mini__price { font-weight: 700; color: var(--tn-ink, #071b16); }

.tn-live-mini__all {
	display: inline-block;
	margin-block-start: 12px;
	font-weight: 700;
	color: var(--tn-focus, #006b47);
}

.tn-live-mini__preview {
	display: inline-block;
	margin-block-start: 10px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--tn-sun, #ffe58c);
	color: #4a3a00;
	font-size: 11px;
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.tn-game-card { transition: none; }
	.tn-game-card:hover, .tn-game-card:focus-visible { transform: none; }
}
