/* ==========================================================================
   Home: estilos das seções (carregado só na página inicial)
   1. Hero  1a. Destaques  1b. Abertura  (2. Vídeo: em components.css, seção compartilhada)
   2b. O campeonato  3. Premiação  4. Última edição  5. Ranking  (6. Atalhos: em components.css, seção compartilhada)
   ========================================================================== */

/* ==========================================================================
   1. HERO
   Desktop (≥1024px): mídia em tela cheia, texto à esquerda sobre degradê; a faixa de
   destaques fica logo abaixo, encostada no fim da imagem.
   Celular e tablet em pé: mídia em cima, texto embaixo subindo sobre o degradê.
   ========================================================================== */
.s-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--lpt-bg);
}

.site-main--home .s-bands {
	padding-block: clamp(2.5rem, 4.5vw, 4.5rem);
	background: var(--lpt-bg);
}

/* ---------- Mídia (camadas: pôster final → primeiro quadro → vídeo) ---------- */
.s-hero__media {
	position: absolute;
	inset: 0 0 auto;
	z-index: -1;
	height: 100vh;
	height: 100svh;                       /* a primeira tela; os destaques vêm logo abaixo */
}
.s-hero__media picture,
.s-hero__media img,
.s-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 50%;
}
.s-hero__intro {
	display: none;
	transition: opacity var(--lpt-dur-slow) var(--lpt-ease);
}
.s-hero__video {
	opacity: 0;
	transition: opacity 600ms var(--lpt-ease);
}
.s-hero.is-playing .s-hero__video {
	opacity: 1;
}

/* Degradês: leitura do texto + base escura onde a placa encosta */
.s-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 6, 9, .92) 0, rgba(7, 6, 9, .62) 34%, rgba(7, 6, 9, 0) 62%),
		linear-gradient(0deg, var(--lpt-bg) 0, rgba(7, 6, 9, 0) 28%),
		linear-gradient(180deg, rgba(7, 6, 9, .5) 0, rgba(7, 6, 9, 0) 18%);
	transition: opacity 1.2s var(--lpt-ease);
}

/* ---------- Texto ---------- */
.s-hero__body {
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: calc(var(--lpt-header-h) + clamp(2rem, 6vh, 4.5rem));
	padding-bottom: clamp(2.5rem, 7vh, 5rem);
}
.s-hero__copy {
	max-width: 47.5rem;
}
.s-hero__badge {
	margin-bottom: var(--lpt-space-6);
	background: rgba(7, 6, 9, .45);
}
.s-hero__title {
	font-size: var(--lpt-fs-display);
	line-height: var(--lpt-lh-display);
	letter-spacing: var(--lpt-tracking-display);
}
/* Cada linha é uma janela: o texto sobe de dentro dela na abertura.
   O respiro embaixo evita cortar descendentes (o "p" de Campeonato). */
.s-hero__line {
	display: block;
	overflow: hidden;
	padding-bottom: .12em;
	margin-bottom: -.12em;
}
.s-hero__line > span {
	display: block;
}
.s-hero__lead {
	max-width: 46ch;
	margin-top: var(--lpt-space-6);
	color: var(--lpt-text-muted);
	font-size: var(--lpt-fs-lead);
}
.s-hero__actions {
	margin-top: clamp(1.75rem, 4vh, 2.25rem);
}
/* Timers: um (edição em destaque) ou dois (em andamento + próxima com inscrições abertas).
   Dois: lado a lado, separados por uma linha, com o mesmo tamanho e espaçamento. */
