/* ==========================================================================
   VG3D Awards — interfaz de gala
   Todo está bajo .vg3d-ui para aislarlo del tema. Unidades em sobre 16px.
   ========================================================================== */

.vg3d-awards,
.vg3d-layer {
	--vg3d-night: #050817;
	--vg3d-royal: #12205e;
	--vg3d-gold: #ffc531;
	--vg3d-teal: #00a7a7;
	--vg3d-gold-hi: color-mix(in srgb, var(--vg3d-gold) 40%, #fff);
	--vg3d-gold-lo: color-mix(in srgb, var(--vg3d-gold) 72%, #8a4600);
	--vg3d-ink: color-mix(in srgb, var(--vg3d-night) 88%, var(--vg3d-royal));
	--vg3d-panel: color-mix(in srgb, var(--vg3d-night) 70%, var(--vg3d-royal));
	--vg3d-text: #f5f7ff;
	--vg3d-muted: #a9b1d6;
	--vg3d-line: rgba(255, 255, 255, 0.1);
	--vg3d-ok: #2bd576;
	--vg3d-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--vg3d-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-family: var(--vg3d-font);
	font-size: 16px;
	line-height: 1.45;
	color: var(--vg3d-text);
	-webkit-font-smoothing: antialiased;
}

.vg3d-awards {
	position: relative;
	display: block;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	background: var(--vg3d-ink);
	isolation: isolate;
}

.vg3d-ui,
.vg3d-ui *,
.vg3d-ui *::before,
.vg3d-ui *::after {
	box-sizing: border-box;
}

/* Reinicio de estilos del tema (misma especificidad que los componentes, que van después). */
.vg3d-ui [class*="vg3d-"] {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-style: normal;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	min-height: 0;
	min-width: 0;
	text-decoration: none;
	text-shadow: none;
	text-transform: inherit;
	width: auto;
}

.vg3d-ui button[class*="vg3d-"] {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	text-align: inherit;
}

.vg3d-ui a[class*="vg3d-"],
.vg3d-ui a[class*="vg3d-"]:hover,
.vg3d-ui a[class*="vg3d-"]:focus {
	text-decoration: none;
}

.vg3d-ui :focus-visible {
	outline: 3px solid var(--vg3d-gold);
	outline-offset: 3px;
}

.vg3d-ui .vg3d-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

html.vg3d-lock,
html.vg3d-lock body {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Arranque (antes de que cargue el JS)
   -------------------------------------------------------------------------- */

.vg3d-awards:not(.is-ready) {
	min-height: 70vh;
	background: linear-gradient(160deg, var(--vg3d-night), var(--vg3d-royal));
}

.vg3d-ui .vg3d-boot {
	display: grid;
	place-items: center;
	min-height: 70vh;
}

.vg3d-awards.is-ready .vg3d-boot {
	display: none;
}

.vg3d-ui .vg3d-boot__spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.15);
	border-top-color: var(--vg3d-gold);
	animation: vg3d-spin 0.9s linear infinite;
}

.vg3d-ui .vg3d-noscript {
	padding: 2em 1.25em;
	max-width: 900px;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Estructura
   -------------------------------------------------------------------------- */

.vg3d-ui .vg3d-app {
	display: flex;
	flex-direction: column;
}

.vg3d-ui .vg3d-stage {
	order: 1;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: clamp(500px, 66vh, 700px);
	padding: clamp(48px, 6vw, 88px) 20px clamp(80px, 9vw, 120px);
	background:
		radial-gradient(120% 75% at 50% -12%, color-mix(in srgb, var(--vg3d-teal) 38%, transparent) 0%, transparent 58%),
		radial-gradient(80% 65% at 88% 112%, color-mix(in srgb, var(--vg3d-gold) 24%, transparent) 0%, transparent 62%),
		radial-gradient(70% 60% at 6% 100%, color-mix(in srgb, #7b2ff7 26%, transparent) 0%, transparent 60%),
		linear-gradient(160deg, var(--vg3d-night) 0%, var(--vg3d-royal) 58%, color-mix(in srgb, var(--vg3d-royal) 62%, #3c1170) 100%);
	background-size: 160% 160%, 150% 150%, 150% 150%, 220% 220%;
	animation: vg3d-bg 20s ease-in-out infinite alternate;
}

/* Reflectores de gala */
.vg3d-ui .vg3d-stage::before,
.vg3d-ui .vg3d-stage::after {
	content: "";
	position: absolute;
	top: -12%;
	width: 44%;
	height: 135%;
	background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(255, 238, 190, 0.2) 18deg, rgba(255, 238, 190, 0.06) 20deg, rgba(255, 238, 190, 0.2) 22deg, transparent 40deg);
	filter: blur(10px);
	mix-blend-mode: screen;
	transform-origin: 50% 0%;
	pointer-events: none;
	z-index: 1;
}

.vg3d-ui .vg3d-stage::before {
	left: 0;
	animation: vg3d-beam-l 9s ease-in-out infinite alternate;
}

.vg3d-ui .vg3d-stage::after {
	right: 0;
	animation: vg3d-beam-r 11s ease-in-out infinite alternate;
}

.vg3d-ui .vg3d-stage__particles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.vg3d-ui .vg3d-stage__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px; /* cubre la última fila de píxeles aunque el borde caiga en posición fraccionaria */
	height: 163px;
	background: linear-gradient(to bottom, transparent, var(--vg3d-ink) 92%);
	z-index: 2;
	pointer-events: none;
}

.vg3d-ui .vg3d-stage__inner {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.vg3d-ui .vg3d-board {
	order: 3;
	position: relative;
	margin-top: -1px; /* tapa la línea de 1 px que deja el escenario en posiciones fraccionarias */
	padding: 28px 20px 72px;
	background: var(--vg3d-ink);
}

.vg3d-ui .vg3d-board__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.vg3d-ui .vg3d-board__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	font-size: 1.15em;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--vg3d-text);
}

.vg3d-ui .vg3d-board__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--vg3d-gold) 60%, transparent), transparent);
}

