/* Páginas internas — visual alinhado ao home */

.page-hero {
	position: relative;
	padding: 48px 0 36px;
	text-align: center;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(255, 120, 30, 0.12), transparent 55%),
		linear-gradient(180deg, rgba(8, 4, 14, 0.4), transparent 70%);
	border-bottom: 1px solid rgba(255, 180, 80, 0.1);
}

.page-kicker {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 210, 150, 0.72);
}

.page-title {
	margin: 0 0 12px;
	font-family: var(--font-display);
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--gold);
	text-shadow:
		0 2px 0 rgba(0, 0, 0, 0.55),
		0 0 24px rgba(232, 195, 106, 0.28);
}

.page-lead {
	margin: 0 auto;
	max-width: 42em;
	font-size: 15px;
	color: var(--muted);
}

.page-note {
	position: relative;
	margin: 28px auto 0;
	max-width: 46em;
	padding-top: 18px;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 210, 150, 0.78);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

.page-note::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(220px, 46%);
	height: 2px;
	transform: translateX(-50%);
	border-radius: 1px;
	background: linear-gradient(90deg, transparent, var(--orange), #ffd27a, var(--orange), transparent);
	box-shadow: 0 0 12px rgba(255, 140, 30, 0.4);
}

.page-section {
	padding: 44px 0 56px;
}

.page-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	align-items: start;
}

.page-grid-2 {
	grid-template-columns: repeat(2, 1fr);
	align-items: stretch;
}

.page-grid-2 .page-card:not(:has(.page-card-face)) {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.page-grid-2 .page-card:not(:has(.page-card-face)) p {
	flex: 1 1 auto;
}

.page-grid-2 .page-card:not(:has(.page-card-face)) .btn {
	margin-top: auto;
	align-self: flex-start;
}

/* seleção em fila — mesmo espírito da home */
.page-grid.is-selecting .page-card:not(.is-hot) {
	opacity: 0.72;
}

.page-card {
	/* hitbox FIXA — não sobe (evita loop infinito na borda) */
	position: relative;
	z-index: 0;
	padding-top: 10px;
	margin-top: -10px;
	background: transparent;
	border: 0;
	box-shadow: none;
	overflow: visible;
	transition: opacity .35s ease;
}

.page-card-face {
	position: relative;
	top: 0;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(255, 180, 80, 0.16);
	border-radius: 14px;
	background:
		linear-gradient(180deg, rgba(30, 16, 10, 0.65), rgba(12, 8, 18, 0.9));
	box-shadow: var(--shadow);
	transition:
		top .35s cubic-bezier(.22, 1, .36, 1),
		border-color .35s ease,
		box-shadow .35s ease;
}

/* cards sem face (features/store) */
.page-card:not(:has(.page-card-face)) {
	padding: 24px 22px;
	padding-top: 24px;
	margin-top: 0;
	border: 1px solid rgba(255, 180, 80, 0.16);
	background:
		linear-gradient(180deg, rgba(30, 16, 10, 0.65), rgba(12, 8, 18, 0.9));
	box-shadow: var(--shadow);
}

.page-card.is-hot {
	z-index: 2;
	opacity: 1;
}

.page-card.is-hot .page-card-face {
	top: -8px;
	border-color: rgba(255, 180, 80, 0.5);
	box-shadow:
		0 0 0 1px rgba(255, 170, 60, 0.35),
		0 16px 34px rgba(0, 0, 0, 0.55),
		0 0 28px rgba(255, 140, 40, 0.3),
		0 0 60px rgba(255, 120, 20, 0.14);
}

/* brilho na face — não mexe na hitbox */
.page-card.is-hot .page-card-face::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 3;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 200, 120, 0.1) 48%,
		rgba(255, 220, 160, 0.16) 50%,
		rgba(255, 200, 120, 0.1) 52%,
		transparent 70%
	);
	background-size: 220% 100%;
	animation: card-shine 1.6s ease-in-out infinite;
}

.page-card-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 380 / 200;
	overflow: hidden;
	background: #120a1c;
}

.page-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.page-card-badge {
	position: absolute;
	top: 11px;
	right: 11px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	isolation: isolate;
	overflow: hidden;
	padding: 8px 13px 7px 13px;
	border: 1px solid rgba(255, 214, 130, 0.72);
	color: #fff1c2;
	font-family: "LA2BR Font", Cinzel, serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	text-shadow:
		0 0 12px rgba(255, 196, 80, 0.55),
		0 1px 0 rgba(0, 0, 0, 0.7);
	box-shadow:
		0 0 0 1px rgba(255, 230, 170, 0.12) inset,
		0 0 0 1px rgba(90, 40, 8, 0.55),
		0 10px 22px rgba(0, 0, 0, 0.5),
		0 0 22px rgba(255, 150, 40, 0.32);
	background-image:
		linear-gradient(100deg, transparent 32%, rgba(255, 236, 190, 0.28) 48%, rgba(255, 250, 230, 0.45) 50%, rgba(255, 236, 190, 0.28) 52%, transparent 68%),
		linear-gradient(180deg, rgba(255, 236, 190, 0.2) 0%, transparent 38%),
		linear-gradient(135deg, #3a2410 0%, #1a0c12 48%, #12080c 100%);
	background-size: 220% 100%, auto, auto;
	animation: page-card-badge-shine 2.4s ease-in-out infinite;
	pointer-events: none;
}

.page-card-badge::before,
.page-card-badge::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	pointer-events: none;
	z-index: 3;
	border-color: #e8c36a;
	border-style: solid;
	opacity: 0.9;
}

.page-card-badge::before {
	top: 3px;
	left: 3px;
	border-width: 1px 0 0 1px;
}

.page-card-badge::after {
	bottom: 3px;
	right: 3px;
	border-width: 0 1px 1px 0;
}