.s-hero__timers {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--lpt-space-6) clamp(1.75rem, 3.2vw, 3rem);
	margin-top: clamp(2.25rem, 6vh, 3.25rem);
}
.s-hero__timers:empty {
	display: none;
}
.c-countdown__kicker {
	margin-bottom: var(--lpt-space-3);
	background: rgba(7, 6, 9, .45);
}
/* Bônus de quem participa, logo abaixo do(s) timer(s): cartão com botão em destaque */
.s-hero__perk {
	display: flex;
	align-items: center;
	gap: var(--lpt-space-4);
	width: fit-content;
	max-width: 44rem;
	margin-top: var(--lpt-space-6);
	padding: .875rem .875rem .875rem 1.125rem;
	border: 1px solid color-mix(in srgb, var(--lpt-violet) 55%, transparent);
	border-radius: var(--lpt-radius-md);
	background: linear-gradient(100deg, color-mix(in srgb, var(--lpt-plum) 70%, transparent), rgba(7, 6, 9, .6) 70%);
	box-shadow: 0 12px 40px -16px color-mix(in srgb, var(--lpt-violet) 60%, transparent);
}
.s-hero__perk-icon {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--lpt-accent-text);
}
.s-hero__perk-text {
	color: var(--lpt-text);
	font-size: var(--lpt-fs-sm);
	line-height: 1.5;
}
.s-hero__perk-text strong {
	color: var(--lpt-text-strong);
	font-weight: var(--lpt-fw-semibold);
}
.s-hero__perk-btn {
	flex: none;
	white-space: nowrap;
}
/* Celular: o botão desce e ocupa a largura do cartão */
@media (max-width: 47.99em) {
	.s-hero__perk {
		flex-wrap: wrap;
		width: 100%;
		padding: 1rem;
	}
	.s-hero__perk-text {
		flex: 1 1 0;
		min-width: 0;
	}
	.s-hero__perk-btn {
		width: 100%;
	}
}
/* Linha entre os dois (só enquanto o primeiro está visível) */
.s-hero__countdown:not([hidden]) + .s-hero__countdown--next {
	padding-left: clamp(1.75rem, 3.2vw, 3rem);
	border-left: 1px solid var(--lpt-line-strong);
}
/* Desktop: os dois lado a lado (sem quebrar linha), com as colunas um pouco mais justas */
@media (min-width: 64em) {
	.s-hero__timers--two {
		flex-wrap: nowrap;
		width: max-content;
		gap: clamp(1.5rem, 2.4vw, 2.25rem);
	}
	.s-hero__timers--two .c-countdown__unit {
		padding-inline: clamp(.625rem, 1.1vw, 1rem);
	}
	/* Com dois timers, os dois diminuem igualmente um degrau (mesmo tamanho e espaçamento),
	   para o conjunto terminar antes do troféu */
	.s-hero__timers--two .c-countdown__value {
		font-size: clamp(1.625rem, 1rem + 1.25vw, 2.25rem);
	}
	.s-hero__timers--two .c-countdown__date {
		max-width: 22ch;
	}
	.s-hero__timers--two .s-hero__countdown:not([hidden]) + .s-hero__countdown--next {
		padding-left: clamp(1.5rem, 2.4vw, 2.25rem);
	}
}
@media (max-width: 47.99em) {
	.s-hero__countdown:not([hidden]) + .s-hero__countdown--next {
		width: 100%;
		padding: var(--lpt-space-5) 0 0;
		border-top: 1px solid var(--lpt-line-strong);
		border-left: 0;
	}
}

/* Entrada simples (quando NÃO há abertura): sobe e aparece em sequência. */
@media (prefers-reduced-motion: no-preference) {
	.s-hero__copy > * {
		animation: lpt-hero-rise .8s var(--lpt-ease-out) both;
	}
	.s-hero__copy > :nth-child(2) { animation-delay: 60ms; }
	.s-hero__copy > :nth-child(3) { animation-delay: 120ms; }
	.s-hero__copy > :nth-child(4) { animation-delay: 180ms; }
	.s-hero__copy > :nth-child(5) { animation-delay: 240ms; }
	.s-hero__copy > :nth-child(6) { animation-delay: 300ms; }
	.s-hero__highlights {
		animation: lpt-hero-fade .8s var(--lpt-ease) .3s both;
	}
}
@keyframes lpt-hero-rise {
	from { opacity: 0; transform: translateY(14px); }
}
@keyframes lpt-hero-fade {
	from { opacity: 0; }
}

/* ==========================================================================
   1a. DESTAQUES (faixa do protótipo)
   Quatro colunas sobre night, separadas por linhas finas: ícone oficial, título e apoio.
   Celular: 2 × 2.
   ========================================================================== */