.vg3d-ui .vg3d-board__next {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.vg3d-ui .vg3d-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--vg3d-muted);
}

/* --------------------------------------------------------------------------
   Textos comunes
   -------------------------------------------------------------------------- */

.vg3d-ui .vg3d-eyebrow {
	font-size: 0.8em;
	font-weight: 800;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--vg3d-gold);
}

.vg3d-ui .vg3d-hint {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-size: 0.95em;
	color: var(--vg3d-text);
}

.vg3d-ui .vg3d-hint--done {
	border-color: color-mix(in srgb, var(--vg3d-ok) 45%, transparent);
	background: color-mix(in srgb, var(--vg3d-ok) 14%, transparent);
	color: #b9f5d2;
}

.vg3d-ui .vg3d-hint--win {
	border-color: color-mix(in srgb, var(--vg3d-gold) 60%, transparent);
	background: color-mix(in srgb, var(--vg3d-gold) 16%, transparent);
	color: #ffe9a8;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.vg3d-ui .vg3d-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 30px;
	border-radius: 999px;
	font-size: 1em;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	transition: transform 0.2s var(--vg3d-ease), box-shadow 0.25s, filter 0.2s, background 0.2s, width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.vg3d-ui .vg3d-btn--xl {
	min-height: 60px;
	padding: 0 38px;
	font-size: 1.08em;
}

.vg3d-ui .vg3d-btn--gold {
	overflow: hidden;
	color: #1a1300;
	background: linear-gradient(135deg, var(--vg3d-gold-hi), var(--vg3d-gold) 45%, var(--vg3d-gold-lo));
	box-shadow: 0 12px 32px -10px color-mix(in srgb, var(--vg3d-gold) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.vg3d-ui .vg3d-btn--gold::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: vg3d-sheen 3.4s ease-in-out infinite;
	pointer-events: none;
}

.vg3d-ui .vg3d-btn--gold:hover,
.vg3d-ui .vg3d-btn--gold:focus {
	color: #1a1300;
}

.vg3d-ui .vg3d-btn--gold:hover {
	transform: translateY(-2px) scale(1.03);
	filter: brightness(1.06);
	box-shadow: 0 18px 40px -10px color-mix(in srgb, var(--vg3d-gold) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.vg3d-ui .vg3d-btn--gold:active {
	transform: scale(0.97);
}

.vg3d-ui .vg3d-btn--ghost {
	color: var(--vg3d-text);
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.07);
}

.vg3d-ui .vg3d-btn--ghost:hover,
.vg3d-ui .vg3d-btn--ghost:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

.vg3d-ui .vg3d-btn--ghost:hover {
	transform: translateY(-2px);
}

.vg3d-ui .vg3d-btn--off {
	color: var(--vg3d-muted);
	border: 1px dashed rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.05);
	cursor: not-allowed;
}

.vg3d-ui .vg3d-x {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background 0.2s;
}

.vg3d-ui .vg3d-x:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Vista: intro del evento
   -------------------------------------------------------------------------- */

.vg3d-ui .vg3d-intro {
	display: grid;
	justify-items: center;
	gap: 20px;
	text-align: center;
	animation: vg3d-fade 0.7s var(--vg3d-ease) both;
}

.vg3d-ui .vg3d-intro__logo {
	display: block;
	width: min(560px, 86%);
	height: auto;
	filter: drop-shadow(0 12px 40px color-mix(in srgb, var(--vg3d-gold) 40%, transparent));
	animation: vg3d-float 6s ease-in-out infinite;
}

.vg3d-ui .vg3d-intro__title {
	font-size: clamp(2.6em, 8vw, 6em);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--vg3d-gold);
	background: linear-gradient(180deg, var(--vg3d-gold-hi), var(--vg3d-gold) 55%, var(--vg3d-gold-lo));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 6px 30px color-mix(in srgb, var(--vg3d-gold) 40%, transparent));
}