@keyframes page-card-badge-shine {
	0% { background-position: 120% 0, 0 0, 0 0; }
	50% { background-position: -20% 0, 0 0, 0 0; }
	100% { background-position: 120% 0, 0 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.page-card-badge { animation: none; }
}

/* linha dourada sob a arte no hover */
.page-card.is-hot .page-card-media::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: 0;
	height: 2px;
	pointer-events: none;
	z-index: 2;
	background: linear-gradient(90deg, transparent, var(--orange), #ffd27a, var(--orange), transparent);
	box-shadow: 0 0 12px rgba(255, 140, 30, 0.65);
}

.page-card-media-empty {
	background:
		linear-gradient(135deg, rgba(40, 22, 12, 0.9), rgba(12, 8, 18, 0.95));
}

.page-card-body {
	position: relative;
	z-index: 1;
	padding: 22px 22px 24px;
}

.page-card-num {
	display: inline-block;
	margin-bottom: 12px;
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: 0.16em;
	color: var(--orange);
}

.page-card h2,
.page-card h3 {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: 18px;
	letter-spacing: 0.08em;
	color: var(--gold);
}

.page-card p {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--muted);
	line-height: 1.55;
}

.page-card .btn {
	margin-top: 4px;
}

.page-card-body .page-list {
	margin-top: 4px;
	gap: 8px;
}

.page-card-body .page-list li {
	padding: 10px 12px 10px 34px;
	font-size: 13px;
}

.page-card-body .page-list li::before {
	left: 14px;
	width: 7px;
	height: 7px;
}

/* ---------- Features: rates board + chips ---------- */
.rates-board {
	/* hitbox fixa — evita loop na borda */
	position: relative;
	z-index: 0;
	padding-top: 10px;
	margin-top: -10px;
	background: transparent;
	border: 0;
	box-shadow: none;
	overflow: visible;
}

.rates-board-face {
	position: relative;
	top: 0;
	isolation: isolate;
	overflow: hidden;
	padding: 28px 28px 30px;
	border: 1px solid rgba(255, 180, 80, 0.22);
	background: #120a1c;
	box-shadow:
		var(--shadow),
		inset 0 1px 0 rgba(255, 210, 140, 0.08);
	transition:
		top .35s cubic-bezier(.22, 1, .36, 1),
		border-color .35s ease,
		box-shadow .35s ease;
}

.rates-board:hover .rates-board-face {
	top: -8px;
	border-color: rgba(255, 180, 80, 0.5);
	box-shadow:
		0 0 0 1px rgba(255, 170, 60, 0.35),
		0 16px 34px rgba(0, 0, 0, 0.55),
		0 0 28px rgba(255, 140, 40, 0.3),
		0 0 60px rgba(255, 120, 20, 0.14);
}

.rates-board:hover .rates-board-face::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 3;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 200, 120, 0.1) 48%,
		rgba(255, 220, 160, 0.16) 50%,
		rgba(255, 200, 120, 0.1) 52%,
		transparent 70%
	);
	background-size: 220% 100%;
	animation: card-shine 1.6s ease-in-out infinite;
}

.rates-board-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.rates-board-bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.rates-board-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(8, 4, 14, 0.35) 0%, rgba(8, 4, 14, 0.55) 45%, rgba(8, 4, 14, 0.72) 100%),
		radial-gradient(ellipse at 50% 30%, rgba(255, 140, 40, 0.12), transparent 55%);
}

.rates-board-head,
.rates-board-row {
	position: relative;
	z-index: 1;
}

.rates-board-head {
	text-align: center;
	margin-bottom: 22px;
}

.rates-board-kicker {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 210, 150, 0.65);
}

.rates-board-title {
	margin: 0 0 14px;
	font-family: var(--font-display);
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--gold);
	text-shadow: 0 0 18px rgba(255, 140, 40, 0.25);
}

.rates-board-line {
	display: block;
	width: min(220px, 40%);
	height: 2px;
	margin: 0 auto;
	background: linear-gradient(90deg, transparent, var(--orange), #ffd27a, var(--orange), transparent);
	box-shadow: 0 0 12px rgba(255, 140, 30, 0.45);
}

.rates-board-row {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	align-items: stretch;
}

.rates-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 8px 12px;
	text-align: center;
	position: relative;
}

.rates-item + .rates-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12%;
	bottom: 12%;
	width: 1px;
	background: linear-gradient(180deg, transparent, rgba(255, 180, 80, 0.35), transparent);
}

.rates-item-label {
	font-family: var(--font-display);
	font-size: 11px;
	letter-spacing: 0.2em;
	color: rgba(255, 210, 150, 0.68);
}

.rates-item-value {
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #ffe29a;
	text-shadow:
		0 2px 0 rgba(0, 0, 0, 0.45),
		0 0 22px rgba(255, 140, 40, 0.35);
}

.btn-back-home {
	min-width: 280px;
	gap: 14px;
	padding: 18px 42px;
	font-size: 16px;
	color: #ffe9b8;
	border-radius: 999px;
	background:
		radial-gradient(ellipse at 30% 0%, rgba(255, 200, 120, 0.22), transparent 55%),
		linear-gradient(165deg, rgba(48, 26, 12, 0.98), rgba(14, 8, 18, 0.98) 60%, rgba(10, 6, 14, 0.99));
	box-shadow:
		0 0 0 1px rgba(255, 190, 90, 0.45),
		0 0 0 5px rgba(255, 140, 40, 0.08),
		0 14px 34px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 230, 180, 0.18);
	overflow: visible;
}

.btn-back-home-icon {
	position: relative;
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 30%, rgba(255, 230, 170, 0.35), transparent 60%),
		linear-gradient(160deg, rgba(255, 170, 60, 0.35), rgba(20, 10, 8, 0.6));
	box-shadow:
		0 0 0 1px rgba(255, 200, 100, 0.45),
		0 0 12px rgba(255, 150, 40, 0.25);
	transition: transform .25s ease, box-shadow .25s ease;
}

.btn-back-home-icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	width: 8px;
	height: 8px;
	border-left: 2px solid #ffe0a0;
	border-bottom: 2px solid #ffe0a0;
	transform: translate(-40%, -50%) rotate(45deg);
}