.s-hero__highlights {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	/* Ultrawide: o fundo e as linhas vão de ponta a ponta, mas as 4 colunas ficam na largura do
	   hero (1600px), alinhadas ao texto acima. Até ~1740px de tela isto é 0. */
	padding-inline: max(0px, calc((100% - var(--lpt-container-wide)) / 2 - var(--lpt-gutter)));
	border-block: 1px solid var(--lpt-line);
	background: var(--lpt-surface);
}
.s-hero__fact {
	display: flex;
	flex-direction: column;
	gap: var(--lpt-space-3);
	min-width: 0;
	padding: var(--lpt-space-6) var(--lpt-space-4) var(--lpt-space-6) var(--lpt-gutter);
}
.s-hero__fact:nth-child(even) {
	padding-left: var(--lpt-space-5);
	border-left: 1px solid var(--lpt-line);
}
.s-hero__fact:nth-child(n + 3) {
	border-top: 1px solid var(--lpt-line);
}
.s-hero__fact-icon {
	width: 28px;
	height: 28px;
	color: var(--lpt-violet-hover);
}
.s-hero__fact-text {
	display: grid;
	gap: 2px;
}
.s-hero__fact-title {
	color: var(--lpt-text-strong);
	font-size: clamp(1rem, .9rem + .55vw, 1.375rem);    /* 16 → 22 */
	font-weight: var(--lpt-fw-semibold);
	letter-spacing: var(--lpt-tracking-tight);
	line-height: var(--lpt-lh-snug);
}
.s-hero__fact-sub {
	color: var(--lpt-text-muted);
	font-size: var(--lpt-fs-xs);
	line-height: 1.45;
}