.vg3d-ui .vg3d-intro__subtitle {
	max-width: 680px;
	font-size: clamp(1em, 2vw, 1.25em);
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-intro__progress {
	font-size: 1.05em;
	color: var(--vg3d-text);
}

.vg3d-ui .vg3d-intro__progress strong {
	color: var(--vg3d-gold);
}

.vg3d-ui .vg3d-intro__note {
	max-width: 560px;
	font-size: 1.1em;
	color: var(--vg3d-text);
}

.vg3d-ui .vg3d-countdown-wrap {
	display: grid;
	justify-items: center;
	gap: 10px;
}

.vg3d-ui .vg3d-countdown {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.vg3d-ui .vg3d-countdown__unit {
	display: grid;
	min-width: 68px;
	padding: 10px 8px 8px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(5, 8, 23, 0.35);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	text-align: center;
}

.vg3d-ui .vg3d-countdown__num {
	font-size: 1.7em;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: #fff;
}

.vg3d-ui .vg3d-countdown__lbl {
	font-size: 0.68em;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vg3d-muted);
}

/* Mosaico de categorías */
.vg3d-ui .vg3d-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 16px;
}

.vg3d-ui .vg3d-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 168px;
	padding: 18px;
	overflow: hidden;
	border: 1px solid var(--vg3d-line);
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	color: var(--vg3d-text);
	transition: transform 0.3s var(--vg3d-ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
	animation: vg3d-rise 0.6s var(--vg3d-ease) backwards;
	animation-delay: calc(var(--i, 0) * 45ms);
}

.vg3d-ui .vg3d-tile:hover,
.vg3d-ui .vg3d-tile:focus {
	color: var(--vg3d-text);
}

.vg3d-ui .vg3d-tile:hover {
	transform: translateY(-5px);
	border-color: color-mix(in srgb, var(--vg3d-gold) 55%, transparent);
	box-shadow: 0 18px 46px -16px rgba(0, 0, 0, 0.8), 0 0 30px -12px color-mix(in srgb, var(--vg3d-gold) 60%, transparent);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.vg3d-ui .vg3d-tile.is-voted {
	border-color: color-mix(in srgb, var(--vg3d-ok) 40%, transparent);
}

.vg3d-ui .vg3d-tile__num {
	position: absolute;
	top: 6px;
	right: 14px;
	font-size: 3em;
	font-weight: 900;
	line-height: 1;
	color: rgba(255, 255, 255, 0.07);
}

.vg3d-ui .vg3d-tile__covers {
	display: flex;
	padding-left: 4px;
}

.vg3d-ui .vg3d-tile__cover {
	display: grid;
	place-items: center;
	width: 46px;
	height: 62px;
	margin-right: -10px;
	border: 2px solid var(--vg3d-ink);
	border-radius: 7px;
	object-fit: cover;
	font-size: 0.85em;
	box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.7);
	transform: rotate(var(--r, 0deg));
	transition: transform 0.3s var(--vg3d-ease);
}

.vg3d-ui .vg3d-tile:hover .vg3d-tile__cover {
	transform: rotate(calc(var(--r, 0deg) * 1.6)) translateY(-3px);
}

.vg3d-ui .vg3d-tile__name {
	font-size: 1.08em;
	font-weight: 800;
	line-height: 1.25;
}

.vg3d-ui .vg3d-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-top: auto;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.75em;
	font-weight: 800;
	letter-spacing: 0.04em;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vg3d-ui .vg3d-chip--done {
	border: 1px solid color-mix(in srgb, var(--vg3d-ok) 45%, transparent);
	background: color-mix(in srgb, var(--vg3d-ok) 16%, transparent);
	color: #8ff0b9;
}

.vg3d-ui .vg3d-chip--todo {
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-chip--win {
	background: linear-gradient(135deg, var(--vg3d-gold-hi), var(--vg3d-gold));
	color: #1a1300;
}

/* --------------------------------------------------------------------------
   Vista: categoría
   -------------------------------------------------------------------------- */

.vg3d-ui .vg3d-cat {
	display: grid;
	justify-items: center;
	gap: 16px;
	text-align: center;
}

.vg3d-ui .vg3d-cat__title {
	max-width: 16ch;
	font-size: clamp(2.3em, 6.4vw, 5.2em);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 6px 40px color-mix(in srgb, var(--vg3d-gold) 35%, transparent);
	animation: vg3d-title-in 0.85s var(--vg3d-ease) both;
}

.vg3d-ui .vg3d-cat__desc {
	max-width: 680px;
	font-size: 1.05em;
	color: var(--vg3d-muted);
	animation: vg3d-fade 0.8s 0.15s var(--vg3d-ease) both;
}

.vg3d-ui .vg3d-cat .vg3d-hint {
	animation: vg3d-fade 0.8s 0.25s var(--vg3d-ease) both;
}

/* Barra de navegación y progreso */
.vg3d-ui .vg3d-nav {
	order: 2;
	position: relative;
	z-index: 5;
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: none;
	margin: -1px 0 0;
	padding: 12px max(20px, calc((100% - 1200px) / 2)) 4px;
	background: var(--vg3d-ink);
}

.vg3d-app[data-view="intro"] .vg3d-nav,
.vg3d-app[data-view="summary"] .vg3d-nav {
	display: none;
}

.vg3d-ui .vg3d-nav__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--vg3d-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--vg3d-text);
	font-size: 0.92em;
	font-weight: 700;
	white-space: nowrap;
	transition: background 0.2s, opacity 0.2s, border-color 0.2s;
}