.btn-back-home-text {
	position: relative;
	z-index: 1;
	text-shadow: 0 0 14px rgba(255, 170, 60, 0.35);
}

.btn-back-home .btn-underlight {
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: -10px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, #ffb347, #ffd27a, #ffb347, transparent);
	box-shadow: 0 0 14px rgba(255, 160, 40, 0.7);
	opacity: 0.8;
	z-index: -1;
	pointer-events: none;
}

.btn-back-home:hover {
	color: #fff4d6;
	transform: translateY(-2px);
	box-shadow:
		0 0 0 1px rgba(255, 210, 120, 0.7),
		0 0 0 6px rgba(255, 140, 40, 0.14),
		0 18px 40px rgba(0, 0, 0, 0.5),
		0 0 28px rgba(255, 140, 40, 0.28),
		inset 0 1px 0 rgba(255, 240, 200, 0.28);
}

.btn-back-home:hover .btn-back-home-icon {
	transform: translateX(-3px);
	box-shadow:
		0 0 0 1px rgba(255, 220, 140, 0.7),
		0 0 16px rgba(255, 160, 40, 0.45);
}

.btn-back-home.is-lit {
	animation: btn-shake 0.55s ease-in-out infinite;
}

.page-actions-back {
	margin-top: 8px;
}

/* ---------- Enchant mini cards ---------- */
.enchant-board-head {
	text-align: center;
	margin-bottom: 22px;
}

.enchant-board-kicker {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 210, 150, 0.65);
}

.enchant-board-title {
	margin: 0 0 14px;
	font-family: var(--font-display);
	font-size: clamp(18px, 2.2vw, 22px);
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--gold);
	text-shadow: 0 0 18px rgba(255, 140, 40, 0.25);
}

.enchant-board-line {
	display: block;
	width: min(220px, 40%);
	height: 2px;
	margin: 0 auto;
	border-radius: 1px;
	background: linear-gradient(90deg, transparent, var(--orange), #ffd27a, var(--orange), transparent);
	box-shadow: 0 0 12px rgba(255, 140, 30, 0.45);
	animation: enchant-line-pulse 2.4s ease-in-out infinite !important;
}

@keyframes enchant-line-pulse {
	0%, 100% {
		opacity: 0.55;
		box-shadow: 0 0 8px rgba(255, 140, 30, 0.25);
	}
	50% {
		opacity: 1;
		box-shadow: 0 0 16px rgba(255, 140, 30, 0.55);
	}
}

.enchant-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	align-items: start;
}

.enchant-grid.is-selecting .enchant-card:not(.is-hot) {
	opacity: 0.72;
}

.enchant-card {
	position: relative;
	z-index: 0;
	padding-top: 8px;
	margin-top: -8px;
	background: transparent;
	border: 0;
	box-shadow: none;
	overflow: visible;
	transition: opacity .35s ease;
}

.enchant-card-face {
	position: relative;
	top: 0;
	isolation: isolate;
	overflow: hidden;
	padding: 0;
	text-align: center;
	border: 1px solid rgba(255, 180, 80, 0.2);
	border-radius: 0 0 16px 16px;
	background:
		linear-gradient(180deg, rgba(32, 18, 10, 0.85), rgba(10, 6, 16, 0.96));
	box-shadow: var(--shadow);
	transition:
		top .35s cubic-bezier(.22, 1, .36, 1),
		border-color .35s ease,
		box-shadow .35s ease;
}

.enchant-card-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 380 / 200;
	overflow: hidden;
	background: #120a1c;
}

.enchant-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.enchant-card.is-hot .enchant-card-media::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: 0;
	height: 2px;
	pointer-events: none;
	z-index: 2;
	background: linear-gradient(90deg, transparent, var(--orange), #ffd27a, var(--orange), transparent);
	box-shadow: 0 0 12px rgba(255, 140, 30, 0.65);
}

.enchant-card-body {
	position: relative;
	z-index: 1;
	padding: 16px 16px 18px;
}

.enchant-card-name,
.enchant-card-stats {
	position: relative;
	z-index: 1;
}

.enchant-card.is-hot {
	z-index: 2;
	opacity: 1;
}

.enchant-card.is-hot .enchant-card-face {
	top: -6px;
	border-color: rgba(255, 180, 80, 0.5);
	box-shadow:
		0 0 0 1px rgba(255, 170, 60, 0.35),
		0 14px 28px rgba(0, 0, 0, 0.5),
		0 0 24px rgba(255, 140, 40, 0.28);
}

.enchant-card.is-hot .enchant-card-face::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 200, 120, 0.1) 48%,
		rgba(255, 220, 160, 0.16) 50%,
		rgba(255, 200, 120, 0.1) 52%,
		transparent 70%
	);
	background-size: 220% 100%;
	animation: card-shine 1.6s ease-in-out infinite;
}

.enchant-card-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border: 1px solid rgba(255, 180, 80, 0.35);
	border-radius: 4px;
	background:
		radial-gradient(circle at 50% 40%, rgba(255, 180, 80, 0.22), transparent 70%),
		rgba(8, 4, 14, 0.7);
	box-shadow: 0 0 18px rgba(255, 140, 40, 0.2);
	overflow: hidden;
}

.enchant-card-icon img {
	display: block;
	width: 34px;
	height: 34px;
	object-fit: contain;
	pointer-events: none;
}