/* Tablet em diante: uma linha só, 4 colunas */
@media (min-width: 48em) {
	.s-hero__highlights {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.s-hero__fact,
	.s-hero__fact:nth-child(even),
	.s-hero__fact:nth-child(n + 3) {
		padding: clamp(1.5rem, 2.6vw, 2rem) var(--lpt-space-4) clamp(1.5rem, 2.6vw, 2rem) clamp(1.25rem, 2.4vw, 2.5rem);
		border-top: 0;
		border-left: 1px solid var(--lpt-line);
	}
	.s-hero__fact:first-child {
		padding-left: var(--lpt-gutter);
		border-left: 0;
	}
	.s-hero__fact-sub {
		font-size: var(--lpt-fs-sm);
	}
}

/* Desktop: ícone ao lado do texto */
@media (min-width: 75em) {
	.s-hero__fact {
		flex-direction: row;
		align-items: center;
		gap: var(--lpt-space-4);
	}
	.s-hero__fact-icon {
		width: 34px;
		height: 34px;
	}
}

/* Celular e tablet em pé (<1024px): mídia em cima, texto embaixo.
   O texto nunca fica sobre o troféu. */
@media (max-width: 63.99em) {
	.s-hero__media {
		position: relative;
		inset: auto;
		height: min(64svh, 125vw);         /* celular: nunca mais alto que o recorte 4:5 */
	}
	.s-hero__media img,
	.s-hero__video {
		object-position: 50% 40%;
	}
	.s-hero__media::after {
		background:
			linear-gradient(0deg, var(--lpt-bg) 0, rgba(7, 6, 9, .55) 30%, rgba(7, 6, 9, 0) 55%),
			linear-gradient(180deg, rgba(7, 6, 9, .55) 0, rgba(7, 6, 9, 0) 22%);
	}
	.s-hero__body {
		position: relative;
		min-height: 0;
		margin-top: clamp(-7rem, -22vw, -4.5rem); /* o texto sobe sobre o degradê */
		padding-top: 0;
		padding-bottom: var(--lpt-space-10);
	}
	.s-hero__badge {
		margin-bottom: var(--lpt-space-5);
	}
	.s-hero__lead {
		margin-top: var(--lpt-space-5);
	}
}

/* Celular: botões dividem a largura */
@media (max-width: 47.99em) {
	.s-hero__actions .c-btn {
		flex: 1 1 auto;
	}
}

/* Tablet em pé: usa o vídeo/pôster 16:9 (mais resolução); mídia um pouco mais baixa */
@media (min-width: 48em) and (max-width: 63.99em) {
	.s-hero__media {
		height: min(60svh, 90vw);
	}
	.s-hero__media img,
	.s-hero__video {
		object-position: 60% 45%;
	}
	.s-hero__body {
		margin-top: -6rem;
		padding-bottom: var(--lpt-space-12);
	}
}

/* Telas baixas (notebook 1366×768): compacta o respiro vertical */
@media (min-width: 64em) and (max-height: 50em) {
	.s-hero__badge { margin-bottom: var(--lpt-space-4); }
	.s-hero__lead { margin-top: var(--lpt-space-4); }
	.s-hero__timers { margin-top: var(--lpt-space-8); }
}

/* Saída do hero ao rolar (desktop): a imagem desce mais devagar que a página e escurece.
   Só CSS (scroll-driven). Sem suporte (Firefox) ou com movimento reduzido: estático. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 64em) {
		.s-hero__media {
			animation: lpt-hero-exit linear both;
			animation-timeline: view();
			animation-range: exit 0% exit 100%;
		}
	}
}
@keyframes lpt-hero-exit {
	to { translate: 0 22%; opacity: .25; }
}

/* ==========================================================================
   1b. ABERTURA (igual ao protótipo)
   O <head> marca <html class="lpt-hero-intro"> (sem movimento reduzido / economia
   de dados). O JS (views/home.js) controla a sequência com classes no <html>:
     lpt-hero-run    o JS assumiu: esconde tudo e toca o troféu em tela limpa
     lpt-hero-ready  o troféu pousou (ou "Pular"): degradê, menu e textos entram
     lpt-hero-done   entrada concluída: devolve as transições normais dos componentes
   Sem JS: tudo aparece sozinho em 3s (rede de segurança só com CSS).
   Só opacity/transform: nada muda de lugar (CLS zero).
   ========================================================================== */
.lpt-hero-intro .s-hero__intro {
	display: block;
}
.lpt-hero-ready .s-hero__intro,
.lpt-hero-ready .s-hero.is-playing .s-hero__video {
	opacity: 0;                         /* revela o pôster (= último quadro) por baixo */
}

/* A entrada simples dá lugar à sequência da abertura */
.lpt-hero-intro .s-hero__copy > *,
.lpt-hero-intro .s-hero__highlights {
	animation: none;
}

/* Ordem de entrada (--i × 60ms) */
.lpt-hero-intro .c-header__brand { --i: 0; }
.lpt-hero-intro .c-nav__list > li:nth-child(1) { --i: 1; }
.lpt-hero-intro .c-nav__list > li:nth-child(2) { --i: 2; }
.lpt-hero-intro .c-nav__list > li:nth-child(3) { --i: 3; }
.lpt-hero-intro .c-nav__list > li:nth-child(4) { --i: 4; }
.lpt-hero-intro .c-nav__list > li:nth-child(5) { --i: 5; }
.lpt-hero-intro .c-nav__list > li:nth-child(n + 6) { --i: 6; }
.lpt-hero-intro .c-header__actions > * { --i: 6; }
.lpt-hero-intro .s-hero__copy > :nth-child(1) { --i: 2; }
.lpt-hero-intro .s-hero__copy > :nth-child(2) { --i: 3; }
.lpt-hero-intro .s-hero__copy > :nth-child(3) { --i: 4; }
.lpt-hero-intro .s-hero__copy > :nth-child(4) { --i: 5; }
.lpt-hero-intro .s-hero__copy > :nth-child(5) { --i: 6; }
.lpt-hero-intro .s-hero__copy > :nth-child(6) { --i: 7; }
.lpt-hero-intro .s-hero__highlights { --i: 8; }

.lpt-hero-intro:not(.lpt-hero-done) :is(.c-header__brand, .c-nav__list > li, .c-header__actions > *, .s-hero__copy > *, .s-hero__highlights) {
	transition:
		opacity .7s var(--lpt-ease) calc(var(--i, 0) * 60ms + 80ms),
		transform .9s var(--lpt-ease-out) calc(var(--i, 0) * 60ms + 80ms);
}

/* Estado escondido (antes do troféu pousar) */
.lpt-hero-intro:not(.lpt-hero-ready) :is(.c-header__brand, .c-nav__list > li, .c-header__actions > *, .s-hero__copy > *, .s-hero__highlights) {
	opacity: 0;
	transform: translateY(12px);
}
.lpt-hero-intro:not(.lpt-hero-ready) :is(.c-header__brand, .c-nav__list > li, .c-header__actions > *) {
	transform: translateY(-10px);
}
/* Seletores com ".s-hero__copy >" para pesar mais que a lista acima (que tem "li") */
.lpt-hero-intro:not(.lpt-hero-ready) .s-hero__copy > .s-hero__lead {
	transform: translateX(-24px);
}
/* Título: o bloco fica visível; quem se move são as linhas, de dentro da máscara */
.lpt-hero-intro:not(.lpt-hero-ready) .s-hero__copy > .s-hero__title {
	opacity: 1;
	transform: none;
}
.lpt-hero-intro:not(.lpt-hero-ready) .s-hero__line > span {
	transform: translateY(108%);
}
.lpt-hero-intro:not(.lpt-hero-done) .s-hero__line > span {
	transition: transform 1.1s var(--lpt-ease-out) calc(var(--line, 0) * 110ms + 180ms);
}
.lpt-hero-run:not(.lpt-hero-ready) :is(.c-header, .s-hero__body, .s-hero__highlights) {
	pointer-events: none;
}
/* Desktop: tela limpa durante a abertura (no celular o degradê só funde a imagem no fundo) */
@media (min-width: 64em) {
	.lpt-hero-intro:not(.lpt-hero-ready) .s-hero__media::after {
		opacity: 0;
	}
}

/* Rede de segurança sem JS: aparece tudo em 3s */
.lpt-hero-intro:not(.lpt-hero-run):not(.lpt-hero-ready) :is(.c-header__brand, .c-nav__list > li, .c-header__actions > *, .s-hero__copy > *, .s-hero__highlights),
.lpt-hero-intro:not(.lpt-hero-run):not(.lpt-hero-ready) .s-hero__media::after,
.lpt-hero-intro:not(.lpt-hero-run):not(.lpt-hero-ready) .s-hero__line > span {
	animation: lpt-hero-safety 0s linear 3s forwards;
}

/* Movimento reduzido: a abertura roda (o troféu é o conteúdo), mas nada desliza.
   Menu e textos só aparecem com fade quando o troféu pousa. */
@media (prefers-reduced-motion: reduce) {
	.lpt-hero-intro:not(.lpt-hero-ready) :is(.c-header__brand, .c-nav__list > li, .c-header__actions > *, .s-hero__copy > *, .s-hero__highlights, .s-hero__line > span) {
		transform: none;
	}
	.lpt-hero-intro:not(.lpt-hero-ready) .s-hero__copy > .s-hero__lead {
		transform: none;
	}
	.lpt-hero-intro:not(.lpt-hero-ready) .s-hero__copy > .s-hero__title {
		opacity: 0;
	}
}
@keyframes lpt-hero-safety {
	to { opacity: 1; transform: none; }
}

/* "Pular abertura" (só enquanto a abertura roda) */
.s-hero__skip {
	display: none;
}
.lpt-hero-run:not(.lpt-hero-ready) .s-hero__skip {
	position: fixed;
	right: var(--lpt-gutter);
	/* Acima do botão "Suporte LPTrades" (plugin lptrades-suporte-pc: fixo a 20px da base, 54px de altura). */
	bottom: calc(92px + env(safe-area-inset-bottom, 0px));
	z-index: var(--lpt-z-overlay);
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding-inline: 1rem;
	border: 1px solid var(--lpt-line-strong);
	border-radius: var(--lpt-radius-pill);
	background: rgba(7, 6, 9, .5);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--lpt-text-muted);
	font-size: var(--lpt-fs-xs);
	font-weight: var(--lpt-fw-medium);
	cursor: pointer;
	transition: color var(--lpt-dur) var(--lpt-ease), border-color var(--lpt-dur) var(--lpt-ease);
	animation: lpt-hero-fade .4s var(--lpt-ease) 1s both;
}
/* Quanto falta da abertura: a linha enche no tempo do vídeo (--intro-dur vem do JS) */
.s-hero__skip-bar {
	position: absolute;
	right: 1rem;
	bottom: 7px;
	left: 1rem;
	height: 1px;
	overflow: hidden;
	background: var(--lpt-line);
}
.s-hero__skip-bar::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--lpt-lilac);
	transform: scaleX(0);
	transform-origin: left;
	animation: lpt-skip-progress var(--intro-dur, 6s) linear forwards paused;
}
.s-hero.is-playing .s-hero__skip-bar::after {
	animation-play-state: running;
}
@keyframes lpt-skip-progress {
	to { transform: scaleX(1); }
}
.lpt-hero-run:not(.lpt-hero-ready) .s-hero__skip:hover {
	border-color: var(--lpt-lilac);
	color: var(--lpt-text);
}