.vg3d-ui .vg3d-nav__btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.13);
	border-color: rgba(255, 255, 255, 0.24);
}

.vg3d-ui .vg3d-nav__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.vg3d-ui .vg3d-progress {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.vg3d-ui .vg3d-progress__label {
	font-size: 0.85em;
	font-weight: 600;
	text-align: center;
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-progress__bar {
	display: block;
	height: 8px;
	overflow: hidden;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.09);
}

.vg3d-ui .vg3d-progress__bar i {
	display: block;
	width: var(--p, 0%);
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--vg3d-teal), var(--vg3d-gold));
	box-shadow: 0 0 16px color-mix(in srgb, var(--vg3d-gold) 60%, transparent);
	transition: width 0.9s var(--vg3d-ease);
}

/* Tarjetas de nominados (estilo Crunchyroll) */
.vg3d-ui .vg3d-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.vg3d-ui .vg3d-card {
	position: relative;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
	width: 100%;
	min-height: 136px;
	padding: 12px;
	border: 1px solid var(--vg3d-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.035);
	color: var(--vg3d-text);
	text-align: left;
	transition: transform 0.3s var(--vg3d-ease), background 0.25s, border-color 0.25s, box-shadow 0.3s, opacity 0.25s;
	animation: vg3d-rise 0.6s var(--vg3d-ease) backwards;
	animation-delay: calc(var(--i, 0) * 60ms);
}

.vg3d-ui .vg3d-card:hover {
	transform: translateY(-5px);
	border-color: rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.8);
}

.vg3d-ui .vg3d-card.is-selected {
	border-color: var(--vg3d-teal);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 1px var(--vg3d-teal), 0 0 36px -8px color-mix(in srgb, var(--vg3d-teal) 80%, transparent);
}

.vg3d-ui .vg3d-card.is-voted {
	border-color: var(--vg3d-gold);
	box-shadow: 0 0 0 1px var(--vg3d-gold), 0 0 38px -10px color-mix(in srgb, var(--vg3d-gold) 80%, transparent);
	opacity: 1;
}

.vg3d-ui .vg3d-card.is-dim {
	opacity: 0.55;
}

.vg3d-ui .vg3d-card.is-dim:hover {
	opacity: 0.9;
}

.vg3d-ui .vg3d-card.is-winner {
	border-color: var(--vg3d-gold);
	background: linear-gradient(135deg, color-mix(in srgb, var(--vg3d-gold) 16%, transparent), rgba(255, 255, 255, 0.03));
	box-shadow: 0 0 0 1px var(--vg3d-gold), 0 0 40px -10px color-mix(in srgb, var(--vg3d-gold) 80%, transparent);
}

.vg3d-ui .vg3d-card__cover {
	position: relative;
	display: block;
	align-self: start; /* sin esto la fila estira la altura y el ancho crece por aspect-ratio */
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 9px;
	background: #111a3a;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
}

.vg3d-ui .vg3d-card__cover img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.6s var(--vg3d-ease);
}

.vg3d-ui .vg3d-card:hover .vg3d-card__cover img {
	transform: scale(1.07);
}

.vg3d-ui .vg3d-card__rank {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 1;
	padding: 3px 7px;
	border-radius: 7px;
	background: rgba(5, 8, 23, 0.8);
	font-size: 0.75em;
	font-weight: 800;
	color: #fff;
}

.vg3d-ui .vg3d-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 4px 4px 40px 0;
}

.vg3d-ui .vg3d-card__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 1.04em;
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.vg3d-ui .vg3d-card__studio {
	margin-top: 5px;
	font-size: 0.88em;
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-card__pct {
	margin-top: auto;
	padding-top: 10px;
	font-size: 0.95em;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: #fff;
}

.vg3d-ui .vg3d-card__bar {
	display: block;
	height: 6px;
	margin-top: 6px;
	overflow: hidden;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.09);
}

.vg3d-ui .vg3d-card__bar i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--vg3d-teal), var(--vg3d-gold));
	transition: width 1.3s var(--vg3d-ease);
}