.enchant-card-icon:not(:has(img))::before,
.enchant-card-icon-weapon::before,
.enchant-card-icon-armor::before,
.enchant-card-icon-jewels::before {
	content: "";
	display: block;
	background: linear-gradient(180deg, #ffe29a, var(--orange));
	box-shadow: 0 0 10px rgba(255, 140, 40, 0.45);
}

.enchant-card-icon:has(img)::before {
	display: none;
	content: none;
}

.enchant-card-icon-weapon::before {
	width: 4px;
	height: 22px;
	border-radius: 2px;
	transform: rotate(-35deg);
}

.enchant-card-icon-armor::before {
	width: 18px;
	height: 20px;
	border-radius: 4px 4px 8px 8px;
	clip-path: polygon(50% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
}

.enchant-card-icon-jewels::before {
	width: 14px;
	height: 14px;
	transform: rotate(45deg);
	border-radius: 2px;
}

.enchant-card-name {
	margin: 0 0 12px;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--gold);
}

.enchant-card-stats {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 180, 80, 0.15);
}

.enchant-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.enchant-stat-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 210, 150, 0.6);
}

.enchant-stat-safe {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: #7dffa0;
	text-shadow: 0 0 14px rgba(80, 255, 140, 0.35);
}

.enchant-stat-max {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--orange-hot);
	text-shadow: 0 0 14px rgba(255, 140, 40, 0.4);
}

.enchant-stat-sep {
	width: 1px;
	height: 36px;
	background: linear-gradient(180deg, transparent, rgba(255, 180, 80, 0.4), transparent);
}

/* Enchant focus — mesma interação dos events */
.events-enchant {
	position: relative;
}

[data-enchant-focus] .enchant-card {
	cursor: url("../images/cursors/cursor-click.png") 2 0,
		url("../images/cursors/cursor-click.cur") 2 0,
		pointer;
}

.enchant-card-detail {
	display: none;
}

[data-enchant-focus].is-focused {
	position: relative;
	z-index: 4;
	display: block;
	min-height: 320px;
	isolation: isolate;
}

[data-enchant-focus].is-focused::before {
	content: "";
	position: absolute;
	inset: -28px -20px;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 28% 45%, rgba(255, 140, 40, 0.08), transparent 55%),
		rgba(6, 3, 12, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

[data-enchant-focus].is-focused .enchant-card:not(.is-active) {
	position: absolute;
	top: 8px;
	z-index: 1;
	width: 30%;
	opacity: 0.28;
	filter: blur(5px);
	pointer-events: none;
	transform: scale(0.94);
	transition:
		opacity .4s ease,
		filter .4s ease,
		transform .4s ease;
}

[data-enchant-focus].is-focused .enchant-card:not(.is-active):nth-child(1) { left: 0; }
[data-enchant-focus].is-focused .enchant-card:not(.is-active):nth-child(2) { left: 35%; }
[data-enchant-focus].is-focused .enchant-card:not(.is-active):nth-child(3) { left: auto; right: 0; }

[data-enchant-focus].is-focused .enchant-card.is-active {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	gap: 28px;
	align-items: stretch;
	opacity: 1;
	animation: event-focus-in .45s cubic-bezier(.22, 1, .36, 1) both;
}

[data-enchant-focus].is-focused .enchant-card.is-active .enchant-card-face {
	top: -10px;
	align-self: start;
	border-color: transparent;
	box-shadow:
		0 18px 36px rgba(0, 0, 0, 0.6),
		0 0 28px rgba(255, 140, 40, 0.28);
}

[data-enchant-focus].is-focused .enchant-card.is-active .enchant-card-face::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 200, 120, 0.1) 48%,
		rgba(255, 220, 160, 0.16) 50%,
		rgba(255, 200, 120, 0.1) 52%,
		transparent 70%
	);
	background-size: 220% 100%;
	animation: card-shine 1.6s ease-in-out infinite;
}

[data-enchant-focus].is-focused .enchant-card.is-active .enchant-card-detail {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
	padding: 24px 26px 26px;
	border: 0;
	background:
		radial-gradient(ellipse at 12% 0%, rgba(255, 170, 60, 0.14), transparent 42%),
		radial-gradient(ellipse at 100% 100%, rgba(120, 60, 20, 0.18), transparent 45%),
		linear-gradient(155deg, rgba(42, 24, 14, 0.96), rgba(12, 7, 18, 0.98) 55%, rgba(8, 5, 14, 0.99));
	box-shadow:
		0 22px 48px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 190, 90, 0.12),
		inset 0 1px 0 rgba(255, 220, 160, 0.12);
	animation: event-detail-in .5s cubic-bezier(.22, 1, .36, 1) .08s both;
}

[data-enchant-focus].is-focused .enchant-card.is-active .enchant-card-detail::before {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	top: 0;
	height: 2px;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, var(--orange), #ffd27a, var(--orange), transparent);
	box-shadow: 0 0 14px rgba(255, 140, 30, 0.45);
}

[data-enchant-focus].is-focused .enchant-card.is-active .enchant-card-detail::after {
	content: "";
	position: absolute;
	inset: 10px;
	pointer-events: none;
	border: 1px solid rgba(255, 190, 90, 0.08);
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.enchant-rate-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 6px;
	position: relative;
	z-index: 1;
}

.enchant-rate-block {
	position: relative;
	padding: 14px 13px 12px;
	background:
		linear-gradient(180deg, rgba(255, 200, 120, 0.05), transparent 28%),
		rgba(0, 0, 0, 0.34);
	border: 1px solid rgba(255, 180, 80, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.06);
}

.enchant-rate-block::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, currentColor, transparent);
	opacity: 0.85;
}