/* Play da abertura (modo "botão", padrão): só o ícone, no canto do hero.
   Desktop: na mesma altura em que o "Pular abertura" aparece, acima do botão de suporte.
   Celular e tablet em pé: canto superior direito da imagem, abaixo do menu. */
.s-hero__play {
	position: absolute;
	top: calc(var(--lpt-header-h) + var(--lpt-space-3));
	right: var(--lpt-gutter);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--lpt-line-strong);
	border-radius: 50%;
	background: rgba(7, 6, 9, .5);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--lpt-text-strong);
	cursor: pointer;
	transition:
		opacity var(--lpt-dur) var(--lpt-ease),
		visibility 0s linear,
		border-color var(--lpt-dur) var(--lpt-ease),
		background-color var(--lpt-dur) var(--lpt-ease);
	animation: lpt-hero-fade .8s var(--lpt-ease) .6s both;
}
.s-hero__play svg {
	margin-left: 2px;                   /* centro óptico do triângulo */
}
.s-hero__play:hover {
	border-color: var(--lpt-lilac);
	background-color: var(--lpt-violet);
}
@media (min-width: 64em) {
	.s-hero__play {
		top: calc(100vh - 92px - 44px);
		top: calc(100svh - 92px - 44px);
	}
}
/* Enquanto a abertura roda, o play sai (o "Pular abertura" ocupa o canto) */
.lpt-hero-run:not(.lpt-hero-ready) .s-hero__play {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	animation: none;                    /* volta a entrar com fade quando a abertura termina */
	transition: opacity var(--lpt-dur) var(--lpt-ease), visibility 0s linear var(--lpt-dur);
}
/* Abertura pelo play: sem o 1º quadro; o vídeo surge por cima do pôster */
.lpt-hero-replay .s-hero__intro {
	display: none;
}