.vg3d-ui .vg3d-card__foot {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.vg3d-ui .vg3d-card__go {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background 0.25s, color 0.25s, transform 0.25s;
}

.vg3d-ui .vg3d-card:hover .vg3d-card__go,
.vg3d-ui .vg3d-card.is-selected .vg3d-card__go {
	background: #fff;
	color: var(--vg3d-night);
}

.vg3d-ui .vg3d-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 26px;
	padding: 0 11px;
	border-radius: 999px;
	font-size: 0.7em;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.vg3d-ui .vg3d-pill--ok {
	background: var(--vg3d-ok);
	color: #04240f;
}

.vg3d-ui .vg3d-pill--gold {
	background: linear-gradient(135deg, var(--vg3d-gold-hi), var(--vg3d-gold));
	color: #1a1300;
}

.vg3d-ui .vg3d-pill.is-pop {
	animation: vg3d-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Imagen faltante: degradado con iniciales */
.vg3d-ui .vg3d-ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(140deg, hsl(var(--h, 220) 65% 38%), hsl(calc(var(--h, 220) + 50) 70% 16%));
	font-size: 1.4em;
	font-weight: 900;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.9);
}

.vg3d-ui .vg3d-ph--lg {
	font-size: 4em;
}

.vg3d-ui .vg3d-tile__cover.vg3d-ph {
	width: 46px;
	height: 62px;
	font-size: 0.8em;
}

/* --------------------------------------------------------------------------
   Nominado en el escenario
   -------------------------------------------------------------------------- */

.vg3d-ui .vg3d-spot {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: clamp(28px, 4vw, 60px);
	animation: vg3d-fade 0.5s var(--vg3d-ease) both;
}

.vg3d-ui .vg3d-spot__close {
	top: -56px;
	right: 0;
}