.enchant-rate-block:has(.enchant-rate-blessed) { color: #9fd4ff; }
.enchant-rate-block:has(.enchant-rate-golden) { color: #ffd27a; }
.enchant-rate-block:has(.enchant-rate-crystal) { color: #c9b6ff; }

.enchant-rate-title {
	margin: 0 0 12px;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-shadow: 0 0 12px currentColor;
}

.enchant-rate-blessed { color: #9fd4ff; }
.enchant-rate-crystal { color: #c9b6ff; }
.enchant-rate-golden { color: #ffd27a; }

.enchant-rate-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.enchant-rate-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding-top: 7px;
	border-top: 1px solid rgba(255, 180, 80, 0.08);
	font-size: 12px;
	line-height: 1.35;
	color: rgba(255, 236, 210, 0.78);
}

.enchant-rate-list li:first-child {
	padding-top: 0;
	border-top: 0;
}

.enchant-rate-list strong {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	color: #7dffa0;
	white-space: nowrap;
	text-shadow: 0 0 10px rgba(125, 255, 160, 0.25);
}

.enchant-rate-block:has(.enchant-rate-golden) .enchant-rate-list strong {
	color: #ffd27a;
	text-shadow: 0 0 10px rgba(255, 210, 122, 0.28);
}

.enchant-rate-block:has(.enchant-rate-blessed) .enchant-rate-list strong {
	color: #9fd4ff;
	text-shadow: 0 0 10px rgba(159, 212, 255, 0.28);
}

.enchant-rate-block:has(.enchant-rate-crystal) .enchant-rate-list strong {
	color: #c9b6ff;
	text-shadow: 0 0 10px rgba(201, 182, 255, 0.28);
}

@media (max-width: 760px) {
	.enchant-grid {
		grid-template-columns: 1fr;
		max-width: 360px;
		margin-inline: auto;
	}

	[data-enchant-focus].is-focused {
		min-height: 0;
		max-width: none;
	}

	[data-enchant-focus].is-focused .enchant-card:not(.is-active) {
		display: none;
	}

	[data-enchant-focus].is-focused .enchant-card.is-active {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	[data-enchant-focus].is-focused .enchant-card.is-active .enchant-card-face {
		top: -6px;
		max-width: 360px;
		margin-inline: auto;
	}

	.enchant-rate-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 980px) and (min-width: 761px) {
	.enchant-rate-grid {
		grid-template-columns: 1fr;
	}

	[data-enchant-focus].is-focused .enchant-card.is-active {
		grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
	}
}

/* ---------- Auto Events — 5 cards em linha ---------- */
.events-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
}

.events-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 980px;
	margin-inline: auto;
}

.events-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	max-width: 1180px;
	margin-inline: auto;
}

.events-grid.castle-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 1040px;
	margin-inline: auto;
}

.castle-grid .event-card {
	padding-top: 6px;
	margin-top: -6px;
}

.castle-grid .event-card-media {
	aspect-ratio: auto;
	height: 118px;
}

.castle-grid .event-card-name {
	margin: 0;
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.08em;
}

.castle-grid .event-card-body {
	padding: 8px 8px 10px;
}

.castle-grid .event-card-meta {
	margin-top: 6px;
	gap: 4px;
}

.castle-grid .event-meta-value {
	font-size: 11px;
	letter-spacing: 0.04em;
}

.castle-grid .event-card.is-castle-off .event-card-face {
	opacity: 0.78;
}

.castle-grid .event-card.is-castle-off .event-meta-value {
	color: #c9a070;
}

.events-grid-3 .event-card-media,
.events-grid-4 .event-card-media {
	aspect-ratio: 16 / 10;
}

.events-grid-3 .event-card-name,
.events-grid-4 .event-card-name {
	font-size: 14px;
	letter-spacing: 0.08em;
}

.events-grid-3 .event-meta-value,
.events-grid-4 .event-meta-value {
	font-size: 12px;
}

.events-grid-3 .event-card-body,
.events-grid-4 .event-card-body {
	padding: 14px 14px 16px;
}

.events-grid.is-selecting .event-card:not(.is-hot) {
	opacity: 0.72;
}

.event-card {
	position: relative;
	z-index: 0;
	padding-top: 8px;
	margin-top: -8px;
	background: transparent;
	border: 0;
	box-shadow: none;
	overflow: visible;
	transition: opacity .35s ease;
}

.event-card-face {
	position: relative;
	top: 0;
	isolation: isolate;
	overflow: hidden;
	border: 1px solid rgba(255, 180, 80, 0.2);
	background:
		linear-gradient(180deg, rgba(32, 18, 10, 0.85), rgba(10, 6, 16, 0.96));
	box-shadow: var(--shadow);
	transition:
		top .35s cubic-bezier(.22, 1, .36, 1),
		border-color .35s ease,
		box-shadow .35s ease;
}

.event-card-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(40, 22, 12, 0.9), rgba(12, 8, 18, 0.95));
}

.event-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.event-card.is-hot .event-card-media::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: 0;
	height: 2px;
	pointer-events: none;
	z-index: 2;
	background: linear-gradient(90deg, transparent, var(--orange), #ffd27a, var(--orange), transparent);
	box-shadow: 0 0 12px rgba(255, 140, 30, 0.65);
}

.event-card-body {
	position: relative;
	z-index: 1;
	padding: 12px 10px 14px;
	text-align: center;
}

.event-card-name {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--gold);
	line-height: 1.2;
}

.event-card-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.event-card-meta li {
	display: grid;
	gap: 2px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 180, 80, 0.12);
}

.event-meta-label {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 210, 150, 0.55);
}

.event-meta-value {
	font-size: 11px;
	line-height: 1.35;
	color: rgba(255, 236, 210, 0.88);
}

.event-card.is-hot {
	z-index: 2;
	opacity: 1;
}

.event-card.is-hot .event-card-face {
	top: -6px;
	border-color: rgba(255, 180, 80, 0.5);
	box-shadow:
		0 0 0 1px rgba(255, 170, 60, 0.35),
		0 14px 28px rgba(0, 0, 0, 0.5),
		0 0 24px rgba(255, 140, 40, 0.28);
}

.event-card.is-hot .event-card-face::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 200, 120, 0.1) 48%,
		rgba(255, 220, 160, 0.16) 50%,
		rgba(255, 200, 120, 0.1) 52%,
		transparent 70%
	);
	background-size: 220% 100%;
	animation: card-shine 1.6s ease-in-out infinite;
}

/* ---------- Events focus — clique: eleva, desfoca e abre info ---------- */
.events-auto,
.events-monthly {
	position: relative;
}

[data-event-focus] .event-card {
	cursor: url("../images/cursors/cursor-click.png") 2 0,
		url("../images/cursors/cursor-click.cur") 2 0,
		pointer;
}