/* ==========================================================================
   3. PREMIAÇÃO
   Troféu em retrato (canto cortado) + escada de prêmios: o valor encolhe junto com a
   colocação. Celular: o troféu vira uma faixa baixa acima da lista.
   ========================================================================== */
.s-prize__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
}
.s-prize__media {
	--cut: var(--lpt-cut);
	aspect-ratio: 4 / 3;
}
.s-prize__media picture,
.s-prize__img {
	width: 100%;
	height: 100%;
}
.s-prize__img {
	scale: 1.16;                           /* folga para o parallax (data-speed) não mostrar borda */
	object-fit: cover;
	object-position: 50% 12%;            /* celular: a ponta facetada, a parte mais reconhecível */
}

.s-prize__title {
	max-width: 14ch;
	font-size: var(--lpt-fs-h2);
}
.s-prize__lead {
	max-width: 46ch;
	margin-top: var(--lpt-space-5);
	color: var(--lpt-text-muted);
	font-size: var(--lpt-fs-lead);
}

/* Escada: colocação | valor | complemento */
.s-prize__list {
	margin-top: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--lpt-line);
}
.s-prize__tier {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: var(--lpt-space-1) var(--lpt-space-4);
	padding-block: var(--lpt-space-4);
	border-top: 1px solid var(--lpt-line);
}
.s-prize__place {
	grid-column: 1 / -1;
	color: var(--lpt-text-muted);
	font-size: var(--lpt-fs-sm);
	font-weight: var(--lpt-fw-medium);
}
.s-prize__amount {
	color: var(--lpt-text);
	font-size: var(--amount, var(--lpt-fs-h4));
	font-weight: var(--lpt-fw-semibold);
	line-height: 1;
	letter-spacing: var(--lpt-tracking-heading);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.s-prize__extra {
	color: var(--lpt-text-muted);
	font-size: var(--lpt-fs-sm);
	text-align: right;
}

/* Variante "cena larga" (protótipo): quadro final do hero, troféu à direita do recorte, sem moldura.
   O cenário escuro e desfocado se funde ao fundo da página. */
.s-prize__media--scene {
	align-self: center;
	aspect-ratio: 16 / 10;
	background: var(--lpt-bg);
}
.s-prize__media--scene .s-prize__img {
	scale: 1;                              /* sem parallax nesta variante: a cena aparece inteira */
	object-position: 68% 50%;
}
@media (min-width: 48em) {
	.s-prize__media.s-prize__media--scene {
		aspect-ratio: 16 / 10;
	}
	.s-prize__media--scene .s-prize__img {
		object-position: 68% 50%;
	}
}
@media (max-width: 47.99em) {
	.s-prize__media--scene .s-prize__img {
		object-position: 64% 50%;
	}
}

/* Escala dos valores: 1º > 2º > 3º > demais */
.s-prize__tier--1 { --amount: clamp(2.25rem, 1.6rem + 2.9vw, 3.75rem); padding-block: var(--lpt-space-5) var(--lpt-space-6); }
.s-prize__tier--2 { --amount: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
.s-prize__tier--3 { --amount: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem); }
.s-prize__tier--4 { --amount: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); }
.s-prize__tier--1 .s-prize__place {
	color: var(--lpt-accent-text);
}
.s-prize__tier--1 .s-prize__amount {
	color: var(--lpt-text-strong);
}