.vg3d-ui .vg3d-spot__cat {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.98em;
	font-weight: 700;
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-spot__title {
	margin: 12px 0 14px;
	font-size: clamp(1.9em, 3.4vw, 3.1em);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #fff;
}

.vg3d-ui .vg3d-spot__title:focus {
	outline: none;
}

.vg3d-ui .vg3d-spot__studio {
	font-size: 1.05em;
	font-weight: 700;
	color: var(--vg3d-text);
}

.vg3d-ui .vg3d-spot__credits {
	margin-top: 4px;
	white-space: pre-line;
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-spot__action {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	min-height: 60px;
	margin-top: 30px;
}

.vg3d-ui .vg3d-legal {
	margin-top: 14px;
	font-size: 0.74em;
	color: color-mix(in srgb, var(--vg3d-muted) 85%, transparent);
}

.vg3d-ui .vg3d-legal a {
	color: var(--vg3d-text);
	text-decoration: underline;
}

/* Tooltip ⓘ (anclado a la línea de la categoría para no desbordar en móvil) */
.vg3d-ui .vg3d-info {
	position: static;
	display: inline-grid;
	place-items: center;
	width: 21px;
	height: 21px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 800;
	font-family: Georgia, serif;
	font-style: italic;
	cursor: help;
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-info__tip {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	z-index: 6;
	width: max-content;
	max-width: min(420px, 100%);
	padding: 10px 13px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 11px;
	background: #0b1230;
	box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
	font-family: var(--vg3d-font);
	font-size: 13.5px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	color: var(--vg3d-text);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.vg3d-ui .vg3d-info:hover .vg3d-info__tip,
.vg3d-ui .vg3d-info:focus .vg3d-info__tip {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* Arte / tráiler */
.vg3d-ui .vg3d-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 20px;
	background: #0d1433;
	box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
	transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.35s ease-out;
}

.vg3d-ui .vg3d-media__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.vg3d-ui .vg3d-media__bg {
	position: absolute;
	inset: -30px;
	background-position: center;
	background-size: cover;
	filter: blur(26px) brightness(0.55) saturate(1.3);
}

.vg3d-ui .vg3d-media__fg {
	position: relative;
	display: block;
	height: 100%;
	width: auto;
	max-width: none;
	aspect-ratio: 3 / 4;
	margin: 0 auto;
	object-fit: cover;
	box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
}

.vg3d-ui .vg3d-media iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.vg3d-ui .vg3d-play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	margin: auto;
	padding-left: 4px;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background: rgba(5, 8, 23, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: #fff;
	transition: transform 0.25s var(--vg3d-ease), background 0.25s, color 0.25s;
}

.vg3d-ui .vg3d-play:hover {
	transform: scale(1.08);
	background: var(--vg3d-gold);
	color: #1a1300;
}

/* Botón VOTA y su transformación en ✓ */
.vg3d-ui .vg3d-vote {
	width: 240px;
	min-height: 58px;
	font-size: 1.15em;
	letter-spacing: 0.14em;
}

.vg3d-ui .vg3d-vote__label {
	transition: opacity 0.2s;
}

.vg3d-ui .vg3d-vote.is-loading {
	cursor: progress;
}

.vg3d-ui .vg3d-vote.is-loading .vg3d-vote__label {
	animation: vg3d-pulse 0.9s ease-in-out infinite;
}

.vg3d-ui .vg3d-vote__check {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0;
	transition: opacity 0.2s 0.3s;
}

.vg3d-ui .vg3d-vote__check path {
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
}

.vg3d-ui .vg3d-vote.is-success {
	width: 58px;
	padding: 0;
	cursor: default;
}

.vg3d-ui .vg3d-vote.is-success::after {
	display: none;
}

.vg3d-ui .vg3d-vote.is-success .vg3d-vote__label {
	opacity: 0;
}

.vg3d-ui .vg3d-vote.is-success .vg3d-vote__check {
	opacity: 1;
}

.vg3d-ui .vg3d-vote.is-success .vg3d-vote__check path {
	animation: vg3d-draw 0.45s 0.4s ease-out forwards;
}

.vg3d-ui .vg3d-ring {
	position: absolute;
	top: 50%;
	left: 29px;
	width: 58px;
	height: 58px;
	margin: -29px 0 0 -29px;
	border: 2px solid var(--vg3d-gold);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.vg3d-ui .vg3d-ring.is-on {
	animation: vg3d-ring 0.9s 0.35s ease-out both;
}

.vg3d-ui .vg3d-voted {
	display: flex;
	align-items: center;
	gap: 14px;
}

.vg3d-ui .vg3d-voted__badge {
	display: grid;
	flex: none;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--vg3d-gold-hi), var(--vg3d-gold) 50%, var(--vg3d-gold-lo));
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--vg3d-gold) 18%, transparent), 0 12px 30px -8px color-mix(in srgb, var(--vg3d-gold) 80%, transparent);
	color: #1a1300;
}

.vg3d-ui .vg3d-voted__text {
	display: grid;
	gap: 2px;
}

.vg3d-ui .vg3d-voted__text strong {
	font-size: 1.15em;
	color: #fff;
}

.vg3d-ui .vg3d-voted__text span {
	font-size: 0.9em;
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-note {
	flex-basis: 100%;
	color: var(--vg3d-muted);
}

/* Resultados */
.vg3d-ui .vg3d-ribbon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--vg3d-gold-hi), var(--vg3d-gold) 50%, var(--vg3d-gold-lo));
	box-shadow: 0 12px 32px -10px color-mix(in srgb, var(--vg3d-gold) 80%, transparent);
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1a1300;
	animation: vg3d-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.vg3d-ui .vg3d-result {
	font-size: 1.05em;
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-result strong {
	font-size: 1.7em;
	font-weight: 900;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Resumen del día
   -------------------------------------------------------------------------- */

.vg3d-ui .vg3d-final {
	display: grid;
	justify-items: center;
	gap: 18px;
	text-align: center;
}

.vg3d-ui .vg3d-trophy {
	filter: drop-shadow(0 12px 34px color-mix(in srgb, var(--vg3d-gold) 55%, transparent));
	animation: vg3d-trophy 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both, vg3d-float 5s 1s ease-in-out infinite;
}

.vg3d-ui .vg3d-final__title {
	max-width: 18ch;
	font-size: clamp(1.9em, 4.6vw, 3.4em);
	font-weight: 900;
	line-height: 1.05;
	color: #fff;
}

.vg3d-ui .vg3d-final__text {
	font-size: 1.05em;
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-clock {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--vg3d-gold);
}

.vg3d-ui .vg3d-share {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.vg3d-ui .vg3d-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 0.92em;
	font-weight: 700;
	transition: background 0.2s, transform 0.2s;
}

.vg3d-ui .vg3d-share__btn:hover,
.vg3d-ui .vg3d-share__btn:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
}

.vg3d-ui .vg3d-share__btn:hover {
	transform: translateY(-2px);
}

.vg3d-ui .vg3d-share__btn--main {
	border-color: transparent;
	background: var(--vg3d-teal);
}

.vg3d-ui .vg3d-picks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 14px;
}

.vg3d-ui .vg3d-pick {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px;
	border: 1px solid var(--vg3d-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--vg3d-text);
	transition: background 0.2s, transform 0.25s var(--vg3d-ease);
	animation: vg3d-rise 0.55s var(--vg3d-ease) backwards;
	animation-delay: calc(var(--i, 0) * 50ms);
}

.vg3d-ui .vg3d-pick:hover,
.vg3d-ui .vg3d-pick:focus {
	color: var(--vg3d-text);
	background: rgba(255, 255, 255, 0.08);
}

.vg3d-ui .vg3d-pick > img,
.vg3d-ui .vg3d-pick > .vg3d-ph {
	flex: none;
	width: 56px;
	height: 75px;
	border-radius: 9px;
	object-fit: cover;
	font-size: 1em;
}

.vg3d-ui .vg3d-pick__text {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.vg3d-ui .vg3d-pick__text small {
	font-size: 0.72em;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vg3d-gold);
}

.vg3d-ui .vg3d-pick__text strong {
	font-weight: 800;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Capas flotantes: hoja móvil, modal, aviso y confeti
   -------------------------------------------------------------------------- */

.vg3d-ui .vg3d-sheet,
.vg3d-ui .vg3d-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
}