.event-card-detail {
	display: none;
}

[data-event-focus].is-focused {
	position: relative;
	z-index: 4;
	display: block;
	min-height: 320px;
	isolation: isolate;
}

.events-grid-3.is-focused {
	max-width: 980px;
}

.events-grid-4.is-focused {
	max-width: 1180px;
}

[data-event-focus].is-focused::before {
	content: "";
	position: absolute;
	inset: -28px -20px;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 28% 45%, rgba(255, 140, 40, 0.08), transparent 55%),
		rgba(6, 3, 12, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

[data-event-focus].is-focused .event-card:not(.is-active) {
	position: absolute;
	top: 8px;
	z-index: 1;
	opacity: 0.28;
	filter: blur(5px);
	pointer-events: none;
	transform: scale(0.94);
	transition:
		opacity .4s ease,
		filter .4s ease,
		transform .4s ease;
}

/* Auto Events — 5 cards no fundo */
.events-grid:not(.events-grid-3):not(.events-grid-4):not(.castle-grid).is-focused .event-card:not(.is-active) {
	width: 18%;
}

.events-grid:not(.events-grid-3):not(.events-grid-4):not(.castle-grid).is-focused .event-card:not(.is-active):nth-child(1) { left: 0; }
.events-grid:not(.events-grid-3):not(.events-grid-4):not(.castle-grid).is-focused .event-card:not(.is-active):nth-child(2) { left: 20.5%; }
.events-grid:not(.events-grid-3):not(.events-grid-4):not(.castle-grid).is-focused .event-card:not(.is-active):nth-child(3) { left: 41%; }
.events-grid:not(.events-grid-3):not(.events-grid-4):not(.castle-grid).is-focused .event-card:not(.is-active):nth-child(4) { left: 61.5%; }
.events-grid:not(.events-grid-3):not(.events-grid-4):not(.castle-grid).is-focused .event-card:not(.is-active):nth-child(5) { left: auto; right: 0; }

/* Monthly Events — 3 cards no fundo */
.events-grid-3.is-focused .event-card:not(.is-active) {
	width: 30%;
}

.events-grid-3.is-focused .event-card:not(.is-active):nth-child(1) { left: 0; }
.events-grid-3.is-focused .event-card:not(.is-active):nth-child(2) { left: 35%; }
.events-grid-3.is-focused .event-card:not(.is-active):nth-child(3) { left: auto; right: 0; }

.events-grid-4.is-focused .event-card:not(.is-active) {
	width: 22%;
}

.events-grid-4.is-focused .event-card:not(.is-active):nth-child(1) { left: 0; }
.events-grid-4.is-focused .event-card:not(.is-active):nth-child(2) { left: 24%; }
.events-grid-4.is-focused .event-card:not(.is-active):nth-child(3) { left: 48%; }
.events-grid-4.is-focused .event-card:not(.is-active):nth-child(4) { left: auto; right: 0; }

.events-grid-4.is-focused .event-card.is-active {
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.castle-grid.is-focused {
	max-width: 1040px;
	min-height: 360px;
}

.castle-grid.is-focused .event-card:not(.is-active) {
	width: 10.2%;
}

.castle-grid.is-focused .event-card:not(.is-active):nth-child(1) { left: 0; }
.castle-grid.is-focused .event-card:not(.is-active):nth-child(2) { left: 11.2%; }
.castle-grid.is-focused .event-card:not(.is-active):nth-child(3) { left: 22.4%; }
.castle-grid.is-focused .event-card:not(.is-active):nth-child(4) { left: 33.6%; }
.castle-grid.is-focused .event-card:not(.is-active):nth-child(5) { left: 44.8%; }
.castle-grid.is-focused .event-card:not(.is-active):nth-child(6) { left: 56%; }
.castle-grid.is-focused .event-card:not(.is-active):nth-child(7) { left: 67.2%; }
.castle-grid.is-focused .event-card:not(.is-active):nth-child(8) { left: 78.4%; }
.castle-grid.is-focused .event-card:not(.is-active):nth-child(9) { left: auto; right: 0; }

.castle-grid.is-focused .event-card.is-active {
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.castle-grid.is-focused .event-card.is-active .event-card-media {
	height: auto;
	aspect-ratio: 16 / 10;
	min-height: 160px;
}

[data-event-focus].is-focused .event-card.is-active {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: 28px;
	align-items: stretch;
	opacity: 1;
	animation: event-focus-in .45s cubic-bezier(.22, 1, .36, 1) both;
}

.events-grid-3.is-focused .event-card.is-active {
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

[data-event-focus].is-focused .event-card.is-active .event-card-face {
	top: -10px;
	align-self: start;
	border-color: transparent;
	box-shadow:
		0 18px 36px rgba(0, 0, 0, 0.6),
		0 0 28px rgba(255, 140, 40, 0.28);
}

[data-event-focus].is-focused .event-card.is-active .event-card-face::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 200, 120, 0.1) 48%,
		rgba(255, 220, 160, 0.16) 50%,
		rgba(255, 200, 120, 0.1) 52%,
		transparent 70%
	);
	background-size: 220% 100%;
	animation: card-shine 1.6s ease-in-out infinite;
}

[data-event-focus].is-focused .event-card.is-active .event-card-detail {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
	padding: 24px 28px 26px;
	border: 0;
	background:
		radial-gradient(ellipse at 12% 0%, rgba(255, 170, 60, 0.14), transparent 42%),
		radial-gradient(ellipse at 100% 100%, rgba(120, 60, 20, 0.18), transparent 45%),
		linear-gradient(155deg, rgba(42, 24, 14, 0.96), rgba(12, 7, 18, 0.98) 55%, rgba(8, 5, 14, 0.99));
	box-shadow:
		0 22px 48px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 190, 90, 0.12),
		inset 0 1px 0 rgba(255, 220, 160, 0.12);
	animation: event-detail-in .5s cubic-bezier(.22, 1, .36, 1) .08s both;
}