.s-prize__note {
	margin-top: var(--lpt-space-4);
	color: var(--lpt-text-subtle);
	font-size: var(--lpt-fs-xs);
}
.s-prize__actions {
	align-items: center;
	margin-top: clamp(2rem, 4vw, 2.75rem);
}

@media (max-width: 47.99em) {
	.s-prize__actions .c-btn {
		flex: 1 1 100%;
	}
	.s-prize__actions .c-link {
		margin-inline: auto;
	}
}

/* Tablet em diante: troféu ao lado, em retrato */
@media (min-width: 48em) {
	.s-prize__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: center;
	}
	.s-prize__media {
		--cut: var(--lpt-cut-lg);
		aspect-ratio: 4 / 5;
	}
	.s-prize__img {
		object-position: 50% 50%;
	}
	/* Colocação numa coluna fixa à esquerda: os valores alinham numa só linha vertical.
	   O complemento fica embaixo do valor (cabe em qualquer largura, sem sobrepor). */
	.s-prize__tier {
		grid-template-columns: 8.5rem minmax(0, 1fr);
		column-gap: var(--lpt-space-6);
	}
	.s-prize__place {
		grid-column: auto;
	}
	.s-prize__extra {
		grid-column: 2;
		margin-top: var(--lpt-space-1);
		text-align: left;
	}
}

@media (min-width: 64em) {
	.s-prize__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		column-gap: clamp(4rem, 7vw, 7.5rem);
	}
	.s-prize__tier {
		grid-template-columns: 10rem minmax(0, 1fr);
	}
}

/* ==========================================================================
   4. ÚLTIMA EDIÇÃO (estrutura do protótipo)
   Cabeçalho, pódio centralizado (máx. 1000px) e a grade de edições anteriores.
   ========================================================================== */
.s-edition__podium {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(.5rem, 1.4vw, 1.125rem);
	max-width: 1000px;
	height: clamp(18.75rem, 34vw, 27.5rem);   /* 300 → 440 */
	margin-inline: auto;
}

/* Troca de edição (JS): o pódio novo entra com um fade curto, mostrando o que mudou */
.s-edition__podium.is-swapping .c-step {
	animation: lpt-hero-fade var(--lpt-dur-slow) var(--lpt-ease) both;
}
.s-edition__podium.is-swapping .c-step--2 { animation-delay: 60ms; }
.s-edition__podium.is-swapping .c-step--3 { animation-delay: 120ms; }