.vg3d-ui .vg3d-sheet.is-open,
.vg3d-ui .vg3d-modal.is-open {
	visibility: visible;
	pointer-events: auto;
}

.vg3d-ui .vg3d-sheet__backdrop,
.vg3d-ui .vg3d-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 4, 14, 0.66);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity 0.3s;
}

.vg3d-ui .is-open > .vg3d-sheet__backdrop,
.vg3d-ui .is-open > .vg3d-modal__backdrop {
	opacity: 1;
}

.vg3d-ui .vg3d-sheet {
	display: flex;
	align-items: flex-end;
}

.vg3d-ui .vg3d-sheet__panel {
	position: relative;
	width: 100%;
	max-height: 92vh;
	max-height: 92dvh;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 24px 24px 0 0;
	background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--vg3d-teal) 22%, transparent), transparent 60%), linear-gradient(180deg, var(--vg3d-royal), var(--vg3d-night) 70%);
	transform: translateY(100%);
	transition: transform 0.42s var(--vg3d-ease);
}

.vg3d-ui .vg3d-sheet.is-open .vg3d-sheet__panel {
	transform: none;
}

.vg3d-ui .vg3d-sheet__panel:focus {
	outline: none;
}

.vg3d-ui .vg3d-sheet__grip {
	display: block;
	width: 46px;
	height: 5px;
	margin: 0 auto 12px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.3);
}

.vg3d-ui .vg3d-sheet .vg3d-x {
	top: 14px;
	right: 14px;
}

.vg3d-ui .vg3d-sheet .vg3d-spot {
	grid-template-columns: 1fr;
	gap: 18px;
	animation: none;
}

.vg3d-ui .vg3d-sheet .vg3d-spot__media {
	order: -1;
	margin-top: 44px;
}

.vg3d-ui .vg3d-sheet .vg3d-media {
	border-radius: 16px;
	transform: none;
}

.vg3d-ui .vg3d-sheet .vg3d-spot__title {
	margin: 8px 0 10px;
	font-size: 1.75em;
}

.vg3d-ui .vg3d-sheet .vg3d-spot__action {
	margin-top: 20px;
}

.vg3d-ui .vg3d-sheet .vg3d-vote:not(.is-success) {
	width: 100%;
}

.vg3d-ui .vg3d-sheet .vg3d-spot__action > .vg3d-btn--ghost,
.vg3d-ui .vg3d-sheet .vg3d-spot__action > .vg3d-btn--gold:not(.vg3d-vote) {
	width: 100%;
}

.vg3d-ui .vg3d-modal {
	display: grid;
	place-items: center;
	padding: 20px;
	z-index: 100001;
}

.vg3d-ui .vg3d-modal__box {
	position: relative;
	width: min(460px, 100%);
	max-height: 86vh;
	overflow-y: auto;
	padding: 36px 28px 28px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 24px;
	background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--vg3d-teal) 26%, transparent), transparent 60%), linear-gradient(180deg, var(--vg3d-royal), var(--vg3d-night));
	box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.85);
	text-align: center;
	opacity: 0;
	transform: translateY(16px) scale(0.97);
	transition: opacity 0.3s, transform 0.35s var(--vg3d-ease);
}

.vg3d-ui .vg3d-modal__box.is-wide {
	width: min(560px, 100%);
	text-align: left;
}

.vg3d-ui .vg3d-modal.is-open .vg3d-modal__box {
	opacity: 1;
	transform: none;
}

.vg3d-ui .vg3d-modal__box:focus {
	outline: none;
}

.vg3d-ui .vg3d-modal__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--vg3d-gold-hi), var(--vg3d-gold) 50%, var(--vg3d-gold-lo));
	box-shadow: 0 0 0 8px color-mix(in srgb, var(--vg3d-gold) 16%, transparent);
	color: #1a1300;
}

.vg3d-ui .vg3d-modal__title {
	margin-bottom: 10px;
	font-size: 1.55em;
	font-weight: 900;
	line-height: 1.15;
	color: #fff;
}

.vg3d-ui .vg3d-modal__text {
	margin-bottom: 24px;
	color: var(--vg3d-muted);
}

.vg3d-ui .vg3d-modal__actions {
	display: grid;
	gap: 12px;
}

.vg3d-ui .vg3d-catlist {
	display: grid;
	gap: 8px;
	margin-top: 8px;
	list-style: none;
}

.vg3d-ui .vg3d-catlist li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vg3d-ui .vg3d-catlink {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--vg3d-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--vg3d-text);
	transition: background 0.2s, border-color 0.2s;
}

.vg3d-ui .vg3d-catlink:hover,
.vg3d-ui .vg3d-catlink:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.vg3d-ui .vg3d-catlink.is-current {
	border-color: var(--vg3d-teal);
}

.vg3d-ui .vg3d-catlink__num {
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: var(--vg3d-gold);
}

.vg3d-ui .vg3d-catlink__name {
	flex: 1;
	min-width: 0;
	font-weight: 700;
}