[data-event-focus].is-focused .event-card.is-active .event-card-detail::before {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	top: 0;
	height: 2px;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, var(--orange), #ffd27a, var(--orange), transparent);
	box-shadow: 0 0 14px rgba(255, 140, 30, 0.45);
}

[data-event-focus].is-focused .event-card.is-active .event-card-detail::after {
	content: "";
	position: absolute;
	inset: 10px;
	pointer-events: none;
	border: 1px solid rgba(255, 190, 90, 0.08);
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.event-detail-close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 5;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 30%, rgba(255, 220, 150, 0.22), transparent 55%),
		linear-gradient(160deg, rgba(48, 28, 14, 0.95), rgba(12, 8, 16, 0.98));
	box-shadow:
		0 0 0 1px rgba(255, 190, 90, 0.45),
		0 0 0 4px rgba(255, 150, 40, 0.08),
		0 8px 18px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 230, 180, 0.22);
	color: transparent;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition:
		transform .25s cubic-bezier(.22, 1, .36, 1),
		box-shadow .25s ease,
		background .25s ease;
}

.event-detail-close::before,
.event-detail-close::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 2px;
	border-radius: 1px;
	background: linear-gradient(90deg, #c9a24a, #ffe0a0, #c9a24a);
	box-shadow: 0 0 8px rgba(255, 200, 120, 0.45);
	transition: background .2s ease, box-shadow .2s ease, transform .25s ease;
}

.event-detail-close::before {
	transform: rotate(45deg);
}

.event-detail-close::after {
	transform: rotate(-45deg);
}

.event-detail-close:hover {
	transform: scale(1.08) rotate(90deg);
	background:
		radial-gradient(circle at 35% 30%, rgba(255, 180, 80, 0.35), transparent 55%),
		linear-gradient(160deg, rgba(70, 36, 12, 0.98), rgba(18, 10, 16, 0.98));
	box-shadow:
		0 0 0 1px rgba(255, 200, 100, 0.7),
		0 0 0 5px rgba(255, 140, 40, 0.14),
		0 0 22px rgba(255, 140, 40, 0.35),
		0 10px 22px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 240, 200, 0.3);
}

.event-detail-close:hover::before,
.event-detail-close:hover::after {
	background: linear-gradient(90deg, #ffb347, #fff0c8, #ffb347);
	box-shadow: 0 0 12px rgba(255, 200, 120, 0.7);
}

.event-detail-close:active {
	transform: scale(0.96) rotate(90deg);
}

.event-detail-kicker,
.event-detail-title,
.event-detail-lead,
.event-detail-list {
	position: relative;
	z-index: 1;
}

.event-detail-kicker {
	margin: 0 0 6px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 210, 150, 0.55);
}

.event-detail-title {
	margin: 0 0 12px;
	padding-right: 48px;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--gold);
	line-height: 1.15;
	text-shadow: 0 0 18px rgba(255, 170, 60, 0.25);
}

.event-detail-lead {
	margin: 0 0 16px;
	max-width: 52ch;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 236, 210, 0.88);
}

.event-detail-lead strong {
	color: var(--orange-hot);
	font-weight: 600;
}

.event-detail-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.event-detail-list li {
	padding: 10px 0 0;
	border-top: 1px solid rgba(255, 180, 80, 0.12);
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255, 236, 210, 0.82);
}

.event-detail-list strong {
	color: var(--orange-hot);
	font-weight: 600;
}