.s-edition__subtitle {
	margin-top: 3.5rem;
	font-size: 1.375rem;
	letter-spacing: var(--lpt-tracking-tight);
}
.s-edition__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 10px;
	margin-top: 1.25rem;
}
.s-edition__link {
	display: flex;
	justify-content: center;
	padding: .875rem .5rem;
	border: 1px solid var(--lpt-line);
	border-radius: 14px 4px 14px 4px;     /* eco do monograma */
	background: var(--lpt-bg);            /* fundo sólido: a malha da seção não aparece através do botão */
	color: var(--lpt-text-muted);
	font-size: var(--lpt-fs-sm);
	font-weight: var(--lpt-fw-medium);
	text-decoration: none;
	white-space: nowrap;
	transition:
		color var(--lpt-dur) var(--lpt-ease),
		border-color var(--lpt-dur) var(--lpt-ease),
		background-color var(--lpt-dur) var(--lpt-ease);
}
.s-edition__link:hover,
.s-edition__link[aria-current='true'] {
	border-color: var(--lpt-lilac);
	background: #1a0f2b;                  /* = violeta a 14% sobre o fundo, já misturado (opaco) */
	background: color-mix(in srgb, var(--lpt-violet) 14%, var(--lpt-bg));
	color: var(--lpt-text);
}
.s-edition__list .is-special {
	grid-column: span 2;
}
.s-edition__list .is-special .s-edition__link {
	border-color: rgba(183, 148, 255, .4);
	color: var(--lpt-accent-text);
}

@media (max-width: 56.24em) {
	.s-edition__list .is-special {
		grid-column: span 1;
	}
}

/* ==========================================================================
   5. RANKING (estrutura do protótipo)
   Fundo night; abas em pílula; tabela # | Trader | Edições | Resultado.
   ========================================================================== */
/* Abas à esquerda; "Ver ranking total" (link para a página) na ponta direita da mesma linha. */
.s-ranking__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 1.625rem;
}
.s-ranking__bar .c-tabs {
	margin-bottom: 0;
}
.s-ranking__all {
	margin-left: auto;
	color: var(--lpt-text);
	text-decoration: none;
}
.s-ranking__all span {
	display: inline-block;
	margin-left: .25rem;
	color: var(--lpt-accent-text);
	transition: transform var(--lpt-dur) var(--lpt-ease);
}
.s-ranking__all:hover span,
.s-ranking__all:focus-visible span {
	transform: translate(2px, -2px);
}
@media (max-width: 35em) {
	.s-ranking__all {
		margin-left: 0;
	}
}
.s-ranking__panel:focus-visible {
	outline-offset: 8px;
}
.s-ranking__note {
	margin-top: 1.125rem;
	color: var(--lpt-text-muted);
	font-size: var(--lpt-fs-xs);
}

/* ==========================================================================
   2b. O CAMPEONATO (seção clara do protótipo)
   Texto à esquerda; monograma LP gigante e quase transparente sangrando à direita.
   ========================================================================== */
.s-about {
	overflow: hidden;
	isolation: isolate;
}
.s-about__mark {
	position: absolute;
	top: 50%;
	/* Ultrawide: acompanha o conteúdo em vez de colar na borda da tela (até ~1580px: -6%) */
	right: max(-6%, calc(50% - var(--lpt-container) / 2 - 10rem));
	z-index: -1;
	width: min(52vw, 640px);
	height: auto;
	aspect-ratio: 289.78 / 273.78;
	color: #e3ddf3;                                                      /* reserva */
	color: color-mix(in srgb, var(--lpt-plum) 9%, var(--lpt-mist));      /* plum quase sumindo no mist */
	fill: currentColor;
	transform: translateY(-50%);
	pointer-events: none;
}
.s-about__copy {
	position: relative;
	max-width: 40rem;
}
.s-about__title {
	font-size: var(--lpt-fs-h2);
}
.s-about__text {
	max-width: 52ch;
	margin-top: var(--lpt-space-5);
	color: var(--lpt-text-muted);
	font-size: var(--lpt-fs-lead);
}

@media (max-width: 47.99em) {
	.s-about__mark {
		top: auto;
		right: -18%;
		bottom: -12%;
		width: 78vw;
		transform: none;
	}
}

/* Parallax discreto: o monograma anda um pouco mais devagar que a página. Só CSS. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.s-about__mark {
			animation: lpt-about-drift linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}
	}
}
@keyframes lpt-about-drift {
	from { translate: 0 8%; }
	to { translate: 0 -8%; }
}