.vg3d-ui .vg3d-catlink .vg3d-chip {
	margin-top: 0;
}

.vg3d-ui .vg3d-toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 100002;
	width: max-content;
	max-width: min(92vw, 480px);
	padding: 13px 20px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	background: #101a40;
	box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
	font-weight: 700;
	text-align: center;
	color: #fff;
	opacity: 0;
	transform: translate(-50%, 20px);
	transition: opacity 0.3s, transform 0.35s var(--vg3d-ease);
	pointer-events: none;
}

.vg3d-ui .vg3d-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

.vg3d-ui .vg3d-confetti {
	position: fixed;
	inset: 0;
	z-index: 100003;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.vg3d-ui .vg3d-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vg3d-ui .vg3d-spot {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.vg3d-ui .vg3d-stage {
		min-height: 0;
		padding: 52px 16px 76px;
	}

	.vg3d-ui .vg3d-stage::before,
	.vg3d-ui .vg3d-stage::after {
		width: 70%;
	}

	.vg3d-ui .vg3d-board {
		order: 2;
		padding: 18px 16px 28px;
	}

	.vg3d-ui .vg3d-nav {
		order: 3;
		position: sticky;
		bottom: 0;
		grid-template-columns: auto minmax(0, 1fr) auto auto;
		gap: 8px;
		max-width: none;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--vg3d-line);
		background: color-mix(in srgb, var(--vg3d-ink) 86%, transparent);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}

	.vg3d-ui .vg3d-nav__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.vg3d-ui .vg3d-nav__btn {
		justify-content: center;
		width: 44px;
		padding: 0;
	}

	.vg3d-ui .vg3d-progress__label {
		font-size: 0.78em;
	}

	.vg3d-ui .vg3d-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.vg3d-ui .vg3d-card {
		grid-template-columns: 68px minmax(0, 1fr);
		gap: 14px;
		min-height: 104px;
		padding: 10px;
	}

	.vg3d-ui .vg3d-card:hover {
		transform: none;
	}

	.vg3d-ui .vg3d-card__body {
		padding-bottom: 34px;
	}

	.vg3d-ui .vg3d-card__title {
		font-size: 1em;
	}

	.vg3d-ui .vg3d-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.vg3d-ui .vg3d-tile {
		min-height: 150px;
		padding: 14px;
		gap: 10px;
	}

	.vg3d-ui .vg3d-tile__cover,
	.vg3d-ui .vg3d-tile__cover.vg3d-ph {
		width: 38px;
		height: 51px;
	}

	.vg3d-ui .vg3d-tile__name {
		font-size: 0.95em;
	}

	.vg3d-ui .vg3d-countdown__unit {
		min-width: 60px;
	}

	.vg3d-ui .vg3d-countdown__num {
		font-size: 1.45em;
	}

	.vg3d-ui .vg3d-btn--xl {
		width: 100%;
		max-width: 360px;
	}

	.vg3d-ui .vg3d-toast {
		top: calc(14px + env(safe-area-inset-top));
		bottom: auto;
		transform: translate(-50%, -20px);
	}
}

@media (max-width: 380px) {
	.vg3d-ui .vg3d-tiles {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */

@keyframes vg3d-bg {
	from { background-position: 0% 0%, 100% 100%, 0% 100%, 0% 50%; }
	to { background-position: 40% 20%, 60% 80%, 30% 70%, 100% 50%; }
}

@keyframes vg3d-beam-l {
	from { transform: rotate(-26deg); }
	to { transform: rotate(-4deg); }
}

@keyframes vg3d-beam-r {
	from { transform: rotate(26deg); }
	to { transform: rotate(4deg); }
}

@keyframes vg3d-fade {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@keyframes vg3d-rise {
	from { opacity: 0; transform: translateY(18px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@keyframes vg3d-title-in {
	from { opacity: 0; transform: translateY(20px) scale(0.95); filter: blur(10px); }
	to { opacity: 1; transform: none; filter: none; }
}

@keyframes vg3d-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes vg3d-sheen {
	0%, 62% { transform: translateX(-120%); }
	100% { transform: translateX(120%); }
}

@keyframes vg3d-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes vg3d-ring {
	0% { opacity: 0.9; transform: scale(0.85); }
	100% { opacity: 0; transform: scale(2); }
}

@keyframes vg3d-pop {
	from { opacity: 0; transform: scale(0.4); }
	to { opacity: 1; transform: none; }
}

@keyframes vg3d-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

@keyframes vg3d-trophy {
	from { opacity: 0; transform: translateY(30px) scale(0.6) rotate(-8deg); }
	to { opacity: 1; transform: none; }
}

@keyframes vg3d-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.vg3d-ui *,
	.vg3d-ui *::before,
	.vg3d-ui *::after,
	.vg3d-ui .vg3d-stage {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
	}

	.vg3d-ui .vg3d-media {
		transform: none;
	}
}