@keyframes event-focus-in {
	from {
		opacity: 0.7;
		transform: translateX(18px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes event-detail-in {
	from {
		opacity: 0;
		transform: translateX(24px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (max-width: 1100px) {
	.events-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.events-grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: none;
	}

	.events-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: none;
	}

	[data-event-focus].is-focused {
		max-width: none;
	}

	[data-event-focus].is-focused .event-card.is-active {
		grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	.events-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.events-grid-3 {
		grid-template-columns: 1fr;
		max-width: 360px;
	}

	.events-grid-4 {
		grid-template-columns: 1fr;
		max-width: 360px;
	}

	.events-grid.castle-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: none;
		gap: 10px;
	}

	.castle-grid .event-card-media {
		height: 108px;
	}

	[data-event-focus].is-focused {
		max-width: none;
		min-height: 0;
	}

	[data-event-focus].is-focused .event-card:not(.is-active) {
		display: none;
	}

	[data-event-focus].is-focused .event-card.is-active {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	[data-event-focus].is-focused .event-card.is-active .event-card-face {
		top: -6px;
		max-width: 360px;
		margin-inline: auto;
	}
}

@media (max-width: 480px) {
	.events-grid:not(.events-grid-3):not(.events-grid-4):not(.castle-grid) {
		grid-template-columns: 1fr;
		max-width: 320px;
		margin-inline: auto;
	}

	.events-grid.castle-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: none;
		gap: 8px;
	}

	.castle-grid .event-card-media {
		height: 96px;
	}

	.events-grid-4 {
		grid-template-columns: 1fr;
		max-width: 320px;
		margin-inline: auto;
	}
}

.items-row {
	margin-top: 12px;
}

/* Barra fina sob a imagem — nome do set */
.items-tabs .page-card-body {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px 12px;
	text-align: center;
}

.items-tabs .items-class-title {
	margin: 0;
	padding-left: 0.12em;
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: 0.12em;
	color: var(--gold);
	line-height: 1.25;
	text-align: center;
}

/* Tabs LIGHT / HEAVY / ROBE */
.items-tabs {
	margin-top: 8px;
}

.items-tabs-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 22px;
}

/* herda visual do btn-play; só ajusta tamanho na fileira */
.items-tabs .items-tab {
	min-width: 140px;
	cursor: pointer;
}

.items-tabs .items-tab:not(.is-active) {
	opacity: 0.78;
	filter: brightness(0.92);
}

.items-tabs .items-tab.is-active {
	opacity: 1;
	filter: none;
}

.items-tabs .items-tab:focus-visible {
	outline: 2px solid rgba(255, 210, 120, 0.85);
	outline-offset: 3px;
}

.items-tab-panels {
	position: relative;
}

.items-tab-panel {
	display: none;
}

.items-tab-panel.is-active {
	display: block;
}

/* Estado inicial / saída — cards escondidos */
.items-tabs .page-card.items-card-hide {
	opacity: 0;
	transform: translateY(28px);
	transition: none;
}

/* Entrada em cascata (controlada pelo JS) */
.items-tabs .page-card.items-card-show {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity .55s cubic-bezier(.22, 1, .36, 1),
		transform .55s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
	.items-tabs .page-card.items-card-hide,
	.items-tabs .page-card.items-card-show {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (max-width: 760px) {
	.items-tabs .items-tab {
		min-width: 112px;
	}

	.items-tabs .items-class-title {
		font-size: 11px;
		letter-spacing: 0.08em;
	}
}

@media (max-width: 760px) {
	.rates-board-face {
		padding: 22px 16px 24px;
	}
	.rates-board-row {
		grid-template-columns: 1fr 1fr;
		gap: 8px 0;
	}
	.rates-item + .rates-item::before {
		display: none;
	}
	.rates-item {
		padding: 14px 10px;
		border-bottom: 1px solid rgba(255, 180, 80, 0.1);
	}
	.rates-item:nth-last-child(-n+2) {
		border-bottom: 0;
	}
}

@media (max-width: 420px) {
	.rates-board-row {
		grid-template-columns: 1fr;
	}
	.rates-item:nth-last-child(-n+2) {
		border-bottom: 1px solid rgba(255, 180, 80, 0.1);
	}
	.rates-item:last-child {
		border-bottom: 0;
	}
}

.page-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.page-list li {
	position: relative;
	padding: 14px 16px 14px 40px;
	border: 1px solid rgba(255, 180, 80, 0.12);
	background: rgba(16, 10, 22, 0.7);
	color: #e8e2d6;
	font-size: 14px;
}

.page-list li::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	transform: translateY(-50%);
	background: linear-gradient(180deg, #ffe29a, var(--orange));
	box-shadow: 0 0 10px rgba(255, 140, 40, 0.45);
}

.page-table-wrap {
	overflow-x: auto;
	border: 1px solid rgba(255, 180, 80, 0.16);
	background: rgba(12, 8, 18, 0.85);
	box-shadow: var(--shadow);
}

.page-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 520px;
}

.page-table th,
.page-table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 14px;
}

.page-table th {
	font-family: var(--font-display);
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--gold);
	background: rgba(255, 140, 40, 0.08);
}

.page-table td {
	color: #ddd6c8;
}

.page-table tr:last-child td {
	border-bottom: 0;
}

.page-table .rank {
	font-family: var(--font-display);
	color: var(--orange);
	font-weight: 700;
}

.rank-tabs .items-tab {
	min-width: 108px;
}

.page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 8px;
}

.page-flash {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 2px;
	font-size: 14px;
	line-height: 1.4;
}
.page-flash.is-ok {
	background: rgba(40, 120, 70, 0.25);
	border: 1px solid rgba(125, 255, 160, 0.35);
	color: #c8ffd8;
}
.page-flash.is-err {
	background: rgba(120, 30, 30, 0.28);
	border: 1px solid rgba(255, 140, 120, 0.35);
	color: #ffd0c8;
}
.page-form-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.page-contact-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 18px;
	align-items: start;
}

.page-contact-solo {
	grid-template-columns: minmax(0, 560px);
	justify-content: center;
}

.page-form {
	display: grid;
	gap: 12px;
}

.page-form label {
	display: grid;
	gap: 6px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 210, 150, 0.75);
}

.page-form input,
.page-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(255, 180, 80, 0.22);
	border-radius: 2px;
	background: rgba(8, 4, 14, 0.85);
	color: var(--text);
	font: inherit;
}

.page-form input:focus,
.page-form textarea:focus {
	outline: none;
	border-color: rgba(255, 180, 80, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 140, 40, 0.2);
}

.page-form textarea {
	min-height: 120px;
	resize: vertical;
}

.page-form label.page-form-check {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 13px;
	color: var(--muted);
	cursor: pointer;
}

.page-form label.page-form-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	padding: 0;
	margin: 0;
	accent-color: #ff8a1a;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.page-form label.page-form-check span {
	flex: 1 1 auto;
}

.page-form label.page-form-check span a {
	color: var(--gold);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-doc {
	max-width: 820px;
	margin: 0 auto;
	padding: 28px 32px 36px;
	background:
		linear-gradient(180deg, rgba(255, 210, 140, 0.06) 0%, transparent 18%),
		linear-gradient(180deg, #160e22 0%, #0c0712 100%);
	border: 1px solid rgba(232, 195, 106, 0.22);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.legal-updated {
	margin: 0 0 28px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(232, 195, 106, 0.16);
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}

.legal-doc h2 {
	margin: 28px 0 10px;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold);
}

.legal-doc h2:first-of-type { margin-top: 0; }

.legal-doc p,
.legal-doc li {
	font-size: 15px;
	line-height: 1.6;
	color: #e8e2d6;
}

.legal-doc p { margin: 0 0 12px; }

.legal-doc ul {
	margin: 0 0 14px;
	padding-left: 18px;
}

.legal-doc li { margin: 0 0 8px; }

.legal-doc a {
	color: var(--orange-hot);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.legal-doc a:hover { color: #ffe29a; }

@media (max-width: 760px) {
	.legal-doc { padding: 20px 16px 28px; }
}

.items-tabs .events-grid {
	margin-top: 8px;
}

.items-tabs .event-card-name {
	min-height: 2.4em;
}

@media (max-width: 900px) {
	.page-grid,
	.page-grid-2,
	.page-contact-grid {
		grid-template-columns: 1fr;
	}
}
